]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
[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 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 DO_LINK_MUTEX
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_GOLD_FOR_TARGET
684 ORIGINAL_LD_BFD_FOR_TARGET
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 doc_build_sys
745 AR
746 NM
747 BISON
748 FLEX
749 GENERATED_MANPAGES
750 BUILD_INFO
751 MAKEINFO
752 have_mktemp_command
753 make_compare_target
754 INSTALL_DATA
755 INSTALL_PROGRAM
756 INSTALL
757 ranlib_flags
758 RANLIB
759 LN
760 LN_S
761 AWK
762 SET_MAKE
763 REPORT_BUGS_TEXI
764 REPORT_BUGS_TO
765 PKGVERSION
766 CONFIGURE_SPECS
767 CROSS_SYSTEM_HEADER_DIR
768 TARGET_SYSTEM_ROOT_DEFINE
769 TARGET_SYSTEM_ROOT
770 SYSROOT_CFLAGS_FOR_TARGET
771 enable_shared
772 enable_fixed_point
773 enable_decimal_float
774 with_float
775 with_cpu
776 enable_multiarch
777 enable_multilib
778 coverage_flags
779 valgrind_command
780 valgrind_path_defines
781 valgrind_path
782 TREECHECKING
783 TREEBROWSER
784 nocommon_flag
785 noexception_flags
786 warn_cxxflags
787 warn_cflags
788 c_strict_warn
789 strict_warn
790 c_loose_warn
791 loose_warn
792 EGREP
793 GREP
794 CPP
795 PICFLAG_FOR_TARGET
796 GNATMAKE
797 GNATBIND
798 ac_ct_CXX
799 CXXFLAGS
800 CXX
801 OBJEXT
802 EXEEXT
803 ac_ct_CC
804 CPPFLAGS
805 LDFLAGS
806 CFLAGS
807 CC
808 GENINSRC
809 target_subdir
810 host_subdir
811 build_subdir
812 build_libsubdir
813 target_noncanonical
814 target_os
815 target_vendor
816 target_cpu
817 target
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 target_alias
827 host_alias
828 build_alias
829 LIBS
830 ECHO_T
831 ECHO_N
832 ECHO_C
833 DEFS
834 mandir
835 localedir
836 libdir
837 psdir
838 pdfdir
839 dvidir
840 htmldir
841 infodir
842 docdir
843 oldincludedir
844 includedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files='option_includes
865 language_hooks'
866 ac_user_opts='
867 enable_option_checking
868 with_build_libsubdir
869 with_local_prefix
870 with_gxx_include_dir
871 with_cpp_install_dir
872 enable_generated_files_in_srcdir
873 with_gnu_ld
874 with_ld
875 with_demangler_in_ld
876 with_gnu_as
877 with_as
878 enable_largefile
879 enable_build_format_warnings
880 enable_werror_always
881 enable_checking
882 enable_coverage
883 enable_gather_detailed_mem_stats
884 enable_valgrind_annotations
885 with_stabs
886 enable_multilib
887 enable_multiarch
888 enable___cxa_atexit
889 enable_decimal_float
890 enable_fixed_point
891 enable_threads
892 enable_tls
893 enable_objc_gc
894 with_dwarf2
895 enable_shared
896 with_native_system_header_dir
897 with_build_sysroot
898 with_sysroot
899 with_specs
900 with_pkgversion
901 with_bugurl
902 enable_languages
903 with_multilib_list
904 enable_rpath
905 with_libiconv_prefix
906 enable_sjlj_exceptions
907 enable_secureplt
908 enable_leading_mingw64_underscores
909 enable_cld
910 enable_frame_pointer
911 enable_win32_registry
912 enable_static
913 with_pic
914 enable_fast_install
915 enable_libtool_lock
916 enable_ld
917 enable_gold
918 with_plugin_ld
919 enable_gnu_indirect_function
920 enable_initfini_array
921 enable_comdat
922 enable_fix_cortex_a53_835769
923 with_glibc_version
924 enable_gnu_unique_object
925 enable_linker_build_id
926 with_long_double_128
927 with_gc
928 with_system_zlib
929 enable_maintainer_mode
930 enable_link_mutex
931 enable_version_specific_runtime_libs
932 enable_plugin
933 enable_host_shared
934 enable_libquadmath_support
935 with_linker_hash_style
936 '
937 ac_precious_vars='build_alias
938 host_alias
939 target_alias
940 CC
941 CFLAGS
942 LDFLAGS
943 LIBS
944 CPPFLAGS
945 CXX
946 CXXFLAGS
947 CCC
948 CPP
949 CXXCPP
950 GMPLIBS
951 GMPINC
952 ISLLIBS
953 ISLINC'
954
955
956 # Initialize some variables set by options.
957 ac_init_help=
958 ac_init_version=false
959 ac_unrecognized_opts=
960 ac_unrecognized_sep=
961 # The variables have the same names as the options, with
962 # dashes changed to underlines.
963 cache_file=/dev/null
964 exec_prefix=NONE
965 no_create=
966 no_recursion=
967 prefix=NONE
968 program_prefix=NONE
969 program_suffix=NONE
970 program_transform_name=s,x,x,
971 silent=
972 site=
973 srcdir=
974 verbose=
975 x_includes=NONE
976 x_libraries=NONE
977
978 # Installation directory options.
979 # These are left unexpanded so users can "make install exec_prefix=/foo"
980 # and all the variables that are supposed to be based on exec_prefix
981 # by default will actually change.
982 # Use braces instead of parens because sh, perl, etc. also accept them.
983 # (The list follows the same order as the GNU Coding Standards.)
984 bindir='${exec_prefix}/bin'
985 sbindir='${exec_prefix}/sbin'
986 libexecdir='${exec_prefix}/libexec'
987 datarootdir='${prefix}/share'
988 datadir='${datarootdir}'
989 sysconfdir='${prefix}/etc'
990 sharedstatedir='${prefix}/com'
991 localstatedir='${prefix}/var'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE}'
995 infodir='${datarootdir}/info'
996 htmldir='${docdir}'
997 dvidir='${docdir}'
998 pdfdir='${docdir}'
999 psdir='${docdir}'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1003
1004 ac_prev=
1005 ac_dashdash=
1006 for ac_option
1007 do
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1011 ac_prev=
1012 continue
1013 fi
1014
1015 case $ac_option in
1016 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 *) ac_optarg=yes ;;
1018 esac
1019
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022 case $ac_dashdash$ac_option in
1023 --)
1024 ac_dashdash=yes ;;
1025
1026 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027 ac_prev=bindir ;;
1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029 bindir=$ac_optarg ;;
1030
1031 -build | --build | --buil | --bui | --bu)
1032 ac_prev=build_alias ;;
1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034 build_alias=$ac_optarg ;;
1035
1036 -cache-file | --cache-file | --cache-fil | --cache-fi \
1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038 ac_prev=cache_file ;;
1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041 cache_file=$ac_optarg ;;
1042
1043 --config-cache | -C)
1044 cache_file=config.cache ;;
1045
1046 -datadir | --datadir | --datadi | --datad)
1047 ac_prev=datadir ;;
1048 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049 datadir=$ac_optarg ;;
1050
1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052 | --dataroo | --dataro | --datar)
1053 ac_prev=datarootdir ;;
1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056 datarootdir=$ac_optarg ;;
1057
1058 -disable-* | --disable-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error "invalid feature name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067 "enable_$ac_useropt"
1068 "*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval enable_$ac_useropt=no ;;
1073
1074 -docdir | --docdir | --docdi | --doc | --do)
1075 ac_prev=docdir ;;
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1078
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080 ac_prev=dvidir ;;
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
1083
1084 -enable-* | --enable-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error "invalid feature name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093 "enable_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval enable_$ac_useropt=\$ac_optarg ;;
1099
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1108
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1111 with_gas=yes ;;
1112
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1119
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1124
1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126 ac_prev=htmldir ;;
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 | --ht=*)
1129 htmldir=$ac_optarg ;;
1130
1131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1137
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1139 ac_prev=infodir ;;
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1142
1143 -libdir | --libdir | --libdi | --libd)
1144 ac_prev=libdir ;;
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1147
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1154
1155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1159
1160 -localstatedir | --localstatedir | --localstatedi | --localstated \
1161 | --localstate | --localstat | --localsta | --localst | --locals)
1162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165 localstatedir=$ac_optarg ;;
1166
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168 ac_prev=mandir ;;
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1171
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1174 with_fp=no ;;
1175
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1178 no_create=yes ;;
1179
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 no_recursion=yes ;;
1183
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1192
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194 ac_prev=prefix ;;
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1197
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1204
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
1211
1212 -program-transform-name | --program-transform-name \
1213 | --program-transform-nam | --program-transform-na \
1214 | --program-transform-n | --program-transform- \
1215 | --program-transform | --program-transfor \
1216 | --program-transfo | --program-transf \
1217 | --program-trans | --program-tran \
1218 | --progr-tra | --program-tr | --program-t)
1219 ac_prev=program_transform_name ;;
1220 -program-transform-name=* | --program-transform-name=* \
1221 | --program-transform-nam=* | --program-transform-na=* \
1222 | --program-transform-n=* | --program-transform-=* \
1223 | --program-transform=* | --program-transfor=* \
1224 | --program-transfo=* | --program-transf=* \
1225 | --program-trans=* | --program-tran=* \
1226 | --progr-tra=* | --program-tr=* | --program-t=*)
1227 program_transform_name=$ac_optarg ;;
1228
1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230 ac_prev=pdfdir ;;
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1233
1234 -psdir | --psdir | --psdi | --psd | --ps)
1235 ac_prev=psdir ;;
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237 psdir=$ac_optarg ;;
1238
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1241 silent=yes ;;
1242
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 ac_prev=sbindir ;;
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 | --sbi=* | --sb=*)
1247 sbindir=$ac_optarg ;;
1248
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1252 | --sha | --sh)
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 | --sha=* | --sh=*)
1258 sharedstatedir=$ac_optarg ;;
1259
1260 -site | --site | --sit)
1261 ac_prev=site ;;
1262 -site=* | --site=* | --sit=*)
1263 site=$ac_optarg ;;
1264
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 ac_prev=srcdir ;;
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1269
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1276
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1281
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283 verbose=yes ;;
1284
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1287
1288 -with-* | --with-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1296 *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=\$ac_optarg ;;
1303
1304 -without-* | --without-*)
1305 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308 as_fn_error "invalid package name: $ac_useropt"
1309 ac_useropt_orig=$ac_useropt
1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311 case $ac_user_opts in
1312 *"
1313 "with_$ac_useropt"
1314 "*) ;;
1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1316 ac_unrecognized_sep=', ';;
1317 esac
1318 eval with_$ac_useropt=no ;;
1319
1320 --x)
1321 # Obsolete; use --with-x.
1322 with_x=yes ;;
1323
1324 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1325 | --x-incl | --x-inc | --x-in | --x-i)
1326 ac_prev=x_includes ;;
1327 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1328 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1329 x_includes=$ac_optarg ;;
1330
1331 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1332 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1333 ac_prev=x_libraries ;;
1334 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1335 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1336 x_libraries=$ac_optarg ;;
1337
1338 -*) as_fn_error "unrecognized option: \`$ac_option'
1339 Try \`$0 --help' for more information."
1340 ;;
1341
1342 *=*)
1343 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1344 # Reject names that are not valid shell variable names.
1345 case $ac_envvar in #(
1346 '' | [0-9]* | *[!_$as_cr_alnum]* )
1347 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1348 esac
1349 eval $ac_envvar=\$ac_optarg
1350 export $ac_envvar ;;
1351
1352 *)
1353 # FIXME: should be removed in autoconf 3.0.
1354 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1355 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1356 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1357 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1358 ;;
1359
1360 esac
1361 done
1362
1363 if test -n "$ac_prev"; then
1364 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1365 as_fn_error "missing argument to $ac_option"
1366 fi
1367
1368 if test -n "$ac_unrecognized_opts"; then
1369 case $enable_option_checking in
1370 no) ;;
1371 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1372 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1373 esac
1374 fi
1375
1376 # Check all directory arguments for consistency.
1377 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1378 datadir sysconfdir sharedstatedir localstatedir includedir \
1379 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1380 libdir localedir mandir
1381 do
1382 eval ac_val=\$$ac_var
1383 # Remove trailing slashes.
1384 case $ac_val in
1385 */ )
1386 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1387 eval $ac_var=\$ac_val;;
1388 esac
1389 # Be sure to have absolute directory names.
1390 case $ac_val in
1391 [\\/$]* | ?:[\\/]* ) continue;;
1392 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1393 esac
1394 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1395 done
1396
1397 # There might be people who depend on the old broken behavior: `$host'
1398 # used to hold the argument of --host etc.
1399 # FIXME: To remove some day.
1400 build=$build_alias
1401 host=$host_alias
1402 target=$target_alias
1403
1404 # FIXME: To remove some day.
1405 if test "x$host_alias" != x; then
1406 if test "x$build_alias" = x; then
1407 cross_compiling=maybe
1408 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1409 If a cross compiler is detected then cross compile mode will be used." >&2
1410 elif test "x$build_alias" != "x$host_alias"; then
1411 cross_compiling=yes
1412 fi
1413 fi
1414
1415 ac_tool_prefix=
1416 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1417
1418 test "$silent" = yes && exec 6>/dev/null
1419
1420
1421 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1422 ac_ls_di=`ls -di .` &&
1423 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1424 as_fn_error "working directory cannot be determined"
1425 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1426 as_fn_error "pwd does not report name of working directory"
1427
1428
1429 # Find the source files, if location was not specified.
1430 if test -z "$srcdir"; then
1431 ac_srcdir_defaulted=yes
1432 # Try the directory containing this script, then the parent directory.
1433 ac_confdir=`$as_dirname -- "$as_myself" ||
1434 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1435 X"$as_myself" : 'X\(//\)[^/]' \| \
1436 X"$as_myself" : 'X\(//\)$' \| \
1437 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1438 $as_echo X"$as_myself" |
1439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1440 s//\1/
1441 q
1442 }
1443 /^X\(\/\/\)[^/].*/{
1444 s//\1/
1445 q
1446 }
1447 /^X\(\/\/\)$/{
1448 s//\1/
1449 q
1450 }
1451 /^X\(\/\).*/{
1452 s//\1/
1453 q
1454 }
1455 s/.*/./; q'`
1456 srcdir=$ac_confdir
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 srcdir=..
1459 fi
1460 else
1461 ac_srcdir_defaulted=no
1462 fi
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1465 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1466 fi
1467 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1468 ac_abs_confdir=`(
1469 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1470 pwd)`
1471 # When building in place, set srcdir=.
1472 if test "$ac_abs_confdir" = "$ac_pwd"; then
1473 srcdir=.
1474 fi
1475 # Remove unnecessary trailing slashes from srcdir.
1476 # Double slashes in file names in object file debugging info
1477 # mess up M-x gdb in Emacs.
1478 case $srcdir in
1479 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1480 esac
1481 for ac_var in $ac_precious_vars; do
1482 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_env_${ac_var}_value=\$${ac_var}
1484 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1486 done
1487
1488 #
1489 # Report the --help message.
1490 #
1491 if test "$ac_init_help" = "long"; then
1492 # Omit some internal or obsolete options to make the list less imposing.
1493 # This message is too long to be a string in the A/UX 3.1 sh.
1494 cat <<_ACEOF
1495 \`configure' configures this package to adapt to many kinds of systems.
1496
1497 Usage: $0 [OPTION]... [VAR=VALUE]...
1498
1499 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500 VAR=VALUE. See below for descriptions of some of the useful variables.
1501
1502 Defaults for the options are specified in brackets.
1503
1504 Configuration:
1505 -h, --help display this help and exit
1506 --help=short display options specific to this package
1507 --help=recursive display the short help of all the included packages
1508 -V, --version display version information and exit
1509 -q, --quiet, --silent do not print \`checking...' messages
1510 --cache-file=FILE cache test results in FILE [disabled]
1511 -C, --config-cache alias for \`--cache-file=config.cache'
1512 -n, --no-create do not create output files
1513 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1514
1515 Installation directories:
1516 --prefix=PREFIX install architecture-independent files in PREFIX
1517 [$ac_default_prefix]
1518 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1519 [PREFIX]
1520
1521 By default, \`make install' will install all the files in
1522 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1523 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524 for instance \`--prefix=\$HOME'.
1525
1526 For better control, use the options below.
1527
1528 Fine tuning of the installation directories:
1529 --bindir=DIR user executables [EPREFIX/bin]
1530 --sbindir=DIR system admin executables [EPREFIX/sbin]
1531 --libexecdir=DIR program executables [EPREFIX/libexec]
1532 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1533 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1534 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1548 _ACEOF
1549
1550 cat <<\_ACEOF
1551
1552 Program names:
1553 --program-prefix=PREFIX prepend PREFIX to installed program names
1554 --program-suffix=SUFFIX append SUFFIX to installed program names
1555 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1556
1557 System types:
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1560 --target=TARGET configure for building compilers for TARGET [HOST]
1561 _ACEOF
1562 fi
1563
1564 if test -n "$ac_init_help"; then
1565
1566 cat <<\_ACEOF
1567
1568 Optional Features:
1569 --disable-option-checking ignore unrecognized --enable/--with options
1570 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1571 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1572 --enable-generated-files-in-srcdir
1573 put copies of generated files in source dir intended
1574 for creating source tarballs for users without
1575 texinfo bison or flex
1576 --disable-largefile omit support for large files
1577 --disable-build-format-warnings
1578 don't use -Wformat while building GCC
1579 --enable-werror-always enable -Werror despite compiler version
1580 --enable-checking[=LIST]
1581 enable expensive run-time checks. With LIST, enable
1582 only specific categories of checks. Categories are:
1583 yes,no,all,none,release. Flags are:
1584 assert,df,fold,gc,gcac,gimple,misc,
1585 rtlflag,rtl,runtime,tree,valgrind,types
1586 --enable-coverage[=LEVEL]
1587 enable compiler's code coverage collection. Use to
1588 measure compiler performance and locate unused parts
1589 of the compiler. With LEVEL, specify optimization.
1590 Values are opt, noopt, default is noopt
1591 --enable-gather-detailed-mem-stats
1592 enable detailed memory allocation stats gathering
1593 --enable-valgrind-annotations
1594 enable valgrind runtime interaction
1595 --enable-multilib enable library support for multiple ABIs
1596 --enable-multiarch enable support for multiarch paths
1597 --enable-__cxa_atexit enable __cxa_atexit for C++
1598 --enable-decimal-float={no,yes,bid,dpd}
1599 enable decimal float extension to C. Selecting 'bid'
1600 or 'dpd' choses which decimal floating point format
1601 to use
1602 --enable-fixed-point enable fixed-point arithmetic extension to C
1603 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1604 package
1605 --enable-tls enable or disable generation of tls code overriding
1606 the assembler check for tls support
1607 --enable-objc-gc enable the use of Boehm's garbage collector with the
1608 GNU Objective-C runtime
1609 --disable-shared don't provide a shared libgcc
1610 --enable-languages=LIST specify which front-ends to build
1611 --disable-rpath do not hardcode runtime library paths
1612 --enable-sjlj-exceptions
1613 arrange to use setjmp/longjmp exception handling
1614 --enable-secureplt enable -msecure-plt by default for PowerPC
1615 --enable-leading-mingw64-underscores
1616 enable leading underscores on 64 bit mingw targets
1617 --enable-cld enable -mcld by default for 32bit x86
1618 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1619 x86
1620 --disable-win32-registry
1621 disable lookup of installation paths in the Registry
1622 on Windows hosts
1623 --enable-win32-registry enable registry lookup (default)
1624 --enable-win32-registry=KEY
1625 use KEY instead of GCC version as the last portion
1626 of the registry key
1627 --enable-shared[=PKGS] build shared libraries [default=yes]
1628 --enable-static[=PKGS] build static libraries [default=yes]
1629 --enable-fast-install[=PKGS]
1630 optimize for fast installation [default=yes]
1631 --disable-libtool-lock avoid locking (might break parallel builds)
1632 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1633 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1634 --enable-gnu-indirect-function
1635 enable the use of the @gnu_indirect_function to
1636 glibc systems
1637 --enable-initfini-array use .init_array/.fini_array sections
1638 --enable-comdat enable COMDAT group support
1639
1640 --enable-fix-cortex-a53-835769
1641 enable workaround for AArch64 Cortex-A53 erratum
1642 835769 by default
1643 --disable-fix-cortex-a53-835769
1644 disable workaround for AArch64 Cortex-A53 erratum
1645 835769 by default
1646
1647 --enable-gnu-unique-object
1648 enable the use of the @gnu_unique_object ELF
1649 extension on glibc systems
1650 --enable-linker-build-id
1651 compiler will always pass --build-id to linker
1652 --enable-maintainer-mode
1653 enable make rules and dependencies not useful (and
1654 sometimes confusing) to the casual installer
1655 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1656 thrashing on the build machine
1657 --enable-version-specific-runtime-libs
1658 specify that runtime libraries should be installed
1659 in a compiler-specific directory
1660 --enable-plugin enable plugin support
1661 --enable-host-shared build host code as shared libraries
1662 --disable-libquadmath-support
1663 disable libquadmath support for Fortran
1664
1665 Optional Packages:
1666 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1667 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1668 --with-build-libsubdir=DIR Directory where to find libraries for build system
1669 --with-local-prefix=DIR specifies directory to put local include
1670 --with-gxx-include-dir=DIR
1671 specifies directory to put g++ header files
1672 --with-cpp-install-dir=DIR
1673 install the user visible C preprocessor in DIR
1674 (relative to PREFIX) as well as PREFIX/bin
1675 --with-gnu-ld arrange to work with GNU ld
1676 --with-ld arrange to use the specified ld (full pathname)
1677 --with-demangler-in-ld try to use demangler in GNU ld
1678 --with-gnu-as arrange to work with GNU as
1679 --with-as arrange to use the specified as (full pathname)
1680 --with-stabs arrange to use stabs instead of host debug format
1681 --with-dwarf2 force the default debug format to be DWARF 2
1682 --with-native-system-header-dir=dir
1683 use dir as the directory to look for standard
1684 system header files in. Defaults to /usr/include.
1685 --with-build-sysroot=sysroot
1686 use sysroot as the system root during the build
1687 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1688 --with-specs=SPECS add SPECS to driver command-line processing
1689 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1690 --with-bugurl=URL Direct users to URL to report a bug
1691 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1692 --with-gnu-ld assume the C compiler uses GNU ld default=no
1693 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1694 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1695 --with-pic try to use only PIC/non-PIC objects [default=use
1696 both]
1697 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1698 --with-plugin-ld=[ARG] specify the plugin linker
1699 --with-glibc-version=M.N
1700 assume GCC used with glibc version M.N or later
1701 --with-long-double-128 use 128-bit long double by default
1702 --with-gc={page,zone} this option is not supported anymore. It used to
1703 choose the garbage collection mechanism to use with
1704 the compiler
1705 --with-system-zlib use installed libz
1706 --with-linker-hash-style={sysv,gnu,both}
1707 specify the linker hash style
1708
1709 Some influential environment variables:
1710 CC C compiler command
1711 CFLAGS C compiler flags
1712 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1713 nonstandard directory <lib dir>
1714 LIBS libraries to pass to the linker, e.g. -l<library>
1715 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1716 you have headers in a nonstandard directory <include dir>
1717 CXX C++ compiler command
1718 CXXFLAGS C++ compiler flags
1719 CPP C preprocessor
1720 CXXCPP C++ preprocessor
1721 GMPLIBS How to link GMP
1722 GMPINC How to find GMP include files
1723 ISLLIBS How to link ISL
1724 ISLINC How to find ISL include files
1725
1726 Use these variables to override the choices made by `configure' or to help
1727 it to find libraries and programs with nonstandard names/locations.
1728
1729 Report bugs to the package provider.
1730 _ACEOF
1731 ac_status=$?
1732 fi
1733
1734 if test "$ac_init_help" = "recursive"; then
1735 # If there are subdirs, report their specific --help.
1736 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1737 test -d "$ac_dir" ||
1738 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1739 continue
1740 ac_builddir=.
1741
1742 case "$ac_dir" in
1743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1744 *)
1745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1746 # A ".." for each directory in $ac_dir_suffix.
1747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1748 case $ac_top_builddir_sub in
1749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1751 esac ;;
1752 esac
1753 ac_abs_top_builddir=$ac_pwd
1754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1755 # for backward compatibility:
1756 ac_top_builddir=$ac_top_build_prefix
1757
1758 case $srcdir in
1759 .) # We are building in place.
1760 ac_srcdir=.
1761 ac_top_srcdir=$ac_top_builddir_sub
1762 ac_abs_top_srcdir=$ac_pwd ;;
1763 [\\/]* | ?:[\\/]* ) # Absolute name.
1764 ac_srcdir=$srcdir$ac_dir_suffix;
1765 ac_top_srcdir=$srcdir
1766 ac_abs_top_srcdir=$srcdir ;;
1767 *) # Relative name.
1768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1769 ac_top_srcdir=$ac_top_build_prefix$srcdir
1770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1771 esac
1772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1773
1774 cd "$ac_dir" || { ac_status=$?; continue; }
1775 # Check for guested configure.
1776 if test -f "$ac_srcdir/configure.gnu"; then
1777 echo &&
1778 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1779 elif test -f "$ac_srcdir/configure"; then
1780 echo &&
1781 $SHELL "$ac_srcdir/configure" --help=recursive
1782 else
1783 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1784 fi || ac_status=$?
1785 cd "$ac_pwd" || { ac_status=$?; break; }
1786 done
1787 fi
1788
1789 test -n "$ac_init_help" && exit $ac_status
1790 if $ac_init_version; then
1791 cat <<\_ACEOF
1792 configure
1793 generated by GNU Autoconf 2.64
1794
1795 Copyright (C) 2009 Free Software Foundation, Inc.
1796 This configure script is free software; the Free Software Foundation
1797 gives unlimited permission to copy, distribute and modify it.
1798 _ACEOF
1799 exit
1800 fi
1801
1802 ## ------------------------ ##
1803 ## Autoconf initialization. ##
1804 ## ------------------------ ##
1805
1806 # ac_fn_c_try_compile LINENO
1807 # --------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_compile ()
1810 {
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext
1813 if { { ac_try="$ac_compile"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_compile") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.$ac_objext; then :
1832 ac_retval=0
1833 else
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=1
1838 fi
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 return $ac_retval
1841
1842 } # ac_fn_c_try_compile
1843
1844 # ac_fn_cxx_try_compile LINENO
1845 # ----------------------------
1846 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_cxx_try_compile ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext
1851 if { { ac_try="$ac_compile"
1852 case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_compile") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1864 fi
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_cxx_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest.$ac_objext; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=1
1876 fi
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 return $ac_retval
1879
1880 } # ac_fn_cxx_try_compile
1881
1882 # ac_fn_c_try_cpp LINENO
1883 # ----------------------
1884 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_c_try_cpp ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_cpp conftest.$ac_ext"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1896 ac_status=$?
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1901 fi
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } >/dev/null && {
1904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1905 test ! -s conftest.err
1906 }; then :
1907 ac_retval=0
1908 else
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 ac_retval=1
1913 fi
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915 return $ac_retval
1916
1917 } # ac_fn_c_try_cpp
1918
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1923 # accordingly.
1924 ac_fn_c_check_header_mongrel ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932 fi
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 else
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 $4
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_header_compiler=yes
1947 else
1948 ac_header_compiler=no
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1953
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 ac_header_preproc=yes
1963 else
1964 ac_header_preproc=no
1965 fi
1966 rm -f conftest.err conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1969
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1972 yes:no: )
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 ;;
1978 no:yes:* )
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 ;;
1990 esac
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1995 else
1996 eval "$3=\$ac_header_compiler"
1997 fi
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 fi
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
2004 } # ac_fn_c_check_header_mongrel
2005
2006 # ac_fn_c_try_run LINENO
2007 # ----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2009 # that executables *can* be run.
2010 ac_fn_c_try_run ()
2011 {
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 if { { ac_try="$ac_link"
2014 case "(($ac_try" in
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2017 esac
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_link") 2>&5
2021 ac_status=$?
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2024 { { case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_try") 2>&5
2031 ac_status=$?
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; }; }; then :
2034 ac_retval=0
2035 else
2036 $as_echo "$as_me: program exited with status $ac_status" >&5
2037 $as_echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2039
2040 ac_retval=$ac_status
2041 fi
2042 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044 return $ac_retval
2045
2046 } # ac_fn_c_try_run
2047
2048 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2049 # -------------------------------------------------------
2050 # Tests whether HEADER exists and can be compiled using the include files in
2051 # INCLUDES, setting the cache variable VAR accordingly.
2052 ac_fn_c_check_header_compile ()
2053 {
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2058 $as_echo_n "(cached) " >&6
2059 else
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 $4
2063 #include <$2>
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066 eval "$3=yes"
2067 else
2068 eval "$3=no"
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 fi
2072 eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076
2077 } # ac_fn_c_check_header_compile
2078
2079 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2080 # --------------------------------------------
2081 # Tries to find the compile-time value of EXPR in a program that includes
2082 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2083 # computed
2084 ac_fn_c_compute_int ()
2085 {
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 if test "$cross_compiling" = yes; then
2088 # Depending upon the size, compute the lo and hi bounds.
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2091 $4
2092 int
2093 main ()
2094 {
2095 static int test_array [1 - 2 * !(($2) >= 0)];
2096 test_array [0] = 0
2097
2098 ;
2099 return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_lo=0 ac_mid=0
2104 while :; do
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2107 $4
2108 int
2109 main ()
2110 {
2111 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2112 test_array [0] = 0
2113
2114 ;
2115 return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_hi=$ac_mid; break
2120 else
2121 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2122 if test $ac_lo -le $ac_mid; then
2123 ac_lo= ac_hi=
2124 break
2125 fi
2126 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 done
2130 else
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2133 $4
2134 int
2135 main ()
2136 {
2137 static int test_array [1 - 2 * !(($2) < 0)];
2138 test_array [0] = 0
2139
2140 ;
2141 return 0;
2142 }
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 ac_hi=-1 ac_mid=-1
2146 while :; do
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 $4
2150 int
2151 main ()
2152 {
2153 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2154 test_array [0] = 0
2155
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_lo=$ac_mid; break
2162 else
2163 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2164 if test $ac_mid -le $ac_hi; then
2165 ac_lo= ac_hi=
2166 break
2167 fi
2168 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 done
2172 else
2173 ac_lo= ac_hi=
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 fi
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 # Binary search between lo and hi bounds.
2179 while test "x$ac_lo" != "x$ac_hi"; do
2180 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2183 $4
2184 int
2185 main ()
2186 {
2187 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2188 test_array [0] = 0
2189
2190 ;
2191 return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195 ac_hi=$ac_mid
2196 else
2197 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 done
2201 case $ac_lo in #((
2202 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2203 '') ac_retval=1 ;;
2204 esac
2205 else
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2208 $4
2209 static long int longval () { return $2; }
2210 static unsigned long int ulongval () { return $2; }
2211 #include <stdio.h>
2212 #include <stdlib.h>
2213 int
2214 main ()
2215 {
2216
2217 FILE *f = fopen ("conftest.val", "w");
2218 if (! f)
2219 return 1;
2220 if (($2) < 0)
2221 {
2222 long int i = longval ();
2223 if (i != ($2))
2224 return 1;
2225 fprintf (f, "%ld", i);
2226 }
2227 else
2228 {
2229 unsigned long int i = ulongval ();
2230 if (i != ($2))
2231 return 1;
2232 fprintf (f, "%lu", i);
2233 }
2234 /* Do not output a trailing newline, as this causes \r\n confusion
2235 on some platforms. */
2236 return ferror (f) || fclose (f) != 0;
2237
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_run "$LINENO"; then :
2243 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2244 else
2245 ac_retval=1
2246 fi
2247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2248 conftest.$ac_objext conftest.beam conftest.$ac_ext
2249 rm -f conftest.val
2250
2251 fi
2252 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2253 return $ac_retval
2254
2255 } # ac_fn_c_compute_int
2256
2257 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2258 # -------------------------------------------
2259 # Tests whether TYPE exists after having included INCLUDES, setting cache
2260 # variable VAR accordingly.
2261 ac_fn_c_check_type ()
2262 {
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2265 $as_echo_n "checking for $2... " >&6; }
2266 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2267 $as_echo_n "(cached) " >&6
2268 else
2269 eval "$3=no"
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2285 $4
2286 int
2287 main ()
2288 {
2289 if (sizeof (($2)))
2290 return 0;
2291 ;
2292 return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296
2297 else
2298 eval "$3=yes"
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 fi
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 fi
2304 eval ac_res=\$$3
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308
2309 } # ac_fn_c_check_type
2310
2311 # ac_fn_c_find_intX_t LINENO BITS VAR
2312 # -----------------------------------
2313 # Finds a signed integer type with width BITS, setting cache variable VAR
2314 # accordingly.
2315 ac_fn_c_find_intX_t ()
2316 {
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2319 $as_echo_n "checking for int$2_t... " >&6; }
2320 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2321 $as_echo_n "(cached) " >&6
2322 else
2323 eval "$3=no"
2324 for ac_type in int$2_t 'int' 'long int' \
2325 'long long int' 'short int' 'signed char'; do
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 $ac_includes_default
2329 int
2330 main ()
2331 {
2332 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2333 test_array [0] = 0
2334
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 if ac_fn_c_try_compile "$LINENO"; then :
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2342 $ac_includes_default
2343 int
2344 main ()
2345 {
2346 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2347 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2348 test_array [0] = 0
2349
2350 ;
2351 return 0;
2352 }
2353 _ACEOF
2354 if ac_fn_c_try_compile "$LINENO"; then :
2355
2356 else
2357 case $ac_type in #(
2358 int$2_t) :
2359 eval "$3=yes" ;; #(
2360 *) :
2361 eval "$3=\$ac_type" ;;
2362 esac
2363 fi
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 fi
2366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367 eval as_val=\$$3
2368 if test "x$as_val" = x""no; then :
2369
2370 else
2371 break
2372 fi
2373 done
2374 fi
2375 eval ac_res=\$$3
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379
2380 } # ac_fn_c_find_intX_t
2381
2382 # ac_fn_c_try_link LINENO
2383 # -----------------------
2384 # Try to link conftest.$ac_ext, and return whether this succeeded.
2385 ac_fn_c_try_link ()
2386 {
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 rm -f conftest.$ac_objext conftest$ac_exeext
2389 if { { ac_try="$ac_link"
2390 case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393 esac
2394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 $as_echo "$ac_try_echo"; } >&5
2396 (eval "$ac_link") 2>conftest.err
2397 ac_status=$?
2398 if test -s conftest.err; then
2399 grep -v '^ *+' conftest.err >conftest.er1
2400 cat conftest.er1 >&5
2401 mv -f conftest.er1 conftest.err
2402 fi
2403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2404 test $ac_status = 0; } && {
2405 test -z "$ac_c_werror_flag" ||
2406 test ! -s conftest.err
2407 } && test -s conftest$ac_exeext && {
2408 test "$cross_compiling" = yes ||
2409 $as_test_x conftest$ac_exeext
2410 }; then :
2411 ac_retval=0
2412 else
2413 $as_echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2415
2416 ac_retval=1
2417 fi
2418 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2419 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2420 # interfere with the next link command; also delete a directory that is
2421 # left behind by Apple's compiler. We do this before executing the actions.
2422 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2423 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2424 return $ac_retval
2425
2426 } # ac_fn_c_try_link
2427
2428 # ac_fn_c_find_uintX_t LINENO BITS VAR
2429 # ------------------------------------
2430 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2431 # accordingly.
2432 ac_fn_c_find_uintX_t ()
2433 {
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2436 $as_echo_n "checking for uint$2_t... " >&6; }
2437 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 eval "$3=no"
2441 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2442 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2445 $ac_includes_default
2446 int
2447 main ()
2448 {
2449 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2450 test_array [0] = 0
2451
2452 ;
2453 return 0;
2454 }
2455 _ACEOF
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457 case $ac_type in #(
2458 uint$2_t) :
2459 eval "$3=yes" ;; #(
2460 *) :
2461 eval "$3=\$ac_type" ;;
2462 esac
2463 fi
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 eval as_val=\$$3
2466 if test "x$as_val" = x""no; then :
2467
2468 else
2469 break
2470 fi
2471 done
2472 fi
2473 eval ac_res=\$$3
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477
2478 } # ac_fn_c_find_uintX_t
2479
2480 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2481 # ----------------------------------------------
2482 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2483 ac_fn_c_check_header_preproc ()
2484 {
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2487 $as_echo_n "checking for $2... " >&6; }
2488 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2493 #include <$2>
2494 _ACEOF
2495 if ac_fn_c_try_cpp "$LINENO"; then :
2496 eval "$3=yes"
2497 else
2498 eval "$3=no"
2499 fi
2500 rm -f conftest.err conftest.$ac_ext
2501 fi
2502 eval ac_res=\$$3
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2504 $as_echo "$ac_res" >&6; }
2505 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2506
2507 } # ac_fn_c_check_header_preproc
2508
2509 # ac_fn_cxx_try_cpp LINENO
2510 # ------------------------
2511 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2512 ac_fn_cxx_try_cpp ()
2513 {
2514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2515 if { { ac_try="$ac_cpp conftest.$ac_ext"
2516 case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519 esac
2520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2521 $as_echo "$ac_try_echo"; } >&5
2522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2523 ac_status=$?
2524 if test -s conftest.err; then
2525 grep -v '^ *+' conftest.err >conftest.er1
2526 cat conftest.er1 >&5
2527 mv -f conftest.er1 conftest.err
2528 fi
2529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2530 test $ac_status = 0; } >/dev/null && {
2531 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2532 test ! -s conftest.err
2533 }; then :
2534 ac_retval=0
2535 else
2536 $as_echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 ac_retval=1
2540 fi
2541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2542 return $ac_retval
2543
2544 } # ac_fn_cxx_try_cpp
2545
2546 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2547 # ------------------------------------------------
2548 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2549 ac_fn_cxx_check_header_preproc ()
2550 {
2551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553 $as_echo_n "checking for $2... " >&6; }
2554 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2559 #include <$2>
2560 _ACEOF
2561 if ac_fn_cxx_try_cpp "$LINENO"; then :
2562 eval "$3=yes"
2563 else
2564 eval "$3=no"
2565 fi
2566 rm -f conftest.err conftest.$ac_ext
2567 fi
2568 eval ac_res=\$$3
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570 $as_echo "$ac_res" >&6; }
2571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2572
2573 } # ac_fn_cxx_check_header_preproc
2574
2575 # ac_fn_c_check_func LINENO FUNC VAR
2576 # ----------------------------------
2577 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2578 ac_fn_c_check_func ()
2579 {
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2582 $as_echo_n "checking for $2... " >&6; }
2583 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2588 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2590 #define $2 innocuous_$2
2591
2592 /* System header to define __stub macros and hopefully few prototypes,
2593 which can conflict with char $2 (); below.
2594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2595 <limits.h> exists even on freestanding compilers. */
2596
2597 #ifdef __STDC__
2598 # include <limits.h>
2599 #else
2600 # include <assert.h>
2601 #endif
2602
2603 #undef $2
2604
2605 /* Override any GCC internal prototype to avoid an error.
2606 Use char because int might match the return type of a GCC
2607 builtin and then its argument prototype would still apply. */
2608 #ifdef __cplusplus
2609 extern "C"
2610 #endif
2611 char $2 ();
2612 /* The GNU C library defines this for functions which it implements
2613 to always fail with ENOSYS. Some functions are actually named
2614 something starting with __ and the normal name is an alias. */
2615 #if defined __stub_$2 || defined __stub___$2
2616 choke me
2617 #endif
2618
2619 int
2620 main ()
2621 {
2622 return $2 ();
2623 ;
2624 return 0;
2625 }
2626 _ACEOF
2627 if ac_fn_c_try_link "$LINENO"; then :
2628 eval "$3=yes"
2629 else
2630 eval "$3=no"
2631 fi
2632 rm -f core conftest.err conftest.$ac_objext \
2633 conftest$ac_exeext conftest.$ac_ext
2634 fi
2635 eval ac_res=\$$3
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2637 $as_echo "$ac_res" >&6; }
2638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2639
2640 } # ac_fn_c_check_func
2641
2642 # ac_fn_cxx_try_link LINENO
2643 # -------------------------
2644 # Try to link conftest.$ac_ext, and return whether this succeeded.
2645 ac_fn_cxx_try_link ()
2646 {
2647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2648 rm -f conftest.$ac_objext conftest$ac_exeext
2649 if { { ac_try="$ac_link"
2650 case "(($ac_try" in
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2653 esac
2654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2655 $as_echo "$ac_try_echo"; } >&5
2656 (eval "$ac_link") 2>conftest.err
2657 ac_status=$?
2658 if test -s conftest.err; then
2659 grep -v '^ *+' conftest.err >conftest.er1
2660 cat conftest.er1 >&5
2661 mv -f conftest.er1 conftest.err
2662 fi
2663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2664 test $ac_status = 0; } && {
2665 test -z "$ac_cxx_werror_flag" ||
2666 test ! -s conftest.err
2667 } && test -s conftest$ac_exeext && {
2668 test "$cross_compiling" = yes ||
2669 $as_test_x conftest$ac_exeext
2670 }; then :
2671 ac_retval=0
2672 else
2673 $as_echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676 ac_retval=1
2677 fi
2678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2680 # interfere with the next link command; also delete a directory that is
2681 # left behind by Apple's compiler. We do this before executing the actions.
2682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2684 return $ac_retval
2685
2686 } # ac_fn_cxx_try_link
2687 cat >config.log <<_ACEOF
2688 This file contains any messages produced by compilers while
2689 running configure, to aid debugging if configure makes a mistake.
2690
2691 It was created by $as_me, which was
2692 generated by GNU Autoconf 2.64. Invocation command line was
2693
2694 $ $0 $@
2695
2696 _ACEOF
2697 exec 5>>config.log
2698 {
2699 cat <<_ASUNAME
2700 ## --------- ##
2701 ## Platform. ##
2702 ## --------- ##
2703
2704 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2705 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2706 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2707 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2708 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2709
2710 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2711 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2712
2713 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2714 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2715 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2716 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2717 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2718 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2719 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2720
2721 _ASUNAME
2722
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 $as_echo "PATH: $as_dir"
2729 done
2730 IFS=$as_save_IFS
2731
2732 } >&5
2733
2734 cat >&5 <<_ACEOF
2735
2736
2737 ## ----------- ##
2738 ## Core tests. ##
2739 ## ----------- ##
2740
2741 _ACEOF
2742
2743
2744 # Keep a trace of the command line.
2745 # Strip out --no-create and --no-recursion so they do not pile up.
2746 # Strip out --silent because we don't want to record it for future runs.
2747 # Also quote any args containing shell meta-characters.
2748 # Make two passes to allow for proper duplicate-argument suppression.
2749 ac_configure_args=
2750 ac_configure_args0=
2751 ac_configure_args1=
2752 ac_must_keep_next=false
2753 for ac_pass in 1 2
2754 do
2755 for ac_arg
2756 do
2757 case $ac_arg in
2758 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2760 | -silent | --silent | --silen | --sile | --sil)
2761 continue ;;
2762 *\'*)
2763 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2764 esac
2765 case $ac_pass in
2766 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2767 2)
2768 as_fn_append ac_configure_args1 " '$ac_arg'"
2769 if test $ac_must_keep_next = true; then
2770 ac_must_keep_next=false # Got value, back to normal.
2771 else
2772 case $ac_arg in
2773 *=* | --config-cache | -C | -disable-* | --disable-* \
2774 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2775 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2776 | -with-* | --with-* | -without-* | --without-* | --x)
2777 case "$ac_configure_args0 " in
2778 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2779 esac
2780 ;;
2781 -* ) ac_must_keep_next=true ;;
2782 esac
2783 fi
2784 as_fn_append ac_configure_args " '$ac_arg'"
2785 ;;
2786 esac
2787 done
2788 done
2789 { ac_configure_args0=; unset ac_configure_args0;}
2790 { ac_configure_args1=; unset ac_configure_args1;}
2791
2792 # When interrupted or exit'd, cleanup temporary files, and complete
2793 # config.log. We remove comments because anyway the quotes in there
2794 # would cause problems or look ugly.
2795 # WARNING: Use '\'' to represent an apostrophe within the trap.
2796 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2797 trap 'exit_status=$?
2798 # Save into config.log some information that might help in debugging.
2799 {
2800 echo
2801
2802 cat <<\_ASBOX
2803 ## ---------------- ##
2804 ## Cache variables. ##
2805 ## ---------------- ##
2806 _ASBOX
2807 echo
2808 # The following way of writing the cache mishandles newlines in values,
2809 (
2810 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2811 eval ac_val=\$$ac_var
2812 case $ac_val in #(
2813 *${as_nl}*)
2814 case $ac_var in #(
2815 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2816 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2817 esac
2818 case $ac_var in #(
2819 _ | IFS | as_nl) ;; #(
2820 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2821 *) { eval $ac_var=; unset $ac_var;} ;;
2822 esac ;;
2823 esac
2824 done
2825 (set) 2>&1 |
2826 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2827 *${as_nl}ac_space=\ *)
2828 sed -n \
2829 "s/'\''/'\''\\\\'\'''\''/g;
2830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2831 ;; #(
2832 *)
2833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2834 ;;
2835 esac |
2836 sort
2837 )
2838 echo
2839
2840 cat <<\_ASBOX
2841 ## ----------------- ##
2842 ## Output variables. ##
2843 ## ----------------- ##
2844 _ASBOX
2845 echo
2846 for ac_var in $ac_subst_vars
2847 do
2848 eval ac_val=\$$ac_var
2849 case $ac_val in
2850 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2851 esac
2852 $as_echo "$ac_var='\''$ac_val'\''"
2853 done | sort
2854 echo
2855
2856 if test -n "$ac_subst_files"; then
2857 cat <<\_ASBOX
2858 ## ------------------- ##
2859 ## File substitutions. ##
2860 ## ------------------- ##
2861 _ASBOX
2862 echo
2863 for ac_var in $ac_subst_files
2864 do
2865 eval ac_val=\$$ac_var
2866 case $ac_val in
2867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2868 esac
2869 $as_echo "$ac_var='\''$ac_val'\''"
2870 done | sort
2871 echo
2872 fi
2873
2874 if test -s confdefs.h; then
2875 cat <<\_ASBOX
2876 ## ----------- ##
2877 ## confdefs.h. ##
2878 ## ----------- ##
2879 _ASBOX
2880 echo
2881 cat confdefs.h
2882 echo
2883 fi
2884 test "$ac_signal" != 0 &&
2885 $as_echo "$as_me: caught signal $ac_signal"
2886 $as_echo "$as_me: exit $exit_status"
2887 } >&5
2888 rm -f core *.core core.conftest.* &&
2889 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2890 exit $exit_status
2891 ' 0
2892 for ac_signal in 1 2 13 15; do
2893 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2894 done
2895 ac_signal=0
2896
2897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2898 rm -f -r conftest* confdefs.h
2899
2900 $as_echo "/* confdefs.h */" > confdefs.h
2901
2902 # Predefined preprocessor variables.
2903
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_NAME "$PACKAGE_NAME"
2906 _ACEOF
2907
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2910 _ACEOF
2911
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2914 _ACEOF
2915
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_STRING "$PACKAGE_STRING"
2918 _ACEOF
2919
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2922 _ACEOF
2923
2924 cat >>confdefs.h <<_ACEOF
2925 #define PACKAGE_URL "$PACKAGE_URL"
2926 _ACEOF
2927
2928
2929 # Let the site file select an alternate cache file if it wants to.
2930 # Prefer an explicitly selected file to automatically selected ones.
2931 ac_site_file1=NONE
2932 ac_site_file2=NONE
2933 if test -n "$CONFIG_SITE"; then
2934 ac_site_file1=$CONFIG_SITE
2935 elif test "x$prefix" != xNONE; then
2936 ac_site_file1=$prefix/share/config.site
2937 ac_site_file2=$prefix/etc/config.site
2938 else
2939 ac_site_file1=$ac_default_prefix/share/config.site
2940 ac_site_file2=$ac_default_prefix/etc/config.site
2941 fi
2942 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2943 do
2944 test "x$ac_site_file" = xNONE && continue
2945 if test -r "$ac_site_file"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2947 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2948 sed 's/^/| /' "$ac_site_file" >&5
2949 . "$ac_site_file"
2950 fi
2951 done
2952
2953 if test -r "$cache_file"; then
2954 # Some versions of bash will fail to source /dev/null (special
2955 # files actually), so we avoid doing that.
2956 if test -f "$cache_file"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2958 $as_echo "$as_me: loading cache $cache_file" >&6;}
2959 case $cache_file in
2960 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2961 *) . "./$cache_file";;
2962 esac
2963 fi
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2966 $as_echo "$as_me: creating cache $cache_file" >&6;}
2967 >$cache_file
2968 fi
2969
2970 # Check that the precious variables saved in the cache have kept the same
2971 # value.
2972 ac_cache_corrupted=false
2973 for ac_var in $ac_precious_vars; do
2974 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2975 eval ac_new_set=\$ac_env_${ac_var}_set
2976 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2977 eval ac_new_val=\$ac_env_${ac_var}_value
2978 case $ac_old_set,$ac_new_set in
2979 set,)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2981 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2982 ac_cache_corrupted=: ;;
2983 ,set)
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2985 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2986 ac_cache_corrupted=: ;;
2987 ,);;
2988 *)
2989 if test "x$ac_old_val" != "x$ac_new_val"; then
2990 # differences in whitespace do not lead to failure.
2991 ac_old_val_w=`echo x $ac_old_val`
2992 ac_new_val_w=`echo x $ac_new_val`
2993 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2995 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2996 ac_cache_corrupted=:
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2999 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3000 eval $ac_var=\$ac_old_val
3001 fi
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3003 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3005 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3006 fi;;
3007 esac
3008 # Pass precious variables to config.status.
3009 if test "$ac_new_set" = set; then
3010 case $ac_new_val in
3011 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3012 *) ac_arg=$ac_var=$ac_new_val ;;
3013 esac
3014 case " $ac_configure_args " in
3015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3016 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3017 esac
3018 fi
3019 done
3020 if $ac_cache_corrupted; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3024 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3025 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3026 fi
3027 ## -------------------- ##
3028 ## Main body of script. ##
3029 ## -------------------- ##
3030
3031 ac_ext=c
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036
3037
3038
3039
3040
3041
3042 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3043
3044
3045 gcc_version=`cat $srcdir/BASE-VER`
3046
3047 # Determine the host, build, and target systems
3048 ac_aux_dir=
3049 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3050 for ac_t in install-sh install.sh shtool; do
3051 if test -f "$ac_dir/$ac_t"; then
3052 ac_aux_dir=$ac_dir
3053 ac_install_sh="$ac_aux_dir/$ac_t -c"
3054 break 2
3055 fi
3056 done
3057 done
3058 if test -z "$ac_aux_dir"; then
3059 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3060 fi
3061
3062 # These three variables are undocumented and unsupported,
3063 # and are intended to be withdrawn in a future Autoconf release.
3064 # They can cause serious problems if a builder's source tree is in a directory
3065 # whose full name contains unusual characters.
3066 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3067 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3068 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3069
3070
3071 # Make sure we can run config.sub.
3072 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3073 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3074
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3076 $as_echo_n "checking build system type... " >&6; }
3077 if test "${ac_cv_build+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 ac_build_alias=$build_alias
3081 test "x$ac_build_alias" = x &&
3082 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3083 test "x$ac_build_alias" = x &&
3084 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3085 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3086 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3087
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3090 $as_echo "$ac_cv_build" >&6; }
3091 case $ac_cv_build in
3092 *-*-*) ;;
3093 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3094 esac
3095 build=$ac_cv_build
3096 ac_save_IFS=$IFS; IFS='-'
3097 set x $ac_cv_build
3098 shift
3099 build_cpu=$1
3100 build_vendor=$2
3101 shift; shift
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3104 build_os=$*
3105 IFS=$ac_save_IFS
3106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3107
3108
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3110 $as_echo_n "checking host system type... " >&6; }
3111 if test "${ac_cv_host+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test "x$host_alias" = x; then
3115 ac_cv_host=$ac_cv_build
3116 else
3117 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3118 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3119 fi
3120
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3123 $as_echo "$ac_cv_host" >&6; }
3124 case $ac_cv_host in
3125 *-*-*) ;;
3126 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3127 esac
3128 host=$ac_cv_host
3129 ac_save_IFS=$IFS; IFS='-'
3130 set x $ac_cv_host
3131 shift
3132 host_cpu=$1
3133 host_vendor=$2
3134 shift; shift
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3137 host_os=$*
3138 IFS=$ac_save_IFS
3139 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3140
3141
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3143 $as_echo_n "checking target system type... " >&6; }
3144 if test "${ac_cv_target+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test "x$target_alias" = x; then
3148 ac_cv_target=$ac_cv_host
3149 else
3150 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3151 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3152 fi
3153
3154 fi
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3156 $as_echo "$ac_cv_target" >&6; }
3157 case $ac_cv_target in
3158 *-*-*) ;;
3159 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3160 esac
3161 target=$ac_cv_target
3162 ac_save_IFS=$IFS; IFS='-'
3163 set x $ac_cv_target
3164 shift
3165 target_cpu=$1
3166 target_vendor=$2
3167 shift; shift
3168 # Remember, the first character of IFS is used to create $*,
3169 # except with old shells:
3170 target_os=$*
3171 IFS=$ac_save_IFS
3172 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3173
3174
3175 # The aliases save the names the user supplied, while $host etc.
3176 # will get canonicalized.
3177 test -n "$target_alias" &&
3178 test "$program_prefix$program_suffix$program_transform_name" = \
3179 NONENONEs,x,x, &&
3180 program_prefix=${target_alias}-
3181
3182 # Determine the noncanonical target name, for directory use.
3183 case ${build_alias} in
3184 "") build_noncanonical=${build} ;;
3185 *) build_noncanonical=${build_alias} ;;
3186 esac
3187
3188 case ${host_alias} in
3189 "") host_noncanonical=${build_noncanonical} ;;
3190 *) host_noncanonical=${host_alias} ;;
3191 esac
3192
3193 case ${target_alias} in
3194 "") target_noncanonical=${host_noncanonical} ;;
3195 *) target_noncanonical=${target_alias} ;;
3196 esac
3197
3198
3199
3200
3201 # Determine the target- and build-specific subdirectories
3202
3203 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3204 # have matching libraries, they should use host libraries: Makefile.tpl
3205 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3206 # However, they still use the build modules, because the corresponding
3207 # host modules (e.g. bison) are only built for the host when bootstrap
3208 # finishes. So:
3209 # - build_subdir is where we find build modules, and never changes.
3210 # - build_libsubdir is where we find build libraries, and can be overridden.
3211
3212 # Prefix 'build-' so this never conflicts with target_subdir.
3213 build_subdir="build-${build_noncanonical}"
3214
3215 # Check whether --with-build-libsubdir was given.
3216 if test "${with_build_libsubdir+set}" = set; then :
3217 withval=$with_build_libsubdir; build_libsubdir="$withval"
3218 else
3219 build_libsubdir="$build_subdir"
3220 fi
3221
3222 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3223 if ( test $srcdir = . && test -d gcc ) \
3224 || test -d $srcdir/../host-${host_noncanonical}; then
3225 host_subdir="host-${host_noncanonical}"
3226 else
3227 host_subdir=.
3228 fi
3229 # No prefix.
3230 target_subdir=${target_noncanonical}
3231
3232
3233 # Set program_transform_name
3234 test "$program_prefix" != NONE &&
3235 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3236 # Use a double $ so make ignores it.
3237 test "$program_suffix" != NONE &&
3238 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3239 # Double any \ or $.
3240 # By default was `s,x,x', remove it if useless.
3241 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3242 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3243
3244
3245 # Check for bogus environment variables.
3246 # Test if LIBRARY_PATH contains the notation for the current directory
3247 # since this would lead to problems installing/building glibc.
3248 # LIBRARY_PATH contains the current directory if one of the following
3249 # is true:
3250 # - one of the terminals (":" and ";") is the first or last sign
3251 # - two terminals occur directly after each other
3252 # - the path contains an element with a dot in it
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3254 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3255 case ${LIBRARY_PATH} in
3256 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3257 library_path_setting="contains current directory"
3258 ;;
3259 *)
3260 library_path_setting="ok"
3261 ;;
3262 esac
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3264 $as_echo "$library_path_setting" >&6; }
3265 if test "$library_path_setting" != "ok"; then
3266 as_fn_error "
3267 *** LIBRARY_PATH shouldn't contain the current directory when
3268 *** building gcc. Please change the environment variable
3269 *** and run configure again." "$LINENO" 5
3270 fi
3271
3272 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3273 # since this would lead to problems installing/building glibc.
3274 # GCC_EXEC_PREFIX contains the current directory if one of the following
3275 # is true:
3276 # - one of the terminals (":" and ";") is the first or last sign
3277 # - two terminals occur directly after each other
3278 # - the path contains an element with a dot in it
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3280 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3281 case ${GCC_EXEC_PREFIX} in
3282 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3283 gcc_exec_prefix_setting="contains current directory"
3284 ;;
3285 *)
3286 gcc_exec_prefix_setting="ok"
3287 ;;
3288 esac
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3290 $as_echo "$gcc_exec_prefix_setting" >&6; }
3291 if test "$gcc_exec_prefix_setting" != "ok"; then
3292 as_fn_error "
3293 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3294 *** building gcc. Please change the environment variable
3295 *** and run configure again." "$LINENO" 5
3296 fi
3297
3298 # -----------
3299 # Directories
3300 # -----------
3301
3302 # Specify the local prefix
3303 local_prefix=
3304
3305 # Check whether --with-local-prefix was given.
3306 if test "${with_local_prefix+set}" = set; then :
3307 withval=$with_local_prefix; case "${withval}" in
3308 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3309 no) ;;
3310 *) local_prefix=$with_local_prefix ;;
3311 esac
3312 fi
3313
3314
3315 # Default local prefix if it is empty
3316 if test x$local_prefix = x; then
3317 local_prefix=/usr/local
3318 fi
3319
3320 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3321 # passed in by the toplevel make and thus we'd get different behavior
3322 # depending on where we built the sources.
3323 gcc_gxx_include_dir=
3324 # Specify the g++ header file directory
3325
3326 # Check whether --with-gxx-include-dir was given.
3327 if test "${with_gxx_include_dir+set}" = set; then :
3328 withval=$with_gxx_include_dir; case "${withval}" in
3329 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3330 no) ;;
3331 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3332 esac
3333 fi
3334
3335
3336 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3337 if test x${gcc_gxx_include_dir} = x; then
3338 if test x${enable_version_specific_runtime_libs} = xyes; then
3339 gcc_gxx_include_dir='${libsubdir}/include/c++'
3340 else
3341 libstdcxx_incdir='include/c++/$(version)'
3342 if test x$host != x$target; then
3343 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3344 fi
3345 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3346 fi
3347 fi
3348
3349 gcc_gxx_include_dir_add_sysroot=0
3350 if test "${with_sysroot+set}" = set; then
3351 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3352 if test "${gcc_gxx_without_sysroot}"; then
3353 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3354 gcc_gxx_include_dir_add_sysroot=1
3355 fi
3356 fi
3357
3358
3359 # Check whether --with-cpp_install_dir was given.
3360 if test "${with_cpp_install_dir+set}" = set; then :
3361 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3362 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3363 elif test x$withval != xno; then
3364 cpp_install_dir=$withval
3365 fi
3366 fi
3367
3368
3369 # We would like to our source tree to be readonly. However when releases or
3370 # pre-releases are generated, the flex/bison generated files as well as the
3371 # various formats of manuals need to be included along with the rest of the
3372 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3373 # just that.
3374
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3376 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3377 # Check whether --enable-generated-files-in-srcdir was given.
3378 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3379 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3380 else
3381 generated_files_in_srcdir=no
3382 fi
3383
3384
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3386 $as_echo "$generated_files_in_srcdir" >&6; }
3387
3388 if test "$generated_files_in_srcdir" = "yes"; then
3389 GENINSRC=''
3390 else
3391 GENINSRC='#'
3392 fi
3393
3394
3395 # -------------------
3396 # Find default linker
3397 # -------------------
3398
3399 # With GNU ld
3400
3401 # Check whether --with-gnu-ld was given.
3402 if test "${with_gnu_ld+set}" = set; then :
3403 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3404 else
3405 gnu_ld_flag=no
3406 fi
3407
3408
3409 # With pre-defined ld
3410
3411 # Check whether --with-ld was given.
3412 if test "${with_ld+set}" = set; then :
3413 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3414 fi
3415
3416 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3417 if test ! -x "$DEFAULT_LINKER"; then
3418 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3419 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3420 gnu_ld_flag=yes
3421 fi
3422
3423 cat >>confdefs.h <<_ACEOF
3424 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3425 _ACEOF
3426
3427 fi
3428
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3430 $as_echo_n "checking whether a default linker was specified... " >&6; }
3431 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3432 if test x"$gnu_ld_flag" = x"no"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3434 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3437 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3438 fi
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444 # With demangler in GNU ld
3445
3446 # Check whether --with-demangler-in-ld was given.
3447 if test "${with_demangler_in_ld+set}" = set; then :
3448 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3449 else
3450 demangler_in_ld=yes
3451 fi
3452
3453
3454 # ----------------------
3455 # Find default assembler
3456 # ----------------------
3457
3458 # With GNU as
3459
3460 # Check whether --with-gnu-as was given.
3461 if test "${with_gnu_as+set}" = set; then :
3462 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3463 else
3464 gas_flag=no
3465 fi
3466
3467
3468
3469 # Check whether --with-as was given.
3470 if test "${with_as+set}" = set; then :
3471 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3472 fi
3473
3474 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3475 if test ! -x "$DEFAULT_ASSEMBLER"; then
3476 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3477 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3478 gas_flag=yes
3479 fi
3480
3481 cat >>confdefs.h <<_ACEOF
3482 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3483 _ACEOF
3484
3485 fi
3486
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3488 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3489 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3490 if test x"$gas_flag" = x"no"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3492 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3495 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3496 fi
3497 else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3500 fi
3501
3502 # ---------------
3503 # Find C compiler
3504 # ---------------
3505
3506 # If a non-executable a.out is present (e.g. created by GNU as above even if
3507 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3508 # file, even when creating an executable, so an execution test fails.
3509 # Remove possible default executable files to avoid this.
3510 #
3511 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3512 # Autoconf includes it.
3513 rm -f a.out a.exe b.out
3514
3515 # Find the native compiler
3516 ac_ext=c
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521 if test -n "$ac_tool_prefix"; then
3522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if test "${ac_cv_prog_CC+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if test -n "$CC"; then
3530 ac_cv_prog_CC="$CC" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543 done
3544 done
3545 IFS=$as_save_IFS
3546
3547 fi
3548 fi
3549 CC=$ac_cv_prog_CC
3550 if test -n "$CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3552 $as_echo "$CC" >&6; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 fi
3557
3558
3559 fi
3560 if test -z "$ac_cv_prog_CC"; then
3561 ac_ct_CC=$CC
3562 # Extract the first word of "gcc", so it can be a program name with args.
3563 set dummy gcc; ac_word=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 if test -n "$ac_ct_CC"; then
3570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579 ac_cv_prog_ac_ct_CC="gcc"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3582 fi
3583 done
3584 done
3585 IFS=$as_save_IFS
3586
3587 fi
3588 fi
3589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3590 if test -n "$ac_ct_CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3592 $as_echo "$ac_ct_CC" >&6; }
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 fi
3597
3598 if test "x$ac_ct_CC" = x; then
3599 CC=""
3600 else
3601 case $cross_compiling:$ac_tool_warned in
3602 yes:)
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3605 ac_tool_warned=yes ;;
3606 esac
3607 CC=$ac_ct_CC
3608 fi
3609 else
3610 CC="$ac_cv_prog_CC"
3611 fi
3612
3613 if test -z "$CC"; then
3614 if test -n "$ac_tool_prefix"; then
3615 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3616 set dummy ${ac_tool_prefix}cc; ac_word=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if test "${ac_cv_prog_CC+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 if test -n "$CC"; then
3623 ac_cv_prog_CC="$CC" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3632 ac_cv_prog_CC="${ac_tool_prefix}cc"
3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 break 2
3635 fi
3636 done
3637 done
3638 IFS=$as_save_IFS
3639
3640 fi
3641 fi
3642 CC=$ac_cv_prog_CC
3643 if test -n "$CC"; then
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3645 $as_echo "$CC" >&6; }
3646 else
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3649 fi
3650
3651
3652 fi
3653 fi
3654 if test -z "$CC"; then
3655 # Extract the first word of "cc", so it can be a program name with args.
3656 set dummy cc; ac_word=$2
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 $as_echo_n "checking for $ac_word... " >&6; }
3659 if test "${ac_cv_prog_CC+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 if test -n "$CC"; then
3663 ac_cv_prog_CC="$CC" # Let the user override the test.
3664 else
3665 ac_prog_rejected=no
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3674 ac_prog_rejected=yes
3675 continue
3676 fi
3677 ac_cv_prog_CC="cc"
3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681 done
3682 done
3683 IFS=$as_save_IFS
3684
3685 if test $ac_prog_rejected = yes; then
3686 # We found a bogon in the path, so make sure we never use it.
3687 set dummy $ac_cv_prog_CC
3688 shift
3689 if test $# != 0; then
3690 # We chose a different compiler from the bogus one.
3691 # However, it has the same basename, so the bogon will be chosen
3692 # first if we set CC to just the basename; use the full file name.
3693 shift
3694 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3695 fi
3696 fi
3697 fi
3698 fi
3699 CC=$ac_cv_prog_CC
3700 if test -n "$CC"; then
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3702 $as_echo "$CC" >&6; }
3703 else
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3706 fi
3707
3708
3709 fi
3710 if test -z "$CC"; then
3711 if test -n "$ac_tool_prefix"; then
3712 for ac_prog in cl.exe
3713 do
3714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717 $as_echo_n "checking for $ac_word... " >&6; }
3718 if test "${ac_cv_prog_CC+set}" = set; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 if test -n "$CC"; then
3722 ac_cv_prog_CC="$CC" # Let the user override the test.
3723 else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3731 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 break 2
3734 fi
3735 done
3736 done
3737 IFS=$as_save_IFS
3738
3739 fi
3740 fi
3741 CC=$ac_cv_prog_CC
3742 if test -n "$CC"; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744 $as_echo "$CC" >&6; }
3745 else
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3748 fi
3749
3750
3751 test -n "$CC" && break
3752 done
3753 fi
3754 if test -z "$CC"; then
3755 ac_ct_CC=$CC
3756 for ac_prog in cl.exe
3757 do
3758 # Extract the first word of "$ac_prog", so it can be a program name with args.
3759 set dummy $ac_prog; ac_word=$2
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 $as_echo_n "checking for $ac_word... " >&6; }
3762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3764 else
3765 if test -n "$ac_ct_CC"; then
3766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3770 do
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3775 ac_cv_prog_ac_ct_CC="$ac_prog"
3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3778 fi
3779 done
3780 done
3781 IFS=$as_save_IFS
3782
3783 fi
3784 fi
3785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3786 if test -n "$ac_ct_CC"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3788 $as_echo "$ac_ct_CC" >&6; }
3789 else
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3792 fi
3793
3794
3795 test -n "$ac_ct_CC" && break
3796 done
3797
3798 if test "x$ac_ct_CC" = x; then
3799 CC=""
3800 else
3801 case $cross_compiling:$ac_tool_warned in
3802 yes:)
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3805 ac_tool_warned=yes ;;
3806 esac
3807 CC=$ac_ct_CC
3808 fi
3809 fi
3810
3811 fi
3812
3813
3814 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3816 as_fn_error "no acceptable C compiler found in \$PATH
3817 See \`config.log' for more details." "$LINENO" 5; }
3818
3819 # Provide some information about the compiler.
3820 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3821 set X $ac_compile
3822 ac_compiler=$2
3823 for ac_option in --version -v -V -qversion; do
3824 { { ac_try="$ac_compiler $ac_option >&5"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3832 ac_status=$?
3833 if test -s conftest.err; then
3834 sed '10a\
3835 ... rest of stderr output deleted ...
3836 10q' conftest.err >conftest.er1
3837 cat conftest.er1 >&5
3838 rm -f conftest.er1 conftest.err
3839 fi
3840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; }
3842 done
3843
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846
3847 int
3848 main ()
3849 {
3850
3851 ;
3852 return 0;
3853 }
3854 _ACEOF
3855 ac_clean_files_save=$ac_clean_files
3856 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3857 # Try to create an executable without -o first, disregard a.out.
3858 # It will help us diagnose broken compilers, and finding out an intuition
3859 # of exeext.
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3861 $as_echo_n "checking for C compiler default output file name... " >&6; }
3862 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3863
3864 # The possible output files:
3865 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3866
3867 ac_rmfiles=
3868 for ac_file in $ac_files
3869 do
3870 case $ac_file in
3871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3872 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3873 esac
3874 done
3875 rm -f $ac_rmfiles
3876
3877 if { { ac_try="$ac_link_default"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_link_default") 2>&5
3885 ac_status=$?
3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }; then :
3888 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3889 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3890 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3891 # so that the user can short-circuit this test for compilers unknown to
3892 # Autoconf.
3893 for ac_file in $ac_files ''
3894 do
3895 test -f "$ac_file" || continue
3896 case $ac_file in
3897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3898 ;;
3899 [ab].out )
3900 # We found the default executable, but exeext='' is most
3901 # certainly right.
3902 break;;
3903 *.* )
3904 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3905 then :; else
3906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3907 fi
3908 # We set ac_cv_exeext here because the later test for it is not
3909 # safe: cross compilers may not add the suffix if given an `-o'
3910 # argument, so we may need to know it at that point already.
3911 # Even if this section looks crufty: it has the advantage of
3912 # actually working.
3913 break;;
3914 * )
3915 break;;
3916 esac
3917 done
3918 test "$ac_cv_exeext" = no && ac_cv_exeext=
3919
3920 else
3921 ac_file=''
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3924 $as_echo "$ac_file" >&6; }
3925 if test -z "$ac_file"; then :
3926 $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 { as_fn_set_status 77
3932 as_fn_error "C compiler cannot create executables
3933 See \`config.log' for more details." "$LINENO" 5; }; }
3934 fi
3935 ac_exeext=$ac_cv_exeext
3936
3937 # Check that the compiler produces executables we can run. If not, either
3938 # the compiler is broken, or we cross compile.
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3940 $as_echo_n "checking whether the C compiler works... " >&6; }
3941 # If not cross compiling, check that we can run a simple program.
3942 if test "$cross_compiling" != yes; then
3943 if { ac_try='./$ac_file'
3944 { { case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949 $as_echo "$ac_try_echo"; } >&5
3950 (eval "$ac_try") 2>&5
3951 ac_status=$?
3952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953 test $ac_status = 0; }; }; then
3954 cross_compiling=no
3955 else
3956 if test "$cross_compiling" = maybe; then
3957 cross_compiling=yes
3958 else
3959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3961 as_fn_error "cannot run C compiled programs.
3962 If you meant to cross compile, use \`--host'.
3963 See \`config.log' for more details." "$LINENO" 5; }
3964 fi
3965 fi
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3968 $as_echo "yes" >&6; }
3969
3970 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3971 ac_clean_files=$ac_clean_files_save
3972 # Check that the compiler produces executables we can run. If not, either
3973 # the compiler is broken, or we cross compile.
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3975 $as_echo_n "checking whether we are cross compiling... " >&6; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3977 $as_echo "$cross_compiling" >&6; }
3978
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3980 $as_echo_n "checking for suffix of executables... " >&6; }
3981 if { { ac_try="$ac_link"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3987 $as_echo "$ac_try_echo"; } >&5
3988 (eval "$ac_link") 2>&5
3989 ac_status=$?
3990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3991 test $ac_status = 0; }; then :
3992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3993 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3994 # work properly (i.e., refer to `conftest.exe'), while it won't with
3995 # `rm'.
3996 for ac_file in conftest.exe conftest conftest.*; do
3997 test -f "$ac_file" || continue
3998 case $ac_file in
3999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001 break;;
4002 * ) break;;
4003 esac
4004 done
4005 else
4006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4008 as_fn_error "cannot compute suffix of executables: cannot compile and link
4009 See \`config.log' for more details." "$LINENO" 5; }
4010 fi
4011 rm -f conftest$ac_cv_exeext
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4013 $as_echo "$ac_cv_exeext" >&6; }
4014
4015 rm -f conftest.$ac_ext
4016 EXEEXT=$ac_cv_exeext
4017 ac_exeext=$EXEEXT
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4019 $as_echo_n "checking for suffix of object files... " >&6; }
4020 if test "${ac_cv_objext+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025
4026 int
4027 main ()
4028 {
4029
4030 ;
4031 return 0;
4032 }
4033 _ACEOF
4034 rm -f conftest.o conftest.obj
4035 if { { ac_try="$ac_compile"
4036 case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4041 $as_echo "$ac_try_echo"; } >&5
4042 (eval "$ac_compile") 2>&5
4043 ac_status=$?
4044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045 test $ac_status = 0; }; then :
4046 for ac_file in conftest.o conftest.obj conftest.*; do
4047 test -f "$ac_file" || continue;
4048 case $ac_file in
4049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4051 break;;
4052 esac
4053 done
4054 else
4055 $as_echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4057
4058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4060 as_fn_error "cannot compute suffix of object files: cannot compile
4061 See \`config.log' for more details." "$LINENO" 5; }
4062 fi
4063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4066 $as_echo "$ac_cv_objext" >&6; }
4067 OBJEXT=$ac_cv_objext
4068 ac_objext=$OBJEXT
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4070 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4071 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076
4077 int
4078 main ()
4079 {
4080 #ifndef __GNUC__
4081 choke me
4082 #endif
4083
4084 ;
4085 return 0;
4086 }
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_compiler_gnu=yes
4090 else
4091 ac_compiler_gnu=no
4092 fi
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4095
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4098 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4099 if test $ac_compiler_gnu = yes; then
4100 GCC=yes
4101 else
4102 GCC=
4103 fi
4104 ac_test_CFLAGS=${CFLAGS+set}
4105 ac_save_CFLAGS=$CFLAGS
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4107 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4108 if test "${ac_cv_prog_cc_g+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 ac_save_c_werror_flag=$ac_c_werror_flag
4112 ac_c_werror_flag=yes
4113 ac_cv_prog_cc_g=no
4114 CFLAGS="-g"
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117
4118 int
4119 main ()
4120 {
4121
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_prog_cc_g=yes
4128 else
4129 CFLAGS=""
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132
4133 int
4134 main ()
4135 {
4136
4137 ;
4138 return 0;
4139 }
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142
4143 else
4144 ac_c_werror_flag=$ac_save_c_werror_flag
4145 CFLAGS="-g"
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148
4149 int
4150 main ()
4151 {
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_cv_prog_cc_g=yes
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 fi
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 fi
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 ac_c_werror_flag=$ac_save_c_werror_flag
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4168 $as_echo "$ac_cv_prog_cc_g" >&6; }
4169 if test "$ac_test_CFLAGS" = set; then
4170 CFLAGS=$ac_save_CFLAGS
4171 elif test $ac_cv_prog_cc_g = yes; then
4172 if test "$GCC" = yes; then
4173 CFLAGS="-g -O2"
4174 else
4175 CFLAGS="-g"
4176 fi
4177 else
4178 if test "$GCC" = yes; then
4179 CFLAGS="-O2"
4180 else
4181 CFLAGS=
4182 fi
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4185 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4186 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 ac_cv_prog_cc_c89=no
4190 ac_save_CC=$CC
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193 #include <stdarg.h>
4194 #include <stdio.h>
4195 #include <sys/types.h>
4196 #include <sys/stat.h>
4197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4198 struct buf { int x; };
4199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4200 static char *e (p, i)
4201 char **p;
4202 int i;
4203 {
4204 return p[i];
4205 }
4206 static char *f (char * (*g) (char **, int), char **p, ...)
4207 {
4208 char *s;
4209 va_list v;
4210 va_start (v,p);
4211 s = g (p, va_arg (v,int));
4212 va_end (v);
4213 return s;
4214 }
4215
4216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4217 function prototypes and stuff, but not '\xHH' hex character constants.
4218 These don't provoke an error unfortunately, instead are silently treated
4219 as 'x'. The following induces an error, until -std is added to get
4220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4221 array size at least. It's necessary to write '\x00'==0 to get something
4222 that's true only with -std. */
4223 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4224
4225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4226 inside strings and character constants. */
4227 #define FOO(x) 'x'
4228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4229
4230 int test (int i, double x);
4231 struct s1 {int (*f) (int a);};
4232 struct s2 {int (*f) (double a);};
4233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4234 int argc;
4235 char **argv;
4236 int
4237 main ()
4238 {
4239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4240 ;
4241 return 0;
4242 }
4243 _ACEOF
4244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4246 do
4247 CC="$ac_save_CC $ac_arg"
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_cv_prog_cc_c89=$ac_arg
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext
4252 test "x$ac_cv_prog_cc_c89" != "xno" && break
4253 done
4254 rm -f conftest.$ac_ext
4255 CC=$ac_save_CC
4256
4257 fi
4258 # AC_CACHE_VAL
4259 case "x$ac_cv_prog_cc_c89" in
4260 x)
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4262 $as_echo "none needed" >&6; } ;;
4263 xno)
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4265 $as_echo "unsupported" >&6; } ;;
4266 *)
4267 CC="$CC $ac_cv_prog_cc_c89"
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4269 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4270 esac
4271 if test "x$ac_cv_prog_cc_c89" != xno; then :
4272
4273 fi
4274
4275 ac_ext=c
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280
4281 ac_ext=cpp
4282 ac_cpp='$CXXCPP $CPPFLAGS'
4283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4286 if test -z "$CXX"; then
4287 if test -n "$CCC"; then
4288 CXX=$CCC
4289 else
4290 if test -n "$ac_tool_prefix"; then
4291 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4292 do
4293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if test "${ac_cv_prog_CXX+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 if test -n "$CXX"; then
4301 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4305 do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4313 fi
4314 done
4315 done
4316 IFS=$as_save_IFS
4317
4318 fi
4319 fi
4320 CXX=$ac_cv_prog_CXX
4321 if test -n "$CXX"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4323 $as_echo "$CXX" >&6; }
4324 else
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4327 fi
4328
4329
4330 test -n "$CXX" && break
4331 done
4332 fi
4333 if test -z "$CXX"; then
4334 ac_ct_CXX=$CXX
4335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4336 do
4337 # Extract the first word of "$ac_prog", so it can be a program name with args.
4338 set dummy $ac_prog; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test -n "$ac_ct_CXX"; then
4345 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4354 ac_cv_prog_ac_ct_CXX="$ac_prog"
4355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4357 fi
4358 done
4359 done
4360 IFS=$as_save_IFS
4361
4362 fi
4363 fi
4364 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4365 if test -n "$ac_ct_CXX"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4367 $as_echo "$ac_ct_CXX" >&6; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4371 fi
4372
4373
4374 test -n "$ac_ct_CXX" && break
4375 done
4376
4377 if test "x$ac_ct_CXX" = x; then
4378 CXX="g++"
4379 else
4380 case $cross_compiling:$ac_tool_warned in
4381 yes:)
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384 ac_tool_warned=yes ;;
4385 esac
4386 CXX=$ac_ct_CXX
4387 fi
4388 fi
4389
4390 fi
4391 fi
4392 # Provide some information about the compiler.
4393 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4394 set X $ac_compile
4395 ac_compiler=$2
4396 for ac_option in --version -v -V -qversion; do
4397 { { ac_try="$ac_compiler $ac_option >&5"
4398 case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401 esac
4402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403 $as_echo "$ac_try_echo"; } >&5
4404 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4405 ac_status=$?
4406 if test -s conftest.err; then
4407 sed '10a\
4408 ... rest of stderr output deleted ...
4409 10q' conftest.err >conftest.er1
4410 cat conftest.er1 >&5
4411 rm -f conftest.er1 conftest.err
4412 fi
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }
4415 done
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4418 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4419 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4424
4425 int
4426 main ()
4427 {
4428 #ifndef __GNUC__
4429 choke me
4430 #endif
4431
4432 ;
4433 return 0;
4434 }
4435 _ACEOF
4436 if ac_fn_cxx_try_compile "$LINENO"; then :
4437 ac_compiler_gnu=yes
4438 else
4439 ac_compiler_gnu=no
4440 fi
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4443
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4446 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4447 if test $ac_compiler_gnu = yes; then
4448 GXX=yes
4449 else
4450 GXX=
4451 fi
4452 ac_test_CXXFLAGS=${CXXFLAGS+set}
4453 ac_save_CXXFLAGS=$CXXFLAGS
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4455 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4456 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4460 ac_cxx_werror_flag=yes
4461 ac_cv_prog_cxx_g=no
4462 CXXFLAGS="-g"
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465
4466 int
4467 main ()
4468 {
4469
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 if ac_fn_cxx_try_compile "$LINENO"; then :
4475 ac_cv_prog_cxx_g=yes
4476 else
4477 CXXFLAGS=""
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4480
4481 int
4482 main ()
4483 {
4484
4485 ;
4486 return 0;
4487 }
4488 _ACEOF
4489 if ac_fn_cxx_try_compile "$LINENO"; then :
4490
4491 else
4492 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4493 CXXFLAGS="-g"
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496
4497 int
4498 main ()
4499 {
4500
4501 ;
4502 return 0;
4503 }
4504 _ACEOF
4505 if ac_fn_cxx_try_compile "$LINENO"; then :
4506 ac_cv_prog_cxx_g=yes
4507 fi
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 fi
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 fi
4512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4516 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4517 if test "$ac_test_CXXFLAGS" = set; then
4518 CXXFLAGS=$ac_save_CXXFLAGS
4519 elif test $ac_cv_prog_cxx_g = yes; then
4520 if test "$GXX" = yes; then
4521 CXXFLAGS="-g -O2"
4522 else
4523 CXXFLAGS="-g"
4524 fi
4525 else
4526 if test "$GXX" = yes; then
4527 CXXFLAGS="-O2"
4528 else
4529 CXXFLAGS=
4530 fi
4531 fi
4532 ac_ext=c
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537
4538
4539
4540
4541 if test -n "$ac_tool_prefix"; then
4542 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4543 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 if test -n "$GNATBIND"; then
4550 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563 done
4564 done
4565 IFS=$as_save_IFS
4566
4567 fi
4568 fi
4569 GNATBIND=$ac_cv_prog_GNATBIND
4570 if test -n "$GNATBIND"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4572 $as_echo "$GNATBIND" >&6; }
4573 else
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4576 fi
4577
4578
4579 fi
4580 if test -z "$ac_cv_prog_GNATBIND"; then
4581 ac_ct_GNATBIND=$GNATBIND
4582 # Extract the first word of "gnatbind", so it can be a program name with args.
4583 set dummy gnatbind; ac_word=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 if test -n "$ac_ct_GNATBIND"; then
4590 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603 done
4604 done
4605 IFS=$as_save_IFS
4606
4607 fi
4608 fi
4609 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4610 if test -n "$ac_ct_GNATBIND"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4612 $as_echo "$ac_ct_GNATBIND" >&6; }
4613 else
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4616 fi
4617
4618 if test "x$ac_ct_GNATBIND" = x; then
4619 GNATBIND="no"
4620 else
4621 case $cross_compiling:$ac_tool_warned in
4622 yes:)
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4625 ac_tool_warned=yes ;;
4626 esac
4627 GNATBIND=$ac_ct_GNATBIND
4628 fi
4629 else
4630 GNATBIND="$ac_cv_prog_GNATBIND"
4631 fi
4632
4633 if test -n "$ac_tool_prefix"; then
4634 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4635 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if test -n "$GNATMAKE"; then
4642 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655 done
4656 done
4657 IFS=$as_save_IFS
4658
4659 fi
4660 fi
4661 GNATMAKE=$ac_cv_prog_GNATMAKE
4662 if test -n "$GNATMAKE"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4664 $as_echo "$GNATMAKE" >&6; }
4665 else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669
4670
4671 fi
4672 if test -z "$ac_cv_prog_GNATMAKE"; then
4673 ac_ct_GNATMAKE=$GNATMAKE
4674 # Extract the first word of "gnatmake", so it can be a program name with args.
4675 set dummy gnatmake; ac_word=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -n "$ac_ct_GNATMAKE"; then
4682 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695 done
4696 done
4697 IFS=$as_save_IFS
4698
4699 fi
4700 fi
4701 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4702 if test -n "$ac_ct_GNATMAKE"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4704 $as_echo "$ac_ct_GNATMAKE" >&6; }
4705 else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707 $as_echo "no" >&6; }
4708 fi
4709
4710 if test "x$ac_ct_GNATMAKE" = x; then
4711 GNATMAKE="no"
4712 else
4713 case $cross_compiling:$ac_tool_warned in
4714 yes:)
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4717 ac_tool_warned=yes ;;
4718 esac
4719 GNATMAKE=$ac_ct_GNATMAKE
4720 fi
4721 else
4722 GNATMAKE="$ac_cv_prog_GNATMAKE"
4723 fi
4724
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4726 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4727 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 cat >conftest.adb <<EOF
4731 procedure conftest is begin null; end conftest;
4732 EOF
4733 acx_cv_cc_gcc_supports_ada=no
4734 # There is a bug in old released versions of GCC which causes the
4735 # driver to exit successfully when the appropriate language module
4736 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4737 # Therefore we must check for the error message as well as an
4738 # unsuccessful exit.
4739 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4740 # given a .adb file, but produce no object file. So we must check
4741 # if an object file was really produced to guard against this.
4742 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4743 if test x"$errors" = x && test -f conftest.$ac_objext; then
4744 acx_cv_cc_gcc_supports_ada=yes
4745 fi
4746 rm -f conftest.*
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4749 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4750
4751 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4752 have_gnat=yes
4753 else
4754 have_gnat=no
4755 fi
4756
4757
4758 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4759 # optimizations to be activated explicitly by the toplevel.
4760 case "$CC" in
4761 */prev-gcc/xgcc*) ;;
4762 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4763 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4764 esac
4765
4766
4767
4768 # Determine PICFLAG for target gnatlib.
4769
4770
4771
4772
4773 case "${target}" in
4774 # PIC is the default on some targets or must not be used.
4775 *-*-darwin*)
4776 # PIC is the default on this platform
4777 # Common symbols not allowed in MH_DYLIB files
4778 PICFLAG_FOR_TARGET=-fno-common
4779 ;;
4780 alpha*-dec-osf5*)
4781 # PIC is the default.
4782 ;;
4783 hppa*64*-*-hpux*)
4784 # PIC is the default for 64-bit PA HP-UX.
4785 ;;
4786 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4787 ;;
4788 i[34567]86-*-mingw* | x86_64-*-mingw*)
4789 ;;
4790 i[34567]86-*-interix[3-9]*)
4791 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4792 # Instead, we relocate shared libraries at runtime.
4793 ;;
4794 i[34567]86-*-nto-qnx*)
4795 # QNX uses GNU C++, but need to define -shared option too, otherwise
4796 # it will coredump.
4797 PICFLAG_FOR_TARGET='-fPIC -shared'
4798 ;;
4799 i[34567]86-pc-msdosdjgpp*)
4800 # DJGPP does not support shared libraries at all.
4801 ;;
4802 ia64*-*-hpux*)
4803 # On IA64 HP-UX, PIC is the default but the pic flag
4804 # sets the default TLS model and affects inlining.
4805 PICFLAG_FOR_TARGET=-fPIC
4806 ;;
4807 mips-sgi-irix6*)
4808 # PIC is the default.
4809 ;;
4810 rs6000-ibm-aix* | powerpc-ibm-aix*)
4811 # All AIX code is PIC.
4812 ;;
4813
4814 # Some targets support both -fPIC and -fpic, but prefer the latter.
4815 # FIXME: Why?
4816 i[34567]86-*-* | x86_64-*-*)
4817 PICFLAG_FOR_TARGET=-fpic
4818 ;;
4819 # FIXME: Override -fPIC default in libgcc only?
4820 sh-*-linux* | sh[2346lbe]*-*-linux*)
4821 PICFLAG_FOR_TARGET=-fpic
4822 ;;
4823 # FIXME: Simplify to sh*-*-netbsd*?
4824 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4825 sh64-*-netbsd* | sh64l*-*-netbsd*)
4826 PICFLAG_FOR_TARGET=-fpic
4827 ;;
4828 # Default to -fPIC unless specified otherwise.
4829 *)
4830 PICFLAG_FOR_TARGET=-fPIC
4831 ;;
4832 esac
4833
4834 # If the user explicitly uses -fpic/-fPIC, keep that.
4835 case "${CFLAGS_FOR_TARGET}" in
4836 *-fpic*)
4837 PICFLAG_FOR_TARGET=-fpic
4838 ;;
4839 *-fPIC*)
4840 PICFLAG_FOR_TARGET=-fPIC
4841 ;;
4842 esac
4843
4844
4845
4846 # -------------------------
4847 # Check C compiler features
4848 # -------------------------
4849
4850
4851 ac_ext=c
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4857 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4858 # On Suns, sometimes $CPP names a directory.
4859 if test -n "$CPP" && test -d "$CPP"; then
4860 CPP=
4861 fi
4862 if test -z "$CPP"; then
4863 if test "${ac_cv_prog_CPP+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 # Double quotes because CPP needs to be expanded
4867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4868 do
4869 ac_preproc_ok=false
4870 for ac_c_preproc_warn_flag in '' yes
4871 do
4872 # Use a header file that comes with gcc, so configuring glibc
4873 # with a fresh cross-compiler works.
4874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4875 # <limits.h> exists even on freestanding compilers.
4876 # On the NeXT, cc -E runs the code through the compiler's parser,
4877 # not just through cpp. "Syntax error" is here to catch this case.
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 #ifdef __STDC__
4881 # include <limits.h>
4882 #else
4883 # include <assert.h>
4884 #endif
4885 Syntax error
4886 _ACEOF
4887 if ac_fn_c_try_cpp "$LINENO"; then :
4888
4889 else
4890 # Broken: fails on valid input.
4891 continue
4892 fi
4893 rm -f conftest.err conftest.$ac_ext
4894
4895 # OK, works on sane cases. Now check whether nonexistent headers
4896 # can be detected and how.
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #include <ac_nonexistent.h>
4900 _ACEOF
4901 if ac_fn_c_try_cpp "$LINENO"; then :
4902 # Broken: success on invalid input.
4903 continue
4904 else
4905 # Passes both tests.
4906 ac_preproc_ok=:
4907 break
4908 fi
4909 rm -f conftest.err conftest.$ac_ext
4910
4911 done
4912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4913 rm -f conftest.err conftest.$ac_ext
4914 if $ac_preproc_ok; then :
4915 break
4916 fi
4917
4918 done
4919 ac_cv_prog_CPP=$CPP
4920
4921 fi
4922 CPP=$ac_cv_prog_CPP
4923 else
4924 ac_cv_prog_CPP=$CPP
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4927 $as_echo "$CPP" >&6; }
4928 ac_preproc_ok=false
4929 for ac_c_preproc_warn_flag in '' yes
4930 do
4931 # Use a header file that comes with gcc, so configuring glibc
4932 # with a fresh cross-compiler works.
4933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4934 # <limits.h> exists even on freestanding compilers.
4935 # On the NeXT, cc -E runs the code through the compiler's parser,
4936 # not just through cpp. "Syntax error" is here to catch this case.
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939 #ifdef __STDC__
4940 # include <limits.h>
4941 #else
4942 # include <assert.h>
4943 #endif
4944 Syntax error
4945 _ACEOF
4946 if ac_fn_c_try_cpp "$LINENO"; then :
4947
4948 else
4949 # Broken: fails on valid input.
4950 continue
4951 fi
4952 rm -f conftest.err conftest.$ac_ext
4953
4954 # OK, works on sane cases. Now check whether nonexistent headers
4955 # can be detected and how.
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958 #include <ac_nonexistent.h>
4959 _ACEOF
4960 if ac_fn_c_try_cpp "$LINENO"; then :
4961 # Broken: success on invalid input.
4962 continue
4963 else
4964 # Passes both tests.
4965 ac_preproc_ok=:
4966 break
4967 fi
4968 rm -f conftest.err conftest.$ac_ext
4969
4970 done
4971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4972 rm -f conftest.err conftest.$ac_ext
4973 if $ac_preproc_ok; then :
4974
4975 else
4976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4978 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4979 See \`config.log' for more details." "$LINENO" 5; }
4980 fi
4981
4982 ac_ext=c
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4990 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4991 if test "${ac_cv_path_GREP+set}" = set; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -z "$GREP"; then
4995 ac_path_GREP_found=false
4996 # Loop through the user's path and test for each of PROGNAME-LIST
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4999 do
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_prog in grep ggrep; do
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5005 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5006 # Check for GNU ac_path_GREP and select it if it is found.
5007 # Check for GNU $ac_path_GREP
5008 case `"$ac_path_GREP" --version 2>&1` in
5009 *GNU*)
5010 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5011 *)
5012 ac_count=0
5013 $as_echo_n 0123456789 >"conftest.in"
5014 while :
5015 do
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 $as_echo 'GREP' >> "conftest.nl"
5020 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022 as_fn_arith $ac_count + 1 && ac_count=$as_val
5023 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_GREP="$ac_path_GREP"
5026 ac_path_GREP_max=$ac_count
5027 fi
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5030 done
5031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032 esac
5033
5034 $ac_path_GREP_found && break 3
5035 done
5036 done
5037 done
5038 IFS=$as_save_IFS
5039 if test -z "$ac_cv_path_GREP"; then
5040 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5041 fi
5042 else
5043 ac_cv_path_GREP=$GREP
5044 fi
5045
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5048 $as_echo "$ac_cv_path_GREP" >&6; }
5049 GREP="$ac_cv_path_GREP"
5050
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5053 $as_echo_n "checking for egrep... " >&6; }
5054 if test "${ac_cv_path_EGREP+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5058 then ac_cv_path_EGREP="$GREP -E"
5059 else
5060 if test -z "$EGREP"; then
5061 ac_path_EGREP_found=false
5062 # Loop through the user's path and test for each of PROGNAME-LIST
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5065 do
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_prog in egrep; do
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5071 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5072 # Check for GNU ac_path_EGREP and select it if it is found.
5073 # Check for GNU $ac_path_EGREP
5074 case `"$ac_path_EGREP" --version 2>&1` in
5075 *GNU*)
5076 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5077 *)
5078 ac_count=0
5079 $as_echo_n 0123456789 >"conftest.in"
5080 while :
5081 do
5082 cat "conftest.in" "conftest.in" >"conftest.tmp"
5083 mv "conftest.tmp" "conftest.in"
5084 cp "conftest.in" "conftest.nl"
5085 $as_echo 'EGREP' >> "conftest.nl"
5086 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5088 as_fn_arith $ac_count + 1 && ac_count=$as_val
5089 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5090 # Best one so far, save it but keep looking for a better one
5091 ac_cv_path_EGREP="$ac_path_EGREP"
5092 ac_path_EGREP_max=$ac_count
5093 fi
5094 # 10*(2^10) chars as input seems more than enough
5095 test $ac_count -gt 10 && break
5096 done
5097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5098 esac
5099
5100 $ac_path_EGREP_found && break 3
5101 done
5102 done
5103 done
5104 IFS=$as_save_IFS
5105 if test -z "$ac_cv_path_EGREP"; then
5106 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5107 fi
5108 else
5109 ac_cv_path_EGREP=$EGREP
5110 fi
5111
5112 fi
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5115 $as_echo "$ac_cv_path_EGREP" >&6; }
5116 EGREP="$ac_cv_path_EGREP"
5117
5118
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5120 $as_echo_n "checking for ANSI C header files... " >&6; }
5121 if test "${ac_cv_header_stdc+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 #include <stdlib.h>
5127 #include <stdarg.h>
5128 #include <string.h>
5129 #include <float.h>
5130
5131 int
5132 main ()
5133 {
5134
5135 ;
5136 return 0;
5137 }
5138 _ACEOF
5139 if ac_fn_c_try_compile "$LINENO"; then :
5140 ac_cv_header_stdc=yes
5141 else
5142 ac_cv_header_stdc=no
5143 fi
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145
5146 if test $ac_cv_header_stdc = yes; then
5147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150 #include <string.h>
5151
5152 _ACEOF
5153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5154 $EGREP "memchr" >/dev/null 2>&1; then :
5155
5156 else
5157 ac_cv_header_stdc=no
5158 fi
5159 rm -f conftest*
5160
5161 fi
5162
5163 if test $ac_cv_header_stdc = yes; then
5164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #include <stdlib.h>
5168
5169 _ACEOF
5170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5171 $EGREP "free" >/dev/null 2>&1; then :
5172
5173 else
5174 ac_cv_header_stdc=no
5175 fi
5176 rm -f conftest*
5177
5178 fi
5179
5180 if test $ac_cv_header_stdc = yes; then
5181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5182 if test "$cross_compiling" = yes; then :
5183 :
5184 else
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 #include <ctype.h>
5188 #include <stdlib.h>
5189 #if ((' ' & 0x0FF) == 0x020)
5190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5192 #else
5193 # define ISLOWER(c) \
5194 (('a' <= (c) && (c) <= 'i') \
5195 || ('j' <= (c) && (c) <= 'r') \
5196 || ('s' <= (c) && (c) <= 'z'))
5197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5198 #endif
5199
5200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5201 int
5202 main ()
5203 {
5204 int i;
5205 for (i = 0; i < 256; i++)
5206 if (XOR (islower (i), ISLOWER (i))
5207 || toupper (i) != TOUPPER (i))
5208 return 2;
5209 return 0;
5210 }
5211 _ACEOF
5212 if ac_fn_c_try_run "$LINENO"; then :
5213
5214 else
5215 ac_cv_header_stdc=no
5216 fi
5217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5218 conftest.$ac_objext conftest.beam conftest.$ac_ext
5219 fi
5220
5221 fi
5222 fi
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5224 $as_echo "$ac_cv_header_stdc" >&6; }
5225 if test $ac_cv_header_stdc = yes; then
5226
5227 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5228
5229 fi
5230
5231 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5233 inttypes.h stdint.h unistd.h
5234 do :
5235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5236 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5237 "
5238 eval as_val=\$$as_ac_Header
5239 if test "x$as_val" = x""yes; then :
5240 cat >>confdefs.h <<_ACEOF
5241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5242 _ACEOF
5243
5244 fi
5245
5246 done
5247
5248
5249
5250 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5251 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5252 MINIX=yes
5253 else
5254 MINIX=
5255 fi
5256
5257
5258 if test "$MINIX" = yes; then
5259
5260 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5261
5262
5263 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5264
5265
5266 $as_echo "#define _MINIX 1" >>confdefs.h
5267
5268 fi
5269
5270
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5272 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5273 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278
5279 # define __EXTENSIONS__ 1
5280 $ac_includes_default
5281 int
5282 main ()
5283 {
5284
5285 ;
5286 return 0;
5287 }
5288 _ACEOF
5289 if ac_fn_c_try_compile "$LINENO"; then :
5290 ac_cv_safe_to_define___extensions__=yes
5291 else
5292 ac_cv_safe_to_define___extensions__=no
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295 fi
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5297 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5298 test $ac_cv_safe_to_define___extensions__ = yes &&
5299 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5300
5301 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5302
5303 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5304
5305 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5306
5307 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5308
5309
5310 ac_ext=c
5311 ac_cpp='$CPP $CPPFLAGS'
5312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5316 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5317 # On Suns, sometimes $CPP names a directory.
5318 if test -n "$CPP" && test -d "$CPP"; then
5319 CPP=
5320 fi
5321 if test -z "$CPP"; then
5322 if test "${ac_cv_prog_CPP+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 # Double quotes because CPP needs to be expanded
5326 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5327 do
5328 ac_preproc_ok=false
5329 for ac_c_preproc_warn_flag in '' yes
5330 do
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339 #ifdef __STDC__
5340 # include <limits.h>
5341 #else
5342 # include <assert.h>
5343 #endif
5344 Syntax error
5345 _ACEOF
5346 if ac_fn_c_try_cpp "$LINENO"; then :
5347
5348 else
5349 # Broken: fails on valid input.
5350 continue
5351 fi
5352 rm -f conftest.err conftest.$ac_ext
5353
5354 # OK, works on sane cases. Now check whether nonexistent headers
5355 # can be detected and how.
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 #include <ac_nonexistent.h>
5359 _ACEOF
5360 if ac_fn_c_try_cpp "$LINENO"; then :
5361 # Broken: success on invalid input.
5362 continue
5363 else
5364 # Passes both tests.
5365 ac_preproc_ok=:
5366 break
5367 fi
5368 rm -f conftest.err conftest.$ac_ext
5369
5370 done
5371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5372 rm -f conftest.err conftest.$ac_ext
5373 if $ac_preproc_ok; then :
5374 break
5375 fi
5376
5377 done
5378 ac_cv_prog_CPP=$CPP
5379
5380 fi
5381 CPP=$ac_cv_prog_CPP
5382 else
5383 ac_cv_prog_CPP=$CPP
5384 fi
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5386 $as_echo "$CPP" >&6; }
5387 ac_preproc_ok=false
5388 for ac_c_preproc_warn_flag in '' yes
5389 do
5390 # Use a header file that comes with gcc, so configuring glibc
5391 # with a fresh cross-compiler works.
5392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5393 # <limits.h> exists even on freestanding compilers.
5394 # On the NeXT, cc -E runs the code through the compiler's parser,
5395 # not just through cpp. "Syntax error" is here to catch this case.
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 #ifdef __STDC__
5399 # include <limits.h>
5400 #else
5401 # include <assert.h>
5402 #endif
5403 Syntax error
5404 _ACEOF
5405 if ac_fn_c_try_cpp "$LINENO"; then :
5406
5407 else
5408 # Broken: fails on valid input.
5409 continue
5410 fi
5411 rm -f conftest.err conftest.$ac_ext
5412
5413 # OK, works on sane cases. Now check whether nonexistent headers
5414 # can be detected and how.
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 #include <ac_nonexistent.h>
5418 _ACEOF
5419 if ac_fn_c_try_cpp "$LINENO"; then :
5420 # Broken: success on invalid input.
5421 continue
5422 else
5423 # Passes both tests.
5424 ac_preproc_ok=:
5425 break
5426 fi
5427 rm -f conftest.err conftest.$ac_ext
5428
5429 done
5430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5431 rm -f conftest.err conftest.$ac_ext
5432 if $ac_preproc_ok; then :
5433
5434 else
5435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5437 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5438 See \`config.log' for more details." "$LINENO" 5; }
5439 fi
5440
5441 ac_ext=c
5442 ac_cpp='$CPP $CPPFLAGS'
5443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5448 $as_echo_n "checking for inline... " >&6; }
5449 if test "${ac_cv_c_inline+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 ac_cv_c_inline=no
5453 for ac_kw in inline __inline__ __inline; do
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 #ifndef __cplusplus
5457 typedef int foo_t;
5458 static $ac_kw foo_t static_foo () {return 0; }
5459 $ac_kw foo_t foo () {return 0; }
5460 #endif
5461
5462 _ACEOF
5463 if ac_fn_c_try_compile "$LINENO"; then :
5464 ac_cv_c_inline=$ac_kw
5465 fi
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 test "$ac_cv_c_inline" != no && break
5468 done
5469
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5472 $as_echo "$ac_cv_c_inline" >&6; }
5473
5474 case $ac_cv_c_inline in
5475 inline | yes) ;;
5476 *)
5477 case $ac_cv_c_inline in
5478 no) ac_val=;;
5479 *) ac_val=$ac_cv_c_inline;;
5480 esac
5481 cat >>confdefs.h <<_ACEOF
5482 #ifndef __cplusplus
5483 #define inline $ac_val
5484 #endif
5485 _ACEOF
5486 ;;
5487 esac
5488
5489
5490 # Check whether --enable-largefile was given.
5491 if test "${enable_largefile+set}" = set; then :
5492 enableval=$enable_largefile;
5493 fi
5494
5495 if test "$enable_largefile" != no; then
5496
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5498 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5499 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 ac_cv_sys_largefile_CC=no
5503 if test "$GCC" != yes; then
5504 ac_save_CC=$CC
5505 while :; do
5506 # IRIX 6.2 and later do not support large files by default,
5507 # so use the C compiler's -n32 option if that helps.
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 #include <sys/types.h>
5511 /* Check that off_t can represent 2**63 - 1 correctly.
5512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5513 since some C++ compilers masquerading as C compilers
5514 incorrectly reject 9223372036854775807. */
5515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5517 && LARGE_OFF_T % 2147483647 == 1)
5518 ? 1 : -1];
5519 int
5520 main ()
5521 {
5522
5523 ;
5524 return 0;
5525 }
5526 _ACEOF
5527 if ac_fn_c_try_compile "$LINENO"; then :
5528 break
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext
5531 CC="$CC -n32"
5532 if ac_fn_c_try_compile "$LINENO"; then :
5533 ac_cv_sys_largefile_CC=' -n32'; break
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext
5536 break
5537 done
5538 CC=$ac_save_CC
5539 rm -f conftest.$ac_ext
5540 fi
5541 fi
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5543 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5544 if test "$ac_cv_sys_largefile_CC" != no; then
5545 CC=$CC$ac_cv_sys_largefile_CC
5546 fi
5547
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5549 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5550 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 while :; do
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include <sys/types.h>
5557 /* Check that off_t can represent 2**63 - 1 correctly.
5558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5559 since some C++ compilers masquerading as C compilers
5560 incorrectly reject 9223372036854775807. */
5561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5563 && LARGE_OFF_T % 2147483647 == 1)
5564 ? 1 : -1];
5565 int
5566 main ()
5567 {
5568
5569 ;
5570 return 0;
5571 }
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 ac_cv_sys_file_offset_bits=no; break
5575 fi
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #define _FILE_OFFSET_BITS 64
5580 #include <sys/types.h>
5581 /* Check that off_t can represent 2**63 - 1 correctly.
5582 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5583 since some C++ compilers masquerading as C compilers
5584 incorrectly reject 9223372036854775807. */
5585 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5586 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5587 && LARGE_OFF_T % 2147483647 == 1)
5588 ? 1 : -1];
5589 int
5590 main ()
5591 {
5592
5593 ;
5594 return 0;
5595 }
5596 _ACEOF
5597 if ac_fn_c_try_compile "$LINENO"; then :
5598 ac_cv_sys_file_offset_bits=64; break
5599 fi
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 ac_cv_sys_file_offset_bits=unknown
5602 break
5603 done
5604 fi
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5606 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5607 case $ac_cv_sys_file_offset_bits in #(
5608 no | unknown) ;;
5609 *)
5610 cat >>confdefs.h <<_ACEOF
5611 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5612 _ACEOF
5613 ;;
5614 esac
5615 rm -rf conftest*
5616 if test $ac_cv_sys_file_offset_bits = unknown; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5618 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5619 if test "${ac_cv_sys_large_files+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 while :; do
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 #include <sys/types.h>
5626 /* Check that off_t can represent 2**63 - 1 correctly.
5627 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5628 since some C++ compilers masquerading as C compilers
5629 incorrectly reject 9223372036854775807. */
5630 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5631 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5632 && LARGE_OFF_T % 2147483647 == 1)
5633 ? 1 : -1];
5634 int
5635 main ()
5636 {
5637
5638 ;
5639 return 0;
5640 }
5641 _ACEOF
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643 ac_cv_sys_large_files=no; break
5644 fi
5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #define _LARGE_FILES 1
5649 #include <sys/types.h>
5650 /* Check that off_t can represent 2**63 - 1 correctly.
5651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5652 since some C++ compilers masquerading as C compilers
5653 incorrectly reject 9223372036854775807. */
5654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5656 && LARGE_OFF_T % 2147483647 == 1)
5657 ? 1 : -1];
5658 int
5659 main ()
5660 {
5661
5662 ;
5663 return 0;
5664 }
5665 _ACEOF
5666 if ac_fn_c_try_compile "$LINENO"; then :
5667 ac_cv_sys_large_files=1; break
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 ac_cv_sys_large_files=unknown
5671 break
5672 done
5673 fi
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5675 $as_echo "$ac_cv_sys_large_files" >&6; }
5676 case $ac_cv_sys_large_files in #(
5677 no | unknown) ;;
5678 *)
5679 cat >>confdefs.h <<_ACEOF
5680 #define _LARGE_FILES $ac_cv_sys_large_files
5681 _ACEOF
5682 ;;
5683 esac
5684 rm -rf conftest*
5685 fi
5686 fi
5687
5688
5689 # sizeof(char) is 1 by definition.
5690 # The cast to long int works around a bug in the HP C Compiler
5691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5693 # This bug is HP SR number 8606223364.
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5695 $as_echo_n "checking size of void *... " >&6; }
5696 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5700
5701 else
5702 if test "$ac_cv_type_void_p" = yes; then
5703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5705 { as_fn_set_status 77
5706 as_fn_error "cannot compute sizeof (void *)
5707 See \`config.log' for more details." "$LINENO" 5; }; }
5708 else
5709 ac_cv_sizeof_void_p=0
5710 fi
5711 fi
5712
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5715 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5716
5717
5718
5719 cat >>confdefs.h <<_ACEOF
5720 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5721 _ACEOF
5722
5723
5724 # The cast to long int works around a bug in the HP C Compiler
5725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5727 # This bug is HP SR number 8606223364.
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5729 $as_echo_n "checking size of short... " >&6; }
5730 if test "${ac_cv_sizeof_short+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5734
5735 else
5736 if test "$ac_cv_type_short" = yes; then
5737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5739 { as_fn_set_status 77
5740 as_fn_error "cannot compute sizeof (short)
5741 See \`config.log' for more details." "$LINENO" 5; }; }
5742 else
5743 ac_cv_sizeof_short=0
5744 fi
5745 fi
5746
5747 fi
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5749 $as_echo "$ac_cv_sizeof_short" >&6; }
5750
5751
5752
5753 cat >>confdefs.h <<_ACEOF
5754 #define SIZEOF_SHORT $ac_cv_sizeof_short
5755 _ACEOF
5756
5757
5758 # The cast to long int works around a bug in the HP C Compiler
5759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5761 # This bug is HP SR number 8606223364.
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5763 $as_echo_n "checking size of int... " >&6; }
5764 if test "${ac_cv_sizeof_int+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5768
5769 else
5770 if test "$ac_cv_type_int" = yes; then
5771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5773 { as_fn_set_status 77
5774 as_fn_error "cannot compute sizeof (int)
5775 See \`config.log' for more details." "$LINENO" 5; }; }
5776 else
5777 ac_cv_sizeof_int=0
5778 fi
5779 fi
5780
5781 fi
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5783 $as_echo "$ac_cv_sizeof_int" >&6; }
5784
5785
5786
5787 cat >>confdefs.h <<_ACEOF
5788 #define SIZEOF_INT $ac_cv_sizeof_int
5789 _ACEOF
5790
5791
5792 # The cast to long int works around a bug in the HP C Compiler
5793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5795 # This bug is HP SR number 8606223364.
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5797 $as_echo_n "checking size of long... " >&6; }
5798 if test "${ac_cv_sizeof_long+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5802
5803 else
5804 if test "$ac_cv_type_long" = yes; then
5805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5807 { as_fn_set_status 77
5808 as_fn_error "cannot compute sizeof (long)
5809 See \`config.log' for more details." "$LINENO" 5; }; }
5810 else
5811 ac_cv_sizeof_long=0
5812 fi
5813 fi
5814
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5817 $as_echo "$ac_cv_sizeof_long" >&6; }
5818
5819
5820
5821 cat >>confdefs.h <<_ACEOF
5822 #define SIZEOF_LONG $ac_cv_sizeof_long
5823 _ACEOF
5824
5825
5826 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5827 if test "x$ac_cv_type_long_long" = x""yes; then :
5828
5829 cat >>confdefs.h <<_ACEOF
5830 #define HAVE_LONG_LONG 1
5831 _ACEOF
5832
5833 # The cast to long int works around a bug in the HP C Compiler
5834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5836 # This bug is HP SR number 8606223364.
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5838 $as_echo_n "checking size of long long... " >&6; }
5839 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5843
5844 else
5845 if test "$ac_cv_type_long_long" = yes; then
5846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5848 { as_fn_set_status 77
5849 as_fn_error "cannot compute sizeof (long long)
5850 See \`config.log' for more details." "$LINENO" 5; }; }
5851 else
5852 ac_cv_sizeof_long_long=0
5853 fi
5854 fi
5855
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5858 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5859
5860
5861
5862 cat >>confdefs.h <<_ACEOF
5863 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5864 _ACEOF
5865
5866
5867 fi
5868
5869 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5870 case $ac_cv_c_int8_t in #(
5871 no|yes) ;; #(
5872 *)
5873
5874 cat >>confdefs.h <<_ACEOF
5875 #define int8_t $ac_cv_c_int8_t
5876 _ACEOF
5877 ;;
5878 esac
5879
5880 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5881 case $ac_cv_c_int16_t in #(
5882 no|yes) ;; #(
5883 *)
5884
5885 cat >>confdefs.h <<_ACEOF
5886 #define int16_t $ac_cv_c_int16_t
5887 _ACEOF
5888 ;;
5889 esac
5890
5891 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5892 case $ac_cv_c_int32_t in #(
5893 no|yes) ;; #(
5894 *)
5895
5896 cat >>confdefs.h <<_ACEOF
5897 #define int32_t $ac_cv_c_int32_t
5898 _ACEOF
5899 ;;
5900 esac
5901
5902 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5903 case $ac_cv_c_int64_t in #(
5904 no|yes) ;; #(
5905 *)
5906
5907 cat >>confdefs.h <<_ACEOF
5908 #define int64_t $ac_cv_c_int64_t
5909 _ACEOF
5910 ;;
5911 esac
5912
5913
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5915 $as_echo_n "checking for long long int... " >&6; }
5916 if test "${ac_cv_type_long_long_int+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921
5922 /* For now, do not test the preprocessor; as of 2007 there are too many
5923 implementations with broken preprocessors. Perhaps this can
5924 be revisited in 2012. In the meantime, code should not expect
5925 #if to work with literals wider than 32 bits. */
5926 /* Test literals. */
5927 long long int ll = 9223372036854775807ll;
5928 long long int nll = -9223372036854775807LL;
5929 unsigned long long int ull = 18446744073709551615ULL;
5930 /* Test constant expressions. */
5931 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5932 ? 1 : -1)];
5933 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5934 ? 1 : -1)];
5935 int i = 63;
5936 int
5937 main ()
5938 {
5939 /* Test availability of runtime routines for shift and division. */
5940 long long int llmax = 9223372036854775807ll;
5941 unsigned long long int ullmax = 18446744073709551615ull;
5942 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5943 | (llmax / ll) | (llmax % ll)
5944 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5945 | (ullmax / ull) | (ullmax % ull));
5946 ;
5947 return 0;
5948 }
5949
5950 _ACEOF
5951 if ac_fn_c_try_link "$LINENO"; then :
5952 if test "$cross_compiling" = yes; then :
5953 ac_cv_type_long_long_int=yes
5954 else
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 #include <limits.h>
5958 #ifndef LLONG_MAX
5959 # define HALF \
5960 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5961 # define LLONG_MAX (HALF - 1 + HALF)
5962 #endif
5963 int
5964 main ()
5965 {
5966 long long int n = 1;
5967 int i;
5968 for (i = 0; ; i++)
5969 {
5970 long long int m = n << i;
5971 if (m >> i != n)
5972 return 1;
5973 if (LLONG_MAX / 2 < m)
5974 break;
5975 }
5976 return 0;
5977 ;
5978 return 0;
5979 }
5980 _ACEOF
5981 if ac_fn_c_try_run "$LINENO"; then :
5982 ac_cv_type_long_long_int=yes
5983 else
5984 ac_cv_type_long_long_int=no
5985 fi
5986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5987 conftest.$ac_objext conftest.beam conftest.$ac_ext
5988 fi
5989
5990 else
5991 ac_cv_type_long_long_int=no
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext \
5994 conftest$ac_exeext conftest.$ac_ext
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5997 $as_echo "$ac_cv_type_long_long_int" >&6; }
5998 if test $ac_cv_type_long_long_int = yes; then
5999
6000 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6001
6002 fi
6003
6004
6005
6006 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6007 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6008
6009 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6010
6011 else
6012 test $ac_cv_type_long_long_int = yes \
6013 && ac_type='long long int' \
6014 || ac_type='long int'
6015
6016 cat >>confdefs.h <<_ACEOF
6017 #define intmax_t $ac_type
6018 _ACEOF
6019
6020 fi
6021
6022
6023
6024 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6025 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6026
6027 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6028
6029 else
6030 for ac_type in 'int' 'long int' 'long long int'; do
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 $ac_includes_default
6034 int
6035 main ()
6036 {
6037 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6038 test_array [0] = 0
6039
6040 ;
6041 return 0;
6042 }
6043 _ACEOF
6044 if ac_fn_c_try_compile "$LINENO"; then :
6045
6046 cat >>confdefs.h <<_ACEOF
6047 #define intptr_t $ac_type
6048 _ACEOF
6049
6050 ac_type=
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 test -z "$ac_type" && break
6054 done
6055 fi
6056
6057
6058 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6059 case $ac_cv_c_uint8_t in #(
6060 no|yes) ;; #(
6061 *)
6062
6063 $as_echo "#define _UINT8_T 1" >>confdefs.h
6064
6065
6066 cat >>confdefs.h <<_ACEOF
6067 #define uint8_t $ac_cv_c_uint8_t
6068 _ACEOF
6069 ;;
6070 esac
6071
6072 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6073 case $ac_cv_c_uint16_t in #(
6074 no|yes) ;; #(
6075 *)
6076
6077
6078 cat >>confdefs.h <<_ACEOF
6079 #define uint16_t $ac_cv_c_uint16_t
6080 _ACEOF
6081 ;;
6082 esac
6083
6084 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6085 case $ac_cv_c_uint32_t in #(
6086 no|yes) ;; #(
6087 *)
6088
6089 $as_echo "#define _UINT32_T 1" >>confdefs.h
6090
6091
6092 cat >>confdefs.h <<_ACEOF
6093 #define uint32_t $ac_cv_c_uint32_t
6094 _ACEOF
6095 ;;
6096 esac
6097
6098 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6099 case $ac_cv_c_uint64_t in #(
6100 no|yes) ;; #(
6101 *)
6102
6103 $as_echo "#define _UINT64_T 1" >>confdefs.h
6104
6105
6106 cat >>confdefs.h <<_ACEOF
6107 #define uint64_t $ac_cv_c_uint64_t
6108 _ACEOF
6109 ;;
6110 esac
6111
6112
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6114 $as_echo_n "checking for unsigned long long int... " >&6; }
6115 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120
6121 /* For now, do not test the preprocessor; as of 2007 there are too many
6122 implementations with broken preprocessors. Perhaps this can
6123 be revisited in 2012. In the meantime, code should not expect
6124 #if to work with literals wider than 32 bits. */
6125 /* Test literals. */
6126 long long int ll = 9223372036854775807ll;
6127 long long int nll = -9223372036854775807LL;
6128 unsigned long long int ull = 18446744073709551615ULL;
6129 /* Test constant expressions. */
6130 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6131 ? 1 : -1)];
6132 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6133 ? 1 : -1)];
6134 int i = 63;
6135 int
6136 main ()
6137 {
6138 /* Test availability of runtime routines for shift and division. */
6139 long long int llmax = 9223372036854775807ll;
6140 unsigned long long int ullmax = 18446744073709551615ull;
6141 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6142 | (llmax / ll) | (llmax % ll)
6143 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6144 | (ullmax / ull) | (ullmax % ull));
6145 ;
6146 return 0;
6147 }
6148
6149 _ACEOF
6150 if ac_fn_c_try_link "$LINENO"; then :
6151 ac_cv_type_unsigned_long_long_int=yes
6152 else
6153 ac_cv_type_unsigned_long_long_int=no
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext \
6156 conftest$ac_exeext conftest.$ac_ext
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6159 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6160 if test $ac_cv_type_unsigned_long_long_int = yes; then
6161
6162 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6163
6164 fi
6165
6166
6167
6168 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6169 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6170
6171 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6172
6173 else
6174 test $ac_cv_type_unsigned_long_long_int = yes \
6175 && ac_type='unsigned long long int' \
6176 || ac_type='unsigned long int'
6177
6178 cat >>confdefs.h <<_ACEOF
6179 #define uintmax_t $ac_type
6180 _ACEOF
6181
6182 fi
6183
6184
6185
6186 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6188
6189 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6190
6191 else
6192 for ac_type in 'unsigned int' 'unsigned long int' \
6193 'unsigned long long int'; do
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196 $ac_includes_default
6197 int
6198 main ()
6199 {
6200 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6201 test_array [0] = 0
6202
6203 ;
6204 return 0;
6205 }
6206 _ACEOF
6207 if ac_fn_c_try_compile "$LINENO"; then :
6208
6209 cat >>confdefs.h <<_ACEOF
6210 #define uintptr_t $ac_type
6211 _ACEOF
6212
6213 ac_type=
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 test -z "$ac_type" && break
6217 done
6218 fi
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6234 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6235 fi
6236
6237 # check what underlying integer type int64_t uses
6238 ac_ext=cpp
6239 ac_cpp='$CXXCPP $CPPFLAGS'
6240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6243
6244
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6246 $as_echo_n "checking for int64_t underlying type... " >&6; }
6247 if test "${ac_cv_int64_t_type+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6253
6254 #ifdef HAVE_STDINT_H
6255 #include <stdint.h>
6256 #endif
6257 template <typename T> struct X { };
6258 template <>
6259 struct X<long> { typedef long t; };
6260
6261 int
6262 main ()
6263 {
6264 X<int64_t>::t x;
6265 ;
6266 return 0;
6267 }
6268 _ACEOF
6269 if ac_fn_cxx_try_compile "$LINENO"; then :
6270 ac_cv_int64_t_type=long
6271 else
6272 ac_cv_int64_t_type="long long"
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6277 $as_echo "$ac_cv_int64_t_type" >&6; }
6278 if test "$ac_cv_int64_t_type" = "long"; then
6279
6280 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6281
6282 else
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285
6286 #ifdef HAVE_STDINT_H
6287 #include <stdint.h>
6288 #endif
6289 template <typename T> struct X { };
6290 template <>
6291 struct X<long long> { typedef long long t; };
6292
6293 int
6294 main ()
6295 {
6296 X<int64_t>::t x;
6297 ;
6298 return 0;
6299 }
6300 _ACEOF
6301 if ac_fn_cxx_try_compile "$LINENO"; then :
6302
6303 else
6304 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6305 fi
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 fi
6308 ac_ext=c
6309 ac_cpp='$CPP $CPPFLAGS'
6310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6313
6314
6315
6316
6317
6318 # ---------------------
6319 # Warnings and checking
6320 # ---------------------
6321
6322 # Check $CC warning features (if it's GCC).
6323 # We want to use -pedantic, but we don't want warnings about
6324 # * 'long long'
6325 # * variadic macros
6326 # * overlong strings
6327 # * C++11 narrowing conversions in { }
6328 # So, we only use -pedantic if we can disable those warnings.
6329
6330 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6331 # Check whether --enable-build-format-warnings was given.
6332 if test "${enable_build_format_warnings+set}" = set; then :
6333 enableval=$enable_build_format_warnings;
6334 else
6335 enable_build_format_warnings=yes
6336 fi
6337
6338 if test $enable_build_format_warnings = no; then :
6339 wf_opt=-Wno-format
6340 else
6341 wf_opt=
6342 fi
6343 loose_warn=
6344 save_CFLAGS="$CFLAGS"
6345 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6346 # Do the check with the no- prefix removed since gcc silently
6347 # accepts any -Wno-* option on purpose
6348 case $real_option in
6349 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6350 *) option=$real_option ;;
6351 esac
6352 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6353
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6355 $as_echo_n "checking whether $CC supports $option... " >&6; }
6356 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 CFLAGS="$option"
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362
6363 int
6364 main ()
6365 {
6366
6367 ;
6368 return 0;
6369 }
6370 _ACEOF
6371 if ac_fn_c_try_compile "$LINENO"; then :
6372 eval "$as_acx_Woption=yes"
6373 else
6374 eval "$as_acx_Woption=no"
6375 fi
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377
6378 fi
6379 eval ac_res=\$$as_acx_Woption
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6381 $as_echo "$ac_res" >&6; }
6382 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6383 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6384 fi
6385 done
6386 CFLAGS="$save_CFLAGS"
6387
6388 c_loose_warn=
6389 save_CFLAGS="$CFLAGS"
6390 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6391 # Do the check with the no- prefix removed since gcc silently
6392 # accepts any -Wno-* option on purpose
6393 case $real_option in
6394 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6395 *) option=$real_option ;;
6396 esac
6397 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6400 $as_echo_n "checking whether $CC supports $option... " >&6; }
6401 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 CFLAGS="$option"
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6407
6408 int
6409 main ()
6410 {
6411
6412 ;
6413 return 0;
6414 }
6415 _ACEOF
6416 if ac_fn_c_try_compile "$LINENO"; then :
6417 eval "$as_acx_Woption=yes"
6418 else
6419 eval "$as_acx_Woption=no"
6420 fi
6421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422
6423 fi
6424 eval ac_res=\$$as_acx_Woption
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6426 $as_echo "$ac_res" >&6; }
6427 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6428 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6429 fi
6430 done
6431 CFLAGS="$save_CFLAGS"
6432
6433 strict_warn=
6434 save_CFLAGS="$CFLAGS"
6435 for real_option in -Wmissing-format-attribute; do
6436 # Do the check with the no- prefix removed since gcc silently
6437 # accepts any -Wno-* option on purpose
6438 case $real_option in
6439 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6440 *) option=$real_option ;;
6441 esac
6442 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6445 $as_echo_n "checking whether $CC supports $option... " >&6; }
6446 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 CFLAGS="$option"
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452
6453 int
6454 main ()
6455 {
6456
6457 ;
6458 return 0;
6459 }
6460 _ACEOF
6461 if ac_fn_c_try_compile "$LINENO"; then :
6462 eval "$as_acx_Woption=yes"
6463 else
6464 eval "$as_acx_Woption=no"
6465 fi
6466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6467
6468 fi
6469 eval ac_res=\$$as_acx_Woption
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6471 $as_echo "$ac_res" >&6; }
6472 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6473 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6474 fi
6475 done
6476 CFLAGS="$save_CFLAGS"
6477
6478 save_CFLAGS="$CFLAGS"
6479 for real_option in -Woverloaded-virtual; do
6480 # Do the check with the no- prefix removed since gcc silently
6481 # accepts any -Wno-* option on purpose
6482 case $real_option in
6483 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6484 *) option=$real_option ;;
6485 esac
6486 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6489 $as_echo_n "checking whether $CC supports $option... " >&6; }
6490 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 CFLAGS="$option"
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496
6497 int
6498 main ()
6499 {
6500
6501 ;
6502 return 0;
6503 }
6504 _ACEOF
6505 if ac_fn_c_try_compile "$LINENO"; then :
6506 eval "$as_acx_Woption=yes"
6507 else
6508 eval "$as_acx_Woption=no"
6509 fi
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511
6512 fi
6513 eval ac_res=\$$as_acx_Woption
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6515 $as_echo "$ac_res" >&6; }
6516 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6517 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6518 fi
6519 done
6520 CFLAGS="$save_CFLAGS"
6521
6522 c_strict_warn=
6523 save_CFLAGS="$CFLAGS"
6524 for real_option in -Wold-style-definition -Wc++-compat; do
6525 # Do the check with the no- prefix removed since gcc silently
6526 # accepts any -Wno-* option on purpose
6527 case $real_option in
6528 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6529 *) option=$real_option ;;
6530 esac
6531 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6532
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6534 $as_echo_n "checking whether $CC supports $option... " >&6; }
6535 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 CFLAGS="$option"
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541
6542 int
6543 main ()
6544 {
6545
6546 ;
6547 return 0;
6548 }
6549 _ACEOF
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551 eval "$as_acx_Woption=yes"
6552 else
6553 eval "$as_acx_Woption=no"
6554 fi
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556
6557 fi
6558 eval ac_res=\$$as_acx_Woption
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6560 $as_echo "$ac_res" >&6; }
6561 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6562 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6563 fi
6564 done
6565 CFLAGS="$save_CFLAGS"
6566
6567 # Do the check with the no- prefix removed from the warning options
6568 # since gcc silently accepts any -Wno-* option on purpose
6569 if test "$GCC" = yes; then :
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6571 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6572 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 save_CFLAGS="$CFLAGS"
6576 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579
6580 int
6581 main ()
6582 {
6583
6584 ;
6585 return 0;
6586 }
6587 _ACEOF
6588 if ac_fn_c_try_compile "$LINENO"; then :
6589 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6590 else
6591 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 CFLAGS="$save_CFLAGS"
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6597 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6598 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6599 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6600 fi
6601
6602 fi
6603
6604 # Check whether --enable-werror-always was given.
6605 if test "${enable_werror_always+set}" = set; then :
6606 enableval=$enable_werror_always;
6607 else
6608 enable_werror_always=no
6609 fi
6610
6611 if test $enable_werror_always = yes; then :
6612 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6613 fi
6614
6615
6616
6617 # The above macros do nothing if the compiler is not GCC. However, the
6618 # Makefile has more goo to add other flags, so these variables are used
6619 # to enable warnings only for GCC.
6620 warn_cflags=
6621 warn_cxxflags=
6622 if test "x$GCC" = "xyes"; then
6623 warn_cflags='$(GCC_WARN_CFLAGS)'
6624 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6625 fi
6626
6627
6628
6629 # Disable exceptions and RTTI if building with g++
6630 noexception_flags=
6631 save_CFLAGS="$CFLAGS"
6632 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6633 # Do the check with the no- prefix removed since gcc silently
6634 # accepts any -Wno-* option on purpose
6635 case $real_option in
6636 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6637 *) option=$real_option ;;
6638 esac
6639 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6640
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6642 $as_echo_n "checking whether $CC supports $option... " >&6; }
6643 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 CFLAGS="$option"
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6649
6650 int
6651 main ()
6652 {
6653
6654 ;
6655 return 0;
6656 }
6657 _ACEOF
6658 if ac_fn_c_try_compile "$LINENO"; then :
6659 eval "$as_acx_Woption=yes"
6660 else
6661 eval "$as_acx_Woption=no"
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664
6665 fi
6666 eval ac_res=\$$as_acx_Woption
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6668 $as_echo "$ac_res" >&6; }
6669 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6670 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6671 fi
6672 done
6673 CFLAGS="$save_CFLAGS"
6674
6675
6676 # Enable expensive internal checks
6677 is_release=
6678 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6679 is_release=yes
6680 fi
6681
6682 # Check whether --enable-checking was given.
6683 if test "${enable_checking+set}" = set; then :
6684 enableval=$enable_checking; ac_checking_flags="${enableval}"
6685 else
6686
6687 # Determine the default checks.
6688 if test x$is_release = x ; then
6689 ac_checking_flags=yes
6690 else
6691 ac_checking_flags=release
6692 fi
6693 fi
6694
6695 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6696 for check in release $ac_checking_flags
6697 do
6698 case $check in
6699 # these set all the flags to specific states
6700 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6701 ac_fold_checking= ; ac_gc_checking=1 ;
6702 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6703 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6704 ac_tree_checking=1 ; ac_valgrind_checking= ;
6705 ac_types_checking=1 ;;
6706 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6707 ac_fold_checking= ; ac_gc_checking= ;
6708 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6709 ac_rtlflag_checking= ; ac_runtime_checking= ;
6710 ac_tree_checking= ; ac_valgrind_checking= ;
6711 ac_types_checking= ;;
6712 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6713 ac_fold_checking=1 ; ac_gc_checking=1 ;
6714 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6715 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6716 ac_tree_checking=1 ; ac_valgrind_checking= ;
6717 ac_types_checking=1 ;;
6718 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6719 ac_fold_checking= ; ac_gc_checking= ;
6720 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6721 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6722 ac_tree_checking= ; ac_valgrind_checking= ;
6723 ac_types_checking= ;;
6724 # these enable particular checks
6725 assert) ac_assert_checking=1 ;;
6726 df) ac_df_checking=1 ;;
6727 fold) ac_fold_checking=1 ;;
6728 gc) ac_gc_checking=1 ;;
6729 gcac) ac_gc_always_collect=1 ;;
6730 gimple) ac_gimple_checking=1 ;;
6731 misc) ac_checking=1 ;;
6732 rtl) ac_rtl_checking=1 ;;
6733 rtlflag) ac_rtlflag_checking=1 ;;
6734 runtime) ac_runtime_checking=1 ;;
6735 tree) ac_tree_checking=1 ;;
6736 types) ac_types_checking=1 ;;
6737 valgrind) ac_valgrind_checking=1 ;;
6738 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6739 esac
6740 done
6741 IFS="$ac_save_IFS"
6742
6743 nocommon_flag=""
6744 if test x$ac_checking != x ; then
6745
6746 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6747
6748 nocommon_flag=-fno-common
6749 fi
6750
6751 if test x$ac_df_checking != x ; then
6752
6753 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6754
6755 fi
6756 if test x$ac_assert_checking != x ; then
6757
6758 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6759
6760 fi
6761 if test x$ac_gimple_checking != x ; then
6762
6763 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6764
6765 fi
6766
6767 if test x$ac_runtime_checking != x ; then
6768
6769 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6770
6771 fi
6772 if test x$ac_tree_checking != x ; then
6773
6774 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6775
6776 TREEBROWSER=tree-browser.o
6777 TREECHECKING=yes
6778 fi
6779 if test x$ac_types_checking != x ; then
6780
6781 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6782
6783 fi
6784
6785
6786 if test x$ac_rtl_checking != x ; then
6787
6788 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6789
6790 fi
6791 if test x$ac_rtlflag_checking != x ; then
6792
6793 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6794
6795 fi
6796 if test x$ac_gc_checking != x ; then
6797
6798 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6799
6800 fi
6801 if test x$ac_gc_always_collect != x ; then
6802
6803 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6804
6805 fi
6806 if test x$ac_fold_checking != x ; then
6807
6808 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6809
6810 fi
6811 valgrind_path_defines=
6812 valgrind_command=
6813
6814 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6815 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6816 have_valgrind_h=yes
6817 else
6818 have_valgrind_h=no
6819 fi
6820
6821
6822
6823 # It is certainly possible that there's valgrind but no valgrind.h.
6824 # GCC relies on making annotations so we must have both.
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6826 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6829 #include <valgrind/memcheck.h>
6830 #ifndef VALGRIND_DISCARD
6831 #error VALGRIND_DISCARD not defined
6832 #endif
6833 _ACEOF
6834 if ac_fn_c_try_cpp "$LINENO"; then :
6835 gcc_cv_header_valgrind_memcheck_h=yes
6836 else
6837 gcc_cv_header_valgrind_memcheck_h=no
6838 fi
6839 rm -f conftest.err conftest.$ac_ext
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6841 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6843 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6846 #include <memcheck.h>
6847 #ifndef VALGRIND_DISCARD
6848 #error VALGRIND_DISCARD not defined
6849 #endif
6850 _ACEOF
6851 if ac_fn_c_try_cpp "$LINENO"; then :
6852 gcc_cv_header_memcheck_h=yes
6853 else
6854 gcc_cv_header_memcheck_h=no
6855 fi
6856 rm -f conftest.err conftest.$ac_ext
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6858 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6859 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6860
6861 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6862
6863 fi
6864 if test $gcc_cv_header_memcheck_h = yes; then
6865
6866 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6867
6868 fi
6869
6870 if test x$ac_valgrind_checking != x ; then
6871
6872 # Prepare PATH_SEPARATOR.
6873 # The user is always right.
6874 if test "${PATH_SEPARATOR+set}" != set; then
6875 echo "#! /bin/sh" >conf$$.sh
6876 echo "exit 0" >>conf$$.sh
6877 chmod +x conf$$.sh
6878 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6879 PATH_SEPARATOR=';'
6880 else
6881 PATH_SEPARATOR=:
6882 fi
6883 rm -f conf$$.sh
6884 fi
6885
6886 # Find out how to test for executable files. Don't use a zero-byte file,
6887 # as systems may use methods other than mode bits to determine executability.
6888 cat >conf$$.file <<_ASEOF
6889 #! /bin/sh
6890 exit 0
6891 _ASEOF
6892 chmod +x conf$$.file
6893 if test -x conf$$.file >/dev/null 2>&1; then
6894 ac_executable_p="test -x"
6895 else
6896 ac_executable_p="test -f"
6897 fi
6898 rm -f conf$$.file
6899
6900 # Extract the first word of "valgrind", so it can be a program name with args.
6901 set dummy valgrind; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 case "$valgrind_path" in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6910 ;;
6911 *)
6912 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6913 for ac_dir in $PATH; do
6914 IFS="$ac_save_IFS"
6915 test -z "$ac_dir" && ac_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6918 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6919 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6920 break 2
6921 fi
6922 fi
6923 done
6924 done
6925 IFS="$ac_save_IFS"
6926 ;;
6927 esac
6928 fi
6929 valgrind_path="$ac_cv_path_valgrind_path"
6930 if test -n "$valgrind_path"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6932 $as_echo "$valgrind_path" >&6; }
6933 else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938 if test "x$valgrind_path" = "x" \
6939 || (test $have_valgrind_h = no \
6940 && test $gcc_cv_header_memcheck_h = no \
6941 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6942 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6943 fi
6944 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6945 valgrind_command="$valgrind_path -q"
6946
6947 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6948
6949 fi
6950
6951
6952
6953 # Enable code coverage collection
6954 # Check whether --enable-coverage was given.
6955 if test "${enable_coverage+set}" = set; then :
6956 enableval=$enable_coverage; case "${enableval}" in
6957 yes|noopt)
6958 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6959 ;;
6960 opt)
6961 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6962 ;;
6963 no)
6964 # a.k.a. --disable-coverage
6965 coverage_flags=""
6966 ;;
6967 *)
6968 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6969 ;;
6970 esac
6971 else
6972 coverage_flags=""
6973 fi
6974
6975
6976
6977 # Check whether --enable-gather-detailed-mem-stats was given.
6978 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6979 enableval=$enable_gather_detailed_mem_stats;
6980 else
6981 enable_gather_detailed_mem_stats=no
6982 fi
6983
6984 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6985
6986 cat >>confdefs.h <<_ACEOF
6987 #define GATHER_STATISTICS $gather_stats
6988 _ACEOF
6989
6990
6991 # Check whether --enable-valgrind-annotations was given.
6992 if test "${enable_valgrind_annotations+set}" = set; then :
6993 enableval=$enable_valgrind_annotations;
6994 else
6995 enable_valgrind_annotations=no
6996 fi
6997
6998 if test x$enable_valgrind_annotations != xno \
6999 || test x$ac_valgrind_checking != x; then
7000 if (test $have_valgrind_h = no \
7001 && test $gcc_cv_header_memcheck_h = no \
7002 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7003 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7004 fi
7005
7006 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7007
7008 fi
7009
7010 # -------------------------------
7011 # Miscenalleous configure options
7012 # -------------------------------
7013
7014 # With stabs
7015
7016 # Check whether --with-stabs was given.
7017 if test "${with_stabs+set}" = set; then :
7018 withval=$with_stabs; stabs="$with_stabs"
7019 else
7020 stabs=no
7021 fi
7022
7023
7024 # Determine whether or not multilibs are enabled.
7025 # Check whether --enable-multilib was given.
7026 if test "${enable_multilib+set}" = set; then :
7027 enableval=$enable_multilib;
7028 else
7029 enable_multilib=yes
7030 fi
7031
7032
7033
7034 # Determine whether or not multiarch is enabled.
7035 # Check whether --enable-multiarch was given.
7036 if test "${enable_multiarch+set}" = set; then :
7037 enableval=$enable_multiarch; case "${enableval}" in
7038 yes|no|auto) enable_multiarch=$enableval;;
7039 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7040 esac
7041 else
7042 enable_multiarch=auto
7043 fi
7044
7045 if test x${enable_multiarch} = xauto; then
7046 if test x${with_native_system_header_dir} != x; then
7047 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7048 enable_multiarch=no
7049 fi
7050 if test x$host != x$target && test "x$with_sysroot" = x; then
7051 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7052 enable_multiarch=no
7053 fi
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7056 $as_echo_n "checking for multiarch configuration... " >&6; }
7057
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7059 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7060
7061 # needed for setting the multiarch name for soft-float/hard-float ABIs
7062
7063
7064
7065 # Enable __cxa_atexit for C++.
7066 # Check whether --enable-__cxa_atexit was given.
7067 if test "${enable___cxa_atexit+set}" = set; then :
7068 enableval=$enable___cxa_atexit;
7069 fi
7070
7071
7072 # Enable C extension for decimal float if target supports it.
7073
7074 # Check whether --enable-decimal-float was given.
7075 if test "${enable_decimal_float+set}" = set; then :
7076 enableval=$enable_decimal_float;
7077 case $enable_decimal_float in
7078 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7079 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7080 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7081 esac
7082
7083 else
7084
7085 case $target in
7086 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7087 i?86*-*-gnu* | \
7088 i?86*-*-mingw* | x86_64*-*-mingw* | \
7089 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7090 enable_decimal_float=yes
7091 ;;
7092 *)
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7094 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7095 enable_decimal_float=no
7096 ;;
7097 esac
7098
7099 fi
7100
7101
7102 # x86's use BID format instead of DPD
7103 case x$enable_decimal_float in
7104 xyes)
7105 case $target in
7106 i?86*-*-* | x86_64*-*-*)
7107 enable_decimal_float=bid
7108 ;;
7109 *)
7110 enable_decimal_float=dpd
7111 ;;
7112 esac
7113 default_decimal_float=$enable_decimal_float
7114 ;;
7115 xno)
7116 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7117 # dependency on libdecnumber.
7118 default_decimal_float=dpd
7119 ;;
7120 esac
7121
7122
7123
7124
7125 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7126
7127 cat >>confdefs.h <<_ACEOF
7128 #define ENABLE_DECIMAL_FLOAT $dfp
7129 _ACEOF
7130
7131
7132 # Use default_decimal_float for dependency.
7133 enable_decimal_float=$default_decimal_float
7134
7135 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7136
7137 cat >>confdefs.h <<_ACEOF
7138 #define ENABLE_DECIMAL_BID_FORMAT $bid
7139 _ACEOF
7140
7141
7142 # Enable C extension for fixed-point arithmetic.
7143 # Check whether --enable-fixed-point was given.
7144 if test "${enable_fixed_point+set}" = set; then :
7145 enableval=$enable_fixed_point;
7146 else
7147
7148 case $target in
7149 arm*)
7150 enable_fixed_point=yes
7151 ;;
7152
7153 mips*-*-*)
7154 enable_fixed_point=yes
7155 ;;
7156 *)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7158 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7159 enable_fixed_point=no
7160 ;;
7161 esac
7162
7163 fi
7164
7165
7166
7167 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7168
7169 cat >>confdefs.h <<_ACEOF
7170 #define ENABLE_FIXED_POINT $fixedpoint
7171 _ACEOF
7172
7173
7174 # Enable threads
7175 # Pass with no value to take the default
7176 # Pass with a value to specify a thread package
7177 # Check whether --enable-threads was given.
7178 if test "${enable_threads+set}" = set; then :
7179 enableval=$enable_threads;
7180 else
7181 enable_threads=''
7182 fi
7183
7184
7185 # Check whether --enable-tls was given.
7186 if test "${enable_tls+set}" = set; then :
7187 enableval=$enable_tls;
7188 case $enable_tls in
7189 yes | no) ;;
7190 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7191 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7192 esac
7193
7194 else
7195 enable_tls=''
7196 fi
7197
7198
7199 # Check whether --enable-objc-gc was given.
7200 if test "${enable_objc_gc+set}" = set; then :
7201 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7202 objc_boehm_gc=''
7203 else
7204 objc_boehm_gc=1
7205 fi
7206 else
7207 objc_boehm_gc=''
7208 fi
7209
7210
7211
7212 # Check whether --with-dwarf2 was given.
7213 if test "${with_dwarf2+set}" = set; then :
7214 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7215 else
7216 dwarf2=no
7217 fi
7218
7219
7220 # Check whether --enable-shared was given.
7221 if test "${enable_shared+set}" = set; then :
7222 enableval=$enable_shared;
7223 case $enable_shared in
7224 yes | no) ;;
7225 *)
7226 enable_shared=no
7227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7228 for pkg in $enableval; do
7229 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7230 enable_shared=yes
7231 fi
7232 done
7233 IFS="$ac_save_ifs"
7234 ;;
7235 esac
7236
7237 else
7238 enable_shared=yes
7239 fi
7240
7241
7242
7243
7244 # Check whether --with-native-system-header-dir was given.
7245 if test "${with_native_system_header_dir+set}" = set; then :
7246 withval=$with_native_system_header_dir;
7247 case ${with_native_system_header_dir} in
7248 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7249 /* | [A-Za-z]:[\\/]*) ;;
7250 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7251 esac
7252 configured_native_system_header_dir="${withval}"
7253
7254 else
7255 configured_native_system_header_dir=
7256 fi
7257
7258
7259
7260 # Check whether --with-build-sysroot was given.
7261 if test "${with_build_sysroot+set}" = set; then :
7262 withval=$with_build_sysroot; if test x"$withval" != x ; then
7263 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7264 fi
7265 else
7266 SYSROOT_CFLAGS_FOR_TARGET=
7267 fi
7268
7269
7270
7271 if test "x$prefix" = xNONE; then
7272 test_prefix=/usr/local
7273 else
7274 test_prefix=$prefix
7275 fi
7276 if test "x$exec_prefix" = xNONE; then
7277 test_exec_prefix=$test_prefix
7278 else
7279 test_exec_prefix=$exec_prefix
7280 fi
7281
7282
7283 # Check whether --with-sysroot was given.
7284 if test "${with_sysroot+set}" = set; then :
7285 withval=$with_sysroot;
7286 case ${with_sysroot} in
7287 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7288 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7289 esac
7290
7291 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7292 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7293
7294 case ${TARGET_SYSTEM_ROOT} in
7295 "${test_prefix}"|"${test_prefix}/"*|\
7296 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7297 '${prefix}'|'${prefix}/'*|\
7298 '${exec_prefix}'|'${exec_prefix}/'*)
7299 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7300 TARGET_SYSTEM_ROOT_DEFINE="$t"
7301 ;;
7302 esac
7303
7304 else
7305
7306 TARGET_SYSTEM_ROOT=
7307 TARGET_SYSTEM_ROOT_DEFINE=
7308 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7309
7310 fi
7311
7312
7313
7314
7315
7316
7317 # Check whether --with-specs was given.
7318 if test "${with_specs+set}" = set; then :
7319 withval=$with_specs; CONFIGURE_SPECS=$withval
7320 else
7321 CONFIGURE_SPECS=
7322
7323 fi
7324
7325
7326
7327
7328
7329 # Check whether --with-pkgversion was given.
7330 if test "${with_pkgversion+set}" = set; then :
7331 withval=$with_pkgversion; case "$withval" in
7332 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7333 no) PKGVERSION= ;;
7334 *) PKGVERSION="($withval) " ;;
7335 esac
7336 else
7337 PKGVERSION="(GCC) "
7338
7339 fi
7340
7341
7342
7343
7344
7345 # Check whether --with-bugurl was given.
7346 if test "${with_bugurl+set}" = set; then :
7347 withval=$with_bugurl; case "$withval" in
7348 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7349 no) BUGURL=
7350 ;;
7351 *) BUGURL="$withval"
7352 ;;
7353 esac
7354 else
7355 BUGURL="http://gcc.gnu.org/bugs.html"
7356
7357 fi
7358
7359 case ${BUGURL} in
7360 "")
7361 REPORT_BUGS_TO=
7362 REPORT_BUGS_TEXI=
7363 ;;
7364 *)
7365 REPORT_BUGS_TO="<$BUGURL>"
7366 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7367 ;;
7368 esac;
7369
7370
7371
7372
7373 # Sanity check enable_languages in case someone does not run the toplevel
7374 # configure # script.
7375 # Check whether --enable-languages was given.
7376 if test "${enable_languages+set}" = set; then :
7377 enableval=$enable_languages; case ,${enable_languages}, in
7378 ,,|,yes,)
7379 # go safe -- we cannot be much sure without the toplevel
7380 # configure's
7381 # analysis of which target libs are present and usable
7382 enable_languages=c
7383 ;;
7384 *,all,*)
7385 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7386 ;;
7387 *,c,*)
7388 ;;
7389 *)
7390 enable_languages=c,${enable_languages}
7391 ;;
7392 esac
7393 else
7394 enable_languages=c
7395 fi
7396
7397
7398
7399 # Check whether --with-multilib-list was given.
7400 if test "${with_multilib_list+set}" = set; then :
7401 withval=$with_multilib_list; :
7402 else
7403 with_multilib_list=default
7404 fi
7405
7406
7407 # -------------------------
7408 # Checks for other programs
7409 # -------------------------
7410
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7412 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7413 set x ${MAKE-make}
7414 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7415 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 cat >conftest.make <<\_ACEOF
7419 SHELL = /bin/sh
7420 all:
7421 @echo '@@@%%%=$(MAKE)=@@@%%%'
7422 _ACEOF
7423 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7424 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7425 *@@@%%%=?*=@@@%%%*)
7426 eval ac_cv_prog_make_${ac_make}_set=yes;;
7427 *)
7428 eval ac_cv_prog_make_${ac_make}_set=no;;
7429 esac
7430 rm -f conftest.make
7431 fi
7432 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7434 $as_echo "yes" >&6; }
7435 SET_MAKE=
7436 else
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7439 SET_MAKE="MAKE=${MAKE-make}"
7440 fi
7441
7442
7443 # Find some useful tools
7444 for ac_prog in gawk mawk nawk awk
7445 do
7446 # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy $ac_prog; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if test "${ac_cv_prog_AWK+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 if test -n "$AWK"; then
7454 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_prog_AWK="$ac_prog"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467 done
7468 done
7469 IFS=$as_save_IFS
7470
7471 fi
7472 fi
7473 AWK=$ac_cv_prog_AWK
7474 if test -n "$AWK"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7476 $as_echo "$AWK" >&6; }
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7480 fi
7481
7482
7483 test -n "$AWK" && break
7484 done
7485
7486 # We need awk to create options.c and options.h.
7487 # Bail out if it's missing.
7488 case ${AWK} in
7489 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7490 esac
7491
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7493 $as_echo_n "checking whether ln -s works... " >&6; }
7494 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 rm -f conftestdata_t
7498 echo >conftestdata_f
7499 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7500 then
7501 gcc_cv_prog_LN_S="ln -s"
7502 else
7503 if ln conftestdata_f conftestdata_t 2>/dev/null
7504 then
7505 gcc_cv_prog_LN_S=ln
7506 else
7507 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7508 then
7509 gcc_cv_prog_LN_S="cp -p"
7510 else
7511 gcc_cv_prog_LN_S=cp
7512 fi
7513 fi
7514 fi
7515 rm -f conftestdata_f conftestdata_t
7516
7517 fi
7518 LN_S="$gcc_cv_prog_LN_S"
7519 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7521 $as_echo "yes" >&6; }
7522 else
7523 if test "$gcc_cv_prog_LN_S" = "ln"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7525 $as_echo "no, using ln" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7528 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7529 fi
7530 fi
7531
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7533 $as_echo_n "checking whether ln works... " >&6; }
7534 if test "${acx_cv_prog_LN+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 rm -f conftestdata_t
7538 echo >conftestdata_f
7539 if ln conftestdata_f conftestdata_t 2>/dev/null
7540 then
7541 acx_cv_prog_LN=ln
7542 else
7543 acx_cv_prog_LN=no
7544 fi
7545 rm -f conftestdata_f conftestdata_t
7546
7547 fi
7548 if test $acx_cv_prog_LN = no; then
7549 LN="$LN_S"
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7551 $as_echo "no, using $LN" >&6; }
7552 else
7553 LN="$acx_cv_prog_LN"
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7555 $as_echo "yes" >&6; }
7556 fi
7557
7558 if test -n "$ac_tool_prefix"; then
7559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 if test -n "$RANLIB"; then
7567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7579 fi
7580 done
7581 done
7582 IFS=$as_save_IFS
7583
7584 fi
7585 fi
7586 RANLIB=$ac_cv_prog_RANLIB
7587 if test -n "$RANLIB"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7589 $as_echo "$RANLIB" >&6; }
7590 else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7593 fi
7594
7595
7596 fi
7597 if test -z "$ac_cv_prog_RANLIB"; then
7598 ac_ct_RANLIB=$RANLIB
7599 # Extract the first word of "ranlib", so it can be a program name with args.
7600 set dummy ranlib; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 if test -n "$ac_ct_RANLIB"; then
7607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_ac_ct_RANLIB="ranlib"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620 done
7621 done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7627 if test -n "$ac_ct_RANLIB"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7629 $as_echo "$ac_ct_RANLIB" >&6; }
7630 else
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7633 fi
7634
7635 if test "x$ac_ct_RANLIB" = x; then
7636 RANLIB=":"
7637 else
7638 case $cross_compiling:$ac_tool_warned in
7639 yes:)
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned=yes ;;
7643 esac
7644 RANLIB=$ac_ct_RANLIB
7645 fi
7646 else
7647 RANLIB="$ac_cv_prog_RANLIB"
7648 fi
7649
7650 ranlib_flags=""
7651
7652
7653 # Find a good install program. We prefer a C program (faster),
7654 # so one script is as good as another. But avoid the broken or
7655 # incompatible versions:
7656 # SysV /etc/install, /usr/sbin/install
7657 # SunOS /usr/etc/install
7658 # IRIX /sbin/install
7659 # AIX /bin/install
7660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7662 # ./install, which can be erroneously created by make from ./install.sh.
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7664 $as_echo_n "checking for a BSD compatible install... " >&6; }
7665 if test -z "$INSTALL"; then
7666 if test "${ac_cv_path_install+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7670 for ac_dir in $PATH; do
7671 # Account for people who put trailing slashes in PATH elements.
7672 case "$ac_dir/" in
7673 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7674 *)
7675 # OSF1 and SCO ODT 3.0 have their own names for install.
7676 for ac_prog in ginstall scoinst install; do
7677 if test -f $ac_dir/$ac_prog; then
7678 if test $ac_prog = install &&
7679 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7680 # AIX install. It has an incompatible calling convention.
7681 # OSF/1 installbsd also uses dspmsg, but is usable.
7682 :
7683 else
7684 ac_cv_path_install="$ac_dir/$ac_prog -c"
7685 break 2
7686 fi
7687 fi
7688 done
7689 ;;
7690 esac
7691 done
7692 IFS="$ac_save_IFS"
7693
7694 fi
7695 if test "${ac_cv_path_install+set}" = set; then
7696 INSTALL="$ac_cv_path_install"
7697 else
7698 # As a last resort, use the slow shell script. We don't cache a
7699 # path for INSTALL within a source directory, because that will
7700 # break other packages using the cache if that directory is
7701 # removed, or if the path is relative.
7702 INSTALL="$ac_install_sh"
7703 fi
7704 fi
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7706 $as_echo "$INSTALL" >&6; }
7707
7708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7709 # It thinks the first close brace ends the variable substitution.
7710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7711
7712 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7713
7714
7715 # See if cmp has --ignore-initial.
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7717 $as_echo_n "checking for cmp's capabilities... " >&6; }
7718 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 echo abfoo >t1
7722 echo cdfoo >t2
7723 gcc_cv_prog_cmp_skip=slowcompare
7724 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7725 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7726 :
7727 else
7728 gcc_cv_prog_cmp_skip=gnucompare
7729 fi
7730 fi
7731 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7732 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7733 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7734 :
7735 else
7736 gcc_cv_prog_cmp_skip=fastcompare
7737 fi
7738 fi
7739 fi
7740 rm t1 t2
7741
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7744 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7745 make_compare_target=$gcc_cv_prog_cmp_skip
7746
7747
7748
7749 # See if we have the mktemp command.
7750 # Extract the first word of "mktemp", so it can be a program name with args.
7751 set dummy mktemp; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 if test -n "$have_mktemp_command"; then
7758 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7762 do
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_prog_have_mktemp_command="yes"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 break 2
7770 fi
7771 done
7772 done
7773 IFS=$as_save_IFS
7774
7775 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7776 fi
7777 fi
7778 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7779 if test -n "$have_mktemp_command"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7781 $as_echo "$have_mktemp_command" >&6; }
7782 else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7785 fi
7786
7787
7788
7789 # See if makeinfo has been installed and is modern enough
7790 # that we can use it.
7791
7792 # Extract the first word of "makeinfo", so it can be a program name with args.
7793 set dummy makeinfo; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 if test -n "$MAKEINFO"; then
7800 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_MAKEINFO="makeinfo"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813 done
7814 done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 MAKEINFO=$ac_cv_prog_MAKEINFO
7820 if test -n "$MAKEINFO"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7822 $as_echo "$MAKEINFO" >&6; }
7823 else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827
7828
7829 if test -n "$MAKEINFO"; then
7830 # Found it, now check the version.
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7832 $as_echo_n "checking for modern makeinfo... " >&6; }
7833 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7837 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7838
7839 case $ac_prog_version in
7840 '') gcc_cv_prog_makeinfo_modern=no;;
7841 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7842 *) gcc_cv_prog_makeinfo_modern=no;;
7843 esac
7844
7845 fi
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7847 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7848 else
7849 gcc_cv_prog_makeinfo_modern=no
7850 fi
7851 if test $gcc_cv_prog_makeinfo_modern = no; then
7852 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7853 fi
7854
7855 if test $gcc_cv_prog_makeinfo_modern = no; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7857 *** Makeinfo is missing or too old.
7858 *** Info documentation will not be built." >&5
7859 $as_echo "$as_me: WARNING:
7860 *** Makeinfo is missing or too old.
7861 *** Info documentation will not be built." >&2;}
7862 BUILD_INFO=
7863 else
7864 BUILD_INFO=info
7865 fi
7866
7867
7868 # Is pod2man recent enough to regenerate manpages?
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7870 $as_echo_n "checking for recent Pod::Man... " >&6; }
7871 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7873 $as_echo "yes" >&6; }
7874 GENERATED_MANPAGES=generated-manpages
7875 else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 GENERATED_MANPAGES=
7879 fi
7880
7881
7882 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7883
7884 # How about lex?
7885 for ac_prog in flex
7886 do
7887 # Extract the first word of "$ac_prog", so it can be a program name with args.
7888 set dummy $ac_prog; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if test "${ac_cv_prog_FLEX+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 if test -n "$FLEX"; then
7895 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7899 do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_prog_FLEX="$ac_prog"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908 done
7909 done
7910 IFS=$as_save_IFS
7911
7912 fi
7913 fi
7914 FLEX=$ac_cv_prog_FLEX
7915 if test -n "$FLEX"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7917 $as_echo "$FLEX" >&6; }
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 fi
7922
7923
7924 test -n "$FLEX" && break
7925 done
7926 test -n "$FLEX" || FLEX="$MISSING flex"
7927
7928
7929 # Bison?
7930 for ac_prog in bison
7931 do
7932 # Extract the first word of "$ac_prog", so it can be a program name with args.
7933 set dummy $ac_prog; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if test "${ac_cv_prog_BISON+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 if test -n "$BISON"; then
7940 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7941 else
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7944 do
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_prog_BISON="$ac_prog"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 break 2
7952 fi
7953 done
7954 done
7955 IFS=$as_save_IFS
7956
7957 fi
7958 fi
7959 BISON=$ac_cv_prog_BISON
7960 if test -n "$BISON"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7962 $as_echo "$BISON" >&6; }
7963 else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967
7968
7969 test -n "$BISON" && break
7970 done
7971 test -n "$BISON" || BISON="$MISSING bison"
7972
7973
7974 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7975 # check for build == host before using them.
7976
7977 # NM
7978 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7979 && test -d ../binutils ; then
7980 NM='${objdir}/../binutils/nm-new'
7981 else
7982 # Extract the first word of "nm", so it can be a program name with args.
7983 set dummy nm; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_NM+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 if test -n "$NM"; then
7990 ac_cv_prog_NM="$NM" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7994 do
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_NM="nm"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8002 fi
8003 done
8004 done
8005 IFS=$as_save_IFS
8006
8007 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8008 fi
8009 fi
8010 NM=$ac_cv_prog_NM
8011 if test -n "$NM"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8013 $as_echo "$NM" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8017 fi
8018
8019
8020 fi
8021
8022 # AR
8023 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8024 && test -d ../binutils ; then
8025 AR='${objdir}/../binutils/ar'
8026 else
8027 # Extract the first word of "ar", so it can be a program name with args.
8028 set dummy ar; ac_word=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if test "${ac_cv_prog_AR+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 if test -n "$AR"; then
8035 ac_cv_prog_AR="$AR" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8039 do
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 ac_cv_prog_AR="ar"
8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 break 2
8047 fi
8048 done
8049 done
8050 IFS=$as_save_IFS
8051
8052 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8053 fi
8054 fi
8055 AR=$ac_cv_prog_AR
8056 if test -n "$AR"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8058 $as_echo "$AR" >&6; }
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8062 fi
8063
8064
8065 fi
8066
8067 # The jit documentation looks better if built with sphinx, but can be
8068 # built with texinfo if sphinx is not available.
8069 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8070 # Extract the first word of "sphinx-build", so it can be a program name with args.
8071 set dummy sphinx-build; ac_word=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 if test -n "$doc_build_sys"; then
8078 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8079 else
8080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 for as_dir in $PATH
8082 do
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8087 ac_cv_prog_doc_build_sys="sphinx"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 break 2
8090 fi
8091 done
8092 done
8093 IFS=$as_save_IFS
8094
8095 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8096 fi
8097 fi
8098 doc_build_sys=$ac_cv_prog_doc_build_sys
8099 if test -n "$doc_build_sys"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8101 $as_echo "$doc_build_sys" >&6; }
8102 else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105 fi
8106
8107
8108
8109 # --------------------
8110 # Checks for C headers
8111 # --------------------
8112
8113 # Need to reject headers which give warnings, so that the -Werror bootstrap
8114 # works later. *sigh* This needs to come before all header checks.
8115
8116 ac_c_preproc_warn_flag=yes
8117
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8119 $as_echo_n "checking for ANSI C header files... " >&6; }
8120 if test "${ac_cv_header_stdc+set}" = set; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8125 #include <stdlib.h>
8126 #include <stdarg.h>
8127 #include <string.h>
8128 #include <float.h>
8129
8130 int
8131 main ()
8132 {
8133
8134 ;
8135 return 0;
8136 }
8137 _ACEOF
8138 if ac_fn_c_try_compile "$LINENO"; then :
8139 ac_cv_header_stdc=yes
8140 else
8141 ac_cv_header_stdc=no
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144
8145 if test $ac_cv_header_stdc = yes; then
8146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 #include <string.h>
8150
8151 _ACEOF
8152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8153 $EGREP "memchr" >/dev/null 2>&1; then :
8154
8155 else
8156 ac_cv_header_stdc=no
8157 fi
8158 rm -f conftest*
8159
8160 fi
8161
8162 if test $ac_cv_header_stdc = yes; then
8163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 #include <stdlib.h>
8167
8168 _ACEOF
8169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8170 $EGREP "free" >/dev/null 2>&1; then :
8171
8172 else
8173 ac_cv_header_stdc=no
8174 fi
8175 rm -f conftest*
8176
8177 fi
8178
8179 if test $ac_cv_header_stdc = yes; then
8180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8181 if test "$cross_compiling" = yes; then :
8182 :
8183 else
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186 #include <ctype.h>
8187 #include <stdlib.h>
8188 #if ((' ' & 0x0FF) == 0x020)
8189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8191 #else
8192 # define ISLOWER(c) \
8193 (('a' <= (c) && (c) <= 'i') \
8194 || ('j' <= (c) && (c) <= 'r') \
8195 || ('s' <= (c) && (c) <= 'z'))
8196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8197 #endif
8198
8199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8200 int
8201 main ()
8202 {
8203 int i;
8204 for (i = 0; i < 256; i++)
8205 if (XOR (islower (i), ISLOWER (i))
8206 || toupper (i) != TOUPPER (i))
8207 return 2;
8208 return 0;
8209 }
8210 _ACEOF
8211 if ac_fn_c_try_run "$LINENO"; then :
8212
8213 else
8214 ac_cv_header_stdc=no
8215 fi
8216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8217 conftest.$ac_objext conftest.beam conftest.$ac_ext
8218 fi
8219
8220 fi
8221 fi
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8223 $as_echo "$ac_cv_header_stdc" >&6; }
8224 if test $ac_cv_header_stdc = yes; then
8225
8226 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8227
8228 fi
8229
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8231 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8232 if test "${ac_cv_header_time+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 #include <sys/types.h>
8238 #include <sys/time.h>
8239 #include <time.h>
8240
8241 int
8242 main ()
8243 {
8244 if ((struct tm *) 0)
8245 return 0;
8246 ;
8247 return 0;
8248 }
8249 _ACEOF
8250 if ac_fn_c_try_compile "$LINENO"; then :
8251 ac_cv_header_time=yes
8252 else
8253 ac_cv_header_time=no
8254 fi
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8258 $as_echo "$ac_cv_header_time" >&6; }
8259 if test $ac_cv_header_time = yes; then
8260
8261 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8262
8263 fi
8264
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8266 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8267 if test "${gcc_cv_header_string+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 #include <string.h>
8273 #include <strings.h>
8274 int
8275 main ()
8276 {
8277
8278 ;
8279 return 0;
8280 }
8281 _ACEOF
8282 if ac_fn_c_try_compile "$LINENO"; then :
8283 gcc_cv_header_string=yes
8284 else
8285 gcc_cv_header_string=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 fi
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8290 $as_echo "$gcc_cv_header_string" >&6; }
8291 if test $gcc_cv_header_string = yes; then
8292
8293 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8294
8295 fi
8296
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8298 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8299 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 #include <sys/types.h>
8305 #include <sys/wait.h>
8306 #ifndef WEXITSTATUS
8307 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8308 #endif
8309 #ifndef WIFEXITED
8310 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8311 #endif
8312
8313 int
8314 main ()
8315 {
8316 int s;
8317 wait (&s);
8318 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8319 ;
8320 return 0;
8321 }
8322 _ACEOF
8323 if ac_fn_c_try_compile "$LINENO"; then :
8324 ac_cv_header_sys_wait_h=yes
8325 else
8326 ac_cv_header_sys_wait_h=no
8327 fi
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 fi
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8331 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8332 if test $ac_cv_header_sys_wait_h = yes; then
8333
8334 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8335
8336 fi
8337
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8339 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8340 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8345 #include <sys/types.h>
8346 #include <termios.h>
8347 #ifdef TIOCGWINSZ
8348 yes
8349 #endif
8350
8351 _ACEOF
8352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8353 $EGREP "yes" >/dev/null 2>&1; then :
8354 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8355 else
8356 ac_cv_sys_tiocgwinsz_in_termios_h=no
8357 fi
8358 rm -f conftest*
8359
8360 fi
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8362 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8363
8364 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8366 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8367 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 #include <sys/types.h>
8373 #include <sys/ioctl.h>
8374 #ifdef TIOCGWINSZ
8375 yes
8376 #endif
8377
8378 _ACEOF
8379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8380 $EGREP "yes" >/dev/null 2>&1; then :
8381 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8382 else
8383 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8384 fi
8385 rm -f conftest*
8386
8387 fi
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8389 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8390
8391 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8392
8393 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8394
8395 fi
8396 fi
8397
8398 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8399 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8400 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8401 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8402 do :
8403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8404 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8405 eval as_val=\$$as_ac_Header
8406 if test "x$as_val" = x""yes; then :
8407 cat >>confdefs.h <<_ACEOF
8408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8409 _ACEOF
8410
8411 fi
8412 done
8413
8414
8415 # Check for thread headers.
8416 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8417 if test "x$ac_cv_header_thread_h" = x""yes; then :
8418 have_thread_h=yes
8419 else
8420 have_thread_h=
8421 fi
8422
8423 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8424 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8425 have_pthread_h=yes
8426 else
8427 have_pthread_h=
8428 fi
8429
8430
8431 # These tests can't be done till we know if we have limits.h.
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8433 $as_echo_n "checking for CHAR_BIT... " >&6; }
8434 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 #ifdef HAVE_LIMITS_H
8440 #include <limits.h>
8441 #endif
8442 #ifdef CHAR_BIT
8443 found
8444 #endif
8445 _ACEOF
8446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8447 $EGREP "found" >/dev/null 2>&1; then :
8448 gcc_cv_decl_char_bit=yes
8449 else
8450 gcc_cv_decl_char_bit=no
8451 fi
8452 rm -f conftest*
8453
8454
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8457 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8458 if test $gcc_cv_decl_char_bit = no; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8460 $as_echo_n "checking number of bits in a byte... " >&6; }
8461 if test "${gcc_cv_c_nbby+set}" = set; then :
8462 $as_echo_n "(cached) " >&6
8463 else
8464 i=8
8465 gcc_cv_c_nbby=
8466 while test $i -lt 65; do
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469
8470 int
8471 main ()
8472 {
8473 switch(0) {
8474 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8475 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8476 ; }
8477 ;
8478 return 0;
8479 }
8480 _ACEOF
8481 if ac_fn_c_try_compile "$LINENO"; then :
8482 gcc_cv_c_nbby=$i; break
8483 fi
8484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 i=`expr $i + 1`
8486 done
8487 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8488
8489 fi
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8491 $as_echo "$gcc_cv_c_nbby" >&6; }
8492 if test $gcc_cv_c_nbby = failed; then
8493 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8494 else
8495
8496 cat >>confdefs.h <<_ACEOF
8497 #define CHAR_BIT $gcc_cv_c_nbby
8498 _ACEOF
8499
8500 fi
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8503 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8504 if test "${ac_cv_c_bigendian+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 ac_cv_c_bigendian=unknown
8508 # See if we're dealing with a universal compiler.
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 #ifndef __APPLE_CC__
8512 not a universal capable compiler
8513 #endif
8514 typedef int dummy;
8515
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518
8519 # Check for potential -arch flags. It is not universal unless
8520 # there are at least two -arch flags with different values.
8521 ac_arch=
8522 ac_prev=
8523 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8524 if test -n "$ac_prev"; then
8525 case $ac_word in
8526 i?86 | x86_64 | ppc | ppc64)
8527 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8528 ac_arch=$ac_word
8529 else
8530 ac_cv_c_bigendian=universal
8531 break
8532 fi
8533 ;;
8534 esac
8535 ac_prev=
8536 elif test "x$ac_word" = "x-arch"; then
8537 ac_prev=arch
8538 fi
8539 done
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 if test $ac_cv_c_bigendian = unknown; then
8543 # See if sys/param.h defines the BYTE_ORDER macro.
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8546 #include <sys/types.h>
8547 #include <sys/param.h>
8548
8549 int
8550 main ()
8551 {
8552 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8553 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8554 && LITTLE_ENDIAN)
8555 bogus endian macros
8556 #endif
8557
8558 ;
8559 return 0;
8560 }
8561 _ACEOF
8562 if ac_fn_c_try_compile "$LINENO"; then :
8563 # It does; now see whether it defined to BIG_ENDIAN or not.
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 #include <sys/types.h>
8567 #include <sys/param.h>
8568
8569 int
8570 main ()
8571 {
8572 #if BYTE_ORDER != BIG_ENDIAN
8573 not big endian
8574 #endif
8575
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 if ac_fn_c_try_compile "$LINENO"; then :
8581 ac_cv_c_bigendian=yes
8582 else
8583 ac_cv_c_bigendian=no
8584 fi
8585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8586 fi
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 fi
8589 if test $ac_cv_c_bigendian = unknown; then
8590 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 #include <limits.h>
8594
8595 int
8596 main ()
8597 {
8598 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8599 bogus endian macros
8600 #endif
8601
8602 ;
8603 return 0;
8604 }
8605 _ACEOF
8606 if ac_fn_c_try_compile "$LINENO"; then :
8607 # It does; now see whether it defined to _BIG_ENDIAN or not.
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 #include <limits.h>
8611
8612 int
8613 main ()
8614 {
8615 #ifndef _BIG_ENDIAN
8616 not big endian
8617 #endif
8618
8619 ;
8620 return 0;
8621 }
8622 _ACEOF
8623 if ac_fn_c_try_compile "$LINENO"; then :
8624 ac_cv_c_bigendian=yes
8625 else
8626 ac_cv_c_bigendian=no
8627 fi
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 fi
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 fi
8632 if test $ac_cv_c_bigendian = unknown; then
8633 # Compile a test program.
8634 if test "$cross_compiling" = yes; then :
8635 # Try to guess by grepping values from an object file.
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 short int ascii_mm[] =
8639 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8640 short int ascii_ii[] =
8641 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8642 int use_ascii (int i) {
8643 return ascii_mm[i] + ascii_ii[i];
8644 }
8645 short int ebcdic_ii[] =
8646 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8647 short int ebcdic_mm[] =
8648 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8649 int use_ebcdic (int i) {
8650 return ebcdic_mm[i] + ebcdic_ii[i];
8651 }
8652 extern int foo;
8653
8654 int
8655 main ()
8656 {
8657 return use_ascii (foo) == use_ebcdic (foo);
8658 ;
8659 return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_compile "$LINENO"; then :
8663 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8664 ac_cv_c_bigendian=yes
8665 fi
8666 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8667 if test "$ac_cv_c_bigendian" = unknown; then
8668 ac_cv_c_bigendian=no
8669 else
8670 # finding both strings is unlikely to happen, but who knows?
8671 ac_cv_c_bigendian=unknown
8672 fi
8673 fi
8674 fi
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 else
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 $ac_includes_default
8680 int
8681 main ()
8682 {
8683
8684 /* Are we little or big endian? From Harbison&Steele. */
8685 union
8686 {
8687 long int l;
8688 char c[sizeof (long int)];
8689 } u;
8690 u.l = 1;
8691 return u.c[sizeof (long int) - 1] == 1;
8692
8693 ;
8694 return 0;
8695 }
8696 _ACEOF
8697 if ac_fn_c_try_run "$LINENO"; then :
8698 ac_cv_c_bigendian=no
8699 else
8700 ac_cv_c_bigendian=yes
8701 fi
8702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8703 conftest.$ac_objext conftest.beam conftest.$ac_ext
8704 fi
8705
8706 fi
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8709 $as_echo "$ac_cv_c_bigendian" >&6; }
8710 case $ac_cv_c_bigendian in #(
8711 yes)
8712 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8713 ;; #(
8714 no)
8715 ;; #(
8716 universal)
8717
8718 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8719
8720 ;; #(
8721 *)
8722 as_fn_error "unknown endianness
8723 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8724 esac
8725
8726
8727 # ----------------------
8728 # Checks for C++ headers
8729 # ----------------------
8730
8731 ac_ext=cpp
8732 ac_cpp='$CXXCPP $CPPFLAGS'
8733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8737 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8738 if test -z "$CXXCPP"; then
8739 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 # Double quotes because CXXCPP needs to be expanded
8743 for CXXCPP in "$CXX -E" "/lib/cpp"
8744 do
8745 ac_preproc_ok=false
8746 for ac_cxx_preproc_warn_flag in '' yes
8747 do
8748 # Use a header file that comes with gcc, so configuring glibc
8749 # with a fresh cross-compiler works.
8750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8751 # <limits.h> exists even on freestanding compilers.
8752 # On the NeXT, cc -E runs the code through the compiler's parser,
8753 # not just through cpp. "Syntax error" is here to catch this case.
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8756 #ifdef __STDC__
8757 # include <limits.h>
8758 #else
8759 # include <assert.h>
8760 #endif
8761 Syntax error
8762 _ACEOF
8763 if ac_fn_cxx_try_cpp "$LINENO"; then :
8764
8765 else
8766 # Broken: fails on valid input.
8767 continue
8768 fi
8769 rm -f conftest.err conftest.$ac_ext
8770
8771 # OK, works on sane cases. Now check whether nonexistent headers
8772 # can be detected and how.
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8775 #include <ac_nonexistent.h>
8776 _ACEOF
8777 if ac_fn_cxx_try_cpp "$LINENO"; then :
8778 # Broken: success on invalid input.
8779 continue
8780 else
8781 # Passes both tests.
8782 ac_preproc_ok=:
8783 break
8784 fi
8785 rm -f conftest.err conftest.$ac_ext
8786
8787 done
8788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8789 rm -f conftest.err conftest.$ac_ext
8790 if $ac_preproc_ok; then :
8791 break
8792 fi
8793
8794 done
8795 ac_cv_prog_CXXCPP=$CXXCPP
8796
8797 fi
8798 CXXCPP=$ac_cv_prog_CXXCPP
8799 else
8800 ac_cv_prog_CXXCPP=$CXXCPP
8801 fi
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8803 $as_echo "$CXXCPP" >&6; }
8804 ac_preproc_ok=false
8805 for ac_cxx_preproc_warn_flag in '' yes
8806 do
8807 # Use a header file that comes with gcc, so configuring glibc
8808 # with a fresh cross-compiler works.
8809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8810 # <limits.h> exists even on freestanding compilers.
8811 # On the NeXT, cc -E runs the code through the compiler's parser,
8812 # not just through cpp. "Syntax error" is here to catch this case.
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8815 #ifdef __STDC__
8816 # include <limits.h>
8817 #else
8818 # include <assert.h>
8819 #endif
8820 Syntax error
8821 _ACEOF
8822 if ac_fn_cxx_try_cpp "$LINENO"; then :
8823
8824 else
8825 # Broken: fails on valid input.
8826 continue
8827 fi
8828 rm -f conftest.err conftest.$ac_ext
8829
8830 # OK, works on sane cases. Now check whether nonexistent headers
8831 # can be detected and how.
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 #include <ac_nonexistent.h>
8835 _ACEOF
8836 if ac_fn_cxx_try_cpp "$LINENO"; then :
8837 # Broken: success on invalid input.
8838 continue
8839 else
8840 # Passes both tests.
8841 ac_preproc_ok=:
8842 break
8843 fi
8844 rm -f conftest.err conftest.$ac_ext
8845
8846 done
8847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8848 rm -f conftest.err conftest.$ac_ext
8849 if $ac_preproc_ok; then :
8850
8851 else
8852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8855 See \`config.log' for more details." >&5
8856 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8857 See \`config.log' for more details." >&2;}; }
8858 fi
8859
8860 ac_ext=c
8861 ac_cpp='$CPP $CPPFLAGS'
8862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8865
8866
8867 ac_ext=cpp
8868 ac_cpp='$CXXCPP $CPPFLAGS'
8869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8872
8873
8874
8875 for ac_header in unordered_map
8876 do :
8877 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8878 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8879 cat >>confdefs.h <<_ACEOF
8880 #define HAVE_UNORDERED_MAP 1
8881 _ACEOF
8882
8883 fi
8884 done
8885
8886 for ac_header in tr1/unordered_map
8887 do :
8888 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8889 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8890 cat >>confdefs.h <<_ACEOF
8891 #define HAVE_TR1_UNORDERED_MAP 1
8892 _ACEOF
8893
8894 fi
8895 done
8896
8897 for ac_header in ext/hash_map
8898 do :
8899 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8900 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8901 cat >>confdefs.h <<_ACEOF
8902 #define HAVE_EXT_HASH_MAP 1
8903 _ACEOF
8904
8905 fi
8906 done
8907
8908
8909 ac_ext=c
8910 ac_cpp='$CPP $CPPFLAGS'
8911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8914
8915
8916 # --------
8917 # Dependency checking.
8918 # --------
8919
8920 ac_ext=cpp
8921 ac_cpp='$CXXCPP $CPPFLAGS'
8922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8925
8926 rm -rf .tst 2>/dev/null
8927 mkdir .tst 2>/dev/null
8928 if test -d .tst; then
8929 am__leading_dot=.
8930 else
8931 am__leading_dot=_
8932 fi
8933 rmdir .tst 2>/dev/null
8934
8935 DEPDIR="${am__leading_dot}deps"
8936
8937 ac_config_commands="$ac_config_commands depdir"
8938
8939
8940 ac_config_commands="$ac_config_commands gccdepdir"
8941
8942
8943 depcc="$CXX" am_compiler_list=
8944
8945 am_depcomp=$ac_aux_dir/depcomp
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8947 $as_echo_n "checking dependency style of $depcc... " >&6; }
8948 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 if test -f "$am_depcomp"; then
8952 # We make a subdir and do the tests there. Otherwise we can end up
8953 # making bogus files that we don't know about and never remove. For
8954 # instance it was reported that on HP-UX the gcc test will end up
8955 # making a dummy file named `D' -- because `-MD' means `put the output
8956 # in D'.
8957 mkdir conftest.dir
8958 # Copy depcomp to subdir because otherwise we won't find it if we're
8959 # using a relative directory.
8960 cp "$am_depcomp" conftest.dir
8961 cd conftest.dir
8962 # We will build objects and dependencies in a subdirectory because
8963 # it helps to detect inapplicable dependency modes. For instance
8964 # both Tru64's cc and ICC support -MD to output dependencies as a
8965 # side effect of compilation, but ICC will put the dependencies in
8966 # the current directory while Tru64 will put them in the object
8967 # directory.
8968 mkdir sub
8969
8970 am_cv_CXX_dependencies_compiler_type=none
8971 if test "$am_compiler_list" = ""; then
8972 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8973 fi
8974 for depmode in $am_compiler_list; do
8975 if test $depmode = none; then break; fi
8976
8977 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8978 # Setup a source with many dependencies, because some compilers
8979 # like to wrap large dependency lists on column 80 (with \), and
8980 # we should not choose a depcomp mode which is confused by this.
8981 #
8982 # We need to recreate these files for each test, as the compiler may
8983 # overwrite some of them when testing with obscure command lines.
8984 # This happens at least with the AIX C compiler.
8985 : > sub/conftest.c
8986 for i in 1 2 3 4 5 6; do
8987 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8988 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8989 # Solaris 8's {/usr,}/bin/sh.
8990 touch sub/conftst$i.h
8991 done
8992 echo "include sub/conftest.Po" > confmf
8993
8994 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8995 # mode. It turns out that the SunPro C++ compiler does not properly
8996 # handle `-M -o', and we need to detect this.
8997 depcmd="depmode=$depmode \
8998 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9000 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9001 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9002 if env $depcmd > conftest.err 2>&1 &&
9003 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9004 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9005 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9006 # icc doesn't choke on unknown options, it will just issue warnings
9007 # or remarks (even with -Werror). So we grep stderr for any message
9008 # that says an option was ignored or not supported.
9009 # When given -MP, icc 7.0 and 7.1 complain thusly:
9010 # icc: Command line warning: ignoring option '-M'; no argument required
9011 # The diagnosis changed in icc 8.0:
9012 # icc: Command line remark: option '-MP' not supported
9013 if (grep 'ignoring option' conftest.err ||
9014 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9015 am_cv_CXX_dependencies_compiler_type=$depmode
9016 $as_echo "$as_me:$LINENO: success" >&5
9017 break
9018 fi
9019 fi
9020 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9021 sed -e 's/^/| /' < conftest.err >&5
9022 done
9023
9024 cd ..
9025 rm -rf conftest.dir
9026 else
9027 am_cv_CXX_dependencies_compiler_type=none
9028 fi
9029
9030 fi
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9032 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9033 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9034 then as_fn_error "no usable dependency style found" "$LINENO" 5
9035 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9036
9037 fi
9038
9039 ac_ext=c
9040 ac_cpp='$CPP $CPPFLAGS'
9041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9044
9045
9046 # --------
9047 # UNSORTED
9048 # --------
9049
9050
9051 # These libraries may be used by collect2.
9052 # We may need a special search path to get them linked.
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9054 $as_echo_n "checking for collect2 libraries... " >&6; }
9055 if test "${gcc_cv_collect2_libs+set}" = set; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 save_LIBS="$LIBS"
9059 for libs in '' -lld -lmld \
9060 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9061 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9062 do
9063 LIBS="$libs"
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9066
9067 /* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
9070 #ifdef __cplusplus
9071 extern "C"
9072 #endif
9073 char ldopen ();
9074 int
9075 main ()
9076 {
9077 return ldopen ();
9078 ;
9079 return 0;
9080 }
9081 _ACEOF
9082 if ac_fn_c_try_link "$LINENO"; then :
9083 gcc_cv_collect2_libs="$libs"; break
9084 fi
9085 rm -f core conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
9087 done
9088 LIBS="$save_LIBS"
9089 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9090 fi
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9092 $as_echo "$gcc_cv_collect2_libs" >&6; }
9093 case $gcc_cv_collect2_libs in
9094 "none required") ;;
9095 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9096 esac
9097
9098
9099 # When building Ada code on Alpha, we need exc_resume which is usually in
9100 # -lexc. So test for it.
9101 save_LIBS="$LIBS"
9102 LIBS=
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9104 $as_echo_n "checking for library containing exc_resume... " >&6; }
9105 if test "${ac_cv_search_exc_resume+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9107 else
9108 ac_func_search_save_LIBS=$LIBS
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111
9112 /* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9115 #ifdef __cplusplus
9116 extern "C"
9117 #endif
9118 char exc_resume ();
9119 int
9120 main ()
9121 {
9122 return exc_resume ();
9123 ;
9124 return 0;
9125 }
9126 _ACEOF
9127 for ac_lib in '' exc; do
9128 if test -z "$ac_lib"; then
9129 ac_res="none required"
9130 else
9131 ac_res=-l$ac_lib
9132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9133 fi
9134 if ac_fn_c_try_link "$LINENO"; then :
9135 ac_cv_search_exc_resume=$ac_res
9136 fi
9137 rm -f core conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext
9139 if test "${ac_cv_search_exc_resume+set}" = set; then :
9140 break
9141 fi
9142 done
9143 if test "${ac_cv_search_exc_resume+set}" = set; then :
9144
9145 else
9146 ac_cv_search_exc_resume=no
9147 fi
9148 rm conftest.$ac_ext
9149 LIBS=$ac_func_search_save_LIBS
9150 fi
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9152 $as_echo "$ac_cv_search_exc_resume" >&6; }
9153 ac_res=$ac_cv_search_exc_resume
9154 if test "$ac_res" != no; then :
9155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9156
9157 fi
9158
9159 GNAT_LIBEXC="$LIBS"
9160 LIBS="$save_LIBS"
9161
9162
9163 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9164 save_LIBS="$LIBS"
9165 LIBS=
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9167 $as_echo_n "checking for library containing kstat_open... " >&6; }
9168 if test "${ac_cv_search_kstat_open+set}" = set; then :
9169 $as_echo_n "(cached) " >&6
9170 else
9171 ac_func_search_save_LIBS=$LIBS
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174
9175 /* Override any GCC internal prototype to avoid an error.
9176 Use char because int might match the return type of a GCC
9177 builtin and then its argument prototype would still apply. */
9178 #ifdef __cplusplus
9179 extern "C"
9180 #endif
9181 char kstat_open ();
9182 int
9183 main ()
9184 {
9185 return kstat_open ();
9186 ;
9187 return 0;
9188 }
9189 _ACEOF
9190 for ac_lib in '' kstat; do
9191 if test -z "$ac_lib"; then
9192 ac_res="none required"
9193 else
9194 ac_res=-l$ac_lib
9195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9196 fi
9197 if ac_fn_c_try_link "$LINENO"; then :
9198 ac_cv_search_kstat_open=$ac_res
9199 fi
9200 rm -f core conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext
9202 if test "${ac_cv_search_kstat_open+set}" = set; then :
9203 break
9204 fi
9205 done
9206 if test "${ac_cv_search_kstat_open+set}" = set; then :
9207
9208 else
9209 ac_cv_search_kstat_open=no
9210 fi
9211 rm conftest.$ac_ext
9212 LIBS=$ac_func_search_save_LIBS
9213 fi
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9215 $as_echo "$ac_cv_search_kstat_open" >&6; }
9216 ac_res=$ac_cv_search_kstat_open
9217 if test "$ac_res" != no; then :
9218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9219
9220 fi
9221
9222 EXTRA_GCC_LIBS="$LIBS"
9223 LIBS="$save_LIBS"
9224
9225
9226 # Some systems put ldexp and frexp in libm instead of libc; assume
9227 # they're both in the same place. jcf-dump needs them.
9228 save_LIBS="$LIBS"
9229 LIBS=
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9231 $as_echo_n "checking for library containing ldexp... " >&6; }
9232 if test "${ac_cv_search_ldexp+set}" = set; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 ac_func_search_save_LIBS=$LIBS
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238
9239 /* Override any GCC internal prototype to avoid an error.
9240 Use char because int might match the return type of a GCC
9241 builtin and then its argument prototype would still apply. */
9242 #ifdef __cplusplus
9243 extern "C"
9244 #endif
9245 char ldexp ();
9246 int
9247 main ()
9248 {
9249 return ldexp ();
9250 ;
9251 return 0;
9252 }
9253 _ACEOF
9254 for ac_lib in '' m; do
9255 if test -z "$ac_lib"; then
9256 ac_res="none required"
9257 else
9258 ac_res=-l$ac_lib
9259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9260 fi
9261 if ac_fn_c_try_link "$LINENO"; then :
9262 ac_cv_search_ldexp=$ac_res
9263 fi
9264 rm -f core conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext
9266 if test "${ac_cv_search_ldexp+set}" = set; then :
9267 break
9268 fi
9269 done
9270 if test "${ac_cv_search_ldexp+set}" = set; then :
9271
9272 else
9273 ac_cv_search_ldexp=no
9274 fi
9275 rm conftest.$ac_ext
9276 LIBS=$ac_func_search_save_LIBS
9277 fi
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9279 $as_echo "$ac_cv_search_ldexp" >&6; }
9280 ac_res=$ac_cv_search_ldexp
9281 if test "$ac_res" != no; then :
9282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9283
9284 fi
9285
9286 LDEXP_LIB="$LIBS"
9287 LIBS="$save_LIBS"
9288
9289
9290 # Use <inttypes.h> only if it exists,
9291 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9292 # PRId64
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9294 $as_echo_n "checking for inttypes.h... " >&6; }
9295 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 #define __STDC_FORMAT_MACROS
9301 #include <sys/types.h>
9302 #include <inttypes.h>
9303 int
9304 main ()
9305 {
9306 intmax_t i = -1;
9307 #ifndef PRId64
9308 choke me
9309 #endif
9310 ;
9311 return 0;
9312 }
9313 _ACEOF
9314 if ac_fn_c_try_compile "$LINENO"; then :
9315 gcc_cv_header_inttypes_h=yes
9316 else
9317 gcc_cv_header_inttypes_h=no
9318 fi
9319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9320 fi
9321
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9323 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9324 if test $gcc_cv_header_inttypes_h = yes; then
9325
9326 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9327
9328 fi
9329
9330
9331
9332 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9333 popen sysconf strsignal getrusage nl_langinfo \
9334 gettimeofday mbstowcs wcswidth mmap setlocale \
9335 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
9336 do :
9337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9338 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9339 eval as_val=\$$as_ac_var
9340 if test "x$as_val" = x""yes; then :
9341 cat >>confdefs.h <<_ACEOF
9342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9343 _ACEOF
9344
9345 fi
9346 done
9347
9348
9349 if test x$ac_cv_func_mbstowcs = xyes; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9351 $as_echo_n "checking whether mbstowcs works... " >&6; }
9352 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 if test "$cross_compiling" = yes; then :
9356 gcc_cv_func_mbstowcs_works=yes
9357 else
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 #include <stdlib.h>
9361 int main()
9362 {
9363 mbstowcs(0, "", 0);
9364 return 0;
9365 }
9366 _ACEOF
9367 if ac_fn_c_try_run "$LINENO"; then :
9368 gcc_cv_func_mbstowcs_works=yes
9369 else
9370 gcc_cv_func_mbstowcs_works=no
9371 fi
9372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9373 conftest.$ac_objext conftest.beam conftest.$ac_ext
9374 fi
9375
9376 fi
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9378 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9379 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9380
9381 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9382
9383 fi
9384 fi
9385
9386 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9387 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9388
9389 else
9390
9391 cat >>confdefs.h <<_ACEOF
9392 #define ssize_t int
9393 _ACEOF
9394
9395 fi
9396
9397 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9398 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9399
9400 else
9401
9402 cat >>confdefs.h <<_ACEOF
9403 #define caddr_t char *
9404 _ACEOF
9405
9406 fi
9407
9408
9409
9410 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9411 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9412 gcc_header_sys_mman_h=yes
9413 else
9414 gcc_header_sys_mman_h=no
9415 fi
9416
9417 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9418 if test "x$ac_cv_func_mmap" = x""yes; then :
9419 gcc_func_mmap=yes
9420 else
9421 gcc_func_mmap=no
9422 fi
9423
9424 if test "$gcc_header_sys_mman_h" != yes \
9425 || test "$gcc_func_mmap" != yes; then
9426 gcc_cv_func_mmap_file=no
9427 gcc_cv_func_mmap_dev_zero=no
9428 gcc_cv_func_mmap_anon=no
9429 else
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9431 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9432 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 # Add a system to this blacklist if
9436 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9437 # memory area containing the same data that you'd get if you applied
9438 # read() to the same fd. The only system known to have a problem here
9439 # is VMS, where text files have record structure.
9440 case "$host_os" in
9441 *vms* | ultrix*)
9442 gcc_cv_func_mmap_file=no ;;
9443 *)
9444 gcc_cv_func_mmap_file=yes;;
9445 esac
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9448 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9450 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9451 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 # Add a system to this blacklist if it has mmap() but /dev/zero
9455 # does not exist, or if mmapping /dev/zero does not give anonymous
9456 # zeroed pages with both the following properties:
9457 # 1. If you map N consecutive pages in with one call, and then
9458 # unmap any subset of those pages, the pages that were not
9459 # explicitly unmapped remain accessible.
9460 # 2. If you map two adjacent blocks of memory and then unmap them
9461 # both at once, they must both go away.
9462 # Systems known to be in this category are Windows (all variants),
9463 # VMS, and Darwin.
9464 case "$host_os" in
9465 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9466 gcc_cv_func_mmap_dev_zero=no ;;
9467 *)
9468 gcc_cv_func_mmap_dev_zero=yes;;
9469 esac
9470 fi
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9472 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9473
9474 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9476 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9477 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 #include <sys/types.h>
9483 #include <sys/mman.h>
9484 #include <unistd.h>
9485
9486 #ifndef MAP_ANONYMOUS
9487 #define MAP_ANONYMOUS MAP_ANON
9488 #endif
9489
9490 int
9491 main ()
9492 {
9493 int n = MAP_ANONYMOUS;
9494 ;
9495 return 0;
9496 }
9497 _ACEOF
9498 if ac_fn_c_try_compile "$LINENO"; then :
9499 gcc_cv_decl_map_anon=yes
9500 else
9501 gcc_cv_decl_map_anon=no
9502 fi
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 fi
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9506 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9507
9508 if test $gcc_cv_decl_map_anon = no; then
9509 gcc_cv_func_mmap_anon=no
9510 else
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9512 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9513 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9517 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9518 # doesn't give anonymous zeroed pages with the same properties listed
9519 # above for use of /dev/zero.
9520 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9521 case "$host_os" in
9522 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9523 gcc_cv_func_mmap_anon=no ;;
9524 *)
9525 gcc_cv_func_mmap_anon=yes;;
9526 esac
9527 fi
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9529 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9530 fi
9531 fi
9532
9533 if test $gcc_cv_func_mmap_file = yes; then
9534
9535 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9536
9537 fi
9538 if test $gcc_cv_func_mmap_dev_zero = yes; then
9539
9540 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9541
9542 fi
9543 if test $gcc_cv_func_mmap_anon = yes; then
9544
9545 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9546
9547 fi
9548
9549
9550 case "${host}" in
9551 *-*-*vms*)
9552 # Under VMS, vfork works very differently than on Unix. The standard test
9553 # won't work, and it isn't easily adaptable. It makes more sense to
9554 # just force it.
9555 ac_cv_func_vfork_works=yes
9556 ;;
9557 esac
9558 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9559 if test "x$ac_cv_type_pid_t" = x""yes; then :
9560
9561 else
9562
9563 cat >>confdefs.h <<_ACEOF
9564 #define pid_t int
9565 _ACEOF
9566
9567 fi
9568
9569 for ac_header in vfork.h
9570 do :
9571 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9572 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9573 cat >>confdefs.h <<_ACEOF
9574 #define HAVE_VFORK_H 1
9575 _ACEOF
9576
9577 fi
9578 done
9579
9580 for ac_func in fork vfork
9581 do :
9582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9583 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9584 eval as_val=\$$as_ac_var
9585 if test "x$as_val" = x""yes; then :
9586 cat >>confdefs.h <<_ACEOF
9587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9588 _ACEOF
9589
9590 fi
9591 done
9592
9593 if test "x$ac_cv_func_fork" = xyes; then
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9595 $as_echo_n "checking for working fork... " >&6; }
9596 if test "${ac_cv_func_fork_works+set}" = set; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 if test "$cross_compiling" = yes; then :
9600 ac_cv_func_fork_works=cross
9601 else
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 $ac_includes_default
9605 int
9606 main ()
9607 {
9608
9609 /* By Ruediger Kuhlmann. */
9610 return fork () < 0;
9611
9612 ;
9613 return 0;
9614 }
9615 _ACEOF
9616 if ac_fn_c_try_run "$LINENO"; then :
9617 ac_cv_func_fork_works=yes
9618 else
9619 ac_cv_func_fork_works=no
9620 fi
9621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9622 conftest.$ac_objext conftest.beam conftest.$ac_ext
9623 fi
9624
9625 fi
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9627 $as_echo "$ac_cv_func_fork_works" >&6; }
9628
9629 else
9630 ac_cv_func_fork_works=$ac_cv_func_fork
9631 fi
9632 if test "x$ac_cv_func_fork_works" = xcross; then
9633 case $host in
9634 *-*-amigaos* | *-*-msdosdjgpp*)
9635 # Override, as these systems have only a dummy fork() stub
9636 ac_cv_func_fork_works=no
9637 ;;
9638 *)
9639 ac_cv_func_fork_works=yes
9640 ;;
9641 esac
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9643 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9644 fi
9645 ac_cv_func_vfork_works=$ac_cv_func_vfork
9646 if test "x$ac_cv_func_vfork" = xyes; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9648 $as_echo_n "checking for working vfork... " >&6; }
9649 if test "${ac_cv_func_vfork_works+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 if test "$cross_compiling" = yes; then :
9653 ac_cv_func_vfork_works=cross
9654 else
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657 /* Thanks to Paul Eggert for this test. */
9658 $ac_includes_default
9659 #include <sys/wait.h>
9660 #ifdef HAVE_VFORK_H
9661 # include <vfork.h>
9662 #endif
9663 /* On some sparc systems, changes by the child to local and incoming
9664 argument registers are propagated back to the parent. The compiler
9665 is told about this with #include <vfork.h>, but some compilers
9666 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9667 static variable whose address is put into a register that is
9668 clobbered by the vfork. */
9669 static void
9670 #ifdef __cplusplus
9671 sparc_address_test (int arg)
9672 # else
9673 sparc_address_test (arg) int arg;
9674 #endif
9675 {
9676 static pid_t child;
9677 if (!child) {
9678 child = vfork ();
9679 if (child < 0) {
9680 perror ("vfork");
9681 _exit(2);
9682 }
9683 if (!child) {
9684 arg = getpid();
9685 write(-1, "", 0);
9686 _exit (arg);
9687 }
9688 }
9689 }
9690
9691 int
9692 main ()
9693 {
9694 pid_t parent = getpid ();
9695 pid_t child;
9696
9697 sparc_address_test (0);
9698
9699 child = vfork ();
9700
9701 if (child == 0) {
9702 /* Here is another test for sparc vfork register problems. This
9703 test uses lots of local variables, at least as many local
9704 variables as main has allocated so far including compiler
9705 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9706 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9707 reuse the register of parent for one of the local variables,
9708 since it will think that parent can't possibly be used any more
9709 in this routine. Assigning to the local variable will thus
9710 munge parent in the parent process. */
9711 pid_t
9712 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9713 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9714 /* Convince the compiler that p..p7 are live; otherwise, it might
9715 use the same hardware register for all 8 local variables. */
9716 if (p != p1 || p != p2 || p != p3 || p != p4
9717 || p != p5 || p != p6 || p != p7)
9718 _exit(1);
9719
9720 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9721 from child file descriptors. If the child closes a descriptor
9722 before it execs or exits, this munges the parent's descriptor
9723 as well. Test for this by closing stdout in the child. */
9724 _exit(close(fileno(stdout)) != 0);
9725 } else {
9726 int status;
9727 struct stat st;
9728
9729 while (wait(&status) != child)
9730 ;
9731 return (
9732 /* Was there some problem with vforking? */
9733 child < 0
9734
9735 /* Did the child fail? (This shouldn't happen.) */
9736 || status
9737
9738 /* Did the vfork/compiler bug occur? */
9739 || parent != getpid()
9740
9741 /* Did the file descriptor bug occur? */
9742 || fstat(fileno(stdout), &st) != 0
9743 );
9744 }
9745 }
9746 _ACEOF
9747 if ac_fn_c_try_run "$LINENO"; then :
9748 ac_cv_func_vfork_works=yes
9749 else
9750 ac_cv_func_vfork_works=no
9751 fi
9752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9753 conftest.$ac_objext conftest.beam conftest.$ac_ext
9754 fi
9755
9756 fi
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9758 $as_echo "$ac_cv_func_vfork_works" >&6; }
9759
9760 fi;
9761 if test "x$ac_cv_func_fork_works" = xcross; then
9762 ac_cv_func_vfork_works=$ac_cv_func_vfork
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9764 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9765 fi
9766
9767 if test "x$ac_cv_func_vfork_works" = xyes; then
9768
9769 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9770
9771 else
9772
9773 $as_echo "#define vfork fork" >>confdefs.h
9774
9775 fi
9776 if test "x$ac_cv_func_fork_works" = xyes; then
9777
9778 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9779
9780 fi
9781
9782
9783 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9784 # iconv() prototype.
9785 ac_ext=cpp
9786 ac_cpp='$CXXCPP $CPPFLAGS'
9787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9790
9791
9792 if test "X$prefix" = "XNONE"; then
9793 acl_final_prefix="$ac_default_prefix"
9794 else
9795 acl_final_prefix="$prefix"
9796 fi
9797 if test "X$exec_prefix" = "XNONE"; then
9798 acl_final_exec_prefix='${prefix}'
9799 else
9800 acl_final_exec_prefix="$exec_prefix"
9801 fi
9802 acl_save_prefix="$prefix"
9803 prefix="$acl_final_prefix"
9804 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9805 prefix="$acl_save_prefix"
9806
9807
9808 # Check whether --with-gnu-ld was given.
9809 if test "${with_gnu_ld+set}" = set; then :
9810 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9811 else
9812 with_gnu_ld=no
9813 fi
9814
9815 # Prepare PATH_SEPARATOR.
9816 # The user is always right.
9817 if test "${PATH_SEPARATOR+set}" != set; then
9818 echo "#! /bin/sh" >conf$$.sh
9819 echo "exit 0" >>conf$$.sh
9820 chmod +x conf$$.sh
9821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9822 PATH_SEPARATOR=';'
9823 else
9824 PATH_SEPARATOR=:
9825 fi
9826 rm -f conf$$.sh
9827 fi
9828 ac_prog=ld
9829 if test "$GCC" = yes; then
9830 # Check if gcc -print-prog-name=ld gives a path.
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9832 $as_echo_n "checking for ld used by GCC... " >&6; }
9833 case $host in
9834 *-*-mingw*)
9835 # gcc leaves a trailing carriage return which upsets mingw
9836 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9837 *)
9838 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9839 esac
9840 case $ac_prog in
9841 # Accept absolute paths.
9842 [\\/]* | [A-Za-z]:[\\/]*)
9843 re_direlt='/[^/][^/]*/\.\./'
9844 # Canonicalize the path of ld
9845 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9846 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9847 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9848 done
9849 test -z "$LD" && LD="$ac_prog"
9850 ;;
9851 "")
9852 # If it fails, then pretend we aren't using GCC.
9853 ac_prog=ld
9854 ;;
9855 *)
9856 # If it is relative, then search for the first ld in PATH.
9857 with_gnu_ld=unknown
9858 ;;
9859 esac
9860 elif test "$with_gnu_ld" = yes; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9862 $as_echo_n "checking for GNU ld... " >&6; }
9863 else
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9865 $as_echo_n "checking for non-GNU ld... " >&6; }
9866 fi
9867 if test "${acl_cv_path_LD+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 if test -z "$LD"; then
9871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9872 for ac_dir in $PATH; do
9873 test -z "$ac_dir" && ac_dir=.
9874 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9875 acl_cv_path_LD="$ac_dir/$ac_prog"
9876 # Check to see if the program is GNU ld. I'd rather use --version,
9877 # but apparently some GNU ld's only accept -v.
9878 # Break only if it was the GNU/non-GNU ld that we prefer.
9879 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9880 test "$with_gnu_ld" != no && break
9881 else
9882 test "$with_gnu_ld" != yes && break
9883 fi
9884 fi
9885 done
9886 IFS="$ac_save_ifs"
9887 else
9888 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9889 fi
9890 fi
9891
9892 LD="$acl_cv_path_LD"
9893 if test -n "$LD"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9895 $as_echo "$LD" >&6; }
9896 else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 $as_echo "no" >&6; }
9899 fi
9900 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9902 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9903 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9907 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9908 acl_cv_prog_gnu_ld=yes
9909 else
9910 acl_cv_prog_gnu_ld=no
9911 fi
9912 fi
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9914 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9915 with_gnu_ld=$acl_cv_prog_gnu_ld
9916
9917
9918
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9920 $as_echo_n "checking for shared library run path origin... " >&6; }
9921 if test "${acl_cv_rpath+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924
9925 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9926 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9927 . ./conftest.sh
9928 rm -f ./conftest.sh
9929 acl_cv_rpath=done
9930
9931 fi
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9933 $as_echo "$acl_cv_rpath" >&6; }
9934 wl="$acl_cv_wl"
9935 libext="$acl_cv_libext"
9936 shlibext="$acl_cv_shlibext"
9937 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9938 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9939 hardcode_direct="$acl_cv_hardcode_direct"
9940 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9941 # Check whether --enable-rpath was given.
9942 if test "${enable_rpath+set}" = set; then :
9943 enableval=$enable_rpath; :
9944 else
9945 enable_rpath=yes
9946 fi
9947
9948
9949
9950
9951
9952
9953
9954
9955 use_additional=yes
9956
9957 acl_save_prefix="$prefix"
9958 prefix="$acl_final_prefix"
9959 acl_save_exec_prefix="$exec_prefix"
9960 exec_prefix="$acl_final_exec_prefix"
9961
9962 eval additional_includedir=\"$includedir\"
9963 eval additional_libdir=\"$libdir\"
9964
9965 exec_prefix="$acl_save_exec_prefix"
9966 prefix="$acl_save_prefix"
9967
9968
9969 # Check whether --with-libiconv-prefix was given.
9970 if test "${with_libiconv_prefix+set}" = set; then :
9971 withval=$with_libiconv_prefix;
9972 if test "X$withval" = "Xno"; then
9973 use_additional=no
9974 else
9975 if test "X$withval" = "X"; then
9976
9977 acl_save_prefix="$prefix"
9978 prefix="$acl_final_prefix"
9979 acl_save_exec_prefix="$exec_prefix"
9980 exec_prefix="$acl_final_exec_prefix"
9981
9982 eval additional_includedir=\"$includedir\"
9983 eval additional_libdir=\"$libdir\"
9984
9985 exec_prefix="$acl_save_exec_prefix"
9986 prefix="$acl_save_prefix"
9987
9988 else
9989 additional_includedir="$withval/include"
9990 additional_libdir="$withval/lib"
9991 fi
9992 fi
9993
9994 fi
9995
9996 LIBICONV=
9997 LTLIBICONV=
9998 INCICONV=
9999 rpathdirs=
10000 ltrpathdirs=
10001 names_already_handled=
10002 names_next_round='iconv '
10003 while test -n "$names_next_round"; do
10004 names_this_round="$names_next_round"
10005 names_next_round=
10006 for name in $names_this_round; do
10007 already_handled=
10008 for n in $names_already_handled; do
10009 if test "$n" = "$name"; then
10010 already_handled=yes
10011 break
10012 fi
10013 done
10014 if test -z "$already_handled"; then
10015 names_already_handled="$names_already_handled $name"
10016 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10017 eval value=\"\$HAVE_LIB$uppername\"
10018 if test -n "$value"; then
10019 if test "$value" = yes; then
10020 eval value=\"\$LIB$uppername\"
10021 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10022 eval value=\"\$LTLIB$uppername\"
10023 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10024 else
10025 :
10026 fi
10027 else
10028 found_dir=
10029 found_la=
10030 found_so=
10031 found_a=
10032 if test $use_additional = yes; then
10033 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10034 found_dir="$additional_libdir"
10035 found_so="$additional_libdir/lib$name.$shlibext"
10036 if test -f "$additional_libdir/lib$name.la"; then
10037 found_la="$additional_libdir/lib$name.la"
10038 fi
10039 else
10040 if test -f "$additional_libdir/lib$name.$libext"; then
10041 found_dir="$additional_libdir"
10042 found_a="$additional_libdir/lib$name.$libext"
10043 if test -f "$additional_libdir/lib$name.la"; then
10044 found_la="$additional_libdir/lib$name.la"
10045 fi
10046 fi
10047 fi
10048 fi
10049 if test "X$found_dir" = "X"; then
10050 for x in $LDFLAGS $LTLIBICONV; do
10051
10052 acl_save_prefix="$prefix"
10053 prefix="$acl_final_prefix"
10054 acl_save_exec_prefix="$exec_prefix"
10055 exec_prefix="$acl_final_exec_prefix"
10056 eval x=\"$x\"
10057 exec_prefix="$acl_save_exec_prefix"
10058 prefix="$acl_save_prefix"
10059
10060 case "$x" in
10061 -L*)
10062 dir=`echo "X$x" | sed -e 's/^X-L//'`
10063 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10064 found_dir="$dir"
10065 found_so="$dir/lib$name.$shlibext"
10066 if test -f "$dir/lib$name.la"; then
10067 found_la="$dir/lib$name.la"
10068 fi
10069 else
10070 if test -f "$dir/lib$name.$libext"; then
10071 found_dir="$dir"
10072 found_a="$dir/lib$name.$libext"
10073 if test -f "$dir/lib$name.la"; then
10074 found_la="$dir/lib$name.la"
10075 fi
10076 fi
10077 fi
10078 ;;
10079 esac
10080 if test "X$found_dir" != "X"; then
10081 break
10082 fi
10083 done
10084 fi
10085 if test "X$found_dir" != "X"; then
10086 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10087 if test "X$found_so" != "X"; then
10088 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10089 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10090 else
10091 haveit=
10092 for x in $ltrpathdirs; do
10093 if test "X$x" = "X$found_dir"; then
10094 haveit=yes
10095 break
10096 fi
10097 done
10098 if test -z "$haveit"; then
10099 ltrpathdirs="$ltrpathdirs $found_dir"
10100 fi
10101 if test "$hardcode_direct" = yes; then
10102 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10103 else
10104 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10105 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10106 haveit=
10107 for x in $rpathdirs; do
10108 if test "X$x" = "X$found_dir"; then
10109 haveit=yes
10110 break
10111 fi
10112 done
10113 if test -z "$haveit"; then
10114 rpathdirs="$rpathdirs $found_dir"
10115 fi
10116 else
10117 haveit=
10118 for x in $LDFLAGS $LIBICONV; do
10119
10120 acl_save_prefix="$prefix"
10121 prefix="$acl_final_prefix"
10122 acl_save_exec_prefix="$exec_prefix"
10123 exec_prefix="$acl_final_exec_prefix"
10124 eval x=\"$x\"
10125 exec_prefix="$acl_save_exec_prefix"
10126 prefix="$acl_save_prefix"
10127
10128 if test "X$x" = "X-L$found_dir"; then
10129 haveit=yes
10130 break
10131 fi
10132 done
10133 if test -z "$haveit"; then
10134 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10135 fi
10136 if test "$hardcode_minus_L" != no; then
10137 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10138 else
10139 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10140 fi
10141 fi
10142 fi
10143 fi
10144 else
10145 if test "X$found_a" != "X"; then
10146 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10147 else
10148 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10149 fi
10150 fi
10151 additional_includedir=
10152 case "$found_dir" in
10153 */lib | */lib/)
10154 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10155 additional_includedir="$basedir/include"
10156 ;;
10157 esac
10158 if test "X$additional_includedir" != "X"; then
10159 if test "X$additional_includedir" != "X/usr/include"; then
10160 haveit=
10161 if test "X$additional_includedir" = "X/usr/local/include"; then
10162 if test -n "$GCC"; then
10163 case $host_os in
10164 linux*) haveit=yes;;
10165 esac
10166 fi
10167 fi
10168 if test -z "$haveit"; then
10169 for x in $CPPFLAGS $INCICONV; do
10170
10171 acl_save_prefix="$prefix"
10172 prefix="$acl_final_prefix"
10173 acl_save_exec_prefix="$exec_prefix"
10174 exec_prefix="$acl_final_exec_prefix"
10175 eval x=\"$x\"
10176 exec_prefix="$acl_save_exec_prefix"
10177 prefix="$acl_save_prefix"
10178
10179 if test "X$x" = "X-I$additional_includedir"; then
10180 haveit=yes
10181 break
10182 fi
10183 done
10184 if test -z "$haveit"; then
10185 if test -d "$additional_includedir"; then
10186 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10187 fi
10188 fi
10189 fi
10190 fi
10191 fi
10192 if test -n "$found_la"; then
10193 save_libdir="$libdir"
10194 case "$found_la" in
10195 */* | *\\*) . "$found_la" ;;
10196 *) . "./$found_la" ;;
10197 esac
10198 libdir="$save_libdir"
10199 for dep in $dependency_libs; do
10200 case "$dep" in
10201 -L*)
10202 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10203 if test "X$additional_libdir" != "X/usr/lib"; then
10204 haveit=
10205 if test "X$additional_libdir" = "X/usr/local/lib"; then
10206 if test -n "$GCC"; then
10207 case $host_os in
10208 linux*) haveit=yes;;
10209 esac
10210 fi
10211 fi
10212 if test -z "$haveit"; then
10213 haveit=
10214 for x in $LDFLAGS $LIBICONV; do
10215
10216 acl_save_prefix="$prefix"
10217 prefix="$acl_final_prefix"
10218 acl_save_exec_prefix="$exec_prefix"
10219 exec_prefix="$acl_final_exec_prefix"
10220 eval x=\"$x\"
10221 exec_prefix="$acl_save_exec_prefix"
10222 prefix="$acl_save_prefix"
10223
10224 if test "X$x" = "X-L$additional_libdir"; then
10225 haveit=yes
10226 break
10227 fi
10228 done
10229 if test -z "$haveit"; then
10230 if test -d "$additional_libdir"; then
10231 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10232 fi
10233 fi
10234 haveit=
10235 for x in $LDFLAGS $LTLIBICONV; do
10236
10237 acl_save_prefix="$prefix"
10238 prefix="$acl_final_prefix"
10239 acl_save_exec_prefix="$exec_prefix"
10240 exec_prefix="$acl_final_exec_prefix"
10241 eval x=\"$x\"
10242 exec_prefix="$acl_save_exec_prefix"
10243 prefix="$acl_save_prefix"
10244
10245 if test "X$x" = "X-L$additional_libdir"; then
10246 haveit=yes
10247 break
10248 fi
10249 done
10250 if test -z "$haveit"; then
10251 if test -d "$additional_libdir"; then
10252 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10253 fi
10254 fi
10255 fi
10256 fi
10257 ;;
10258 -R*)
10259 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10260 if test "$enable_rpath" != no; then
10261 haveit=
10262 for x in $rpathdirs; do
10263 if test "X$x" = "X$dir"; then
10264 haveit=yes
10265 break
10266 fi
10267 done
10268 if test -z "$haveit"; then
10269 rpathdirs="$rpathdirs $dir"
10270 fi
10271 haveit=
10272 for x in $ltrpathdirs; do
10273 if test "X$x" = "X$dir"; then
10274 haveit=yes
10275 break
10276 fi
10277 done
10278 if test -z "$haveit"; then
10279 ltrpathdirs="$ltrpathdirs $dir"
10280 fi
10281 fi
10282 ;;
10283 -l*)
10284 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10285 ;;
10286 *.la)
10287 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10288 ;;
10289 *)
10290 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10291 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10292 ;;
10293 esac
10294 done
10295 fi
10296 else
10297 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10298 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10299 fi
10300 fi
10301 fi
10302 done
10303 done
10304 if test "X$rpathdirs" != "X"; then
10305 if test -n "$hardcode_libdir_separator"; then
10306 alldirs=
10307 for found_dir in $rpathdirs; do
10308 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10309 done
10310 acl_save_libdir="$libdir"
10311 libdir="$alldirs"
10312 eval flag=\"$hardcode_libdir_flag_spec\"
10313 libdir="$acl_save_libdir"
10314 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10315 else
10316 for found_dir in $rpathdirs; do
10317 acl_save_libdir="$libdir"
10318 libdir="$found_dir"
10319 eval flag=\"$hardcode_libdir_flag_spec\"
10320 libdir="$acl_save_libdir"
10321 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10322 done
10323 fi
10324 fi
10325 if test "X$ltrpathdirs" != "X"; then
10326 for found_dir in $ltrpathdirs; do
10327 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10328 done
10329 fi
10330
10331
10332
10333
10334
10335
10336
10337 am_save_CPPFLAGS="$CPPFLAGS"
10338
10339 for element in $INCICONV; do
10340 haveit=
10341 for x in $CPPFLAGS; do
10342
10343 acl_save_prefix="$prefix"
10344 prefix="$acl_final_prefix"
10345 acl_save_exec_prefix="$exec_prefix"
10346 exec_prefix="$acl_final_exec_prefix"
10347 eval x=\"$x\"
10348 exec_prefix="$acl_save_exec_prefix"
10349 prefix="$acl_save_prefix"
10350
10351 if test "X$x" = "X$element"; then
10352 haveit=yes
10353 break
10354 fi
10355 done
10356 if test -z "$haveit"; then
10357 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10358 fi
10359 done
10360
10361
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10363 $as_echo_n "checking for iconv... " >&6; }
10364 if test "${am_cv_func_iconv+set}" = set; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367
10368 am_cv_func_iconv="no, consider installing GNU libiconv"
10369 am_cv_lib_iconv=no
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372 #include <stdlib.h>
10373 #include <iconv.h>
10374 int
10375 main ()
10376 {
10377 iconv_t cd = iconv_open("","");
10378 iconv(cd,NULL,NULL,NULL,NULL);
10379 iconv_close(cd);
10380 ;
10381 return 0;
10382 }
10383 _ACEOF
10384 if ac_fn_cxx_try_link "$LINENO"; then :
10385 am_cv_func_iconv=yes
10386 fi
10387 rm -f core conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10389 if test "$am_cv_func_iconv" != yes; then
10390 am_save_LIBS="$LIBS"
10391 LIBS="$LIBS $LIBICONV"
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394 #include <stdlib.h>
10395 #include <iconv.h>
10396 int
10397 main ()
10398 {
10399 iconv_t cd = iconv_open("","");
10400 iconv(cd,NULL,NULL,NULL,NULL);
10401 iconv_close(cd);
10402 ;
10403 return 0;
10404 }
10405 _ACEOF
10406 if ac_fn_cxx_try_link "$LINENO"; then :
10407 am_cv_lib_iconv=yes
10408 am_cv_func_iconv=yes
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412 LIBS="$am_save_LIBS"
10413 fi
10414
10415 fi
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10417 $as_echo "$am_cv_func_iconv" >&6; }
10418 if test "$am_cv_func_iconv" = yes; then
10419
10420 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10421
10422 fi
10423 if test "$am_cv_lib_iconv" = yes; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10425 $as_echo_n "checking how to link with libiconv... " >&6; }
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10427 $as_echo "$LIBICONV" >&6; }
10428 else
10429 CPPFLAGS="$am_save_CPPFLAGS"
10430 LIBICONV=
10431 LTLIBICONV=
10432 fi
10433
10434
10435
10436 if test "$am_cv_func_iconv" = yes; then
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10438 $as_echo_n "checking for iconv declaration... " >&6; }
10439 if test "${am_cv_proto_iconv+set}" = set; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10445
10446 #include <stdlib.h>
10447 #include <iconv.h>
10448 extern
10449 #ifdef __cplusplus
10450 "C"
10451 #endif
10452 #if defined(__STDC__) || defined(__cplusplus)
10453 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10454 #else
10455 size_t iconv();
10456 #endif
10457
10458 int
10459 main ()
10460 {
10461
10462 ;
10463 return 0;
10464 }
10465 _ACEOF
10466 if ac_fn_cxx_try_compile "$LINENO"; then :
10467 am_cv_proto_iconv_arg1=""
10468 else
10469 am_cv_proto_iconv_arg1="const"
10470 fi
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472 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);"
10473 fi
10474
10475 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10477 }$am_cv_proto_iconv" >&5
10478 $as_echo "${ac_t:-
10479 }$am_cv_proto_iconv" >&6; }
10480
10481 cat >>confdefs.h <<_ACEOF
10482 #define ICONV_CONST $am_cv_proto_iconv_arg1
10483 _ACEOF
10484
10485 fi
10486
10487 ac_ext=c
10488 ac_cpp='$CPP $CPPFLAGS'
10489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10492
10493
10494 # Until we have in-tree GNU iconv:
10495 LIBICONV_DEP=
10496
10497
10498
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10500 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10501 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506 #include <locale.h>
10507 int
10508 main ()
10509 {
10510 return LC_MESSAGES
10511 ;
10512 return 0;
10513 }
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10516 am_cv_val_LC_MESSAGES=yes
10517 else
10518 am_cv_val_LC_MESSAGES=no
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10522 fi
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10524 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10525 if test $am_cv_val_LC_MESSAGES = yes; then
10526
10527 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10528
10529 fi
10530
10531
10532
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10534 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10535 if test "${am_cv_langinfo_codeset+set}" = set; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540 #include <langinfo.h>
10541 int
10542 main ()
10543 {
10544 char* cs = nl_langinfo(CODESET);
10545 ;
10546 return 0;
10547 }
10548 _ACEOF
10549 if ac_fn_c_try_link "$LINENO"; then :
10550 am_cv_langinfo_codeset=yes
10551 else
10552 am_cv_langinfo_codeset=no
10553 fi
10554 rm -f core conftest.err conftest.$ac_objext \
10555 conftest$ac_exeext conftest.$ac_ext
10556
10557 fi
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10559 $as_echo "$am_cv_langinfo_codeset" >&6; }
10560 if test $am_cv_langinfo_codeset = yes; then
10561
10562 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10563
10564 fi
10565
10566
10567 # We will need to find libiberty.h and ansidecl.h
10568 saved_CFLAGS="$CFLAGS"
10569 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10570 saved_CXXFLAGS="$CXXFLAGS"
10571 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10572 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10573 stpcpy strnlen strsignal strstr strverscmp \
10574 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10575 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
10576 do
10577 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10579 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10580 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585 #undef $ac_tr_decl
10586 #define $ac_tr_decl 1
10587
10588 #include "ansidecl.h"
10589 #include "system.h"
10590
10591 int
10592 main ()
10593 {
10594 #ifndef $ac_func
10595 char *(*pfn) = (char *(*)) $ac_func ;
10596 #endif
10597 ;
10598 return 0;
10599 }
10600 _ACEOF
10601 if ac_fn_c_try_compile "$LINENO"; then :
10602 eval "gcc_cv_have_decl_$ac_func=yes"
10603 else
10604 eval "gcc_cv_have_decl_$ac_func=no"
10605 fi
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 fi
10608
10609 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10611 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10612 #define $ac_tr_decl 1
10613 _ACEOF
10614
10615 else
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10618 #define $ac_tr_decl 0
10619 _ACEOF
10620
10621 fi
10622
10623 done
10624
10625
10626 for ac_func in getrlimit setrlimit getrusage
10627 do
10628 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10630 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10631 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10632 $as_echo_n "(cached) " >&6
10633 else
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10636 #undef $ac_tr_decl
10637 #define $ac_tr_decl 1
10638
10639 #include "ansidecl.h"
10640 #include "system.h"
10641 #ifdef HAVE_SYS_RESOURCE_H
10642 #include <sys/resource.h>
10643 #endif
10644
10645
10646 int
10647 main ()
10648 {
10649 #ifndef $ac_func
10650 char *(*pfn) = (char *(*)) $ac_func ;
10651 #endif
10652 ;
10653 return 0;
10654 }
10655 _ACEOF
10656 if ac_fn_c_try_compile "$LINENO"; then :
10657 eval "gcc_cv_have_decl_$ac_func=yes"
10658 else
10659 eval "gcc_cv_have_decl_$ac_func=no"
10660 fi
10661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 fi
10663
10664 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10666 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10667 #define $ac_tr_decl 1
10668 _ACEOF
10669
10670 else
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10673 #define $ac_tr_decl 0
10674 _ACEOF
10675
10676 fi
10677
10678 done
10679
10680
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683
10684 #include "ansidecl.h"
10685 #include "system.h"
10686 #ifdef HAVE_SYS_RESOURCE_H
10687 #include <sys/resource.h>
10688 #endif
10689
10690 int
10691 main ()
10692 {
10693 rlim_t l = 0;
10694 ;
10695 return 0;
10696 }
10697 _ACEOF
10698 if ac_fn_c_try_compile "$LINENO"; then :
10699
10700 else
10701
10702 $as_echo "#define rlim_t long" >>confdefs.h
10703
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706
10707 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10708 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10709 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10710 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10711 for ac_func in ldgetname
10712 do
10713 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10715 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10716 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721 #undef $ac_tr_decl
10722 #define $ac_tr_decl 1
10723
10724 #include "ansidecl.h"
10725 #include "system.h"
10726 #ifdef HAVE_LDFCN_H
10727 #undef FREAD
10728 #undef FWRITE
10729 #include <ldfcn.h>
10730 #endif
10731
10732
10733 int
10734 main ()
10735 {
10736 #ifndef $ac_func
10737 char *(*pfn) = (char *(*)) $ac_func ;
10738 #endif
10739 ;
10740 return 0;
10741 }
10742 _ACEOF
10743 if ac_fn_c_try_compile "$LINENO"; then :
10744 eval "gcc_cv_have_decl_$ac_func=yes"
10745 else
10746 eval "gcc_cv_have_decl_$ac_func=no"
10747 fi
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 fi
10750
10751 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10753 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10754 #define $ac_tr_decl 1
10755 _ACEOF
10756
10757 else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10760 #define $ac_tr_decl 0
10761 _ACEOF
10762
10763 fi
10764
10765 done
10766
10767
10768 for ac_func in times
10769 do
10770 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10772 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10773 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778 #undef $ac_tr_decl
10779 #define $ac_tr_decl 1
10780
10781 #include "ansidecl.h"
10782 #include "system.h"
10783 #ifdef HAVE_SYS_TIMES_H
10784 #include <sys/times.h>
10785 #endif
10786
10787
10788 int
10789 main ()
10790 {
10791 #ifndef $ac_func
10792 char *(*pfn) = (char *(*)) $ac_func ;
10793 #endif
10794 ;
10795 return 0;
10796 }
10797 _ACEOF
10798 if ac_fn_c_try_compile "$LINENO"; then :
10799 eval "gcc_cv_have_decl_$ac_func=yes"
10800 else
10801 eval "gcc_cv_have_decl_$ac_func=no"
10802 fi
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 fi
10805
10806 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10808 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10809 #define $ac_tr_decl 1
10810 _ACEOF
10811
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10815 #define $ac_tr_decl 0
10816 _ACEOF
10817
10818 fi
10819
10820 done
10821
10822
10823 for ac_func in sigaltstack
10824 do
10825 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10827 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10828 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833 #undef $ac_tr_decl
10834 #define $ac_tr_decl 1
10835
10836 #include "ansidecl.h"
10837 #include "system.h"
10838 #include <signal.h>
10839
10840
10841 int
10842 main ()
10843 {
10844 #ifndef $ac_func
10845 char *(*pfn) = (char *(*)) $ac_func ;
10846 #endif
10847 ;
10848 return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_compile "$LINENO"; then :
10852 eval "gcc_cv_have_decl_$ac_func=yes"
10853 else
10854 eval "gcc_cv_have_decl_$ac_func=no"
10855 fi
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857 fi
10858
10859 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10861 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10862 #define $ac_tr_decl 1
10863 _ACEOF
10864
10865 else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10868 #define $ac_tr_decl 0
10869 _ACEOF
10870
10871 fi
10872
10873 done
10874
10875
10876 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10877 # prototype.
10878 ac_ext=cpp
10879 ac_cpp='$CXXCPP $CPPFLAGS'
10880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10883
10884 for ac_func in madvise
10885 do
10886 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10888 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10889 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10894 #undef $ac_tr_decl
10895 #define $ac_tr_decl 1
10896
10897 #include "ansidecl.h"
10898 #include "system.h"
10899
10900
10901 int
10902 main ()
10903 {
10904 #ifndef $ac_func
10905 char *(*pfn) = (char *(*)) $ac_func ;
10906 #endif
10907 ;
10908 return 0;
10909 }
10910 _ACEOF
10911 if ac_fn_cxx_try_compile "$LINENO"; then :
10912 eval "gcc_cv_have_decl_$ac_func=yes"
10913 else
10914 eval "gcc_cv_have_decl_$ac_func=no"
10915 fi
10916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10917 fi
10918
10919 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10921 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10922 #define $ac_tr_decl 1
10923 _ACEOF
10924
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10928 #define $ac_tr_decl 0
10929 _ACEOF
10930
10931 fi
10932
10933 done
10934
10935 ac_ext=c
10936 ac_cpp='$CPP $CPPFLAGS'
10937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10940
10941
10942 # More time-related stuff.
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10944 $as_echo_n "checking for struct tms... " >&6; }
10945 if test "${ac_cv_struct_tms+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10951
10952 #include "ansidecl.h"
10953 #include "system.h"
10954 #ifdef HAVE_SYS_TIMES_H
10955 #include <sys/times.h>
10956 #endif
10957
10958 int
10959 main ()
10960 {
10961 struct tms tms;
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_compile "$LINENO"; then :
10967 ac_cv_struct_tms=yes
10968 else
10969 ac_cv_struct_tms=no
10970 fi
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 fi
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10974 $as_echo "$ac_cv_struct_tms" >&6; }
10975 if test $ac_cv_struct_tms = yes; then
10976
10977 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10978
10979 fi
10980
10981 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10982 # revisit after autoconf 2.50.
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10984 $as_echo_n "checking for clock_t... " >&6; }
10985 if test "${gcc_cv_type_clock_t+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991
10992 #include "ansidecl.h"
10993 #include "system.h"
10994
10995 int
10996 main ()
10997 {
10998 clock_t x;
10999 ;
11000 return 0;
11001 }
11002 _ACEOF
11003 if ac_fn_c_try_compile "$LINENO"; then :
11004 gcc_cv_type_clock_t=yes
11005 else
11006 gcc_cv_type_clock_t=no
11007 fi
11008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11009 fi
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11011 $as_echo "$gcc_cv_type_clock_t" >&6; }
11012 if test $gcc_cv_type_clock_t = yes; then
11013
11014 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11015
11016 fi
11017
11018 # Check if F_SETLKW is supported by fcntl.
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11020 $as_echo_n "checking for F_SETLKW... " >&6; }
11021 if test "${ac_cv_f_setlkw+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027
11028 #include <fcntl.h>
11029 int
11030 main ()
11031 {
11032
11033 struct flock fl;
11034 fl.l_whence = 0;
11035 fl.l_start = 0;
11036 fl.l_len = 0;
11037 fl.l_pid = 0;
11038 return fcntl (1, F_SETLKW, &fl);
11039 ;
11040 return 0;
11041 }
11042 _ACEOF
11043 if ac_fn_c_try_compile "$LINENO"; then :
11044 ac_cv_f_setlkw=yes
11045 else
11046 ac_cv_f_setlkw=no
11047 fi
11048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049 fi
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11051 $as_echo "$ac_cv_f_setlkw" >&6; }
11052 if test $ac_cv_f_setlkw = yes; then
11053
11054 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11055
11056 fi
11057
11058 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11059 CFLAGS="$saved_CFLAGS"
11060 CXXFLAGS="$saved_CXXFLAGS"
11061
11062 # mkdir takes a single argument on some systems.
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11064 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11065 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11066 $as_echo_n "(cached) " >&6
11067 else
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11070
11071 #include <sys/types.h>
11072 #ifdef HAVE_SYS_STAT_H
11073 # include <sys/stat.h>
11074 #endif
11075 #ifdef HAVE_UNISTD_H
11076 # include <unistd.h>
11077 #endif
11078 #ifdef HAVE_DIRECT_H
11079 # include <direct.h>
11080 #endif
11081 int
11082 main ()
11083 {
11084 mkdir ("foo", 0);
11085 ;
11086 return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_c_try_compile "$LINENO"; then :
11090 gcc_cv_mkdir_takes_one_arg=no
11091 else
11092 gcc_cv_mkdir_takes_one_arg=yes
11093 fi
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 fi
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11097 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11098 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11099
11100 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11101
11102 fi
11103
11104
11105 # File extensions
11106 manext='.1'
11107 objext='.o'
11108
11109
11110
11111 # With Setjmp/Longjmp based exception handling.
11112 # Check whether --enable-sjlj-exceptions was given.
11113 if test "${enable_sjlj_exceptions+set}" = set; then :
11114 enableval=$enable_sjlj_exceptions; case $target in
11115 *-*-hpux10*)
11116 if test $enableval != yes; then
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11118 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11119 enableval=yes
11120 fi
11121 ;;
11122 esac
11123 force_sjlj_exceptions=yes
11124 else
11125 case $target in
11126 *-*-hpux10*)
11127 force_sjlj_exceptions=yes
11128 enableval=yes
11129 ;;
11130 lm32*-*-*)
11131 force_sjlj_exceptions=yes
11132 enableval=yes
11133 ;;
11134 *)
11135 force_sjlj_exceptions=no
11136 ;;
11137 esac
11138 fi
11139
11140 if test $force_sjlj_exceptions = yes; then
11141 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11142
11143 cat >>confdefs.h <<_ACEOF
11144 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11145 _ACEOF
11146
11147 fi
11148
11149 # --------------------------------------------------------
11150 # Build, host, and target specific configuration fragments
11151 # --------------------------------------------------------
11152
11153 # Collect build-machine-specific information.
11154 . ${srcdir}/config.build
11155
11156 # Collect host-machine-specific information.
11157 . ${srcdir}/config.host
11158
11159 target_gtfiles=
11160
11161 # Collect target-machine-specific information.
11162 . ${srcdir}/config.gcc
11163
11164 extra_objs="${host_extra_objs} ${extra_objs}"
11165 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11166
11167 # Default the target-machine variables that were not explicitly set.
11168 if test x"$tm_file" = x
11169 then tm_file=$cpu_type/$cpu_type.h; fi
11170
11171 if test x"$extra_headers" = x
11172 then extra_headers=; fi
11173
11174 if test x$md_file = x
11175 then md_file=$cpu_type/$cpu_type.md; fi
11176
11177 if test x$out_file = x
11178 then out_file=$cpu_type/$cpu_type.c; fi
11179
11180 if test x"$tmake_file" = x
11181 then tmake_file=$cpu_type/t-$cpu_type
11182 fi
11183
11184 # Support --enable-initfini-array.
11185 if test x$enable_initfini_array != xno; then
11186 tm_file="${tm_file} initfini-array.h"
11187 fi
11188
11189 if test x"$dwarf2" = xyes
11190 then tm_file="$tm_file tm-dwarf2.h"
11191 fi
11192
11193 # Say what files are being used for the output code and MD file.
11194 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11195 echo "Using \`$srcdir/config/$md_file' as machine description file."
11196
11197 # If any of the xm_file variables contain nonexistent files, warn
11198 # about them and drop them.
11199
11200 bx=
11201 for x in $build_xm_file; do
11202 if test -f $srcdir/config/$x
11203 then bx="$bx $x"
11204 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11205 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11206 fi
11207 done
11208 build_xm_file="$bx"
11209
11210 hx=
11211 for x in $host_xm_file; do
11212 if test -f $srcdir/config/$x
11213 then hx="$hx $x"
11214 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11215 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11216 fi
11217 done
11218 host_xm_file="$hx"
11219
11220 tx=
11221 for x in $xm_file; do
11222 if test -f $srcdir/config/$x
11223 then tx="$tx $x"
11224 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11225 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11226 fi
11227 done
11228 xm_file="$tx"
11229
11230 count=a
11231 for f in $tm_file; do
11232 count=${count}x
11233 done
11234 if test $count = ax; then
11235 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11236 else
11237 echo "Using the following target machine macro files:"
11238 for f in $tm_file; do
11239 echo " $srcdir/config/$f"
11240 done
11241 fi
11242
11243 if test x$use_long_long_for_widest_fast_int = xyes; then
11244
11245 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11246
11247 fi
11248
11249 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11250
11251 cat >>confdefs.h <<_ACEOF
11252 #define HAVE_GNU_LD $gnu_ld_bool
11253 _ACEOF
11254
11255
11256 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11257
11258 cat >>confdefs.h <<_ACEOF
11259 #define HAVE_GNU_AS $gnu_as_bool
11260 _ACEOF
11261
11262
11263 count=a
11264 for f in $host_xm_file; do
11265 count=${count}x
11266 done
11267 if test $count = a; then
11268 :
11269 elif test $count = ax; then
11270 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11271 else
11272 echo "Using the following host machine macro files:"
11273 for f in $host_xm_file; do
11274 echo " $srcdir/config/$f"
11275 done
11276 fi
11277 echo "Using ${out_host_hook_obj} for host machine hooks."
11278
11279 if test "$host_xm_file" != "$build_xm_file"; then
11280 count=a
11281 for f in $build_xm_file; do
11282 count=${count}x
11283 done
11284 if test $count = a; then
11285 :
11286 elif test $count = ax; then
11287 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11288 else
11289 echo "Using the following build machine macro files:"
11290 for f in $build_xm_file; do
11291 echo " $srcdir/config/$f"
11292 done
11293 fi
11294 fi
11295
11296 if test -n "$configured_native_system_header_dir"; then
11297 native_system_header_dir=$configured_native_system_header_dir
11298 fi
11299 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11300
11301
11302 case ${host} in
11303 powerpc*-*-darwin*)
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11305 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11306 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11311
11312 #include <sys/cdefs.h>
11313 #include <sys/signal.h>
11314 #include <ucontext.h>
11315 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11316
11317 _ACEOF
11318 if ac_fn_c_try_compile "$LINENO"; then :
11319 gcc_cv_mcontext_underscores=no
11320 else
11321 gcc_cv_mcontext_underscores=yes
11322 fi
11323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324 fi
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11326 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11327 if test $gcc_cv_mcontext_underscores = yes; then
11328
11329 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11330
11331 fi
11332 ;;
11333 esac
11334
11335 # ---------
11336 # Threading
11337 # ---------
11338
11339 # Check if a valid thread package
11340 case ${enable_threads} in
11341 "" | no)
11342 # No threads
11343 target_thread_file='single'
11344 ;;
11345 yes)
11346 # default
11347 target_thread_file='single'
11348 ;;
11349 aix | dce | lynx | mipssde | posix | rtems | \
11350 single | tpf | vxworks | win32)
11351 target_thread_file=${enable_threads}
11352 ;;
11353 *)
11354 echo "${enable_threads} is an unknown thread package" 1>&2
11355 exit 1
11356 ;;
11357 esac
11358
11359 if test x${thread_file} = x; then
11360 # No thread file set by target-specific clauses in config.gcc,
11361 # so use file chosen by default logic above
11362 thread_file=${target_thread_file}
11363 fi
11364
11365 # --------
11366 # UNSORTED
11367 # --------
11368
11369 use_cxa_atexit=no
11370 if test x$enable___cxa_atexit = xyes || \
11371 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11372 if test x$host = x$target; then
11373 case $host in
11374 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11375 # keyed to flag_use_cxa_atexit
11376 *-*-mingw32*)
11377 use_cxa_atexit=yes
11378 ;;
11379 powerpc-ibm-aix*)
11380 use_cxa_atexit=yes
11381 ;;
11382 *)
11383 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11384 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11385 use_cxa_atexit=yes
11386 else
11387 echo "__cxa_atexit can't be enabled on this target"
11388 fi
11389
11390 ;;
11391 esac
11392 else
11393 # We can't check for __cxa_atexit when building a cross, so assume
11394 # it is available
11395 use_cxa_atexit=yes
11396 fi
11397 if test x$use_cxa_atexit = xyes; then
11398
11399 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11400
11401 fi
11402 fi
11403
11404 # Look for a file containing extra machine modes.
11405 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11406 extra_modes_file='$(srcdir)'/config/${extra_modes}
11407
11408
11409 cat >>confdefs.h <<_ACEOF
11410 #define EXTRA_MODES_FILE "config/$extra_modes"
11411 _ACEOF
11412
11413 fi
11414
11415 # Convert extra_options into a form suitable for Makefile use.
11416 extra_opt_files=
11417 all_opt_files=
11418 for f in $extra_options; do
11419 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11420 all_opt_files="$all_opt_files $srcdir/config/$f"
11421 done
11422
11423
11424 # auto-host.h is the file containing items generated by autoconf and is
11425 # the first file included by config.h.
11426 # If host=build, it is correct to have bconfig include auto-host.h
11427 # as well. If host!=build, we are in error and need to do more
11428 # work to find out the build config parameters.
11429 if test x$host = x$build
11430 then
11431 build_auto=auto-host.h
11432 else
11433 # We create a subdir, then run autoconf in the subdir.
11434 # To prevent recursion we set host and build for the new
11435 # invocation of configure to the build for this invocation
11436 # of configure.
11437 tempdir=build.$$
11438 rm -rf $tempdir
11439 mkdir $tempdir
11440 cd $tempdir
11441 case ${srcdir} in
11442 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11443 *) realsrcdir=../${srcdir};;
11444 esac
11445 # Clearing GMPINC is necessary to prevent host headers being
11446 # used by the build compiler. Defining GENERATOR_FILE stops
11447 # system.h from including gmp.h.
11448 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11449 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11450 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11451 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11452 ${realsrcdir}/configure \
11453 --enable-languages=${enable_languages-all} \
11454 --target=$target_alias --host=$build_alias --build=$build_alias
11455
11456 # We just finished tests for the build machine, so rename
11457 # the file auto-build.h in the gcc directory.
11458 mv auto-host.h ../auto-build.h
11459 cd ..
11460 rm -rf $tempdir
11461 build_auto=auto-build.h
11462 fi
11463
11464
11465 tm_file="${tm_file} defaults.h"
11466 tm_p_file="${tm_p_file} tm-preds.h"
11467 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11468 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11469 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11470 # put this back in temporarily.
11471 xm_file="auto-host.h ansidecl.h ${xm_file}"
11472
11473 # --------
11474 # UNSORTED
11475 # --------
11476
11477 # Compile in configure arguments.
11478 if test -f configargs.h ; then
11479 # Being re-configured.
11480 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11481 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11482 else
11483 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11484 fi
11485
11486 # Double all backslashes and backslash all quotes to turn
11487 # gcc_config_arguments into a C string.
11488 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11489 $gcc_config_arguments
11490 EOF
11491 gcc_config_arguments_str=`cat conftest.out`
11492 rm -f conftest.out
11493
11494 cat > configargs.h <<EOF
11495 /* Generated automatically. */
11496 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11497 static const char thread_model[] = "$thread_file";
11498
11499 static const struct {
11500 const char *name, *value;
11501 } configure_default_options[] = $configure_default_options;
11502 EOF
11503
11504 gcc_BASEVER=`cat $srcdir/BASE-VER`
11505 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11506 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11507 if test -f $srcdir/REVISION ; then
11508 gcc_REVISION=`cat $srcdir/REVISION`
11509 else
11510 gcc_REVISION=""
11511 fi
11512 cat > plugin-version.h <<EOF
11513 #include "configargs.h"
11514
11515 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11516 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11517 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11518 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11519
11520 static char basever[] = "$gcc_BASEVER";
11521 static char datestamp[] = "$gcc_DATESTAMP";
11522 static char devphase[] = "$gcc_DEVPHASE";
11523 static char revision[] = "$gcc_REVISION";
11524
11525 /* FIXME plugins: We should make the version information more precise.
11526 One way to do is to add a checksum. */
11527
11528 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11529 devphase, revision,
11530 configuration_arguments};
11531 EOF
11532
11533 # Internationalization
11534 # If we haven't got the data from the intl directory,
11535 # assume NLS is disabled.
11536 USE_NLS=no
11537 LIBINTL=
11538 LIBINTL_DEP=
11539 INCINTL=
11540 XGETTEXT=
11541 GMSGFMT=
11542 POSUB=
11543
11544 if test -f ../intl/config.intl; then
11545 . ../intl/config.intl
11546 fi
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11548 $as_echo_n "checking whether NLS is requested... " >&6; }
11549 if test x"$USE_NLS" != xyes; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11552 else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554 $as_echo "yes" >&6; }
11555
11556 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11557
11558
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11560 $as_echo_n "checking for catalogs to be installed... " >&6; }
11561 # Look for .po and .gmo files in the source directory.
11562 CATALOGS=
11563 XLINGUAS=
11564 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11565 # If there aren't any .gmo files the shell will give us the
11566 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11567 # weeded out.
11568 case "$cat" in *\**)
11569 continue;;
11570 esac
11571 # The quadruple backslash is collapsed to a double backslash
11572 # by the backticks, then collapsed again by the double quotes,
11573 # leaving us with one backslash in the sed expression (right
11574 # before the dot that mustn't act as a wildcard).
11575 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11576 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11577 # The user is allowed to set LINGUAS to a list of languages to
11578 # install catalogs for. If it's empty that means "all of them."
11579 if test "x$LINGUAS" = x; then
11580 CATALOGS="$CATALOGS $cat"
11581 XLINGUAS="$XLINGUAS $lang"
11582 else
11583 case "$LINGUAS" in *$lang*)
11584 CATALOGS="$CATALOGS $cat"
11585 XLINGUAS="$XLINGUAS $lang"
11586 ;;
11587 esac
11588 fi
11589 done
11590 LINGUAS="$XLINGUAS"
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11592 $as_echo "$LINGUAS" >&6; }
11593
11594
11595 DATADIRNAME=share
11596
11597 INSTOBJEXT=.mo
11598
11599 GENCAT=gencat
11600
11601 CATOBJEXT=.gmo
11602
11603 fi
11604
11605 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11606 # -liconv on the link line twice.
11607 case "$LIBINTL" in *$LIBICONV*)
11608 LIBICONV= ;;
11609 esac
11610
11611 # Check whether --enable-secureplt was given.
11612 if test "${enable_secureplt+set}" = set; then :
11613 enableval=$enable_secureplt;
11614 fi
11615
11616
11617 # Check whether --enable-leading-mingw64-underscores was given.
11618 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11619 enableval=$enable_leading_mingw64_underscores;
11620 fi
11621
11622 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11623
11624 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11625
11626 fi
11627
11628 # Check whether --enable-cld was given.
11629 if test "${enable_cld+set}" = set; then :
11630 enableval=$enable_cld;
11631 else
11632 enable_cld=no
11633 fi
11634
11635
11636 # Check whether --enable-frame-pointer was given.
11637 if test "${enable_frame_pointer+set}" = set; then :
11638 enableval=$enable_frame_pointer;
11639 else
11640
11641 case $target_os in
11642 linux* | darwin[8912]*)
11643 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11644 # DWARF2.
11645 enable_frame_pointer=no
11646 ;;
11647 *)
11648 enable_frame_pointer=yes
11649 ;;
11650 esac
11651
11652 fi
11653
11654
11655 # Windows32 Registry support for specifying GCC installation paths.
11656 # Check whether --enable-win32-registry was given.
11657 if test "${enable_win32_registry+set}" = set; then :
11658 enableval=$enable_win32_registry;
11659 fi
11660
11661
11662 case $host_os in
11663 win32 | pe | cygwin* | mingw32* | uwin*)
11664 if test "x$enable_win32_registry" != xno; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11666 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11667 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 ac_func_search_save_LIBS=$LIBS
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11673
11674 /* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11677 #ifdef __cplusplus
11678 extern "C"
11679 #endif
11680 char RegOpenKeyExA ();
11681 int
11682 main ()
11683 {
11684 return RegOpenKeyExA ();
11685 ;
11686 return 0;
11687 }
11688 _ACEOF
11689 for ac_lib in '' advapi32; do
11690 if test -z "$ac_lib"; then
11691 ac_res="none required"
11692 else
11693 ac_res=-l$ac_lib
11694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11695 fi
11696 if ac_fn_c_try_link "$LINENO"; then :
11697 ac_cv_search_RegOpenKeyExA=$ac_res
11698 fi
11699 rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext
11701 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11702 break
11703 fi
11704 done
11705 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11706
11707 else
11708 ac_cv_search_RegOpenKeyExA=no
11709 fi
11710 rm conftest.$ac_ext
11711 LIBS=$ac_func_search_save_LIBS
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11714 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11715 ac_res=$ac_cv_search_RegOpenKeyExA
11716 if test "$ac_res" != no; then :
11717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11718
11719 else
11720 enable_win32_registry=no
11721 fi
11722
11723 fi
11724
11725 if test "x$enable_win32_registry" != xno; then
11726
11727 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11728
11729
11730 if test "x$enable_win32_registry" != xyes \
11731 && test "x$enable_win32_registry" != x; then
11732
11733 cat >>confdefs.h <<_ACEOF
11734 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11735 _ACEOF
11736
11737 fi
11738 fi
11739 ;;
11740 esac
11741
11742 # Get an absolute path to the GCC top-level source directory
11743 holddir=`${PWDCMD-pwd}`
11744 cd $srcdir
11745 topdir=`${PWDCMD-pwd}`
11746 cd $holddir
11747
11748 # Conditionalize the makefile for this host machine.
11749 xmake_file=
11750 for f in ${host_xmake_file}
11751 do
11752 if test -f ${srcdir}/config/$f
11753 then
11754 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11755 fi
11756 done
11757
11758 # Conditionalize the makefile for this target machine.
11759 tmake_file_=
11760 for f in ${tmake_file}
11761 do
11762 if test -f ${srcdir}/config/$f
11763 then
11764 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11765 fi
11766 done
11767 tmake_file="${tmake_file_}"
11768
11769 out_object_file=`basename $out_file .c`.o
11770 common_out_object_file=`basename $common_out_file .c`.o
11771
11772 tm_file_list="options.h"
11773 tm_include_list="options.h insn-constants.h"
11774 for f in $tm_file; do
11775 case $f in
11776 ./* )
11777 f=`echo $f | sed 's/^..//'`
11778 tm_file_list="${tm_file_list} $f"
11779 tm_include_list="${tm_include_list} $f"
11780 ;;
11781 defaults.h )
11782 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11783 tm_include_list="${tm_include_list} $f"
11784 ;;
11785 * )
11786 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11787 tm_include_list="${tm_include_list} config/$f"
11788 ;;
11789 esac
11790 done
11791
11792 tm_p_file_list=
11793 tm_p_include_list=
11794 for f in $tm_p_file; do
11795 case $f in
11796 tm-preds.h )
11797 tm_p_file_list="${tm_p_file_list} $f"
11798 tm_p_include_list="${tm_p_include_list} $f"
11799 ;;
11800 * )
11801 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11802 tm_p_include_list="${tm_p_include_list} config/$f"
11803 esac
11804 done
11805
11806 xm_file_list=
11807 xm_include_list=
11808 for f in $xm_file; do
11809 case $f in
11810 ansidecl.h )
11811 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11812 xm_include_list="${xm_include_list} $f"
11813 ;;
11814 auto-host.h )
11815 xm_file_list="${xm_file_list} $f"
11816 xm_include_list="${xm_include_list} $f"
11817 ;;
11818 * )
11819 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11820 xm_include_list="${xm_include_list} config/$f"
11821 ;;
11822 esac
11823 done
11824
11825 host_xm_file_list=
11826 host_xm_include_list=
11827 for f in $host_xm_file; do
11828 case $f in
11829 ansidecl.h )
11830 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11831 host_xm_include_list="${host_xm_include_list} $f"
11832 ;;
11833 auto-host.h )
11834 host_xm_file_list="${host_xm_file_list} $f"
11835 host_xm_include_list="${host_xm_include_list} $f"
11836 ;;
11837 * )
11838 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11839 host_xm_include_list="${host_xm_include_list} config/$f"
11840 ;;
11841 esac
11842 done
11843
11844 build_xm_file_list=
11845 for f in $build_xm_file; do
11846 case $f in
11847 ansidecl.h )
11848 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11849 build_xm_include_list="${build_xm_include_list} $f"
11850 ;;
11851 auto-build.h | auto-host.h )
11852 build_xm_file_list="${build_xm_file_list} $f"
11853 build_xm_include_list="${build_xm_include_list} $f"
11854 ;;
11855 * )
11856 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11857 build_xm_include_list="${build_xm_include_list} config/$f"
11858 ;;
11859 esac
11860 done
11861
11862 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11863 # cross-compiler which does not use the native headers and libraries.
11864 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11865 CROSS=
11866 ALL=all.internal
11867 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11868
11869 if test "x$with_build_sysroot" != x; then
11870 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11871 else
11872 # This value is used, even on a native system, because
11873 # CROSS_SYSTEM_HEADER_DIR is just
11874 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11875 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11876 fi
11877
11878 if test x$host != x$target
11879 then
11880 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11881 ALL=all.cross
11882 SYSTEM_HEADER_DIR=$build_system_header_dir
11883 case "$host","$target" in
11884 # Darwin crosses can use the host system's libraries and headers,
11885 # because of the fat library support. Of course, it must be the
11886 # same version of Darwin on both sides. Allow the user to
11887 # just say --target=foo-darwin without a version number to mean
11888 # "the version on this system".
11889 *-*-darwin*,*-*-darwin*)
11890 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11891 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11892 if test $hostos = $targetos -o $targetos = darwin ; then
11893 CROSS=
11894 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11895 with_headers=yes
11896 fi
11897 ;;
11898
11899 i?86-*-*,x86_64-*-* \
11900 | powerpc*-*-*,powerpc64*-*-*)
11901 CROSS="$CROSS -DNATIVE_CROSS" ;;
11902 esac
11903
11904 case $target in
11905 *-*-mingw*)
11906 if test "x$with_headers" = x; then
11907 with_headers=yes
11908 fi
11909 ;;
11910 *)
11911 ;;
11912 esac
11913 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11914 SYSTEM_HEADER_DIR=$build_system_header_dir
11915 fi
11916
11917 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
11918 if test "x$with_headers" != x; then
11919 target_header_dir=$with_headers
11920 elif test "x$with_sysroot" = x; then
11921 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
11922 elif test "x$with_build_sysroot" != "x"; then
11923 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
11924 elif test "x$with_sysroot" = xyes; then
11925 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11926 else
11927 target_header_dir="${with_sysroot}${native_system_header_dir}"
11928 fi
11929 else
11930 target_header_dir=${native_system_header_dir}
11931 fi
11932
11933 # If this is a cross-compiler that does not
11934 # have its own set of headers then define
11935 # inhibit_libc
11936
11937 # If this is using newlib, without having the headers available now,
11938 # then define inhibit_libc in LIBGCC2_CFLAGS.
11939 # This prevents libgcc2 from containing any code which requires libc
11940 # support.
11941 : ${inhibit_libc=false}
11942 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11943 test x$with_newlib = xyes ; } &&
11944 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
11945 inhibit_libc=true
11946 fi
11947
11948
11949 # When building gcc with a cross-compiler, we need to adjust things so
11950 # that the generator programs are still built with the native compiler.
11951 # Also, we cannot run fixincludes.
11952
11953 # These are the normal (build=host) settings:
11954 CC_FOR_BUILD='$(CC)'
11955 CXX_FOR_BUILD='$(CXX)'
11956 BUILD_CFLAGS='$(ALL_CFLAGS)'
11957 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11958 BUILD_LDFLAGS='$(LDFLAGS)'
11959 STMP_FIXINC=stmp-fixinc
11960
11961 # And these apply if build != host, or we are generating coverage data
11962 if test x$build != x$host || test "x$coverage_flags" != x
11963 then
11964 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11965 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11966 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11967 fi
11968
11969 # Expand extra_headers to include complete path.
11970 # This substitutes for lots of t-* files.
11971 extra_headers_list=
11972 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11973 for file in ${extra_headers} ; do
11974 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11975 done
11976
11977 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11978 if test x"$use_gcc_tgmath" = xyes
11979 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11980 fi
11981
11982 # Define collect2 in Makefile.
11983 case $host_can_use_collect2 in
11984 no) collect2= ;;
11985 *) collect2='collect2$(exeext)' ;;
11986 esac
11987
11988
11989 # Add a definition of USE_COLLECT2 if system wants one.
11990 case $use_collect2 in
11991 no) use_collect2= ;;
11992 "") ;;
11993 *)
11994 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11995 xm_defines="${xm_defines} USE_COLLECT2"
11996 case $host_can_use_collect2 in
11997 no)
11998 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11999 ;;
12000 esac
12001 ;;
12002 esac
12003
12004
12005 cat >>confdefs.h <<_ACEOF
12006 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12007 _ACEOF
12008
12009
12010 # ---------------------------
12011 # Assembler & linker features
12012 # ---------------------------
12013
12014 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12015 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12016 # However when ld-new is first executed from the build tree, libtool will
12017 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12018 # to the build tree. While doing this we need to use the previous-stage
12019 # linker, or we have an infinite loop. The presence of a shell script as
12020 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12021 # the gcc/collect-ld script. So we need to know how libtool works, or
12022 # exec-tool will fail.
12023
12024
12025 case `pwd` in
12026 *\ * | *\ *)
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12028 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12029 esac
12030
12031
12032
12033 macro_version='2.2.7a'
12034 macro_revision='1.3134'
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048 ltmain="$ac_aux_dir/ltmain.sh"
12049
12050 # Backslashify metacharacters that are still active within
12051 # double-quoted strings.
12052 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12053
12054 # Same as above, but do not quote variable references.
12055 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12056
12057 # Sed substitution to delay expansion of an escaped shell variable in a
12058 # double_quote_subst'ed string.
12059 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12060
12061 # Sed substitution to delay expansion of an escaped single quote.
12062 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12063
12064 # Sed substitution to avoid accidental globbing in evaled expressions
12065 no_glob_subst='s/\*/\\\*/g'
12066
12067 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12068 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12069 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12070
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12072 $as_echo_n "checking how to print strings... " >&6; }
12073 # Test print first, because it will be a builtin if present.
12074 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12075 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12076 ECHO='print -r --'
12077 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12078 ECHO='printf %s\n'
12079 else
12080 # Use this function as a fallback that always works.
12081 func_fallback_echo ()
12082 {
12083 eval 'cat <<_LTECHO_EOF
12084 $1
12085 _LTECHO_EOF'
12086 }
12087 ECHO='func_fallback_echo'
12088 fi
12089
12090 # func_echo_all arg...
12091 # Invoke $ECHO with all args, space-separated.
12092 func_echo_all ()
12093 {
12094 $ECHO ""
12095 }
12096
12097 case "$ECHO" in
12098 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12099 $as_echo "printf" >&6; } ;;
12100 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12101 $as_echo "print -r" >&6; } ;;
12102 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12103 $as_echo "cat" >&6; } ;;
12104 esac
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12120 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12121 if test "${ac_cv_path_SED+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12125 for ac_i in 1 2 3 4 5 6 7; do
12126 ac_script="$ac_script$as_nl$ac_script"
12127 done
12128 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12129 { ac_script=; unset ac_script;}
12130 if test -z "$SED"; then
12131 ac_path_SED_found=false
12132 # Loop through the user's path and test for each of PROGNAME-LIST
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12135 do
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
12138 for ac_prog in sed gsed; do
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12141 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12142 # Check for GNU ac_path_SED and select it if it is found.
12143 # Check for GNU $ac_path_SED
12144 case `"$ac_path_SED" --version 2>&1` in
12145 *GNU*)
12146 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12147 *)
12148 ac_count=0
12149 $as_echo_n 0123456789 >"conftest.in"
12150 while :
12151 do
12152 cat "conftest.in" "conftest.in" >"conftest.tmp"
12153 mv "conftest.tmp" "conftest.in"
12154 cp "conftest.in" "conftest.nl"
12155 $as_echo '' >> "conftest.nl"
12156 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12158 as_fn_arith $ac_count + 1 && ac_count=$as_val
12159 if test $ac_count -gt ${ac_path_SED_max-0}; then
12160 # Best one so far, save it but keep looking for a better one
12161 ac_cv_path_SED="$ac_path_SED"
12162 ac_path_SED_max=$ac_count
12163 fi
12164 # 10*(2^10) chars as input seems more than enough
12165 test $ac_count -gt 10 && break
12166 done
12167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12168 esac
12169
12170 $ac_path_SED_found && break 3
12171 done
12172 done
12173 done
12174 IFS=$as_save_IFS
12175 if test -z "$ac_cv_path_SED"; then
12176 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12177 fi
12178 else
12179 ac_cv_path_SED=$SED
12180 fi
12181
12182 fi
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12184 $as_echo "$ac_cv_path_SED" >&6; }
12185 SED="$ac_cv_path_SED"
12186 rm -f conftest.sed
12187
12188 test -z "$SED" && SED=sed
12189 Xsed="$SED -e 1s/^X//"
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12202 $as_echo_n "checking for fgrep... " >&6; }
12203 if test "${ac_cv_path_FGREP+set}" = set; then :
12204 $as_echo_n "(cached) " >&6
12205 else
12206 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12207 then ac_cv_path_FGREP="$GREP -F"
12208 else
12209 if test -z "$FGREP"; then
12210 ac_path_FGREP_found=false
12211 # Loop through the user's path and test for each of PROGNAME-LIST
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12214 do
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_prog in fgrep; do
12218 for ac_exec_ext in '' $ac_executable_extensions; do
12219 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12220 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12221 # Check for GNU ac_path_FGREP and select it if it is found.
12222 # Check for GNU $ac_path_FGREP
12223 case `"$ac_path_FGREP" --version 2>&1` in
12224 *GNU*)
12225 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12226 *)
12227 ac_count=0
12228 $as_echo_n 0123456789 >"conftest.in"
12229 while :
12230 do
12231 cat "conftest.in" "conftest.in" >"conftest.tmp"
12232 mv "conftest.tmp" "conftest.in"
12233 cp "conftest.in" "conftest.nl"
12234 $as_echo 'FGREP' >> "conftest.nl"
12235 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12237 as_fn_arith $ac_count + 1 && ac_count=$as_val
12238 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12239 # Best one so far, save it but keep looking for a better one
12240 ac_cv_path_FGREP="$ac_path_FGREP"
12241 ac_path_FGREP_max=$ac_count
12242 fi
12243 # 10*(2^10) chars as input seems more than enough
12244 test $ac_count -gt 10 && break
12245 done
12246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12247 esac
12248
12249 $ac_path_FGREP_found && break 3
12250 done
12251 done
12252 done
12253 IFS=$as_save_IFS
12254 if test -z "$ac_cv_path_FGREP"; then
12255 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12256 fi
12257 else
12258 ac_cv_path_FGREP=$FGREP
12259 fi
12260
12261 fi
12262 fi
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12264 $as_echo "$ac_cv_path_FGREP" >&6; }
12265 FGREP="$ac_cv_path_FGREP"
12266
12267
12268 test -z "$GREP" && GREP=grep
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288 # Check whether --with-gnu-ld was given.
12289 if test "${with_gnu_ld+set}" = set; then :
12290 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12291 else
12292 with_gnu_ld=no
12293 fi
12294
12295 ac_prog=ld
12296 if test "$GCC" = yes; then
12297 # Check if gcc -print-prog-name=ld gives a path.
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12299 $as_echo_n "checking for ld used by $CC... " >&6; }
12300 case $host in
12301 *-*-mingw*)
12302 # gcc leaves a trailing carriage return which upsets mingw
12303 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12304 *)
12305 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12306 esac
12307 case $ac_prog in
12308 # Accept absolute paths.
12309 [\\/]* | ?:[\\/]*)
12310 re_direlt='/[^/][^/]*/\.\./'
12311 # Canonicalize the pathname of ld
12312 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12313 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12314 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12315 done
12316 test -z "$LD" && LD="$ac_prog"
12317 ;;
12318 "")
12319 # If it fails, then pretend we aren't using GCC.
12320 ac_prog=ld
12321 ;;
12322 *)
12323 # If it is relative, then search for the first ld in PATH.
12324 with_gnu_ld=unknown
12325 ;;
12326 esac
12327 elif test "$with_gnu_ld" = yes; then
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12329 $as_echo_n "checking for GNU ld... " >&6; }
12330 else
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12332 $as_echo_n "checking for non-GNU ld... " >&6; }
12333 fi
12334 if test "${lt_cv_path_LD+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 if test -z "$LD"; then
12338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12339 for ac_dir in $PATH; do
12340 IFS="$lt_save_ifs"
12341 test -z "$ac_dir" && ac_dir=.
12342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12343 lt_cv_path_LD="$ac_dir/$ac_prog"
12344 # Check to see if the program is GNU ld. I'd rather use --version,
12345 # but apparently some variants of GNU ld only accept -v.
12346 # Break only if it was the GNU/non-GNU ld that we prefer.
12347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12348 *GNU* | *'with BFD'*)
12349 test "$with_gnu_ld" != no && break
12350 ;;
12351 *)
12352 test "$with_gnu_ld" != yes && break
12353 ;;
12354 esac
12355 fi
12356 done
12357 IFS="$lt_save_ifs"
12358 else
12359 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12360 fi
12361 fi
12362
12363 LD="$lt_cv_path_LD"
12364 if test -n "$LD"; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12366 $as_echo "$LD" >&6; }
12367 else
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 $as_echo "no" >&6; }
12370 fi
12371 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12373 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12374 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12378 case `$LD -v 2>&1 </dev/null` in
12379 *GNU* | *'with BFD'*)
12380 lt_cv_prog_gnu_ld=yes
12381 ;;
12382 *)
12383 lt_cv_prog_gnu_ld=no
12384 ;;
12385 esac
12386 fi
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12388 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12389 with_gnu_ld=$lt_cv_prog_gnu_ld
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12400 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12401 if test "${lt_cv_path_NM+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404 if test -n "$NM"; then
12405 # Let the user override the test.
12406 lt_cv_path_NM="$NM"
12407 else
12408 lt_nm_to_check="${ac_tool_prefix}nm"
12409 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12410 lt_nm_to_check="$lt_nm_to_check nm"
12411 fi
12412 for lt_tmp_nm in $lt_nm_to_check; do
12413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12414 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12415 IFS="$lt_save_ifs"
12416 test -z "$ac_dir" && ac_dir=.
12417 tmp_nm="$ac_dir/$lt_tmp_nm"
12418 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12419 # Check to see if the nm accepts a BSD-compat flag.
12420 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12421 # nm: unknown option "B" ignored
12422 # Tru64's nm complains that /dev/null is an invalid object file
12423 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12424 */dev/null* | *'Invalid file or object type'*)
12425 lt_cv_path_NM="$tmp_nm -B"
12426 break
12427 ;;
12428 *)
12429 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12430 */dev/null*)
12431 lt_cv_path_NM="$tmp_nm -p"
12432 break
12433 ;;
12434 *)
12435 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12436 continue # so that we can try to find one that supports BSD flags
12437 ;;
12438 esac
12439 ;;
12440 esac
12441 fi
12442 done
12443 IFS="$lt_save_ifs"
12444 done
12445 : ${lt_cv_path_NM=no}
12446 fi
12447 fi
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12449 $as_echo "$lt_cv_path_NM" >&6; }
12450 if test "$lt_cv_path_NM" != "no"; then
12451 NM="$lt_cv_path_NM"
12452 else
12453 # Didn't find any BSD compatible name lister, look for dumpbin.
12454 if test -n "$DUMPBIN"; then :
12455 # Let the user override the test.
12456 else
12457 if test -n "$ac_tool_prefix"; then
12458 for ac_prog in dumpbin "link -dump"
12459 do
12460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463 $as_echo_n "checking for $ac_word... " >&6; }
12464 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 if test -n "$DUMPBIN"; then
12468 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12469 else
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12472 do
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
12476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12477 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 break 2
12480 fi
12481 done
12482 done
12483 IFS=$as_save_IFS
12484
12485 fi
12486 fi
12487 DUMPBIN=$ac_cv_prog_DUMPBIN
12488 if test -n "$DUMPBIN"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12490 $as_echo "$DUMPBIN" >&6; }
12491 else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12494 fi
12495
12496
12497 test -n "$DUMPBIN" && break
12498 done
12499 fi
12500 if test -z "$DUMPBIN"; then
12501 ac_ct_DUMPBIN=$DUMPBIN
12502 for ac_prog in dumpbin "link -dump"
12503 do
12504 # Extract the first word of "$ac_prog", so it can be a program name with args.
12505 set dummy $ac_prog; ac_word=$2
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12507 $as_echo_n "checking for $ac_word... " >&6; }
12508 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 if test -n "$ac_ct_DUMPBIN"; then
12512 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12513 else
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12516 do
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12521 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 break 2
12524 fi
12525 done
12526 done
12527 IFS=$as_save_IFS
12528
12529 fi
12530 fi
12531 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12532 if test -n "$ac_ct_DUMPBIN"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12534 $as_echo "$ac_ct_DUMPBIN" >&6; }
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 $as_echo "no" >&6; }
12538 fi
12539
12540
12541 test -n "$ac_ct_DUMPBIN" && break
12542 done
12543
12544 if test "x$ac_ct_DUMPBIN" = x; then
12545 DUMPBIN=":"
12546 else
12547 case $cross_compiling:$ac_tool_warned in
12548 yes:)
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12551 ac_tool_warned=yes ;;
12552 esac
12553 DUMPBIN=$ac_ct_DUMPBIN
12554 fi
12555 fi
12556
12557 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12558 *COFF*)
12559 DUMPBIN="$DUMPBIN -symbols"
12560 ;;
12561 *)
12562 DUMPBIN=:
12563 ;;
12564 esac
12565 fi
12566
12567 if test "$DUMPBIN" != ":"; then
12568 NM="$DUMPBIN"
12569 fi
12570 fi
12571 test -z "$NM" && NM=nm
12572
12573
12574
12575
12576
12577
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12579 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12580 if test "${lt_cv_nm_interface+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 lt_cv_nm_interface="BSD nm"
12584 echo "int some_variable = 0;" > conftest.$ac_ext
12585 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12586 (eval "$ac_compile" 2>conftest.err)
12587 cat conftest.err >&5
12588 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12589 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12590 cat conftest.err >&5
12591 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12592 cat conftest.out >&5
12593 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12594 lt_cv_nm_interface="MS dumpbin"
12595 fi
12596 rm -f conftest*
12597 fi
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12599 $as_echo "$lt_cv_nm_interface" >&6; }
12600
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12602 $as_echo_n "checking whether ln -s works... " >&6; }
12603 LN_S=$as_ln_s
12604 if test "$LN_S" = "ln -s"; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12606 $as_echo "yes" >&6; }
12607 else
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12609 $as_echo "no, using $LN_S" >&6; }
12610 fi
12611
12612 # find the maximum length of command line arguments
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12614 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12615 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 i=0
12619 teststring="ABCD"
12620
12621 case $build_os in
12622 msdosdjgpp*)
12623 # On DJGPP, this test can blow up pretty badly due to problems in libc
12624 # (any single argument exceeding 2000 bytes causes a buffer overrun
12625 # during glob expansion). Even if it were fixed, the result of this
12626 # check would be larger than it should be.
12627 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12628 ;;
12629
12630 gnu*)
12631 # Under GNU Hurd, this test is not required because there is
12632 # no limit to the length of command line arguments.
12633 # Libtool will interpret -1 as no limit whatsoever
12634 lt_cv_sys_max_cmd_len=-1;
12635 ;;
12636
12637 cygwin* | mingw* | cegcc*)
12638 # On Win9x/ME, this test blows up -- it succeeds, but takes
12639 # about 5 minutes as the teststring grows exponentially.
12640 # Worse, since 9x/ME are not pre-emptively multitasking,
12641 # you end up with a "frozen" computer, even though with patience
12642 # the test eventually succeeds (with a max line length of 256k).
12643 # Instead, let's just punt: use the minimum linelength reported by
12644 # all of the supported platforms: 8192 (on NT/2K/XP).
12645 lt_cv_sys_max_cmd_len=8192;
12646 ;;
12647
12648 mint*)
12649 # On MiNT this can take a long time and run out of memory.
12650 lt_cv_sys_max_cmd_len=8192;
12651 ;;
12652
12653 amigaos*)
12654 # On AmigaOS with pdksh, this test takes hours, literally.
12655 # So we just punt and use a minimum line length of 8192.
12656 lt_cv_sys_max_cmd_len=8192;
12657 ;;
12658
12659 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12660 # This has been around since 386BSD, at least. Likely further.
12661 if test -x /sbin/sysctl; then
12662 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12663 elif test -x /usr/sbin/sysctl; then
12664 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12665 else
12666 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12667 fi
12668 # And add a safety zone
12669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12671 ;;
12672
12673 interix*)
12674 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12675 lt_cv_sys_max_cmd_len=196608
12676 ;;
12677
12678 osf*)
12679 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12680 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12681 # nice to cause kernel panics so lets avoid the loop below.
12682 # First set a reasonable default.
12683 lt_cv_sys_max_cmd_len=16384
12684 #
12685 if test -x /sbin/sysconfig; then
12686 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12687 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12688 esac
12689 fi
12690 ;;
12691 sco3.2v5*)
12692 lt_cv_sys_max_cmd_len=102400
12693 ;;
12694 sysv5* | sco5v6* | sysv4.2uw2*)
12695 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12696 if test -n "$kargmax"; then
12697 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12698 else
12699 lt_cv_sys_max_cmd_len=32768
12700 fi
12701 ;;
12702 *)
12703 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12704 if test -n "$lt_cv_sys_max_cmd_len"; then
12705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12707 else
12708 # Make teststring a little bigger before we do anything with it.
12709 # a 1K string should be a reasonable start.
12710 for i in 1 2 3 4 5 6 7 8 ; do
12711 teststring=$teststring$teststring
12712 done
12713 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12714 # If test is not a shell built-in, we'll probably end up computing a
12715 # maximum length that is only half of the actual maximum length, but
12716 # we can't tell.
12717 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12718 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12719 test $i != 17 # 1/2 MB should be enough
12720 do
12721 i=`expr $i + 1`
12722 teststring=$teststring$teststring
12723 done
12724 # Only check the string length outside the loop.
12725 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12726 teststring=
12727 # Add a significant safety factor because C++ compilers can tack on
12728 # massive amounts of additional arguments before passing them to the
12729 # linker. It appears as though 1/2 is a usable value.
12730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12731 fi
12732 ;;
12733 esac
12734
12735 fi
12736
12737 if test -n $lt_cv_sys_max_cmd_len ; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12739 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12740 else
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12742 $as_echo "none" >&6; }
12743 fi
12744 max_cmd_len=$lt_cv_sys_max_cmd_len
12745
12746
12747
12748
12749
12750
12751 : ${CP="cp -f"}
12752 : ${MV="mv -f"}
12753 : ${RM="rm -f"}
12754
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12756 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12757 # Try some XSI features
12758 xsi_shell=no
12759 ( _lt_dummy="a/b/c"
12760 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12761 = c,a/b,, \
12762 && eval 'test $(( 1 + 1 )) -eq 2 \
12763 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12764 && xsi_shell=yes
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12766 $as_echo "$xsi_shell" >&6; }
12767
12768
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12770 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12771 lt_shell_append=no
12772 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12773 >/dev/null 2>&1 \
12774 && lt_shell_append=yes
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12776 $as_echo "$lt_shell_append" >&6; }
12777
12778
12779 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12780 lt_unset=unset
12781 else
12782 lt_unset=false
12783 fi
12784
12785
12786
12787
12788
12789 # test EBCDIC or ASCII
12790 case `echo X|tr X '\101'` in
12791 A) # ASCII based system
12792 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12793 lt_SP2NL='tr \040 \012'
12794 lt_NL2SP='tr \015\012 \040\040'
12795 ;;
12796 *) # EBCDIC based system
12797 lt_SP2NL='tr \100 \n'
12798 lt_NL2SP='tr \r\n \100\100'
12799 ;;
12800 esac
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12811 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12812 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 lt_cv_ld_reload_flag='-r'
12816 fi
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12818 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12819 reload_flag=$lt_cv_ld_reload_flag
12820 case $reload_flag in
12821 "" | " "*) ;;
12822 *) reload_flag=" $reload_flag" ;;
12823 esac
12824 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12825 case $host_os in
12826 darwin*)
12827 if test "$GCC" = yes; then
12828 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12829 else
12830 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12831 fi
12832 ;;
12833 esac
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843 if test -n "$ac_tool_prefix"; then
12844 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12845 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 if test -n "$OBJDUMP"; then
12852 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12853 else
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12856 do
12857 IFS=$as_save_IFS
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12861 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863 break 2
12864 fi
12865 done
12866 done
12867 IFS=$as_save_IFS
12868
12869 fi
12870 fi
12871 OBJDUMP=$ac_cv_prog_OBJDUMP
12872 if test -n "$OBJDUMP"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12874 $as_echo "$OBJDUMP" >&6; }
12875 else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12878 fi
12879
12880
12881 fi
12882 if test -z "$ac_cv_prog_OBJDUMP"; then
12883 ac_ct_OBJDUMP=$OBJDUMP
12884 # Extract the first word of "objdump", so it can be a program name with args.
12885 set dummy objdump; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 if test -n "$ac_ct_OBJDUMP"; then
12892 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12893 else
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12896 do
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12904 fi
12905 done
12906 done
12907 IFS=$as_save_IFS
12908
12909 fi
12910 fi
12911 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12912 if test -n "$ac_ct_OBJDUMP"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12914 $as_echo "$ac_ct_OBJDUMP" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12918 fi
12919
12920 if test "x$ac_ct_OBJDUMP" = x; then
12921 OBJDUMP="false"
12922 else
12923 case $cross_compiling:$ac_tool_warned in
12924 yes:)
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12927 ac_tool_warned=yes ;;
12928 esac
12929 OBJDUMP=$ac_ct_OBJDUMP
12930 fi
12931 else
12932 OBJDUMP="$ac_cv_prog_OBJDUMP"
12933 fi
12934
12935 test -z "$OBJDUMP" && OBJDUMP=objdump
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12946 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12947 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 lt_cv_file_magic_cmd='$MAGIC_CMD'
12951 lt_cv_file_magic_test_file=
12952 lt_cv_deplibs_check_method='unknown'
12953 # Need to set the preceding variable on all platforms that support
12954 # interlibrary dependencies.
12955 # 'none' -- dependencies not supported.
12956 # `unknown' -- same as none, but documents that we really don't know.
12957 # 'pass_all' -- all dependencies passed with no checks.
12958 # 'test_compile' -- check by making test program.
12959 # 'file_magic [[regex]]' -- check by looking for files in library path
12960 # which responds to the $file_magic_cmd with a given extended regex.
12961 # If you have `file' or equivalent on your system and you're not sure
12962 # whether `pass_all' will *always* work, you probably want this one.
12963
12964 case $host_os in
12965 aix[4-9]*)
12966 lt_cv_deplibs_check_method=pass_all
12967 ;;
12968
12969 beos*)
12970 lt_cv_deplibs_check_method=pass_all
12971 ;;
12972
12973 bsdi[45]*)
12974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12975 lt_cv_file_magic_cmd='/usr/bin/file -L'
12976 lt_cv_file_magic_test_file=/shlib/libc.so
12977 ;;
12978
12979 cygwin*)
12980 # func_win32_libid is a shell function defined in ltmain.sh
12981 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12982 lt_cv_file_magic_cmd='func_win32_libid'
12983 ;;
12984
12985 mingw* | pw32*)
12986 # Base MSYS/MinGW do not provide the 'file' command needed by
12987 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12988 # unless we find 'file', for example because we are cross-compiling.
12989 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12990 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12991 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12992 lt_cv_file_magic_cmd='func_win32_libid'
12993 else
12994 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12995 lt_cv_file_magic_cmd='$OBJDUMP -f'
12996 fi
12997 ;;
12998
12999 cegcc*)
13000 # use the weaker test based on 'objdump'. See mingw*.
13001 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13002 lt_cv_file_magic_cmd='$OBJDUMP -f'
13003 ;;
13004
13005 darwin* | rhapsody*)
13006 lt_cv_deplibs_check_method=pass_all
13007 ;;
13008
13009 freebsd* | dragonfly*)
13010 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13011 case $host_cpu in
13012 i*86 )
13013 # Not sure whether the presence of OpenBSD here was a mistake.
13014 # Let's accept both of them until this is cleared up.
13015 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13016 lt_cv_file_magic_cmd=/usr/bin/file
13017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13018 ;;
13019 esac
13020 else
13021 lt_cv_deplibs_check_method=pass_all
13022 fi
13023 ;;
13024
13025 gnu*)
13026 lt_cv_deplibs_check_method=pass_all
13027 ;;
13028
13029 haiku*)
13030 lt_cv_deplibs_check_method=pass_all
13031 ;;
13032
13033 hpux10.20* | hpux11*)
13034 lt_cv_file_magic_cmd=/usr/bin/file
13035 case $host_cpu in
13036 ia64*)
13037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13038 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13039 ;;
13040 hppa*64*)
13041 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]'
13042 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13043 ;;
13044 *)
13045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13046 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13047 ;;
13048 esac
13049 ;;
13050
13051 interix[3-9]*)
13052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13054 ;;
13055
13056 irix5* | irix6* | nonstopux*)
13057 case $LD in
13058 *-32|*"-32 ") libmagic=32-bit;;
13059 *-n32|*"-n32 ") libmagic=N32;;
13060 *-64|*"-64 ") libmagic=64-bit;;
13061 *) libmagic=never-match;;
13062 esac
13063 lt_cv_deplibs_check_method=pass_all
13064 ;;
13065
13066 # This must be Linux ELF.
13067 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13068 lt_cv_deplibs_check_method=pass_all
13069 ;;
13070
13071 netbsd*)
13072 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13074 else
13075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13076 fi
13077 ;;
13078
13079 newos6*)
13080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13081 lt_cv_file_magic_cmd=/usr/bin/file
13082 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13083 ;;
13084
13085 *nto* | *qnx*)
13086 lt_cv_deplibs_check_method=pass_all
13087 ;;
13088
13089 openbsd*)
13090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13092 else
13093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13094 fi
13095 ;;
13096
13097 osf3* | osf4* | osf5*)
13098 lt_cv_deplibs_check_method=pass_all
13099 ;;
13100
13101 rdos*)
13102 lt_cv_deplibs_check_method=pass_all
13103 ;;
13104
13105 solaris*)
13106 lt_cv_deplibs_check_method=pass_all
13107 ;;
13108
13109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13110 lt_cv_deplibs_check_method=pass_all
13111 ;;
13112
13113 sysv4 | sysv4.3*)
13114 case $host_vendor in
13115 motorola)
13116 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]'
13117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13118 ;;
13119 ncr)
13120 lt_cv_deplibs_check_method=pass_all
13121 ;;
13122 sequent)
13123 lt_cv_file_magic_cmd='/bin/file'
13124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13125 ;;
13126 sni)
13127 lt_cv_file_magic_cmd='/bin/file'
13128 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13129 lt_cv_file_magic_test_file=/lib/libc.so
13130 ;;
13131 siemens)
13132 lt_cv_deplibs_check_method=pass_all
13133 ;;
13134 pc)
13135 lt_cv_deplibs_check_method=pass_all
13136 ;;
13137 esac
13138 ;;
13139
13140 tpf*)
13141 lt_cv_deplibs_check_method=pass_all
13142 ;;
13143 esac
13144
13145 fi
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13147 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13148 file_magic_cmd=$lt_cv_file_magic_cmd
13149 deplibs_check_method=$lt_cv_deplibs_check_method
13150 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163 if test -n "$ac_tool_prefix"; then
13164 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13165 set dummy ${ac_tool_prefix}ar; ac_word=$2
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167 $as_echo_n "checking for $ac_word... " >&6; }
13168 if test "${ac_cv_prog_AR+set}" = set; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 if test -n "$AR"; then
13172 ac_cv_prog_AR="$AR" # Let the user override the test.
13173 else
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13176 do
13177 IFS=$as_save_IFS
13178 test -z "$as_dir" && as_dir=.
13179 for ac_exec_ext in '' $ac_executable_extensions; do
13180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13181 ac_cv_prog_AR="${ac_tool_prefix}ar"
13182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183 break 2
13184 fi
13185 done
13186 done
13187 IFS=$as_save_IFS
13188
13189 fi
13190 fi
13191 AR=$ac_cv_prog_AR
13192 if test -n "$AR"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13194 $as_echo "$AR" >&6; }
13195 else
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13198 fi
13199
13200
13201 fi
13202 if test -z "$ac_cv_prog_AR"; then
13203 ac_ct_AR=$AR
13204 # Extract the first word of "ar", so it can be a program name with args.
13205 set dummy ar; ac_word=$2
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13207 $as_echo_n "checking for $ac_word... " >&6; }
13208 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13209 $as_echo_n "(cached) " >&6
13210 else
13211 if test -n "$ac_ct_AR"; then
13212 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13213 else
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13216 do
13217 IFS=$as_save_IFS
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13221 ac_cv_prog_ac_ct_AR="ar"
13222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 break 2
13224 fi
13225 done
13226 done
13227 IFS=$as_save_IFS
13228
13229 fi
13230 fi
13231 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13232 if test -n "$ac_ct_AR"; then
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13234 $as_echo "$ac_ct_AR" >&6; }
13235 else
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13237 $as_echo "no" >&6; }
13238 fi
13239
13240 if test "x$ac_ct_AR" = x; then
13241 AR="false"
13242 else
13243 case $cross_compiling:$ac_tool_warned in
13244 yes:)
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13247 ac_tool_warned=yes ;;
13248 esac
13249 AR=$ac_ct_AR
13250 fi
13251 else
13252 AR="$ac_cv_prog_AR"
13253 fi
13254
13255 test -z "$AR" && AR=ar
13256 test -z "$AR_FLAGS" && AR_FLAGS=cru
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268 if test -n "$ac_tool_prefix"; then
13269 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13270 set dummy ${ac_tool_prefix}strip; ac_word=$2
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13272 $as_echo_n "checking for $ac_word... " >&6; }
13273 if test "${ac_cv_prog_STRIP+set}" = set; then :
13274 $as_echo_n "(cached) " >&6
13275 else
13276 if test -n "$STRIP"; then
13277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13278 else
13279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280 for as_dir in $PATH
13281 do
13282 IFS=$as_save_IFS
13283 test -z "$as_dir" && as_dir=.
13284 for ac_exec_ext in '' $ac_executable_extensions; do
13285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13286 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13288 break 2
13289 fi
13290 done
13291 done
13292 IFS=$as_save_IFS
13293
13294 fi
13295 fi
13296 STRIP=$ac_cv_prog_STRIP
13297 if test -n "$STRIP"; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13299 $as_echo "$STRIP" >&6; }
13300 else
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302 $as_echo "no" >&6; }
13303 fi
13304
13305
13306 fi
13307 if test -z "$ac_cv_prog_STRIP"; then
13308 ac_ct_STRIP=$STRIP
13309 # Extract the first word of "strip", so it can be a program name with args.
13310 set dummy strip; ac_word=$2
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13312 $as_echo_n "checking for $ac_word... " >&6; }
13313 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13314 $as_echo_n "(cached) " >&6
13315 else
13316 if test -n "$ac_ct_STRIP"; then
13317 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13318 else
13319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320 for as_dir in $PATH
13321 do
13322 IFS=$as_save_IFS
13323 test -z "$as_dir" && as_dir=.
13324 for ac_exec_ext in '' $ac_executable_extensions; do
13325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13326 ac_cv_prog_ac_ct_STRIP="strip"
13327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13328 break 2
13329 fi
13330 done
13331 done
13332 IFS=$as_save_IFS
13333
13334 fi
13335 fi
13336 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13337 if test -n "$ac_ct_STRIP"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13339 $as_echo "$ac_ct_STRIP" >&6; }
13340 else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 $as_echo "no" >&6; }
13343 fi
13344
13345 if test "x$ac_ct_STRIP" = x; then
13346 STRIP=":"
13347 else
13348 case $cross_compiling:$ac_tool_warned in
13349 yes:)
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13352 ac_tool_warned=yes ;;
13353 esac
13354 STRIP=$ac_ct_STRIP
13355 fi
13356 else
13357 STRIP="$ac_cv_prog_STRIP"
13358 fi
13359
13360 test -z "$STRIP" && STRIP=:
13361
13362
13363
13364
13365
13366
13367 if test -n "$ac_tool_prefix"; then
13368 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371 $as_echo_n "checking for $ac_word... " >&6; }
13372 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 if test -n "$RANLIB"; then
13376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13377 else
13378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379 for as_dir in $PATH
13380 do
13381 IFS=$as_save_IFS
13382 test -z "$as_dir" && as_dir=.
13383 for ac_exec_ext in '' $ac_executable_extensions; do
13384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13385 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 break 2
13388 fi
13389 done
13390 done
13391 IFS=$as_save_IFS
13392
13393 fi
13394 fi
13395 RANLIB=$ac_cv_prog_RANLIB
13396 if test -n "$RANLIB"; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13398 $as_echo "$RANLIB" >&6; }
13399 else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13402 fi
13403
13404
13405 fi
13406 if test -z "$ac_cv_prog_RANLIB"; then
13407 ac_ct_RANLIB=$RANLIB
13408 # Extract the first word of "ranlib", so it can be a program name with args.
13409 set dummy ranlib; ac_word=$2
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13411 $as_echo_n "checking for $ac_word... " >&6; }
13412 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13413 $as_echo_n "(cached) " >&6
13414 else
13415 if test -n "$ac_ct_RANLIB"; then
13416 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13417 else
13418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $PATH
13420 do
13421 IFS=$as_save_IFS
13422 test -z "$as_dir" && as_dir=.
13423 for ac_exec_ext in '' $ac_executable_extensions; do
13424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13425 ac_cv_prog_ac_ct_RANLIB="ranlib"
13426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13427 break 2
13428 fi
13429 done
13430 done
13431 IFS=$as_save_IFS
13432
13433 fi
13434 fi
13435 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13436 if test -n "$ac_ct_RANLIB"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13438 $as_echo "$ac_ct_RANLIB" >&6; }
13439 else
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 $as_echo "no" >&6; }
13442 fi
13443
13444 if test "x$ac_ct_RANLIB" = x; then
13445 RANLIB=":"
13446 else
13447 case $cross_compiling:$ac_tool_warned in
13448 yes:)
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13451 ac_tool_warned=yes ;;
13452 esac
13453 RANLIB=$ac_ct_RANLIB
13454 fi
13455 else
13456 RANLIB="$ac_cv_prog_RANLIB"
13457 fi
13458
13459 test -z "$RANLIB" && RANLIB=:
13460
13461
13462
13463
13464
13465
13466 # Determine commands to create old-style static archives.
13467 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13468 old_postinstall_cmds='chmod 644 $oldlib'
13469 old_postuninstall_cmds=
13470
13471 if test -n "$RANLIB"; then
13472 case $host_os in
13473 openbsd*)
13474 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13475 ;;
13476 *)
13477 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13478 ;;
13479 esac
13480 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13481 fi
13482
13483 case $host_os in
13484 darwin*)
13485 lock_old_archive_extraction=yes ;;
13486 *)
13487 lock_old_archive_extraction=no ;;
13488 esac
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528 # If no C compiler was specified, use CC.
13529 LTCC=${LTCC-"$CC"}
13530
13531 # If no C compiler flags were specified, use CFLAGS.
13532 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13533
13534 # Allow CC to be a program name with arguments.
13535 compiler=$CC
13536
13537
13538 # Check for command to grab the raw symbol name followed by C symbol from nm.
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13540 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13541 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13542 $as_echo_n "(cached) " >&6
13543 else
13544
13545 # These are sane defaults that work on at least a few old systems.
13546 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13547
13548 # Character class describing NM global symbol codes.
13549 symcode='[BCDEGRST]'
13550
13551 # Regexp to match symbols that can be accessed directly from C.
13552 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13553
13554 # Define system-specific variables.
13555 case $host_os in
13556 aix*)
13557 symcode='[BCDT]'
13558 ;;
13559 cygwin* | mingw* | pw32* | cegcc*)
13560 symcode='[ABCDGISTW]'
13561 ;;
13562 hpux*)
13563 if test "$host_cpu" = ia64; then
13564 symcode='[ABCDEGRST]'
13565 fi
13566 ;;
13567 irix* | nonstopux*)
13568 symcode='[BCDEGRST]'
13569 ;;
13570 osf*)
13571 symcode='[BCDEGQRST]'
13572 ;;
13573 solaris*)
13574 symcode='[BDRT]'
13575 ;;
13576 sco3.2v5*)
13577 symcode='[DT]'
13578 ;;
13579 sysv4.2uw2*)
13580 symcode='[DT]'
13581 ;;
13582 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13583 symcode='[ABDT]'
13584 ;;
13585 sysv4)
13586 symcode='[DFNSTU]'
13587 ;;
13588 esac
13589
13590 # If we're using GNU nm, then use its standard symbol codes.
13591 case `$NM -V 2>&1` in
13592 *GNU* | *'with BFD'*)
13593 symcode='[ABCDGIRSTW]' ;;
13594 esac
13595
13596 # Transform an extracted symbol line into a proper C declaration.
13597 # Some systems (esp. on ia64) link data and code symbols differently,
13598 # so use this general approach.
13599 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13600
13601 # Transform an extracted symbol line into symbol name and symbol address
13602 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13603 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'"
13604
13605 # Handle CRLF in mingw tool chain
13606 opt_cr=
13607 case $build_os in
13608 mingw*)
13609 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13610 ;;
13611 esac
13612
13613 # Try without a prefix underscore, then with it.
13614 for ac_symprfx in "" "_"; do
13615
13616 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13617 symxfrm="\\1 $ac_symprfx\\2 \\2"
13618
13619 # Write the raw and C identifiers.
13620 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13621 # Fake it for dumpbin and say T for any non-static function
13622 # and D for any global variable.
13623 # Also find C++ and __fastcall symbols from MSVC++,
13624 # which start with @ or ?.
13625 lt_cv_sys_global_symbol_pipe="$AWK '"\
13626 " {last_section=section; section=\$ 3};"\
13627 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13628 " \$ 0!~/External *\|/{next};"\
13629 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13630 " {if(hide[section]) next};"\
13631 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13632 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13633 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13634 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13635 " ' prfx=^$ac_symprfx"
13636 else
13637 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13638 fi
13639
13640 # Check to see that the pipe works correctly.
13641 pipe_works=no
13642
13643 rm -f conftest*
13644 cat > conftest.$ac_ext <<_LT_EOF
13645 #ifdef __cplusplus
13646 extern "C" {
13647 #endif
13648 char nm_test_var;
13649 void nm_test_func(void);
13650 void nm_test_func(void){}
13651 #ifdef __cplusplus
13652 }
13653 #endif
13654 int main(){nm_test_var='a';nm_test_func();return(0);}
13655 _LT_EOF
13656
13657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13658 (eval $ac_compile) 2>&5
13659 ac_status=$?
13660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13661 test $ac_status = 0; }; then
13662 # Now try to grab the symbols.
13663 nlist=conftest.nm
13664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13665 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13666 ac_status=$?
13667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13668 test $ac_status = 0; } && test -s "$nlist"; then
13669 # Try sorting and uniquifying the output.
13670 if sort "$nlist" | uniq > "$nlist"T; then
13671 mv -f "$nlist"T "$nlist"
13672 else
13673 rm -f "$nlist"T
13674 fi
13675
13676 # Make sure that we snagged all the symbols we need.
13677 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13678 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13679 cat <<_LT_EOF > conftest.$ac_ext
13680 #ifdef __cplusplus
13681 extern "C" {
13682 #endif
13683
13684 _LT_EOF
13685 # Now generate the symbol file.
13686 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13687
13688 cat <<_LT_EOF >> conftest.$ac_ext
13689
13690 /* The mapping between symbol names and symbols. */
13691 const struct {
13692 const char *name;
13693 void *address;
13694 }
13695 lt__PROGRAM__LTX_preloaded_symbols[] =
13696 {
13697 { "@PROGRAM@", (void *) 0 },
13698 _LT_EOF
13699 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13700 cat <<\_LT_EOF >> conftest.$ac_ext
13701 {0, (void *) 0}
13702 };
13703
13704 /* This works around a problem in FreeBSD linker */
13705 #ifdef FREEBSD_WORKAROUND
13706 static const void *lt_preloaded_setup() {
13707 return lt__PROGRAM__LTX_preloaded_symbols;
13708 }
13709 #endif
13710
13711 #ifdef __cplusplus
13712 }
13713 #endif
13714 _LT_EOF
13715 # Now try linking the two files.
13716 mv conftest.$ac_objext conftstm.$ac_objext
13717 lt_save_LIBS="$LIBS"
13718 lt_save_CFLAGS="$CFLAGS"
13719 LIBS="conftstm.$ac_objext"
13720 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13722 (eval $ac_link) 2>&5
13723 ac_status=$?
13724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13725 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13726 pipe_works=yes
13727 fi
13728 LIBS="$lt_save_LIBS"
13729 CFLAGS="$lt_save_CFLAGS"
13730 else
13731 echo "cannot find nm_test_func in $nlist" >&5
13732 fi
13733 else
13734 echo "cannot find nm_test_var in $nlist" >&5
13735 fi
13736 else
13737 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13738 fi
13739 else
13740 echo "$progname: failed program was:" >&5
13741 cat conftest.$ac_ext >&5
13742 fi
13743 rm -rf conftest* conftst*
13744
13745 # Do not use the global_symbol_pipe unless it works.
13746 if test "$pipe_works" = yes; then
13747 break
13748 else
13749 lt_cv_sys_global_symbol_pipe=
13750 fi
13751 done
13752
13753 fi
13754
13755 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13756 lt_cv_sys_global_symbol_to_cdecl=
13757 fi
13758 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13760 $as_echo "failed" >&6; }
13761 else
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13763 $as_echo "ok" >&6; }
13764 fi
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787 # Check whether --enable-libtool-lock was given.
13788 if test "${enable_libtool_lock+set}" = set; then :
13789 enableval=$enable_libtool_lock;
13790 fi
13791
13792 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13793
13794 # Some flags need to be propagated to the compiler or linker for good
13795 # libtool support.
13796 case $host in
13797 ia64-*-hpux*)
13798 # Find out which ABI we are using.
13799 echo 'int i;' > conftest.$ac_ext
13800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13801 (eval $ac_compile) 2>&5
13802 ac_status=$?
13803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13804 test $ac_status = 0; }; then
13805 case `/usr/bin/file conftest.$ac_objext` in
13806 *ELF-32*)
13807 HPUX_IA64_MODE="32"
13808 ;;
13809 *ELF-64*)
13810 HPUX_IA64_MODE="64"
13811 ;;
13812 esac
13813 fi
13814 rm -rf conftest*
13815 ;;
13816 *-*-irix6*)
13817 # Find out which ABI we are using.
13818 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13820 (eval $ac_compile) 2>&5
13821 ac_status=$?
13822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13823 test $ac_status = 0; }; then
13824 if test "$lt_cv_prog_gnu_ld" = yes; then
13825 case `/usr/bin/file conftest.$ac_objext` in
13826 *32-bit*)
13827 LD="${LD-ld} -melf32bsmip"
13828 ;;
13829 *N32*)
13830 LD="${LD-ld} -melf32bmipn32"
13831 ;;
13832 *64-bit*)
13833 LD="${LD-ld} -melf64bmip"
13834 ;;
13835 esac
13836 else
13837 case `/usr/bin/file conftest.$ac_objext` in
13838 *32-bit*)
13839 LD="${LD-ld} -32"
13840 ;;
13841 *N32*)
13842 LD="${LD-ld} -n32"
13843 ;;
13844 *64-bit*)
13845 LD="${LD-ld} -64"
13846 ;;
13847 esac
13848 fi
13849 fi
13850 rm -rf conftest*
13851 ;;
13852
13853 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13854 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13855 # Find out which ABI we are using.
13856 echo 'int i;' > conftest.$ac_ext
13857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13858 (eval $ac_compile) 2>&5
13859 ac_status=$?
13860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13861 test $ac_status = 0; }; then
13862 case `/usr/bin/file conftest.o` in
13863 *32-bit*)
13864 case $host in
13865 x86_64-*kfreebsd*-gnu)
13866 LD="${LD-ld} -m elf_i386_fbsd"
13867 ;;
13868 x86_64-*linux*)
13869 case `/usr/bin/file conftest.o` in
13870 *x86-64*)
13871 LD="${LD-ld} -m elf32_x86_64"
13872 ;;
13873 *)
13874 LD="${LD-ld} -m elf_i386"
13875 ;;
13876 esac
13877 ;;
13878 powerpc64le-*linux*)
13879 LD="${LD-ld} -m elf32lppclinux"
13880 ;;
13881 powerpc64-*linux*)
13882 LD="${LD-ld} -m elf32ppclinux"
13883 ;;
13884 s390x-*linux*)
13885 LD="${LD-ld} -m elf_s390"
13886 ;;
13887 sparc64-*linux*)
13888 LD="${LD-ld} -m elf32_sparc"
13889 ;;
13890 esac
13891 ;;
13892 *64-bit*)
13893 case $host in
13894 x86_64-*kfreebsd*-gnu)
13895 LD="${LD-ld} -m elf_x86_64_fbsd"
13896 ;;
13897 x86_64-*linux*)
13898 LD="${LD-ld} -m elf_x86_64"
13899 ;;
13900 powerpcle-*linux*)
13901 LD="${LD-ld} -m elf64lppc"
13902 ;;
13903 powerpc-*linux*)
13904 LD="${LD-ld} -m elf64ppc"
13905 ;;
13906 s390*-*linux*|s390*-*tpf*)
13907 LD="${LD-ld} -m elf64_s390"
13908 ;;
13909 sparc*-*linux*)
13910 LD="${LD-ld} -m elf64_sparc"
13911 ;;
13912 esac
13913 ;;
13914 esac
13915 fi
13916 rm -rf conftest*
13917 ;;
13918
13919 *-*-sco3.2v5*)
13920 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13921 SAVE_CFLAGS="$CFLAGS"
13922 CFLAGS="$CFLAGS -belf"
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13924 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13925 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13926 $as_echo_n "(cached) " >&6
13927 else
13928 ac_ext=c
13929 ac_cpp='$CPP $CPPFLAGS'
13930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13933
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13936
13937 int
13938 main ()
13939 {
13940
13941 ;
13942 return 0;
13943 }
13944 _ACEOF
13945 if ac_fn_c_try_link "$LINENO"; then :
13946 lt_cv_cc_needs_belf=yes
13947 else
13948 lt_cv_cc_needs_belf=no
13949 fi
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 ac_ext=c
13953 ac_cpp='$CPP $CPPFLAGS'
13954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13957
13958 fi
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13960 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13961 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13962 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13963 CFLAGS="$SAVE_CFLAGS"
13964 fi
13965 ;;
13966 sparc*-*solaris*)
13967 # Find out which ABI we are using.
13968 echo 'int i;' > conftest.$ac_ext
13969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13970 (eval $ac_compile) 2>&5
13971 ac_status=$?
13972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13973 test $ac_status = 0; }; then
13974 case `/usr/bin/file conftest.o` in
13975 *64-bit*)
13976 case $lt_cv_prog_gnu_ld in
13977 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13978 *)
13979 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13980 LD="${LD-ld} -64"
13981 fi
13982 ;;
13983 esac
13984 ;;
13985 esac
13986 fi
13987 rm -rf conftest*
13988 ;;
13989 esac
13990
13991 need_locks="$enable_libtool_lock"
13992
13993
13994 case $host_os in
13995 rhapsody* | darwin*)
13996 if test -n "$ac_tool_prefix"; then
13997 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13998 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14000 $as_echo_n "checking for $ac_word... " >&6; }
14001 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 if test -n "$DSYMUTIL"; then
14005 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14006 else
14007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14008 for as_dir in $PATH
14009 do
14010 IFS=$as_save_IFS
14011 test -z "$as_dir" && as_dir=.
14012 for ac_exec_ext in '' $ac_executable_extensions; do
14013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14014 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14016 break 2
14017 fi
14018 done
14019 done
14020 IFS=$as_save_IFS
14021
14022 fi
14023 fi
14024 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14025 if test -n "$DSYMUTIL"; then
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14027 $as_echo "$DSYMUTIL" >&6; }
14028 else
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14030 $as_echo "no" >&6; }
14031 fi
14032
14033
14034 fi
14035 if test -z "$ac_cv_prog_DSYMUTIL"; then
14036 ac_ct_DSYMUTIL=$DSYMUTIL
14037 # Extract the first word of "dsymutil", so it can be a program name with args.
14038 set dummy dsymutil; ac_word=$2
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14040 $as_echo_n "checking for $ac_word... " >&6; }
14041 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 if test -n "$ac_ct_DSYMUTIL"; then
14045 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14046 else
14047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048 for as_dir in $PATH
14049 do
14050 IFS=$as_save_IFS
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
14053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14054 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14056 break 2
14057 fi
14058 done
14059 done
14060 IFS=$as_save_IFS
14061
14062 fi
14063 fi
14064 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14065 if test -n "$ac_ct_DSYMUTIL"; then
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14067 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14068 else
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14070 $as_echo "no" >&6; }
14071 fi
14072
14073 if test "x$ac_ct_DSYMUTIL" = x; then
14074 DSYMUTIL=":"
14075 else
14076 case $cross_compiling:$ac_tool_warned in
14077 yes:)
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14080 ac_tool_warned=yes ;;
14081 esac
14082 DSYMUTIL=$ac_ct_DSYMUTIL
14083 fi
14084 else
14085 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14086 fi
14087
14088 if test -n "$ac_tool_prefix"; then
14089 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14090 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14092 $as_echo_n "checking for $ac_word... " >&6; }
14093 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 if test -n "$NMEDIT"; then
14097 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14098 else
14099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14100 for as_dir in $PATH
14101 do
14102 IFS=$as_save_IFS
14103 test -z "$as_dir" && as_dir=.
14104 for ac_exec_ext in '' $ac_executable_extensions; do
14105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14106 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14108 break 2
14109 fi
14110 done
14111 done
14112 IFS=$as_save_IFS
14113
14114 fi
14115 fi
14116 NMEDIT=$ac_cv_prog_NMEDIT
14117 if test -n "$NMEDIT"; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14119 $as_echo "$NMEDIT" >&6; }
14120 else
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14122 $as_echo "no" >&6; }
14123 fi
14124
14125
14126 fi
14127 if test -z "$ac_cv_prog_NMEDIT"; then
14128 ac_ct_NMEDIT=$NMEDIT
14129 # Extract the first word of "nmedit", so it can be a program name with args.
14130 set dummy nmedit; ac_word=$2
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14132 $as_echo_n "checking for $ac_word... " >&6; }
14133 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 if test -n "$ac_ct_NMEDIT"; then
14137 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14138 else
14139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14140 for as_dir in $PATH
14141 do
14142 IFS=$as_save_IFS
14143 test -z "$as_dir" && as_dir=.
14144 for ac_exec_ext in '' $ac_executable_extensions; do
14145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14146 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14148 break 2
14149 fi
14150 done
14151 done
14152 IFS=$as_save_IFS
14153
14154 fi
14155 fi
14156 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14157 if test -n "$ac_ct_NMEDIT"; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14159 $as_echo "$ac_ct_NMEDIT" >&6; }
14160 else
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14162 $as_echo "no" >&6; }
14163 fi
14164
14165 if test "x$ac_ct_NMEDIT" = x; then
14166 NMEDIT=":"
14167 else
14168 case $cross_compiling:$ac_tool_warned in
14169 yes:)
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14172 ac_tool_warned=yes ;;
14173 esac
14174 NMEDIT=$ac_ct_NMEDIT
14175 fi
14176 else
14177 NMEDIT="$ac_cv_prog_NMEDIT"
14178 fi
14179
14180 if test -n "$ac_tool_prefix"; then
14181 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14182 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14184 $as_echo_n "checking for $ac_word... " >&6; }
14185 if test "${ac_cv_prog_LIPO+set}" = set; then :
14186 $as_echo_n "(cached) " >&6
14187 else
14188 if test -n "$LIPO"; then
14189 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14190 else
14191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14192 for as_dir in $PATH
14193 do
14194 IFS=$as_save_IFS
14195 test -z "$as_dir" && as_dir=.
14196 for ac_exec_ext in '' $ac_executable_extensions; do
14197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14198 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14200 break 2
14201 fi
14202 done
14203 done
14204 IFS=$as_save_IFS
14205
14206 fi
14207 fi
14208 LIPO=$ac_cv_prog_LIPO
14209 if test -n "$LIPO"; then
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14211 $as_echo "$LIPO" >&6; }
14212 else
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14214 $as_echo "no" >&6; }
14215 fi
14216
14217
14218 fi
14219 if test -z "$ac_cv_prog_LIPO"; then
14220 ac_ct_LIPO=$LIPO
14221 # Extract the first word of "lipo", so it can be a program name with args.
14222 set dummy lipo; ac_word=$2
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14224 $as_echo_n "checking for $ac_word... " >&6; }
14225 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14226 $as_echo_n "(cached) " >&6
14227 else
14228 if test -n "$ac_ct_LIPO"; then
14229 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14230 else
14231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14232 for as_dir in $PATH
14233 do
14234 IFS=$as_save_IFS
14235 test -z "$as_dir" && as_dir=.
14236 for ac_exec_ext in '' $ac_executable_extensions; do
14237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14238 ac_cv_prog_ac_ct_LIPO="lipo"
14239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14240 break 2
14241 fi
14242 done
14243 done
14244 IFS=$as_save_IFS
14245
14246 fi
14247 fi
14248 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14249 if test -n "$ac_ct_LIPO"; then
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14251 $as_echo "$ac_ct_LIPO" >&6; }
14252 else
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254 $as_echo "no" >&6; }
14255 fi
14256
14257 if test "x$ac_ct_LIPO" = x; then
14258 LIPO=":"
14259 else
14260 case $cross_compiling:$ac_tool_warned in
14261 yes:)
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14264 ac_tool_warned=yes ;;
14265 esac
14266 LIPO=$ac_ct_LIPO
14267 fi
14268 else
14269 LIPO="$ac_cv_prog_LIPO"
14270 fi
14271
14272 if test -n "$ac_tool_prefix"; then
14273 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14274 set dummy ${ac_tool_prefix}otool; ac_word=$2
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14276 $as_echo_n "checking for $ac_word... " >&6; }
14277 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14278 $as_echo_n "(cached) " >&6
14279 else
14280 if test -n "$OTOOL"; then
14281 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14282 else
14283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284 for as_dir in $PATH
14285 do
14286 IFS=$as_save_IFS
14287 test -z "$as_dir" && as_dir=.
14288 for ac_exec_ext in '' $ac_executable_extensions; do
14289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14290 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14292 break 2
14293 fi
14294 done
14295 done
14296 IFS=$as_save_IFS
14297
14298 fi
14299 fi
14300 OTOOL=$ac_cv_prog_OTOOL
14301 if test -n "$OTOOL"; then
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14303 $as_echo "$OTOOL" >&6; }
14304 else
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306 $as_echo "no" >&6; }
14307 fi
14308
14309
14310 fi
14311 if test -z "$ac_cv_prog_OTOOL"; then
14312 ac_ct_OTOOL=$OTOOL
14313 # Extract the first word of "otool", so it can be a program name with args.
14314 set dummy otool; ac_word=$2
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14316 $as_echo_n "checking for $ac_word... " >&6; }
14317 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320 if test -n "$ac_ct_OTOOL"; then
14321 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14322 else
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14325 do
14326 IFS=$as_save_IFS
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
14329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14330 ac_cv_prog_ac_ct_OTOOL="otool"
14331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14332 break 2
14333 fi
14334 done
14335 done
14336 IFS=$as_save_IFS
14337
14338 fi
14339 fi
14340 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14341 if test -n "$ac_ct_OTOOL"; then
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14343 $as_echo "$ac_ct_OTOOL" >&6; }
14344 else
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346 $as_echo "no" >&6; }
14347 fi
14348
14349 if test "x$ac_ct_OTOOL" = x; then
14350 OTOOL=":"
14351 else
14352 case $cross_compiling:$ac_tool_warned in
14353 yes:)
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14356 ac_tool_warned=yes ;;
14357 esac
14358 OTOOL=$ac_ct_OTOOL
14359 fi
14360 else
14361 OTOOL="$ac_cv_prog_OTOOL"
14362 fi
14363
14364 if test -n "$ac_tool_prefix"; then
14365 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14366 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14368 $as_echo_n "checking for $ac_word... " >&6; }
14369 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14370 $as_echo_n "(cached) " >&6
14371 else
14372 if test -n "$OTOOL64"; then
14373 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14374 else
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14377 do
14378 IFS=$as_save_IFS
14379 test -z "$as_dir" && as_dir=.
14380 for ac_exec_ext in '' $ac_executable_extensions; do
14381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14382 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14384 break 2
14385 fi
14386 done
14387 done
14388 IFS=$as_save_IFS
14389
14390 fi
14391 fi
14392 OTOOL64=$ac_cv_prog_OTOOL64
14393 if test -n "$OTOOL64"; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14395 $as_echo "$OTOOL64" >&6; }
14396 else
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398 $as_echo "no" >&6; }
14399 fi
14400
14401
14402 fi
14403 if test -z "$ac_cv_prog_OTOOL64"; then
14404 ac_ct_OTOOL64=$OTOOL64
14405 # Extract the first word of "otool64", so it can be a program name with args.
14406 set dummy otool64; ac_word=$2
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14408 $as_echo_n "checking for $ac_word... " >&6; }
14409 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412 if test -n "$ac_ct_OTOOL64"; then
14413 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14414 else
14415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416 for as_dir in $PATH
14417 do
14418 IFS=$as_save_IFS
14419 test -z "$as_dir" && as_dir=.
14420 for ac_exec_ext in '' $ac_executable_extensions; do
14421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14422 ac_cv_prog_ac_ct_OTOOL64="otool64"
14423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14424 break 2
14425 fi
14426 done
14427 done
14428 IFS=$as_save_IFS
14429
14430 fi
14431 fi
14432 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14433 if test -n "$ac_ct_OTOOL64"; then
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14435 $as_echo "$ac_ct_OTOOL64" >&6; }
14436 else
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14438 $as_echo "no" >&6; }
14439 fi
14440
14441 if test "x$ac_ct_OTOOL64" = x; then
14442 OTOOL64=":"
14443 else
14444 case $cross_compiling:$ac_tool_warned in
14445 yes:)
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14448 ac_tool_warned=yes ;;
14449 esac
14450 OTOOL64=$ac_ct_OTOOL64
14451 fi
14452 else
14453 OTOOL64="$ac_cv_prog_OTOOL64"
14454 fi
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14483 $as_echo_n "checking for -single_module linker flag... " >&6; }
14484 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14485 $as_echo_n "(cached) " >&6
14486 else
14487 lt_cv_apple_cc_single_mod=no
14488 if test -z "${LT_MULTI_MODULE}"; then
14489 # By default we will add the -single_module flag. You can override
14490 # by either setting the environment variable LT_MULTI_MODULE
14491 # non-empty at configure time, or by adding -multi_module to the
14492 # link flags.
14493 rm -rf libconftest.dylib*
14494 echo "int foo(void){return 1;}" > conftest.c
14495 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14496 -dynamiclib -Wl,-single_module conftest.c" >&5
14497 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14498 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14499 _lt_result=$?
14500 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14501 lt_cv_apple_cc_single_mod=yes
14502 else
14503 cat conftest.err >&5
14504 fi
14505 rm -rf libconftest.dylib*
14506 rm -f conftest.*
14507 fi
14508 fi
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14510 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14512 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14513 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 lt_cv_ld_exported_symbols_list=no
14517 save_LDFLAGS=$LDFLAGS
14518 echo "_main" > conftest.sym
14519 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14522
14523 int
14524 main ()
14525 {
14526
14527 ;
14528 return 0;
14529 }
14530 _ACEOF
14531 if ac_fn_c_try_link "$LINENO"; then :
14532 lt_cv_ld_exported_symbols_list=yes
14533 else
14534 lt_cv_ld_exported_symbols_list=no
14535 fi
14536 rm -f core conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LDFLAGS="$save_LDFLAGS"
14539
14540 fi
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14542 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14544 $as_echo_n "checking for -force_load linker flag... " >&6; }
14545 if test "${lt_cv_ld_force_load+set}" = set; then :
14546 $as_echo_n "(cached) " >&6
14547 else
14548 lt_cv_ld_force_load=no
14549 cat > conftest.c << _LT_EOF
14550 int forced_loaded() { return 2;}
14551 _LT_EOF
14552 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14553 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14554 echo "$AR cru libconftest.a conftest.o" >&5
14555 $AR cru libconftest.a conftest.o 2>&5
14556 cat > conftest.c << _LT_EOF
14557 int main() { return 0;}
14558 _LT_EOF
14559 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14560 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14561 _lt_result=$?
14562 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14563 lt_cv_ld_force_load=yes
14564 else
14565 cat conftest.err >&5
14566 fi
14567 rm -f conftest.err libconftest.a conftest conftest.c
14568 rm -rf conftest.dSYM
14569
14570 fi
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14572 $as_echo "$lt_cv_ld_force_load" >&6; }
14573 case $host_os in
14574 rhapsody* | darwin1.[012])
14575 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14576 darwin1.*)
14577 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14578 darwin*) # darwin 5.x on
14579 # if running on 10.5 or later, the deployment target defaults
14580 # to the OS version, if on x86, and 10.4, the deployment
14581 # target defaults to 10.4. Don't you love it?
14582 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14583 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14584 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14585 10.[012][,.]*)
14586 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14587 10.*)
14588 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14589 esac
14590 ;;
14591 esac
14592 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14593 _lt_dar_single_mod='$single_module'
14594 fi
14595 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14596 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14597 else
14598 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14599 fi
14600 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14601 _lt_dsymutil='~$DSYMUTIL $lib || :'
14602 else
14603 _lt_dsymutil=
14604 fi
14605 ;;
14606 esac
14607
14608 for ac_header in dlfcn.h
14609 do :
14610 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14611 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14612 cat >>confdefs.h <<_ACEOF
14613 #define HAVE_DLFCN_H 1
14614 _ACEOF
14615
14616 fi
14617 done
14618
14619
14620
14621
14622
14623 # Set options
14624
14625
14626
14627 enable_dlopen=no
14628
14629
14630 enable_win32_dll=no
14631
14632
14633 # Check whether --enable-shared was given.
14634 if test "${enable_shared+set}" = set; then :
14635 enableval=$enable_shared; p=${PACKAGE-default}
14636 case $enableval in
14637 yes) enable_shared=yes ;;
14638 no) enable_shared=no ;;
14639 *)
14640 enable_shared=no
14641 # Look at the argument we got. We use all the common list separators.
14642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14643 for pkg in $enableval; do
14644 IFS="$lt_save_ifs"
14645 if test "X$pkg" = "X$p"; then
14646 enable_shared=yes
14647 fi
14648 done
14649 IFS="$lt_save_ifs"
14650 ;;
14651 esac
14652 else
14653 enable_shared=yes
14654 fi
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664 # Check whether --enable-static was given.
14665 if test "${enable_static+set}" = set; then :
14666 enableval=$enable_static; p=${PACKAGE-default}
14667 case $enableval in
14668 yes) enable_static=yes ;;
14669 no) enable_static=no ;;
14670 *)
14671 enable_static=no
14672 # Look at the argument we got. We use all the common list separators.
14673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14674 for pkg in $enableval; do
14675 IFS="$lt_save_ifs"
14676 if test "X$pkg" = "X$p"; then
14677 enable_static=yes
14678 fi
14679 done
14680 IFS="$lt_save_ifs"
14681 ;;
14682 esac
14683 else
14684 enable_static=yes
14685 fi
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696 # Check whether --with-pic was given.
14697 if test "${with_pic+set}" = set; then :
14698 withval=$with_pic; pic_mode="$withval"
14699 else
14700 pic_mode=default
14701 fi
14702
14703
14704 test -z "$pic_mode" && pic_mode=default
14705
14706
14707
14708
14709
14710
14711
14712 # Check whether --enable-fast-install was given.
14713 if test "${enable_fast_install+set}" = set; then :
14714 enableval=$enable_fast_install; p=${PACKAGE-default}
14715 case $enableval in
14716 yes) enable_fast_install=yes ;;
14717 no) enable_fast_install=no ;;
14718 *)
14719 enable_fast_install=no
14720 # Look at the argument we got. We use all the common list separators.
14721 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14722 for pkg in $enableval; do
14723 IFS="$lt_save_ifs"
14724 if test "X$pkg" = "X$p"; then
14725 enable_fast_install=yes
14726 fi
14727 done
14728 IFS="$lt_save_ifs"
14729 ;;
14730 esac
14731 else
14732 enable_fast_install=yes
14733 fi
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745 # This can be used to rebuild libtool when needed
14746 LIBTOOL_DEPS="$ltmain"
14747
14748 # Always use our own libtool.
14749 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776 test -z "$LN_S" && LN_S="ln -s"
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791 if test -n "${ZSH_VERSION+set}" ; then
14792 setopt NO_GLOB_SUBST
14793 fi
14794
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14796 $as_echo_n "checking for objdir... " >&6; }
14797 if test "${lt_cv_objdir+set}" = set; then :
14798 $as_echo_n "(cached) " >&6
14799 else
14800 rm -f .libs 2>/dev/null
14801 mkdir .libs 2>/dev/null
14802 if test -d .libs; then
14803 lt_cv_objdir=.libs
14804 else
14805 # MS-DOS does not allow filenames that begin with a dot.
14806 lt_cv_objdir=_libs
14807 fi
14808 rmdir .libs 2>/dev/null
14809 fi
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14811 $as_echo "$lt_cv_objdir" >&6; }
14812 objdir=$lt_cv_objdir
14813
14814
14815
14816
14817
14818 cat >>confdefs.h <<_ACEOF
14819 #define LT_OBJDIR "$lt_cv_objdir/"
14820 _ACEOF
14821
14822
14823
14824
14825 case $host_os in
14826 aix3*)
14827 # AIX sometimes has problems with the GCC collect2 program. For some
14828 # reason, if we set the COLLECT_NAMES environment variable, the problems
14829 # vanish in a puff of smoke.
14830 if test "X${COLLECT_NAMES+set}" != Xset; then
14831 COLLECT_NAMES=
14832 export COLLECT_NAMES
14833 fi
14834 ;;
14835 esac
14836
14837 # Global variables:
14838 ofile=libtool
14839 can_build_shared=yes
14840
14841 # All known linkers require a `.a' archive for static linking (except MSVC,
14842 # which needs '.lib').
14843 libext=a
14844
14845 with_gnu_ld="$lt_cv_prog_gnu_ld"
14846
14847 old_CC="$CC"
14848 old_CFLAGS="$CFLAGS"
14849
14850 # Set sane defaults for various variables
14851 test -z "$CC" && CC=cc
14852 test -z "$LTCC" && LTCC=$CC
14853 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14854 test -z "$LD" && LD=ld
14855 test -z "$ac_objext" && ac_objext=o
14856
14857 for cc_temp in $compiler""; do
14858 case $cc_temp in
14859 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14860 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14861 \-*) ;;
14862 *) break;;
14863 esac
14864 done
14865 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14866
14867
14868 # Only perform the check for file, if the check method requires it
14869 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14870 case $deplibs_check_method in
14871 file_magic*)
14872 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14874 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14875 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 case $MAGIC_CMD in
14879 [\\/*] | ?:[\\/]*)
14880 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14881 ;;
14882 *)
14883 lt_save_MAGIC_CMD="$MAGIC_CMD"
14884 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14885 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14886 for ac_dir in $ac_dummy; do
14887 IFS="$lt_save_ifs"
14888 test -z "$ac_dir" && ac_dir=.
14889 if test -f $ac_dir/${ac_tool_prefix}file; then
14890 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14891 if test -n "$file_magic_test_file"; then
14892 case $deplibs_check_method in
14893 "file_magic "*)
14894 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14895 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14896 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14897 $EGREP "$file_magic_regex" > /dev/null; then
14898 :
14899 else
14900 cat <<_LT_EOF 1>&2
14901
14902 *** Warning: the command libtool uses to detect shared libraries,
14903 *** $file_magic_cmd, produces output that libtool cannot recognize.
14904 *** The result is that libtool may fail to recognize shared libraries
14905 *** as such. This will affect the creation of libtool libraries that
14906 *** depend on shared libraries, but programs linked with such libtool
14907 *** libraries will work regardless of this problem. Nevertheless, you
14908 *** may want to report the problem to your system manager and/or to
14909 *** bug-libtool@gnu.org
14910
14911 _LT_EOF
14912 fi ;;
14913 esac
14914 fi
14915 break
14916 fi
14917 done
14918 IFS="$lt_save_ifs"
14919 MAGIC_CMD="$lt_save_MAGIC_CMD"
14920 ;;
14921 esac
14922 fi
14923
14924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14925 if test -n "$MAGIC_CMD"; then
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14927 $as_echo "$MAGIC_CMD" >&6; }
14928 else
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14930 $as_echo "no" >&6; }
14931 fi
14932
14933
14934
14935
14936
14937 if test -z "$lt_cv_path_MAGIC_CMD"; then
14938 if test -n "$ac_tool_prefix"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14940 $as_echo_n "checking for file... " >&6; }
14941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14942 $as_echo_n "(cached) " >&6
14943 else
14944 case $MAGIC_CMD in
14945 [\\/*] | ?:[\\/]*)
14946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14947 ;;
14948 *)
14949 lt_save_MAGIC_CMD="$MAGIC_CMD"
14950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14951 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14952 for ac_dir in $ac_dummy; do
14953 IFS="$lt_save_ifs"
14954 test -z "$ac_dir" && ac_dir=.
14955 if test -f $ac_dir/file; then
14956 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14957 if test -n "$file_magic_test_file"; then
14958 case $deplibs_check_method in
14959 "file_magic "*)
14960 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14962 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14963 $EGREP "$file_magic_regex" > /dev/null; then
14964 :
14965 else
14966 cat <<_LT_EOF 1>&2
14967
14968 *** Warning: the command libtool uses to detect shared libraries,
14969 *** $file_magic_cmd, produces output that libtool cannot recognize.
14970 *** The result is that libtool may fail to recognize shared libraries
14971 *** as such. This will affect the creation of libtool libraries that
14972 *** depend on shared libraries, but programs linked with such libtool
14973 *** libraries will work regardless of this problem. Nevertheless, you
14974 *** may want to report the problem to your system manager and/or to
14975 *** bug-libtool@gnu.org
14976
14977 _LT_EOF
14978 fi ;;
14979 esac
14980 fi
14981 break
14982 fi
14983 done
14984 IFS="$lt_save_ifs"
14985 MAGIC_CMD="$lt_save_MAGIC_CMD"
14986 ;;
14987 esac
14988 fi
14989
14990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14991 if test -n "$MAGIC_CMD"; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14993 $as_echo "$MAGIC_CMD" >&6; }
14994 else
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14996 $as_echo "no" >&6; }
14997 fi
14998
14999
15000 else
15001 MAGIC_CMD=:
15002 fi
15003 fi
15004
15005 fi
15006 ;;
15007 esac
15008
15009 # Use C for the default configuration in the libtool script
15010
15011 lt_save_CC="$CC"
15012 ac_ext=c
15013 ac_cpp='$CPP $CPPFLAGS'
15014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15017
15018
15019 # Source file extension for C test sources.
15020 ac_ext=c
15021
15022 # Object file extension for compiled C test sources.
15023 objext=o
15024 objext=$objext
15025
15026 # Code to be used in simple compile tests
15027 lt_simple_compile_test_code="int some_variable = 0;"
15028
15029 # Code to be used in simple link tests
15030 lt_simple_link_test_code='int main(){return(0);}'
15031
15032
15033
15034
15035
15036
15037
15038 # If no C compiler was specified, use CC.
15039 LTCC=${LTCC-"$CC"}
15040
15041 # If no C compiler flags were specified, use CFLAGS.
15042 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15043
15044 # Allow CC to be a program name with arguments.
15045 compiler=$CC
15046
15047 # Save the default compiler, since it gets overwritten when the other
15048 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15049 compiler_DEFAULT=$CC
15050
15051 # save warnings/boilerplate of simple test code
15052 ac_outfile=conftest.$ac_objext
15053 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15055 _lt_compiler_boilerplate=`cat conftest.err`
15056 $RM conftest*
15057
15058 ac_outfile=conftest.$ac_objext
15059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15061 _lt_linker_boilerplate=`cat conftest.err`
15062 $RM -r conftest*
15063
15064
15065 ## CAVEAT EMPTOR:
15066 ## There is no encapsulation within the following macros, do not change
15067 ## the running order or otherwise move them around unless you know exactly
15068 ## what you are doing...
15069 if test -n "$compiler"; then
15070
15071 lt_prog_compiler_no_builtin_flag=
15072
15073 if test "$GCC" = yes; then
15074 case $cc_basename in
15075 nvcc*)
15076 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15077 *)
15078 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15079 esac
15080
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15082 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15083 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15084 $as_echo_n "(cached) " >&6
15085 else
15086 lt_cv_prog_compiler_rtti_exceptions=no
15087 ac_outfile=conftest.$ac_objext
15088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15089 lt_compiler_flag="-fno-rtti -fno-exceptions"
15090 # Insert the option either (1) after the last *FLAGS variable, or
15091 # (2) before a word containing "conftest.", or (3) at the end.
15092 # Note that $ac_compile itself does not contain backslashes and begins
15093 # with a dollar sign (not a hyphen), so the echo should work correctly.
15094 # The option is referenced via a variable to avoid confusing sed.
15095 lt_compile=`echo "$ac_compile" | $SED \
15096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15098 -e 's:$: $lt_compiler_flag:'`
15099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15100 (eval "$lt_compile" 2>conftest.err)
15101 ac_status=$?
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 if (exit $ac_status) && test -s "$ac_outfile"; then
15105 # The compiler can only warn and ignore the option if not recognized
15106 # So say no if there are warnings other than the usual output.
15107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15110 lt_cv_prog_compiler_rtti_exceptions=yes
15111 fi
15112 fi
15113 $RM conftest*
15114
15115 fi
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15117 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15118
15119 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15120 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15121 else
15122 :
15123 fi
15124
15125 fi
15126
15127
15128
15129
15130
15131
15132 lt_prog_compiler_wl=
15133 lt_prog_compiler_pic=
15134 lt_prog_compiler_static=
15135
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15137 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15138
15139 if test "$GCC" = yes; then
15140 lt_prog_compiler_wl='-Wl,'
15141 lt_prog_compiler_static='-static'
15142
15143 case $host_os in
15144 aix*)
15145 # All AIX code is PIC.
15146 if test "$host_cpu" = ia64; then
15147 # AIX 5 now supports IA64 processor
15148 lt_prog_compiler_static='-Bstatic'
15149 fi
15150 lt_prog_compiler_pic='-fPIC'
15151 ;;
15152
15153 amigaos*)
15154 case $host_cpu in
15155 powerpc)
15156 # see comment about AmigaOS4 .so support
15157 lt_prog_compiler_pic='-fPIC'
15158 ;;
15159 m68k)
15160 # FIXME: we need at least 68020 code to build shared libraries, but
15161 # adding the `-m68020' flag to GCC prevents building anything better,
15162 # like `-m68040'.
15163 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15164 ;;
15165 esac
15166 ;;
15167
15168 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15169 # PIC is the default for these OSes.
15170 ;;
15171
15172 mingw* | cygwin* | pw32* | os2* | cegcc*)
15173 # This hack is so that the source file can tell whether it is being
15174 # built for inclusion in a dll (and should export symbols for example).
15175 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15176 # (--disable-auto-import) libraries
15177 lt_prog_compiler_pic='-DDLL_EXPORT'
15178 ;;
15179
15180 darwin* | rhapsody*)
15181 # PIC is the default on this platform
15182 # Common symbols not allowed in MH_DYLIB files
15183 lt_prog_compiler_pic='-fno-common'
15184 ;;
15185
15186 haiku*)
15187 # PIC is the default for Haiku.
15188 # The "-static" flag exists, but is broken.
15189 lt_prog_compiler_static=
15190 ;;
15191
15192 hpux*)
15193 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15194 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15195 # sets the default TLS model and affects inlining.
15196 case $host_cpu in
15197 hppa*64*)
15198 # +Z the default
15199 ;;
15200 *)
15201 lt_prog_compiler_pic='-fPIC'
15202 ;;
15203 esac
15204 ;;
15205
15206 interix[3-9]*)
15207 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15208 # Instead, we relocate shared libraries at runtime.
15209 ;;
15210
15211 msdosdjgpp*)
15212 # Just because we use GCC doesn't mean we suddenly get shared libraries
15213 # on systems that don't support them.
15214 lt_prog_compiler_can_build_shared=no
15215 enable_shared=no
15216 ;;
15217
15218 *nto* | *qnx*)
15219 # QNX uses GNU C++, but need to define -shared option too, otherwise
15220 # it will coredump.
15221 lt_prog_compiler_pic='-fPIC -shared'
15222 ;;
15223
15224 sysv4*MP*)
15225 if test -d /usr/nec; then
15226 lt_prog_compiler_pic=-Kconform_pic
15227 fi
15228 ;;
15229
15230 *)
15231 lt_prog_compiler_pic='-fPIC'
15232 ;;
15233 esac
15234
15235 case $cc_basename in
15236 nvcc*) # Cuda Compiler Driver 2.2
15237 lt_prog_compiler_wl='-Xlinker '
15238 lt_prog_compiler_pic='-Xcompiler -fPIC'
15239 ;;
15240 esac
15241 else
15242 # PORTME Check for flag to pass linker flags through the system compiler.
15243 case $host_os in
15244 aix*)
15245 lt_prog_compiler_wl='-Wl,'
15246 if test "$host_cpu" = ia64; then
15247 # AIX 5 now supports IA64 processor
15248 lt_prog_compiler_static='-Bstatic'
15249 else
15250 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15251 fi
15252 ;;
15253
15254 mingw* | cygwin* | pw32* | os2* | cegcc*)
15255 # This hack is so that the source file can tell whether it is being
15256 # built for inclusion in a dll (and should export symbols for example).
15257 lt_prog_compiler_pic='-DDLL_EXPORT'
15258 ;;
15259
15260 hpux9* | hpux10* | hpux11*)
15261 lt_prog_compiler_wl='-Wl,'
15262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15263 # not for PA HP-UX.
15264 case $host_cpu in
15265 hppa*64*|ia64*)
15266 # +Z the default
15267 ;;
15268 *)
15269 lt_prog_compiler_pic='+Z'
15270 ;;
15271 esac
15272 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15273 lt_prog_compiler_static='${wl}-a ${wl}archive'
15274 ;;
15275
15276 irix5* | irix6* | nonstopux*)
15277 lt_prog_compiler_wl='-Wl,'
15278 # PIC (with -KPIC) is the default.
15279 lt_prog_compiler_static='-non_shared'
15280 ;;
15281
15282 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15283 case $cc_basename in
15284 # old Intel for x86_64 which still supported -KPIC.
15285 ecc*)
15286 lt_prog_compiler_wl='-Wl,'
15287 lt_prog_compiler_pic='-KPIC'
15288 lt_prog_compiler_static='-static'
15289 ;;
15290 # icc used to be incompatible with GCC.
15291 # ICC 10 doesn't accept -KPIC any more.
15292 icc* | ifort*)
15293 lt_prog_compiler_wl='-Wl,'
15294 lt_prog_compiler_pic='-fPIC'
15295 lt_prog_compiler_static='-static'
15296 ;;
15297 # Lahey Fortran 8.1.
15298 lf95*)
15299 lt_prog_compiler_wl='-Wl,'
15300 lt_prog_compiler_pic='--shared'
15301 lt_prog_compiler_static='--static'
15302 ;;
15303 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15304 # Portland Group compilers (*not* the Pentium gcc compiler,
15305 # which looks to be a dead project)
15306 lt_prog_compiler_wl='-Wl,'
15307 lt_prog_compiler_pic='-fpic'
15308 lt_prog_compiler_static='-Bstatic'
15309 ;;
15310 ccc*)
15311 lt_prog_compiler_wl='-Wl,'
15312 # All Alpha code is PIC.
15313 lt_prog_compiler_static='-non_shared'
15314 ;;
15315 xl* | bgxl* | bgf* | mpixl*)
15316 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15317 lt_prog_compiler_wl='-Wl,'
15318 lt_prog_compiler_pic='-qpic'
15319 lt_prog_compiler_static='-qstaticlink'
15320 ;;
15321 *)
15322 case `$CC -V 2>&1 | sed 5q` in
15323 *Sun\ F* | *Sun*Fortran*)
15324 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15325 lt_prog_compiler_pic='-KPIC'
15326 lt_prog_compiler_static='-Bstatic'
15327 lt_prog_compiler_wl=''
15328 ;;
15329 *Sun\ C*)
15330 # Sun C 5.9
15331 lt_prog_compiler_pic='-KPIC'
15332 lt_prog_compiler_static='-Bstatic'
15333 lt_prog_compiler_wl='-Wl,'
15334 ;;
15335 esac
15336 ;;
15337 esac
15338 ;;
15339
15340 newsos6)
15341 lt_prog_compiler_pic='-KPIC'
15342 lt_prog_compiler_static='-Bstatic'
15343 ;;
15344
15345 *nto* | *qnx*)
15346 # QNX uses GNU C++, but need to define -shared option too, otherwise
15347 # it will coredump.
15348 lt_prog_compiler_pic='-fPIC -shared'
15349 ;;
15350
15351 osf3* | osf4* | osf5*)
15352 lt_prog_compiler_wl='-Wl,'
15353 # All OSF/1 code is PIC.
15354 lt_prog_compiler_static='-non_shared'
15355 ;;
15356
15357 rdos*)
15358 lt_prog_compiler_static='-non_shared'
15359 ;;
15360
15361 solaris*)
15362 lt_prog_compiler_pic='-KPIC'
15363 lt_prog_compiler_static='-Bstatic'
15364 case $cc_basename in
15365 f77* | f90* | f95*)
15366 lt_prog_compiler_wl='-Qoption ld ';;
15367 *)
15368 lt_prog_compiler_wl='-Wl,';;
15369 esac
15370 ;;
15371
15372 sunos4*)
15373 lt_prog_compiler_wl='-Qoption ld '
15374 lt_prog_compiler_pic='-PIC'
15375 lt_prog_compiler_static='-Bstatic'
15376 ;;
15377
15378 sysv4 | sysv4.2uw2* | sysv4.3*)
15379 lt_prog_compiler_wl='-Wl,'
15380 lt_prog_compiler_pic='-KPIC'
15381 lt_prog_compiler_static='-Bstatic'
15382 ;;
15383
15384 sysv4*MP*)
15385 if test -d /usr/nec ;then
15386 lt_prog_compiler_pic='-Kconform_pic'
15387 lt_prog_compiler_static='-Bstatic'
15388 fi
15389 ;;
15390
15391 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15392 lt_prog_compiler_wl='-Wl,'
15393 lt_prog_compiler_pic='-KPIC'
15394 lt_prog_compiler_static='-Bstatic'
15395 ;;
15396
15397 unicos*)
15398 lt_prog_compiler_wl='-Wl,'
15399 lt_prog_compiler_can_build_shared=no
15400 ;;
15401
15402 uts4*)
15403 lt_prog_compiler_pic='-pic'
15404 lt_prog_compiler_static='-Bstatic'
15405 ;;
15406
15407 *)
15408 lt_prog_compiler_can_build_shared=no
15409 ;;
15410 esac
15411 fi
15412
15413 case $host_os in
15414 # For platforms which do not support PIC, -DPIC is meaningless:
15415 *djgpp*)
15416 lt_prog_compiler_pic=
15417 ;;
15418 *)
15419 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15420 ;;
15421 esac
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15423 $as_echo "$lt_prog_compiler_pic" >&6; }
15424
15425
15426
15427
15428
15429
15430 #
15431 # Check to make sure the PIC flag actually works.
15432 #
15433 if test -n "$lt_prog_compiler_pic"; then
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15435 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15436 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15437 $as_echo_n "(cached) " >&6
15438 else
15439 lt_cv_prog_compiler_pic_works=no
15440 ac_outfile=conftest.$ac_objext
15441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15442 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15443 # Insert the option either (1) after the last *FLAGS variable, or
15444 # (2) before a word containing "conftest.", or (3) at the end.
15445 # Note that $ac_compile itself does not contain backslashes and begins
15446 # with a dollar sign (not a hyphen), so the echo should work correctly.
15447 # The option is referenced via a variable to avoid confusing sed.
15448 lt_compile=`echo "$ac_compile" | $SED \
15449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15451 -e 's:$: $lt_compiler_flag:'`
15452 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15453 (eval "$lt_compile" 2>conftest.err)
15454 ac_status=$?
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 if (exit $ac_status) && test -s "$ac_outfile"; then
15458 # The compiler can only warn and ignore the option if not recognized
15459 # So say no if there are warnings other than the usual output.
15460 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15462 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15463 lt_cv_prog_compiler_pic_works=yes
15464 fi
15465 fi
15466 $RM conftest*
15467
15468 fi
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15470 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15471
15472 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15473 case $lt_prog_compiler_pic in
15474 "" | " "*) ;;
15475 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15476 esac
15477 else
15478 lt_prog_compiler_pic=
15479 lt_prog_compiler_can_build_shared=no
15480 fi
15481
15482 fi
15483
15484
15485
15486
15487
15488
15489 #
15490 # Check to make sure the static flag actually works.
15491 #
15492 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15494 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15495 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15496 $as_echo_n "(cached) " >&6
15497 else
15498 lt_cv_prog_compiler_static_works=no
15499 save_LDFLAGS="$LDFLAGS"
15500 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15501 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15503 # The linker can only warn and ignore the option if not recognized
15504 # So say no if there are warnings
15505 if test -s conftest.err; then
15506 # Append any errors to the config.log.
15507 cat conftest.err 1>&5
15508 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15510 if diff conftest.exp conftest.er2 >/dev/null; then
15511 lt_cv_prog_compiler_static_works=yes
15512 fi
15513 else
15514 lt_cv_prog_compiler_static_works=yes
15515 fi
15516 fi
15517 $RM -r conftest*
15518 LDFLAGS="$save_LDFLAGS"
15519
15520 fi
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15522 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15523
15524 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15525 :
15526 else
15527 lt_prog_compiler_static=
15528 fi
15529
15530
15531
15532
15533
15534
15535
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15537 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15538 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15539 $as_echo_n "(cached) " >&6
15540 else
15541 lt_cv_prog_compiler_c_o=no
15542 $RM -r conftest 2>/dev/null
15543 mkdir conftest
15544 cd conftest
15545 mkdir out
15546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15547
15548 lt_compiler_flag="-o out/conftest2.$ac_objext"
15549 # Insert the option either (1) after the last *FLAGS variable, or
15550 # (2) before a word containing "conftest.", or (3) at the end.
15551 # Note that $ac_compile itself does not contain backslashes and begins
15552 # with a dollar sign (not a hyphen), so the echo should work correctly.
15553 lt_compile=`echo "$ac_compile" | $SED \
15554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15556 -e 's:$: $lt_compiler_flag:'`
15557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15558 (eval "$lt_compile" 2>out/conftest.err)
15559 ac_status=$?
15560 cat out/conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15563 then
15564 # The compiler can only warn and ignore the option if not recognized
15565 # So say no if there are warnings
15566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15569 lt_cv_prog_compiler_c_o=yes
15570 fi
15571 fi
15572 chmod u+w . 2>&5
15573 $RM conftest*
15574 # SGI C++ compiler will create directory out/ii_files/ for
15575 # template instantiation
15576 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15577 $RM out/* && rmdir out
15578 cd ..
15579 $RM -r conftest
15580 $RM conftest*
15581
15582 fi
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15584 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15585
15586
15587
15588
15589
15590
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15592 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15593 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15594 $as_echo_n "(cached) " >&6
15595 else
15596 lt_cv_prog_compiler_c_o=no
15597 $RM -r conftest 2>/dev/null
15598 mkdir conftest
15599 cd conftest
15600 mkdir out
15601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15602
15603 lt_compiler_flag="-o out/conftest2.$ac_objext"
15604 # Insert the option either (1) after the last *FLAGS variable, or
15605 # (2) before a word containing "conftest.", or (3) at the end.
15606 # Note that $ac_compile itself does not contain backslashes and begins
15607 # with a dollar sign (not a hyphen), so the echo should work correctly.
15608 lt_compile=`echo "$ac_compile" | $SED \
15609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15611 -e 's:$: $lt_compiler_flag:'`
15612 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15613 (eval "$lt_compile" 2>out/conftest.err)
15614 ac_status=$?
15615 cat out/conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15618 then
15619 # The compiler can only warn and ignore the option if not recognized
15620 # So say no if there are warnings
15621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15624 lt_cv_prog_compiler_c_o=yes
15625 fi
15626 fi
15627 chmod u+w . 2>&5
15628 $RM conftest*
15629 # SGI C++ compiler will create directory out/ii_files/ for
15630 # template instantiation
15631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15632 $RM out/* && rmdir out
15633 cd ..
15634 $RM -r conftest
15635 $RM conftest*
15636
15637 fi
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15639 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15640
15641
15642
15643
15644 hard_links="nottested"
15645 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15646 # do not overwrite the value of need_locks provided by the user
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15648 $as_echo_n "checking if we can lock with hard links... " >&6; }
15649 hard_links=yes
15650 $RM conftest*
15651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15652 touch conftest.a
15653 ln conftest.a conftest.b 2>&5 || hard_links=no
15654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15656 $as_echo "$hard_links" >&6; }
15657 if test "$hard_links" = no; then
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15659 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15660 need_locks=warn
15661 fi
15662 else
15663 need_locks=no
15664 fi
15665
15666
15667
15668
15669
15670
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15672 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15673
15674 runpath_var=
15675 allow_undefined_flag=
15676 always_export_symbols=no
15677 archive_cmds=
15678 archive_expsym_cmds=
15679 compiler_needs_object=no
15680 enable_shared_with_static_runtimes=no
15681 export_dynamic_flag_spec=
15682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15683 hardcode_automatic=no
15684 hardcode_direct=no
15685 hardcode_direct_absolute=no
15686 hardcode_libdir_flag_spec=
15687 hardcode_libdir_flag_spec_ld=
15688 hardcode_libdir_separator=
15689 hardcode_minus_L=no
15690 hardcode_shlibpath_var=unsupported
15691 inherit_rpath=no
15692 link_all_deplibs=unknown
15693 module_cmds=
15694 module_expsym_cmds=
15695 old_archive_from_new_cmds=
15696 old_archive_from_expsyms_cmds=
15697 thread_safe_flag_spec=
15698 whole_archive_flag_spec=
15699 # include_expsyms should be a list of space-separated symbols to be *always*
15700 # included in the symbol list
15701 include_expsyms=
15702 # exclude_expsyms can be an extended regexp of symbols to exclude
15703 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15704 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15705 # as well as any symbol that contains `d'.
15706 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15707 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15708 # platforms (ab)use it in PIC code, but their linkers get confused if
15709 # the symbol is explicitly referenced. Since portable code cannot
15710 # rely on this symbol name, it's probably fine to never include it in
15711 # preloaded symbol tables.
15712 # Exclude shared library initialization/finalization symbols.
15713 extract_expsyms_cmds=
15714
15715 case $host_os in
15716 cygwin* | mingw* | pw32* | cegcc*)
15717 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15718 # When not using gcc, we currently assume that we are using
15719 # Microsoft Visual C++.
15720 if test "$GCC" != yes; then
15721 with_gnu_ld=no
15722 fi
15723 ;;
15724 interix*)
15725 # we just hope/assume this is gcc and not c89 (= MSVC++)
15726 with_gnu_ld=yes
15727 ;;
15728 openbsd*)
15729 with_gnu_ld=no
15730 ;;
15731 esac
15732
15733 ld_shlibs=yes
15734
15735 # On some targets, GNU ld is compatible enough with the native linker
15736 # that we're better off using the native interface for both.
15737 lt_use_gnu_ld_interface=no
15738 if test "$with_gnu_ld" = yes; then
15739 case $host_os in
15740 aix*)
15741 # The AIX port of GNU ld has always aspired to compatibility
15742 # with the native linker. However, as the warning in the GNU ld
15743 # block says, versions before 2.19.5* couldn't really create working
15744 # shared libraries, regardless of the interface used.
15745 case `$LD -v 2>&1` in
15746 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15747 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15748 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15749 *)
15750 lt_use_gnu_ld_interface=yes
15751 ;;
15752 esac
15753 ;;
15754 *)
15755 lt_use_gnu_ld_interface=yes
15756 ;;
15757 esac
15758 fi
15759
15760 if test "$lt_use_gnu_ld_interface" = yes; then
15761 # If archive_cmds runs LD, not CC, wlarc should be empty
15762 wlarc='${wl}'
15763
15764 # Set some defaults for GNU ld with shared library support. These
15765 # are reset later if shared libraries are not supported. Putting them
15766 # here allows them to be overridden if necessary.
15767 runpath_var=LD_RUN_PATH
15768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15769 export_dynamic_flag_spec='${wl}--export-dynamic'
15770 # ancient GNU ld didn't support --whole-archive et. al.
15771 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15772 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15773 else
15774 whole_archive_flag_spec=
15775 fi
15776 supports_anon_versioning=no
15777 case `$LD -v 2>&1` in
15778 *GNU\ gold*) supports_anon_versioning=yes ;;
15779 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15780 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15781 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15782 *\ 2.11.*) ;; # other 2.11 versions
15783 *) supports_anon_versioning=yes ;;
15784 esac
15785
15786 # See if GNU ld supports shared libraries.
15787 case $host_os in
15788 aix[3-9]*)
15789 # On AIX/PPC, the GNU linker is very broken
15790 if test "$host_cpu" != ia64; then
15791 ld_shlibs=no
15792 cat <<_LT_EOF 1>&2
15793
15794 *** Warning: the GNU linker, at least up to release 2.19, is reported
15795 *** to be unable to reliably create shared libraries on AIX.
15796 *** Therefore, libtool is disabling shared libraries support. If you
15797 *** really care for shared libraries, you may want to install binutils
15798 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15799 *** You will then need to restart the configuration process.
15800
15801 _LT_EOF
15802 fi
15803 ;;
15804
15805 amigaos*)
15806 case $host_cpu in
15807 powerpc)
15808 # see comment about AmigaOS4 .so support
15809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15810 archive_expsym_cmds=''
15811 ;;
15812 m68k)
15813 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)'
15814 hardcode_libdir_flag_spec='-L$libdir'
15815 hardcode_minus_L=yes
15816 ;;
15817 esac
15818 ;;
15819
15820 beos*)
15821 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15822 allow_undefined_flag=unsupported
15823 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15824 # support --undefined. This deserves some investigation. FIXME
15825 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15826 else
15827 ld_shlibs=no
15828 fi
15829 ;;
15830
15831 cygwin* | mingw* | pw32* | cegcc*)
15832 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15833 # as there is no search path for DLLs.
15834 hardcode_libdir_flag_spec='-L$libdir'
15835 export_dynamic_flag_spec='${wl}--export-all-symbols'
15836 allow_undefined_flag=unsupported
15837 always_export_symbols=no
15838 enable_shared_with_static_runtimes=yes
15839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15840
15841 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15843 # If the export-symbols file already is a .def file (1st line
15844 # is EXPORTS), use it as is; otherwise, prepend...
15845 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15846 cp $export_symbols $output_objdir/$soname.def;
15847 else
15848 echo EXPORTS > $output_objdir/$soname.def;
15849 cat $export_symbols >> $output_objdir/$soname.def;
15850 fi~
15851 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15852 else
15853 ld_shlibs=no
15854 fi
15855 ;;
15856
15857 haiku*)
15858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15859 link_all_deplibs=yes
15860 ;;
15861
15862 interix[3-9]*)
15863 hardcode_direct=no
15864 hardcode_shlibpath_var=no
15865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15866 export_dynamic_flag_spec='${wl}-E'
15867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15868 # Instead, shared libraries are loaded at an image base (0x10000000 by
15869 # default) and relocated if they conflict, which is a slow very memory
15870 # consuming and fragmenting process. To avoid this, we pick a random,
15871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15874 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'
15875 ;;
15876
15877 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15878 tmp_diet=no
15879 if test "$host_os" = linux-dietlibc; then
15880 case $cc_basename in
15881 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15882 esac
15883 fi
15884 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15885 && test "$tmp_diet" = no
15886 then
15887 tmp_addflag=
15888 tmp_sharedflag='-shared'
15889 case $cc_basename,$host_cpu in
15890 pgcc*) # Portland Group C compiler
15891 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'
15892 tmp_addflag=' $pic_flag'
15893 ;;
15894 pgf77* | pgf90* | pgf95* | pgfortran*)
15895 # Portland Group f77 and f90 compilers
15896 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'
15897 tmp_addflag=' $pic_flag -Mnomain' ;;
15898 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15899 tmp_addflag=' -i_dynamic' ;;
15900 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15901 tmp_addflag=' -i_dynamic -nofor_main' ;;
15902 ifc* | ifort*) # Intel Fortran compiler
15903 tmp_addflag=' -nofor_main' ;;
15904 lf95*) # Lahey Fortran 8.1
15905 whole_archive_flag_spec=
15906 tmp_sharedflag='--shared' ;;
15907 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15908 tmp_sharedflag='-qmkshrobj'
15909 tmp_addflag= ;;
15910 nvcc*) # Cuda Compiler Driver 2.2
15911 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'
15912 compiler_needs_object=yes
15913 ;;
15914 esac
15915 case `$CC -V 2>&1 | sed 5q` in
15916 *Sun\ C*) # Sun C 5.9
15917 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'
15918 compiler_needs_object=yes
15919 tmp_sharedflag='-G' ;;
15920 *Sun\ F*) # Sun Fortran 8.3
15921 tmp_sharedflag='-G' ;;
15922 esac
15923 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15924
15925 if test "x$supports_anon_versioning" = xyes; then
15926 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15927 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15928 echo "local: *; };" >> $output_objdir/$libname.ver~
15929 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15930 fi
15931
15932 case $cc_basename in
15933 xlf* | bgf* | bgxlf* | mpixlf*)
15934 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15935 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15936 hardcode_libdir_flag_spec=
15937 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15938 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15939 if test "x$supports_anon_versioning" = xyes; then
15940 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15942 echo "local: *; };" >> $output_objdir/$libname.ver~
15943 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15944 fi
15945 ;;
15946 esac
15947 else
15948 ld_shlibs=no
15949 fi
15950 ;;
15951
15952 netbsd*)
15953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15954 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15955 wlarc=
15956 else
15957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15959 fi
15960 ;;
15961
15962 solaris*)
15963 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15964 ld_shlibs=no
15965 cat <<_LT_EOF 1>&2
15966
15967 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15968 *** create shared libraries on Solaris systems. Therefore, libtool
15969 *** is disabling shared libraries support. We urge you to upgrade GNU
15970 *** binutils to release 2.9.1 or newer. Another option is to modify
15971 *** your PATH or compiler configuration so that the native linker is
15972 *** used, and then restart.
15973
15974 _LT_EOF
15975 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15978 else
15979 ld_shlibs=no
15980 fi
15981 ;;
15982
15983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15984 case `$LD -v 2>&1` in
15985 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15986 ld_shlibs=no
15987 cat <<_LT_EOF 1>&2
15988
15989 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15990 *** reliably create shared libraries on SCO systems. Therefore, libtool
15991 *** is disabling shared libraries support. We urge you to upgrade GNU
15992 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15993 *** your PATH or compiler configuration so that the native linker is
15994 *** used, and then restart.
15995
15996 _LT_EOF
15997 ;;
15998 *)
15999 # For security reasons, it is highly recommended that you always
16000 # use absolute paths for naming shared libraries, and exclude the
16001 # DT_RUNPATH tag from executables and libraries. But doing so
16002 # requires that you compile everything twice, which is a pain.
16003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16004 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16007 else
16008 ld_shlibs=no
16009 fi
16010 ;;
16011 esac
16012 ;;
16013
16014 sunos4*)
16015 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16016 wlarc=
16017 hardcode_direct=yes
16018 hardcode_shlibpath_var=no
16019 ;;
16020
16021 *)
16022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16025 else
16026 ld_shlibs=no
16027 fi
16028 ;;
16029 esac
16030
16031 if test "$ld_shlibs" = no; then
16032 runpath_var=
16033 hardcode_libdir_flag_spec=
16034 export_dynamic_flag_spec=
16035 whole_archive_flag_spec=
16036 fi
16037 else
16038 # PORTME fill in a description of your system's linker (not GNU ld)
16039 case $host_os in
16040 aix3*)
16041 allow_undefined_flag=unsupported
16042 always_export_symbols=yes
16043 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'
16044 # Note: this linker hardcodes the directories in LIBPATH if there
16045 # are no directories specified by -L.
16046 hardcode_minus_L=yes
16047 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16048 # Neither direct hardcoding nor static linking is supported with a
16049 # broken collect2.
16050 hardcode_direct=unsupported
16051 fi
16052 ;;
16053
16054 aix[4-9]*)
16055 if test "$host_cpu" = ia64; then
16056 # On IA64, the linker does run time linking by default, so we don't
16057 # have to do anything special.
16058 aix_use_runtimelinking=no
16059 exp_sym_flag='-Bexport'
16060 no_entry_flag=""
16061 else
16062 # If we're using GNU nm, then we don't want the "-C" option.
16063 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16064 # Also, AIX nm treats weak defined symbols like other global
16065 # defined symbols, whereas GNU nm marks them as "W".
16066 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16067 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'
16068 else
16069 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'
16070 fi
16071 aix_use_runtimelinking=no
16072
16073 # Test if we are trying to use run time linking or normal
16074 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16075 # need to do runtime linking.
16076 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16077 for ld_flag in $LDFLAGS; do
16078 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16079 aix_use_runtimelinking=yes
16080 break
16081 fi
16082 done
16083 ;;
16084 esac
16085
16086 exp_sym_flag='-bexport'
16087 no_entry_flag='-bnoentry'
16088 fi
16089
16090 # When large executables or shared objects are built, AIX ld can
16091 # have problems creating the table of contents. If linking a library
16092 # or program results in "error TOC overflow" add -mminimal-toc to
16093 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16094 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16095
16096 archive_cmds=''
16097 hardcode_direct=yes
16098 hardcode_direct_absolute=yes
16099 hardcode_libdir_separator=':'
16100 link_all_deplibs=yes
16101 file_list_spec='${wl}-f,'
16102
16103 if test "$GCC" = yes; then
16104 case $host_os in aix4.[012]|aix4.[012].*)
16105 # We only want to do this on AIX 4.2 and lower, the check
16106 # below for broken collect2 doesn't work under 4.3+
16107 collect2name=`${CC} -print-prog-name=collect2`
16108 if test -f "$collect2name" &&
16109 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16110 then
16111 # We have reworked collect2
16112 :
16113 else
16114 # We have old collect2
16115 hardcode_direct=unsupported
16116 # It fails to find uninstalled libraries when the uninstalled
16117 # path is not listed in the libpath. Setting hardcode_minus_L
16118 # to unsupported forces relinking
16119 hardcode_minus_L=yes
16120 hardcode_libdir_flag_spec='-L$libdir'
16121 hardcode_libdir_separator=
16122 fi
16123 ;;
16124 esac
16125 shared_flag='-shared'
16126 if test "$aix_use_runtimelinking" = yes; then
16127 shared_flag="$shared_flag "'${wl}-G'
16128 fi
16129 else
16130 # not using gcc
16131 if test "$host_cpu" = ia64; then
16132 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16133 # chokes on -Wl,-G. The following line is correct:
16134 shared_flag='-G'
16135 else
16136 if test "$aix_use_runtimelinking" = yes; then
16137 shared_flag='${wl}-G'
16138 else
16139 shared_flag='${wl}-bM:SRE'
16140 fi
16141 fi
16142 fi
16143
16144 export_dynamic_flag_spec='${wl}-bexpall'
16145 # It seems that -bexpall does not export symbols beginning with
16146 # underscore (_), so it is better to generate a list of symbols to export.
16147 always_export_symbols=yes
16148 if test "$aix_use_runtimelinking" = yes; then
16149 # Warning - without using the other runtime loading flags (-brtl),
16150 # -berok will link without error, but may produce a broken library.
16151 allow_undefined_flag='-berok'
16152 # Determine the default libpath from the value encoded in an
16153 # empty executable.
16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16156
16157 int
16158 main ()
16159 {
16160
16161 ;
16162 return 0;
16163 }
16164 _ACEOF
16165 if ac_fn_c_try_link "$LINENO"; then :
16166
16167 lt_aix_libpath_sed='
16168 /Import File Strings/,/^$/ {
16169 /^0/ {
16170 s/^0 *\(.*\)$/\1/
16171 p
16172 }
16173 }'
16174 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16175 # Check for a 64-bit object if we didn't find anything.
16176 if test -z "$aix_libpath"; then
16177 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16178 fi
16179 fi
16180 rm -f core conftest.err conftest.$ac_objext \
16181 conftest$ac_exeext conftest.$ac_ext
16182 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16183
16184 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16185 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"
16186 else
16187 if test "$host_cpu" = ia64; then
16188 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16189 allow_undefined_flag="-z nodefs"
16190 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"
16191 else
16192 # Determine the default libpath from the value encoded in an
16193 # empty executable.
16194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16196
16197 int
16198 main ()
16199 {
16200
16201 ;
16202 return 0;
16203 }
16204 _ACEOF
16205 if ac_fn_c_try_link "$LINENO"; then :
16206
16207 lt_aix_libpath_sed='
16208 /Import File Strings/,/^$/ {
16209 /^0/ {
16210 s/^0 *\(.*\)$/\1/
16211 p
16212 }
16213 }'
16214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16215 # Check for a 64-bit object if we didn't find anything.
16216 if test -z "$aix_libpath"; then
16217 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16218 fi
16219 fi
16220 rm -f core conftest.err conftest.$ac_objext \
16221 conftest$ac_exeext conftest.$ac_ext
16222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16223
16224 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16225 # Warning - without using the other run time loading flags,
16226 # -berok will link without error, but may produce a broken library.
16227 no_undefined_flag=' ${wl}-bernotok'
16228 allow_undefined_flag=' ${wl}-berok'
16229 if test "$with_gnu_ld" = yes; then
16230 # We only use this code for GNU lds that support --whole-archive.
16231 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16232 else
16233 # Exported symbols can be pulled into shared objects from archives
16234 whole_archive_flag_spec='$convenience'
16235 fi
16236 archive_cmds_need_lc=yes
16237 # This is similar to how AIX traditionally builds its shared libraries.
16238 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'
16239 fi
16240 fi
16241 ;;
16242
16243 amigaos*)
16244 case $host_cpu in
16245 powerpc)
16246 # see comment about AmigaOS4 .so support
16247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16248 archive_expsym_cmds=''
16249 ;;
16250 m68k)
16251 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)'
16252 hardcode_libdir_flag_spec='-L$libdir'
16253 hardcode_minus_L=yes
16254 ;;
16255 esac
16256 ;;
16257
16258 bsdi[45]*)
16259 export_dynamic_flag_spec=-rdynamic
16260 ;;
16261
16262 cygwin* | mingw* | pw32* | cegcc*)
16263 # When not using gcc, we currently assume that we are using
16264 # Microsoft Visual C++.
16265 # hardcode_libdir_flag_spec is actually meaningless, as there is
16266 # no search path for DLLs.
16267 hardcode_libdir_flag_spec=' '
16268 allow_undefined_flag=unsupported
16269 # Tell ltmain to make .lib files, not .a files.
16270 libext=lib
16271 # Tell ltmain to make .dll files, not .so files.
16272 shrext_cmds=".dll"
16273 # FIXME: Setting linknames here is a bad hack.
16274 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16275 # The linker will automatically build a .lib file if we build a DLL.
16276 old_archive_from_new_cmds='true'
16277 # FIXME: Should let the user specify the lib program.
16278 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16279 fix_srcfile_path='`cygpath -w "$srcfile"`'
16280 enable_shared_with_static_runtimes=yes
16281 ;;
16282
16283 darwin* | rhapsody*)
16284
16285
16286 archive_cmds_need_lc=no
16287 hardcode_direct=no
16288 hardcode_automatic=yes
16289 hardcode_shlibpath_var=unsupported
16290 if test "$lt_cv_ld_force_load" = "yes"; then
16291 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\"`'
16292 else
16293 whole_archive_flag_spec=''
16294 fi
16295 link_all_deplibs=yes
16296 allow_undefined_flag="$_lt_dar_allow_undefined"
16297 case $cc_basename in
16298 ifort*) _lt_dar_can_shared=yes ;;
16299 *) _lt_dar_can_shared=$GCC ;;
16300 esac
16301 if test "$_lt_dar_can_shared" = "yes"; then
16302 output_verbose_link_cmd=func_echo_all
16303 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16304 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16305 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}"
16306 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}"
16307
16308 else
16309 ld_shlibs=no
16310 fi
16311
16312 ;;
16313
16314 dgux*)
16315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16316 hardcode_libdir_flag_spec='-L$libdir'
16317 hardcode_shlibpath_var=no
16318 ;;
16319
16320 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16321 # support. Future versions do this automatically, but an explicit c++rt0.o
16322 # does not break anything, and helps significantly (at the cost of a little
16323 # extra space).
16324 freebsd2.2*)
16325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16326 hardcode_libdir_flag_spec='-R$libdir'
16327 hardcode_direct=yes
16328 hardcode_shlibpath_var=no
16329 ;;
16330
16331 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16332 freebsd2.*)
16333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16334 hardcode_direct=yes
16335 hardcode_minus_L=yes
16336 hardcode_shlibpath_var=no
16337 ;;
16338
16339 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16340 freebsd* | dragonfly*)
16341 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16342 hardcode_libdir_flag_spec='-R$libdir'
16343 hardcode_direct=yes
16344 hardcode_shlibpath_var=no
16345 ;;
16346
16347 hpux9*)
16348 if test "$GCC" = yes; then
16349 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'
16350 else
16351 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'
16352 fi
16353 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16354 hardcode_libdir_separator=:
16355 hardcode_direct=yes
16356
16357 # hardcode_minus_L: Not really in the search PATH,
16358 # but as the default location of the library.
16359 hardcode_minus_L=yes
16360 export_dynamic_flag_spec='${wl}-E'
16361 ;;
16362
16363 hpux10*)
16364 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16365 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16366 else
16367 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16368 fi
16369 if test "$with_gnu_ld" = no; then
16370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16371 hardcode_libdir_flag_spec_ld='+b $libdir'
16372 hardcode_libdir_separator=:
16373 hardcode_direct=yes
16374 hardcode_direct_absolute=yes
16375 export_dynamic_flag_spec='${wl}-E'
16376 # hardcode_minus_L: Not really in the search PATH,
16377 # but as the default location of the library.
16378 hardcode_minus_L=yes
16379 fi
16380 ;;
16381
16382 hpux11*)
16383 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16384 case $host_cpu in
16385 hppa*64*)
16386 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16387 ;;
16388 ia64*)
16389 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16390 ;;
16391 *)
16392 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16393 ;;
16394 esac
16395 else
16396 case $host_cpu in
16397 hppa*64*)
16398 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16399 ;;
16400 ia64*)
16401 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16402 ;;
16403 *)
16404
16405 # Older versions of the 11.00 compiler do not understand -b yet
16406 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16408 $as_echo_n "checking if $CC understands -b... " >&6; }
16409 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16410 $as_echo_n "(cached) " >&6
16411 else
16412 lt_cv_prog_compiler__b=no
16413 save_LDFLAGS="$LDFLAGS"
16414 LDFLAGS="$LDFLAGS -b"
16415 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16416 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16417 # The linker can only warn and ignore the option if not recognized
16418 # So say no if there are warnings
16419 if test -s conftest.err; then
16420 # Append any errors to the config.log.
16421 cat conftest.err 1>&5
16422 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16424 if diff conftest.exp conftest.er2 >/dev/null; then
16425 lt_cv_prog_compiler__b=yes
16426 fi
16427 else
16428 lt_cv_prog_compiler__b=yes
16429 fi
16430 fi
16431 $RM -r conftest*
16432 LDFLAGS="$save_LDFLAGS"
16433
16434 fi
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16436 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16437
16438 if test x"$lt_cv_prog_compiler__b" = xyes; then
16439 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16440 else
16441 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16442 fi
16443
16444 ;;
16445 esac
16446 fi
16447 if test "$with_gnu_ld" = no; then
16448 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16449 hardcode_libdir_separator=:
16450
16451 case $host_cpu in
16452 hppa*64*|ia64*)
16453 hardcode_direct=no
16454 hardcode_shlibpath_var=no
16455 ;;
16456 *)
16457 hardcode_direct=yes
16458 hardcode_direct_absolute=yes
16459 export_dynamic_flag_spec='${wl}-E'
16460
16461 # hardcode_minus_L: Not really in the search PATH,
16462 # but as the default location of the library.
16463 hardcode_minus_L=yes
16464 ;;
16465 esac
16466 fi
16467 ;;
16468
16469 irix5* | irix6* | nonstopux*)
16470 if test "$GCC" = yes; then
16471 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'
16472 # Try to use the -exported_symbol ld option, if it does not
16473 # work, assume that -exports_file does not work either and
16474 # implicitly export all symbols.
16475 save_LDFLAGS="$LDFLAGS"
16476 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16479 int foo(void) {}
16480 _ACEOF
16481 if ac_fn_c_try_link "$LINENO"; then :
16482 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'
16483
16484 fi
16485 rm -f core conftest.err conftest.$ac_objext \
16486 conftest$ac_exeext conftest.$ac_ext
16487 LDFLAGS="$save_LDFLAGS"
16488 else
16489 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'
16490 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'
16491 fi
16492 archive_cmds_need_lc='no'
16493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16494 hardcode_libdir_separator=:
16495 inherit_rpath=yes
16496 link_all_deplibs=yes
16497 ;;
16498
16499 netbsd*)
16500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16501 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16502 else
16503 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16504 fi
16505 hardcode_libdir_flag_spec='-R$libdir'
16506 hardcode_direct=yes
16507 hardcode_shlibpath_var=no
16508 ;;
16509
16510 newsos6)
16511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_direct=yes
16513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16514 hardcode_libdir_separator=:
16515 hardcode_shlibpath_var=no
16516 ;;
16517
16518 *nto* | *qnx*)
16519 ;;
16520
16521 openbsd*)
16522 if test -f /usr/libexec/ld.so; then
16523 hardcode_direct=yes
16524 hardcode_shlibpath_var=no
16525 hardcode_direct_absolute=yes
16526 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16527 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16528 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16529 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16530 export_dynamic_flag_spec='${wl}-E'
16531 else
16532 case $host_os in
16533 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16535 hardcode_libdir_flag_spec='-R$libdir'
16536 ;;
16537 *)
16538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16540 ;;
16541 esac
16542 fi
16543 else
16544 ld_shlibs=no
16545 fi
16546 ;;
16547
16548 os2*)
16549 hardcode_libdir_flag_spec='-L$libdir'
16550 hardcode_minus_L=yes
16551 allow_undefined_flag=unsupported
16552 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'
16553 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16554 ;;
16555
16556 osf3*)
16557 if test "$GCC" = yes; then
16558 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16559 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'
16560 else
16561 allow_undefined_flag=' -expect_unresolved \*'
16562 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'
16563 fi
16564 archive_cmds_need_lc='no'
16565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16566 hardcode_libdir_separator=:
16567 ;;
16568
16569 osf4* | osf5*) # as osf3* with the addition of -msym flag
16570 if test "$GCC" = yes; then
16571 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16572 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'
16573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16574 else
16575 allow_undefined_flag=' -expect_unresolved \*'
16576 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'
16577 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~
16578 $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'
16579
16580 # Both c and cxx compiler support -rpath directly
16581 hardcode_libdir_flag_spec='-rpath $libdir'
16582 fi
16583 archive_cmds_need_lc='no'
16584 hardcode_libdir_separator=:
16585 ;;
16586
16587 solaris*)
16588 no_undefined_flag=' -z defs'
16589 if test "$GCC" = yes; then
16590 wlarc='${wl}'
16591 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16593 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16594 else
16595 case `$CC -V 2>&1` in
16596 *"Compilers 5.0"*)
16597 wlarc=''
16598 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16600 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16601 ;;
16602 *)
16603 wlarc='${wl}'
16604 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16605 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16606 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16607 ;;
16608 esac
16609 fi
16610 hardcode_libdir_flag_spec='-R$libdir'
16611 hardcode_shlibpath_var=no
16612 case $host_os in
16613 solaris2.[0-5] | solaris2.[0-5].*) ;;
16614 *)
16615 # The compiler driver will combine and reorder linker options,
16616 # but understands `-z linker_flag'. GCC discards it without `$wl',
16617 # but is careful enough not to reorder.
16618 # Supported since Solaris 2.6 (maybe 2.5.1?)
16619 if test "$GCC" = yes; then
16620 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16621 else
16622 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16623 fi
16624 ;;
16625 esac
16626 link_all_deplibs=yes
16627 ;;
16628
16629 sunos4*)
16630 if test "x$host_vendor" = xsequent; then
16631 # Use $CC to link under sequent, because it throws in some extra .o
16632 # files that make .init and .fini sections work.
16633 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16634 else
16635 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16636 fi
16637 hardcode_libdir_flag_spec='-L$libdir'
16638 hardcode_direct=yes
16639 hardcode_minus_L=yes
16640 hardcode_shlibpath_var=no
16641 ;;
16642
16643 sysv4)
16644 case $host_vendor in
16645 sni)
16646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16647 hardcode_direct=yes # is this really true???
16648 ;;
16649 siemens)
16650 ## LD is ld it makes a PLAMLIB
16651 ## CC just makes a GrossModule.
16652 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16653 reload_cmds='$CC -r -o $output$reload_objs'
16654 hardcode_direct=no
16655 ;;
16656 motorola)
16657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16659 ;;
16660 esac
16661 runpath_var='LD_RUN_PATH'
16662 hardcode_shlibpath_var=no
16663 ;;
16664
16665 sysv4.3*)
16666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16667 hardcode_shlibpath_var=no
16668 export_dynamic_flag_spec='-Bexport'
16669 ;;
16670
16671 sysv4*MP*)
16672 if test -d /usr/nec; then
16673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16674 hardcode_shlibpath_var=no
16675 runpath_var=LD_RUN_PATH
16676 hardcode_runpath_var=yes
16677 ld_shlibs=yes
16678 fi
16679 ;;
16680
16681 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16682 no_undefined_flag='${wl}-z,text'
16683 archive_cmds_need_lc=no
16684 hardcode_shlibpath_var=no
16685 runpath_var='LD_RUN_PATH'
16686
16687 if test "$GCC" = yes; then
16688 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16689 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16690 else
16691 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16692 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16693 fi
16694 ;;
16695
16696 sysv5* | sco3.2v5* | sco5v6*)
16697 # Note: We can NOT use -z defs as we might desire, because we do not
16698 # link with -lc, and that would cause any symbols used from libc to
16699 # always be unresolved, which means just about no library would
16700 # ever link correctly. If we're not using GNU ld we use -z text
16701 # though, which does catch some bad symbols but isn't as heavy-handed
16702 # as -z defs.
16703 no_undefined_flag='${wl}-z,text'
16704 allow_undefined_flag='${wl}-z,nodefs'
16705 archive_cmds_need_lc=no
16706 hardcode_shlibpath_var=no
16707 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16708 hardcode_libdir_separator=':'
16709 link_all_deplibs=yes
16710 export_dynamic_flag_spec='${wl}-Bexport'
16711 runpath_var='LD_RUN_PATH'
16712
16713 if test "$GCC" = yes; then
16714 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16715 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16716 else
16717 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16718 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16719 fi
16720 ;;
16721
16722 uts4*)
16723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16724 hardcode_libdir_flag_spec='-L$libdir'
16725 hardcode_shlibpath_var=no
16726 ;;
16727
16728 *)
16729 ld_shlibs=no
16730 ;;
16731 esac
16732
16733 if test x$host_vendor = xsni; then
16734 case $host in
16735 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16736 export_dynamic_flag_spec='${wl}-Blargedynsym'
16737 ;;
16738 esac
16739 fi
16740 fi
16741
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16743 $as_echo "$ld_shlibs" >&6; }
16744 test "$ld_shlibs" = no && can_build_shared=no
16745
16746 with_gnu_ld=$with_gnu_ld
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762 #
16763 # Do we need to explicitly link libc?
16764 #
16765 case "x$archive_cmds_need_lc" in
16766 x|xyes)
16767 # Assume -lc should be added
16768 archive_cmds_need_lc=yes
16769
16770 if test "$enable_shared" = yes && test "$GCC" = yes; then
16771 case $archive_cmds in
16772 *'~'*)
16773 # FIXME: we may have to deal with multi-command sequences.
16774 ;;
16775 '$CC '*)
16776 # Test whether the compiler implicitly links with -lc since on some
16777 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16778 # to ld, don't add -lc before -lgcc.
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16780 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16781 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16782 $as_echo_n "(cached) " >&6
16783 else
16784 $RM conftest*
16785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16786
16787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16788 (eval $ac_compile) 2>&5
16789 ac_status=$?
16790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16791 test $ac_status = 0; } 2>conftest.err; then
16792 soname=conftest
16793 lib=conftest
16794 libobjs=conftest.$ac_objext
16795 deplibs=
16796 wl=$lt_prog_compiler_wl
16797 pic_flag=$lt_prog_compiler_pic
16798 compiler_flags=-v
16799 linker_flags=-v
16800 verstring=
16801 output_objdir=.
16802 libname=conftest
16803 lt_save_allow_undefined_flag=$allow_undefined_flag
16804 allow_undefined_flag=
16805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16806 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16807 ac_status=$?
16808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16809 test $ac_status = 0; }
16810 then
16811 lt_cv_archive_cmds_need_lc=no
16812 else
16813 lt_cv_archive_cmds_need_lc=yes
16814 fi
16815 allow_undefined_flag=$lt_save_allow_undefined_flag
16816 else
16817 cat conftest.err 1>&5
16818 fi
16819 $RM conftest*
16820
16821 fi
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16823 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16824 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16825 ;;
16826 esac
16827 fi
16828 ;;
16829 esac
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16988 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16989
16990 if test "$GCC" = yes; then
16991 case $host_os in
16992 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16993 *) lt_awk_arg="/^libraries:/" ;;
16994 esac
16995 case $host_os in
16996 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16997 *) lt_sed_strip_eq="s,=/,/,g" ;;
16998 esac
16999 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17000 case $lt_search_path_spec in
17001 *\;*)
17002 # if the path contains ";" then we assume it to be the separator
17003 # otherwise default to the standard path separator (i.e. ":") - it is
17004 # assumed that no part of a normal pathname contains ";" but that should
17005 # okay in the real world where ";" in dirpaths is itself problematic.
17006 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17007 ;;
17008 *)
17009 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17010 ;;
17011 esac
17012 # Ok, now we have the path, separated by spaces, we can step through it
17013 # and add multilib dir if necessary.
17014 lt_tmp_lt_search_path_spec=
17015 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17016 for lt_sys_path in $lt_search_path_spec; do
17017 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17018 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17019 else
17020 test -d "$lt_sys_path" && \
17021 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17022 fi
17023 done
17024 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17025 BEGIN {RS=" "; FS="/|\n";} {
17026 lt_foo="";
17027 lt_count=0;
17028 for (lt_i = NF; lt_i > 0; lt_i--) {
17029 if ($lt_i != "" && $lt_i != ".") {
17030 if ($lt_i == "..") {
17031 lt_count++;
17032 } else {
17033 if (lt_count == 0) {
17034 lt_foo="/" $lt_i lt_foo;
17035 } else {
17036 lt_count--;
17037 }
17038 }
17039 }
17040 }
17041 if (lt_foo != "") { lt_freq[lt_foo]++; }
17042 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17043 }'`
17044 # AWK program above erroneously prepends '/' to C:/dos/paths
17045 # for these hosts.
17046 case $host_os in
17047 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17048 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17049 esac
17050 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17051 else
17052 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17053 fi
17054 library_names_spec=
17055 libname_spec='lib$name'
17056 soname_spec=
17057 shrext_cmds=".so"
17058 postinstall_cmds=
17059 postuninstall_cmds=
17060 finish_cmds=
17061 finish_eval=
17062 shlibpath_var=
17063 shlibpath_overrides_runpath=unknown
17064 version_type=none
17065 dynamic_linker="$host_os ld.so"
17066 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17067 need_lib_prefix=unknown
17068 hardcode_into_libs=no
17069
17070 # when you set need_version to no, make sure it does not cause -set_version
17071 # flags to be left without arguments
17072 need_version=unknown
17073
17074 case $host_os in
17075 aix3*)
17076 version_type=linux
17077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17078 shlibpath_var=LIBPATH
17079
17080 # AIX 3 has no versioning support, so we append a major version to the name.
17081 soname_spec='${libname}${release}${shared_ext}$major'
17082 ;;
17083
17084 aix[4-9]*)
17085 version_type=linux
17086 need_lib_prefix=no
17087 need_version=no
17088 hardcode_into_libs=yes
17089 if test "$host_cpu" = ia64; then
17090 # AIX 5 supports IA64
17091 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17092 shlibpath_var=LD_LIBRARY_PATH
17093 else
17094 # With GCC up to 2.95.x, collect2 would create an import file
17095 # for dependence libraries. The import file would start with
17096 # the line `#! .'. This would cause the generated library to
17097 # depend on `.', always an invalid library. This was fixed in
17098 # development snapshots of GCC prior to 3.0.
17099 case $host_os in
17100 aix4 | aix4.[01] | aix4.[01].*)
17101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17102 echo ' yes '
17103 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17104 :
17105 else
17106 can_build_shared=no
17107 fi
17108 ;;
17109 esac
17110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17111 # soname into executable. Probably we can add versioning support to
17112 # collect2, so additional links can be useful in future.
17113 if test "$aix_use_runtimelinking" = yes; then
17114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17115 # instead of lib<name>.a to let people know that these are not
17116 # typical AIX shared libraries.
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 else
17119 # We preserve .a as extension for shared libraries through AIX4.2
17120 # and later when we are not doing run time linking.
17121 library_names_spec='${libname}${release}.a $libname.a'
17122 soname_spec='${libname}${release}${shared_ext}$major'
17123 fi
17124 shlibpath_var=LIBPATH
17125 fi
17126 ;;
17127
17128 amigaos*)
17129 case $host_cpu in
17130 powerpc)
17131 # Since July 2007 AmigaOS4 officially supports .so libraries.
17132 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134 ;;
17135 m68k)
17136 library_names_spec='$libname.ixlibrary $libname.a'
17137 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17138 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'
17139 ;;
17140 esac
17141 ;;
17142
17143 beos*)
17144 library_names_spec='${libname}${shared_ext}'
17145 dynamic_linker="$host_os ld.so"
17146 shlibpath_var=LIBRARY_PATH
17147 ;;
17148
17149 bsdi[45]*)
17150 version_type=linux
17151 need_version=no
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17157 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17158 # the default ld.so.conf also contains /usr/contrib/lib and
17159 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17160 # libtool to hard-code these into programs
17161 ;;
17162
17163 cygwin* | mingw* | pw32* | cegcc*)
17164 version_type=windows
17165 shrext_cmds=".dll"
17166 need_version=no
17167 need_lib_prefix=no
17168
17169 case $GCC,$host_os in
17170 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17171 library_names_spec='$libname.dll.a'
17172 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17173 postinstall_cmds='base_file=`basename \${file}`~
17174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17175 dldir=$destdir/`dirname \$dlpath`~
17176 test -d \$dldir || mkdir -p \$dldir~
17177 $install_prog $dir/$dlname \$dldir/$dlname~
17178 chmod a+x \$dldir/$dlname~
17179 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17180 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17181 fi'
17182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17183 dlpath=$dir/\$dldll~
17184 $RM \$dlpath'
17185 shlibpath_overrides_runpath=yes
17186
17187 case $host_os in
17188 cygwin*)
17189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17191
17192 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17193 ;;
17194 mingw* | cegcc*)
17195 # MinGW DLLs use traditional 'lib' prefix
17196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17197 ;;
17198 pw32*)
17199 # pw32 DLLs use 'pw' prefix rather than 'lib'
17200 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17201 ;;
17202 esac
17203 ;;
17204
17205 *)
17206 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17207 ;;
17208 esac
17209 dynamic_linker='Win32 ld.exe'
17210 # FIXME: first we should search . and the directory the executable is in
17211 shlibpath_var=PATH
17212 ;;
17213
17214 darwin* | rhapsody*)
17215 dynamic_linker="$host_os dyld"
17216 version_type=darwin
17217 need_lib_prefix=no
17218 need_version=no
17219 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17220 soname_spec='${libname}${release}${major}$shared_ext'
17221 shlibpath_overrides_runpath=yes
17222 shlibpath_var=DYLD_LIBRARY_PATH
17223 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17224
17225 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17226 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17227 ;;
17228
17229 dgux*)
17230 version_type=linux
17231 need_lib_prefix=no
17232 need_version=no
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 shlibpath_var=LD_LIBRARY_PATH
17236 ;;
17237
17238 freebsd* | dragonfly*)
17239 # DragonFly does not have aout. When/if they implement a new
17240 # versioning mechanism, adjust this.
17241 if test -x /usr/bin/objformat; then
17242 objformat=`/usr/bin/objformat`
17243 else
17244 case $host_os in
17245 freebsd[23].*) objformat=aout ;;
17246 *) objformat=elf ;;
17247 esac
17248 fi
17249 version_type=freebsd-$objformat
17250 case $version_type in
17251 freebsd-elf*)
17252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17253 need_version=no
17254 need_lib_prefix=no
17255 ;;
17256 freebsd-*)
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17258 need_version=yes
17259 ;;
17260 esac
17261 shlibpath_var=LD_LIBRARY_PATH
17262 case $host_os in
17263 freebsd2.*)
17264 shlibpath_overrides_runpath=yes
17265 ;;
17266 freebsd3.[01]* | freebsdelf3.[01]*)
17267 shlibpath_overrides_runpath=yes
17268 hardcode_into_libs=yes
17269 ;;
17270 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17271 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17272 shlibpath_overrides_runpath=no
17273 hardcode_into_libs=yes
17274 ;;
17275 *) # from 4.6 on, and DragonFly
17276 shlibpath_overrides_runpath=yes
17277 hardcode_into_libs=yes
17278 ;;
17279 esac
17280 ;;
17281
17282 gnu*)
17283 version_type=linux
17284 need_lib_prefix=no
17285 need_version=no
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 hardcode_into_libs=yes
17290 ;;
17291
17292 haiku*)
17293 version_type=linux
17294 need_lib_prefix=no
17295 need_version=no
17296 dynamic_linker="$host_os runtime_loader"
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 shlibpath_var=LIBRARY_PATH
17300 shlibpath_overrides_runpath=yes
17301 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17302 hardcode_into_libs=yes
17303 ;;
17304
17305 hpux9* | hpux10* | hpux11*)
17306 # Give a soname corresponding to the major version so that dld.sl refuses to
17307 # link against other versions.
17308 version_type=sunos
17309 need_lib_prefix=no
17310 need_version=no
17311 case $host_cpu in
17312 ia64*)
17313 shrext_cmds='.so'
17314 hardcode_into_libs=yes
17315 dynamic_linker="$host_os dld.so"
17316 shlibpath_var=LD_LIBRARY_PATH
17317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319 soname_spec='${libname}${release}${shared_ext}$major'
17320 if test "X$HPUX_IA64_MODE" = X32; then
17321 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17322 else
17323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17324 fi
17325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17326 ;;
17327 hppa*64*)
17328 shrext_cmds='.sl'
17329 hardcode_into_libs=yes
17330 dynamic_linker="$host_os dld.sl"
17331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334 soname_spec='${libname}${release}${shared_ext}$major'
17335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17337 ;;
17338 *)
17339 shrext_cmds='.sl'
17340 dynamic_linker="$host_os dld.sl"
17341 shlibpath_var=SHLIB_PATH
17342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344 soname_spec='${libname}${release}${shared_ext}$major'
17345 ;;
17346 esac
17347 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17348 postinstall_cmds='chmod 555 $lib'
17349 # or fails outright, so override atomically:
17350 install_override_mode=555
17351 ;;
17352
17353 interix[3-9]*)
17354 version_type=linux
17355 need_lib_prefix=no
17356 need_version=no
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17358 soname_spec='${libname}${release}${shared_ext}$major'
17359 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17360 shlibpath_var=LD_LIBRARY_PATH
17361 shlibpath_overrides_runpath=no
17362 hardcode_into_libs=yes
17363 ;;
17364
17365 irix5* | irix6* | nonstopux*)
17366 case $host_os in
17367 nonstopux*) version_type=nonstopux ;;
17368 *)
17369 if test "$lt_cv_prog_gnu_ld" = yes; then
17370 version_type=linux
17371 else
17372 version_type=irix
17373 fi ;;
17374 esac
17375 need_lib_prefix=no
17376 need_version=no
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17379 case $host_os in
17380 irix5* | nonstopux*)
17381 libsuff= shlibsuff=
17382 ;;
17383 *)
17384 case $LD in # libtool.m4 will add one of these switches to LD
17385 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17386 libsuff= shlibsuff= libmagic=32-bit;;
17387 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17388 libsuff=32 shlibsuff=N32 libmagic=N32;;
17389 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17390 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17391 *) libsuff= shlibsuff= libmagic=never-match;;
17392 esac
17393 ;;
17394 esac
17395 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17396 shlibpath_overrides_runpath=no
17397 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17398 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17399 hardcode_into_libs=yes
17400 ;;
17401
17402 # No shared lib support for Linux oldld, aout, or coff.
17403 linux*oldld* | linux*aout* | linux*coff*)
17404 dynamic_linker=no
17405 ;;
17406
17407 # This must be Linux ELF.
17408 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17409 version_type=linux
17410 need_lib_prefix=no
17411 need_version=no
17412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17413 soname_spec='${libname}${release}${shared_ext}$major'
17414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17415 shlibpath_var=LD_LIBRARY_PATH
17416 shlibpath_overrides_runpath=no
17417
17418 # Some binutils ld are patched to set DT_RUNPATH
17419 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17420 $as_echo_n "(cached) " >&6
17421 else
17422 lt_cv_shlibpath_overrides_runpath=no
17423 save_LDFLAGS=$LDFLAGS
17424 save_libdir=$libdir
17425 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17426 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h. */
17429
17430 int
17431 main ()
17432 {
17433
17434 ;
17435 return 0;
17436 }
17437 _ACEOF
17438 if ac_fn_c_try_link "$LINENO"; then :
17439 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17440 lt_cv_shlibpath_overrides_runpath=yes
17441 fi
17442 fi
17443 rm -f core conftest.err conftest.$ac_objext \
17444 conftest$ac_exeext conftest.$ac_ext
17445 LDFLAGS=$save_LDFLAGS
17446 libdir=$save_libdir
17447
17448 fi
17449
17450 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17451
17452 # This implies no fast_install, which is unacceptable.
17453 # Some rework will be needed to allow for fast_install
17454 # before this can be enabled.
17455 hardcode_into_libs=yes
17456
17457 # Append ld.so.conf contents to the search path
17458 if test -f /etc/ld.so.conf; then
17459 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' ' '`
17460 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17461 fi
17462
17463 # We used to test for /lib/ld.so.1 and disable shared libraries on
17464 # powerpc, because MkLinux only supported shared libraries with the
17465 # GNU dynamic linker. Since this was broken with cross compilers,
17466 # most powerpc-linux boxes support dynamic linking these days and
17467 # people can always --disable-shared, the test was removed, and we
17468 # assume the GNU/Linux dynamic linker is in use.
17469 dynamic_linker='GNU/Linux ld.so'
17470 ;;
17471
17472 netbsd*)
17473 version_type=sunos
17474 need_lib_prefix=no
17475 need_version=no
17476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17479 dynamic_linker='NetBSD (a.out) ld.so'
17480 else
17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17482 soname_spec='${libname}${release}${shared_ext}$major'
17483 dynamic_linker='NetBSD ld.elf_so'
17484 fi
17485 shlibpath_var=LD_LIBRARY_PATH
17486 shlibpath_overrides_runpath=yes
17487 hardcode_into_libs=yes
17488 ;;
17489
17490 newsos6)
17491 version_type=linux
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17493 shlibpath_var=LD_LIBRARY_PATH
17494 shlibpath_overrides_runpath=yes
17495 ;;
17496
17497 *nto* | *qnx*)
17498 version_type=qnx
17499 need_lib_prefix=no
17500 need_version=no
17501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502 soname_spec='${libname}${release}${shared_ext}$major'
17503 shlibpath_var=LD_LIBRARY_PATH
17504 shlibpath_overrides_runpath=no
17505 hardcode_into_libs=yes
17506 dynamic_linker='ldqnx.so'
17507 ;;
17508
17509 openbsd*)
17510 version_type=sunos
17511 sys_lib_dlsearch_path_spec="/usr/lib"
17512 need_lib_prefix=no
17513 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17514 case $host_os in
17515 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17516 *) need_version=no ;;
17517 esac
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17520 shlibpath_var=LD_LIBRARY_PATH
17521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17522 case $host_os in
17523 openbsd2.[89] | openbsd2.[89].*)
17524 shlibpath_overrides_runpath=no
17525 ;;
17526 *)
17527 shlibpath_overrides_runpath=yes
17528 ;;
17529 esac
17530 else
17531 shlibpath_overrides_runpath=yes
17532 fi
17533 ;;
17534
17535 os2*)
17536 libname_spec='$name'
17537 shrext_cmds=".dll"
17538 need_lib_prefix=no
17539 library_names_spec='$libname${shared_ext} $libname.a'
17540 dynamic_linker='OS/2 ld.exe'
17541 shlibpath_var=LIBPATH
17542 ;;
17543
17544 osf3* | osf4* | osf5*)
17545 version_type=osf
17546 need_lib_prefix=no
17547 need_version=no
17548 soname_spec='${libname}${release}${shared_ext}$major'
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550 shlibpath_var=LD_LIBRARY_PATH
17551 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17552 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17553 ;;
17554
17555 rdos*)
17556 dynamic_linker=no
17557 ;;
17558
17559 solaris*)
17560 version_type=linux
17561 need_lib_prefix=no
17562 need_version=no
17563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17564 soname_spec='${libname}${release}${shared_ext}$major'
17565 shlibpath_var=LD_LIBRARY_PATH
17566 shlibpath_overrides_runpath=yes
17567 hardcode_into_libs=yes
17568 # ldd complains unless libraries are executable
17569 postinstall_cmds='chmod +x $lib'
17570 ;;
17571
17572 sunos4*)
17573 version_type=sunos
17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17575 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17576 shlibpath_var=LD_LIBRARY_PATH
17577 shlibpath_overrides_runpath=yes
17578 if test "$with_gnu_ld" = yes; then
17579 need_lib_prefix=no
17580 fi
17581 need_version=yes
17582 ;;
17583
17584 sysv4 | sysv4.3*)
17585 version_type=linux
17586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17587 soname_spec='${libname}${release}${shared_ext}$major'
17588 shlibpath_var=LD_LIBRARY_PATH
17589 case $host_vendor in
17590 sni)
17591 shlibpath_overrides_runpath=no
17592 need_lib_prefix=no
17593 runpath_var=LD_RUN_PATH
17594 ;;
17595 siemens)
17596 need_lib_prefix=no
17597 ;;
17598 motorola)
17599 need_lib_prefix=no
17600 need_version=no
17601 shlibpath_overrides_runpath=no
17602 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17603 ;;
17604 esac
17605 ;;
17606
17607 sysv4*MP*)
17608 if test -d /usr/nec ;then
17609 version_type=linux
17610 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17611 soname_spec='$libname${shared_ext}.$major'
17612 shlibpath_var=LD_LIBRARY_PATH
17613 fi
17614 ;;
17615
17616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17617 version_type=freebsd-elf
17618 need_lib_prefix=no
17619 need_version=no
17620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17621 soname_spec='${libname}${release}${shared_ext}$major'
17622 shlibpath_var=LD_LIBRARY_PATH
17623 shlibpath_overrides_runpath=yes
17624 hardcode_into_libs=yes
17625 if test "$with_gnu_ld" = yes; then
17626 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17627 else
17628 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17629 case $host_os in
17630 sco3.2v5*)
17631 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17632 ;;
17633 esac
17634 fi
17635 sys_lib_dlsearch_path_spec='/usr/lib'
17636 ;;
17637
17638 tpf*)
17639 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17640 version_type=linux
17641 need_lib_prefix=no
17642 need_version=no
17643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644 shlibpath_var=LD_LIBRARY_PATH
17645 shlibpath_overrides_runpath=no
17646 hardcode_into_libs=yes
17647 ;;
17648
17649 uts4*)
17650 version_type=linux
17651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652 soname_spec='${libname}${release}${shared_ext}$major'
17653 shlibpath_var=LD_LIBRARY_PATH
17654 ;;
17655
17656 *)
17657 dynamic_linker=no
17658 ;;
17659 esac
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17661 $as_echo "$dynamic_linker" >&6; }
17662 test "$dynamic_linker" = no && can_build_shared=no
17663
17664 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17665 if test "$GCC" = yes; then
17666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17667 fi
17668
17669 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17670 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17671 fi
17672 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17673 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17674 fi
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17768 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17769 hardcode_action=
17770 if test -n "$hardcode_libdir_flag_spec" ||
17771 test -n "$runpath_var" ||
17772 test "X$hardcode_automatic" = "Xyes" ; then
17773
17774 # We can hardcode non-existent directories.
17775 if test "$hardcode_direct" != no &&
17776 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17777 # have to relink, otherwise we might link with an installed library
17778 # when we should be linking with a yet-to-be-installed one
17779 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17780 test "$hardcode_minus_L" != no; then
17781 # Linking always hardcodes the temporary library directory.
17782 hardcode_action=relink
17783 else
17784 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17785 hardcode_action=immediate
17786 fi
17787 else
17788 # We cannot hardcode anything, or else we can only hardcode existing
17789 # directories.
17790 hardcode_action=unsupported
17791 fi
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17793 $as_echo "$hardcode_action" >&6; }
17794
17795 if test "$hardcode_action" = relink ||
17796 test "$inherit_rpath" = yes; then
17797 # Fast installation is not supported
17798 enable_fast_install=no
17799 elif test "$shlibpath_overrides_runpath" = yes ||
17800 test "$enable_shared" = no; then
17801 # Fast installation is not necessary
17802 enable_fast_install=needless
17803 fi
17804
17805
17806
17807
17808
17809
17810 if test "x$enable_dlopen" != xyes; then
17811 enable_dlopen=unknown
17812 enable_dlopen_self=unknown
17813 enable_dlopen_self_static=unknown
17814 else
17815 lt_cv_dlopen=no
17816 lt_cv_dlopen_libs=
17817
17818 case $host_os in
17819 beos*)
17820 lt_cv_dlopen="load_add_on"
17821 lt_cv_dlopen_libs=
17822 lt_cv_dlopen_self=yes
17823 ;;
17824
17825 mingw* | pw32* | cegcc*)
17826 lt_cv_dlopen="LoadLibrary"
17827 lt_cv_dlopen_libs=
17828 ;;
17829
17830 cygwin*)
17831 lt_cv_dlopen="dlopen"
17832 lt_cv_dlopen_libs=
17833 ;;
17834
17835 darwin*)
17836 # if libdl is installed we need to link against it
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17838 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17839 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17840 $as_echo_n "(cached) " >&6
17841 else
17842 ac_check_lib_save_LIBS=$LIBS
17843 LIBS="-ldl $LIBS"
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17846
17847 /* Override any GCC internal prototype to avoid an error.
17848 Use char because int might match the return type of a GCC
17849 builtin and then its argument prototype would still apply. */
17850 #ifdef __cplusplus
17851 extern "C"
17852 #endif
17853 char dlopen ();
17854 int
17855 main ()
17856 {
17857 return dlopen ();
17858 ;
17859 return 0;
17860 }
17861 _ACEOF
17862 if ac_fn_c_try_link "$LINENO"; then :
17863 ac_cv_lib_dl_dlopen=yes
17864 else
17865 ac_cv_lib_dl_dlopen=no
17866 fi
17867 rm -f core conftest.err conftest.$ac_objext \
17868 conftest$ac_exeext conftest.$ac_ext
17869 LIBS=$ac_check_lib_save_LIBS
17870 fi
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17872 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17873 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17875 else
17876
17877 lt_cv_dlopen="dyld"
17878 lt_cv_dlopen_libs=
17879 lt_cv_dlopen_self=yes
17880
17881 fi
17882
17883 ;;
17884
17885 *)
17886 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17887 if test "x$ac_cv_func_shl_load" = x""yes; then :
17888 lt_cv_dlopen="shl_load"
17889 else
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17891 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17892 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17893 $as_echo_n "(cached) " >&6
17894 else
17895 ac_check_lib_save_LIBS=$LIBS
17896 LIBS="-ldld $LIBS"
17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h. */
17899
17900 /* Override any GCC internal prototype to avoid an error.
17901 Use char because int might match the return type of a GCC
17902 builtin and then its argument prototype would still apply. */
17903 #ifdef __cplusplus
17904 extern "C"
17905 #endif
17906 char shl_load ();
17907 int
17908 main ()
17909 {
17910 return shl_load ();
17911 ;
17912 return 0;
17913 }
17914 _ACEOF
17915 if ac_fn_c_try_link "$LINENO"; then :
17916 ac_cv_lib_dld_shl_load=yes
17917 else
17918 ac_cv_lib_dld_shl_load=no
17919 fi
17920 rm -f core conftest.err conftest.$ac_objext \
17921 conftest$ac_exeext conftest.$ac_ext
17922 LIBS=$ac_check_lib_save_LIBS
17923 fi
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17925 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17926 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17927 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17928 else
17929 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17930 if test "x$ac_cv_func_dlopen" = x""yes; then :
17931 lt_cv_dlopen="dlopen"
17932 else
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17934 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17936 $as_echo_n "(cached) " >&6
17937 else
17938 ac_check_lib_save_LIBS=$LIBS
17939 LIBS="-ldl $LIBS"
17940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h. */
17942
17943 /* Override any GCC internal prototype to avoid an error.
17944 Use char because int might match the return type of a GCC
17945 builtin and then its argument prototype would still apply. */
17946 #ifdef __cplusplus
17947 extern "C"
17948 #endif
17949 char dlopen ();
17950 int
17951 main ()
17952 {
17953 return dlopen ();
17954 ;
17955 return 0;
17956 }
17957 _ACEOF
17958 if ac_fn_c_try_link "$LINENO"; then :
17959 ac_cv_lib_dl_dlopen=yes
17960 else
17961 ac_cv_lib_dl_dlopen=no
17962 fi
17963 rm -f core conftest.err conftest.$ac_objext \
17964 conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17966 fi
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17968 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17969 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17971 else
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17973 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17974 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17975 $as_echo_n "(cached) " >&6
17976 else
17977 ac_check_lib_save_LIBS=$LIBS
17978 LIBS="-lsvld $LIBS"
17979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h. */
17981
17982 /* Override any GCC internal prototype to avoid an error.
17983 Use char because int might match the return type of a GCC
17984 builtin and then its argument prototype would still apply. */
17985 #ifdef __cplusplus
17986 extern "C"
17987 #endif
17988 char dlopen ();
17989 int
17990 main ()
17991 {
17992 return dlopen ();
17993 ;
17994 return 0;
17995 }
17996 _ACEOF
17997 if ac_fn_c_try_link "$LINENO"; then :
17998 ac_cv_lib_svld_dlopen=yes
17999 else
18000 ac_cv_lib_svld_dlopen=no
18001 fi
18002 rm -f core conftest.err conftest.$ac_objext \
18003 conftest$ac_exeext conftest.$ac_ext
18004 LIBS=$ac_check_lib_save_LIBS
18005 fi
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18007 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18008 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18010 else
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18012 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18013 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18014 $as_echo_n "(cached) " >&6
18015 else
18016 ac_check_lib_save_LIBS=$LIBS
18017 LIBS="-ldld $LIBS"
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18020
18021 /* Override any GCC internal prototype to avoid an error.
18022 Use char because int might match the return type of a GCC
18023 builtin and then its argument prototype would still apply. */
18024 #ifdef __cplusplus
18025 extern "C"
18026 #endif
18027 char dld_link ();
18028 int
18029 main ()
18030 {
18031 return dld_link ();
18032 ;
18033 return 0;
18034 }
18035 _ACEOF
18036 if ac_fn_c_try_link "$LINENO"; then :
18037 ac_cv_lib_dld_dld_link=yes
18038 else
18039 ac_cv_lib_dld_dld_link=no
18040 fi
18041 rm -f core conftest.err conftest.$ac_objext \
18042 conftest$ac_exeext conftest.$ac_ext
18043 LIBS=$ac_check_lib_save_LIBS
18044 fi
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18046 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18047 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18048 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18049 fi
18050
18051
18052 fi
18053
18054
18055 fi
18056
18057
18058 fi
18059
18060
18061 fi
18062
18063
18064 fi
18065
18066 ;;
18067 esac
18068
18069 if test "x$lt_cv_dlopen" != xno; then
18070 enable_dlopen=yes
18071 else
18072 enable_dlopen=no
18073 fi
18074
18075 case $lt_cv_dlopen in
18076 dlopen)
18077 save_CPPFLAGS="$CPPFLAGS"
18078 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18079
18080 save_LDFLAGS="$LDFLAGS"
18081 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18082
18083 save_LIBS="$LIBS"
18084 LIBS="$lt_cv_dlopen_libs $LIBS"
18085
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18087 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18088 if test "${lt_cv_dlopen_self+set}" = set; then :
18089 $as_echo_n "(cached) " >&6
18090 else
18091 if test "$cross_compiling" = yes; then :
18092 lt_cv_dlopen_self=cross
18093 else
18094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18095 lt_status=$lt_dlunknown
18096 cat > conftest.$ac_ext <<_LT_EOF
18097 #line 18097 "configure"
18098 #include "confdefs.h"
18099
18100 #if HAVE_DLFCN_H
18101 #include <dlfcn.h>
18102 #endif
18103
18104 #include <stdio.h>
18105
18106 #ifdef RTLD_GLOBAL
18107 # define LT_DLGLOBAL RTLD_GLOBAL
18108 #else
18109 # ifdef DL_GLOBAL
18110 # define LT_DLGLOBAL DL_GLOBAL
18111 # else
18112 # define LT_DLGLOBAL 0
18113 # endif
18114 #endif
18115
18116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18117 find out it does not work in some platform. */
18118 #ifndef LT_DLLAZY_OR_NOW
18119 # ifdef RTLD_LAZY
18120 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18121 # else
18122 # ifdef DL_LAZY
18123 # define LT_DLLAZY_OR_NOW DL_LAZY
18124 # else
18125 # ifdef RTLD_NOW
18126 # define LT_DLLAZY_OR_NOW RTLD_NOW
18127 # else
18128 # ifdef DL_NOW
18129 # define LT_DLLAZY_OR_NOW DL_NOW
18130 # else
18131 # define LT_DLLAZY_OR_NOW 0
18132 # endif
18133 # endif
18134 # endif
18135 # endif
18136 #endif
18137
18138 /* When -fvisbility=hidden is used, assume the code has been annotated
18139 correspondingly for the symbols needed. */
18140 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18141 void fnord () __attribute__((visibility("default")));
18142 #endif
18143
18144 void fnord () { int i=42; }
18145 int main ()
18146 {
18147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18148 int status = $lt_dlunknown;
18149
18150 if (self)
18151 {
18152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18153 else
18154 {
18155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18156 else puts (dlerror ());
18157 }
18158 /* dlclose (self); */
18159 }
18160 else
18161 puts (dlerror ());
18162
18163 return status;
18164 }
18165 _LT_EOF
18166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18167 (eval $ac_link) 2>&5
18168 ac_status=$?
18169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18170 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18171 (./conftest; exit; ) >&5 2>/dev/null
18172 lt_status=$?
18173 case x$lt_status in
18174 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18175 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18176 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18177 esac
18178 else :
18179 # compilation failed
18180 lt_cv_dlopen_self=no
18181 fi
18182 fi
18183 rm -fr conftest*
18184
18185
18186 fi
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18188 $as_echo "$lt_cv_dlopen_self" >&6; }
18189
18190 if test "x$lt_cv_dlopen_self" = xyes; then
18191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18193 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18194 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18195 $as_echo_n "(cached) " >&6
18196 else
18197 if test "$cross_compiling" = yes; then :
18198 lt_cv_dlopen_self_static=cross
18199 else
18200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18201 lt_status=$lt_dlunknown
18202 cat > conftest.$ac_ext <<_LT_EOF
18203 #line 18203 "configure"
18204 #include "confdefs.h"
18205
18206 #if HAVE_DLFCN_H
18207 #include <dlfcn.h>
18208 #endif
18209
18210 #include <stdio.h>
18211
18212 #ifdef RTLD_GLOBAL
18213 # define LT_DLGLOBAL RTLD_GLOBAL
18214 #else
18215 # ifdef DL_GLOBAL
18216 # define LT_DLGLOBAL DL_GLOBAL
18217 # else
18218 # define LT_DLGLOBAL 0
18219 # endif
18220 #endif
18221
18222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18223 find out it does not work in some platform. */
18224 #ifndef LT_DLLAZY_OR_NOW
18225 # ifdef RTLD_LAZY
18226 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18227 # else
18228 # ifdef DL_LAZY
18229 # define LT_DLLAZY_OR_NOW DL_LAZY
18230 # else
18231 # ifdef RTLD_NOW
18232 # define LT_DLLAZY_OR_NOW RTLD_NOW
18233 # else
18234 # ifdef DL_NOW
18235 # define LT_DLLAZY_OR_NOW DL_NOW
18236 # else
18237 # define LT_DLLAZY_OR_NOW 0
18238 # endif
18239 # endif
18240 # endif
18241 # endif
18242 #endif
18243
18244 /* When -fvisbility=hidden is used, assume the code has been annotated
18245 correspondingly for the symbols needed. */
18246 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18247 void fnord () __attribute__((visibility("default")));
18248 #endif
18249
18250 void fnord () { int i=42; }
18251 int main ()
18252 {
18253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18254 int status = $lt_dlunknown;
18255
18256 if (self)
18257 {
18258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18259 else
18260 {
18261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18262 else puts (dlerror ());
18263 }
18264 /* dlclose (self); */
18265 }
18266 else
18267 puts (dlerror ());
18268
18269 return status;
18270 }
18271 _LT_EOF
18272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18273 (eval $ac_link) 2>&5
18274 ac_status=$?
18275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18276 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18277 (./conftest; exit; ) >&5 2>/dev/null
18278 lt_status=$?
18279 case x$lt_status in
18280 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18281 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18282 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18283 esac
18284 else :
18285 # compilation failed
18286 lt_cv_dlopen_self_static=no
18287 fi
18288 fi
18289 rm -fr conftest*
18290
18291
18292 fi
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18294 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18295 fi
18296
18297 CPPFLAGS="$save_CPPFLAGS"
18298 LDFLAGS="$save_LDFLAGS"
18299 LIBS="$save_LIBS"
18300 ;;
18301 esac
18302
18303 case $lt_cv_dlopen_self in
18304 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18305 *) enable_dlopen_self=unknown ;;
18306 esac
18307
18308 case $lt_cv_dlopen_self_static in
18309 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18310 *) enable_dlopen_self_static=unknown ;;
18311 esac
18312 fi
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330 striplib=
18331 old_striplib=
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18333 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18334 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18336 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18338 $as_echo "yes" >&6; }
18339 else
18340 # FIXME - insert some real tests, host_os isn't really good enough
18341 case $host_os in
18342 darwin*)
18343 if test -n "$STRIP" ; then
18344 striplib="$STRIP -x"
18345 old_striplib="$STRIP -S"
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18347 $as_echo "yes" >&6; }
18348 else
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18350 $as_echo "no" >&6; }
18351 fi
18352 ;;
18353 *)
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18355 $as_echo "no" >&6; }
18356 ;;
18357 esac
18358 fi
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371 # Report which library types will actually be built
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18373 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18375 $as_echo "$can_build_shared" >&6; }
18376
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18378 $as_echo_n "checking whether to build shared libraries... " >&6; }
18379 test "$can_build_shared" = "no" && enable_shared=no
18380
18381 # On AIX, shared libraries and static libraries use the same namespace, and
18382 # are all built from PIC.
18383 case $host_os in
18384 aix3*)
18385 test "$enable_shared" = yes && enable_static=no
18386 if test -n "$RANLIB"; then
18387 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18388 postinstall_cmds='$RANLIB $lib'
18389 fi
18390 ;;
18391
18392 aix[4-9]*)
18393 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18394 test "$enable_shared" = yes && enable_static=no
18395 fi
18396 ;;
18397 esac
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18399 $as_echo "$enable_shared" >&6; }
18400
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18402 $as_echo_n "checking whether to build static libraries... " >&6; }
18403 # Make sure either enable_shared or enable_static is yes.
18404 test "$enable_shared" = yes || enable_static=yes
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18406 $as_echo "$enable_static" >&6; }
18407
18408
18409
18410
18411 fi
18412 ac_ext=c
18413 ac_cpp='$CPP $CPPFLAGS'
18414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18417
18418 CC="$lt_save_CC"
18419
18420 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18421 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18422 (test "X$CXX" != "Xg++"))) ; then
18423 ac_ext=cpp
18424 ac_cpp='$CXXCPP $CPPFLAGS'
18425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18429 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18430 if test -z "$CXXCPP"; then
18431 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18432 $as_echo_n "(cached) " >&6
18433 else
18434 # Double quotes because CXXCPP needs to be expanded
18435 for CXXCPP in "$CXX -E" "/lib/cpp"
18436 do
18437 ac_preproc_ok=false
18438 for ac_cxx_preproc_warn_flag in '' yes
18439 do
18440 # Use a header file that comes with gcc, so configuring glibc
18441 # with a fresh cross-compiler works.
18442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18443 # <limits.h> exists even on freestanding compilers.
18444 # On the NeXT, cc -E runs the code through the compiler's parser,
18445 # not just through cpp. "Syntax error" is here to catch this case.
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18448 #ifdef __STDC__
18449 # include <limits.h>
18450 #else
18451 # include <assert.h>
18452 #endif
18453 Syntax error
18454 _ACEOF
18455 if ac_fn_cxx_try_cpp "$LINENO"; then :
18456
18457 else
18458 # Broken: fails on valid input.
18459 continue
18460 fi
18461 rm -f conftest.err conftest.$ac_ext
18462
18463 # OK, works on sane cases. Now check whether nonexistent headers
18464 # can be detected and how.
18465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18466 /* end confdefs.h. */
18467 #include <ac_nonexistent.h>
18468 _ACEOF
18469 if ac_fn_cxx_try_cpp "$LINENO"; then :
18470 # Broken: success on invalid input.
18471 continue
18472 else
18473 # Passes both tests.
18474 ac_preproc_ok=:
18475 break
18476 fi
18477 rm -f conftest.err conftest.$ac_ext
18478
18479 done
18480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18481 rm -f conftest.err conftest.$ac_ext
18482 if $ac_preproc_ok; then :
18483 break
18484 fi
18485
18486 done
18487 ac_cv_prog_CXXCPP=$CXXCPP
18488
18489 fi
18490 CXXCPP=$ac_cv_prog_CXXCPP
18491 else
18492 ac_cv_prog_CXXCPP=$CXXCPP
18493 fi
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18495 $as_echo "$CXXCPP" >&6; }
18496 ac_preproc_ok=false
18497 for ac_cxx_preproc_warn_flag in '' yes
18498 do
18499 # Use a header file that comes with gcc, so configuring glibc
18500 # with a fresh cross-compiler works.
18501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18502 # <limits.h> exists even on freestanding compilers.
18503 # On the NeXT, cc -E runs the code through the compiler's parser,
18504 # not just through cpp. "Syntax error" is here to catch this case.
18505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18506 /* end confdefs.h. */
18507 #ifdef __STDC__
18508 # include <limits.h>
18509 #else
18510 # include <assert.h>
18511 #endif
18512 Syntax error
18513 _ACEOF
18514 if ac_fn_cxx_try_cpp "$LINENO"; then :
18515
18516 else
18517 # Broken: fails on valid input.
18518 continue
18519 fi
18520 rm -f conftest.err conftest.$ac_ext
18521
18522 # OK, works on sane cases. Now check whether nonexistent headers
18523 # can be detected and how.
18524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18525 /* end confdefs.h. */
18526 #include <ac_nonexistent.h>
18527 _ACEOF
18528 if ac_fn_cxx_try_cpp "$LINENO"; then :
18529 # Broken: success on invalid input.
18530 continue
18531 else
18532 # Passes both tests.
18533 ac_preproc_ok=:
18534 break
18535 fi
18536 rm -f conftest.err conftest.$ac_ext
18537
18538 done
18539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18540 rm -f conftest.err conftest.$ac_ext
18541 if $ac_preproc_ok; then :
18542
18543 else
18544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18546 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18547 See \`config.log' for more details." "$LINENO" 5; }
18548 fi
18549
18550 ac_ext=c
18551 ac_cpp='$CPP $CPPFLAGS'
18552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18555
18556 else
18557 _lt_caught_CXX_error=yes
18558 fi
18559
18560 ac_ext=cpp
18561 ac_cpp='$CXXCPP $CPPFLAGS'
18562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18565
18566 archive_cmds_need_lc_CXX=no
18567 allow_undefined_flag_CXX=
18568 always_export_symbols_CXX=no
18569 archive_expsym_cmds_CXX=
18570 compiler_needs_object_CXX=no
18571 export_dynamic_flag_spec_CXX=
18572 hardcode_direct_CXX=no
18573 hardcode_direct_absolute_CXX=no
18574 hardcode_libdir_flag_spec_CXX=
18575 hardcode_libdir_flag_spec_ld_CXX=
18576 hardcode_libdir_separator_CXX=
18577 hardcode_minus_L_CXX=no
18578 hardcode_shlibpath_var_CXX=unsupported
18579 hardcode_automatic_CXX=no
18580 inherit_rpath_CXX=no
18581 module_cmds_CXX=
18582 module_expsym_cmds_CXX=
18583 link_all_deplibs_CXX=unknown
18584 old_archive_cmds_CXX=$old_archive_cmds
18585 reload_flag_CXX=$reload_flag
18586 reload_cmds_CXX=$reload_cmds
18587 no_undefined_flag_CXX=
18588 whole_archive_flag_spec_CXX=
18589 enable_shared_with_static_runtimes_CXX=no
18590
18591 # Source file extension for C++ test sources.
18592 ac_ext=cpp
18593
18594 # Object file extension for compiled C++ test sources.
18595 objext=o
18596 objext_CXX=$objext
18597
18598 # No sense in running all these tests if we already determined that
18599 # the CXX compiler isn't working. Some variables (like enable_shared)
18600 # are currently assumed to apply to all compilers on this platform,
18601 # and will be corrupted by setting them based on a non-working compiler.
18602 if test "$_lt_caught_CXX_error" != yes; then
18603 # Code to be used in simple compile tests
18604 lt_simple_compile_test_code="int some_variable = 0;"
18605
18606 # Code to be used in simple link tests
18607 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18608
18609 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18610
18611
18612
18613
18614
18615
18616 # If no C compiler was specified, use CC.
18617 LTCC=${LTCC-"$CC"}
18618
18619 # If no C compiler flags were specified, use CFLAGS.
18620 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18621
18622 # Allow CC to be a program name with arguments.
18623 compiler=$CC
18624
18625
18626 # save warnings/boilerplate of simple test code
18627 ac_outfile=conftest.$ac_objext
18628 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18629 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18630 _lt_compiler_boilerplate=`cat conftest.err`
18631 $RM conftest*
18632
18633 ac_outfile=conftest.$ac_objext
18634 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18635 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18636 _lt_linker_boilerplate=`cat conftest.err`
18637 $RM -r conftest*
18638
18639
18640 # Allow CC to be a program name with arguments.
18641 lt_save_CC=$CC
18642 lt_save_LD=$LD
18643 lt_save_GCC=$GCC
18644 GCC=$GXX
18645 lt_save_with_gnu_ld=$with_gnu_ld
18646 lt_save_path_LD=$lt_cv_path_LD
18647 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18648 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18649 else
18650 $as_unset lt_cv_prog_gnu_ld
18651 fi
18652 if test -n "${lt_cv_path_LDCXX+set}"; then
18653 lt_cv_path_LD=$lt_cv_path_LDCXX
18654 else
18655 $as_unset lt_cv_path_LD
18656 fi
18657 test -z "${LDCXX+set}" || LD=$LDCXX
18658 CC=${CXX-"c++"}
18659 compiler=$CC
18660 compiler_CXX=$CC
18661 for cc_temp in $compiler""; do
18662 case $cc_temp in
18663 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18664 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18665 \-*) ;;
18666 *) break;;
18667 esac
18668 done
18669 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18670
18671
18672 if test -n "$compiler"; then
18673 # We don't want -fno-exception when compiling C++ code, so set the
18674 # no_builtin_flag separately
18675 if test "$GXX" = yes; then
18676 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18677 else
18678 lt_prog_compiler_no_builtin_flag_CXX=
18679 fi
18680
18681 if test "$GXX" = yes; then
18682 # Set up default GNU C++ configuration
18683
18684
18685
18686 # Check whether --with-gnu-ld was given.
18687 if test "${with_gnu_ld+set}" = set; then :
18688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18689 else
18690 with_gnu_ld=no
18691 fi
18692
18693 ac_prog=ld
18694 if test "$GCC" = yes; then
18695 # Check if gcc -print-prog-name=ld gives a path.
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18697 $as_echo_n "checking for ld used by $CC... " >&6; }
18698 case $host in
18699 *-*-mingw*)
18700 # gcc leaves a trailing carriage return which upsets mingw
18701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18702 *)
18703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18704 esac
18705 case $ac_prog in
18706 # Accept absolute paths.
18707 [\\/]* | ?:[\\/]*)
18708 re_direlt='/[^/][^/]*/\.\./'
18709 # Canonicalize the pathname of ld
18710 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18711 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18712 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18713 done
18714 test -z "$LD" && LD="$ac_prog"
18715 ;;
18716 "")
18717 # If it fails, then pretend we aren't using GCC.
18718 ac_prog=ld
18719 ;;
18720 *)
18721 # If it is relative, then search for the first ld in PATH.
18722 with_gnu_ld=unknown
18723 ;;
18724 esac
18725 elif test "$with_gnu_ld" = yes; then
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18727 $as_echo_n "checking for GNU ld... " >&6; }
18728 else
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18730 $as_echo_n "checking for non-GNU ld... " >&6; }
18731 fi
18732 if test "${lt_cv_path_LD+set}" = set; then :
18733 $as_echo_n "(cached) " >&6
18734 else
18735 if test -z "$LD"; then
18736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18737 for ac_dir in $PATH; do
18738 IFS="$lt_save_ifs"
18739 test -z "$ac_dir" && ac_dir=.
18740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18741 lt_cv_path_LD="$ac_dir/$ac_prog"
18742 # Check to see if the program is GNU ld. I'd rather use --version,
18743 # but apparently some variants of GNU ld only accept -v.
18744 # Break only if it was the GNU/non-GNU ld that we prefer.
18745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18746 *GNU* | *'with BFD'*)
18747 test "$with_gnu_ld" != no && break
18748 ;;
18749 *)
18750 test "$with_gnu_ld" != yes && break
18751 ;;
18752 esac
18753 fi
18754 done
18755 IFS="$lt_save_ifs"
18756 else
18757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18758 fi
18759 fi
18760
18761 LD="$lt_cv_path_LD"
18762 if test -n "$LD"; then
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18764 $as_echo "$LD" >&6; }
18765 else
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18767 $as_echo "no" >&6; }
18768 fi
18769 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18772 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18773 $as_echo_n "(cached) " >&6
18774 else
18775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18776 case `$LD -v 2>&1 </dev/null` in
18777 *GNU* | *'with BFD'*)
18778 lt_cv_prog_gnu_ld=yes
18779 ;;
18780 *)
18781 lt_cv_prog_gnu_ld=no
18782 ;;
18783 esac
18784 fi
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18787 with_gnu_ld=$lt_cv_prog_gnu_ld
18788
18789
18790
18791
18792
18793
18794
18795 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18796 # archiving commands below assume that GNU ld is being used.
18797 if test "$with_gnu_ld" = yes; then
18798 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18799 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'
18800
18801 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18802 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18803
18804 # If archive_cmds runs LD, not CC, wlarc should be empty
18805 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18806 # investigate it a little bit more. (MM)
18807 wlarc='${wl}'
18808
18809 # ancient GNU ld didn't support --whole-archive et. al.
18810 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18811 $GREP 'no-whole-archive' > /dev/null; then
18812 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18813 else
18814 whole_archive_flag_spec_CXX=
18815 fi
18816 else
18817 with_gnu_ld=no
18818 wlarc=
18819
18820 # A generic and very simple default shared library creation
18821 # command for GNU C++ for the case where it uses the native
18822 # linker, instead of GNU ld. If possible, this setting should
18823 # overridden to take advantage of the native linker features on
18824 # the platform it is being used on.
18825 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18826 fi
18827
18828 # Commands to make compiler produce verbose output that lists
18829 # what "hidden" libraries, object files and flags are used when
18830 # linking a shared library.
18831 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18832
18833 else
18834 GXX=no
18835 with_gnu_ld=no
18836 wlarc=
18837 fi
18838
18839 # PORTME: fill in a description of your system's C++ link characteristics
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18841 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18842 ld_shlibs_CXX=yes
18843 case $host_os in
18844 aix3*)
18845 # FIXME: insert proper C++ library support
18846 ld_shlibs_CXX=no
18847 ;;
18848 aix[4-9]*)
18849 if test "$host_cpu" = ia64; then
18850 # On IA64, the linker does run time linking by default, so we don't
18851 # have to do anything special.
18852 aix_use_runtimelinking=no
18853 exp_sym_flag='-Bexport'
18854 no_entry_flag=""
18855 else
18856 aix_use_runtimelinking=no
18857
18858 # Test if we are trying to use run time linking or normal
18859 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18860 # need to do runtime linking.
18861 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18862 for ld_flag in $LDFLAGS; do
18863 case $ld_flag in
18864 *-brtl*)
18865 aix_use_runtimelinking=yes
18866 break
18867 ;;
18868 esac
18869 done
18870 ;;
18871 esac
18872
18873 exp_sym_flag='-bexport'
18874 no_entry_flag='-bnoentry'
18875 fi
18876
18877 # When large executables or shared objects are built, AIX ld can
18878 # have problems creating the table of contents. If linking a library
18879 # or program results in "error TOC overflow" add -mminimal-toc to
18880 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18881 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18882
18883 archive_cmds_CXX=''
18884 hardcode_direct_CXX=yes
18885 hardcode_direct_absolute_CXX=yes
18886 hardcode_libdir_separator_CXX=':'
18887 link_all_deplibs_CXX=yes
18888 file_list_spec_CXX='${wl}-f,'
18889
18890 if test "$GXX" = yes; then
18891 case $host_os in aix4.[012]|aix4.[012].*)
18892 # We only want to do this on AIX 4.2 and lower, the check
18893 # below for broken collect2 doesn't work under 4.3+
18894 collect2name=`${CC} -print-prog-name=collect2`
18895 if test -f "$collect2name" &&
18896 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18897 then
18898 # We have reworked collect2
18899 :
18900 else
18901 # We have old collect2
18902 hardcode_direct_CXX=unsupported
18903 # It fails to find uninstalled libraries when the uninstalled
18904 # path is not listed in the libpath. Setting hardcode_minus_L
18905 # to unsupported forces relinking
18906 hardcode_minus_L_CXX=yes
18907 hardcode_libdir_flag_spec_CXX='-L$libdir'
18908 hardcode_libdir_separator_CXX=
18909 fi
18910 esac
18911 shared_flag='-shared'
18912 if test "$aix_use_runtimelinking" = yes; then
18913 shared_flag="$shared_flag "'${wl}-G'
18914 fi
18915 else
18916 # not using gcc
18917 if test "$host_cpu" = ia64; then
18918 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18919 # chokes on -Wl,-G. The following line is correct:
18920 shared_flag='-G'
18921 else
18922 if test "$aix_use_runtimelinking" = yes; then
18923 shared_flag='${wl}-G'
18924 else
18925 shared_flag='${wl}-bM:SRE'
18926 fi
18927 fi
18928 fi
18929
18930 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18931 # It seems that -bexpall does not export symbols beginning with
18932 # underscore (_), so it is better to generate a list of symbols to
18933 # export.
18934 always_export_symbols_CXX=yes
18935 if test "$aix_use_runtimelinking" = yes; then
18936 # Warning - without using the other runtime loading flags (-brtl),
18937 # -berok will link without error, but may produce a broken library.
18938 allow_undefined_flag_CXX='-berok'
18939 # Determine the default libpath from the value encoded in an empty
18940 # executable.
18941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18942 /* end confdefs.h. */
18943
18944 int
18945 main ()
18946 {
18947
18948 ;
18949 return 0;
18950 }
18951 _ACEOF
18952 if ac_fn_cxx_try_link "$LINENO"; then :
18953
18954 lt_aix_libpath_sed='
18955 /Import File Strings/,/^$/ {
18956 /^0/ {
18957 s/^0 *\(.*\)$/\1/
18958 p
18959 }
18960 }'
18961 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18962 # Check for a 64-bit object if we didn't find anything.
18963 if test -z "$aix_libpath"; then
18964 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18965 fi
18966 fi
18967 rm -f core conftest.err conftest.$ac_objext \
18968 conftest$ac_exeext conftest.$ac_ext
18969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18970
18971 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18972
18973 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"
18974 else
18975 if test "$host_cpu" = ia64; then
18976 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18977 allow_undefined_flag_CXX="-z nodefs"
18978 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"
18979 else
18980 # Determine the default libpath from the value encoded in an
18981 # empty executable.
18982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18984
18985 int
18986 main ()
18987 {
18988
18989 ;
18990 return 0;
18991 }
18992 _ACEOF
18993 if ac_fn_cxx_try_link "$LINENO"; then :
18994
18995 lt_aix_libpath_sed='
18996 /Import File Strings/,/^$/ {
18997 /^0/ {
18998 s/^0 *\(.*\)$/\1/
18999 p
19000 }
19001 }'
19002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19003 # Check for a 64-bit object if we didn't find anything.
19004 if test -z "$aix_libpath"; then
19005 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19006 fi
19007 fi
19008 rm -f core conftest.err conftest.$ac_objext \
19009 conftest$ac_exeext conftest.$ac_ext
19010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19011
19012 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19013 # Warning - without using the other run time loading flags,
19014 # -berok will link without error, but may produce a broken library.
19015 no_undefined_flag_CXX=' ${wl}-bernotok'
19016 allow_undefined_flag_CXX=' ${wl}-berok'
19017 if test "$with_gnu_ld" = yes; then
19018 # We only use this code for GNU lds that support --whole-archive.
19019 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19020 else
19021 # Exported symbols can be pulled into shared objects from archives
19022 whole_archive_flag_spec_CXX='$convenience'
19023 fi
19024 archive_cmds_need_lc_CXX=yes
19025 # This is similar to how AIX traditionally builds its shared
19026 # libraries.
19027 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'
19028 fi
19029 fi
19030 ;;
19031
19032 beos*)
19033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19034 allow_undefined_flag_CXX=unsupported
19035 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19036 # support --undefined. This deserves some investigation. FIXME
19037 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19038 else
19039 ld_shlibs_CXX=no
19040 fi
19041 ;;
19042
19043 chorus*)
19044 case $cc_basename in
19045 *)
19046 # FIXME: insert proper C++ library support
19047 ld_shlibs_CXX=no
19048 ;;
19049 esac
19050 ;;
19051
19052 cygwin* | mingw* | pw32* | cegcc*)
19053 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19054 # as there is no search path for DLLs.
19055 hardcode_libdir_flag_spec_CXX='-L$libdir'
19056 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19057 allow_undefined_flag_CXX=unsupported
19058 always_export_symbols_CXX=no
19059 enable_shared_with_static_runtimes_CXX=yes
19060
19061 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19062 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'
19063 # If the export-symbols file already is a .def file (1st line
19064 # is EXPORTS), use it as is; otherwise, prepend...
19065 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19066 cp $export_symbols $output_objdir/$soname.def;
19067 else
19068 echo EXPORTS > $output_objdir/$soname.def;
19069 cat $export_symbols >> $output_objdir/$soname.def;
19070 fi~
19071 $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'
19072 else
19073 ld_shlibs_CXX=no
19074 fi
19075 ;;
19076 darwin* | rhapsody*)
19077
19078
19079 archive_cmds_need_lc_CXX=no
19080 hardcode_direct_CXX=no
19081 hardcode_automatic_CXX=yes
19082 hardcode_shlibpath_var_CXX=unsupported
19083 if test "$lt_cv_ld_force_load" = "yes"; then
19084 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\"`'
19085 else
19086 whole_archive_flag_spec_CXX=''
19087 fi
19088 link_all_deplibs_CXX=yes
19089 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19090 case $cc_basename in
19091 ifort*) _lt_dar_can_shared=yes ;;
19092 *) _lt_dar_can_shared=$GCC ;;
19093 esac
19094 if test "$_lt_dar_can_shared" = "yes"; then
19095 output_verbose_link_cmd=func_echo_all
19096 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}"
19097 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19098 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}"
19099 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}"
19100 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19101 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}"
19102 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}"
19103 fi
19104
19105 else
19106 ld_shlibs_CXX=no
19107 fi
19108
19109 ;;
19110
19111 dgux*)
19112 case $cc_basename in
19113 ec++*)
19114 # FIXME: insert proper C++ library support
19115 ld_shlibs_CXX=no
19116 ;;
19117 ghcx*)
19118 # Green Hills C++ Compiler
19119 # FIXME: insert proper C++ library support
19120 ld_shlibs_CXX=no
19121 ;;
19122 *)
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 ;;
19126 esac
19127 ;;
19128
19129 freebsd2.*)
19130 # C++ shared libraries reported to be fairly broken before
19131 # switch to ELF
19132 ld_shlibs_CXX=no
19133 ;;
19134
19135 freebsd-elf*)
19136 archive_cmds_need_lc_CXX=no
19137 ;;
19138
19139 freebsd* | dragonfly*)
19140 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19141 # conventions
19142 ld_shlibs_CXX=yes
19143 ;;
19144
19145 gnu*)
19146 ;;
19147
19148 haiku*)
19149 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19150 link_all_deplibs_CXX=yes
19151 ;;
19152
19153 hpux9*)
19154 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19155 hardcode_libdir_separator_CXX=:
19156 export_dynamic_flag_spec_CXX='${wl}-E'
19157 hardcode_direct_CXX=yes
19158 hardcode_minus_L_CXX=yes # Not in the search PATH,
19159 # but as the default
19160 # location of the library.
19161
19162 case $cc_basename in
19163 CC*)
19164 # FIXME: insert proper C++ library support
19165 ld_shlibs_CXX=no
19166 ;;
19167 aCC*)
19168 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'
19169 # Commands to make compiler produce verbose output that lists
19170 # what "hidden" libraries, object files and flags are used when
19171 # linking a shared library.
19172 #
19173 # There doesn't appear to be a way to prevent this compiler from
19174 # explicitly linking system object files so we need to strip them
19175 # from the output so that they don't get included in the library
19176 # dependencies.
19177 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"'
19178 ;;
19179 *)
19180 if test "$GXX" = yes; then
19181 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'
19182 else
19183 # FIXME: insert proper C++ library support
19184 ld_shlibs_CXX=no
19185 fi
19186 ;;
19187 esac
19188 ;;
19189
19190 hpux10*|hpux11*)
19191 if test $with_gnu_ld = no; then
19192 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19193 hardcode_libdir_separator_CXX=:
19194
19195 case $host_cpu in
19196 hppa*64*|ia64*)
19197 ;;
19198 *)
19199 export_dynamic_flag_spec_CXX='${wl}-E'
19200 ;;
19201 esac
19202 fi
19203 case $host_cpu in
19204 hppa*64*|ia64*)
19205 hardcode_direct_CXX=no
19206 hardcode_shlibpath_var_CXX=no
19207 ;;
19208 *)
19209 hardcode_direct_CXX=yes
19210 hardcode_direct_absolute_CXX=yes
19211 hardcode_minus_L_CXX=yes # Not in the search PATH,
19212 # but as the default
19213 # location of the library.
19214 ;;
19215 esac
19216
19217 case $cc_basename in
19218 CC*)
19219 # FIXME: insert proper C++ library support
19220 ld_shlibs_CXX=no
19221 ;;
19222 aCC*)
19223 case $host_cpu in
19224 hppa*64*)
19225 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19226 ;;
19227 ia64*)
19228 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19229 ;;
19230 *)
19231 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19232 ;;
19233 esac
19234 # Commands to make compiler produce verbose output that lists
19235 # what "hidden" libraries, object files and flags are used when
19236 # linking a shared library.
19237 #
19238 # There doesn't appear to be a way to prevent this compiler from
19239 # explicitly linking system object files so we need to strip them
19240 # from the output so that they don't get included in the library
19241 # dependencies.
19242 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"'
19243 ;;
19244 *)
19245 if test "$GXX" = yes; then
19246 if test $with_gnu_ld = no; then
19247 case $host_cpu in
19248 hppa*64*)
19249 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19250 ;;
19251 ia64*)
19252 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19253 ;;
19254 *)
19255 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'
19256 ;;
19257 esac
19258 fi
19259 else
19260 # FIXME: insert proper C++ library support
19261 ld_shlibs_CXX=no
19262 fi
19263 ;;
19264 esac
19265 ;;
19266
19267 interix[3-9]*)
19268 hardcode_direct_CXX=no
19269 hardcode_shlibpath_var_CXX=no
19270 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19271 export_dynamic_flag_spec_CXX='${wl}-E'
19272 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19273 # Instead, shared libraries are loaded at an image base (0x10000000 by
19274 # default) and relocated if they conflict, which is a slow very memory
19275 # consuming and fragmenting process. To avoid this, we pick a random,
19276 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19277 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19278 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'
19279 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'
19280 ;;
19281 irix5* | irix6*)
19282 case $cc_basename in
19283 CC*)
19284 # SGI C++
19285 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'
19286
19287 # Archives containing C++ object files must be created using
19288 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19289 # necessary to make sure instantiated templates are included
19290 # in the archive.
19291 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19292 ;;
19293 *)
19294 if test "$GXX" = yes; then
19295 if test "$with_gnu_ld" = no; then
19296 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'
19297 else
19298 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'
19299 fi
19300 fi
19301 link_all_deplibs_CXX=yes
19302 ;;
19303 esac
19304 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19305 hardcode_libdir_separator_CXX=:
19306 inherit_rpath_CXX=yes
19307 ;;
19308
19309 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19310 case $cc_basename in
19311 KCC*)
19312 # Kuck and Associates, Inc. (KAI) C++ Compiler
19313
19314 # KCC will only create a shared library if the output file
19315 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19316 # to its proper name (with version) after linking.
19317 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'
19318 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'
19319 # Commands to make compiler produce verbose output that lists
19320 # what "hidden" libraries, object files and flags are used when
19321 # linking a shared library.
19322 #
19323 # There doesn't appear to be a way to prevent this compiler from
19324 # explicitly linking system object files so we need to strip them
19325 # from the output so that they don't get included in the library
19326 # dependencies.
19327 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"'
19328
19329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19331
19332 # Archives containing C++ object files must be created using
19333 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19334 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19335 ;;
19336 icpc* | ecpc* )
19337 # Intel C++
19338 with_gnu_ld=yes
19339 # version 8.0 and above of icpc choke on multiply defined symbols
19340 # if we add $predep_objects and $postdep_objects, however 7.1 and
19341 # earlier do not add the objects themselves.
19342 case `$CC -V 2>&1` in
19343 *"Version 7."*)
19344 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19345 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'
19346 ;;
19347 *) # Version 8.0 or newer
19348 tmp_idyn=
19349 case $host_cpu in
19350 ia64*) tmp_idyn=' -i_dynamic';;
19351 esac
19352 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19353 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'
19354 ;;
19355 esac
19356 archive_cmds_need_lc_CXX=no
19357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19358 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19359 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19360 ;;
19361 pgCC* | pgcpp*)
19362 # Portland Group C++ compiler
19363 case `$CC -V` in
19364 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19365 prelink_cmds_CXX='tpldir=Template.dir~
19366 rm -rf $tpldir~
19367 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19368 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19369 old_archive_cmds_CXX='tpldir=Template.dir~
19370 rm -rf $tpldir~
19371 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19372 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19373 $RANLIB $oldlib'
19374 archive_cmds_CXX='tpldir=Template.dir~
19375 rm -rf $tpldir~
19376 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19377 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19378 archive_expsym_cmds_CXX='tpldir=Template.dir~
19379 rm -rf $tpldir~
19380 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19381 $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'
19382 ;;
19383 *) # Version 6 and above use weak symbols
19384 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19385 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'
19386 ;;
19387 esac
19388
19389 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19390 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19391 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'
19392 ;;
19393 cxx*)
19394 # Compaq C++
19395 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19396 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'
19397
19398 runpath_var=LD_RUN_PATH
19399 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19400 hardcode_libdir_separator_CXX=:
19401
19402 # Commands to make compiler produce verbose output that lists
19403 # what "hidden" libraries, object files and flags are used when
19404 # linking a shared library.
19405 #
19406 # There doesn't appear to be a way to prevent this compiler from
19407 # explicitly linking system object files so we need to strip them
19408 # from the output so that they don't get included in the library
19409 # dependencies.
19410 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'
19411 ;;
19412 xl* | mpixl* | bgxl*)
19413 # IBM XL 8.0 on PPC, with GNU ld
19414 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19415 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19416 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19417 if test "x$supports_anon_versioning" = xyes; then
19418 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19420 echo "local: *; };" >> $output_objdir/$libname.ver~
19421 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19422 fi
19423 ;;
19424 *)
19425 case `$CC -V 2>&1 | sed 5q` in
19426 *Sun\ C*)
19427 # Sun C++ 5.9
19428 no_undefined_flag_CXX=' -zdefs'
19429 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19430 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'
19431 hardcode_libdir_flag_spec_CXX='-R$libdir'
19432 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'
19433 compiler_needs_object_CXX=yes
19434
19435 # Not sure whether something based on
19436 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19437 # would be better.
19438 output_verbose_link_cmd='func_echo_all'
19439
19440 # Archives containing C++ object files must be created using
19441 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19442 # necessary to make sure instantiated templates are included
19443 # in the archive.
19444 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19445 ;;
19446 esac
19447 ;;
19448 esac
19449 ;;
19450
19451 lynxos*)
19452 # FIXME: insert proper C++ library support
19453 ld_shlibs_CXX=no
19454 ;;
19455
19456 m88k*)
19457 # FIXME: insert proper C++ library support
19458 ld_shlibs_CXX=no
19459 ;;
19460
19461 mvs*)
19462 case $cc_basename in
19463 cxx*)
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19466 ;;
19467 *)
19468 # FIXME: insert proper C++ library support
19469 ld_shlibs_CXX=no
19470 ;;
19471 esac
19472 ;;
19473
19474 netbsd*)
19475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19476 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19477 wlarc=
19478 hardcode_libdir_flag_spec_CXX='-R$libdir'
19479 hardcode_direct_CXX=yes
19480 hardcode_shlibpath_var_CXX=no
19481 fi
19482 # Workaround some broken pre-1.5 toolchains
19483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19484 ;;
19485
19486 *nto* | *qnx*)
19487 ld_shlibs_CXX=yes
19488 ;;
19489
19490 openbsd2*)
19491 # C++ shared libraries are fairly broken
19492 ld_shlibs_CXX=no
19493 ;;
19494
19495 openbsd*)
19496 if test -f /usr/libexec/ld.so; then
19497 hardcode_direct_CXX=yes
19498 hardcode_shlibpath_var_CXX=no
19499 hardcode_direct_absolute_CXX=yes
19500 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19501 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19503 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19504 export_dynamic_flag_spec_CXX='${wl}-E'
19505 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19506 fi
19507 output_verbose_link_cmd=func_echo_all
19508 else
19509 ld_shlibs_CXX=no
19510 fi
19511 ;;
19512
19513 osf3* | osf4* | osf5*)
19514 case $cc_basename in
19515 KCC*)
19516 # Kuck and Associates, Inc. (KAI) C++ Compiler
19517
19518 # KCC will only create a shared library if the output file
19519 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19520 # to its proper name (with version) after linking.
19521 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'
19522
19523 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19524 hardcode_libdir_separator_CXX=:
19525
19526 # Archives containing C++ object files must be created using
19527 # the KAI C++ compiler.
19528 case $host in
19529 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19530 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19531 esac
19532 ;;
19533 RCC*)
19534 # Rational C++ 2.4.1
19535 # FIXME: insert proper C++ library support
19536 ld_shlibs_CXX=no
19537 ;;
19538 cxx*)
19539 case $host in
19540 osf3*)
19541 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19542 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'
19543 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19544 ;;
19545 *)
19546 allow_undefined_flag_CXX=' -expect_unresolved \*'
19547 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'
19548 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19549 echo "-hidden">> $lib.exp~
19550 $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~
19551 $RM $lib.exp'
19552 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19553 ;;
19554 esac
19555
19556 hardcode_libdir_separator_CXX=:
19557
19558 # Commands to make compiler produce verbose output that lists
19559 # what "hidden" libraries, object files and flags are used when
19560 # linking a shared library.
19561 #
19562 # There doesn't appear to be a way to prevent this compiler from
19563 # explicitly linking system object files so we need to strip them
19564 # from the output so that they don't get included in the library
19565 # dependencies.
19566 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"'
19567 ;;
19568 *)
19569 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19570 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19571 case $host in
19572 osf3*)
19573 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'
19574 ;;
19575 *)
19576 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'
19577 ;;
19578 esac
19579
19580 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19581 hardcode_libdir_separator_CXX=:
19582
19583 # Commands to make compiler produce verbose output that lists
19584 # what "hidden" libraries, object files and flags are used when
19585 # linking a shared library.
19586 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19587
19588 else
19589 # FIXME: insert proper C++ library support
19590 ld_shlibs_CXX=no
19591 fi
19592 ;;
19593 esac
19594 ;;
19595
19596 psos*)
19597 # FIXME: insert proper C++ library support
19598 ld_shlibs_CXX=no
19599 ;;
19600
19601 sunos4*)
19602 case $cc_basename in
19603 CC*)
19604 # Sun C++ 4.x
19605 # FIXME: insert proper C++ library support
19606 ld_shlibs_CXX=no
19607 ;;
19608 lcc*)
19609 # Lucid
19610 # FIXME: insert proper C++ library support
19611 ld_shlibs_CXX=no
19612 ;;
19613 *)
19614 # FIXME: insert proper C++ library support
19615 ld_shlibs_CXX=no
19616 ;;
19617 esac
19618 ;;
19619
19620 solaris*)
19621 case $cc_basename in
19622 CC*)
19623 # Sun C++ 4.2, 5.x and Centerline C++
19624 archive_cmds_need_lc_CXX=yes
19625 no_undefined_flag_CXX=' -zdefs'
19626 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19627 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19628 $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'
19629
19630 hardcode_libdir_flag_spec_CXX='-R$libdir'
19631 hardcode_shlibpath_var_CXX=no
19632 case $host_os in
19633 solaris2.[0-5] | solaris2.[0-5].*) ;;
19634 *)
19635 # The compiler driver will combine and reorder linker options,
19636 # but understands `-z linker_flag'.
19637 # Supported since Solaris 2.6 (maybe 2.5.1?)
19638 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19639 ;;
19640 esac
19641 link_all_deplibs_CXX=yes
19642
19643 output_verbose_link_cmd='func_echo_all'
19644
19645 # Archives containing C++ object files must be created using
19646 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19647 # necessary to make sure instantiated templates are included
19648 # in the archive.
19649 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19650 ;;
19651 gcx*)
19652 # Green Hills C++ Compiler
19653 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19654
19655 # The C++ compiler must be used to create the archive.
19656 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19657 ;;
19658 *)
19659 # GNU C++ compiler with Solaris linker
19660 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19661 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19662 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19663 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19664 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19665 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19666
19667 # Commands to make compiler produce verbose output that lists
19668 # what "hidden" libraries, object files and flags are used when
19669 # linking a shared library.
19670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19671 else
19672 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19673 # platform.
19674 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19675 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19676 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19677
19678 # Commands to make compiler produce verbose output that lists
19679 # what "hidden" libraries, object files and flags are used when
19680 # linking a shared library.
19681 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19682 fi
19683
19684 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19685 case $host_os in
19686 solaris2.[0-5] | solaris2.[0-5].*) ;;
19687 *)
19688 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19689 ;;
19690 esac
19691 fi
19692 ;;
19693 esac
19694 ;;
19695
19696 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19697 no_undefined_flag_CXX='${wl}-z,text'
19698 archive_cmds_need_lc_CXX=no
19699 hardcode_shlibpath_var_CXX=no
19700 runpath_var='LD_RUN_PATH'
19701
19702 case $cc_basename in
19703 CC*)
19704 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19705 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19706 ;;
19707 *)
19708 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19709 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19710 ;;
19711 esac
19712 ;;
19713
19714 sysv5* | sco3.2v5* | sco5v6*)
19715 # Note: We can NOT use -z defs as we might desire, because we do not
19716 # link with -lc, and that would cause any symbols used from libc to
19717 # always be unresolved, which means just about no library would
19718 # ever link correctly. If we're not using GNU ld we use -z text
19719 # though, which does catch some bad symbols but isn't as heavy-handed
19720 # as -z defs.
19721 no_undefined_flag_CXX='${wl}-z,text'
19722 allow_undefined_flag_CXX='${wl}-z,nodefs'
19723 archive_cmds_need_lc_CXX=no
19724 hardcode_shlibpath_var_CXX=no
19725 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19726 hardcode_libdir_separator_CXX=':'
19727 link_all_deplibs_CXX=yes
19728 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19729 runpath_var='LD_RUN_PATH'
19730
19731 case $cc_basename in
19732 CC*)
19733 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19734 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19735 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19736 '"$old_archive_cmds_CXX"
19737 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19738 '"$reload_cmds_CXX"
19739 ;;
19740 *)
19741 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19742 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19743 ;;
19744 esac
19745 ;;
19746
19747 tandem*)
19748 case $cc_basename in
19749 NCC*)
19750 # NonStop-UX NCC 3.20
19751 # FIXME: insert proper C++ library support
19752 ld_shlibs_CXX=no
19753 ;;
19754 *)
19755 # FIXME: insert proper C++ library support
19756 ld_shlibs_CXX=no
19757 ;;
19758 esac
19759 ;;
19760
19761 vxworks*)
19762 # FIXME: insert proper C++ library support
19763 ld_shlibs_CXX=no
19764 ;;
19765
19766 *)
19767 # FIXME: insert proper C++ library support
19768 ld_shlibs_CXX=no
19769 ;;
19770 esac
19771
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19773 $as_echo "$ld_shlibs_CXX" >&6; }
19774 test "$ld_shlibs_CXX" = no && can_build_shared=no
19775
19776 GCC_CXX="$GXX"
19777 LD_CXX="$LD"
19778
19779 ## CAVEAT EMPTOR:
19780 ## There is no encapsulation within the following macros, do not change
19781 ## the running order or otherwise move them around unless you know exactly
19782 ## what you are doing...
19783 # Dependencies to place before and after the object being linked:
19784 predep_objects_CXX=
19785 postdep_objects_CXX=
19786 predeps_CXX=
19787 postdeps_CXX=
19788 compiler_lib_search_path_CXX=
19789
19790 cat > conftest.$ac_ext <<_LT_EOF
19791 class Foo
19792 {
19793 public:
19794 Foo (void) { a = 0; }
19795 private:
19796 int a;
19797 };
19798 _LT_EOF
19799
19800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19801 (eval $ac_compile) 2>&5
19802 ac_status=$?
19803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19804 test $ac_status = 0; }; then
19805 # Parse the compiler output and extract the necessary
19806 # objects, libraries and library flags.
19807
19808 # Sentinel used to keep track of whether or not we are before
19809 # the conftest object file.
19810 pre_test_object_deps_done=no
19811
19812 for p in `eval "$output_verbose_link_cmd"`; do
19813 case $p in
19814
19815 -L* | -R* | -l*)
19816 # Some compilers place space between "-{L,R}" and the path.
19817 # Remove the space.
19818 if test $p = "-L" ||
19819 test $p = "-R"; then
19820 prev=$p
19821 continue
19822 else
19823 prev=
19824 fi
19825
19826 if test "$pre_test_object_deps_done" = no; then
19827 case $p in
19828 -L* | -R*)
19829 # Internal compiler library paths should come after those
19830 # provided the user. The postdeps already come after the
19831 # user supplied libs so there is no need to process them.
19832 if test -z "$compiler_lib_search_path_CXX"; then
19833 compiler_lib_search_path_CXX="${prev}${p}"
19834 else
19835 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19836 fi
19837 ;;
19838 # The "-l" case would never come before the object being
19839 # linked, so don't bother handling this case.
19840 esac
19841 else
19842 if test -z "$postdeps_CXX"; then
19843 postdeps_CXX="${prev}${p}"
19844 else
19845 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19846 fi
19847 fi
19848 ;;
19849
19850 *.$objext)
19851 # This assumes that the test object file only shows up
19852 # once in the compiler output.
19853 if test "$p" = "conftest.$objext"; then
19854 pre_test_object_deps_done=yes
19855 continue
19856 fi
19857
19858 if test "$pre_test_object_deps_done" = no; then
19859 if test -z "$predep_objects_CXX"; then
19860 predep_objects_CXX="$p"
19861 else
19862 predep_objects_CXX="$predep_objects_CXX $p"
19863 fi
19864 else
19865 if test -z "$postdep_objects_CXX"; then
19866 postdep_objects_CXX="$p"
19867 else
19868 postdep_objects_CXX="$postdep_objects_CXX $p"
19869 fi
19870 fi
19871 ;;
19872
19873 *) ;; # Ignore the rest.
19874
19875 esac
19876 done
19877
19878 # Clean up.
19879 rm -f a.out a.exe
19880 else
19881 echo "libtool.m4: error: problem compiling CXX test program"
19882 fi
19883
19884 $RM -f confest.$objext
19885
19886 # PORTME: override above test on systems where it is broken
19887 case $host_os in
19888 interix[3-9]*)
19889 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19890 # hack all around it, let's just trust "g++" to DTRT.
19891 predep_objects_CXX=
19892 postdep_objects_CXX=
19893 postdeps_CXX=
19894 ;;
19895
19896 linux*)
19897 case `$CC -V 2>&1 | sed 5q` in
19898 *Sun\ C*)
19899 # Sun C++ 5.9
19900
19901 # The more standards-conforming stlport4 library is
19902 # incompatible with the Cstd library. Avoid specifying
19903 # it if it's in CXXFLAGS. Ignore libCrun as
19904 # -library=stlport4 depends on it.
19905 case " $CXX $CXXFLAGS " in
19906 *" -library=stlport4 "*)
19907 solaris_use_stlport4=yes
19908 ;;
19909 esac
19910
19911 if test "$solaris_use_stlport4" != yes; then
19912 postdeps_CXX='-library=Cstd -library=Crun'
19913 fi
19914 ;;
19915 esac
19916 ;;
19917
19918 solaris*)
19919 case $cc_basename in
19920 CC*)
19921 # The more standards-conforming stlport4 library is
19922 # incompatible with the Cstd library. Avoid specifying
19923 # it if it's in CXXFLAGS. Ignore libCrun as
19924 # -library=stlport4 depends on it.
19925 case " $CXX $CXXFLAGS " in
19926 *" -library=stlport4 "*)
19927 solaris_use_stlport4=yes
19928 ;;
19929 esac
19930
19931 # Adding this requires a known-good setup of shared libraries for
19932 # Sun compiler versions before 5.6, else PIC objects from an old
19933 # archive will be linked into the output, leading to subtle bugs.
19934 if test "$solaris_use_stlport4" != yes; then
19935 postdeps_CXX='-library=Cstd -library=Crun'
19936 fi
19937 ;;
19938 esac
19939 ;;
19940 esac
19941
19942
19943 case " $postdeps_CXX " in
19944 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19945 esac
19946 compiler_lib_search_dirs_CXX=
19947 if test -n "${compiler_lib_search_path_CXX}"; then
19948 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19949 fi
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981 lt_prog_compiler_wl_CXX=
19982 lt_prog_compiler_pic_CXX=
19983 lt_prog_compiler_static_CXX=
19984
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19986 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19987
19988 # C++ specific cases for pic, static, wl, etc.
19989 if test "$GXX" = yes; then
19990 lt_prog_compiler_wl_CXX='-Wl,'
19991 lt_prog_compiler_static_CXX='-static'
19992
19993 case $host_os in
19994 aix*)
19995 # All AIX code is PIC.
19996 if test "$host_cpu" = ia64; then
19997 # AIX 5 now supports IA64 processor
19998 lt_prog_compiler_static_CXX='-Bstatic'
19999 fi
20000 lt_prog_compiler_pic_CXX='-fPIC'
20001 ;;
20002
20003 amigaos*)
20004 case $host_cpu in
20005 powerpc)
20006 # see comment about AmigaOS4 .so support
20007 lt_prog_compiler_pic_CXX='-fPIC'
20008 ;;
20009 m68k)
20010 # FIXME: we need at least 68020 code to build shared libraries, but
20011 # adding the `-m68020' flag to GCC prevents building anything better,
20012 # like `-m68040'.
20013 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20014 ;;
20015 esac
20016 ;;
20017
20018 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20019 # PIC is the default for these OSes.
20020 ;;
20021 mingw* | cygwin* | os2* | pw32* | cegcc*)
20022 # This hack is so that the source file can tell whether it is being
20023 # built for inclusion in a dll (and should export symbols for example).
20024 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20025 # (--disable-auto-import) libraries
20026 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20027 ;;
20028 darwin* | rhapsody*)
20029 # PIC is the default on this platform
20030 # Common symbols not allowed in MH_DYLIB files
20031 lt_prog_compiler_pic_CXX='-fno-common'
20032 ;;
20033 *djgpp*)
20034 # DJGPP does not support shared libraries at all
20035 lt_prog_compiler_pic_CXX=
20036 ;;
20037 haiku*)
20038 # PIC is the default for Haiku.
20039 # The "-static" flag exists, but is broken.
20040 lt_prog_compiler_static_CXX=
20041 ;;
20042 interix[3-9]*)
20043 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20044 # Instead, we relocate shared libraries at runtime.
20045 ;;
20046 sysv4*MP*)
20047 if test -d /usr/nec; then
20048 lt_prog_compiler_pic_CXX=-Kconform_pic
20049 fi
20050 ;;
20051 hpux*)
20052 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20053 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20054 # sets the default TLS model and affects inlining.
20055 case $host_cpu in
20056 hppa*64*)
20057 ;;
20058 *)
20059 lt_prog_compiler_pic_CXX='-fPIC'
20060 ;;
20061 esac
20062 ;;
20063 *qnx* | *nto*)
20064 # QNX uses GNU C++, but need to define -shared option too, otherwise
20065 # it will coredump.
20066 lt_prog_compiler_pic_CXX='-fPIC -shared'
20067 ;;
20068 *)
20069 lt_prog_compiler_pic_CXX='-fPIC'
20070 ;;
20071 esac
20072 else
20073 case $host_os in
20074 aix[4-9]*)
20075 # All AIX code is PIC.
20076 if test "$host_cpu" = ia64; then
20077 # AIX 5 now supports IA64 processor
20078 lt_prog_compiler_static_CXX='-Bstatic'
20079 else
20080 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20081 fi
20082 ;;
20083 chorus*)
20084 case $cc_basename in
20085 cxch68*)
20086 # Green Hills C++ Compiler
20087 # _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"
20088 ;;
20089 esac
20090 ;;
20091 dgux*)
20092 case $cc_basename in
20093 ec++*)
20094 lt_prog_compiler_pic_CXX='-KPIC'
20095 ;;
20096 ghcx*)
20097 # Green Hills C++ Compiler
20098 lt_prog_compiler_pic_CXX='-pic'
20099 ;;
20100 *)
20101 ;;
20102 esac
20103 ;;
20104 freebsd* | dragonfly*)
20105 # FreeBSD uses GNU C++
20106 ;;
20107 hpux9* | hpux10* | hpux11*)
20108 case $cc_basename in
20109 CC*)
20110 lt_prog_compiler_wl_CXX='-Wl,'
20111 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20112 if test "$host_cpu" != ia64; then
20113 lt_prog_compiler_pic_CXX='+Z'
20114 fi
20115 ;;
20116 aCC*)
20117 lt_prog_compiler_wl_CXX='-Wl,'
20118 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20119 case $host_cpu in
20120 hppa*64*|ia64*)
20121 # +Z the default
20122 ;;
20123 *)
20124 lt_prog_compiler_pic_CXX='+Z'
20125 ;;
20126 esac
20127 ;;
20128 *)
20129 ;;
20130 esac
20131 ;;
20132 interix*)
20133 # This is c89, which is MS Visual C++ (no shared libs)
20134 # Anyone wants to do a port?
20135 ;;
20136 irix5* | irix6* | nonstopux*)
20137 case $cc_basename in
20138 CC*)
20139 lt_prog_compiler_wl_CXX='-Wl,'
20140 lt_prog_compiler_static_CXX='-non_shared'
20141 # CC pic flag -KPIC is the default.
20142 ;;
20143 *)
20144 ;;
20145 esac
20146 ;;
20147 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20148 case $cc_basename in
20149 KCC*)
20150 # KAI C++ Compiler
20151 lt_prog_compiler_wl_CXX='--backend -Wl,'
20152 lt_prog_compiler_pic_CXX='-fPIC'
20153 ;;
20154 ecpc* )
20155 # old Intel C++ for x86_64 which still supported -KPIC.
20156 lt_prog_compiler_wl_CXX='-Wl,'
20157 lt_prog_compiler_pic_CXX='-KPIC'
20158 lt_prog_compiler_static_CXX='-static'
20159 ;;
20160 icpc* )
20161 # Intel C++, used to be incompatible with GCC.
20162 # ICC 10 doesn't accept -KPIC any more.
20163 lt_prog_compiler_wl_CXX='-Wl,'
20164 lt_prog_compiler_pic_CXX='-fPIC'
20165 lt_prog_compiler_static_CXX='-static'
20166 ;;
20167 pgCC* | pgcpp*)
20168 # Portland Group C++ compiler
20169 lt_prog_compiler_wl_CXX='-Wl,'
20170 lt_prog_compiler_pic_CXX='-fpic'
20171 lt_prog_compiler_static_CXX='-Bstatic'
20172 ;;
20173 cxx*)
20174 # Compaq C++
20175 # Make sure the PIC flag is empty. It appears that all Alpha
20176 # Linux and Compaq Tru64 Unix objects are PIC.
20177 lt_prog_compiler_pic_CXX=
20178 lt_prog_compiler_static_CXX='-non_shared'
20179 ;;
20180 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20181 # IBM XL 8.0, 9.0 on PPC and BlueGene
20182 lt_prog_compiler_wl_CXX='-Wl,'
20183 lt_prog_compiler_pic_CXX='-qpic'
20184 lt_prog_compiler_static_CXX='-qstaticlink'
20185 ;;
20186 *)
20187 case `$CC -V 2>&1 | sed 5q` in
20188 *Sun\ C*)
20189 # Sun C++ 5.9
20190 lt_prog_compiler_pic_CXX='-KPIC'
20191 lt_prog_compiler_static_CXX='-Bstatic'
20192 lt_prog_compiler_wl_CXX='-Qoption ld '
20193 ;;
20194 esac
20195 ;;
20196 esac
20197 ;;
20198 lynxos*)
20199 ;;
20200 m88k*)
20201 ;;
20202 mvs*)
20203 case $cc_basename in
20204 cxx*)
20205 lt_prog_compiler_pic_CXX='-W c,exportall'
20206 ;;
20207 *)
20208 ;;
20209 esac
20210 ;;
20211 netbsd*)
20212 ;;
20213 *qnx* | *nto*)
20214 # QNX uses GNU C++, but need to define -shared option too, otherwise
20215 # it will coredump.
20216 lt_prog_compiler_pic_CXX='-fPIC -shared'
20217 ;;
20218 osf3* | osf4* | osf5*)
20219 case $cc_basename in
20220 KCC*)
20221 lt_prog_compiler_wl_CXX='--backend -Wl,'
20222 ;;
20223 RCC*)
20224 # Rational C++ 2.4.1
20225 lt_prog_compiler_pic_CXX='-pic'
20226 ;;
20227 cxx*)
20228 # Digital/Compaq C++
20229 lt_prog_compiler_wl_CXX='-Wl,'
20230 # Make sure the PIC flag is empty. It appears that all Alpha
20231 # Linux and Compaq Tru64 Unix objects are PIC.
20232 lt_prog_compiler_pic_CXX=
20233 lt_prog_compiler_static_CXX='-non_shared'
20234 ;;
20235 *)
20236 ;;
20237 esac
20238 ;;
20239 psos*)
20240 ;;
20241 solaris*)
20242 case $cc_basename in
20243 CC*)
20244 # Sun C++ 4.2, 5.x and Centerline C++
20245 lt_prog_compiler_pic_CXX='-KPIC'
20246 lt_prog_compiler_static_CXX='-Bstatic'
20247 lt_prog_compiler_wl_CXX='-Qoption ld '
20248 ;;
20249 gcx*)
20250 # Green Hills C++ Compiler
20251 lt_prog_compiler_pic_CXX='-PIC'
20252 ;;
20253 *)
20254 ;;
20255 esac
20256 ;;
20257 sunos4*)
20258 case $cc_basename in
20259 CC*)
20260 # Sun C++ 4.x
20261 lt_prog_compiler_pic_CXX='-pic'
20262 lt_prog_compiler_static_CXX='-Bstatic'
20263 ;;
20264 lcc*)
20265 # Lucid
20266 lt_prog_compiler_pic_CXX='-pic'
20267 ;;
20268 *)
20269 ;;
20270 esac
20271 ;;
20272 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20273 case $cc_basename in
20274 CC*)
20275 lt_prog_compiler_wl_CXX='-Wl,'
20276 lt_prog_compiler_pic_CXX='-KPIC'
20277 lt_prog_compiler_static_CXX='-Bstatic'
20278 ;;
20279 esac
20280 ;;
20281 tandem*)
20282 case $cc_basename in
20283 NCC*)
20284 # NonStop-UX NCC 3.20
20285 lt_prog_compiler_pic_CXX='-KPIC'
20286 ;;
20287 *)
20288 ;;
20289 esac
20290 ;;
20291 vxworks*)
20292 ;;
20293 *)
20294 lt_prog_compiler_can_build_shared_CXX=no
20295 ;;
20296 esac
20297 fi
20298
20299 case $host_os in
20300 # For platforms which do not support PIC, -DPIC is meaningless:
20301 *djgpp*)
20302 lt_prog_compiler_pic_CXX=
20303 ;;
20304 *)
20305 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20306 ;;
20307 esac
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20309 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20310
20311
20312
20313 #
20314 # Check to make sure the PIC flag actually works.
20315 #
20316 if test -n "$lt_prog_compiler_pic_CXX"; then
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20318 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20319 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20320 $as_echo_n "(cached) " >&6
20321 else
20322 lt_cv_prog_compiler_pic_works_CXX=no
20323 ac_outfile=conftest.$ac_objext
20324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20325 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20326 # Insert the option either (1) after the last *FLAGS variable, or
20327 # (2) before a word containing "conftest.", or (3) at the end.
20328 # Note that $ac_compile itself does not contain backslashes and begins
20329 # with a dollar sign (not a hyphen), so the echo should work correctly.
20330 # The option is referenced via a variable to avoid confusing sed.
20331 lt_compile=`echo "$ac_compile" | $SED \
20332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20334 -e 's:$: $lt_compiler_flag:'`
20335 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20336 (eval "$lt_compile" 2>conftest.err)
20337 ac_status=$?
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 if (exit $ac_status) && test -s "$ac_outfile"; then
20341 # The compiler can only warn and ignore the option if not recognized
20342 # So say no if there are warnings other than the usual output.
20343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20345 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20346 lt_cv_prog_compiler_pic_works_CXX=yes
20347 fi
20348 fi
20349 $RM conftest*
20350
20351 fi
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20353 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20354
20355 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20356 case $lt_prog_compiler_pic_CXX in
20357 "" | " "*) ;;
20358 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20359 esac
20360 else
20361 lt_prog_compiler_pic_CXX=
20362 lt_prog_compiler_can_build_shared_CXX=no
20363 fi
20364
20365 fi
20366
20367
20368
20369 #
20370 # Check to make sure the static flag actually works.
20371 #
20372 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20374 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20375 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20376 $as_echo_n "(cached) " >&6
20377 else
20378 lt_cv_prog_compiler_static_works_CXX=no
20379 save_LDFLAGS="$LDFLAGS"
20380 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20381 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20383 # The linker can only warn and ignore the option if not recognized
20384 # So say no if there are warnings
20385 if test -s conftest.err; then
20386 # Append any errors to the config.log.
20387 cat conftest.err 1>&5
20388 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20390 if diff conftest.exp conftest.er2 >/dev/null; then
20391 lt_cv_prog_compiler_static_works_CXX=yes
20392 fi
20393 else
20394 lt_cv_prog_compiler_static_works_CXX=yes
20395 fi
20396 fi
20397 $RM -r conftest*
20398 LDFLAGS="$save_LDFLAGS"
20399
20400 fi
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20402 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20403
20404 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20405 :
20406 else
20407 lt_prog_compiler_static_CXX=
20408 fi
20409
20410
20411
20412
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20415 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20416 $as_echo_n "(cached) " >&6
20417 else
20418 lt_cv_prog_compiler_c_o_CXX=no
20419 $RM -r conftest 2>/dev/null
20420 mkdir conftest
20421 cd conftest
20422 mkdir out
20423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20424
20425 lt_compiler_flag="-o out/conftest2.$ac_objext"
20426 # Insert the option either (1) after the last *FLAGS variable, or
20427 # (2) before a word containing "conftest.", or (3) at the end.
20428 # Note that $ac_compile itself does not contain backslashes and begins
20429 # with a dollar sign (not a hyphen), so the echo should work correctly.
20430 lt_compile=`echo "$ac_compile" | $SED \
20431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20433 -e 's:$: $lt_compiler_flag:'`
20434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20435 (eval "$lt_compile" 2>out/conftest.err)
20436 ac_status=$?
20437 cat out/conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20440 then
20441 # The compiler can only warn and ignore the option if not recognized
20442 # So say no if there are warnings
20443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20446 lt_cv_prog_compiler_c_o_CXX=yes
20447 fi
20448 fi
20449 chmod u+w . 2>&5
20450 $RM conftest*
20451 # SGI C++ compiler will create directory out/ii_files/ for
20452 # template instantiation
20453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20454 $RM out/* && rmdir out
20455 cd ..
20456 $RM -r conftest
20457 $RM conftest*
20458
20459 fi
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20461 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20462
20463
20464
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20467 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20468 $as_echo_n "(cached) " >&6
20469 else
20470 lt_cv_prog_compiler_c_o_CXX=no
20471 $RM -r conftest 2>/dev/null
20472 mkdir conftest
20473 cd conftest
20474 mkdir out
20475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20476
20477 lt_compiler_flag="-o out/conftest2.$ac_objext"
20478 # Insert the option either (1) after the last *FLAGS variable, or
20479 # (2) before a word containing "conftest.", or (3) at the end.
20480 # Note that $ac_compile itself does not contain backslashes and begins
20481 # with a dollar sign (not a hyphen), so the echo should work correctly.
20482 lt_compile=`echo "$ac_compile" | $SED \
20483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20485 -e 's:$: $lt_compiler_flag:'`
20486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20487 (eval "$lt_compile" 2>out/conftest.err)
20488 ac_status=$?
20489 cat out/conftest.err >&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20492 then
20493 # The compiler can only warn and ignore the option if not recognized
20494 # So say no if there are warnings
20495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20498 lt_cv_prog_compiler_c_o_CXX=yes
20499 fi
20500 fi
20501 chmod u+w . 2>&5
20502 $RM conftest*
20503 # SGI C++ compiler will create directory out/ii_files/ for
20504 # template instantiation
20505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20506 $RM out/* && rmdir out
20507 cd ..
20508 $RM -r conftest
20509 $RM conftest*
20510
20511 fi
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20513 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20514
20515
20516
20517
20518 hard_links="nottested"
20519 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20520 # do not overwrite the value of need_locks provided by the user
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20522 $as_echo_n "checking if we can lock with hard links... " >&6; }
20523 hard_links=yes
20524 $RM conftest*
20525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20526 touch conftest.a
20527 ln conftest.a conftest.b 2>&5 || hard_links=no
20528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20530 $as_echo "$hard_links" >&6; }
20531 if test "$hard_links" = no; then
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20533 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20534 need_locks=warn
20535 fi
20536 else
20537 need_locks=no
20538 fi
20539
20540
20541
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20543 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20544
20545 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20546 case $host_os in
20547 aix[4-9]*)
20548 # If we're using GNU nm, then we don't want the "-C" option.
20549 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20550 # Also, AIX nm treats weak defined symbols like other global defined
20551 # symbols, whereas GNU nm marks them as "W".
20552 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20553 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'
20554 else
20555 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'
20556 fi
20557 ;;
20558 pw32*)
20559 export_symbols_cmds_CXX="$ltdll_cmds"
20560 ;;
20561 cygwin* | mingw* | cegcc*)
20562 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'
20563 ;;
20564 *)
20565 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20566 ;;
20567 esac
20568 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20569
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20571 $as_echo "$ld_shlibs_CXX" >&6; }
20572 test "$ld_shlibs_CXX" = no && can_build_shared=no
20573
20574 with_gnu_ld_CXX=$with_gnu_ld
20575
20576
20577
20578
20579
20580
20581 #
20582 # Do we need to explicitly link libc?
20583 #
20584 case "x$archive_cmds_need_lc_CXX" in
20585 x|xyes)
20586 # Assume -lc should be added
20587 archive_cmds_need_lc_CXX=yes
20588
20589 if test "$enable_shared" = yes && test "$GCC" = yes; then
20590 case $archive_cmds_CXX in
20591 *'~'*)
20592 # FIXME: we may have to deal with multi-command sequences.
20593 ;;
20594 '$CC '*)
20595 # Test whether the compiler implicitly links with -lc since on some
20596 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20597 # to ld, don't add -lc before -lgcc.
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20600 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20601 $as_echo_n "(cached) " >&6
20602 else
20603 $RM conftest*
20604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20605
20606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20607 (eval $ac_compile) 2>&5
20608 ac_status=$?
20609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20610 test $ac_status = 0; } 2>conftest.err; then
20611 soname=conftest
20612 lib=conftest
20613 libobjs=conftest.$ac_objext
20614 deplibs=
20615 wl=$lt_prog_compiler_wl_CXX
20616 pic_flag=$lt_prog_compiler_pic_CXX
20617 compiler_flags=-v
20618 linker_flags=-v
20619 verstring=
20620 output_objdir=.
20621 libname=conftest
20622 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20623 allow_undefined_flag_CXX=
20624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20625 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20626 ac_status=$?
20627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20628 test $ac_status = 0; }
20629 then
20630 lt_cv_archive_cmds_need_lc_CXX=no
20631 else
20632 lt_cv_archive_cmds_need_lc_CXX=yes
20633 fi
20634 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20635 else
20636 cat conftest.err 1>&5
20637 fi
20638 $RM conftest*
20639
20640 fi
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20642 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20643 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20644 ;;
20645 esac
20646 fi
20647 ;;
20648 esac
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20714 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20715
20716 library_names_spec=
20717 libname_spec='lib$name'
20718 soname_spec=
20719 shrext_cmds=".so"
20720 postinstall_cmds=
20721 postuninstall_cmds=
20722 finish_cmds=
20723 finish_eval=
20724 shlibpath_var=
20725 shlibpath_overrides_runpath=unknown
20726 version_type=none
20727 dynamic_linker="$host_os ld.so"
20728 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20729 need_lib_prefix=unknown
20730 hardcode_into_libs=no
20731
20732 # when you set need_version to no, make sure it does not cause -set_version
20733 # flags to be left without arguments
20734 need_version=unknown
20735
20736 case $host_os in
20737 aix3*)
20738 version_type=linux
20739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20740 shlibpath_var=LIBPATH
20741
20742 # AIX 3 has no versioning support, so we append a major version to the name.
20743 soname_spec='${libname}${release}${shared_ext}$major'
20744 ;;
20745
20746 aix[4-9]*)
20747 version_type=linux
20748 need_lib_prefix=no
20749 need_version=no
20750 hardcode_into_libs=yes
20751 if test "$host_cpu" = ia64; then
20752 # AIX 5 supports IA64
20753 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20754 shlibpath_var=LD_LIBRARY_PATH
20755 else
20756 # With GCC up to 2.95.x, collect2 would create an import file
20757 # for dependence libraries. The import file would start with
20758 # the line `#! .'. This would cause the generated library to
20759 # depend on `.', always an invalid library. This was fixed in
20760 # development snapshots of GCC prior to 3.0.
20761 case $host_os in
20762 aix4 | aix4.[01] | aix4.[01].*)
20763 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20764 echo ' yes '
20765 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20766 :
20767 else
20768 can_build_shared=no
20769 fi
20770 ;;
20771 esac
20772 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20773 # soname into executable. Probably we can add versioning support to
20774 # collect2, so additional links can be useful in future.
20775 if test "$aix_use_runtimelinking" = yes; then
20776 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20777 # instead of lib<name>.a to let people know that these are not
20778 # typical AIX shared libraries.
20779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20780 else
20781 # We preserve .a as extension for shared libraries through AIX4.2
20782 # and later when we are not doing run time linking.
20783 library_names_spec='${libname}${release}.a $libname.a'
20784 soname_spec='${libname}${release}${shared_ext}$major'
20785 fi
20786 shlibpath_var=LIBPATH
20787 fi
20788 ;;
20789
20790 amigaos*)
20791 case $host_cpu in
20792 powerpc)
20793 # Since July 2007 AmigaOS4 officially supports .so libraries.
20794 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20796 ;;
20797 m68k)
20798 library_names_spec='$libname.ixlibrary $libname.a'
20799 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20800 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'
20801 ;;
20802 esac
20803 ;;
20804
20805 beos*)
20806 library_names_spec='${libname}${shared_ext}'
20807 dynamic_linker="$host_os ld.so"
20808 shlibpath_var=LIBRARY_PATH
20809 ;;
20810
20811 bsdi[45]*)
20812 version_type=linux
20813 need_version=no
20814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20815 soname_spec='${libname}${release}${shared_ext}$major'
20816 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20817 shlibpath_var=LD_LIBRARY_PATH
20818 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20819 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20820 # the default ld.so.conf also contains /usr/contrib/lib and
20821 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20822 # libtool to hard-code these into programs
20823 ;;
20824
20825 cygwin* | mingw* | pw32* | cegcc*)
20826 version_type=windows
20827 shrext_cmds=".dll"
20828 need_version=no
20829 need_lib_prefix=no
20830
20831 case $GCC,$host_os in
20832 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20833 library_names_spec='$libname.dll.a'
20834 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20835 postinstall_cmds='base_file=`basename \${file}`~
20836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20837 dldir=$destdir/`dirname \$dlpath`~
20838 test -d \$dldir || mkdir -p \$dldir~
20839 $install_prog $dir/$dlname \$dldir/$dlname~
20840 chmod a+x \$dldir/$dlname~
20841 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20842 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20843 fi'
20844 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20845 dlpath=$dir/\$dldll~
20846 $RM \$dlpath'
20847 shlibpath_overrides_runpath=yes
20848
20849 case $host_os in
20850 cygwin*)
20851 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20852 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20853
20854 ;;
20855 mingw* | cegcc*)
20856 # MinGW DLLs use traditional 'lib' prefix
20857 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20858 ;;
20859 pw32*)
20860 # pw32 DLLs use 'pw' prefix rather than 'lib'
20861 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20862 ;;
20863 esac
20864 ;;
20865
20866 *)
20867 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20868 ;;
20869 esac
20870 dynamic_linker='Win32 ld.exe'
20871 # FIXME: first we should search . and the directory the executable is in
20872 shlibpath_var=PATH
20873 ;;
20874
20875 darwin* | rhapsody*)
20876 dynamic_linker="$host_os dyld"
20877 version_type=darwin
20878 need_lib_prefix=no
20879 need_version=no
20880 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20881 soname_spec='${libname}${release}${major}$shared_ext'
20882 shlibpath_overrides_runpath=yes
20883 shlibpath_var=DYLD_LIBRARY_PATH
20884 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20885
20886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20887 ;;
20888
20889 dgux*)
20890 version_type=linux
20891 need_lib_prefix=no
20892 need_version=no
20893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20894 soname_spec='${libname}${release}${shared_ext}$major'
20895 shlibpath_var=LD_LIBRARY_PATH
20896 ;;
20897
20898 freebsd* | dragonfly*)
20899 # DragonFly does not have aout. When/if they implement a new
20900 # versioning mechanism, adjust this.
20901 if test -x /usr/bin/objformat; then
20902 objformat=`/usr/bin/objformat`
20903 else
20904 case $host_os in
20905 freebsd[23].*) objformat=aout ;;
20906 *) objformat=elf ;;
20907 esac
20908 fi
20909 version_type=freebsd-$objformat
20910 case $version_type in
20911 freebsd-elf*)
20912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20913 need_version=no
20914 need_lib_prefix=no
20915 ;;
20916 freebsd-*)
20917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20918 need_version=yes
20919 ;;
20920 esac
20921 shlibpath_var=LD_LIBRARY_PATH
20922 case $host_os in
20923 freebsd2.*)
20924 shlibpath_overrides_runpath=yes
20925 ;;
20926 freebsd3.[01]* | freebsdelf3.[01]*)
20927 shlibpath_overrides_runpath=yes
20928 hardcode_into_libs=yes
20929 ;;
20930 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20931 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20932 shlibpath_overrides_runpath=no
20933 hardcode_into_libs=yes
20934 ;;
20935 *) # from 4.6 on, and DragonFly
20936 shlibpath_overrides_runpath=yes
20937 hardcode_into_libs=yes
20938 ;;
20939 esac
20940 ;;
20941
20942 gnu*)
20943 version_type=linux
20944 need_lib_prefix=no
20945 need_version=no
20946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20947 soname_spec='${libname}${release}${shared_ext}$major'
20948 shlibpath_var=LD_LIBRARY_PATH
20949 hardcode_into_libs=yes
20950 ;;
20951
20952 haiku*)
20953 version_type=linux
20954 need_lib_prefix=no
20955 need_version=no
20956 dynamic_linker="$host_os runtime_loader"
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 shlibpath_var=LIBRARY_PATH
20960 shlibpath_overrides_runpath=yes
20961 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20962 hardcode_into_libs=yes
20963 ;;
20964
20965 hpux9* | hpux10* | hpux11*)
20966 # Give a soname corresponding to the major version so that dld.sl refuses to
20967 # link against other versions.
20968 version_type=sunos
20969 need_lib_prefix=no
20970 need_version=no
20971 case $host_cpu in
20972 ia64*)
20973 shrext_cmds='.so'
20974 hardcode_into_libs=yes
20975 dynamic_linker="$host_os dld.so"
20976 shlibpath_var=LD_LIBRARY_PATH
20977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 soname_spec='${libname}${release}${shared_ext}$major'
20980 if test "X$HPUX_IA64_MODE" = X32; then
20981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20982 else
20983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20984 fi
20985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20986 ;;
20987 hppa*64*)
20988 shrext_cmds='.sl'
20989 hardcode_into_libs=yes
20990 dynamic_linker="$host_os dld.sl"
20991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20994 soname_spec='${libname}${release}${shared_ext}$major'
20995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20997 ;;
20998 *)
20999 shrext_cmds='.sl'
21000 dynamic_linker="$host_os dld.sl"
21001 shlibpath_var=SHLIB_PATH
21002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21004 soname_spec='${libname}${release}${shared_ext}$major'
21005 ;;
21006 esac
21007 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21008 postinstall_cmds='chmod 555 $lib'
21009 # or fails outright, so override atomically:
21010 install_override_mode=555
21011 ;;
21012
21013 interix[3-9]*)
21014 version_type=linux
21015 need_lib_prefix=no
21016 need_version=no
21017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21018 soname_spec='${libname}${release}${shared_ext}$major'
21019 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21020 shlibpath_var=LD_LIBRARY_PATH
21021 shlibpath_overrides_runpath=no
21022 hardcode_into_libs=yes
21023 ;;
21024
21025 irix5* | irix6* | nonstopux*)
21026 case $host_os in
21027 nonstopux*) version_type=nonstopux ;;
21028 *)
21029 if test "$lt_cv_prog_gnu_ld" = yes; then
21030 version_type=linux
21031 else
21032 version_type=irix
21033 fi ;;
21034 esac
21035 need_lib_prefix=no
21036 need_version=no
21037 soname_spec='${libname}${release}${shared_ext}$major'
21038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21039 case $host_os in
21040 irix5* | nonstopux*)
21041 libsuff= shlibsuff=
21042 ;;
21043 *)
21044 case $LD in # libtool.m4 will add one of these switches to LD
21045 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21046 libsuff= shlibsuff= libmagic=32-bit;;
21047 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21048 libsuff=32 shlibsuff=N32 libmagic=N32;;
21049 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21050 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21051 *) libsuff= shlibsuff= libmagic=never-match;;
21052 esac
21053 ;;
21054 esac
21055 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21056 shlibpath_overrides_runpath=no
21057 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21058 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21059 hardcode_into_libs=yes
21060 ;;
21061
21062 # No shared lib support for Linux oldld, aout, or coff.
21063 linux*oldld* | linux*aout* | linux*coff*)
21064 dynamic_linker=no
21065 ;;
21066
21067 # This must be Linux ELF.
21068 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21069 version_type=linux
21070 need_lib_prefix=no
21071 need_version=no
21072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21073 soname_spec='${libname}${release}${shared_ext}$major'
21074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21075 shlibpath_var=LD_LIBRARY_PATH
21076 shlibpath_overrides_runpath=no
21077
21078 # Some binutils ld are patched to set DT_RUNPATH
21079 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21080 $as_echo_n "(cached) " >&6
21081 else
21082 lt_cv_shlibpath_overrides_runpath=no
21083 save_LDFLAGS=$LDFLAGS
21084 save_libdir=$libdir
21085 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21086 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21088 /* end confdefs.h. */
21089
21090 int
21091 main ()
21092 {
21093
21094 ;
21095 return 0;
21096 }
21097 _ACEOF
21098 if ac_fn_cxx_try_link "$LINENO"; then :
21099 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21100 lt_cv_shlibpath_overrides_runpath=yes
21101 fi
21102 fi
21103 rm -f core conftest.err conftest.$ac_objext \
21104 conftest$ac_exeext conftest.$ac_ext
21105 LDFLAGS=$save_LDFLAGS
21106 libdir=$save_libdir
21107
21108 fi
21109
21110 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21111
21112 # This implies no fast_install, which is unacceptable.
21113 # Some rework will be needed to allow for fast_install
21114 # before this can be enabled.
21115 hardcode_into_libs=yes
21116
21117 # Append ld.so.conf contents to the search path
21118 if test -f /etc/ld.so.conf; then
21119 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' ' '`
21120 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21121 fi
21122
21123 # We used to test for /lib/ld.so.1 and disable shared libraries on
21124 # powerpc, because MkLinux only supported shared libraries with the
21125 # GNU dynamic linker. Since this was broken with cross compilers,
21126 # most powerpc-linux boxes support dynamic linking these days and
21127 # people can always --disable-shared, the test was removed, and we
21128 # assume the GNU/Linux dynamic linker is in use.
21129 dynamic_linker='GNU/Linux ld.so'
21130 ;;
21131
21132 netbsd*)
21133 version_type=sunos
21134 need_lib_prefix=no
21135 need_version=no
21136 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21139 dynamic_linker='NetBSD (a.out) ld.so'
21140 else
21141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21142 soname_spec='${libname}${release}${shared_ext}$major'
21143 dynamic_linker='NetBSD ld.elf_so'
21144 fi
21145 shlibpath_var=LD_LIBRARY_PATH
21146 shlibpath_overrides_runpath=yes
21147 hardcode_into_libs=yes
21148 ;;
21149
21150 newsos6)
21151 version_type=linux
21152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21153 shlibpath_var=LD_LIBRARY_PATH
21154 shlibpath_overrides_runpath=yes
21155 ;;
21156
21157 *nto* | *qnx*)
21158 version_type=qnx
21159 need_lib_prefix=no
21160 need_version=no
21161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21162 soname_spec='${libname}${release}${shared_ext}$major'
21163 shlibpath_var=LD_LIBRARY_PATH
21164 shlibpath_overrides_runpath=no
21165 hardcode_into_libs=yes
21166 dynamic_linker='ldqnx.so'
21167 ;;
21168
21169 openbsd*)
21170 version_type=sunos
21171 sys_lib_dlsearch_path_spec="/usr/lib"
21172 need_lib_prefix=no
21173 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21174 case $host_os in
21175 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21176 *) need_version=no ;;
21177 esac
21178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21180 shlibpath_var=LD_LIBRARY_PATH
21181 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21182 case $host_os in
21183 openbsd2.[89] | openbsd2.[89].*)
21184 shlibpath_overrides_runpath=no
21185 ;;
21186 *)
21187 shlibpath_overrides_runpath=yes
21188 ;;
21189 esac
21190 else
21191 shlibpath_overrides_runpath=yes
21192 fi
21193 ;;
21194
21195 os2*)
21196 libname_spec='$name'
21197 shrext_cmds=".dll"
21198 need_lib_prefix=no
21199 library_names_spec='$libname${shared_ext} $libname.a'
21200 dynamic_linker='OS/2 ld.exe'
21201 shlibpath_var=LIBPATH
21202 ;;
21203
21204 osf3* | osf4* | osf5*)
21205 version_type=osf
21206 need_lib_prefix=no
21207 need_version=no
21208 soname_spec='${libname}${release}${shared_ext}$major'
21209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21210 shlibpath_var=LD_LIBRARY_PATH
21211 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21212 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21213 ;;
21214
21215 rdos*)
21216 dynamic_linker=no
21217 ;;
21218
21219 solaris*)
21220 version_type=linux
21221 need_lib_prefix=no
21222 need_version=no
21223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21224 soname_spec='${libname}${release}${shared_ext}$major'
21225 shlibpath_var=LD_LIBRARY_PATH
21226 shlibpath_overrides_runpath=yes
21227 hardcode_into_libs=yes
21228 # ldd complains unless libraries are executable
21229 postinstall_cmds='chmod +x $lib'
21230 ;;
21231
21232 sunos4*)
21233 version_type=sunos
21234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21235 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21236 shlibpath_var=LD_LIBRARY_PATH
21237 shlibpath_overrides_runpath=yes
21238 if test "$with_gnu_ld" = yes; then
21239 need_lib_prefix=no
21240 fi
21241 need_version=yes
21242 ;;
21243
21244 sysv4 | sysv4.3*)
21245 version_type=linux
21246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21247 soname_spec='${libname}${release}${shared_ext}$major'
21248 shlibpath_var=LD_LIBRARY_PATH
21249 case $host_vendor in
21250 sni)
21251 shlibpath_overrides_runpath=no
21252 need_lib_prefix=no
21253 runpath_var=LD_RUN_PATH
21254 ;;
21255 siemens)
21256 need_lib_prefix=no
21257 ;;
21258 motorola)
21259 need_lib_prefix=no
21260 need_version=no
21261 shlibpath_overrides_runpath=no
21262 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21263 ;;
21264 esac
21265 ;;
21266
21267 sysv4*MP*)
21268 if test -d /usr/nec ;then
21269 version_type=linux
21270 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21271 soname_spec='$libname${shared_ext}.$major'
21272 shlibpath_var=LD_LIBRARY_PATH
21273 fi
21274 ;;
21275
21276 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21277 version_type=freebsd-elf
21278 need_lib_prefix=no
21279 need_version=no
21280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21281 soname_spec='${libname}${release}${shared_ext}$major'
21282 shlibpath_var=LD_LIBRARY_PATH
21283 shlibpath_overrides_runpath=yes
21284 hardcode_into_libs=yes
21285 if test "$with_gnu_ld" = yes; then
21286 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21287 else
21288 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21289 case $host_os in
21290 sco3.2v5*)
21291 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21292 ;;
21293 esac
21294 fi
21295 sys_lib_dlsearch_path_spec='/usr/lib'
21296 ;;
21297
21298 tpf*)
21299 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21300 version_type=linux
21301 need_lib_prefix=no
21302 need_version=no
21303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21304 shlibpath_var=LD_LIBRARY_PATH
21305 shlibpath_overrides_runpath=no
21306 hardcode_into_libs=yes
21307 ;;
21308
21309 uts4*)
21310 version_type=linux
21311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21312 soname_spec='${libname}${release}${shared_ext}$major'
21313 shlibpath_var=LD_LIBRARY_PATH
21314 ;;
21315
21316 *)
21317 dynamic_linker=no
21318 ;;
21319 esac
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21321 $as_echo "$dynamic_linker" >&6; }
21322 test "$dynamic_linker" = no && can_build_shared=no
21323
21324 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21325 if test "$GCC" = yes; then
21326 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21327 fi
21328
21329 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21330 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21331 fi
21332 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21333 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21334 fi
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21374 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21375 hardcode_action_CXX=
21376 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21377 test -n "$runpath_var_CXX" ||
21378 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21379
21380 # We can hardcode non-existent directories.
21381 if test "$hardcode_direct_CXX" != no &&
21382 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21383 # have to relink, otherwise we might link with an installed library
21384 # when we should be linking with a yet-to-be-installed one
21385 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21386 test "$hardcode_minus_L_CXX" != no; then
21387 # Linking always hardcodes the temporary library directory.
21388 hardcode_action_CXX=relink
21389 else
21390 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21391 hardcode_action_CXX=immediate
21392 fi
21393 else
21394 # We cannot hardcode anything, or else we can only hardcode existing
21395 # directories.
21396 hardcode_action_CXX=unsupported
21397 fi
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21399 $as_echo "$hardcode_action_CXX" >&6; }
21400
21401 if test "$hardcode_action_CXX" = relink ||
21402 test "$inherit_rpath_CXX" = yes; then
21403 # Fast installation is not supported
21404 enable_fast_install=no
21405 elif test "$shlibpath_overrides_runpath" = yes ||
21406 test "$enable_shared" = no; then
21407 # Fast installation is not necessary
21408 enable_fast_install=needless
21409 fi
21410
21411
21412
21413
21414
21415
21416
21417 fi # test -n "$compiler"
21418
21419 CC=$lt_save_CC
21420 LDCXX=$LD
21421 LD=$lt_save_LD
21422 GCC=$lt_save_GCC
21423 with_gnu_ld=$lt_save_with_gnu_ld
21424 lt_cv_path_LDCXX=$lt_cv_path_LD
21425 lt_cv_path_LD=$lt_save_path_LD
21426 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21427 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21428 fi # test "$_lt_caught_CXX_error" != yes
21429
21430 ac_ext=c
21431 ac_cpp='$CPP $CPPFLAGS'
21432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451 # Only expand once:
21452
21453
21454
21455
21456
21457 # Identify the assembler which will work hand-in-glove with the newly
21458 # built GCC, so that we can examine its features. This is the assembler
21459 # which will be driven by the driver program.
21460 #
21461 # If build != host, and we aren't building gas in-tree, we identify a
21462 # build->target assembler and hope that it will have the same features
21463 # as the host->target assembler we'll be using.
21464 gcc_cv_gas_major_version=
21465 gcc_cv_gas_minor_version=
21466 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21467
21468 if test "${gcc_cv_as+set}" = set; then :
21469
21470 else
21471
21472 if test -x "$DEFAULT_ASSEMBLER"; then
21473 gcc_cv_as="$DEFAULT_ASSEMBLER"
21474 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21475 && test -f ../gas/Makefile \
21476 && test x$build = x$host; then
21477 gcc_cv_as=../gas/as-new$build_exeext
21478 elif test -x as$build_exeext; then
21479 # Build using assembler in the current directory.
21480 gcc_cv_as=./as$build_exeext
21481 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21482 gcc_cv_as="$AS_FOR_TARGET"
21483 else
21484 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21485 set dummy $AS_FOR_TARGET; ac_word=$2
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21487 $as_echo_n "checking for $ac_word... " >&6; }
21488 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21489 $as_echo_n "(cached) " >&6
21490 else
21491 case $gcc_cv_as in
21492 [\\/]* | ?:[\\/]*)
21493 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21494 ;;
21495 *)
21496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21497 for as_dir in $PATH
21498 do
21499 IFS=$as_save_IFS
21500 test -z "$as_dir" && as_dir=.
21501 for ac_exec_ext in '' $ac_executable_extensions; do
21502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21503 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21505 break 2
21506 fi
21507 done
21508 done
21509 IFS=$as_save_IFS
21510
21511 ;;
21512 esac
21513 fi
21514 gcc_cv_as=$ac_cv_path_gcc_cv_as
21515 if test -n "$gcc_cv_as"; then
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21517 $as_echo "$gcc_cv_as" >&6; }
21518 else
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21520 $as_echo "no" >&6; }
21521 fi
21522
21523
21524 fi
21525 fi
21526
21527 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21528
21529 case "$ORIGINAL_AS_FOR_TARGET" in
21530 ./as | ./as$build_exeext) ;;
21531 *) ac_config_files="$ac_config_files as:exec-tool.in"
21532 ;;
21533 esac
21534
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21536 $as_echo_n "checking what assembler to use... " >&6; }
21537 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21538 # Single tree build which includes gas. We want to prefer it
21539 # over whatever linker top-level may have detected, since
21540 # we'll use what we're building after installation anyway.
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21542 $as_echo "newly built gas" >&6; }
21543 in_tree_gas=yes
21544 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21545 for f in $gcc_cv_as_bfd_srcdir/configure \
21546 $gcc_cv_as_gas_srcdir/configure \
21547 $gcc_cv_as_gas_srcdir/configure.in \
21548 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21549 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21550 if test x$gcc_cv_gas_version != x; then
21551 break
21552 fi
21553 done
21554 case $gcc_cv_gas_version in
21555 VERSION=[0-9]*) ;;
21556 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21557 esac
21558 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21559 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21560 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21561 case $gcc_cv_gas_patch_version in
21562 "") gcc_cv_gas_patch_version="0" ;;
21563 esac
21564 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21565 + $gcc_cv_gas_minor_version \) \* 1000 \
21566 + $gcc_cv_gas_patch_version`
21567
21568 in_tree_gas_is_elf=no
21569 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21570 || (grep 'obj_format = multi' ../gas/Makefile \
21571 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21572 then
21573 in_tree_gas_is_elf=yes
21574 fi
21575 else
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21577 $as_echo "$gcc_cv_as" >&6; }
21578 in_tree_gas=no
21579 fi
21580
21581 default_ld=
21582 # Check whether --enable-ld was given.
21583 if test "${enable_ld+set}" = set; then :
21584 enableval=$enable_ld; case "${enableval}" in
21585 no)
21586 default_ld=ld.gold
21587 ;;
21588 esac
21589 fi
21590
21591
21592 install_gold_as_default=no
21593 # Check whether --enable-gold was given.
21594 if test "${enable_gold+set}" = set; then :
21595 enableval=$enable_gold; case "${enableval}" in
21596 default)
21597 install_gold_as_default=yes
21598 ;;
21599 yes)
21600 if test x${default_ld} != x; then
21601 install_gold_as_default=yes
21602 fi
21603 ;;
21604 no)
21605 ;;
21606 *)
21607 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21608 ;;
21609 esac
21610 fi
21611
21612
21613 # Identify the linker which will work hand-in-glove with the newly
21614 # built GCC, so that we can examine its features. This is the linker
21615 # which will be driven by the driver program.
21616 #
21617 # If build != host, and we aren't building gas in-tree, we identify a
21618 # build->target linker and hope that it will have the same features
21619 # as the host->target linker we'll be using.
21620 gcc_cv_gld_major_version=
21621 gcc_cv_gld_minor_version=
21622 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21623 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21624 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21625
21626 if test "${gcc_cv_ld+set}" = set; then :
21627
21628 else
21629
21630 if test -x "$DEFAULT_LINKER"; then
21631 gcc_cv_ld="$DEFAULT_LINKER"
21632 elif test $install_gold_as_default = yes \
21633 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21634 && test -f ../gold/Makefile \
21635 && test x$build = x$host; then
21636 gcc_cv_ld=../gold/ld-new$build_exeext
21637 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21638 && test -f ../ld/Makefile \
21639 && test x$build = x$host; then
21640 gcc_cv_ld=../ld/ld-new$build_exeext
21641 elif test -x collect-ld$build_exeext; then
21642 # Build using linker in the current directory.
21643 gcc_cv_ld=./collect-ld$build_exeext
21644 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21645 gcc_cv_ld="$LD_FOR_TARGET"
21646 else
21647 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21648 set dummy $LD_FOR_TARGET; ac_word=$2
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21650 $as_echo_n "checking for $ac_word... " >&6; }
21651 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21652 $as_echo_n "(cached) " >&6
21653 else
21654 case $gcc_cv_ld in
21655 [\\/]* | ?:[\\/]*)
21656 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21657 ;;
21658 *)
21659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21660 for as_dir in $PATH
21661 do
21662 IFS=$as_save_IFS
21663 test -z "$as_dir" && as_dir=.
21664 for ac_exec_ext in '' $ac_executable_extensions; do
21665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21666 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21668 break 2
21669 fi
21670 done
21671 done
21672 IFS=$as_save_IFS
21673
21674 ;;
21675 esac
21676 fi
21677 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21678 if test -n "$gcc_cv_ld"; then
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21680 $as_echo "$gcc_cv_ld" >&6; }
21681 else
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21683 $as_echo "no" >&6; }
21684 fi
21685
21686
21687 fi
21688 fi
21689
21690 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21691 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21692 # if the PLUGIN_LD is set ld-new, just have it as ld
21693 # as that is the installed named.
21694 if test x$PLUGIN_LD_SUFFIX = xld-new \
21695 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21696 PLUGIN_LD_SUFFIX=ld
21697 fi
21698
21699 # Check whether --with-plugin-ld was given.
21700 if test "${with_plugin_ld+set}" = set; then :
21701 withval=$with_plugin_ld; if test x"$withval" != x; then
21702 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21703 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21704 fi
21705 fi
21706
21707
21708
21709 cat >>confdefs.h <<_ACEOF
21710 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21711 _ACEOF
21712
21713
21714 # Check to see if we are using gold instead of ld
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21716 $as_echo_n "checking whether we are using gold... " >&6; }
21717 ld_is_gold=no
21718 if test x$gcc_cv_ld != x; then
21719 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21720 | grep "GNU gold" > /dev/null; then
21721 ld_is_gold=yes
21722 fi
21723 fi
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21725 $as_echo "$ld_is_gold" >&6; }
21726
21727 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21728
21729 case "$ORIGINAL_LD_FOR_TARGET" in
21730 ./collect-ld | ./collect-ld$build_exeext) ;;
21731 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21732 ;;
21733 esac
21734
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21736 $as_echo_n "checking what linker to use... " >&6; }
21737 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21738 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21739 # Single tree build which includes ld. We want to prefer it
21740 # over whatever linker top-level may have detected, since
21741 # we'll use what we're building after installation anyway.
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21743 $as_echo "newly built ld" >&6; }
21744 in_tree_ld=yes
21745 in_tree_ld_is_elf=no
21746 if (grep 'EMUL = .*elf' ../ld/Makefile \
21747 || grep 'EMUL = .*linux' ../ld/Makefile \
21748 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21749 in_tree_ld_is_elf=yes
21750 elif test "$ld_is_gold" = yes; then
21751 in_tree_ld_is_elf=yes
21752 fi
21753 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
21754 do
21755 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21756 if test x$gcc_cv_gld_version != x; then
21757 break
21758 fi
21759 done
21760 case $gcc_cv_gld_version in
21761 VERSION=[0-9]*) ;;
21762 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21763 esac
21764 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21765 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21766 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21767 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21768 else
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21770 $as_echo "$gcc_cv_ld" >&6; }
21771 in_tree_ld=no
21772 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21773 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21774 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21775 fi
21776
21777
21778
21779
21780 # Figure out what nm we will be using.
21781 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21782 if test "${gcc_cv_nm+set}" = set; then :
21783
21784 else
21785
21786 if test -f $gcc_cv_binutils_srcdir/configure.in \
21787 && test -f ../binutils/Makefile \
21788 && test x$build = x$host; then
21789 gcc_cv_nm=../binutils/nm-new$build_exeext
21790 elif test -x nm$build_exeext; then
21791 gcc_cv_nm=./nm$build_exeext
21792 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21793 gcc_cv_nm="$NM_FOR_TARGET"
21794 else
21795 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21796 set dummy $NM_FOR_TARGET; ac_word=$2
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21798 $as_echo_n "checking for $ac_word... " >&6; }
21799 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21800 $as_echo_n "(cached) " >&6
21801 else
21802 case $gcc_cv_nm in
21803 [\\/]* | ?:[\\/]*)
21804 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21805 ;;
21806 *)
21807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21808 for as_dir in $PATH
21809 do
21810 IFS=$as_save_IFS
21811 test -z "$as_dir" && as_dir=.
21812 for ac_exec_ext in '' $ac_executable_extensions; do
21813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21814 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21816 break 2
21817 fi
21818 done
21819 done
21820 IFS=$as_save_IFS
21821
21822 ;;
21823 esac
21824 fi
21825 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21826 if test -n "$gcc_cv_nm"; then
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21828 $as_echo "$gcc_cv_nm" >&6; }
21829 else
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21831 $as_echo "no" >&6; }
21832 fi
21833
21834
21835 fi
21836 fi
21837
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21839 $as_echo_n "checking what nm to use... " >&6; }
21840 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21841 # Single tree build which includes binutils.
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21843 $as_echo "newly built nm" >&6; }
21844 in_tree_nm=yes
21845 else
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21847 $as_echo "$gcc_cv_nm" >&6; }
21848 in_tree_nm=no
21849 fi
21850
21851 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21852
21853 case "$ORIGINAL_NM_FOR_TARGET" in
21854 ./nm | ./nm$build_exeext) ;;
21855 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21856 ;;
21857 esac
21858
21859
21860 # Figure out what objdump we will be using.
21861 if test "${gcc_cv_objdump+set}" = set; then :
21862
21863 else
21864
21865 if test -f $gcc_cv_binutils_srcdir/configure.in \
21866 && test -f ../binutils/Makefile \
21867 && test x$build = x$host; then
21868 # Single tree build which includes binutils.
21869 gcc_cv_objdump=../binutils/objdump$build_exeext
21870 elif test -x objdump$build_exeext; then
21871 gcc_cv_objdump=./objdump$build_exeext
21872 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21873 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21874 else
21875 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21876 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21878 $as_echo_n "checking for $ac_word... " >&6; }
21879 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21880 $as_echo_n "(cached) " >&6
21881 else
21882 case $gcc_cv_objdump in
21883 [\\/]* | ?:[\\/]*)
21884 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21885 ;;
21886 *)
21887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21888 for as_dir in $PATH
21889 do
21890 IFS=$as_save_IFS
21891 test -z "$as_dir" && as_dir=.
21892 for ac_exec_ext in '' $ac_executable_extensions; do
21893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21894 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21896 break 2
21897 fi
21898 done
21899 done
21900 IFS=$as_save_IFS
21901
21902 ;;
21903 esac
21904 fi
21905 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21906 if test -n "$gcc_cv_objdump"; then
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21908 $as_echo "$gcc_cv_objdump" >&6; }
21909 else
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21911 $as_echo "no" >&6; }
21912 fi
21913
21914
21915 fi
21916 fi
21917
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21919 $as_echo_n "checking what objdump to use... " >&6; }
21920 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21921 # Single tree build which includes binutils.
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21923 $as_echo "newly built objdump" >&6; }
21924 elif test x$gcc_cv_objdump = x; then
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21926 $as_echo "not found" >&6; }
21927 else
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21929 $as_echo "$gcc_cv_objdump" >&6; }
21930 fi
21931
21932 # Figure out what readelf we will be using.
21933 if test "${gcc_cv_readelf+set}" = set; then :
21934
21935 else
21936
21937 if test -f $gcc_cv_binutils_srcdir/configure.in \
21938 && test -f ../binutils/Makefile \
21939 && test x$build = x$host; then
21940 # Single tree build which includes binutils.
21941 gcc_cv_readelf=../binutils/readelf$build_exeext
21942 elif test -x readelf$build_exeext; then
21943 gcc_cv_readelf=./readelf$build_exeext
21944 else
21945 # Extract the first word of "readelf", so it can be a program name with args.
21946 set dummy readelf; ac_word=$2
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21948 $as_echo_n "checking for $ac_word... " >&6; }
21949 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21950 $as_echo_n "(cached) " >&6
21951 else
21952 case $gcc_cv_readelf in
21953 [\\/]* | ?:[\\/]*)
21954 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21955 ;;
21956 *)
21957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21958 for as_dir in $PATH
21959 do
21960 IFS=$as_save_IFS
21961 test -z "$as_dir" && as_dir=.
21962 for ac_exec_ext in '' $ac_executable_extensions; do
21963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21964 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21966 break 2
21967 fi
21968 done
21969 done
21970 IFS=$as_save_IFS
21971
21972 ;;
21973 esac
21974 fi
21975 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21976 if test -n "$gcc_cv_readelf"; then
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21978 $as_echo "$gcc_cv_readelf" >&6; }
21979 else
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21981 $as_echo "no" >&6; }
21982 fi
21983
21984
21985 fi
21986 fi
21987
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21989 $as_echo_n "checking what readelf to use... " >&6; }
21990 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21991 # Single tree build which includes binutils.
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21993 $as_echo "newly built readelf" >&6; }
21994 elif test x$gcc_cv_readelf = x; then
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21996 $as_echo "not found" >&6; }
21997 else
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21999 $as_echo "$gcc_cv_readelf" >&6; }
22000 fi
22001
22002 # Figure out what assembler alignment features are present.
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22004 $as_echo_n "checking assembler flags... " >&6; }
22005 if test "${gcc_cv_as_flags+set}" = set; then :
22006 $as_echo_n "(cached) " >&6
22007 else
22008 case "$target" in
22009 i[34567]86-*-linux*)
22010 gcc_cv_as_flags=--32
22011 ;;
22012 x86_64-*-linux-gnux32)
22013 gcc_cv_as_flags=--x32
22014 ;;
22015 x86_64-*-linux*)
22016 gcc_cv_as_flags=--64
22017 ;;
22018 powerpc*-*-darwin*)
22019 gcc_cv_as_flags="-arch ppc"
22020 ;;
22021 *)
22022 gcc_cv_as_flags=" "
22023 ;;
22024 esac
22025 fi
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22027 $as_echo "$gcc_cv_as_flags" >&6; }
22028
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22030 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22031 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22032 $as_echo_n "(cached) " >&6
22033 else
22034 gcc_cv_as_balign_and_p2align=no
22035 if test $in_tree_gas = yes; then
22036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22037 then gcc_cv_as_balign_and_p2align=yes
22038 fi
22039 elif test x$gcc_cv_as != x; then
22040 $as_echo '.balign 4
22041 .p2align 2' > conftest.s
22042 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22044 (eval $ac_try) 2>&5
22045 ac_status=$?
22046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22047 test $ac_status = 0; }; }
22048 then
22049 gcc_cv_as_balign_and_p2align=yes
22050 else
22051 echo "configure: failed program was" >&5
22052 cat conftest.s >&5
22053 fi
22054 rm -f conftest.o conftest.s
22055 fi
22056 fi
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22058 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22059 if test $gcc_cv_as_balign_and_p2align = yes; then
22060
22061 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22062
22063 fi
22064
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22066 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22067 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22068 $as_echo_n "(cached) " >&6
22069 else
22070 gcc_cv_as_max_skip_p2align=no
22071 if test $in_tree_gas = yes; then
22072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22073 then gcc_cv_as_max_skip_p2align=yes
22074 fi
22075 elif test x$gcc_cv_as != x; then
22076 $as_echo '.p2align 4,,7' > conftest.s
22077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22079 (eval $ac_try) 2>&5
22080 ac_status=$?
22081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22082 test $ac_status = 0; }; }
22083 then
22084 gcc_cv_as_max_skip_p2align=yes
22085 else
22086 echo "configure: failed program was" >&5
22087 cat conftest.s >&5
22088 fi
22089 rm -f conftest.o conftest.s
22090 fi
22091 fi
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22093 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22094 if test $gcc_cv_as_max_skip_p2align = yes; then
22095
22096 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22097
22098 fi
22099
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22101 $as_echo_n "checking assembler for .literal16... " >&6; }
22102 if test "${gcc_cv_as_literal16+set}" = set; then :
22103 $as_echo_n "(cached) " >&6
22104 else
22105 gcc_cv_as_literal16=no
22106 if test $in_tree_gas = yes; then
22107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22108 then gcc_cv_as_literal16=yes
22109 fi
22110 elif test x$gcc_cv_as != x; then
22111 $as_echo '.literal16' > conftest.s
22112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22117 test $ac_status = 0; }; }
22118 then
22119 gcc_cv_as_literal16=yes
22120 else
22121 echo "configure: failed program was" >&5
22122 cat conftest.s >&5
22123 fi
22124 rm -f conftest.o conftest.s
22125 fi
22126 fi
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22128 $as_echo "$gcc_cv_as_literal16" >&6; }
22129 if test $gcc_cv_as_literal16 = yes; then
22130
22131 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22132
22133 fi
22134
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22136 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22137 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22138 $as_echo_n "(cached) " >&6
22139 else
22140 gcc_cv_as_subsection_m1=no
22141 if test $in_tree_gas = yes; then
22142 if test $in_tree_gas_is_elf = yes \
22143 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22144 then gcc_cv_as_subsection_m1=yes
22145 fi
22146 elif test x$gcc_cv_as != x; then
22147 $as_echo 'conftest_label1: .word 0
22148 .subsection -1
22149 conftest_label2: .word 0
22150 .previous' > conftest.s
22151 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22153 (eval $ac_try) 2>&5
22154 ac_status=$?
22155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22156 test $ac_status = 0; }; }
22157 then
22158 if test x$gcc_cv_nm != x; then
22159 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22160 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22161 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22162 then :
22163 else gcc_cv_as_subsection_m1=yes
22164 fi
22165 rm -f conftest.nm1 conftest.nm2
22166 fi
22167 else
22168 echo "configure: failed program was" >&5
22169 cat conftest.s >&5
22170 fi
22171 rm -f conftest.o conftest.s
22172 fi
22173 fi
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22175 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22176 if test $gcc_cv_as_subsection_m1 = yes; then
22177
22178 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22179
22180 fi
22181
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22183 $as_echo_n "checking assembler for .weak... " >&6; }
22184 if test "${gcc_cv_as_weak+set}" = set; then :
22185 $as_echo_n "(cached) " >&6
22186 else
22187 gcc_cv_as_weak=no
22188 if test $in_tree_gas = yes; then
22189 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22190 then gcc_cv_as_weak=yes
22191 fi
22192 elif test x$gcc_cv_as != x; then
22193 $as_echo ' .weak foobar' > conftest.s
22194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22196 (eval $ac_try) 2>&5
22197 ac_status=$?
22198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22199 test $ac_status = 0; }; }
22200 then
22201 gcc_cv_as_weak=yes
22202 else
22203 echo "configure: failed program was" >&5
22204 cat conftest.s >&5
22205 fi
22206 rm -f conftest.o conftest.s
22207 fi
22208 fi
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22210 $as_echo "$gcc_cv_as_weak" >&6; }
22211 if test $gcc_cv_as_weak = yes; then
22212
22213 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22214
22215 fi
22216
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22218 $as_echo_n "checking assembler for .weakref... " >&6; }
22219 if test "${gcc_cv_as_weakref+set}" = set; then :
22220 $as_echo_n "(cached) " >&6
22221 else
22222 gcc_cv_as_weakref=no
22223 if test $in_tree_gas = yes; then
22224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22225 then gcc_cv_as_weakref=yes
22226 fi
22227 elif test x$gcc_cv_as != x; then
22228 $as_echo ' .weakref foobar, barfnot' > conftest.s
22229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22231 (eval $ac_try) 2>&5
22232 ac_status=$?
22233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22234 test $ac_status = 0; }; }
22235 then
22236 gcc_cv_as_weakref=yes
22237 else
22238 echo "configure: failed program was" >&5
22239 cat conftest.s >&5
22240 fi
22241 rm -f conftest.o conftest.s
22242 fi
22243 fi
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22245 $as_echo "$gcc_cv_as_weakref" >&6; }
22246 if test $gcc_cv_as_weakref = yes; then
22247
22248 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22249
22250 fi
22251
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22253 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22254 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22255 $as_echo_n "(cached) " >&6
22256 else
22257 gcc_cv_as_nsubspa_comdat=no
22258 if test $in_tree_gas = yes; then
22259 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22260 then gcc_cv_as_nsubspa_comdat=yes
22261 fi
22262 elif test x$gcc_cv_as != x; then
22263 $as_echo ' .SPACE $TEXT$
22264 .NSUBSPA $CODE$,COMDAT' > conftest.s
22265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22267 (eval $ac_try) 2>&5
22268 ac_status=$?
22269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22270 test $ac_status = 0; }; }
22271 then
22272 gcc_cv_as_nsubspa_comdat=yes
22273 else
22274 echo "configure: failed program was" >&5
22275 cat conftest.s >&5
22276 fi
22277 rm -f conftest.o conftest.s
22278 fi
22279 fi
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22281 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22282 if test $gcc_cv_as_nsubspa_comdat = yes; then
22283
22284 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22285
22286 fi
22287
22288 # .hidden needs to be supported in both the assembler and the linker,
22289 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22290 # This is irritatingly difficult to feature test for; we have to check the
22291 # date string after the version number. If we've got an in-tree
22292 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22293 # to be safe.
22294 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22296 $as_echo_n "checking assembler for .hidden... " >&6; }
22297 if test "${gcc_cv_as_hidden+set}" = set; then :
22298 $as_echo_n "(cached) " >&6
22299 else
22300 gcc_cv_as_hidden=no
22301 if test $in_tree_gas = yes; then
22302 if test $in_tree_gas_is_elf = yes \
22303 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22304 then gcc_cv_as_hidden=yes
22305 fi
22306 elif test x$gcc_cv_as != x; then
22307 $as_echo ' .hidden foobar
22308 foobar:' > conftest.s
22309 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22311 (eval $ac_try) 2>&5
22312 ac_status=$?
22313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22314 test $ac_status = 0; }; }
22315 then
22316 gcc_cv_as_hidden=yes
22317 else
22318 echo "configure: failed program was" >&5
22319 cat conftest.s >&5
22320 fi
22321 rm -f conftest.o conftest.s
22322 fi
22323 fi
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22325 $as_echo "$gcc_cv_as_hidden" >&6; }
22326
22327 case "${target}" in
22328 *-*-darwin*)
22329 # Darwin as has some visibility support, though with a different syntax.
22330 gcc_cv_as_hidden=yes
22331 ;;
22332 esac
22333
22334 # gnu_indirect_function type is an extension proposed at
22335 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22336 # selection of function implementation
22337 # Check whether --enable-gnu-indirect-function was given.
22338 if test "${enable_gnu_indirect_function+set}" = set; then :
22339 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22340 yes | no) ;;
22341 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22342 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22343 esac
22344 else
22345 enable_gnu_indirect_function="$default_gnu_indirect_function"
22346 fi
22347
22348
22349 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22350
22351 cat >>confdefs.h <<_ACEOF
22352 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22353 _ACEOF
22354
22355
22356
22357 if test $in_tree_ld != yes ; then
22358 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22359 if echo "$ld_ver" | grep GNU > /dev/null; then
22360 if test x"$ld_is_gold" = xyes; then
22361 # GNU gold --version looks like this:
22362 #
22363 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22364 #
22365 # We extract the binutils version which is more familiar and specific
22366 # than the gold version.
22367 ld_vers=`echo $ld_ver | sed -n \
22368 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22369 else
22370 # GNU ld --version looks like this:
22371 #
22372 # GNU ld (GNU Binutils) 2.21.51.20110225
22373 ld_vers=`echo $ld_ver | sed -n \
22374 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22375 fi
22376 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'`
22377 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22378 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22379 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22380 else
22381 case "${target}" in
22382 *-*-solaris2*)
22383 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22384 # format.
22385 #
22386 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22387 # /usr/ccs/bin/ld has been configured.
22388 ld_ver=`$gcc_cv_ld -V 2>&1`
22389 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22390 ld_vers=`echo $ld_ver | sed -n \
22391 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22392 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22393 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22394 fi
22395 ;;
22396 esac
22397 fi
22398 fi
22399
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22401 $as_echo_n "checking linker for .hidden support... " >&6; }
22402 if test "${gcc_cv_ld_hidden+set}" = set; then :
22403 $as_echo_n "(cached) " >&6
22404 else
22405 if test $in_tree_ld = yes ; then
22406 gcc_cv_ld_hidden=no
22407 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 \
22408 && test $in_tree_ld_is_elf = yes; then
22409 gcc_cv_ld_hidden=yes
22410 fi
22411 else
22412 gcc_cv_ld_hidden=yes
22413 if test x"$ld_is_gold" = xyes; then
22414 :
22415 elif echo "$ld_ver" | grep GNU > /dev/null; then
22416 case "${target}" in
22417 mmix-knuth-mmixware)
22418 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22419 gcc_cv_ld_hidden=no
22420 ;;
22421 esac
22422 if test 0"$ld_date" -lt 20020404; then
22423 if test -n "$ld_date"; then
22424 # If there was date string, but was earlier than 2002-04-04, fail
22425 gcc_cv_ld_hidden=no
22426 elif test -z "$ld_vers"; then
22427 # If there was no date string nor ld version number, something is wrong
22428 gcc_cv_ld_hidden=no
22429 else
22430 test -z "$ld_vers_patch" && ld_vers_patch=0
22431 if test "$ld_vers_major" -lt 2; then
22432 gcc_cv_ld_hidden=no
22433 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22434 gcc_cv_ld_hidden="no"
22435 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22436 gcc_cv_ld_hidden=no
22437 fi
22438 fi
22439 fi
22440 else
22441 case "${target}" in
22442 *-*-darwin*)
22443 # Darwin ld has some visibility support.
22444 gcc_cv_ld_hidden=yes
22445 ;;
22446 hppa64*-*-hpux* | ia64*-*-hpux*)
22447 gcc_cv_ld_hidden=yes
22448 ;;
22449 *-*-solaris2.1[0-9]*)
22450 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22451 # .symbolic was only added in Solaris 9 12/02.
22452 gcc_cv_ld_hidden=yes
22453 ;;
22454 *)
22455 gcc_cv_ld_hidden=no
22456 ;;
22457 esac
22458 fi
22459 fi
22460 fi
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22462 $as_echo "$gcc_cv_ld_hidden" >&6; }
22463 libgcc_visibility=no
22464
22465
22466 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22467 libgcc_visibility=yes
22468
22469 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22470
22471 fi
22472
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22474 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22475 gcc_cv_ld_ro_rw_mix=unknown
22476 if test $in_tree_ld = yes ; then
22477 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 \
22478 && test $in_tree_ld_is_elf = yes; then
22479 gcc_cv_ld_ro_rw_mix=read-write
22480 fi
22481 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22482 echo '.section myfoosect, "a"' > conftest1.s
22483 echo '.section myfoosect, "aw"' > conftest2.s
22484 echo '.byte 1' >> conftest2.s
22485 echo '.section myfoosect, "a"' > conftest3.s
22486 echo '.byte 0' >> conftest3.s
22487 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22488 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22489 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22490 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22491 conftest2.o conftest3.o > /dev/null 2>&1; then
22492 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22493 | sed -e '/myfoosect/!d' -e N`
22494 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22495 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22496 gcc_cv_ld_ro_rw_mix=read-only
22497 else
22498 gcc_cv_ld_ro_rw_mix=read-write
22499 fi
22500 fi
22501 fi
22502 rm -f conftest.* conftest[123].*
22503 fi
22504 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22505
22506 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22507
22508 fi
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22510 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22511
22512 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22513 case "${target}" in
22514 *-*-solaris2*)
22515 #
22516 # Solaris 2 ld -V output looks like this for a regular version:
22517 #
22518 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22519 #
22520 # but test versions add stuff at the end:
22521 #
22522 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22523 #
22524 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22525 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22526 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22527 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22528 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22529 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22530 fi
22531 ;;
22532 esac
22533 fi
22534
22535 # Check whether --enable-initfini-array was given.
22536 if test "${enable_initfini_array+set}" = set; then :
22537 enableval=$enable_initfini_array;
22538 else
22539
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22541 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22542 if test "${gcc_cv_initfini_array+set}" = set; then :
22543 $as_echo_n "(cached) " >&6
22544 else
22545 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22546 case "${target}" in
22547 ia64-*)
22548 if test "$cross_compiling" = yes; then :
22549 gcc_cv_initfini_array=no
22550 else
22551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22552 /* end confdefs.h. */
22553
22554 #ifndef __ELF__
22555 #error Not an ELF OS
22556 #endif
22557 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22558 if it can be used. */
22559 static int x = -1;
22560 int main (void) { return x; }
22561 int foo (void) { x = 0; }
22562 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22563
22564 _ACEOF
22565 if ac_fn_c_try_run "$LINENO"; then :
22566 gcc_cv_initfini_array=yes
22567 else
22568 gcc_cv_initfini_array=no
22569 fi
22570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22571 conftest.$ac_objext conftest.beam conftest.$ac_ext
22572 fi
22573 ;;
22574 *)
22575 gcc_cv_initfini_array=no
22576 if test $in_tree_ld = yes ; then
22577 if test "$gcc_cv_gld_major_version" -eq 2 \
22578 -a "$gcc_cv_gld_minor_version" -ge 22 \
22579 -o "$gcc_cv_gld_major_version" -gt 2 \
22580 && test $in_tree_ld_is_elf = yes; then
22581 gcc_cv_initfini_array=yes
22582 fi
22583 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22584 cat > conftest.s <<\EOF
22585 .section .dtors,"a",%progbits
22586 .balign 4
22587 .byte 'A', 'A', 'A', 'A'
22588 .section .ctors,"a",%progbits
22589 .balign 4
22590 .byte 'B', 'B', 'B', 'B'
22591 .section .fini_array.65530,"a",%progbits
22592 .balign 4
22593 .byte 'C', 'C', 'C', 'C'
22594 .section .init_array.65530,"a",%progbits
22595 .balign 4
22596 .byte 'D', 'D', 'D', 'D'
22597 .section .dtors.64528,"a",%progbits
22598 .balign 4
22599 .byte 'E', 'E', 'E', 'E'
22600 .section .ctors.64528,"a",%progbits
22601 .balign 4
22602 .byte 'F', 'F', 'F', 'F'
22603 .section .fini_array.01005,"a",%progbits
22604 .balign 4
22605 .byte 'G', 'G', 'G', 'G'
22606 .section .init_array.01005,"a",%progbits
22607 .balign 4
22608 .byte 'H', 'H', 'H', 'H'
22609 .text
22610 .globl _start
22611 _start:
22612 EOF
22613 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22614 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22615 && $gcc_cv_objdump -s -j .init_array conftest \
22616 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22617 && $gcc_cv_objdump -s -j .fini_array conftest \
22618 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22619 gcc_cv_initfini_array=yes
22620 fi
22621 rm -f conftest conftest.*
22622 fi
22623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h. */
22625
22626 #ifndef __ELF__
22627 # error Not an ELF OS
22628 #endif
22629 #include <stdlib.h>
22630 #if defined __GLIBC_PREREQ
22631 # if __GLIBC_PREREQ (2, 4)
22632 # else
22633 # error GLIBC 2.4 required
22634 # endif
22635 #else
22636 # if defined __sun__ && defined __svr4__
22637 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22638 # else
22639 # error The C library not known to support .init_array/.fini_array
22640 # endif
22641 #endif
22642
22643 _ACEOF
22644 if ac_fn_c_try_cpp "$LINENO"; then :
22645
22646 else
22647 gcc_cv_initfini_array=no
22648 fi
22649 rm -f conftest.err conftest.$ac_ext;;
22650 esac
22651 else
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22653 $as_echo_n "checking cross compile... guessing... " >&6; }
22654 gcc_cv_initfini_array=no
22655 fi
22656 fi
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22658 $as_echo "$gcc_cv_initfini_array" >&6; }
22659 enable_initfini_array=$gcc_cv_initfini_array
22660
22661 fi
22662
22663 if test $enable_initfini_array = yes; then
22664
22665 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22666
22667 fi
22668
22669 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22671 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22672 if test "${gcc_cv_as_leb128+set}" = set; then :
22673 $as_echo_n "(cached) " >&6
22674 else
22675 gcc_cv_as_leb128=no
22676 if test $in_tree_gas = yes; then
22677 if test $in_tree_gas_is_elf = yes \
22678 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22679 then gcc_cv_as_leb128=yes
22680 fi
22681 elif test x$gcc_cv_as != x; then
22682 $as_echo ' .data
22683 .uleb128 L2 - L1
22684 L1:
22685 .uleb128 1280
22686 .sleb128 -1010
22687 L2:' > conftest.s
22688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22690 (eval $ac_try) 2>&5
22691 ac_status=$?
22692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22693 test $ac_status = 0; }; }
22694 then
22695 # GAS versions before 2.11 do not support uleb128,
22696 # despite appearing to.
22697 # ??? There exists an elf-specific test that will crash
22698 # the assembler. Perhaps it's better to figure out whether
22699 # arbitrary sections are supported and try the test.
22700 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22701 if echo "$as_ver" | grep GNU > /dev/null; then
22702 as_vers=`echo $as_ver | sed -n \
22703 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22704 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22705 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22706 if test $as_major -eq 2 && test $as_minor -lt 11
22707 then :
22708 else gcc_cv_as_leb128=yes
22709 fi
22710 fi
22711 else
22712 echo "configure: failed program was" >&5
22713 cat conftest.s >&5
22714 fi
22715 rm -f conftest.o conftest.s
22716 fi
22717 fi
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22719 $as_echo "$gcc_cv_as_leb128" >&6; }
22720 if test $gcc_cv_as_leb128 = yes; then
22721
22722 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22723
22724 fi
22725
22726 # Check if we have assembler support for unwind directives.
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22728 $as_echo_n "checking assembler for cfi directives... " >&6; }
22729 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22730 $as_echo_n "(cached) " >&6
22731 else
22732 gcc_cv_as_cfi_directive=no
22733 if test x$gcc_cv_as != x; then
22734 $as_echo ' .text
22735 .cfi_startproc
22736 .cfi_offset 0, 0
22737 .cfi_same_value 1
22738 .cfi_def_cfa 1, 2
22739 .cfi_escape 1, 2, 3, 4, 5
22740 .cfi_endproc' > conftest.s
22741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22743 (eval $ac_try) 2>&5
22744 ac_status=$?
22745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22746 test $ac_status = 0; }; }
22747 then
22748 case "$target" in
22749 *-*-solaris*)
22750 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22751 # read-only and read-write sections, we need to make sure that the
22752 # assembler used emits read-write .eh_frame sections.
22753 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22754 if test "x$gcc_cv_objdump" != x; then
22755 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22756 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22757 gcc_cv_as_cfi_directive=no
22758 else
22759 case "$target" in
22760 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22761 # On Solaris/x86, make sure that GCC and assembler agree on using
22762 # read-only .eh_frame sections for 64-bit.
22763 if test x$gas = xyes; then
22764 as_ix86_64_opt="--64"
22765 else
22766 as_ix86_64_opt="-xarch=amd64"
22767 fi
22768 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22769 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22770 sed -e /.eh_frame/!d -e N | \
22771 grep READONLY > /dev/null; then
22772 gcc_cv_as_cfi_directive=yes
22773 else
22774 gcc_cv_as_cfi_directive=no
22775 fi
22776 ;;
22777 *)
22778 gcc_cv_as_cfi_directive=yes
22779 ;;
22780 esac
22781 fi
22782 else
22783 # no objdump, err on the side of caution
22784 gcc_cv_as_cfi_directive=no
22785 fi
22786 else
22787 gcc_cv_as_cfi_directive=yes
22788 fi
22789 ;;
22790 *-*-*)
22791 gcc_cv_as_cfi_directive=yes
22792 ;;
22793 esac
22794 else
22795 echo "configure: failed program was" >&5
22796 cat conftest.s >&5
22797 fi
22798 rm -f conftest.o conftest.s
22799 fi
22800 fi
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22802 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22803
22804 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22806 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22807 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22808 $as_echo_n "(cached) " >&6
22809 else
22810 gcc_cv_as_cfi_advance_working=no
22811 if test x$gcc_cv_as != x; then
22812 $as_echo ' .text
22813 .cfi_startproc
22814 .cfi_adjust_cfa_offset 64
22815 .skip 75040, 0
22816 .cfi_adjust_cfa_offset 128
22817 .cfi_endproc' > conftest.s
22818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22820 (eval $ac_try) 2>&5
22821 ac_status=$?
22822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22823 test $ac_status = 0; }; }
22824 then
22825
22826 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22827 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22828 gcc_cv_as_cfi_advance_working=yes
22829 fi
22830
22831 else
22832 echo "configure: failed program was" >&5
22833 cat conftest.s >&5
22834 fi
22835 rm -f conftest.o conftest.s
22836 fi
22837 fi
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22839 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22840
22841 else
22842 # no objdump, err on the side of caution
22843 gcc_cv_as_cfi_advance_working=no
22844 fi
22845
22846
22847 cat >>confdefs.h <<_ACEOF
22848 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22849 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22850 _ACEOF
22851
22852
22853
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22855 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22856 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
22858 else
22859 gcc_cv_as_cfi_personality_directive=no
22860 if test x$gcc_cv_as != x; then
22861 $as_echo ' .text
22862 .cfi_startproc
22863 .cfi_personality 0, symbol
22864 .cfi_endproc' > conftest.s
22865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867 (eval $ac_try) 2>&5
22868 ac_status=$?
22869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870 test $ac_status = 0; }; }
22871 then
22872 gcc_cv_as_cfi_personality_directive=yes
22873 else
22874 echo "configure: failed program was" >&5
22875 cat conftest.s >&5
22876 fi
22877 rm -f conftest.o conftest.s
22878 fi
22879 fi
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22881 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22882
22883
22884 cat >>confdefs.h <<_ACEOF
22885 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22886 then echo 1; else echo 0; fi`
22887 _ACEOF
22888
22889
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22891 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22892 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22893 $as_echo_n "(cached) " >&6
22894 else
22895 gcc_cv_as_cfi_sections_directive=no
22896 if test x$gcc_cv_as != x; then
22897 $as_echo ' .text
22898 .cfi_sections .debug_frame, .eh_frame
22899 .cfi_startproc
22900 .cfi_endproc' > conftest.s
22901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22903 (eval $ac_try) 2>&5
22904 ac_status=$?
22905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22906 test $ac_status = 0; }; }
22907 then
22908 case $target_os in
22909 win32 | pe | cygwin* | mingw32* | uwin*)
22910 # Need to check that we generated the correct relocation for the
22911 # .debug_frame section. This was fixed for binutils 2.21.
22912 gcc_cv_as_cfi_sections_directive=no
22913 if test "x$gcc_cv_objdump" != x; then
22914 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22915 grep secrel > /dev/null; then
22916 gcc_cv_as_cfi_sections_directive=yes
22917 fi
22918 fi
22919 ;;
22920 *)
22921 gcc_cv_as_cfi_sections_directive=yes
22922 ;;
22923 esac
22924 else
22925 echo "configure: failed program was" >&5
22926 cat conftest.s >&5
22927 fi
22928 rm -f conftest.o conftest.s
22929 fi
22930 fi
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22932 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22933
22934
22935
22936 cat >>confdefs.h <<_ACEOF
22937 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22938 then echo 1; else echo 0; fi`
22939 _ACEOF
22940
22941
22942 # GAS versions up to and including 2.11.0 may mis-optimize
22943 # .eh_frame data.
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22945 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22946 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22947 $as_echo_n "(cached) " >&6
22948 else
22949 gcc_cv_as_eh_frame=no
22950 if test $in_tree_gas = yes; then
22951 if test $in_tree_gas_is_elf = yes \
22952 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22953 then gcc_cv_as_eh_frame=yes
22954 fi
22955 elif test x$gcc_cv_as != x; then
22956 $as_echo ' .text
22957 .LFB1:
22958 .4byte 0
22959 .L1:
22960 .4byte 0
22961 .LFE1:
22962 .section .eh_frame,"aw",@progbits
22963 __FRAME_BEGIN__:
22964 .4byte .LECIE1-.LSCIE1
22965 .LSCIE1:
22966 .4byte 0x0
22967 .byte 0x1
22968 .ascii "z\0"
22969 .byte 0x1
22970 .byte 0x78
22971 .byte 0x1a
22972 .byte 0x0
22973 .byte 0x4
22974 .4byte 1
22975 .p2align 1
22976 .LECIE1:
22977 .LSFDE1:
22978 .4byte .LEFDE1-.LASFDE1
22979 .LASFDE1:
22980 .4byte .LASFDE1-__FRAME_BEGIN__
22981 .4byte .LFB1
22982 .4byte .LFE1-.LFB1
22983 .byte 0x4
22984 .4byte .LFE1-.LFB1
22985 .byte 0x4
22986 .4byte .L1-.LFB1
22987 .LEFDE1:' > conftest.s
22988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22990 (eval $ac_try) 2>&5
22991 ac_status=$?
22992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22993 test $ac_status = 0; }; }
22994 then
22995 cat > conftest.lit <<EOF
22996 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22997 0010 01000000 12000000 18000000 00000000 ................
22998 0020 08000000 04080000 0044 .........D
22999 EOF
23000 cat > conftest.big <<EOF
23001 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23002 0010 00000001 00000012 00000018 00000000 ................
23003 0020 00000008 04000000 0844 .........D
23004 EOF
23005 # If the assembler didn't choke, and we can objdump,
23006 # and we got the correct data, then succeed.
23007 # The text in the here-document typically retains its unix-style line
23008 # endings, while the output of objdump will use host line endings.
23009 # Therefore, use diff -b for the comparisons.
23010 if test x$gcc_cv_objdump != x \
23011 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23012 | tail -3 > conftest.got \
23013 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23014 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23015 then
23016 gcc_cv_as_eh_frame=yes
23017 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23019 (eval $ac_try) 2>&5
23020 ac_status=$?
23021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23022 test $ac_status = 0; }; }; then
23023 gcc_cv_as_eh_frame=buggy
23024 else
23025 # Uh oh, what do we do now?
23026 gcc_cv_as_eh_frame=no
23027 fi
23028 else
23029 echo "configure: failed program was" >&5
23030 cat conftest.s >&5
23031 fi
23032 rm -f conftest.o conftest.s
23033 fi
23034 fi
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23036 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23037
23038
23039 if test $gcc_cv_as_eh_frame = buggy; then
23040
23041 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23042
23043 fi
23044
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23046 $as_echo_n "checking assembler for section merging support... " >&6; }
23047 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23048 $as_echo_n "(cached) " >&6
23049 else
23050 gcc_cv_as_shf_merge=no
23051 if test $in_tree_gas = yes; then
23052 if test $in_tree_gas_is_elf = yes \
23053 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23054 then gcc_cv_as_shf_merge=yes
23055 fi
23056 elif test x$gcc_cv_as != x; then
23057 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23063 test $ac_status = 0; }; }
23064 then
23065 gcc_cv_as_shf_merge=yes
23066 else
23067 echo "configure: failed program was" >&5
23068 cat conftest.s >&5
23069 fi
23070 rm -f conftest.o conftest.s
23071 fi
23072 fi
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23074 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23075
23076 if test $gcc_cv_as_shf_merge = no; then
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23078 $as_echo_n "checking assembler for section merging support... " >&6; }
23079 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23080 $as_echo_n "(cached) " >&6
23081 else
23082 gcc_cv_as_shf_merge=no
23083 if test $in_tree_gas = yes; then
23084 if test $in_tree_gas_is_elf = yes \
23085 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23086 then gcc_cv_as_shf_merge=yes
23087 fi
23088 elif test x$gcc_cv_as != x; then
23089 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23092 (eval $ac_try) 2>&5
23093 ac_status=$?
23094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23095 test $ac_status = 0; }; }
23096 then
23097 gcc_cv_as_shf_merge=yes
23098 else
23099 echo "configure: failed program was" >&5
23100 cat conftest.s >&5
23101 fi
23102 rm -f conftest.o conftest.s
23103 fi
23104 fi
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23106 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23107
23108 fi
23109
23110 cat >>confdefs.h <<_ACEOF
23111 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23112 _ACEOF
23113
23114
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23116 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23117 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23118 $as_echo_n "(cached) " >&6
23119 else
23120 gcc_cv_as_comdat_group=no
23121 if test $in_tree_gas = yes; then
23122 if test $in_tree_gas_is_elf = yes \
23123 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23124 then gcc_cv_as_comdat_group=yes
23125 fi
23126 elif test x$gcc_cv_as != x; then
23127 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23130 (eval $ac_try) 2>&5
23131 ac_status=$?
23132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23133 test $ac_status = 0; }; }
23134 then
23135 gcc_cv_as_comdat_group=yes
23136 else
23137 echo "configure: failed program was" >&5
23138 cat conftest.s >&5
23139 fi
23140 rm -f conftest.o conftest.s
23141 fi
23142 fi
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23144 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23145
23146 if test $gcc_cv_as_comdat_group = yes; then
23147 gcc_cv_as_comdat_group_percent=no
23148 gcc_cv_as_comdat_group_group=no
23149 else
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23151 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23152 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23153 $as_echo_n "(cached) " >&6
23154 else
23155 gcc_cv_as_comdat_group_percent=no
23156 if test $in_tree_gas = yes; then
23157 if test $in_tree_gas_is_elf = yes \
23158 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23159 then gcc_cv_as_comdat_group_percent=yes
23160 fi
23161 elif test x$gcc_cv_as != x; then
23162 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23165 (eval $ac_try) 2>&5
23166 ac_status=$?
23167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23168 test $ac_status = 0; }; }
23169 then
23170 gcc_cv_as_comdat_group_percent=yes
23171 else
23172 echo "configure: failed program was" >&5
23173 cat conftest.s >&5
23174 fi
23175 rm -f conftest.o conftest.s
23176 fi
23177 fi
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23179 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23180
23181 if test $gcc_cv_as_comdat_group_percent = yes; then
23182 gcc_cv_as_comdat_group_group=no
23183 else
23184 case "${target}" in
23185 # Sun as uses a completely different syntax.
23186 *-*-solaris2*)
23187 case "${target}" in
23188 sparc*-*-solaris2*)
23189 conftest_s='
23190 .group foo,".text%foo",#comdat
23191 .section ".text%foo", #alloc,#execinstr,#progbits
23192 .globl foo
23193 foo:
23194 '
23195 ;;
23196 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23197 conftest_s='
23198 .group foo,.text%foo,#comdat
23199 .section .text%foo, "ax", @progbits
23200 .globl foo
23201 foo:
23202 '
23203 ;;
23204 esac
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23206 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23207 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23208 $as_echo_n "(cached) " >&6
23209 else
23210 gcc_cv_as_comdat_group_group=no
23211 if test x$gcc_cv_as != x; then
23212 $as_echo "$conftest_s" > conftest.s
23213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23215 (eval $ac_try) 2>&5
23216 ac_status=$?
23217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23218 test $ac_status = 0; }; }
23219 then
23220 gcc_cv_as_comdat_group_group=yes
23221 else
23222 echo "configure: failed program was" >&5
23223 cat conftest.s >&5
23224 fi
23225 rm -f conftest.o conftest.s
23226 fi
23227 fi
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23229 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23230
23231 ;;
23232 esac
23233 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23234 gcc_cv_as_comdat_group_group=no
23235 fi
23236 fi
23237 fi
23238 if test x"$ld_is_gold" = xyes; then
23239 comdat_group=yes
23240 elif test $in_tree_ld = yes ; then
23241 comdat_group=no
23242 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 \
23243 && test $in_tree_ld_is_elf = yes; then
23244 comdat_group=yes
23245 fi
23246 elif echo "$ld_ver" | grep GNU > /dev/null; then
23247 comdat_group=yes
23248 if test 0"$ld_date" -lt 20050308; then
23249 if test -n "$ld_date"; then
23250 # If there was date string, but was earlier than 2005-03-08, fail
23251 comdat_group=no
23252 elif test "$ld_vers_major" -lt 2; then
23253 comdat_group=no
23254 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23255 comdat_group=no
23256 fi
23257 fi
23258 else
23259 case "${target}" in
23260 *-*-solaris2.1[1-9]*)
23261 comdat_group=no
23262 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23263 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23264 # version 1.688.
23265 #
23266 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23267 # least ld version 1.2267.
23268 if test "$ld_vers_major" -gt 1; then
23269 comdat_group=yes
23270 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23271 comdat_group=yes
23272 elif test "$ld_vers_minor" -ge 2267; then
23273 comdat_group=yes
23274 fi
23275 ;;
23276 *)
23277 # Assume linkers other than GNU ld don't support COMDAT group.
23278 comdat_group=no
23279 ;;
23280 esac
23281 fi
23282 # Allow overriding the automatic COMDAT group tests above.
23283 # Check whether --enable-comdat was given.
23284 if test "${enable_comdat+set}" = set; then :
23285 enableval=$enable_comdat; comdat_group="$enable_comdat"
23286 fi
23287
23288 if test $comdat_group = no; then
23289 gcc_cv_as_comdat_group=no
23290 gcc_cv_as_comdat_group_percent=no
23291 gcc_cv_as_comdat_group_group=no
23292 fi
23293
23294 cat >>confdefs.h <<_ACEOF
23295 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23296 || test $gcc_cv_as_comdat_group_percent = yes \
23297 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23298 _ACEOF
23299
23300
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23302 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23303 if test "${gcc_cv_as_discriminator+set}" = set; then :
23304 $as_echo_n "(cached) " >&6
23305 else
23306 gcc_cv_as_discriminator=no
23307 if test $in_tree_gas = yes; then
23308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23309 then gcc_cv_as_discriminator=yes
23310 fi
23311 elif test x$gcc_cv_as != x; then
23312 $as_echo ' .text
23313 .file 1 "conf.c"
23314 .loc 1 1 0 discriminator 1' > conftest.s
23315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23317 (eval $ac_try) 2>&5
23318 ac_status=$?
23319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23320 test $ac_status = 0; }; }
23321 then
23322 gcc_cv_as_discriminator=yes
23323 else
23324 echo "configure: failed program was" >&5
23325 cat conftest.s >&5
23326 fi
23327 rm -f conftest.o conftest.s
23328 fi
23329 fi
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23331 $as_echo "$gcc_cv_as_discriminator" >&6; }
23332 if test $gcc_cv_as_discriminator = yes; then
23333
23334 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23335
23336 fi
23337
23338 # Thread-local storage - the check is heavily parameterized.
23339 conftest_s=
23340 tls_first_major=
23341 tls_first_minor=
23342 tls_as_opt=
23343 case "$target" in
23344 alpha*-*-*)
23345 conftest_s='
23346 .section ".tdata","awT",@progbits
23347 foo: .long 25
23348 .text
23349 ldq $27,__tls_get_addr($29) !literal!1
23350 lda $16,foo($29) !tlsgd!1
23351 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23352 ldq $27,__tls_get_addr($29) !literal!2
23353 lda $16,foo($29) !tlsldm!2
23354 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23355 ldq $1,foo($29) !gotdtprel
23356 ldah $2,foo($29) !dtprelhi
23357 lda $3,foo($2) !dtprello
23358 lda $4,foo($29) !dtprel
23359 ldq $1,foo($29) !gottprel
23360 ldah $2,foo($29) !tprelhi
23361 lda $3,foo($2) !tprello
23362 lda $4,foo($29) !tprel'
23363 tls_first_major=2
23364 tls_first_minor=13
23365 tls_as_opt=--fatal-warnings
23366 ;;
23367 cris-*-*|crisv32-*-*)
23368 conftest_s='
23369 .section ".tdata","awT",@progbits
23370 x: .long 25
23371 .text
23372 move.d x:IE,$r10
23373 nop'
23374 tls_first_major=2
23375 tls_first_minor=20
23376 tls_as_opt=--fatal-warnings
23377 ;;
23378 frv*-*-*)
23379 conftest_s='
23380 .section ".tdata","awT",@progbits
23381 x: .long 25
23382 .text
23383 call #gettlsoff(x)'
23384 tls_first_major=2
23385 tls_first_minor=14
23386 ;;
23387 hppa*-*-linux*)
23388 conftest_s='
23389 t1: .reg %r20
23390 t2: .reg %r21
23391 gp: .reg %r19
23392 .section ".tdata","awT",@progbits
23393 foo: .long 25
23394 .text
23395 .align 4
23396 addil LT%foo-$tls_gdidx$,gp
23397 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23398 b __tls_get_addr
23399 nop
23400 addil LT%foo-$tls_ldidx$,gp
23401 b __tls_get_addr
23402 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23403 addil LR%foo-$tls_dtpoff$,%ret0
23404 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23405 mfctl %cr27,%t1
23406 addil LT%foo-$tls_ieoff$,gp
23407 ldw RT%foo-$tls_ieoff$(%r1),%t2
23408 add %t1,%t2,%t3
23409 mfctl %cr27,%t1
23410 addil LR%foo-$tls_leoff$,%t1
23411 ldo RR%foo-$tls_leoff$(%r1),%t2'
23412 tls_first_major=2
23413 tls_first_minor=15
23414 tls_as_opt=--fatal-warnings
23415 ;;
23416 arm*-*-*)
23417 conftest_s='
23418 .section ".tdata","awT",%progbits
23419 foo: .long 25
23420 .text
23421 .word foo(gottpoff)
23422 .word foo(tpoff)
23423 .word foo(tlsgd)
23424 .word foo(tlsldm)
23425 .word foo(tlsldo)'
23426 tls_first_major=2
23427 tls_first_minor=17
23428 ;;
23429 i[34567]86-*-* | x86_64-*-*)
23430 case "$target" in
23431 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23432 on_solaris=yes
23433 ;;
23434 *)
23435 on_solaris=no
23436 ;;
23437 esac
23438 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23439 conftest_s='
23440 .section .tdata,"awt",@progbits'
23441 tls_first_major=0
23442 tls_first_minor=0
23443 tls_section_flag=t
23444
23445 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23446
23447 else
23448 conftest_s='
23449 .section ".tdata","awT",@progbits'
23450 tls_first_major=2
23451 tls_first_minor=14
23452 tls_section_flag=T
23453 tls_as_opt="--fatal-warnings"
23454 fi
23455 case "$target" in
23456 i[34567]86-*-*)
23457 conftest_s="$conftest_s
23458 foo: .long 25
23459 .text
23460 movl %gs:0, %eax
23461 leal foo@tlsgd(,%ebx,1), %eax
23462 leal foo@tlsldm(%ebx), %eax
23463 leal foo@dtpoff(%eax), %edx
23464 movl foo@gottpoff(%ebx), %eax
23465 subl foo@gottpoff(%ebx), %eax
23466 addl foo@gotntpoff(%ebx), %eax
23467 movl foo@indntpoff, %eax
23468 movl \$foo@tpoff, %eax
23469 subl \$foo@tpoff, %eax
23470 leal foo@ntpoff(%ecx), %eax"
23471 ;;
23472 x86_64-*-*)
23473 if test x$on_solaris = xyes; then
23474 case $gas_flag in
23475 yes) tls_as_opt="$tls_as_opt --64" ;;
23476 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23477 esac
23478 fi
23479 conftest_s="$conftest_s
23480 foo: .long 25
23481 .text
23482 movq %fs:0, %rax
23483 leaq foo@tlsgd(%rip), %rdi
23484 leaq foo@tlsld(%rip), %rdi
23485 leaq foo@dtpoff(%rax), %rdx
23486 movq foo@gottpoff(%rip), %rax
23487 movq \$foo@tpoff, %rax"
23488 ;;
23489 esac
23490 ;;
23491 ia64-*-*)
23492 conftest_s='
23493 .section ".tdata","awT",@progbits
23494 foo: data8 25
23495 .text
23496 addl r16 = @ltoff(@dtpmod(foo#)), gp
23497 addl r17 = @ltoff(@dtprel(foo#)), gp
23498 addl r18 = @ltoff(@tprel(foo#)), gp
23499 addl r19 = @dtprel(foo#), gp
23500 adds r21 = @dtprel(foo#), r13
23501 movl r23 = @dtprel(foo#)
23502 addl r20 = @tprel(foo#), gp
23503 adds r22 = @tprel(foo#), r13
23504 movl r24 = @tprel(foo#)'
23505 tls_first_major=2
23506 tls_first_minor=13
23507 tls_as_opt=--fatal-warnings
23508 ;;
23509 microblaze*-*-*)
23510 conftest_s='
23511 .section .tdata,"awT",@progbits
23512 x:
23513 .word 2
23514 .text
23515 addik r5,r20,x@TLSGD
23516 addik r5,r20,x@TLSLDM'
23517 tls_first_major=2
23518 tls_first_minor=20
23519 tls_as_opt='--fatal-warnings'
23520 ;;
23521 mips*-*-*)
23522 conftest_s='
23523 .section .tdata,"awT",@progbits
23524 x:
23525 .word 2
23526 .text
23527 addiu $4, $28, %tlsgd(x)
23528 addiu $4, $28, %tlsldm(x)
23529 lui $4, %dtprel_hi(x)
23530 addiu $4, $4, %dtprel_lo(x)
23531 lw $4, %gottprel(x)($28)
23532 lui $4, %tprel_hi(x)
23533 addiu $4, $4, %tprel_lo(x)'
23534 tls_first_major=2
23535 tls_first_minor=16
23536 tls_as_opt='-32 --fatal-warnings'
23537 ;;
23538 m68k-*-*)
23539 conftest_s='
23540 .section .tdata,"awT",@progbits
23541 x:
23542 .word 2
23543 .text
23544 foo:
23545 move.l x@TLSGD(%a5),%a0
23546 move.l x@TLSLDM(%a5),%a0
23547 move.l x@TLSLDO(%a5),%a0
23548 move.l x@TLSIE(%a5),%a0
23549 move.l x@TLSLE(%a5),%a0'
23550 tls_first_major=2
23551 tls_first_minor=19
23552 tls_as_opt='--fatal-warnings'
23553 ;;
23554 nios2-*-*)
23555 conftest_s='
23556 .section ".tdata","awT",@progbits'
23557 tls_first_major=2
23558 tls_first_minor=23
23559 tls_as_opt="--fatal-warnings"
23560 ;;
23561 aarch64*-*-*)
23562 conftest_s='
23563 .section ".tdata","awT",%progbits
23564 foo: .long 25
23565 .text
23566 adrp x0, :tlsgd:x
23567 add x0, x0, #:tlsgd_lo12:x
23568 bl __tls_get_addr
23569 nop'
23570 tls_first_major=2
23571 tls_first_minor=20
23572 tls_as_opt='--fatal-warnings'
23573 ;;
23574 powerpc-ibm-aix*)
23575 conftest_s='
23576 .extern __get_tpointer
23577 .toc
23578 LC..1:
23579 .tc a[TC],a[TL]@le
23580 .csect .text[PR]
23581 .tlstest:
23582 lwz 9,LC..1(2)
23583 bla __get_tpointer
23584 lwzx 3,9,3
23585 .globl a
23586 .csect a[TL],4
23587 a:
23588 .space 4'
23589 tls_first_major=0
23590 tls_first_minor=0
23591 ;;
23592 powerpc64*-*-*)
23593 conftest_s='
23594 .section ".tdata","awT",@progbits
23595 .align 3
23596 ld0: .space 8
23597 ld1: .space 8
23598 x1: .space 8
23599 x2: .space 8
23600 x3: .space 8
23601 .text
23602 addi 3,2,ld0@got@tlsgd
23603 bl .__tls_get_addr
23604 nop
23605 addi 3,2,ld1@toc
23606 bl .__tls_get_addr
23607 nop
23608 addi 3,2,x1@got@tlsld
23609 bl .__tls_get_addr
23610 nop
23611 addi 9,3,x1@dtprel
23612 bl .__tls_get_addr
23613 nop
23614 addis 9,3,x2@dtprel@ha
23615 addi 9,9,x2@dtprel@l
23616 bl .__tls_get_addr
23617 nop
23618 ld 9,x3@got@dtprel(2)
23619 add 9,9,3
23620 bl .__tls_get_addr
23621 nop'
23622 tls_first_major=2
23623 tls_first_minor=14
23624 tls_as_opt="-a64 --fatal-warnings"
23625 ;;
23626 powerpc*-*-*)
23627 conftest_s='
23628 .section ".tdata","awT",@progbits
23629 .align 2
23630 ld0: .space 4
23631 ld1: .space 4
23632 x1: .space 4
23633 x2: .space 4
23634 x3: .space 4
23635 .text
23636 addi 3,31,ld0@got@tlsgd
23637 bl __tls_get_addr
23638 addi 3,31,x1@got@tlsld
23639 bl __tls_get_addr
23640 addi 9,3,x1@dtprel
23641 addis 9,3,x2@dtprel@ha
23642 addi 9,9,x2@dtprel@l
23643 lwz 9,x3@got@tprel(31)
23644 add 9,9,x@tls
23645 addi 9,2,x1@tprel
23646 addis 9,2,x2@tprel@ha
23647 addi 9,9,x2@tprel@l'
23648 tls_first_major=2
23649 tls_first_minor=14
23650 tls_as_opt="-a32 --fatal-warnings"
23651 ;;
23652 s390-*-*)
23653 conftest_s='
23654 .section ".tdata","awT",@progbits
23655 foo: .long 25
23656 .text
23657 .long foo@TLSGD
23658 .long foo@TLSLDM
23659 .long foo@DTPOFF
23660 .long foo@NTPOFF
23661 .long foo@GOTNTPOFF
23662 .long foo@INDNTPOFF
23663 l %r1,foo@GOTNTPOFF(%r12)
23664 l %r1,0(%r1):tls_load:foo
23665 bas %r14,0(%r1,%r13):tls_gdcall:foo
23666 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23667 tls_first_major=2
23668 tls_first_minor=14
23669 tls_as_opt="-m31 --fatal-warnings"
23670 ;;
23671 s390x-*-*)
23672 conftest_s='
23673 .section ".tdata","awT",@progbits
23674 foo: .long 25
23675 .text
23676 .quad foo@TLSGD
23677 .quad foo@TLSLDM
23678 .quad foo@DTPOFF
23679 .quad foo@NTPOFF
23680 .quad foo@GOTNTPOFF
23681 lg %r1,foo@GOTNTPOFF(%r12)
23682 larl %r1,foo@INDNTPOFF
23683 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23684 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23685 tls_first_major=2
23686 tls_first_minor=14
23687 tls_as_opt="-m64 -Aesame --fatal-warnings"
23688 ;;
23689 sh-*-* | sh[34]-*-*)
23690 conftest_s='
23691 .section ".tdata","awT",@progbits
23692 foo: .long 25
23693 .text
23694 .long foo@TLSGD
23695 .long foo@TLSLDM
23696 .long foo@DTPOFF
23697 .long foo@GOTTPOFF
23698 .long foo@TPOFF'
23699 tls_first_major=2
23700 tls_first_minor=13
23701 tls_as_opt=--fatal-warnings
23702 ;;
23703 sparc*-*-*)
23704 case "$target" in
23705 sparc*-sun-solaris2.*)
23706 on_solaris=yes
23707 ;;
23708 *)
23709 on_solaris=no
23710 ;;
23711 esac
23712 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23713 conftest_s='
23714 .section ".tdata",#alloc,#write,#tls'
23715 tls_first_major=0
23716 tls_first_minor=0
23717 else
23718 conftest_s='
23719 .section ".tdata","awT",@progbits'
23720 tls_first_major=2
23721 tls_first_minor=14
23722 tls_as_opt="-32 --fatal-warnings"
23723 fi
23724 conftest_s="$conftest_s
23725 foo: .long 25
23726 .text
23727 sethi %tgd_hi22(foo), %o0
23728 add %o0, %tgd_lo10(foo), %o1
23729 add %l7, %o1, %o0, %tgd_add(foo)
23730 call __tls_get_addr, %tgd_call(foo)
23731 sethi %tldm_hi22(foo), %l1
23732 add %l1, %tldm_lo10(foo), %l2
23733 add %l7, %l2, %o0, %tldm_add(foo)
23734 call __tls_get_addr, %tldm_call(foo)
23735 sethi %tldo_hix22(foo), %l3
23736 xor %l3, %tldo_lox10(foo), %l4
23737 add %o0, %l4, %l5, %tldo_add(foo)
23738 sethi %tie_hi22(foo), %o3
23739 add %o3, %tie_lo10(foo), %o3
23740 ld [%l7 + %o3], %o2, %tie_ld(foo)
23741 add %g7, %o2, %o4, %tie_add(foo)
23742 sethi %tle_hix22(foo), %l1
23743 xor %l1, %tle_lox10(foo), %o5
23744 ld [%g7 + %o5], %o1"
23745 ;;
23746 tilepro*-*-*)
23747 conftest_s='
23748 .section ".tdata","awT",@progbits
23749 foo: .long 25
23750 .text
23751 addli r0, zero, tls_gd(foo)
23752 auli r0, zero, tls_gd_ha16(foo)
23753 addli r0, r0, tls_gd_lo16(foo)
23754 jal __tls_get_addr
23755 addli r0, zero, tls_ie(foo)
23756 auli r0, r0, tls_ie_ha16(foo)
23757 addli r0, r0, tls_ie_lo16(foo)'
23758 tls_first_major=2
23759 tls_first_minor=22
23760 tls_as_opt="--fatal-warnings"
23761 ;;
23762 tilegx*-*-*)
23763 conftest_s='
23764 .section ".tdata","awT",@progbits
23765 foo: .long 25
23766 .text
23767 shl16insli r0, zero, hw0_last_tls_gd(foo)
23768 shl16insli r0, zero, hw1_last_tls_gd(foo)
23769 shl16insli r0, r0, hw0_tls_gd(foo)
23770 jal __tls_get_addr
23771 shl16insli r0, zero, hw1_last_tls_ie(foo)
23772 shl16insli r0, r0, hw0_tls_ie(foo)'
23773 tls_first_major=2
23774 tls_first_minor=22
23775 tls_as_opt="--fatal-warnings"
23776 ;;
23777 xtensa*-*-*)
23778 conftest_s='
23779 .section ".tdata","awT",@progbits
23780 foo: .long 25
23781 .text
23782 movi a8, foo@TLSFUNC
23783 movi a10, foo@TLSARG
23784 callx8.tls a8, foo@TLSCALL'
23785 tls_first_major=2
23786 tls_first_minor=19
23787 ;;
23788 esac
23789 set_have_as_tls=no
23790 if test "x$enable_tls" = xno ; then
23791 : # TLS explicitly disabled.
23792 elif test "x$enable_tls" = xyes ; then
23793 set_have_as_tls=yes # TLS explicitly enabled.
23794 elif test -z "$tls_first_major"; then
23795 : # If we don't have a check, assume no support.
23796 else
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23798 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23799 if test "${gcc_cv_as_tls+set}" = set; then :
23800 $as_echo_n "(cached) " >&6
23801 else
23802 gcc_cv_as_tls=no
23803 if test $in_tree_gas = yes; then
23804 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23805 then gcc_cv_as_tls=yes
23806 fi
23807 elif test x$gcc_cv_as != x; then
23808 $as_echo "$conftest_s" > conftest.s
23809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23811 (eval $ac_try) 2>&5
23812 ac_status=$?
23813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23814 test $ac_status = 0; }; }
23815 then
23816 gcc_cv_as_tls=yes
23817 else
23818 echo "configure: failed program was" >&5
23819 cat conftest.s >&5
23820 fi
23821 rm -f conftest.o conftest.s
23822 fi
23823 fi
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23825 $as_echo "$gcc_cv_as_tls" >&6; }
23826 if test $gcc_cv_as_tls = yes; then
23827 set_have_as_tls=yes
23828 fi
23829 fi
23830 if test $set_have_as_tls = yes ; then
23831
23832 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23833
23834 fi
23835
23836 # Target-specific assembler checks.
23837
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23839 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23840 gcc_cv_ld_static_dynamic=no
23841 gcc_cv_ld_static_option='-Bstatic'
23842 gcc_cv_ld_dynamic_option='-Bdynamic'
23843 if test $in_tree_ld = yes ; then
23844 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
23845 gcc_cv_ld_static_dynamic=yes
23846 fi
23847 elif test x$gcc_cv_ld != x; then
23848 # Check if linker supports -Bstatic/-Bdynamic option
23849 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23850 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23851 gcc_cv_ld_static_dynamic=yes
23852 else
23853 case "$target" in
23854 # AIX ld uses -b flags
23855 *-*-aix4.[23]* | *-*-aix[5-9]*)
23856 gcc_cv_ld_static_dynamic=yes
23857 gcc_cv_ld_static_option="-bstatic"
23858 gcc_cv_ld_dynamic_option="-bdynamic"
23859 ;;
23860 # HP-UX ld uses -a flags to select between shared and archive.
23861 *-*-hpux*)
23862 if test x"$gnu_ld" = xno; then
23863 gcc_cv_ld_static_dynamic=yes
23864 gcc_cv_ld_static_option="-aarchive_shared"
23865 gcc_cv_ld_dynamic_option="-adefault"
23866 fi
23867 ;;
23868 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23869 *-*-solaris2*)
23870 gcc_cv_ld_static_dynamic=yes
23871 ;;
23872 esac
23873 fi
23874 fi
23875 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23876
23877 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23878
23879
23880 cat >>confdefs.h <<_ACEOF
23881 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23882 _ACEOF
23883
23884
23885 cat >>confdefs.h <<_ACEOF
23886 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23887 _ACEOF
23888
23889 fi
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23891 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23892
23893 if test x"$demangler_in_ld" = xyes; then
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23895 $as_echo_n "checking linker --demangle support... " >&6; }
23896 gcc_cv_ld_demangle=no
23897 if test $in_tree_ld = yes; then
23898 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 \
23899 gcc_cv_ld_demangle=yes
23900 fi
23901 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23902 # Check if the GNU linker supports --demangle option
23903 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23904 gcc_cv_ld_demangle=yes
23905 fi
23906 fi
23907 if test x"$gcc_cv_ld_demangle" = xyes; then
23908
23909 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23910
23911 fi
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23913 $as_echo "$gcc_cv_ld_demangle" >&6; }
23914 fi
23915
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23917 $as_echo_n "checking linker plugin support... " >&6; }
23918 gcc_cv_lto_plugin=0
23919 if test -f liblto_plugin.la; then
23920 save_ld_ver="$ld_ver"
23921 save_ld_vers_major="$ld_vers_major"
23922 save_ld_vers_minor="$ld_vers_minor"
23923 save_ld_is_gold="$ld_is_gold"
23924
23925 ld_is_gold=no
23926
23927 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23928 ld_ver="GNU ld"
23929 # FIXME: ld_is_gold?
23930 ld_vers_major="$gcc_cv_gld_major_version"
23931 ld_vers_minor="$gcc_cv_gld_minor_version"
23932 else
23933 # Determine plugin linker version.
23934 # FIXME: Partial duplicate from above, generalize.
23935 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23936 if echo "$ld_ver" | grep GNU > /dev/null; then
23937 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23938 ld_is_gold=yes
23939 ld_vers=`echo $ld_ver | sed -n \
23940 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23941 else
23942 ld_vers=`echo $ld_ver | sed -n \
23943 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23944 fi
23945 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23946 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23947 fi
23948 fi
23949
23950 # Determine plugin support.
23951 if echo "$ld_ver" | grep GNU > /dev/null; then
23952 # Require GNU ld or gold 2.21+ for plugin support by default.
23953 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23954 gcc_cv_lto_plugin=2
23955 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23956 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23957 gcc_cv_lto_plugin=1
23958 fi
23959 fi
23960
23961 ld_ver="$save_ld_ver"
23962 ld_vers_major="$save_ld_vers_major"
23963 ld_vers_minor="$save_ld_vers_minor"
23964 ld_is_gold="$save_ld_is_gold"
23965 fi
23966
23967 cat >>confdefs.h <<_ACEOF
23968 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23969 _ACEOF
23970
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23972 $as_echo "$gcc_cv_lto_plugin" >&6; }
23973
23974 case "$target" in
23975 aarch64*-*-*)
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23977 $as_echo_n "checking assembler for -mabi option... " >&6; }
23978 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23979 $as_echo_n "(cached) " >&6
23980 else
23981 gcc_cv_as_aarch64_mabi=no
23982 if test x$gcc_cv_as != x; then
23983 $as_echo '.text' > conftest.s
23984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23986 (eval $ac_try) 2>&5
23987 ac_status=$?
23988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23989 test $ac_status = 0; }; }
23990 then
23991 gcc_cv_as_aarch64_mabi=yes
23992 else
23993 echo "configure: failed program was" >&5
23994 cat conftest.s >&5
23995 fi
23996 rm -f conftest.o conftest.s
23997 fi
23998 fi
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24000 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24001
24002 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24003
24004 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24005
24006 else
24007 if test x$with_abi = xilp32; then
24008 as_fn_error "Assembler does not support -mabi=ilp32.\
24009 Upgrade the Assembler." "$LINENO" 5
24010 fi
24011 if test x"$with_multilib_list" = xdefault; then
24012 TM_MULTILIB_CONFIG=lp64
24013 else
24014 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24015 for aarch64_multilib in ${aarch64_multilibs}; do
24016 case ${aarch64_multilib} in
24017 ilp32)
24018 as_fn_error "Assembler does not support -mabi=ilp32.\
24019 Upgrade the Assembler." "$LINENO" 5
24020 ;;
24021 *)
24022 ;;
24023 esac
24024 done
24025 fi
24026 fi
24027 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24028 # Check whether --enable-fix-cortex-a53-835769 was given.
24029 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24030 enableval=$enable_fix_cortex_a53_835769;
24031 case $enableval in
24032 yes)
24033 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24034 ;;
24035 no)
24036 ;;
24037 *)
24038 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24039 Valid choices are 'yes' and 'no'." "$LINENO" 5
24040 ;;
24041
24042 esac
24043
24044 fi
24045
24046 ;;
24047
24048 # All TARGET_ABI_OSF targets.
24049 alpha*-*-linux* | alpha*-*-*bsd*)
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24051 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24052 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24053 $as_echo_n "(cached) " >&6
24054 else
24055 gcc_cv_as_alpha_explicit_relocs=no
24056 if test $in_tree_gas = yes; then
24057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24058 then gcc_cv_as_alpha_explicit_relocs=yes
24059 fi
24060 elif test x$gcc_cv_as != x; then
24061 $as_echo ' .set nomacro
24062 .text
24063 extbl $3, $2, $3 !lituse_bytoff!1
24064 ldq $2, a($29) !literal!1
24065 ldq $4, b($29) !literal!2
24066 ldq_u $3, 0($2) !lituse_base!1
24067 ldq $27, f($29) !literal!5
24068 jsr $26, ($27), f !lituse_jsr!5
24069 ldah $29, 0($26) !gpdisp!3
24070 lda $0, c($29) !gprel
24071 ldah $1, d($29) !gprelhigh
24072 lda $1, d($1) !gprellow
24073 lda $29, 0($29) !gpdisp!3' > conftest.s
24074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24076 (eval $ac_try) 2>&5
24077 ac_status=$?
24078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24079 test $ac_status = 0; }; }
24080 then
24081 gcc_cv_as_alpha_explicit_relocs=yes
24082 else
24083 echo "configure: failed program was" >&5
24084 cat conftest.s >&5
24085 fi
24086 rm -f conftest.o conftest.s
24087 fi
24088 fi
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24090 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24091 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24092
24093 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24094
24095 fi
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24097 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24098 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24099 $as_echo_n "(cached) " >&6
24100 else
24101 gcc_cv_as_alpha_jsrdirect_relocs=no
24102 if test $in_tree_gas = yes; then
24103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24104 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24105 fi
24106 elif test x$gcc_cv_as != x; then
24107 $as_echo ' .set nomacro
24108 .text
24109 ldq $27, a($29) !literal!1
24110 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24113 (eval $ac_try) 2>&5
24114 ac_status=$?
24115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24116 test $ac_status = 0; }; }
24117 then
24118 gcc_cv_as_alpha_jsrdirect_relocs=yes
24119 else
24120 echo "configure: failed program was" >&5
24121 cat conftest.s >&5
24122 fi
24123 rm -f conftest.o conftest.s
24124 fi
24125 fi
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24127 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24128 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24129
24130 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24131
24132 fi
24133 ;;
24134
24135 cris-*-*)
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24137 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24138 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24139 $as_echo_n "(cached) " >&6
24140 else
24141 gcc_cv_as_cris_no_mul_bug=no
24142 if test $in_tree_gas = yes; then
24143 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24144 then gcc_cv_as_cris_no_mul_bug=yes
24145 fi
24146 elif test x$gcc_cv_as != x; then
24147 $as_echo '.text' > conftest.s
24148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24153 test $ac_status = 0; }; }
24154 then
24155 gcc_cv_as_cris_no_mul_bug=yes
24156 else
24157 echo "configure: failed program was" >&5
24158 cat conftest.s >&5
24159 fi
24160 rm -f conftest.o conftest.s
24161 fi
24162 fi
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24164 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24165 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24166
24167 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24168
24169 fi
24170 ;;
24171
24172 sparc*-*-*)
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24174 $as_echo_n "checking assembler for .register... " >&6; }
24175 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24176 $as_echo_n "(cached) " >&6
24177 else
24178 gcc_cv_as_sparc_register_op=no
24179 if test x$gcc_cv_as != x; then
24180 $as_echo '.register %g2, #scratch' > conftest.s
24181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24183 (eval $ac_try) 2>&5
24184 ac_status=$?
24185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24186 test $ac_status = 0; }; }
24187 then
24188 gcc_cv_as_sparc_register_op=yes
24189 else
24190 echo "configure: failed program was" >&5
24191 cat conftest.s >&5
24192 fi
24193 rm -f conftest.o conftest.s
24194 fi
24195 fi
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24197 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24198 if test $gcc_cv_as_sparc_register_op = yes; then
24199
24200 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24201
24202 fi
24203
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24205 $as_echo_n "checking assembler for #nobits... " >&6; }
24206 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24207 $as_echo_n "(cached) " >&6
24208 else
24209 gcc_cv_as_sparc_nobits=no
24210 if test x$gcc_cv_as != x; then
24211 $as_echo '.section "nobits",#alloc,#write,#nobits
24212 .section "progbits",#alloc,#write,#progbits' > conftest.s
24213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24215 (eval $ac_try) 2>&5
24216 ac_status=$?
24217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24218 test $ac_status = 0; }; }
24219 then
24220 gcc_cv_as_sparc_nobits=yes
24221 else
24222 echo "configure: failed program was" >&5
24223 cat conftest.s >&5
24224 fi
24225 rm -f conftest.o conftest.s
24226 fi
24227 fi
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24229 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24230
24231
24232 cat >>confdefs.h <<_ACEOF
24233 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24234 _ACEOF
24235
24236
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24238 $as_echo_n "checking assembler for -relax option... " >&6; }
24239 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24240 $as_echo_n "(cached) " >&6
24241 else
24242 gcc_cv_as_sparc_relax=no
24243 if test x$gcc_cv_as != x; then
24244 $as_echo '.text' > conftest.s
24245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24247 (eval $ac_try) 2>&5
24248 ac_status=$?
24249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24250 test $ac_status = 0; }; }
24251 then
24252 gcc_cv_as_sparc_relax=yes
24253 else
24254 echo "configure: failed program was" >&5
24255 cat conftest.s >&5
24256 fi
24257 rm -f conftest.o conftest.s
24258 fi
24259 fi
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24261 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24262 if test $gcc_cv_as_sparc_relax = yes; then
24263
24264 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24265
24266 fi
24267
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24269 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24270 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24271 $as_echo_n "(cached) " >&6
24272 else
24273 gcc_cv_as_sparc_gotdata_op=no
24274 if test x$gcc_cv_as != x; then
24275 $as_echo '.text
24276 .align 4
24277 foo:
24278 nop
24279 bar:
24280 sethi %gdop_hix22(foo), %g1
24281 xor %g1, %gdop_lox10(foo), %g1
24282 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24285 (eval $ac_try) 2>&5
24286 ac_status=$?
24287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24288 test $ac_status = 0; }; }
24289 then
24290 if test x$gcc_cv_ld != x \
24291 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24292 if test x$gcc_cv_objdump != x; then
24293 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24294 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24295 gcc_cv_as_sparc_gotdata_op=no
24296 else
24297 gcc_cv_as_sparc_gotdata_op=yes
24298 fi
24299 fi
24300 fi
24301 rm -f conftest
24302 else
24303 echo "configure: failed program was" >&5
24304 cat conftest.s >&5
24305 fi
24306 rm -f conftest.o conftest.s
24307 fi
24308 fi
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24310 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24311 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24312
24313 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24314
24315 fi
24316
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24318 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24319 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24320 $as_echo_n "(cached) " >&6
24321 else
24322 gcc_cv_as_sparc_ua_pcrel=no
24323 if test x$gcc_cv_as != x; then
24324 $as_echo '.text
24325 foo:
24326 nop
24327 .data
24328 .align 4
24329 .byte 0
24330 .uaword %r_disp32(foo)' > conftest.s
24331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24333 (eval $ac_try) 2>&5
24334 ac_status=$?
24335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24336 test $ac_status = 0; }; }
24337 then
24338 if test x$gcc_cv_ld != x \
24339 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24340 gcc_cv_as_sparc_ua_pcrel=yes
24341 fi
24342 rm -f conftest
24343 else
24344 echo "configure: failed program was" >&5
24345 cat conftest.s >&5
24346 fi
24347 rm -f conftest.o conftest.s
24348 fi
24349 fi
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24351 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24352 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24353
24354 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24355
24356
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24358 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24359 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24360 $as_echo_n "(cached) " >&6
24361 else
24362 gcc_cv_as_sparc_ua_pcrel_hidden=no
24363 if test x$gcc_cv_as != x; then
24364 $as_echo '.data
24365 .align 4
24366 .byte 0x31
24367 .uaword %r_disp32(foo)
24368 .byte 0x32, 0x33, 0x34
24369 .global foo
24370 .hidden foo
24371 foo:
24372 .skip 4' > conftest.s
24373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24375 (eval $ac_try) 2>&5
24376 ac_status=$?
24377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24378 test $ac_status = 0; }; }
24379 then
24380 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24381 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24382 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24383 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24384 if $gcc_cv_objdump -R conftest 2> /dev/null \
24385 | grep 'DISP32' > /dev/null 2>&1; then
24386 :
24387 else
24388 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24389 fi
24390 fi
24391 rm -f conftest
24392 else
24393 echo "configure: failed program was" >&5
24394 cat conftest.s >&5
24395 fi
24396 rm -f conftest.o conftest.s
24397 fi
24398 fi
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24400 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24401 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24402
24403 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24404
24405 fi
24406
24407 fi # unaligned pcrel relocs
24408
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24410 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24411 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24412 $as_echo_n "(cached) " >&6
24413 else
24414 gcc_cv_as_sparc_offsetable_lo10=no
24415 if test x$gcc_cv_as != x; then
24416 $as_echo '.text
24417 or %g1, %lo(ab) + 12, %g1
24418 or %g1, %lo(ab + 12), %g1' > conftest.s
24419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24421 (eval $ac_try) 2>&5
24422 ac_status=$?
24423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24424 test $ac_status = 0; }; }
24425 then
24426 if test x$gcc_cv_objdump != x \
24427 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24428 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24429 gcc_cv_as_sparc_offsetable_lo10=yes
24430 fi
24431 else
24432 echo "configure: failed program was" >&5
24433 cat conftest.s >&5
24434 fi
24435 rm -f conftest.o conftest.s
24436 fi
24437 fi
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24439 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24440 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24441
24442 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24443
24444 fi
24445
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24447 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24448 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24449 $as_echo_n "(cached) " >&6
24450 else
24451 gcc_cv_as_sparc_fmaf=no
24452 if test x$gcc_cv_as != x; then
24453 $as_echo '.text
24454 .register %g2, #scratch
24455 .register %g3, #scratch
24456 .align 4
24457 fmaddd %f0, %f2, %f4, %f6
24458 addxccc %g1, %g2, %g3
24459 fsrl32 %f2, %f4, %f8
24460 fnaddd %f10, %f12, %f14' > conftest.s
24461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24463 (eval $ac_try) 2>&5
24464 ac_status=$?
24465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24466 test $ac_status = 0; }; }
24467 then
24468 gcc_cv_as_sparc_fmaf=yes
24469 else
24470 echo "configure: failed program was" >&5
24471 cat conftest.s >&5
24472 fi
24473 rm -f conftest.o conftest.s
24474 fi
24475 fi
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24477 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24478 if test $gcc_cv_as_sparc_fmaf = yes; then
24479
24480 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24481
24482 fi
24483
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24485 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24486 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24487 $as_echo_n "(cached) " >&6
24488 else
24489 gcc_cv_as_sparc_sparc4=no
24490 if test x$gcc_cv_as != x; then
24491 $as_echo '.text
24492 .register %g2, #scratch
24493 .register %g3, #scratch
24494 .align 4
24495 cxbe %g2, %g3, 1f
24496 1: cwbneg %g2, %g3, 1f
24497 1: sha1
24498 md5
24499 aes_kexpand0 %f4, %f6, %f8
24500 des_round %f38, %f40, %f42, %f44
24501 camellia_f %f54, %f56, %f58, %f60
24502 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24505 (eval $ac_try) 2>&5
24506 ac_status=$?
24507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24508 test $ac_status = 0; }; }
24509 then
24510 gcc_cv_as_sparc_sparc4=yes
24511 else
24512 echo "configure: failed program was" >&5
24513 cat conftest.s >&5
24514 fi
24515 rm -f conftest.o conftest.s
24516 fi
24517 fi
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24519 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24520 if test $gcc_cv_as_sparc_sparc4 = yes; then
24521
24522 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24523
24524 fi
24525
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24527 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24528 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24529 $as_echo_n "(cached) " >&6
24530 else
24531 gcc_cv_as_sparc_leon=no
24532 if test x$gcc_cv_as != x; then
24533 $as_echo '.text
24534 .register %g2, #scratch
24535 .register %g3, #scratch
24536 .align 4
24537 smac %g2, %g3, %g1
24538 umac %g2, %g3, %g1
24539 casa [%g2] 0xb, %g3, %g1' > conftest.s
24540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24542 (eval $ac_try) 2>&5
24543 ac_status=$?
24544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24545 test $ac_status = 0; }; }
24546 then
24547 gcc_cv_as_sparc_leon=yes
24548 else
24549 echo "configure: failed program was" >&5
24550 cat conftest.s >&5
24551 fi
24552 rm -f conftest.o conftest.s
24553 fi
24554 fi
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24556 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24557 if test $gcc_cv_as_sparc_leon = yes; then
24558
24559 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24560
24561 fi
24562 ;;
24563
24564 i[34567]86-*-* | x86_64-*-*)
24565 case $target_os in
24566 cygwin*)
24567 # Full C++ conformance when using a shared libstdc++-v3 requires some
24568 # support from the Cygwin DLL, which in more recent versions exports
24569 # wrappers to aid in interposing and redirecting operators new, delete,
24570 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24571 # are configuring for a version of Cygwin that exports the wrappers.
24572 if test x$host = x$target && test x$host_cpu = xi686; then
24573 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24574 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24575 gcc_ac_cygwin_dll_wrappers=yes
24576 else
24577 gcc_ac_cygwin_dll_wrappers=no
24578 fi
24579
24580 else
24581 # Can't check presence of libc functions during cross-compile, so
24582 # we just have to assume we're building for an up-to-date target.
24583 gcc_ac_cygwin_dll_wrappers=yes
24584 fi
24585
24586 cat >>confdefs.h <<_ACEOF
24587 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24588 _ACEOF
24589
24590 esac
24591 case $target_os in
24592 cygwin* | pe | mingw32* | interix*)
24593 # Recent binutils allows the three-operand form of ".comm" on PE. This
24594 # definition is used unconditionally to initialise the default state of
24595 # the target option variable that governs usage of the feature.
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24597 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24598 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24600 else
24601 gcc_cv_as_comm_has_align=no
24602 if test $in_tree_gas = yes; then
24603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24604 then gcc_cv_as_comm_has_align=yes
24605 fi
24606 elif test x$gcc_cv_as != x; then
24607 $as_echo '.comm foo,1,32' > conftest.s
24608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24613 test $ac_status = 0; }; }
24614 then
24615 gcc_cv_as_comm_has_align=yes
24616 else
24617 echo "configure: failed program was" >&5
24618 cat conftest.s >&5
24619 fi
24620 rm -f conftest.o conftest.s
24621 fi
24622 fi
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24624 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24625
24626
24627 cat >>confdefs.h <<_ACEOF
24628 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24629 _ACEOF
24630
24631 # Used for DWARF 2 in PE
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24633 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24634 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24636 else
24637 gcc_cv_as_ix86_pe_secrel32=no
24638 if test $in_tree_gas = yes; then
24639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24640 then gcc_cv_as_ix86_pe_secrel32=yes
24641 fi
24642 elif test x$gcc_cv_as != x; then
24643 $as_echo '.text
24644 foo: nop
24645 .data
24646 .secrel32 foo' > conftest.s
24647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24649 (eval $ac_try) 2>&5
24650 ac_status=$?
24651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24652 test $ac_status = 0; }; }
24653 then
24654 if test x$gcc_cv_ld != x \
24655 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24656 gcc_cv_as_ix86_pe_secrel32=yes
24657 fi
24658 rm -f conftest
24659 else
24660 echo "configure: failed program was" >&5
24661 cat conftest.s >&5
24662 fi
24663 rm -f conftest.o conftest.s
24664 fi
24665 fi
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24667 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24668 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24669
24670 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24671
24672 fi
24673 # Test if the assembler supports the extended form of the .section
24674 # directive that specifies section alignment. LTO support uses this,
24675 # but normally only after installation, so we warn but don't fail the
24676 # configure if LTO is enabled but the assembler does not support it.
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24678 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24679 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24681 else
24682 gcc_cv_as_section_has_align=no
24683 if test $in_tree_gas = yes; then
24684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24685 then gcc_cv_as_section_has_align=yes
24686 fi
24687 elif test x$gcc_cv_as != x; then
24688 $as_echo '.section lto_test,"dr0"' > conftest.s
24689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24691 (eval $ac_try) 2>&5
24692 ac_status=$?
24693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24694 test $ac_status = 0; }; }
24695 then
24696 gcc_cv_as_section_has_align=yes
24697 else
24698 echo "configure: failed program was" >&5
24699 cat conftest.s >&5
24700 fi
24701 rm -f conftest.o conftest.s
24702 fi
24703 fi
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24705 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24706
24707 if test x$gcc_cv_as_section_has_align != xyes; then
24708 case ",$enable_languages," in
24709 *,lto,*)
24710 { $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
24711 $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;}
24712 ;;
24713 esac
24714 fi
24715 ;;
24716 esac
24717
24718 # Test if the assembler supports the section flag 'e' for specifying
24719 # an excluded section.
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24721 $as_echo_n "checking assembler for .section with e... " >&6; }
24722 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24724 else
24725 gcc_cv_as_section_has_e=no
24726 if test $in_tree_gas = yes; then
24727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24728 then gcc_cv_as_section_has_e=yes
24729 fi
24730 elif test x$gcc_cv_as != x; then
24731 $as_echo '.section foo1,"e"
24732 .byte 0,0,0,0' > conftest.s
24733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24738 test $ac_status = 0; }; }
24739 then
24740 gcc_cv_as_section_has_e=yes
24741 else
24742 echo "configure: failed program was" >&5
24743 cat conftest.s >&5
24744 fi
24745 rm -f conftest.o conftest.s
24746 fi
24747 fi
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24749 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24750
24751
24752 cat >>confdefs.h <<_ACEOF
24753 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24754 _ACEOF
24755
24756
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24758 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24759 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24760 $as_echo_n "(cached) " >&6
24761 else
24762 gcc_cv_as_ix86_filds=no
24763 if test x$gcc_cv_as != x; then
24764 $as_echo 'filds mem; fists mem' > conftest.s
24765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24767 (eval $ac_try) 2>&5
24768 ac_status=$?
24769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24770 test $ac_status = 0; }; }
24771 then
24772 gcc_cv_as_ix86_filds=yes
24773 else
24774 echo "configure: failed program was" >&5
24775 cat conftest.s >&5
24776 fi
24777 rm -f conftest.o conftest.s
24778 fi
24779 fi
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24781 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24782 if test $gcc_cv_as_ix86_filds = yes; then
24783
24784 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24785
24786 fi
24787
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24789 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24790 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24791 $as_echo_n "(cached) " >&6
24792 else
24793 gcc_cv_as_ix86_fildq=no
24794 if test x$gcc_cv_as != x; then
24795 $as_echo 'fildq mem; fistpq mem' > conftest.s
24796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24798 (eval $ac_try) 2>&5
24799 ac_status=$?
24800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24801 test $ac_status = 0; }; }
24802 then
24803 gcc_cv_as_ix86_fildq=yes
24804 else
24805 echo "configure: failed program was" >&5
24806 cat conftest.s >&5
24807 fi
24808 rm -f conftest.o conftest.s
24809 fi
24810 fi
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24812 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24813 if test $gcc_cv_as_ix86_fildq = yes; then
24814
24815 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24816
24817 fi
24818
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24820 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24821 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24822 $as_echo_n "(cached) " >&6
24823 else
24824 gcc_cv_as_ix86_cmov_sun_syntax=no
24825 if test x$gcc_cv_as != x; then
24826 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24829 (eval $ac_try) 2>&5
24830 ac_status=$?
24831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832 test $ac_status = 0; }; }
24833 then
24834 gcc_cv_as_ix86_cmov_sun_syntax=yes
24835 else
24836 echo "configure: failed program was" >&5
24837 cat conftest.s >&5
24838 fi
24839 rm -f conftest.o conftest.s
24840 fi
24841 fi
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24843 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24844 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24845
24846 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24847
24848 fi
24849
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24851 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24852 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24854 else
24855 gcc_cv_as_ix86_ffreep=no
24856 if test x$gcc_cv_as != x; then
24857 $as_echo 'ffreep %st(1)' > conftest.s
24858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24860 (eval $ac_try) 2>&5
24861 ac_status=$?
24862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24863 test $ac_status = 0; }; }
24864 then
24865 gcc_cv_as_ix86_ffreep=yes
24866 else
24867 echo "configure: failed program was" >&5
24868 cat conftest.s >&5
24869 fi
24870 rm -f conftest.o conftest.s
24871 fi
24872 fi
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24874 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24875 if test $gcc_cv_as_ix86_ffreep = yes; then
24876
24877 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24878
24879 fi
24880
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24882 $as_echo_n "checking assembler for .quad directive... " >&6; }
24883 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24884 $as_echo_n "(cached) " >&6
24885 else
24886 gcc_cv_as_ix86_quad=no
24887 if test x$gcc_cv_as != x; then
24888 $as_echo '.quad 0' > conftest.s
24889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24891 (eval $ac_try) 2>&5
24892 ac_status=$?
24893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24894 test $ac_status = 0; }; }
24895 then
24896 gcc_cv_as_ix86_quad=yes
24897 else
24898 echo "configure: failed program was" >&5
24899 cat conftest.s >&5
24900 fi
24901 rm -f conftest.o conftest.s
24902 fi
24903 fi
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24905 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24906 if test $gcc_cv_as_ix86_quad = yes; then
24907
24908 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24909
24910 fi
24911
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24913 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24914 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24915 $as_echo_n "(cached) " >&6
24916 else
24917 gcc_cv_as_ix86_sahf=no
24918 if test x$gcc_cv_as != x; then
24919 $as_echo '.code64
24920 sahf' > conftest.s
24921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24923 (eval $ac_try) 2>&5
24924 ac_status=$?
24925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24926 test $ac_status = 0; }; }
24927 then
24928 gcc_cv_as_ix86_sahf=yes
24929 else
24930 echo "configure: failed program was" >&5
24931 cat conftest.s >&5
24932 fi
24933 rm -f conftest.o conftest.s
24934 fi
24935 fi
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24937 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24938 if test $gcc_cv_as_ix86_sahf = yes; then
24939
24940 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24941
24942 fi
24943
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24945 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24946 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24947 $as_echo_n "(cached) " >&6
24948 else
24949 gcc_cv_as_ix86_interunit_movq=no
24950 if test x$gcc_cv_as != x; then
24951 $as_echo '.code64
24952 movq %mm0, %rax
24953 movq %rax, %xmm0' > conftest.s
24954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24956 (eval $ac_try) 2>&5
24957 ac_status=$?
24958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24959 test $ac_status = 0; }; }
24960 then
24961 gcc_cv_as_ix86_interunit_movq=yes
24962 else
24963 echo "configure: failed program was" >&5
24964 cat conftest.s >&5
24965 fi
24966 rm -f conftest.o conftest.s
24967 fi
24968 fi
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24970 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24971
24972
24973 cat >>confdefs.h <<_ACEOF
24974 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24975 _ACEOF
24976
24977
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24979 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24980 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24981 $as_echo_n "(cached) " >&6
24982 else
24983 gcc_cv_as_ix86_hle=no
24984 if test x$gcc_cv_as != x; then
24985 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24988 (eval $ac_try) 2>&5
24989 ac_status=$?
24990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24991 test $ac_status = 0; }; }
24992 then
24993 gcc_cv_as_ix86_hle=yes
24994 else
24995 echo "configure: failed program was" >&5
24996 cat conftest.s >&5
24997 fi
24998 rm -f conftest.o conftest.s
24999 fi
25000 fi
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25002 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25003 if test $gcc_cv_as_ix86_hle = yes; then
25004
25005 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25006
25007 fi
25008
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25010 $as_echo_n "checking assembler for swap suffix... " >&6; }
25011 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25012 $as_echo_n "(cached) " >&6
25013 else
25014 gcc_cv_as_ix86_swap=no
25015 if test x$gcc_cv_as != x; then
25016 $as_echo 'movl.s %esp, %ebp' > conftest.s
25017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25019 (eval $ac_try) 2>&5
25020 ac_status=$?
25021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25022 test $ac_status = 0; }; }
25023 then
25024 gcc_cv_as_ix86_swap=yes
25025 else
25026 echo "configure: failed program was" >&5
25027 cat conftest.s >&5
25028 fi
25029 rm -f conftest.o conftest.s
25030 fi
25031 fi
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25033 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25034 if test $gcc_cv_as_ix86_swap = yes; then
25035
25036 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25037
25038 fi
25039
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25041 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25042 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25043 $as_echo_n "(cached) " >&6
25044 else
25045 gcc_cv_as_ix86_diff_sect_delta=no
25046 if test x$gcc_cv_as != x; then
25047 $as_echo '.section .rodata
25048 .L1:
25049 .long .L2-.L1
25050 .long .L3-.L1
25051 .text
25052 .L3: nop
25053 .L2: nop' > conftest.s
25054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25056 (eval $ac_try) 2>&5
25057 ac_status=$?
25058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25059 test $ac_status = 0; }; }
25060 then
25061 gcc_cv_as_ix86_diff_sect_delta=yes
25062 else
25063 echo "configure: failed program was" >&5
25064 cat conftest.s >&5
25065 fi
25066 rm -f conftest.o conftest.s
25067 fi
25068 fi
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25070 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25071 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25072
25073 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25074
25075 fi
25076
25077 # These two are used unconditionally by i386.[ch]; it is to be defined
25078 # to 1 if the feature is present, 0 otherwise.
25079 as_ix86_gotoff_in_data_opt=
25080 if test x$gas = xyes; then
25081 as_ix86_gotoff_in_data_opt="--32"
25082 fi
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25084 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25085 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25086 $as_echo_n "(cached) " >&6
25087 else
25088 gcc_cv_as_ix86_gotoff_in_data=no
25089 if test $in_tree_gas = yes; then
25090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25091 then gcc_cv_as_ix86_gotoff_in_data=yes
25092 fi
25093 elif test x$gcc_cv_as != x; then
25094 $as_echo ' .text
25095 .L0:
25096 nop
25097 .data
25098 .long .L0@GOTOFF' > conftest.s
25099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25101 (eval $ac_try) 2>&5
25102 ac_status=$?
25103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25104 test $ac_status = 0; }; }
25105 then
25106 gcc_cv_as_ix86_gotoff_in_data=yes
25107 else
25108 echo "configure: failed program was" >&5
25109 cat conftest.s >&5
25110 fi
25111 rm -f conftest.o conftest.s
25112 fi
25113 fi
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25115 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25116
25117
25118 cat >>confdefs.h <<_ACEOF
25119 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25120 _ACEOF
25121
25122
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25124 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25125 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25126 $as_echo_n "(cached) " >&6
25127 else
25128 gcc_cv_as_ix86_rep_lock_prefix=no
25129 if test x$gcc_cv_as != x; then
25130 $as_echo 'rep movsl
25131 rep ret
25132 rep nop
25133 rep bsf %ecx, %eax
25134 rep bsr %ecx, %eax
25135 lock addl %edi, (%eax,%esi)
25136 lock orl $0, (%esp)' > conftest.s
25137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25139 (eval $ac_try) 2>&5
25140 ac_status=$?
25141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25142 test $ac_status = 0; }; }
25143 then
25144 gcc_cv_as_ix86_rep_lock_prefix=yes
25145 else
25146 echo "configure: failed program was" >&5
25147 cat conftest.s >&5
25148 fi
25149 rm -f conftest.o conftest.s
25150 fi
25151 fi
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25153 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25154 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25155
25156 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25157
25158 fi
25159
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25161 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25162 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25163 $as_echo_n "(cached) " >&6
25164 else
25165 gcc_cv_as_ix86_ud2=no
25166 if test x$gcc_cv_as != x; then
25167 $as_echo 'ud2' > conftest.s
25168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25173 test $ac_status = 0; }; }
25174 then
25175 gcc_cv_as_ix86_ud2=yes
25176 else
25177 echo "configure: failed program was" >&5
25178 cat conftest.s >&5
25179 fi
25180 rm -f conftest.o conftest.s
25181 fi
25182 fi
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25184 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25185 if test $gcc_cv_as_ix86_ud2 = yes; then
25186
25187 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25188
25189 fi
25190
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25192 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25193 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25194 $as_echo_n "(cached) " >&6
25195 else
25196 gcc_cv_as_ix86_tlsgdplt=no
25197 if test x$gcc_cv_as != x; then
25198 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25204 test $ac_status = 0; }; }
25205 then
25206 if test x$gcc_cv_ld != x \
25207 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25208 gcc_cv_as_ix86_tlsgdplt=yes
25209 fi
25210 rm -f conftest
25211 else
25212 echo "configure: failed program was" >&5
25213 cat conftest.s >&5
25214 fi
25215 rm -f conftest.o conftest.s
25216 fi
25217 fi
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25219 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25220 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25221
25222 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25223
25224 fi
25225
25226 conftest_s='
25227 .section .tdata,"aw'$tls_section_flag'",@progbits
25228 tls_ld:
25229 .section .text,"ax",@progbits
25230 call tls_ld@tlsldmplt'
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25232 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25233 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25234 $as_echo_n "(cached) " >&6
25235 else
25236 gcc_cv_as_ix86_tlsldmplt=no
25237 if test x$gcc_cv_as != x; then
25238 $as_echo "$conftest_s" > conftest.s
25239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25241 (eval $ac_try) 2>&5
25242 ac_status=$?
25243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25244 test $ac_status = 0; }; }
25245 then
25246 if test x$gcc_cv_ld != x \
25247 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25248 gcc_cv_as_ix86_tlsldmplt=yes
25249 fi
25250 rm -f conftest
25251 else
25252 echo "configure: failed program was" >&5
25253 cat conftest.s >&5
25254 fi
25255 rm -f conftest.o conftest.s
25256 fi
25257 fi
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25259 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25260
25261
25262 cat >>confdefs.h <<_ACEOF
25263 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25264 _ACEOF
25265
25266
25267 # Enforce 32-bit output with gas and gld.
25268 if test x$gas = xyes; then
25269 as_ix86_tls_ldm_opt="--32"
25270 fi
25271 if echo "$ld_ver" | grep GNU > /dev/null; then
25272 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25273 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25274 else
25275 ld_ix86_tls_ldm_opt="-melf_i386"
25276 fi
25277 fi
25278 conftest_s='
25279 .section .text,"ax",@progbits
25280 .globl _start
25281 .type _start, @function
25282 _start:
25283 leal value@tlsldm(%ebx), %eax
25284 call ___tls_get_addr@plt
25285
25286 .section .tdata,"aw'$tls_section_flag'",@progbits
25287 .type value, @object
25288 value:'
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25290 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25291 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25292 $as_echo_n "(cached) " >&6
25293 else
25294 gcc_cv_as_ix86_tlsldm=no
25295 if test x$gcc_cv_as != x; then
25296 $as_echo "$conftest_s" > conftest.s
25297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25299 (eval $ac_try) 2>&5
25300 ac_status=$?
25301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25302 test $ac_status = 0; }; }
25303 then
25304 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25305 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25306 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25307 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25308 gcc_cv_as_ix86_tlsldm=yes
25309 fi
25310 fi
25311 rm -f conftest
25312 else
25313 echo "configure: failed program was" >&5
25314 cat conftest.s >&5
25315 fi
25316 rm -f conftest.o conftest.s
25317 fi
25318 fi
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25320 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25321
25322
25323 cat >>confdefs.h <<_ACEOF
25324 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25325 _ACEOF
25326
25327
25328 ;;
25329
25330 ia64*-*-*)
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25332 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25333 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25334 $as_echo_n "(cached) " >&6
25335 else
25336 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25337 if test $in_tree_gas = yes; then
25338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25339 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25340 fi
25341 elif test x$gcc_cv_as != x; then
25342 $as_echo ' .text
25343 addl r15 = @ltoffx(x#), gp
25344 ;;
25345 ld8.mov r16 = [r15], x#' > conftest.s
25346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25348 (eval $ac_try) 2>&5
25349 ac_status=$?
25350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25351 test $ac_status = 0; }; }
25352 then
25353 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25354 else
25355 echo "configure: failed program was" >&5
25356 cat conftest.s >&5
25357 fi
25358 rm -f conftest.o conftest.s
25359 fi
25360 fi
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25362 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25363 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25364
25365 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25366
25367 fi
25368
25369 ;;
25370
25371 powerpc*-*-*)
25372 case $target in
25373 *-*-aix*) conftest_s=' .machine "pwr5"
25374 .csect .text[PR]
25375 mfcr 3,128';;
25376 *-*-darwin*)
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25378 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25379 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25380 $as_echo_n "(cached) " >&6
25381 else
25382 gcc_cv_as_machine_directive=no
25383 if test x$gcc_cv_as != x; then
25384 $as_echo ' .machine ppc7400' > conftest.s
25385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387 (eval $ac_try) 2>&5
25388 ac_status=$?
25389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390 test $ac_status = 0; }; }
25391 then
25392 gcc_cv_as_machine_directive=yes
25393 else
25394 echo "configure: failed program was" >&5
25395 cat conftest.s >&5
25396 fi
25397 rm -f conftest.o conftest.s
25398 fi
25399 fi
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25401 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25402
25403 if test x$gcc_cv_as_machine_directive != xyes; then
25404 echo "*** This target requires an assembler supporting \".machine\"" >&2
25405 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25406 test x$build = x$target && exit 1
25407 fi
25408 conftest_s=' .text
25409 mfcr r3,128';;
25410 *) conftest_s=' .machine power4
25411 .text
25412 mfcr 3,128';;
25413 esac
25414
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25416 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25417 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25418 $as_echo_n "(cached) " >&6
25419 else
25420 gcc_cv_as_powerpc_mfcrf=no
25421 if test $in_tree_gas = yes; then
25422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25423 then gcc_cv_as_powerpc_mfcrf=yes
25424 fi
25425 elif test x$gcc_cv_as != x; then
25426 $as_echo "$conftest_s" > conftest.s
25427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25429 (eval $ac_try) 2>&5
25430 ac_status=$?
25431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25432 test $ac_status = 0; }; }
25433 then
25434 gcc_cv_as_powerpc_mfcrf=yes
25435 else
25436 echo "configure: failed program was" >&5
25437 cat conftest.s >&5
25438 fi
25439 rm -f conftest.o conftest.s
25440 fi
25441 fi
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25443 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25444 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25445
25446 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25447
25448 fi
25449
25450 case $target in
25451 *-*-aix*) conftest_s=' .machine "pwr5"
25452 .csect .text[PR]
25453 popcntb 3,3';;
25454 *) conftest_s=' .machine power5
25455 .text
25456 popcntb 3,3';;
25457 esac
25458
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25460 $as_echo_n "checking assembler for popcntb support... " >&6; }
25461 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25462 $as_echo_n "(cached) " >&6
25463 else
25464 gcc_cv_as_powerpc_popcntb=no
25465 if test $in_tree_gas = yes; then
25466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25467 then gcc_cv_as_powerpc_popcntb=yes
25468 fi
25469 elif test x$gcc_cv_as != x; then
25470 $as_echo "$conftest_s" > conftest.s
25471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25473 (eval $ac_try) 2>&5
25474 ac_status=$?
25475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25476 test $ac_status = 0; }; }
25477 then
25478 gcc_cv_as_powerpc_popcntb=yes
25479 else
25480 echo "configure: failed program was" >&5
25481 cat conftest.s >&5
25482 fi
25483 rm -f conftest.o conftest.s
25484 fi
25485 fi
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25487 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25488 if test $gcc_cv_as_powerpc_popcntb = yes; then
25489
25490 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25491
25492 fi
25493
25494 case $target in
25495 *-*-aix*) conftest_s=' .machine "pwr5x"
25496 .csect .text[PR]
25497 frin 1,1';;
25498 *) conftest_s=' .machine power5
25499 .text
25500 frin 1,1';;
25501 esac
25502
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25504 $as_echo_n "checking assembler for fp round support... " >&6; }
25505 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25506 $as_echo_n "(cached) " >&6
25507 else
25508 gcc_cv_as_powerpc_fprnd=no
25509 if test $in_tree_gas = yes; then
25510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25511 then gcc_cv_as_powerpc_fprnd=yes
25512 fi
25513 elif test x$gcc_cv_as != x; then
25514 $as_echo "$conftest_s" > conftest.s
25515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25517 (eval $ac_try) 2>&5
25518 ac_status=$?
25519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25520 test $ac_status = 0; }; }
25521 then
25522 gcc_cv_as_powerpc_fprnd=yes
25523 else
25524 echo "configure: failed program was" >&5
25525 cat conftest.s >&5
25526 fi
25527 rm -f conftest.o conftest.s
25528 fi
25529 fi
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25531 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25532 if test $gcc_cv_as_powerpc_fprnd = yes; then
25533
25534 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25535
25536 fi
25537
25538 case $target in
25539 *-*-aix*) conftest_s=' .machine "pwr6"
25540 .csect .text[PR]
25541 mffgpr 1,3';;
25542 *) conftest_s=' .machine power6
25543 .text
25544 mffgpr 1,3';;
25545 esac
25546
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25548 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25549 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25550 $as_echo_n "(cached) " >&6
25551 else
25552 gcc_cv_as_powerpc_mfpgpr=no
25553 if test $in_tree_gas = yes; then
25554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25555 then gcc_cv_as_powerpc_mfpgpr=yes
25556 fi
25557 elif test x$gcc_cv_as != x; then
25558 $as_echo "$conftest_s" > conftest.s
25559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25561 (eval $ac_try) 2>&5
25562 ac_status=$?
25563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25564 test $ac_status = 0; }; }
25565 then
25566 gcc_cv_as_powerpc_mfpgpr=yes
25567 else
25568 echo "configure: failed program was" >&5
25569 cat conftest.s >&5
25570 fi
25571 rm -f conftest.o conftest.s
25572 fi
25573 fi
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25575 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25576 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25577
25578 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25579
25580 fi
25581
25582 case $target in
25583 *-*-aix*) conftest_s=' .csect .text[PR]
25584 LCF..0:
25585 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25586 *-*-darwin*)
25587 conftest_s=' .text
25588 LCF0:
25589 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25590 *) conftest_s=' .text
25591 .LCF0:
25592 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25593 esac
25594
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25596 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25597 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25598 $as_echo_n "(cached) " >&6
25599 else
25600 gcc_cv_as_powerpc_rel16=no
25601 if test $in_tree_gas = yes; then
25602 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25603 then gcc_cv_as_powerpc_rel16=yes
25604 fi
25605 elif test x$gcc_cv_as != x; then
25606 $as_echo "$conftest_s" > conftest.s
25607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25609 (eval $ac_try) 2>&5
25610 ac_status=$?
25611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25612 test $ac_status = 0; }; }
25613 then
25614 gcc_cv_as_powerpc_rel16=yes
25615 else
25616 echo "configure: failed program was" >&5
25617 cat conftest.s >&5
25618 fi
25619 rm -f conftest.o conftest.s
25620 fi
25621 fi
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25623 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25624 if test $gcc_cv_as_powerpc_rel16 = yes; then
25625
25626 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25627
25628 fi
25629
25630 case $target in
25631 *-*-aix*) conftest_s=' .machine "pwr6"
25632 .csect .text[PR]
25633 cmpb 3,4,5';;
25634 *) conftest_s=' .machine power6
25635 .text
25636 cmpb 3,4,5';;
25637 esac
25638
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25640 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25641 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25643 else
25644 gcc_cv_as_powerpc_cmpb=no
25645 if test $in_tree_gas = yes; then
25646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25647 then gcc_cv_as_powerpc_cmpb=yes
25648 fi
25649 elif test x$gcc_cv_as != x; then
25650 $as_echo "$conftest_s" > conftest.s
25651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25653 (eval $ac_try) 2>&5
25654 ac_status=$?
25655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25656 test $ac_status = 0; }; }
25657 then
25658 gcc_cv_as_powerpc_cmpb=yes
25659 else
25660 echo "configure: failed program was" >&5
25661 cat conftest.s >&5
25662 fi
25663 rm -f conftest.o conftest.s
25664 fi
25665 fi
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25667 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25668 if test $gcc_cv_as_powerpc_cmpb = yes; then
25669
25670 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25671
25672 fi
25673
25674 case $target in
25675 *-*-aix*) conftest_s=' .machine "pwr6"
25676 .csect .text[PR]
25677 dadd 1,2,3';;
25678 *) conftest_s=' .machine power6
25679 .text
25680 dadd 1,2,3';;
25681 esac
25682
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25684 $as_echo_n "checking assembler for decimal float support... " >&6; }
25685 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25686 $as_echo_n "(cached) " >&6
25687 else
25688 gcc_cv_as_powerpc_dfp=no
25689 if test $in_tree_gas = yes; then
25690 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25691 then gcc_cv_as_powerpc_dfp=yes
25692 fi
25693 elif test x$gcc_cv_as != x; then
25694 $as_echo "$conftest_s" > conftest.s
25695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25700 test $ac_status = 0; }; }
25701 then
25702 gcc_cv_as_powerpc_dfp=yes
25703 else
25704 echo "configure: failed program was" >&5
25705 cat conftest.s >&5
25706 fi
25707 rm -f conftest.o conftest.s
25708 fi
25709 fi
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25711 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25712 if test $gcc_cv_as_powerpc_dfp = yes; then
25713
25714 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25715
25716 fi
25717
25718 case $target in
25719 *-*-aix*) conftest_s=' .machine "pwr7"
25720 .csect .text[PR]
25721 lxvd2x 1,2,3';;
25722 *) conftest_s=' .machine power7
25723 .text
25724 lxvd2x 1,2,3';;
25725 esac
25726
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25728 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25729 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25730 $as_echo_n "(cached) " >&6
25731 else
25732 gcc_cv_as_powerpc_vsx=no
25733 if test $in_tree_gas = yes; then
25734 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25735 then gcc_cv_as_powerpc_vsx=yes
25736 fi
25737 elif test x$gcc_cv_as != x; then
25738 $as_echo "$conftest_s" > conftest.s
25739 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25741 (eval $ac_try) 2>&5
25742 ac_status=$?
25743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25744 test $ac_status = 0; }; }
25745 then
25746 gcc_cv_as_powerpc_vsx=yes
25747 else
25748 echo "configure: failed program was" >&5
25749 cat conftest.s >&5
25750 fi
25751 rm -f conftest.o conftest.s
25752 fi
25753 fi
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25755 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25756 if test $gcc_cv_as_powerpc_vsx = yes; then
25757
25758 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25759
25760 fi
25761
25762 case $target in
25763 *-*-aix*) conftest_s=' .machine "pwr7"
25764 .csect .text[PR]
25765 popcntd 3,3';;
25766 *) conftest_s=' .machine power7
25767 .text
25768 popcntd 3,3';;
25769 esac
25770
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25772 $as_echo_n "checking assembler for popcntd support... " >&6; }
25773 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25774 $as_echo_n "(cached) " >&6
25775 else
25776 gcc_cv_as_powerpc_popcntd=no
25777 if test $in_tree_gas = yes; then
25778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25779 then gcc_cv_as_powerpc_popcntd=yes
25780 fi
25781 elif test x$gcc_cv_as != x; then
25782 $as_echo "$conftest_s" > conftest.s
25783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25785 (eval $ac_try) 2>&5
25786 ac_status=$?
25787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25788 test $ac_status = 0; }; }
25789 then
25790 gcc_cv_as_powerpc_popcntd=yes
25791 else
25792 echo "configure: failed program was" >&5
25793 cat conftest.s >&5
25794 fi
25795 rm -f conftest.o conftest.s
25796 fi
25797 fi
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25799 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25800 if test $gcc_cv_as_powerpc_popcntd = yes; then
25801
25802 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25803
25804 fi
25805
25806 case $target in
25807 *-*-aix*) conftest_s=' .machine "pwr8"
25808 .csect .text[PR]';;
25809 *) conftest_s=' .machine power8
25810 .text';;
25811 esac
25812
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25814 $as_echo_n "checking assembler for power8 support... " >&6; }
25815 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25816 $as_echo_n "(cached) " >&6
25817 else
25818 gcc_cv_as_powerpc_power8=no
25819 if test $in_tree_gas = yes; then
25820 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25821 then gcc_cv_as_powerpc_power8=yes
25822 fi
25823 elif test x$gcc_cv_as != x; then
25824 $as_echo "$conftest_s" > conftest.s
25825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25827 (eval $ac_try) 2>&5
25828 ac_status=$?
25829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25830 test $ac_status = 0; }; }
25831 then
25832 gcc_cv_as_powerpc_power8=yes
25833 else
25834 echo "configure: failed program was" >&5
25835 cat conftest.s >&5
25836 fi
25837 rm -f conftest.o conftest.s
25838 fi
25839 fi
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25841 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25842 if test $gcc_cv_as_powerpc_power8 = yes; then
25843
25844 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25845
25846 fi
25847
25848 case $target in
25849 *-*-aix*) conftest_s=' .csect .text[PR]
25850 lwsync';;
25851 *) conftest_s=' .text
25852 lwsync';;
25853 esac
25854
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25856 $as_echo_n "checking assembler for lwsync support... " >&6; }
25857 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25858 $as_echo_n "(cached) " >&6
25859 else
25860 gcc_cv_as_powerpc_lwsync=no
25861 if test $in_tree_gas = yes; then
25862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25863 then gcc_cv_as_powerpc_lwsync=yes
25864 fi
25865 elif test x$gcc_cv_as != x; then
25866 $as_echo "$conftest_s" > conftest.s
25867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872 test $ac_status = 0; }; }
25873 then
25874 gcc_cv_as_powerpc_lwsync=yes
25875 else
25876 echo "configure: failed program was" >&5
25877 cat conftest.s >&5
25878 fi
25879 rm -f conftest.o conftest.s
25880 fi
25881 fi
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25883 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25884 if test $gcc_cv_as_powerpc_lwsync = yes; then
25885
25886 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25887
25888 fi
25889
25890 case $target in
25891 *-*-aix*) conftest_s=' .machine "476"
25892 .csect .text[PR]
25893 dci 0';;
25894 *) conftest_s=' .machine "476"
25895 .text
25896 dci 0';;
25897 esac
25898
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25900 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25901 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25902 $as_echo_n "(cached) " >&6
25903 else
25904 gcc_cv_as_powerpc_dci=no
25905 if test $in_tree_gas = yes; then
25906 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25907 then gcc_cv_as_powerpc_dci=yes
25908 fi
25909 elif test x$gcc_cv_as != x; then
25910 $as_echo "$conftest_s" > conftest.s
25911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25913 (eval $ac_try) 2>&5
25914 ac_status=$?
25915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25916 test $ac_status = 0; }; }
25917 then
25918 gcc_cv_as_powerpc_dci=yes
25919 else
25920 echo "configure: failed program was" >&5
25921 cat conftest.s >&5
25922 fi
25923 rm -f conftest.o conftest.s
25924 fi
25925 fi
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25927 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25928 if test $gcc_cv_as_powerpc_dci = yes; then
25929
25930 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25931
25932 fi
25933
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25935 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25936 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25937 $as_echo_n "(cached) " >&6
25938 else
25939 gcc_cv_as_powerpc_gnu_attribute=no
25940 if test $in_tree_gas = yes; then
25941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25942 then gcc_cv_as_powerpc_gnu_attribute=yes
25943 fi
25944 elif test x$gcc_cv_as != x; then
25945 $as_echo '.gnu_attribute 4,1' > conftest.s
25946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25948 (eval $ac_try) 2>&5
25949 ac_status=$?
25950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25951 test $ac_status = 0; }; }
25952 then
25953 gcc_cv_as_powerpc_gnu_attribute=yes
25954 else
25955 echo "configure: failed program was" >&5
25956 cat conftest.s >&5
25957 fi
25958 rm -f conftest.o conftest.s
25959 fi
25960 fi
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25962 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25963 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25964
25965 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25966
25967 fi
25968
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25970 $as_echo_n "checking assembler for tls marker support... " >&6; }
25971 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25972 $as_echo_n "(cached) " >&6
25973 else
25974 gcc_cv_as_powerpc_tls_markers=no
25975 if test $in_tree_gas = yes; then
25976 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25977 then gcc_cv_as_powerpc_tls_markers=yes
25978 fi
25979 elif test x$gcc_cv_as != x; then
25980 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25983 (eval $ac_try) 2>&5
25984 ac_status=$?
25985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986 test $ac_status = 0; }; }
25987 then
25988 gcc_cv_as_powerpc_tls_markers=yes
25989 else
25990 echo "configure: failed program was" >&5
25991 cat conftest.s >&5
25992 fi
25993 rm -f conftest.o conftest.s
25994 fi
25995 fi
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25997 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25998 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25999
26000 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26001
26002 fi
26003
26004 case $target in
26005 *-*-aix*)
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26007 $as_echo_n "checking assembler for .ref support... " >&6; }
26008 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26009 $as_echo_n "(cached) " >&6
26010 else
26011 gcc_cv_as_aix_ref=no
26012 if test $in_tree_gas = yes; then
26013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26014 then gcc_cv_as_aix_ref=yes
26015 fi
26016 elif test x$gcc_cv_as != x; then
26017 $as_echo ' .csect stuff[rw]
26018 stuff:
26019 .long 1
26020 .extern sym
26021 .ref sym
26022 ' > conftest.s
26023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26025 (eval $ac_try) 2>&5
26026 ac_status=$?
26027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26028 test $ac_status = 0; }; }
26029 then
26030 gcc_cv_as_aix_ref=yes
26031 else
26032 echo "configure: failed program was" >&5
26033 cat conftest.s >&5
26034 fi
26035 rm -f conftest.o conftest.s
26036 fi
26037 fi
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26039 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26040 if test $gcc_cv_as_aix_ref = yes; then
26041
26042 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26043
26044 fi
26045 ;;
26046 esac
26047 ;;
26048
26049 mips*-*-*)
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26051 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26052 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26053 $as_echo_n "(cached) " >&6
26054 else
26055 gcc_cv_as_mips_explicit_relocs=no
26056 if test $in_tree_gas = yes; then
26057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26058 then gcc_cv_as_mips_explicit_relocs=yes
26059 fi
26060 elif test x$gcc_cv_as != x; then
26061 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26064 (eval $ac_try) 2>&5
26065 ac_status=$?
26066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26067 test $ac_status = 0; }; }
26068 then
26069 gcc_cv_as_mips_explicit_relocs=yes
26070 else
26071 echo "configure: failed program was" >&5
26072 cat conftest.s >&5
26073 fi
26074 rm -f conftest.o conftest.s
26075 fi
26076 fi
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26078 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26079 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26080 if test x$target_cpu_default = x
26081 then target_cpu_default=MASK_EXPLICIT_RELOCS
26082 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26083 fi
26084 fi
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26086 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26087 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26088 $as_echo_n "(cached) " >&6
26089 else
26090 gcc_cv_as_mips_no_shared=no
26091 if test $in_tree_gas = yes; then
26092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26093 then gcc_cv_as_mips_no_shared=yes
26094 fi
26095 elif test x$gcc_cv_as != x; then
26096 $as_echo 'nop' > conftest.s
26097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -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_no_shared=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_no_shared" >&5
26113 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26114 if test $gcc_cv_as_mips_no_shared = yes; then
26115
26116 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26117
26118 fi
26119
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26121 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26122 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26123 $as_echo_n "(cached) " >&6
26124 else
26125 gcc_cv_as_mips_gnu_attribute=no
26126 if test $in_tree_gas = yes; then
26127 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26128 then gcc_cv_as_mips_gnu_attribute=yes
26129 fi
26130 elif test x$gcc_cv_as != x; then
26131 $as_echo '.gnu_attribute 4,1' > conftest.s
26132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26134 (eval $ac_try) 2>&5
26135 ac_status=$?
26136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26137 test $ac_status = 0; }; }
26138 then
26139 gcc_cv_as_mips_gnu_attribute=yes
26140 else
26141 echo "configure: failed program was" >&5
26142 cat conftest.s >&5
26143 fi
26144 rm -f conftest.o conftest.s
26145 fi
26146 fi
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26148 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26149 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26150
26151 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26152
26153 fi
26154
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26156 $as_echo_n "checking assembler for .micromips support... " >&6; }
26157 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26158 $as_echo_n "(cached) " >&6
26159 else
26160 gcc_cv_as_micromips_support=no
26161 if test x$gcc_cv_as != x; then
26162 $as_echo '.set micromips' > conftest.s
26163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26165 (eval $ac_try) 2>&5
26166 ac_status=$?
26167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26168 test $ac_status = 0; }; }
26169 then
26170 gcc_cv_as_micromips_support=yes
26171 else
26172 echo "configure: failed program was" >&5
26173 cat conftest.s >&5
26174 fi
26175 rm -f conftest.o conftest.s
26176 fi
26177 fi
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26179 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26180 if test $gcc_cv_as_micromips_support = yes; then
26181
26182 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26183
26184 fi
26185
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26187 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26188 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26189 $as_echo_n "(cached) " >&6
26190 else
26191 gcc_cv_as_mips_dtprelword=no
26192 if test $in_tree_gas = yes; then
26193 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26194 then gcc_cv_as_mips_dtprelword=yes
26195 fi
26196 elif test x$gcc_cv_as != x; then
26197 $as_echo '.section .tdata,"awT",@progbits
26198 x:
26199 .word 2
26200 .text
26201 .dtprelword x+0x8000' > conftest.s
26202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26204 (eval $ac_try) 2>&5
26205 ac_status=$?
26206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26207 test $ac_status = 0; }; }
26208 then
26209 gcc_cv_as_mips_dtprelword=yes
26210 else
26211 echo "configure: failed program was" >&5
26212 cat conftest.s >&5
26213 fi
26214 rm -f conftest.o conftest.s
26215 fi
26216 fi
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26218 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26219 if test $gcc_cv_as_mips_dtprelword = yes; then
26220
26221 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26222
26223 fi
26224
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26226 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26227 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26228 $as_echo_n "(cached) " >&6
26229 else
26230 gcc_cv_as_mips_dspr1_mult=no
26231 if test x$gcc_cv_as != x; then
26232 $as_echo ' .set mips32r2
26233 .set nodspr2
26234 .set dsp
26235 madd $ac3,$4,$5
26236 maddu $ac3,$4,$5
26237 msub $ac3,$4,$5
26238 msubu $ac3,$4,$5
26239 mult $ac3,$4,$5
26240 multu $ac3,$4,$5' > conftest.s
26241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26243 (eval $ac_try) 2>&5
26244 ac_status=$?
26245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26246 test $ac_status = 0; }; }
26247 then
26248 gcc_cv_as_mips_dspr1_mult=yes
26249 else
26250 echo "configure: failed program was" >&5
26251 cat conftest.s >&5
26252 fi
26253 rm -f conftest.o conftest.s
26254 fi
26255 fi
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26257 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26258 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26259
26260 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26261
26262 fi
26263
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26265 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26266 gcc_cv_as_ld_jalr_reloc=no
26267 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26268 if test $in_tree_ld = yes ; then
26269 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 \
26270 && test $in_tree_ld_is_elf = yes; then
26271 gcc_cv_as_ld_jalr_reloc=yes
26272 fi
26273 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26274 echo ' .ent x' > conftest.s
26275 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26276 echo ' lw $25,%call16(y)($28)' >> conftest.s
26277 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26278 echo '1: jalr $25' >> conftest.s
26279 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26280 echo '1: jalr $25' >> conftest.s
26281 echo ' .end x' >> conftest.s
26282 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26283 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26284 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26285 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26286 gcc_cv_as_ld_jalr_reloc=yes
26287 fi
26288 fi
26289 rm -f conftest.*
26290 fi
26291 fi
26292 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26293 if test x$target_cpu_default = x; then
26294 target_cpu_default=MASK_RELAX_PIC_CALLS
26295 else
26296 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26297 fi
26298 fi
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26300 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26301
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26303 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26304 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26305 $as_echo_n "(cached) " >&6
26306 else
26307 gcc_cv_ld_mips_personality_relaxation=no
26308 if test $in_tree_ld = yes ; then
26309 if test "$gcc_cv_gld_major_version" -eq 2 \
26310 -a "$gcc_cv_gld_minor_version" -ge 21 \
26311 -o "$gcc_cv_gld_major_version" -gt 2; then
26312 gcc_cv_ld_mips_personality_relaxation=yes
26313 fi
26314 elif test x$gcc_cv_as != x \
26315 -a x$gcc_cv_ld != x \
26316 -a x$gcc_cv_readelf != x ; then
26317 cat > conftest.s <<EOF
26318 .cfi_startproc
26319 .cfi_personality 0x80,indirect_ptr
26320 .ent test
26321 test:
26322 nop
26323 .end test
26324 .cfi_endproc
26325
26326 .section .data,"aw",@progbits
26327 indirect_ptr:
26328 .dc.a personality
26329 EOF
26330 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26331 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26332 if $gcc_cv_readelf -d conftest 2>&1 \
26333 | grep TEXTREL > /dev/null 2>&1; then
26334 :
26335 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26336 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26337 :
26338 else
26339 gcc_cv_ld_mips_personality_relaxation=yes
26340 fi
26341 fi
26342 fi
26343 rm -f conftest.s conftest.o conftest
26344 fi
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26346 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26347 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26348
26349 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26350
26351 fi
26352
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26354 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26355 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26356 $as_echo_n "(cached) " >&6
26357 else
26358 gcc_cv_as_mips_nan=no
26359 if test x$gcc_cv_as != x; then
26360 $as_echo '' > conftest.s
26361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26363 (eval $ac_try) 2>&5
26364 ac_status=$?
26365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26366 test $ac_status = 0; }; }
26367 then
26368 gcc_cv_as_mips_nan=yes
26369 else
26370 echo "configure: failed program was" >&5
26371 cat conftest.s >&5
26372 fi
26373 rm -f conftest.o conftest.s
26374 fi
26375 fi
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26377 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26378 if test $gcc_cv_as_mips_nan = yes; then
26379
26380 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26381
26382 fi
26383 if test x$gcc_cv_as_mips_nan = xno \
26384 && test x$with_nan != x; then
26385 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26386 fi
26387 ;;
26388 esac
26389
26390 # Mips and HP-UX need the GNU assembler.
26391 # Linux on IA64 might be able to use the Intel assembler.
26392
26393 case "$target" in
26394 mips*-*-* | *-*-hpux* )
26395 if test x$gas_flag = xyes \
26396 || test x"$host" != x"$build" \
26397 || test ! -x "$gcc_cv_as" \
26398 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26399 :
26400 else
26401 echo "*** This configuration requires the GNU assembler" >&2
26402 exit 1
26403 fi
26404 ;;
26405 esac
26406
26407 # ??? Not all targets support dwarf2 debug_line, even within a version
26408 # of gas. Moreover, we need to emit a valid instruction to trigger any
26409 # info to the output file. So, as supported targets are added to gas 2.11,
26410 # add some instruction here to (also) show we expect this might work.
26411 # ??? Once 2.11 is released, probably need to add first known working
26412 # version to the per-target configury.
26413 case "$cpu_type" in
26414 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26415 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26416 | xstormy16 | xtensa)
26417 insn="nop"
26418 ;;
26419 ia64 | s390)
26420 insn="nop 0"
26421 ;;
26422 mmix)
26423 insn="swym 0"
26424 ;;
26425 esac
26426 if test x"$insn" != x; then
26427 conftest_s="\
26428 .file 1 \"conftest.s\"
26429 .loc 1 3 0
26430 $insn"
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26432 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26433 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26434 $as_echo_n "(cached) " >&6
26435 else
26436 gcc_cv_as_dwarf2_debug_line=no
26437 if test $in_tree_gas = yes; then
26438 if test $in_tree_gas_is_elf = yes \
26439 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26440 then gcc_cv_as_dwarf2_debug_line=yes
26441 fi
26442 elif test x$gcc_cv_as != x; then
26443 $as_echo "$conftest_s" > conftest.s
26444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446 (eval $ac_try) 2>&5
26447 ac_status=$?
26448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449 test $ac_status = 0; }; }
26450 then
26451 if test x$gcc_cv_objdump != x \
26452 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26453 | grep debug_line > /dev/null 2>&1; then
26454 gcc_cv_as_dwarf2_debug_line=yes
26455 fi
26456 else
26457 echo "configure: failed program was" >&5
26458 cat conftest.s >&5
26459 fi
26460 rm -f conftest.o conftest.s
26461 fi
26462 fi
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26464 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26465
26466
26467 # The .debug_line file table must be in the exact order that
26468 # we specified the files, since these indices are also used
26469 # by DW_AT_decl_file. Approximate this test by testing if
26470 # the assembler bitches if the same index is assigned twice.
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26472 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26473 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26474 $as_echo_n "(cached) " >&6
26475 else
26476 gcc_cv_as_dwarf2_file_buggy=no
26477 if test x$gcc_cv_as != x; then
26478 $as_echo ' .file 1 "foo.s"
26479 .file 1 "bar.s"' > conftest.s
26480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26482 (eval $ac_try) 2>&5
26483 ac_status=$?
26484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26485 test $ac_status = 0; }; }
26486 then
26487 gcc_cv_as_dwarf2_file_buggy=yes
26488 else
26489 echo "configure: failed program was" >&5
26490 cat conftest.s >&5
26491 fi
26492 rm -f conftest.o conftest.s
26493 fi
26494 fi
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26496 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26497
26498
26499 if test $gcc_cv_as_dwarf2_debug_line = yes \
26500 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26501
26502 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26503
26504 fi
26505
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26507 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26508 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26509 $as_echo_n "(cached) " >&6
26510 else
26511 gcc_cv_as_gdwarf2_flag=no
26512 if test $in_tree_gas = yes; then
26513 if test $in_tree_gas_is_elf = yes \
26514 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26515 then gcc_cv_as_gdwarf2_flag=yes
26516 fi
26517 elif test x$gcc_cv_as != x; then
26518 $as_echo "$insn" > conftest.s
26519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26521 (eval $ac_try) 2>&5
26522 ac_status=$?
26523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26524 test $ac_status = 0; }; }
26525 then
26526 gcc_cv_as_gdwarf2_flag=yes
26527 else
26528 echo "configure: failed program was" >&5
26529 cat conftest.s >&5
26530 fi
26531 rm -f conftest.o conftest.s
26532 fi
26533 fi
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26535 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26536 if test $gcc_cv_as_gdwarf2_flag = yes; then
26537
26538 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26539
26540 fi
26541
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26543 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26544 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26545 $as_echo_n "(cached) " >&6
26546 else
26547 gcc_cv_as_gstabs_flag=no
26548 if test $in_tree_gas = yes; then
26549 if test $in_tree_gas_is_elf = yes \
26550 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26551 then gcc_cv_as_gstabs_flag=yes
26552 fi
26553 elif test x$gcc_cv_as != x; then
26554 $as_echo "$insn" > conftest.s
26555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26557 (eval $ac_try) 2>&5
26558 ac_status=$?
26559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26560 test $ac_status = 0; }; }
26561 then
26562 gcc_cv_as_gstabs_flag=yes
26563 else
26564 echo "configure: failed program was" >&5
26565 cat conftest.s >&5
26566 fi
26567 rm -f conftest.o conftest.s
26568 fi
26569 fi
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26571 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26572 if test $gcc_cv_as_gstabs_flag = yes; then
26573
26574 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26575
26576 fi
26577
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26579 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26580 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26581 $as_echo_n "(cached) " >&6
26582 else
26583 gcc_cv_as_debug_prefix_map_flag=no
26584 if test $in_tree_gas = yes; then
26585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26586 then gcc_cv_as_debug_prefix_map_flag=yes
26587 fi
26588 elif test x$gcc_cv_as != x; then
26589 $as_echo "$insn" > conftest.s
26590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26592 (eval $ac_try) 2>&5
26593 ac_status=$?
26594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26595 test $ac_status = 0; }; }
26596 then
26597 gcc_cv_as_debug_prefix_map_flag=yes
26598 else
26599 echo "configure: failed program was" >&5
26600 cat conftest.s >&5
26601 fi
26602 rm -f conftest.o conftest.s
26603 fi
26604 fi
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26606 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26607 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26608
26609 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26610
26611 fi
26612 fi
26613
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26615 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26616 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26617 $as_echo_n "(cached) " >&6
26618 else
26619 gcc_cv_as_compress_debug=no
26620 if test x$gcc_cv_as != x; then
26621 $as_echo '' > conftest.s
26622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26624 (eval $ac_try) 2>&5
26625 ac_status=$?
26626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26627 test $ac_status = 0; }; }
26628 then
26629 # gas compiled without zlib cannot compress debug sections and warns
26630 # about it, but still exits successfully. So check for this, too.
26631 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26632 then
26633 gcc_cv_as_compress_debug=0
26634 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26635 then
26636 gcc_cv_as_compress_debug=1
26637 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26638 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26639 else
26640 gcc_cv_as_compress_debug=0
26641 # FIXME: Future gas versions will support ELF gABI style via
26642 # --compress-debug-sections[=type].
26643 fi
26644 else
26645 echo "configure: failed program was" >&5
26646 cat conftest.s >&5
26647 fi
26648 rm -f conftest.o conftest.s
26649 fi
26650 fi
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26652 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26653
26654
26655 cat >>confdefs.h <<_ACEOF
26656 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26657 _ACEOF
26658
26659
26660 cat >>confdefs.h <<_ACEOF
26661 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26662 _ACEOF
26663
26664
26665 cat >>confdefs.h <<_ACEOF
26666 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26667 _ACEOF
26668
26669
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26671 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26672 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26673 $as_echo_n "(cached) " >&6
26674 else
26675 gcc_cv_as_lcomm_with_alignment=no
26676 if test x$gcc_cv_as != x; then
26677 $as_echo '.lcomm bar,4,16' > conftest.s
26678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26684 then
26685 gcc_cv_as_lcomm_with_alignment=yes
26686 else
26687 echo "configure: failed program was" >&5
26688 cat conftest.s >&5
26689 fi
26690 rm -f conftest.o conftest.s
26691 fi
26692 fi
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26694 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26695 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26696
26697 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26698
26699 fi
26700
26701 if test x$with_sysroot = x && test x$host = x$target \
26702 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26703 && test "$prefix" != "NONE"; then
26704
26705 cat >>confdefs.h <<_ACEOF
26706 #define PREFIX_INCLUDE_DIR "$prefix/include"
26707 _ACEOF
26708
26709 fi
26710
26711 # Determine the version of glibc, if any, used on the target.
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26713 $as_echo_n "checking for target glibc version... " >&6; }
26714
26715 # Check whether --with-glibc-version was given.
26716 if test "${with_glibc_version+set}" = set; then :
26717 withval=$with_glibc_version;
26718 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26719 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26720 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26721 else
26722 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26723 fi
26724 else
26725
26726 glibc_version_major=0
26727 glibc_version_minor=0
26728 if test -f $target_header_dir/features.h \
26729 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26730 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26731 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26732 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26733 fi
26734 fi
26735
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26737 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26738
26739 cat >>confdefs.h <<_ACEOF
26740 #define TARGET_GLIBC_MAJOR $glibc_version_major
26741 _ACEOF
26742
26743
26744 cat >>confdefs.h <<_ACEOF
26745 #define TARGET_GLIBC_MINOR $glibc_version_minor
26746 _ACEOF
26747
26748
26749 # Check whether --enable-gnu-unique-object was given.
26750 if test "${enable_gnu_unique_object+set}" = set; then :
26751 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26752 yes | no) ;;
26753 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26754 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26755 esac
26756 else
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26758 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26759 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26760 $as_echo_n "(cached) " >&6
26761 else
26762 gcc_cv_as_gnu_unique_object=no
26763 if test $in_tree_gas = yes; then
26764 if test $in_tree_gas_is_elf = yes \
26765 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26766 then gcc_cv_as_gnu_unique_object=yes
26767 fi
26768 elif test x$gcc_cv_as != x; then
26769 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26772 (eval $ac_try) 2>&5
26773 ac_status=$?
26774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26775 test $ac_status = 0; }; }
26776 then
26777 gcc_cv_as_gnu_unique_object=yes
26778 else
26779 echo "configure: failed program was" >&5
26780 cat conftest.s >&5
26781 fi
26782 rm -f conftest.o conftest.s
26783 fi
26784 fi
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26786 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26787 if test $gcc_cv_as_gnu_unique_object = yes; then
26788 # We need to unquote above to to use the definition from config.gcc.
26789 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26790
26791 if test $glibc_version_major -gt 2 \
26792 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26793 enable_gnu_unique_object=yes
26794 fi
26795
26796 fi
26797 fi
26798
26799 if test x$enable_gnu_unique_object = xyes; then
26800
26801 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26802
26803 fi
26804
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26806 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26807 if test "${gcc_cv_as_line_zero+set}" = set; then :
26808 $as_echo_n "(cached) " >&6
26809 else
26810 gcc_cv_as_line_zero=no
26811 if test $in_tree_gas = yes; then
26812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26813 then gcc_cv_as_line_zero=yes
26814 fi
26815 elif test "x$gcc_cv_as" != x; then
26816 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26817 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26819 (eval $ac_try) 2>&5
26820 ac_status=$?
26821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26822 test $ac_status = 0; }; } &&
26823 test "x`cat conftest.out`" = x
26824 then
26825 gcc_cv_as_line_zero=yes
26826 else
26827 echo "configure: failed program was" >&5
26828 cat conftest.s >&5
26829 echo "configure: error output was" >&5
26830 cat conftest.out >&5
26831 fi
26832 rm -f conftest.o conftest.s conftest.out
26833 fi
26834 fi
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26836 $as_echo "$gcc_cv_as_line_zero" >&6; }
26837 if test "x$gcc_cv_as_line_zero" = xyes; then
26838
26839 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26840
26841 fi
26842
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26844 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26845 gcc_cv_ld_eh_frame_hdr=no
26846 if test $in_tree_ld = yes ; then
26847 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 \
26848 && test $in_tree_ld_is_elf = yes; then
26849 gcc_cv_ld_eh_frame_hdr=yes
26850 fi
26851 elif test x$gcc_cv_ld != x; then
26852 if echo "$ld_ver" | grep GNU > /dev/null; then
26853 # Check if linker supports --eh-frame-hdr option
26854 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26855 gcc_cv_ld_eh_frame_hdr=yes
26856 fi
26857 else
26858 case "$target" in
26859 *-*-solaris2*)
26860 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26861 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26862 gcc_cv_ld_eh_frame_hdr=yes
26863 fi
26864 ;;
26865 esac
26866 fi
26867 fi
26868
26869 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26870
26871 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26872
26873 fi
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26875 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26876
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26878 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26879 gcc_cv_ld_eh_frame_ciev3=no
26880 if test $in_tree_ld = yes ; then
26881 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 \
26882 && test $in_tree_ld_is_elf = yes; then
26883 gcc_cv_ld_eh_frame_ciev3=yes
26884 fi
26885 elif test x$gcc_cv_ld != x; then
26886 if echo "$ld_ver" | grep GNU > /dev/null; then
26887 gcc_cv_ld_eh_frame_ciev3=yes
26888 if test 0"$ld_date" -lt 20040513; then
26889 if test -n "$ld_date"; then
26890 # If there was date string, but was earlier than 2004-05-13, fail
26891 gcc_cv_ld_eh_frame_ciev3=no
26892 elif test "$ld_vers_major" -lt 2; then
26893 gcc_cv_ld_eh_frame_ciev3=no
26894 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26895 gcc_cv_ld_eh_frame_ciev3=no
26896 fi
26897 fi
26898 else
26899 case "$target" in
26900 *-*-solaris2*)
26901 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26902 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26903 gcc_cv_ld_eh_frame_ciev3=yes
26904 fi
26905 ;;
26906 esac
26907 fi
26908 fi
26909
26910 cat >>confdefs.h <<_ACEOF
26911 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26912 _ACEOF
26913
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26915 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26916
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26918 $as_echo_n "checking linker position independent executable support... " >&6; }
26919 gcc_cv_ld_pie=no
26920 if test $in_tree_ld = yes ; then
26921 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 \
26922 && test $in_tree_ld_is_elf = yes; then
26923 gcc_cv_ld_pie=yes
26924 fi
26925 elif test x$gcc_cv_ld != x; then
26926 # Check if linker supports -pie option
26927 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26928 gcc_cv_ld_pie=yes
26929 fi
26930 fi
26931 if test x"$gcc_cv_ld_pie" = xyes; then
26932
26933 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26934
26935 fi
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26937 $as_echo "$gcc_cv_ld_pie" >&6; }
26938
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26940 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26941 gcc_cv_ld_eh_gc_sections=no
26942 if test $in_tree_ld = yes ; then
26943 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 \
26944 && test $in_tree_ld_is_elf = yes; then
26945 gcc_cv_ld_eh_gc_sections=yes
26946 fi
26947 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26948 cat > conftest.s <<EOF
26949 .section .text
26950 .globl _start
26951 .type _start, @function
26952 _start:
26953 .long foo
26954 .size _start, .-_start
26955 .section .text.foo,"ax",@progbits
26956 .type foo, @function
26957 foo:
26958 .long 0
26959 .size foo, .-foo
26960 .section .gcc_except_table.foo,"a",@progbits
26961 .L0:
26962 .long 0
26963 .section .eh_frame,"a",@progbits
26964 .long .L0
26965 EOF
26966 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26967 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26968 | grep "gc-sections option ignored" > /dev/null; then
26969 gcc_cv_ld_eh_gc_sections=no
26970 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26971 | grep gcc_except_table > /dev/null; then
26972 gcc_cv_ld_eh_gc_sections=yes
26973 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26974 if test x$gcc_cv_as_comdat_group != xyes; then
26975 gcc_cv_ld_eh_gc_sections=no
26976 cat > conftest.s <<EOF
26977 .section .text
26978 .globl _start
26979 .type _start, @function
26980 _start:
26981 .long foo
26982 .size _start, .-_start
26983 .section .gnu.linkonce.t.foo,"ax",@progbits
26984 .type foo, @function
26985 foo:
26986 .long 0
26987 .size foo, .-foo
26988 .section .gcc_except_table.foo,"a",@progbits
26989 .L0:
26990 .long 0
26991 .section .eh_frame,"a",@progbits
26992 .long .L0
26993 EOF
26994 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26995 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26996 | grep "gc-sections option ignored" > /dev/null; then
26997 gcc_cv_ld_eh_gc_sections=no
26998 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26999 | grep gcc_except_table > /dev/null; then
27000 gcc_cv_ld_eh_gc_sections=yes
27001 fi
27002 fi
27003 fi
27004 fi
27005 fi
27006 rm -f conftest.s conftest.o conftest
27007 fi
27008 case "$target" in
27009 hppa*-*-linux*)
27010 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27011 gcc_cv_ld_eh_gc_sections=no
27012 ;;
27013 esac
27014 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27015
27016 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27017
27018 fi
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27020 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27021
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27023 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27024 gcc_cv_ld_eh_gc_sections_bug=no
27025 if test $in_tree_ld = yes ; then
27026 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 \
27027 && test $in_tree_ld_is_elf = yes; then
27028 gcc_cv_ld_eh_gc_sections_bug=yes
27029 fi
27030 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
27031 gcc_cv_ld_eh_gc_sections_bug=yes
27032 cat > conftest.s <<EOF
27033 .section .text
27034 .globl _start
27035 .type _start, @function
27036 _start:
27037 .long foo
27038 .size _start, .-_start
27039 .section .text.startup.foo,"ax",@progbits
27040 .type foo, @function
27041 foo:
27042 .long 0
27043 .size foo, .-foo
27044 .section .gcc_except_table.foo,"a",@progbits
27045 .L0:
27046 .long 0
27047 .section .eh_frame,"a",@progbits
27048 .long .L0
27049 EOF
27050 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27051 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27052 | grep "gc-sections option ignored" > /dev/null; then
27053 :
27054 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27055 | grep gcc_except_table > /dev/null; then
27056 gcc_cv_ld_eh_gc_sections_bug=no
27057 fi
27058 fi
27059 rm -f conftest.s conftest.o conftest
27060 fi
27061 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27062
27063 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27064
27065 fi
27066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27067 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27068
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27070 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27071 # gold/gld support compressed debug sections since binutils 2.19/2.21
27072 if test $in_tree_ld = yes ; then
27073 gcc_cv_ld_compress_debug=0
27074 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
27075 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27076 gcc_cv_ld_compress_debug=2
27077 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27078 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
27079 && test $in_tree_ld_is_elf = yes; then
27080 gcc_cv_ld_compress_debug=1
27081 fi
27082 elif echo "$ld_ver" | grep GNU > /dev/null; then
27083 gcc_cv_ld_compress_debug=1
27084 if test 0"$ld_date" -lt 20050308; then
27085 if test -n "$ld_date"; then
27086 # If there was date string, but was earlier than 2005-03-08, fail
27087 gcc_cv_ld_compress_debug=0
27088 elif test "$ld_vers_major" -lt 2; then
27089 gcc_cv_ld_compress_debug=0
27090 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27091 gcc_cv_ld_compress_debug=0
27092 fi
27093 fi
27094 if test $ld_is_gold = yes; then
27095 gcc_cv_ld_compress_debug=2
27096 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27097 fi
27098 else
27099 case "${target}" in
27100 *-*-solaris2*)
27101 # Introduced in Solaris 11.2.
27102 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27103 gcc_cv_ld_compress_debug=3
27104 gcc_cv_ld_compress_debug_option="-z compress-sections"
27105 else
27106 gcc_cv_ld_compress_debug=0
27107 fi
27108 ;;
27109 *)
27110 # Assume linkers other than GNU ld don't support compessed debug
27111 # sections.
27112 gcc_cv_ld_compress_debug=0
27113 ;;
27114 esac
27115 fi
27116
27117 cat >>confdefs.h <<_ACEOF
27118 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27119 _ACEOF
27120
27121
27122 cat >>confdefs.h <<_ACEOF
27123 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27124 _ACEOF
27125
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27127 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27128
27129 # --------
27130 # UNSORTED
27131 # --------
27132
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27134 $as_echo_n "checking linker --as-needed support... " >&6; }
27135 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27136 $as_echo_n "(cached) " >&6
27137 else
27138 gcc_cv_ld_as_needed=no
27139 gcc_cv_ld_as_needed_option='--as-needed'
27140 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27141 if test $in_tree_ld = yes ; then
27142 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 \
27143 && test $in_tree_ld_is_elf = yes; then
27144 gcc_cv_ld_as_needed=yes
27145 fi
27146 elif test x$gcc_cv_ld != x; then
27147 # Check if linker supports --as-needed and --no-as-needed options
27148 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27149 gcc_cv_ld_as_needed=yes
27150 else
27151 case "$target" in
27152 # Solaris 2 ld always supports -z ignore/-z record.
27153 *-*-solaris2*)
27154 gcc_cv_ld_as_needed=yes
27155 gcc_cv_ld_as_needed_option="-z ignore"
27156 gcc_cv_ld_no_as_needed_option="-z record"
27157 ;;
27158 esac
27159 fi
27160 fi
27161 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27162 # dl_iterate_phdr, i.e. since Solaris 11.
27163 case "$target" in
27164 *-*-solaris2.1[1-9]*)
27165 case "$target" in
27166 i?86-*-* | x86_64-*-*)
27167 if echo "$ld_ver" | grep GNU > /dev/null; then
27168 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27169 gcc_cv_ld_as_needed=no
27170 fi
27171 ;;
27172 esac
27173 ;;
27174 *-*-solaris2*)
27175 gcc_cv_ld_as_needed=no
27176 ;;
27177 esac
27178
27179 fi
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27181 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27182 if test x"$gcc_cv_ld_as_needed" = xyes; then
27183
27184 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27185
27186
27187 cat >>confdefs.h <<_ACEOF
27188 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27189 _ACEOF
27190
27191
27192 cat >>confdefs.h <<_ACEOF
27193 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27194 _ACEOF
27195
27196 fi
27197
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27199 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27200 saved_LDFLAGS="$LDFLAGS"
27201 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27202 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27204 /* end confdefs.h. */
27205 int main(void) {return 0;}
27206 _ACEOF
27207 if ac_fn_c_try_link "$LINENO"; then :
27208 gcc_cv_ld_clearcap=yes; break
27209 else
27210 gcc_cv_ld_clearcap=no
27211 fi
27212 rm -f core conftest.err conftest.$ac_objext \
27213 conftest$ac_exeext conftest.$ac_ext
27214 done
27215 LDFLAGS="$saved_LDFLAGS"
27216 if test "x$gcc_cv_ld_clearcap" = xyes; then
27217
27218 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27219
27220 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27221
27222 fi
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27224 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27225
27226 case "$target:$tm_file" in
27227 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27228 case "$target" in
27229 *le-*-linux*)
27230 emul_name="-melf64lppc"
27231 ;;
27232 *-*-linux*)
27233 emul_name="-melf64ppc"
27234 ;;
27235 *-*-freebsd*)
27236 emul_name="-melf64ppc_fbsd"
27237 ;;
27238 esac
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27240 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27241 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27242 $as_echo_n "(cached) " >&6
27243 else
27244 gcc_cv_ld_no_dot_syms=no
27245 if test x"$ld_is_gold" = xyes; then
27246 gcc_cv_ld_no_dot_syms=yes
27247 elif test $in_tree_ld = yes ; then
27248 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
27249 gcc_cv_ld_no_dot_syms=yes
27250 fi
27251 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27252 cat > conftest1.s <<EOF
27253 .text
27254 bl .foo
27255 EOF
27256 cat > conftest2.s <<EOF
27257 .section ".opd","aw"
27258 .align 3
27259 .globl foo
27260 .type foo,@function
27261 foo:
27262 .quad .LEfoo,.TOC.@tocbase,0
27263 .text
27264 .LEfoo:
27265 blr
27266 .size foo,.-.LEfoo
27267 EOF
27268 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27269 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27270 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27271 gcc_cv_ld_no_dot_syms=yes
27272 fi
27273 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27274 fi
27275
27276 fi
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27278 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27279 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27280
27281 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27282
27283 fi
27284
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27286 $as_echo_n "checking linker large toc support... " >&6; }
27287 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27288 $as_echo_n "(cached) " >&6
27289 else
27290 gcc_cv_ld_large_toc=no
27291 if test x"$ld_is_gold" = xyes; then
27292 gcc_cv_ld_large_toc=yes
27293 elif test $in_tree_ld = yes ; then
27294 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
27295 gcc_cv_ld_large_toc=yes
27296 fi
27297 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27298 cat > conftest.s <<EOF
27299 .section ".tbss","awT",@nobits
27300 .align 3
27301 ie0: .space 8
27302 .global _start
27303 .text
27304 _start:
27305 addis 9,13,ie0@got@tprel@ha
27306 ld 9,ie0@got@tprel@l(9)
27307 EOF
27308 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27309 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27310 gcc_cv_ld_large_toc=yes
27311 fi
27312 rm -f conftest conftest.o conftest.s
27313 fi
27314
27315 fi
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27317 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27318 if test x"$gcc_cv_ld_large_toc" = xyes; then
27319
27320 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27321
27322 fi
27323 ;;
27324 esac
27325
27326 case "$target" in
27327 *-*-aix*)
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27329 $as_echo_n "checking linker large toc support... " >&6; }
27330 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27331 $as_echo_n "(cached) " >&6
27332 else
27333 gcc_cv_ld_large_toc=no
27334 if test x$gcc_cv_as != x ; then
27335 cat > conftest.s <<EOF
27336 .toc
27337 LC..1:
27338 .tc a[TC],a[RW]
27339 .extern a[RW]
27340 .csect .text[PR]
27341 .largetoctest:
27342 addis 9,LC..1@u(2)
27343 ld 3,LC..1@l(9)
27344 EOF
27345 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27346 gcc_cv_ld_large_toc=yes
27347 fi
27348 rm -f conftest conftest.o conftest.s
27349 fi
27350
27351 fi
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27353 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27354 if test x"$gcc_cv_ld_large_toc" = xyes; then
27355
27356 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27357
27358 fi
27359 ;;
27360 esac
27361
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27363 $as_echo_n "checking linker --build-id support... " >&6; }
27364 if test "${gcc_cv_ld_buildid+set}" = set; then :
27365 $as_echo_n "(cached) " >&6
27366 else
27367 gcc_cv_ld_buildid=no
27368 if test $in_tree_ld = yes ; then
27369 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27370 "$gcc_cv_gld_minor_version" -ge 18 -o \
27371 "$gcc_cv_gld_major_version" -gt 2 \
27372 && test $in_tree_ld_is_elf = yes; then
27373 gcc_cv_ld_buildid=yes
27374 fi
27375 elif test x$gcc_cv_ld != x; then
27376 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27377 gcc_cv_ld_buildid=yes
27378 fi
27379 fi
27380 fi
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27382 $as_echo "$gcc_cv_ld_buildid" >&6; }
27383 if test x"$gcc_cv_ld_buildid" = xyes; then
27384
27385 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27386
27387 fi
27388
27389 # Check whether --enable-linker-build-id was given.
27390 if test "${enable_linker_build_id+set}" = set; then :
27391 enableval=$enable_linker_build_id;
27392 else
27393 enable_linker_build_id=no
27394 fi
27395
27396
27397 if test x"$enable_linker_build_id" = xyes; then
27398 if test x"$gcc_cv_ld_buildid" = xyes; then
27399
27400 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27401
27402 else
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27404 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27405 fi
27406 fi
27407
27408 # In binutils 2.21, GNU ld gained support for new emulations fully
27409 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27411 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27412 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27413 $as_echo_n "(cached) " >&6
27414 else
27415 gcc_cv_ld_sol2_emulation=no
27416 if test $in_tree_ld = yes ; then
27417 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27418 "$gcc_cv_gld_minor_version" -ge 21 -o \
27419 "$gcc_cv_gld_major_version" -gt 2 \
27420 && test $in_tree_ld_is_elf = yes; then
27421 gcc_cv_ld_sol2_emulation=yes
27422 fi
27423 elif test x$gcc_cv_ld != x; then
27424 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27425 grep _sol2 > /dev/null; then
27426 gcc_cv_ld_sol2_emulation=yes
27427 fi
27428 fi
27429 fi
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27431 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27432 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27433
27434 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27435
27436 fi
27437
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27439 $as_echo_n "checking linker --sysroot support... " >&6; }
27440 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27441 $as_echo_n "(cached) " >&6
27442 else
27443 gcc_cv_ld_sysroot=no
27444 if test $in_tree_ld = yes ; then
27445 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
27446 gcc_cv_ld_sysroot=yes
27447 fi
27448 elif test x$gcc_cv_ld != x; then
27449 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27450 gcc_cv_ld_sysroot=yes
27451 fi
27452 fi
27453 fi
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27455 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27456 if test x"$gcc_cv_ld_sysroot" = xyes; then
27457
27458 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27459
27460 fi
27461
27462 # Test for stack protector support in target C library.
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27464 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27465 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27466 $as_echo_n "(cached) " >&6
27467 else
27468 gcc_cv_libc_provides_ssp=no
27469 case "$target" in
27470 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27471 # glibc 2.4 and later provides __stack_chk_fail and
27472 # either __stack_chk_guard, or TLS access to stack guard canary.
27473
27474 if test $glibc_version_major -gt 2 \
27475 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27476 gcc_cv_libc_provides_ssp=yes
27477 else
27478
27479 if test -f $target_header_dir/features.h \
27480 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27481 $target_header_dir/features.h > /dev/null; then
27482 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27483 $target_header_dir/features.h > /dev/null && \
27484 test -f $target_header_dir/bits/uClibc_config.h && \
27485 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27486 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27487 gcc_cv_libc_provides_ssp=yes
27488 fi
27489 # all versions of Bionic support stack protector
27490 elif test -f $target_header_dir/sys/cdefs.h \
27491 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27492 $target_header_dir/sys/cdefs.h > /dev/null; then
27493 gcc_cv_libc_provides_ssp=yes
27494 fi
27495 fi
27496 ;;
27497 *-*-gnu*)
27498 # Avoid complicated tests (see
27499 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27500 # simply assert that glibc does provide this, which is true for all
27501 # realistically usable GNU/Hurd configurations.
27502 gcc_cv_libc_provides_ssp=yes;;
27503 *-*-darwin* | *-*-freebsd*)
27504 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27505 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27506 gcc_cv_libc_provides_ssp=yes
27507 else
27508 echo "no __stack_chk_fail on this target"
27509 fi
27510
27511 ;;
27512 *) gcc_cv_libc_provides_ssp=no ;;
27513 esac
27514 fi
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27516 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27517
27518 if test x$gcc_cv_libc_provides_ssp = xyes; then
27519
27520 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27521
27522 fi
27523
27524 # Test for <sys/sdt.h> on the target.
27525
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27527 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27528 have_sys_sdt_h=no
27529 if test -f $target_header_dir/sys/sdt.h; then
27530 have_sys_sdt_h=yes
27531
27532 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27533
27534 fi
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27536 $as_echo "$have_sys_sdt_h" >&6; }
27537
27538 # Check if TFmode long double should be used by default or not.
27539 # Some glibc targets used DFmode long double, but with glibc 2.4
27540 # and later they can use TFmode.
27541 case "$target" in
27542 powerpc*-*-linux* | \
27543 sparc*-*-linux* | \
27544 s390*-*-linux* | \
27545 alpha*-*-linux*)
27546
27547 # Check whether --with-long-double-128 was given.
27548 if test "${with_long_double_128+set}" = set; then :
27549 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27550 else
27551
27552 if test $glibc_version_major -gt 2 \
27553 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27554 gcc_cv_target_ldbl128=yes
27555 else
27556
27557 gcc_cv_target_ldbl128=no
27558 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27559 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27560 && gcc_cv_target_ldbl128=yes
27561
27562 fi
27563 fi
27564
27565 ;;
27566 esac
27567 if test x$gcc_cv_target_ldbl128 = xyes; then
27568
27569 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27570
27571 fi
27572
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27574 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27575 gcc_cv_target_dl_iterate_phdr=unknown
27576 case "$target" in
27577 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27578 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27579 # libdl there, both complicating its use and breaking compatibility
27580 # between Solaris 10 updates.
27581 *-*-solaris2.1[1-9]*)
27582 # <link.h> needs both a dl_iterate_phdr declaration and support for
27583 # compilation with largefile support.
27584 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27585 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27586 gcc_cv_target_dl_iterate_phdr=yes
27587 else
27588 gcc_cv_target_dl_iterate_phdr=no
27589 fi
27590 ;;
27591 *-*-dragonfly* | *-*-freebsd*)
27592 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27593 gcc_cv_target_dl_iterate_phdr=yes
27594 else
27595 gcc_cv_target_dl_iterate_phdr=no
27596 fi
27597 ;;
27598 esac
27599
27600 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27601
27602 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27603
27604 fi
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27606 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27607
27608 # We no longer support different GC mechanisms. Emit an error if
27609 # the user configures with --with-gc.
27610
27611 # Check whether --with-gc was given.
27612 if test "${with_gc+set}" = set; then :
27613 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27614 fi
27615
27616
27617 # Libraries to use on the host. This will normally be set by the top
27618 # level Makefile. Here we simply capture the value for our Makefile.
27619 if test -z "${HOST_LIBS+set}"; then
27620 HOST_LIBS=
27621 fi
27622
27623
27624 # Use the system's zlib library.
27625 zlibdir=-L../zlib
27626 zlibinc="-I\$(srcdir)/../zlib"
27627
27628 # Check whether --with-system-zlib was given.
27629 if test "${with_system_zlib+set}" = set; then :
27630 withval=$with_system_zlib; zlibdir=
27631 zlibinc=
27632
27633 fi
27634
27635
27636
27637
27638
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27640 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27641 # Check whether --enable-maintainer-mode was given.
27642 if test "${enable_maintainer_mode+set}" = set; then :
27643 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27644 else
27645 maintainer_mode=no
27646 fi
27647
27648
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27650 $as_echo "$maintainer_mode" >&6; }
27651
27652 if test "$maintainer_mode" = "yes"; then
27653 MAINT=''
27654 else
27655 MAINT='#'
27656 fi
27657
27658
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27660 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27661 # Check whether --enable-link-mutex was given.
27662 if test "${enable_link_mutex+set}" = set; then :
27663 enableval=$enable_link_mutex; do_link_mutex=$enableval
27664 else
27665 do_link_mutex=no
27666 fi
27667
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27669 $as_echo "$do_link_mutex" >&6; }
27670
27671 if test "$do_link_mutex" = "yes"; then
27672 DO_LINK_MUTEX=true
27673 else
27674 DO_LINK_MUTEX=false
27675 fi
27676
27677
27678 # --------------
27679 # Language hooks
27680 # --------------
27681
27682 # Make empty files to contain the specs and options for each language.
27683 # Then add #include lines to for a compiler that has specs and/or options.
27684
27685 subdirs=
27686 lang_opt_files=
27687 lang_specs_files=
27688 lang_tree_files=
27689 # These (without "all_") are set in each config-lang.in.
27690 # `language' must be a single word so is spelled singularly.
27691 all_languages=
27692 all_compilers=
27693 all_outputs='Makefile'
27694 # List of language makefile fragments.
27695 all_lang_makefrags=
27696 # Additional files for gengtype
27697 all_gtfiles="$target_gtfiles"
27698
27699 # These are the languages that are set in --enable-languages,
27700 # and are available in the GCC tree.
27701 all_selected_languages=
27702
27703 # Add the language fragments.
27704 # Languages are added via two mechanisms. Some information must be
27705 # recorded in makefile variables, these are defined in config-lang.in.
27706 # We accumulate them and plug them into the main Makefile.
27707 # The other mechanism is a set of hooks for each of the main targets
27708 # like `clean', `install', etc.
27709
27710 language_hooks="Make-hooks"
27711
27712 for lang in ${srcdir}/*/config-lang.in
27713 do
27714 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27715
27716 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27717 if test "x$lang_alias" = x
27718 then
27719 echo "$lang doesn't set \$language." 1>&2
27720 exit 1
27721 fi
27722 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27723 subdirs="$subdirs $subdir"
27724
27725 # $gcc_subdir is where the gcc integration files are to be found
27726 # for a language, both for internal compiler purposes (compiler
27727 # sources implementing front-end to GCC tree converters), and for
27728 # build infrastructure purposes (Make-lang.in, etc.)
27729 #
27730 # This will be <subdir> (relative to $srcdir) if a line like
27731 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27732 # is found in <langdir>/config-lang.in, and will remain <langdir>
27733 # otherwise.
27734 #
27735 # Except for the language alias (fetched above), the regular
27736 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27737 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27738 # only this and the language alias.
27739
27740 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27741 if [ "$gcc_subdir" = "" ]; then
27742 gcc_subdir="$subdir"
27743 fi
27744
27745 case ",$enable_languages," in
27746 *,$lang_alias,*)
27747 all_selected_languages="$all_selected_languages $lang_alias"
27748 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27749 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27750 fi
27751 ;;
27752 esac
27753
27754 language=
27755 boot_language=
27756 compilers=
27757 outputs=
27758 gtfiles=
27759 subdir_requires=
27760 . ${srcdir}/$gcc_subdir/config-lang.in
27761 if test "x$language" = x
27762 then
27763 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27764 exit 1
27765 fi
27766
27767 ok=:
27768 case ",$enable_languages," in
27769 *,$lang_alias,*) ;;
27770 *)
27771 for i in $subdir_requires; do
27772 test -f "${srcdir}/$i/config-lang.in" && continue
27773 ok=false
27774 break
27775 done
27776 ;;
27777 esac
27778 $ok || continue
27779
27780 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27781 if test -f $srcdir/$gcc_subdir/lang.opt; then
27782 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27783 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27784 fi
27785 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27786 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27787 fi
27788 all_languages="$all_languages $language"
27789 all_compilers="$all_compilers $compilers"
27790 all_outputs="$all_outputs $outputs"
27791 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27792 case ",$enable_languages," in
27793 *,lto,*)
27794
27795 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27796
27797 enable_lto=yes
27798
27799 ;;
27800 *) ;;
27801 esac
27802 done
27803
27804 check_languages=
27805 for language in $all_selected_languages
27806 do
27807 check_languages="$check_languages check-$language"
27808 done
27809
27810 # We link each language in with a set of hooks, reached indirectly via
27811 # lang.${target}. Only do so for selected languages.
27812
27813 rm -f Make-hooks
27814 touch Make-hooks
27815 target_list="all.cross start.encap rest.encap tags \
27816 install-common install-man install-info install-pdf install-html dvi \
27817 pdf html uninstall info man srcextra srcman srcinfo \
27818 mostlyclean clean distclean maintainer-clean install-plugin"
27819
27820 for t in $target_list
27821 do
27822 x=
27823 for lang in $all_selected_languages
27824 do
27825 x="$x $lang.$t"
27826 done
27827 echo "lang.$t: $x" >> Make-hooks
27828 done
27829
27830 # --------
27831 # Option include files
27832 # --------
27833
27834 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27835 option_includes="option-includes.mk"
27836
27837
27838 # --------
27839 # UNSORTED
27840 # --------
27841
27842 # Create .gdbinit.
27843
27844 echo "dir ." > .gdbinit
27845 echo "dir ${srcdir}" >> .gdbinit
27846 if test x$gdb_needs_out_file_path = xyes
27847 then
27848 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27849 fi
27850 if test "x$subdirs" != x; then
27851 for s in $subdirs
27852 do
27853 echo "dir ${srcdir}/$s" >> .gdbinit
27854 done
27855 fi
27856 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27857 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27858
27859 # Put a breakpoint on __asan_report_error to help with debugging buffer
27860 # overflow.
27861 case "$CFLAGS" in
27862 *-fsanitize=address*)
27863 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27864 ;;
27865 esac
27866
27867 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27868
27869
27870
27871 # Find a directory in which to install a shared libgcc.
27872
27873 # Check whether --enable-version-specific-runtime-libs was given.
27874 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27875 enableval=$enable_version_specific_runtime_libs;
27876 fi
27877
27878
27879 # Substitute configuration variables
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
27939
27940
27941
27942 # Echo link setup.
27943 if test x${build} = x${host} ; then
27944 if test x${host} = x${target} ; then
27945 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27946 else
27947 echo "Links are now set up to build a cross-compiler" 1>&2
27948 echo " from ${host} to ${target}." 1>&2
27949 fi
27950 else
27951 if test x${host} = x${target} ; then
27952 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27953 echo " for ${target}." 1>&2
27954 else
27955 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27956 echo " from ${host} to ${target}." 1>&2
27957 fi
27958 fi
27959
27960
27961
27962
27963
27964
27965 if test "x${ISLLIBS}" != "x" ; then
27966
27967 $as_echo "#define HAVE_isl 1" >>confdefs.h
27968
27969 fi
27970
27971 # Check for plugin support
27972 # Check whether --enable-plugin was given.
27973 if test "${enable_plugin+set}" = set; then :
27974 enableval=$enable_plugin; enable_plugin=$enableval
27975 else
27976 enable_plugin=yes; default_plugin=yes
27977 fi
27978
27979
27980 pluginlibs=
27981
27982 case "${host}" in
27983 *-*-darwin*)
27984 if test x$build = x$host; then
27985 export_sym_check="nm${exeext} -g"
27986 elif test x$host = x$target; then
27987 export_sym_check="$gcc_cv_nm -g"
27988 else
27989 export_sym_check=
27990 fi
27991 ;;
27992 *)
27993 if test x$build = x$host; then
27994 export_sym_check="objdump${exeext} -T"
27995 elif test x$host = x$target; then
27996 export_sym_check="$gcc_cv_objdump -T"
27997 else
27998 export_sym_check=
27999 fi
28000 ;;
28001 esac
28002
28003 if test x"$enable_plugin" = x"yes"; then
28004
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28006 $as_echo_n "checking for exported symbols... " >&6; }
28007 if test "x$export_sym_check" != x; then
28008 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28009 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28010 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28011 : # No need to use a flag
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28013 $as_echo "yes" >&6; }
28014 else
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28016 $as_echo "yes" >&6; }
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28018 $as_echo_n "checking for -rdynamic... " >&6; }
28019 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28020 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28021 plugin_rdynamic=yes
28022 pluginlibs="-rdynamic"
28023 else
28024 plugin_rdynamic=no
28025 enable_plugin=no
28026 fi
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28028 $as_echo "$plugin_rdynamic" >&6; }
28029 fi
28030 else
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28032 $as_echo "unable to check" >&6; }
28033 fi
28034
28035 # Check -ldl
28036 saved_LIBS="$LIBS"
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28038 $as_echo_n "checking for library containing dlopen... " >&6; }
28039 if test "${ac_cv_search_dlopen+set}" = set; then :
28040 $as_echo_n "(cached) " >&6
28041 else
28042 ac_func_search_save_LIBS=$LIBS
28043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28044 /* end confdefs.h. */
28045
28046 /* Override any GCC internal prototype to avoid an error.
28047 Use char because int might match the return type of a GCC
28048 builtin and then its argument prototype would still apply. */
28049 #ifdef __cplusplus
28050 extern "C"
28051 #endif
28052 char dlopen ();
28053 int
28054 main ()
28055 {
28056 return dlopen ();
28057 ;
28058 return 0;
28059 }
28060 _ACEOF
28061 for ac_lib in '' dl; do
28062 if test -z "$ac_lib"; then
28063 ac_res="none required"
28064 else
28065 ac_res=-l$ac_lib
28066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28067 fi
28068 if ac_fn_c_try_link "$LINENO"; then :
28069 ac_cv_search_dlopen=$ac_res
28070 fi
28071 rm -f core conftest.err conftest.$ac_objext \
28072 conftest$ac_exeext
28073 if test "${ac_cv_search_dlopen+set}" = set; then :
28074 break
28075 fi
28076 done
28077 if test "${ac_cv_search_dlopen+set}" = set; then :
28078
28079 else
28080 ac_cv_search_dlopen=no
28081 fi
28082 rm conftest.$ac_ext
28083 LIBS=$ac_func_search_save_LIBS
28084 fi
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28086 $as_echo "$ac_cv_search_dlopen" >&6; }
28087 ac_res=$ac_cv_search_dlopen
28088 if test "$ac_res" != no; then :
28089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28090
28091 fi
28092
28093 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28094 pluginlibs="$pluginlibs -ldl"
28095 fi
28096 LIBS="$saved_LIBS"
28097
28098 # Check that we can build shared objects with -fPIC -shared
28099 saved_LDFLAGS="$LDFLAGS"
28100 saved_CFLAGS="$CFLAGS"
28101 case "${host}" in
28102 *-*-darwin*)
28103 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28104 CFLAGS="$CFLAGS -fPIC"
28105 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28106 ;;
28107 *)
28108 CFLAGS="$CFLAGS -fPIC"
28109 LDFLAGS="$LDFLAGS -fPIC -shared"
28110 ;;
28111 esac
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28113 $as_echo_n "checking for -fPIC -shared... " >&6; }
28114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28115 /* end confdefs.h. */
28116 extern int X;
28117 int
28118 main ()
28119 {
28120 return X == 0;
28121 ;
28122 return 0;
28123 }
28124 _ACEOF
28125 if ac_fn_c_try_link "$LINENO"; then :
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28127 $as_echo "yes" >&6; }; have_pic_shared=yes
28128 else
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28130 $as_echo "no" >&6; }; have_pic_shared=no
28131 fi
28132 rm -f core conftest.err conftest.$ac_objext \
28133 conftest$ac_exeext conftest.$ac_ext
28134 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28135 pluginlibs=
28136 enable_plugin=no
28137 fi
28138 LDFLAGS="$saved_LDFLAGS"
28139 CFLAGS="$saved_CFLAGS"
28140
28141 # If plugin support had been requested but not available, fail.
28142 if test x"$enable_plugin" = x"no" ; then
28143 if test x"$default_plugin" != x"yes"; then
28144 as_fn_error "
28145 Building GCC with plugin support requires a host that supports
28146 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28147 fi
28148 fi
28149 fi
28150
28151
28152
28153 if test x"$enable_plugin" = x"yes"; then
28154
28155 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28156
28157 fi
28158
28159
28160 # Enable --enable-host-shared
28161 # Check whether --enable-host-shared was given.
28162 if test "${enable_host_shared+set}" = set; then :
28163 enableval=$enable_host_shared; PICFLAG=-fPIC
28164 else
28165 PICFLAG=
28166 fi
28167
28168
28169
28170
28171
28172 # Check whether --enable-libquadmath-support was given.
28173 if test "${enable_libquadmath_support+set}" = set; then :
28174 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28175 else
28176 ENABLE_LIBQUADMATH_SUPPORT=yes
28177 fi
28178
28179 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28180
28181 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28182
28183 fi
28184
28185
28186 # Specify what hash style to use by default.
28187
28188 # Check whether --with-linker-hash-style was given.
28189 if test "${with_linker_hash_style+set}" = set; then :
28190 withval=$with_linker_hash_style; case x"$withval" in
28191 xsysv)
28192 LINKER_HASH_STYLE=sysv
28193 ;;
28194 xgnu)
28195 LINKER_HASH_STYLE=gnu
28196 ;;
28197 xboth)
28198 LINKER_HASH_STYLE=both
28199 ;;
28200 *)
28201 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28202 ;;
28203 esac
28204 else
28205 LINKER_HASH_STYLE=''
28206 fi
28207
28208 if test x"${LINKER_HASH_STYLE}" != x; then
28209
28210 cat >>confdefs.h <<_ACEOF
28211 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28212 _ACEOF
28213
28214 fi
28215
28216 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28217 # of jit/jit-playback.c.
28218 cat > gcc-driver-name.h <<EOF
28219 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28220 EOF
28221
28222 # Configure the subdirectories
28223 # AC_CONFIG_SUBDIRS($subdirs)
28224
28225 # Create the Makefile
28226 # and configure language subdirectories
28227 ac_config_files="$ac_config_files $all_outputs"
28228
28229
28230 ac_config_commands="$ac_config_commands default"
28231
28232 cat >confcache <<\_ACEOF
28233 # This file is a shell script that caches the results of configure
28234 # tests run on this system so they can be shared between configure
28235 # scripts and configure runs, see configure's option --config-cache.
28236 # It is not useful on other systems. If it contains results you don't
28237 # want to keep, you may remove or edit it.
28238 #
28239 # config.status only pays attention to the cache file if you give it
28240 # the --recheck option to rerun configure.
28241 #
28242 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28243 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28244 # following values.
28245
28246 _ACEOF
28247
28248 # The following way of writing the cache mishandles newlines in values,
28249 # but we know of no workaround that is simple, portable, and efficient.
28250 # So, we kill variables containing newlines.
28251 # Ultrix sh set writes to stderr and can't be redirected directly,
28252 # and sets the high bit in the cache file unless we assign to the vars.
28253 (
28254 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28255 eval ac_val=\$$ac_var
28256 case $ac_val in #(
28257 *${as_nl}*)
28258 case $ac_var in #(
28259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28261 esac
28262 case $ac_var in #(
28263 _ | IFS | as_nl) ;; #(
28264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28265 *) { eval $ac_var=; unset $ac_var;} ;;
28266 esac ;;
28267 esac
28268 done
28269
28270 (set) 2>&1 |
28271 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28272 *${as_nl}ac_space=\ *)
28273 # `set' does not quote correctly, so add quotes: double-quote
28274 # substitution turns \\\\ into \\, and sed turns \\ into \.
28275 sed -n \
28276 "s/'/'\\\\''/g;
28277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28278 ;; #(
28279 *)
28280 # `set' quotes correctly as required by POSIX, so do not add quotes.
28281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28282 ;;
28283 esac |
28284 sort
28285 ) |
28286 sed '
28287 /^ac_cv_env_/b end
28288 t clear
28289 :clear
28290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28291 t end
28292 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28293 :end' >>confcache
28294 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28295 if test -w "$cache_file"; then
28296 test "x$cache_file" != "x/dev/null" &&
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28298 $as_echo "$as_me: updating cache $cache_file" >&6;}
28299 cat confcache >$cache_file
28300 else
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28302 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28303 fi
28304 fi
28305 rm -f confcache
28306
28307 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28308 # Let make expand exec_prefix.
28309 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28310
28311 DEFS=-DHAVE_CONFIG_H
28312
28313 ac_libobjs=
28314 ac_ltlibobjs=
28315 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28316 # 1. Remove the extension, and $U if already installed.
28317 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28318 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28319 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28320 # will be set to the directory where LIBOBJS objects are built.
28321 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28322 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28323 done
28324 LIBOBJS=$ac_libobjs
28325
28326 LTLIBOBJS=$ac_ltlibobjs
28327
28328
28329
28330
28331 : ${CONFIG_STATUS=./config.status}
28332 ac_write_fail=0
28333 ac_clean_files_save=$ac_clean_files
28334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28336 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28337 as_write_fail=0
28338 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28339 #! $SHELL
28340 # Generated by $as_me.
28341 # Run this file to recreate the current configuration.
28342 # Compiler output produced by configure, useful for debugging
28343 # configure, is in config.log if it exists.
28344
28345 debug=false
28346 ac_cs_recheck=false
28347 ac_cs_silent=false
28348
28349 SHELL=\${CONFIG_SHELL-$SHELL}
28350 export SHELL
28351 _ASEOF
28352 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28353 ## -------------------- ##
28354 ## M4sh Initialization. ##
28355 ## -------------------- ##
28356
28357 # Be more Bourne compatible
28358 DUALCASE=1; export DUALCASE # for MKS sh
28359 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28360 emulate sh
28361 NULLCMD=:
28362 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28363 # is contrary to our usage. Disable this feature.
28364 alias -g '${1+"$@"}'='"$@"'
28365 setopt NO_GLOB_SUBST
28366 else
28367 case `(set -o) 2>/dev/null` in #(
28368 *posix*) :
28369 set -o posix ;; #(
28370 *) :
28371 ;;
28372 esac
28373 fi
28374
28375
28376 as_nl='
28377 '
28378 export as_nl
28379 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28380 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28381 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28382 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28383 # Prefer a ksh shell builtin over an external printf program on Solaris,
28384 # but without wasting forks for bash or zsh.
28385 if test -z "$BASH_VERSION$ZSH_VERSION" \
28386 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28387 as_echo='print -r --'
28388 as_echo_n='print -rn --'
28389 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28390 as_echo='printf %s\n'
28391 as_echo_n='printf %s'
28392 else
28393 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28394 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28395 as_echo_n='/usr/ucb/echo -n'
28396 else
28397 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28398 as_echo_n_body='eval
28399 arg=$1;
28400 case $arg in #(
28401 *"$as_nl"*)
28402 expr "X$arg" : "X\\(.*\\)$as_nl";
28403 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28404 esac;
28405 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28406 '
28407 export as_echo_n_body
28408 as_echo_n='sh -c $as_echo_n_body as_echo'
28409 fi
28410 export as_echo_body
28411 as_echo='sh -c $as_echo_body as_echo'
28412 fi
28413
28414 # The user is always right.
28415 if test "${PATH_SEPARATOR+set}" != set; then
28416 PATH_SEPARATOR=:
28417 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28418 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28419 PATH_SEPARATOR=';'
28420 }
28421 fi
28422
28423
28424 # IFS
28425 # We need space, tab and new line, in precisely that order. Quoting is
28426 # there to prevent editors from complaining about space-tab.
28427 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28428 # splitting by setting IFS to empty value.)
28429 IFS=" "" $as_nl"
28430
28431 # Find who we are. Look in the path if we contain no directory separator.
28432 case $0 in #((
28433 *[\\/]* ) as_myself=$0 ;;
28434 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28435 for as_dir in $PATH
28436 do
28437 IFS=$as_save_IFS
28438 test -z "$as_dir" && as_dir=.
28439 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28440 done
28441 IFS=$as_save_IFS
28442
28443 ;;
28444 esac
28445 # We did not find ourselves, most probably we were run as `sh COMMAND'
28446 # in which case we are not to be found in the path.
28447 if test "x$as_myself" = x; then
28448 as_myself=$0
28449 fi
28450 if test ! -f "$as_myself"; then
28451 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28452 exit 1
28453 fi
28454
28455 # Unset variables that we do not need and which cause bugs (e.g. in
28456 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28457 # suppresses any "Segmentation fault" message there. '((' could
28458 # trigger a bug in pdksh 5.2.14.
28459 for as_var in BASH_ENV ENV MAIL MAILPATH
28460 do eval test x\${$as_var+set} = xset \
28461 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28462 done
28463 PS1='$ '
28464 PS2='> '
28465 PS4='+ '
28466
28467 # NLS nuisances.
28468 LC_ALL=C
28469 export LC_ALL
28470 LANGUAGE=C
28471 export LANGUAGE
28472
28473 # CDPATH.
28474 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28475
28476
28477 # as_fn_error ERROR [LINENO LOG_FD]
28478 # ---------------------------------
28479 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28480 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28481 # script with status $?, using 1 if that was 0.
28482 as_fn_error ()
28483 {
28484 as_status=$?; test $as_status -eq 0 && as_status=1
28485 if test "$3"; then
28486 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28487 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28488 fi
28489 $as_echo "$as_me: error: $1" >&2
28490 as_fn_exit $as_status
28491 } # as_fn_error
28492
28493
28494 # as_fn_set_status STATUS
28495 # -----------------------
28496 # Set $? to STATUS, without forking.
28497 as_fn_set_status ()
28498 {
28499 return $1
28500 } # as_fn_set_status
28501
28502 # as_fn_exit STATUS
28503 # -----------------
28504 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28505 as_fn_exit ()
28506 {
28507 set +e
28508 as_fn_set_status $1
28509 exit $1
28510 } # as_fn_exit
28511
28512 # as_fn_unset VAR
28513 # ---------------
28514 # Portably unset VAR.
28515 as_fn_unset ()
28516 {
28517 { eval $1=; unset $1;}
28518 }
28519 as_unset=as_fn_unset
28520 # as_fn_append VAR VALUE
28521 # ----------------------
28522 # Append the text in VALUE to the end of the definition contained in VAR. Take
28523 # advantage of any shell optimizations that allow amortized linear growth over
28524 # repeated appends, instead of the typical quadratic growth present in naive
28525 # implementations.
28526 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28527 eval 'as_fn_append ()
28528 {
28529 eval $1+=\$2
28530 }'
28531 else
28532 as_fn_append ()
28533 {
28534 eval $1=\$$1\$2
28535 }
28536 fi # as_fn_append
28537
28538 # as_fn_arith ARG...
28539 # ------------------
28540 # Perform arithmetic evaluation on the ARGs, and store the result in the
28541 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28542 # must be portable across $(()) and expr.
28543 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28544 eval 'as_fn_arith ()
28545 {
28546 as_val=$(( $* ))
28547 }'
28548 else
28549 as_fn_arith ()
28550 {
28551 as_val=`expr "$@" || test $? -eq 1`
28552 }
28553 fi # as_fn_arith
28554
28555
28556 if expr a : '\(a\)' >/dev/null 2>&1 &&
28557 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28558 as_expr=expr
28559 else
28560 as_expr=false
28561 fi
28562
28563 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28564 as_basename=basename
28565 else
28566 as_basename=false
28567 fi
28568
28569 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28570 as_dirname=dirname
28571 else
28572 as_dirname=false
28573 fi
28574
28575 as_me=`$as_basename -- "$0" ||
28576 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28577 X"$0" : 'X\(//\)$' \| \
28578 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28579 $as_echo X/"$0" |
28580 sed '/^.*\/\([^/][^/]*\)\/*$/{
28581 s//\1/
28582 q
28583 }
28584 /^X\/\(\/\/\)$/{
28585 s//\1/
28586 q
28587 }
28588 /^X\/\(\/\).*/{
28589 s//\1/
28590 q
28591 }
28592 s/.*/./; q'`
28593
28594 # Avoid depending upon Character Ranges.
28595 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28596 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28597 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28598 as_cr_digits='0123456789'
28599 as_cr_alnum=$as_cr_Letters$as_cr_digits
28600
28601 ECHO_C= ECHO_N= ECHO_T=
28602 case `echo -n x` in #(((((
28603 -n*)
28604 case `echo 'xy\c'` in
28605 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28606 xy) ECHO_C='\c';;
28607 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28608 ECHO_T=' ';;
28609 esac;;
28610 *)
28611 ECHO_N='-n';;
28612 esac
28613
28614 rm -f conf$$ conf$$.exe conf$$.file
28615 if test -d conf$$.dir; then
28616 rm -f conf$$.dir/conf$$.file
28617 else
28618 rm -f conf$$.dir
28619 mkdir conf$$.dir 2>/dev/null
28620 fi
28621 if (echo >conf$$.file) 2>/dev/null; then
28622 if ln -s conf$$.file conf$$ 2>/dev/null; then
28623 as_ln_s='ln -s'
28624 # ... but there are two gotchas:
28625 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28626 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28627 # In both cases, we have to default to `cp -p'.
28628 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28629 as_ln_s='cp -p'
28630 elif ln conf$$.file conf$$ 2>/dev/null; then
28631 as_ln_s=ln
28632 else
28633 as_ln_s='cp -p'
28634 fi
28635 else
28636 as_ln_s='cp -p'
28637 fi
28638 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28639 rmdir conf$$.dir 2>/dev/null
28640
28641
28642 # as_fn_mkdir_p
28643 # -------------
28644 # Create "$as_dir" as a directory, including parents if necessary.
28645 as_fn_mkdir_p ()
28646 {
28647
28648 case $as_dir in #(
28649 -*) as_dir=./$as_dir;;
28650 esac
28651 test -d "$as_dir" || eval $as_mkdir_p || {
28652 as_dirs=
28653 while :; do
28654 case $as_dir in #(
28655 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28656 *) as_qdir=$as_dir;;
28657 esac
28658 as_dirs="'$as_qdir' $as_dirs"
28659 as_dir=`$as_dirname -- "$as_dir" ||
28660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28661 X"$as_dir" : 'X\(//\)[^/]' \| \
28662 X"$as_dir" : 'X\(//\)$' \| \
28663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28664 $as_echo X"$as_dir" |
28665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28666 s//\1/
28667 q
28668 }
28669 /^X\(\/\/\)[^/].*/{
28670 s//\1/
28671 q
28672 }
28673 /^X\(\/\/\)$/{
28674 s//\1/
28675 q
28676 }
28677 /^X\(\/\).*/{
28678 s//\1/
28679 q
28680 }
28681 s/.*/./; q'`
28682 test -d "$as_dir" && break
28683 done
28684 test -z "$as_dirs" || eval "mkdir $as_dirs"
28685 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28686
28687
28688 } # as_fn_mkdir_p
28689 if mkdir -p . 2>/dev/null; then
28690 as_mkdir_p='mkdir -p "$as_dir"'
28691 else
28692 test -d ./-p && rmdir ./-p
28693 as_mkdir_p=false
28694 fi
28695
28696 if test -x / >/dev/null 2>&1; then
28697 as_test_x='test -x'
28698 else
28699 if ls -dL / >/dev/null 2>&1; then
28700 as_ls_L_option=L
28701 else
28702 as_ls_L_option=
28703 fi
28704 as_test_x='
28705 eval sh -c '\''
28706 if test -d "$1"; then
28707 test -d "$1/.";
28708 else
28709 case $1 in #(
28710 -*)set "./$1";;
28711 esac;
28712 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28713 ???[sx]*):;;*)false;;esac;fi
28714 '\'' sh
28715 '
28716 fi
28717 as_executable_p=$as_test_x
28718
28719 # Sed expression to map a string onto a valid CPP name.
28720 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28721
28722 # Sed expression to map a string onto a valid variable name.
28723 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28724
28725
28726 exec 6>&1
28727 ## ----------------------------------- ##
28728 ## Main body of $CONFIG_STATUS script. ##
28729 ## ----------------------------------- ##
28730 _ASEOF
28731 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28732
28733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28734 # Save the log message, to keep $0 and so on meaningful, and to
28735 # report actual input values of CONFIG_FILES etc. instead of their
28736 # values after options handling.
28737 ac_log="
28738 This file was extended by $as_me, which was
28739 generated by GNU Autoconf 2.64. Invocation command line was
28740
28741 CONFIG_FILES = $CONFIG_FILES
28742 CONFIG_HEADERS = $CONFIG_HEADERS
28743 CONFIG_LINKS = $CONFIG_LINKS
28744 CONFIG_COMMANDS = $CONFIG_COMMANDS
28745 $ $0 $@
28746
28747 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28748 "
28749
28750 _ACEOF
28751
28752 case $ac_config_files in *"
28753 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28754 esac
28755
28756 case $ac_config_headers in *"
28757 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28758 esac
28759
28760
28761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28762 # Files that config.status was made for.
28763 config_files="$ac_config_files"
28764 config_headers="$ac_config_headers"
28765 config_links="$ac_config_links"
28766 config_commands="$ac_config_commands"
28767
28768 _ACEOF
28769
28770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28771 ac_cs_usage="\
28772 \`$as_me' instantiates files and other configuration actions
28773 from templates according to the current configuration. Unless the files
28774 and actions are specified as TAGs, all are instantiated by default.
28775
28776 Usage: $0 [OPTION]... [TAG]...
28777
28778 -h, --help print this help, then exit
28779 -V, --version print version number and configuration settings, then exit
28780 -q, --quiet, --silent
28781 do not print progress messages
28782 -d, --debug don't remove temporary files
28783 --recheck update $as_me by reconfiguring in the same conditions
28784 --file=FILE[:TEMPLATE]
28785 instantiate the configuration file FILE
28786 --header=FILE[:TEMPLATE]
28787 instantiate the configuration header FILE
28788
28789 Configuration files:
28790 $config_files
28791
28792 Configuration headers:
28793 $config_headers
28794
28795 Configuration links:
28796 $config_links
28797
28798 Configuration commands:
28799 $config_commands
28800
28801 Report bugs to the package provider."
28802
28803 _ACEOF
28804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28805 ac_cs_version="\\
28806 config.status
28807 configured by $0, generated by GNU Autoconf 2.64,
28808 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28809
28810 Copyright (C) 2009 Free Software Foundation, Inc.
28811 This config.status script is free software; the Free Software Foundation
28812 gives unlimited permission to copy, distribute and modify it."
28813
28814 ac_pwd='$ac_pwd'
28815 srcdir='$srcdir'
28816 AWK='$AWK'
28817 test -n "\$AWK" || AWK=awk
28818 _ACEOF
28819
28820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28821 # The default lists apply if the user does not specify any file.
28822 ac_need_defaults=:
28823 while test $# != 0
28824 do
28825 case $1 in
28826 --*=*)
28827 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28828 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28829 ac_shift=:
28830 ;;
28831 *)
28832 ac_option=$1
28833 ac_optarg=$2
28834 ac_shift=shift
28835 ;;
28836 esac
28837
28838 case $ac_option in
28839 # Handling of the options.
28840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28841 ac_cs_recheck=: ;;
28842 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28843 $as_echo "$ac_cs_version"; exit ;;
28844 --debug | --debu | --deb | --de | --d | -d )
28845 debug=: ;;
28846 --file | --fil | --fi | --f )
28847 $ac_shift
28848 case $ac_optarg in
28849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28850 esac
28851 as_fn_append CONFIG_FILES " '$ac_optarg'"
28852 ac_need_defaults=false;;
28853 --header | --heade | --head | --hea )
28854 $ac_shift
28855 case $ac_optarg in
28856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28857 esac
28858 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28859 ac_need_defaults=false;;
28860 --he | --h)
28861 # Conflict between --help and --header
28862 as_fn_error "ambiguous option: \`$1'
28863 Try \`$0 --help' for more information.";;
28864 --help | --hel | -h )
28865 $as_echo "$ac_cs_usage"; exit ;;
28866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28868 ac_cs_silent=: ;;
28869
28870 # This is an error.
28871 -*) as_fn_error "unrecognized option: \`$1'
28872 Try \`$0 --help' for more information." ;;
28873
28874 *) as_fn_append ac_config_targets " $1"
28875 ac_need_defaults=false ;;
28876
28877 esac
28878 shift
28879 done
28880
28881 ac_configure_extra_args=
28882
28883 if $ac_cs_silent; then
28884 exec 6>/dev/null
28885 ac_configure_extra_args="$ac_configure_extra_args --silent"
28886 fi
28887
28888 _ACEOF
28889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28890 if \$ac_cs_recheck; then
28891 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28892 shift
28893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28894 CONFIG_SHELL='$SHELL'
28895 export CONFIG_SHELL
28896 exec "\$@"
28897 fi
28898
28899 _ACEOF
28900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28901 exec 5>>config.log
28902 {
28903 echo
28904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28905 ## Running $as_me. ##
28906 _ASBOX
28907 $as_echo "$ac_log"
28908 } >&5
28909
28910 _ACEOF
28911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28912 #
28913 # INIT-COMMANDS
28914 #
28915 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28916 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28917 subdirs='$subdirs'
28918
28919 _ACEOF
28920
28921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28922
28923 # Handling of arguments.
28924 for ac_config_target in $ac_config_targets
28925 do
28926 case $ac_config_target in
28927 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28928 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28929 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28930 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28931 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28932 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28933 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
28934 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28935 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28936
28937 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28938 esac
28939 done
28940
28941
28942 # If the user did not use the arguments to specify the items to instantiate,
28943 # then the envvar interface is used. Set only those that are not.
28944 # We use the long form for the default assignment because of an extremely
28945 # bizarre bug on SunOS 4.1.3.
28946 if $ac_need_defaults; then
28947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28949 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28950 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28951 fi
28952
28953 # Have a temporary directory for convenience. Make it in the build tree
28954 # simply because there is no reason against having it here, and in addition,
28955 # creating and moving files from /tmp can sometimes cause problems.
28956 # Hook for its removal unless debugging.
28957 # Note that there is a small window in which the directory will not be cleaned:
28958 # after its creation but before its name has been assigned to `$tmp'.
28959 $debug ||
28960 {
28961 tmp=
28962 trap 'exit_status=$?
28963 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28964 ' 0
28965 trap 'as_fn_exit 1' 1 2 13 15
28966 }
28967 # Create a (secure) tmp directory for tmp files.
28968
28969 {
28970 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28971 test -n "$tmp" && test -d "$tmp"
28972 } ||
28973 {
28974 tmp=./conf$$-$RANDOM
28975 (umask 077 && mkdir "$tmp")
28976 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28977
28978 # Set up the scripts for CONFIG_FILES section.
28979 # No need to generate them if there are no CONFIG_FILES.
28980 # This happens for instance with `./config.status config.h'.
28981 if test -n "$CONFIG_FILES"; then
28982
28983 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28984 ac_cs_awk_getline=:
28985 ac_cs_awk_pipe_init=
28986 ac_cs_awk_read_file='
28987 while ((getline aline < (F[key])) > 0)
28988 print(aline)
28989 close(F[key])'
28990 ac_cs_awk_pipe_fini=
28991 else
28992 ac_cs_awk_getline=false
28993 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28994 ac_cs_awk_read_file='
28995 print "|#_!!_#|"
28996 print "cat " F[key] " &&"
28997 '$ac_cs_awk_pipe_init
28998 # The final `:' finishes the AND list.
28999 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29000 fi
29001 ac_cr=`echo X | tr X '\015'`
29002 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29003 # But we know of no other shell where ac_cr would be empty at this
29004 # point, so we can use a bashism as a fallback.
29005 if test "x$ac_cr" = x; then
29006 eval ac_cr=\$\'\\r\'
29007 fi
29008 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29009 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29010 ac_cs_awk_cr='\r'
29011 else
29012 ac_cs_awk_cr=$ac_cr
29013 fi
29014
29015 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29016 _ACEOF
29017
29018 # Create commands to substitute file output variables.
29019 {
29020 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29021 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29022 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29023 echo "_ACAWK" &&
29024 echo "_ACEOF"
29025 } >conf$$files.sh &&
29026 . ./conf$$files.sh ||
29027 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29028 rm -f conf$$files.sh
29029
29030 {
29031 echo "cat >conf$$subs.awk <<_ACEOF" &&
29032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29033 echo "_ACEOF"
29034 } >conf$$subs.sh ||
29035 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29036 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29037 ac_delim='%!_!# '
29038 for ac_last_try in false false false false false :; do
29039 . ./conf$$subs.sh ||
29040 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29041
29042 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29043 if test $ac_delim_n = $ac_delim_num; then
29044 break
29045 elif $ac_last_try; then
29046 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29047 else
29048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29049 fi
29050 done
29051 rm -f conf$$subs.sh
29052
29053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29054 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29055 _ACEOF
29056 sed -n '
29057 h
29058 s/^/S["/; s/!.*/"]=/
29059 p
29060 g
29061 s/^[^!]*!//
29062 :repl
29063 t repl
29064 s/'"$ac_delim"'$//
29065 t delim
29066 :nl
29067 h
29068 s/\(.\{148\}\).*/\1/
29069 t more1
29070 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29071 p
29072 n
29073 b repl
29074 :more1
29075 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29076 p
29077 g
29078 s/.\{148\}//
29079 t nl
29080 :delim
29081 h
29082 s/\(.\{148\}\).*/\1/
29083 t more2
29084 s/["\\]/\\&/g; s/^/"/; s/$/"/
29085 p
29086 b
29087 :more2
29088 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29089 p
29090 g
29091 s/.\{148\}//
29092 t delim
29093 ' <conf$$subs.awk | sed '
29094 /^[^""]/{
29095 N
29096 s/\n//
29097 }
29098 ' >>$CONFIG_STATUS || ac_write_fail=1
29099 rm -f conf$$subs.awk
29100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29101 _ACAWK
29102 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29103 for (key in S) S_is_set[key] = 1
29104 FS = "\a"
29105 \$ac_cs_awk_pipe_init
29106 }
29107 {
29108 line = $ 0
29109 nfields = split(line, field, "@")
29110 substed = 0
29111 len = length(field[1])
29112 for (i = 2; i < nfields; i++) {
29113 key = field[i]
29114 keylen = length(key)
29115 if (S_is_set[key]) {
29116 value = S[key]
29117 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29118 len += length(value) + length(field[++i])
29119 substed = 1
29120 } else
29121 len += 1 + keylen
29122 }
29123 if (nfields == 3 && !substed) {
29124 key = field[2]
29125 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29126 \$ac_cs_awk_read_file
29127 next
29128 }
29129 }
29130 print line
29131 }
29132 \$ac_cs_awk_pipe_fini
29133 _ACAWK
29134 _ACEOF
29135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29136 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29137 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29138 else
29139 cat
29140 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29141 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29142 _ACEOF
29143
29144 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29145 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29146 # trailing colons and then remove the whole line if VPATH becomes empty
29147 # (actually we leave an empty line to preserve line numbers).
29148 if test "x$srcdir" = x.; then
29149 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29150 s/:*\$(srcdir):*/:/
29151 s/:*\${srcdir}:*/:/
29152 s/:*@srcdir@:*/:/
29153 s/^\([^=]*=[ ]*\):*/\1/
29154 s/:*$//
29155 s/^[^=]*=[ ]*$//
29156 }'
29157 fi
29158
29159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29160 fi # test -n "$CONFIG_FILES"
29161
29162 # Set up the scripts for CONFIG_HEADERS section.
29163 # No need to generate them if there are no CONFIG_HEADERS.
29164 # This happens for instance with `./config.status Makefile'.
29165 if test -n "$CONFIG_HEADERS"; then
29166 cat >"$tmp/defines.awk" <<\_ACAWK ||
29167 BEGIN {
29168 _ACEOF
29169
29170 # Transform confdefs.h into an awk script `defines.awk', embedded as
29171 # here-document in config.status, that substitutes the proper values into
29172 # config.h.in to produce config.h.
29173
29174 # Create a delimiter string that does not exist in confdefs.h, to ease
29175 # handling of long lines.
29176 ac_delim='%!_!# '
29177 for ac_last_try in false false :; do
29178 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29179 if test -z "$ac_t"; then
29180 break
29181 elif $ac_last_try; then
29182 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29183 else
29184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29185 fi
29186 done
29187
29188 # For the awk script, D is an array of macro values keyed by name,
29189 # likewise P contains macro parameters if any. Preserve backslash
29190 # newline sequences.
29191
29192 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29193 sed -n '
29194 s/.\{148\}/&'"$ac_delim"'/g
29195 t rset
29196 :rset
29197 s/^[ ]*#[ ]*define[ ][ ]*/ /
29198 t def
29199 d
29200 :def
29201 s/\\$//
29202 t bsnl
29203 s/["\\]/\\&/g
29204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29205 D["\1"]=" \3"/p
29206 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29207 d
29208 :bsnl
29209 s/["\\]/\\&/g
29210 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29211 D["\1"]=" \3\\\\\\n"\\/p
29212 t cont
29213 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29214 t cont
29215 d
29216 :cont
29217 n
29218 s/.\{148\}/&'"$ac_delim"'/g
29219 t clear
29220 :clear
29221 s/\\$//
29222 t bsnlc
29223 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29224 d
29225 :bsnlc
29226 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29227 b cont
29228 ' <confdefs.h | sed '
29229 s/'"$ac_delim"'/"\\\
29230 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29231
29232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29233 for (key in D) D_is_set[key] = 1
29234 FS = "\a"
29235 }
29236 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29237 line = \$ 0
29238 split(line, arg, " ")
29239 if (arg[1] == "#") {
29240 defundef = arg[2]
29241 mac1 = arg[3]
29242 } else {
29243 defundef = substr(arg[1], 2)
29244 mac1 = arg[2]
29245 }
29246 split(mac1, mac2, "(") #)
29247 macro = mac2[1]
29248 prefix = substr(line, 1, index(line, defundef) - 1)
29249 if (D_is_set[macro]) {
29250 # Preserve the white space surrounding the "#".
29251 print prefix "define", macro P[macro] D[macro]
29252 next
29253 } else {
29254 # Replace #undef with comments. This is necessary, for example,
29255 # in the case of _POSIX_SOURCE, which is predefined and required
29256 # on some systems where configure will not decide to define it.
29257 if (defundef == "undef") {
29258 print "/*", prefix defundef, macro, "*/"
29259 next
29260 }
29261 }
29262 }
29263 { print }
29264 _ACAWK
29265 _ACEOF
29266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29267 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29268 fi # test -n "$CONFIG_HEADERS"
29269
29270
29271 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29272 shift
29273 for ac_tag
29274 do
29275 case $ac_tag in
29276 :[FHLC]) ac_mode=$ac_tag; continue;;
29277 esac
29278 case $ac_mode$ac_tag in
29279 :[FHL]*:*);;
29280 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29281 :[FH]-) ac_tag=-:-;;
29282 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29283 esac
29284 ac_save_IFS=$IFS
29285 IFS=:
29286 set x $ac_tag
29287 IFS=$ac_save_IFS
29288 shift
29289 ac_file=$1
29290 shift
29291
29292 case $ac_mode in
29293 :L) ac_source=$1;;
29294 :[FH])
29295 ac_file_inputs=
29296 for ac_f
29297 do
29298 case $ac_f in
29299 -) ac_f="$tmp/stdin";;
29300 *) # Look for the file first in the build tree, then in the source tree
29301 # (if the path is not absolute). The absolute path cannot be DOS-style,
29302 # because $ac_f cannot contain `:'.
29303 test -f "$ac_f" ||
29304 case $ac_f in
29305 [\\/$]*) false;;
29306 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29307 esac ||
29308 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29309 esac
29310 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29311 as_fn_append ac_file_inputs " '$ac_f'"
29312 done
29313
29314 # Let's still pretend it is `configure' which instantiates (i.e., don't
29315 # use $as_me), people would be surprised to read:
29316 # /* config.h. Generated by config.status. */
29317 configure_input='Generated from '`
29318 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29319 `' by configure.'
29320 if test x"$ac_file" != x-; then
29321 configure_input="$ac_file. $configure_input"
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29323 $as_echo "$as_me: creating $ac_file" >&6;}
29324 fi
29325 # Neutralize special characters interpreted by sed in replacement strings.
29326 case $configure_input in #(
29327 *\&* | *\|* | *\\* )
29328 ac_sed_conf_input=`$as_echo "$configure_input" |
29329 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29330 *) ac_sed_conf_input=$configure_input;;
29331 esac
29332
29333 case $ac_tag in
29334 *:-:* | *:-) cat >"$tmp/stdin" \
29335 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29336 esac
29337 ;;
29338 esac
29339
29340 ac_dir=`$as_dirname -- "$ac_file" ||
29341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29342 X"$ac_file" : 'X\(//\)[^/]' \| \
29343 X"$ac_file" : 'X\(//\)$' \| \
29344 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29345 $as_echo X"$ac_file" |
29346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29347 s//\1/
29348 q
29349 }
29350 /^X\(\/\/\)[^/].*/{
29351 s//\1/
29352 q
29353 }
29354 /^X\(\/\/\)$/{
29355 s//\1/
29356 q
29357 }
29358 /^X\(\/\).*/{
29359 s//\1/
29360 q
29361 }
29362 s/.*/./; q'`
29363 as_dir="$ac_dir"; as_fn_mkdir_p
29364 ac_builddir=.
29365
29366 case "$ac_dir" in
29367 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29368 *)
29369 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29370 # A ".." for each directory in $ac_dir_suffix.
29371 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29372 case $ac_top_builddir_sub in
29373 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29374 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29375 esac ;;
29376 esac
29377 ac_abs_top_builddir=$ac_pwd
29378 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29379 # for backward compatibility:
29380 ac_top_builddir=$ac_top_build_prefix
29381
29382 case $srcdir in
29383 .) # We are building in place.
29384 ac_srcdir=.
29385 ac_top_srcdir=$ac_top_builddir_sub
29386 ac_abs_top_srcdir=$ac_pwd ;;
29387 [\\/]* | ?:[\\/]* ) # Absolute name.
29388 ac_srcdir=$srcdir$ac_dir_suffix;
29389 ac_top_srcdir=$srcdir
29390 ac_abs_top_srcdir=$srcdir ;;
29391 *) # Relative name.
29392 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29393 ac_top_srcdir=$ac_top_build_prefix$srcdir
29394 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29395 esac
29396 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29397
29398
29399 case $ac_mode in
29400 :F)
29401 #
29402 # CONFIG_FILE
29403 #
29404
29405 _ACEOF
29406
29407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29408 # If the template does not know about datarootdir, expand it.
29409 # FIXME: This hack should be removed a few years after 2.60.
29410 ac_datarootdir_hack=; ac_datarootdir_seen=
29411 ac_sed_dataroot='
29412 /datarootdir/ {
29413 p
29414 q
29415 }
29416 /@datadir@/p
29417 /@docdir@/p
29418 /@infodir@/p
29419 /@localedir@/p
29420 /@mandir@/p'
29421 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29422 *datarootdir*) ac_datarootdir_seen=yes;;
29423 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29425 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29426 _ACEOF
29427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29428 ac_datarootdir_hack='
29429 s&@datadir@&$datadir&g
29430 s&@docdir@&$docdir&g
29431 s&@infodir@&$infodir&g
29432 s&@localedir@&$localedir&g
29433 s&@mandir@&$mandir&g
29434 s&\\\${datarootdir}&$datarootdir&g' ;;
29435 esac
29436 _ACEOF
29437
29438 # Neutralize VPATH when `$srcdir' = `.'.
29439 # Shell code in configure.ac might set extrasub.
29440 # FIXME: do we really want to maintain this feature?
29441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29442 ac_sed_extra="$ac_vpsub
29443 $extrasub
29444 _ACEOF
29445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29446 :t
29447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29448 s|@configure_input@|$ac_sed_conf_input|;t t
29449 s&@top_builddir@&$ac_top_builddir_sub&;t t
29450 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29451 s&@srcdir@&$ac_srcdir&;t t
29452 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29453 s&@top_srcdir@&$ac_top_srcdir&;t t
29454 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29455 s&@builddir@&$ac_builddir&;t t
29456 s&@abs_builddir@&$ac_abs_builddir&;t t
29457 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29458 $ac_datarootdir_hack
29459 "
29460 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29461 if $ac_cs_awk_getline; then
29462 $AWK -f "$tmp/subs.awk"
29463 else
29464 $AWK -f "$tmp/subs.awk" | $SHELL
29465 fi >$tmp/out \
29466 || as_fn_error "could not create $ac_file" "$LINENO" 5
29467
29468 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29469 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29470 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29472 which seems to be undefined. Please make sure it is defined." >&5
29473 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29474 which seems to be undefined. Please make sure it is defined." >&2;}
29475
29476 rm -f "$tmp/stdin"
29477 case $ac_file in
29478 -) cat "$tmp/out" && rm -f "$tmp/out";;
29479 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29480 esac \
29481 || as_fn_error "could not create $ac_file" "$LINENO" 5
29482 ;;
29483 :H)
29484 #
29485 # CONFIG_HEADER
29486 #
29487 if test x"$ac_file" != x-; then
29488 {
29489 $as_echo "/* $configure_input */" \
29490 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29491 } >"$tmp/config.h" \
29492 || as_fn_error "could not create $ac_file" "$LINENO" 5
29493 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29495 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29496 else
29497 rm -f "$ac_file"
29498 mv "$tmp/config.h" "$ac_file" \
29499 || as_fn_error "could not create $ac_file" "$LINENO" 5
29500 fi
29501 else
29502 $as_echo "/* $configure_input */" \
29503 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29504 || as_fn_error "could not create -" "$LINENO" 5
29505 fi
29506 ;;
29507 :L)
29508 #
29509 # CONFIG_LINK
29510 #
29511
29512 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29513 :
29514 else
29515 # Prefer the file from the source tree if names are identical.
29516 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29517 ac_source=$srcdir/$ac_source
29518 fi
29519
29520 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29521 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29522
29523 if test ! -r "$ac_source"; then
29524 as_fn_error "$ac_source: file not found" "$LINENO" 5
29525 fi
29526 rm -f "$ac_file"
29527
29528 # Try a relative symlink, then a hard link, then a copy.
29529 case $srcdir in
29530 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29531 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29532 esac
29533 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29534 ln "$ac_source" "$ac_file" 2>/dev/null ||
29535 cp -p "$ac_source" "$ac_file" ||
29536 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29537 fi
29538 ;;
29539 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29540 $as_echo "$as_me: executing $ac_file commands" >&6;}
29541 ;;
29542 esac
29543
29544
29545 case $ac_file$ac_mode in
29546 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29547 "gccdepdir":C)
29548 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29549 for lang in $subdirs c-family common
29550 do
29551 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29552 done ;;
29553 "as":F) chmod +x as ;;
29554 "collect-ld":F) chmod +x collect-ld ;;
29555 "nm":F) chmod +x nm ;;
29556 "default":C)
29557 case ${CONFIG_HEADERS} in
29558 *auto-host.h:config.in*)
29559 echo > cstamp-h ;;
29560 esac
29561 # Make sure all the subdirs exist.
29562 for d in $subdirs doc build common c-family
29563 do
29564 test -d $d || mkdir $d
29565 done
29566 ;;
29567
29568 esac
29569 done # for ac_tag
29570
29571
29572 as_fn_exit 0
29573 _ACEOF
29574 ac_clean_files=$ac_clean_files_save
29575
29576 test $ac_write_fail = 0 ||
29577 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29578
29579
29580 # configure is writing to config.log, and then calls config.status.
29581 # config.status does its own redirection, appending to config.log.
29582 # Unfortunately, on DOS this fails, as config.log is still kept open
29583 # by configure, so config.status won't be able to write to it; its
29584 # output is simply discarded. So we exec the FD to /dev/null,
29585 # effectively closing config.log, so it can be properly (re)opened and
29586 # appended to by config.status. When coming back to configure, we
29587 # need to make the FD available again.
29588 if test "$no_create" != yes; then
29589 ac_cs_success=:
29590 ac_config_status_args=
29591 test "$silent" = yes &&
29592 ac_config_status_args="$ac_config_status_args --quiet"
29593 exec 5>/dev/null
29594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29595 exec 5>>config.log
29596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29597 # would make configure fail if this is the last instruction.
29598 $ac_cs_success || as_fn_exit $?
29599 fi
29600 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29602 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29603 fi
29604
29605