]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Update libbid according to the latest Intel Decimal Floating-Point Math Library.
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 NO_PIE_FLAG
635 NO_PIE_CFLAGS
636 enable_default_pie
637 PICFLAG
638 enable_host_shared
639 enable_plugin
640 pluginlibs
641 ISLINC
642 ISLLIBS
643 GMPINC
644 GMPLIBS
645 target_cpu_default
646 d_target_objs
647 fortran_target_objs
648 cxx_target_objs
649 c_target_objs
650 use_gcc_stdint
651 xm_defines
652 xm_include_list
653 xm_file_list
654 tm_d_include_list
655 tm_d_file_list
656 tm_p_include_list
657 tm_p_file_list
658 tm_defines
659 tm_include_list
660 tm_file_list
661 common_out_object_file
662 common_out_file
663 out_object_file
664 out_file
665 objc_boehm_gc
666 md_file
667 local_prefix
668 lang_tree_files
669 lang_specs_files
670 lang_opt_files
671 install
672 out_host_hook_obj
673 host_xm_defines
674 host_xm_include_list
675 host_xm_file_list
676 host_exeext
677 gcc_gxx_include_dir_add_sysroot
678 gcc_gxx_include_dir
679 gcc_config_arguments
680 float_h_file
681 extra_programs
682 extra_objs
683 extra_headers_list
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
686 extra_gcc_objs
687 TM_MULTILIB_EXCEPTIONS_CONFIG
688 TM_MULTILIB_CONFIG
689 TM_ENDIAN_CONFIG
690 tmake_file
691 xmake_file
692 cpp_install_dir
693 selftest_languages
694 check_languages
695 build_file_translate
696 build_xm_defines
697 build_xm_include_list
698 build_xm_file_list
699 build_install_headers_dir
700 build_exeext
701 all_selected_languages
702 all_languages
703 all_lang_makefrags
704 all_gtfiles
705 all_compilers
706 srcdir
707 subdirs
708 dollar
709 gcc_tooldir
710 enable_lto
711 DO_LINK_MUTEX
712 MAINT
713 zlibinc
714 zlibdir
715 HOST_LIBS
716 enable_default_ssp
717 thin_archive_support
718 ld_soname_option
719 ld_version_script_option
720 libgcc_visibility
721 gcc_cv_otool
722 gcc_cv_readelf
723 gcc_cv_objdump
724 ORIGINAL_NM_FOR_TARGET
725 gcc_cv_nm
726 ORIGINAL_LD_GOLD_FOR_TARGET
727 ORIGINAL_LD_BFD_FOR_TARGET
728 ORIGINAL_LD_FOR_TARGET
729 ORIGINAL_PLUGIN_LD_FOR_TARGET
730 gcc_cv_ld
731 ORIGINAL_AS_FOR_TARGET
732 gcc_cv_as
733 enable_fast_install
734 objdir
735 OTOOL64
736 OTOOL
737 LIPO
738 NMEDIT
739 DSYMUTIL
740 STRIP
741 OBJDUMP
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 SED
747 LIBTOOL
748 collect2
749 NO_PIE_FLAG_FOR_BUILD
750 NO_PIE_CFLAGS_FOR_BUILD
751 BUILD_NO_PIE_FLAG
752 BUILD_NO_PIE_CFLAGS
753 STMP_FIXINC
754 BUILD_LDFLAGS
755 BUILD_CXXFLAGS
756 BUILD_CFLAGS
757 CXX_FOR_BUILD
758 CC_FOR_BUILD
759 inhibit_libc
760 BUILD_SYSTEM_HEADER_DIR
761 SYSTEM_HEADER_DIR
762 ALL
763 CROSS
764 CATOBJEXT
765 GENCAT
766 INSTOBJEXT
767 DATADIRNAME
768 CATALOGS
769 POSUB
770 GMSGFMT
771 XGETTEXT
772 INCINTL
773 LIBINTL_DEP
774 LIBINTL
775 USE_NLS
776 get_gcc_base_ver
777 extra_opt_files
778 extra_modes_file
779 NATIVE_SYSTEM_HEADER_DIR
780 objext
781 manext
782 LIBICONV_DEP
783 LTLIBICONV
784 LIBICONV
785 DL_LIB
786 LDEXP_LIB
787 EXTRA_GCC_LIBS
788 GNAT_LIBEXC
789 COLLECT2_LIBS
790 CXXDEPMODE
791 DEPDIR
792 am__leading_dot
793 doc_build_sys
794 AR
795 NM
796 BISON
797 FLEX
798 GENERATED_MANPAGES
799 BUILD_INFO
800 MAKEINFO
801 have_mktemp_command
802 make_compare_target
803 INSTALL_DATA
804 INSTALL_PROGRAM
805 INSTALL
806 ranlib_flags
807 RANLIB
808 LN
809 LN_S
810 AWK
811 SET_MAKE
812 accel_dir_suffix
813 real_target_noncanonical
814 enable_as_accelerator
815 REPORT_BUGS_TEXI
816 REPORT_BUGS_TO
817 PKGVERSION
818 CONFIGURE_SPECS
819 enable_gcov
820 enable_shared
821 enable_fixed_point
822 enable_decimal_float
823 with_float
824 with_cpu
825 enable_multiarch
826 enable_multilib
827 coverage_flags
828 valgrind_command
829 valgrind_path_defines
830 valgrind_path
831 TREECHECKING
832 nocommon_flag
833 noexception_flags
834 warn_cxxflags
835 warn_cflags
836 c_strict_warn
837 strict_warn
838 c_loose_warn
839 loose_warn
840 aliasing_flags
841 CPP
842 EGREP
843 GREP
844 CXXCPP
845 PICFLAG_FOR_TARGET
846 GNATMAKE
847 GNATBIND
848 ac_ct_CXX
849 CXXFLAGS
850 CXX
851 OBJEXT
852 EXEEXT
853 ac_ct_CC
854 CPPFLAGS
855 LDFLAGS
856 CFLAGS
857 CC
858 GENINSRC
859 CROSS_SYSTEM_HEADER_DIR
860 TARGET_SYSTEM_ROOT_DEFINE
861 TARGET_SYSTEM_ROOT
862 SYSROOT_CFLAGS_FOR_TARGET
863 target_subdir
864 host_subdir
865 build_subdir
866 build_libsubdir
867 target_noncanonical
868 host_noncanonical
869 target_os
870 target_vendor
871 target_cpu
872 target
873 host_os
874 host_vendor
875 host_cpu
876 host
877 build_os
878 build_vendor
879 build_cpu
880 build
881 target_alias
882 host_alias
883 build_alias
884 LIBS
885 ECHO_T
886 ECHO_N
887 ECHO_C
888 DEFS
889 mandir
890 localedir
891 libdir
892 psdir
893 pdfdir
894 dvidir
895 htmldir
896 infodir
897 docdir
898 oldincludedir
899 includedir
900 localstatedir
901 sharedstatedir
902 sysconfdir
903 datadir
904 datarootdir
905 libexecdir
906 sbindir
907 bindir
908 program_transform_name
909 prefix
910 exec_prefix
911 PACKAGE_URL
912 PACKAGE_BUGREPORT
913 PACKAGE_STRING
914 PACKAGE_VERSION
915 PACKAGE_TARNAME
916 PACKAGE_NAME
917 PATH_SEPARATOR
918 SHELL'
919 ac_subst_files='option_includes
920 language_hooks'
921 ac_user_opts='
922 enable_option_checking
923 with_build_libsubdir
924 with_local_prefix
925 with_native_system_header_dir
926 with_build_sysroot
927 with_sysroot
928 with_gxx_include_dir
929 with_cpp_install_dir
930 enable_generated_files_in_srcdir
931 with_gnu_ld
932 with_ld
933 with_demangler_in_ld
934 with_gnu_as
935 with_as
936 enable_largefile
937 enable_build_format_warnings
938 enable_werror_always
939 enable_checking
940 enable_coverage
941 enable_gather_detailed_mem_stats
942 enable_valgrind_annotations
943 with_stabs
944 enable_multilib
945 enable_multiarch
946 with_stack_clash_protection_guard_size
947 enable___cxa_atexit
948 enable_decimal_float
949 enable_fixed_point
950 enable_threads
951 enable_tls
952 enable_vtable_verify
953 enable_objc_gc
954 with_dwarf2
955 enable_shared
956 enable_gcov
957 with_specs
958 with_pkgversion
959 with_bugurl
960 enable_languages
961 with_multilib_list
962 enable_rpath
963 with_libiconv_prefix
964 enable_sjlj_exceptions
965 with_gcc_major_version_only
966 enable_secureplt
967 enable_mingw_wildcard
968 enable_large_address_aware
969 enable_leading_mingw64_underscores
970 enable_cld
971 enable_frame_pointer
972 enable_win32_registry
973 enable_static
974 with_pic
975 enable_fast_install
976 enable_libtool_lock
977 enable_ld
978 enable_gold
979 with_plugin_ld
980 enable_gnu_indirect_function
981 enable_initfini_array
982 enable_comdat
983 enable_standard_branch_protection
984 enable_fix_cortex_a53_835769
985 enable_fix_cortex_a53_843419
986 with_glibc_version
987 enable_gnu_unique_object
988 enable_linker_build_id
989 enable_libssp
990 enable_default_ssp
991 with_long_double_128
992 with_long_double_format
993 with_gc
994 with_system_zlib
995 enable_maintainer_mode
996 enable_link_mutex
997 enable_version_specific_runtime_libs
998 enable_plugin
999 enable_host_shared
1000 enable_libquadmath_support
1001 with_linker_hash_style
1002 with_diagnostics_color
1003 enable_default_pie
1004 '
1005 ac_precious_vars='build_alias
1006 host_alias
1007 target_alias
1008 CC
1009 CFLAGS
1010 LDFLAGS
1011 LIBS
1012 CPPFLAGS
1013 CXX
1014 CXXFLAGS
1015 CCC
1016 CXXCPP
1017 CPP
1018 GMPLIBS
1019 GMPINC
1020 ISLLIBS
1021 ISLINC'
1022
1023
1024 # Initialize some variables set by options.
1025 ac_init_help=
1026 ac_init_version=false
1027 ac_unrecognized_opts=
1028 ac_unrecognized_sep=
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file=/dev/null
1032 exec_prefix=NONE
1033 no_create=
1034 no_recursion=
1035 prefix=NONE
1036 program_prefix=NONE
1037 program_suffix=NONE
1038 program_transform_name=s,x,x,
1039 silent=
1040 site=
1041 srcdir=
1042 verbose=
1043 x_includes=NONE
1044 x_libraries=NONE
1045
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir='${exec_prefix}/bin'
1053 sbindir='${exec_prefix}/sbin'
1054 libexecdir='${exec_prefix}/libexec'
1055 datarootdir='${prefix}/share'
1056 datadir='${datarootdir}'
1057 sysconfdir='${prefix}/etc'
1058 sharedstatedir='${prefix}/com'
1059 localstatedir='${prefix}/var'
1060 includedir='${prefix}/include'
1061 oldincludedir='/usr/include'
1062 docdir='${datarootdir}/doc/${PACKAGE}'
1063 infodir='${datarootdir}/info'
1064 htmldir='${docdir}'
1065 dvidir='${docdir}'
1066 pdfdir='${docdir}'
1067 psdir='${docdir}'
1068 libdir='${exec_prefix}/lib'
1069 localedir='${datarootdir}/locale'
1070 mandir='${datarootdir}/man'
1071
1072 ac_prev=
1073 ac_dashdash=
1074 for ac_option
1075 do
1076 # If the previous option needs an argument, assign it.
1077 if test -n "$ac_prev"; then
1078 eval $ac_prev=\$ac_option
1079 ac_prev=
1080 continue
1081 fi
1082
1083 case $ac_option in
1084 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1085 *=) ac_optarg= ;;
1086 *) ac_optarg=yes ;;
1087 esac
1088
1089 # Accept the important Cygnus configure options, so we can diagnose typos.
1090
1091 case $ac_dashdash$ac_option in
1092 --)
1093 ac_dashdash=yes ;;
1094
1095 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1096 ac_prev=bindir ;;
1097 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1098 bindir=$ac_optarg ;;
1099
1100 -build | --build | --buil | --bui | --bu)
1101 ac_prev=build_alias ;;
1102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1103 build_alias=$ac_optarg ;;
1104
1105 -cache-file | --cache-file | --cache-fil | --cache-fi \
1106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1107 ac_prev=cache_file ;;
1108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1110 cache_file=$ac_optarg ;;
1111
1112 --config-cache | -C)
1113 cache_file=config.cache ;;
1114
1115 -datadir | --datadir | --datadi | --datad)
1116 ac_prev=datadir ;;
1117 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1118 datadir=$ac_optarg ;;
1119
1120 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1121 | --dataroo | --dataro | --datar)
1122 ac_prev=datarootdir ;;
1123 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1124 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1125 datarootdir=$ac_optarg ;;
1126
1127 -disable-* | --disable-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid feature name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136 "enable_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval enable_$ac_useropt=no ;;
1142
1143 -docdir | --docdir | --docdi | --doc | --do)
1144 ac_prev=docdir ;;
1145 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1146 docdir=$ac_optarg ;;
1147
1148 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1149 ac_prev=dvidir ;;
1150 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1151 dvidir=$ac_optarg ;;
1152
1153 -enable-* | --enable-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid feature name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162 "enable_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval enable_$ac_useropt=\$ac_optarg ;;
1168
1169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1171 | --exec | --exe | --ex)
1172 ac_prev=exec_prefix ;;
1173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1175 | --exec=* | --exe=* | --ex=*)
1176 exec_prefix=$ac_optarg ;;
1177
1178 -gas | --gas | --ga | --g)
1179 # Obsolete; use --with-gas.
1180 with_gas=yes ;;
1181
1182 -help | --help | --hel | --he | -h)
1183 ac_init_help=long ;;
1184 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1185 ac_init_help=recursive ;;
1186 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1187 ac_init_help=short ;;
1188
1189 -host | --host | --hos | --ho)
1190 ac_prev=host_alias ;;
1191 -host=* | --host=* | --hos=* | --ho=*)
1192 host_alias=$ac_optarg ;;
1193
1194 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1195 ac_prev=htmldir ;;
1196 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1197 | --ht=*)
1198 htmldir=$ac_optarg ;;
1199
1200 -includedir | --includedir | --includedi | --included | --include \
1201 | --includ | --inclu | --incl | --inc)
1202 ac_prev=includedir ;;
1203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1204 | --includ=* | --inclu=* | --incl=* | --inc=*)
1205 includedir=$ac_optarg ;;
1206
1207 -infodir | --infodir | --infodi | --infod | --info | --inf)
1208 ac_prev=infodir ;;
1209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1210 infodir=$ac_optarg ;;
1211
1212 -libdir | --libdir | --libdi | --libd)
1213 ac_prev=libdir ;;
1214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1215 libdir=$ac_optarg ;;
1216
1217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1218 | --libexe | --libex | --libe)
1219 ac_prev=libexecdir ;;
1220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1221 | --libexe=* | --libex=* | --libe=*)
1222 libexecdir=$ac_optarg ;;
1223
1224 -localedir | --localedir | --localedi | --localed | --locale)
1225 ac_prev=localedir ;;
1226 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1227 localedir=$ac_optarg ;;
1228
1229 -localstatedir | --localstatedir | --localstatedi | --localstated \
1230 | --localstate | --localstat | --localsta | --localst | --locals)
1231 ac_prev=localstatedir ;;
1232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1233 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1234 localstatedir=$ac_optarg ;;
1235
1236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1237 ac_prev=mandir ;;
1238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1239 mandir=$ac_optarg ;;
1240
1241 -nfp | --nfp | --nf)
1242 # Obsolete; use --without-fp.
1243 with_fp=no ;;
1244
1245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1246 | --no-cr | --no-c | -n)
1247 no_create=yes ;;
1248
1249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1251 no_recursion=yes ;;
1252
1253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1255 | --oldin | --oldi | --old | --ol | --o)
1256 ac_prev=oldincludedir ;;
1257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1260 oldincludedir=$ac_optarg ;;
1261
1262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1263 ac_prev=prefix ;;
1264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1265 prefix=$ac_optarg ;;
1266
1267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1268 | --program-pre | --program-pr | --program-p)
1269 ac_prev=program_prefix ;;
1270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1272 program_prefix=$ac_optarg ;;
1273
1274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1275 | --program-suf | --program-su | --program-s)
1276 ac_prev=program_suffix ;;
1277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1279 program_suffix=$ac_optarg ;;
1280
1281 -program-transform-name | --program-transform-name \
1282 | --program-transform-nam | --program-transform-na \
1283 | --program-transform-n | --program-transform- \
1284 | --program-transform | --program-transfor \
1285 | --program-transfo | --program-transf \
1286 | --program-trans | --program-tran \
1287 | --progr-tra | --program-tr | --program-t)
1288 ac_prev=program_transform_name ;;
1289 -program-transform-name=* | --program-transform-name=* \
1290 | --program-transform-nam=* | --program-transform-na=* \
1291 | --program-transform-n=* | --program-transform-=* \
1292 | --program-transform=* | --program-transfor=* \
1293 | --program-transfo=* | --program-transf=* \
1294 | --program-trans=* | --program-tran=* \
1295 | --progr-tra=* | --program-tr=* | --program-t=*)
1296 program_transform_name=$ac_optarg ;;
1297
1298 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1299 ac_prev=pdfdir ;;
1300 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1301 pdfdir=$ac_optarg ;;
1302
1303 -psdir | --psdir | --psdi | --psd | --ps)
1304 ac_prev=psdir ;;
1305 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1306 psdir=$ac_optarg ;;
1307
1308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1309 | -silent | --silent | --silen | --sile | --sil)
1310 silent=yes ;;
1311
1312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1313 ac_prev=sbindir ;;
1314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1315 | --sbi=* | --sb=*)
1316 sbindir=$ac_optarg ;;
1317
1318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1320 | --sharedst | --shareds | --shared | --share | --shar \
1321 | --sha | --sh)
1322 ac_prev=sharedstatedir ;;
1323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1326 | --sha=* | --sh=*)
1327 sharedstatedir=$ac_optarg ;;
1328
1329 -site | --site | --sit)
1330 ac_prev=site ;;
1331 -site=* | --site=* | --sit=*)
1332 site=$ac_optarg ;;
1333
1334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1335 ac_prev=srcdir ;;
1336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1337 srcdir=$ac_optarg ;;
1338
1339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1340 | --syscon | --sysco | --sysc | --sys | --sy)
1341 ac_prev=sysconfdir ;;
1342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1344 sysconfdir=$ac_optarg ;;
1345
1346 -target | --target | --targe | --targ | --tar | --ta | --t)
1347 ac_prev=target_alias ;;
1348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1349 target_alias=$ac_optarg ;;
1350
1351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1352 verbose=yes ;;
1353
1354 -version | --version | --versio | --versi | --vers | -V)
1355 ac_init_version=: ;;
1356
1357 -with-* | --with-*)
1358 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361 as_fn_error $? "invalid package name: $ac_useropt"
1362 ac_useropt_orig=$ac_useropt
1363 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1365 *"
1366 "with_$ac_useropt"
1367 "*) ;;
1368 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1369 ac_unrecognized_sep=', ';;
1370 esac
1371 eval with_$ac_useropt=\$ac_optarg ;;
1372
1373 -without-* | --without-*)
1374 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1375 # Reject names that are not valid shell variable names.
1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377 as_fn_error $? "invalid package name: $ac_useropt"
1378 ac_useropt_orig=$ac_useropt
1379 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380 case $ac_user_opts in
1381 *"
1382 "with_$ac_useropt"
1383 "*) ;;
1384 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1385 ac_unrecognized_sep=', ';;
1386 esac
1387 eval with_$ac_useropt=no ;;
1388
1389 --x)
1390 # Obsolete; use --with-x.
1391 with_x=yes ;;
1392
1393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1394 | --x-incl | --x-inc | --x-in | --x-i)
1395 ac_prev=x_includes ;;
1396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1398 x_includes=$ac_optarg ;;
1399
1400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1402 ac_prev=x_libraries ;;
1403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1405 x_libraries=$ac_optarg ;;
1406
1407 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1408 Try \`$0 --help' for more information"
1409 ;;
1410
1411 *=*)
1412 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1413 # Reject names that are not valid shell variable names.
1414 case $ac_envvar in #(
1415 '' | [0-9]* | *[!_$as_cr_alnum]* )
1416 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1417 esac
1418 eval $ac_envvar=\$ac_optarg
1419 export $ac_envvar ;;
1420
1421 *)
1422 # FIXME: should be removed in autoconf 3.0.
1423 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1424 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1425 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1426 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1427 ;;
1428
1429 esac
1430 done
1431
1432 if test -n "$ac_prev"; then
1433 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1434 as_fn_error $? "missing argument to $ac_option"
1435 fi
1436
1437 if test -n "$ac_unrecognized_opts"; then
1438 case $enable_option_checking in
1439 no) ;;
1440 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1441 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1442 esac
1443 fi
1444
1445 # Check all directory arguments for consistency.
1446 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1447 datadir sysconfdir sharedstatedir localstatedir includedir \
1448 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1449 libdir localedir mandir
1450 do
1451 eval ac_val=\$$ac_var
1452 # Remove trailing slashes.
1453 case $ac_val in
1454 */ )
1455 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1456 eval $ac_var=\$ac_val;;
1457 esac
1458 # Be sure to have absolute directory names.
1459 case $ac_val in
1460 [\\/$]* | ?:[\\/]* ) continue;;
1461 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462 esac
1463 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1464 done
1465
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1469 build=$build_alias
1470 host=$host_alias
1471 target=$target_alias
1472
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475 if test "x$build_alias" = x; then
1476 cross_compiling=maybe
1477 elif test "x$build_alias" != "x$host_alias"; then
1478 cross_compiling=yes
1479 fi
1480 fi
1481
1482 ac_tool_prefix=
1483 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1484
1485 test "$silent" = yes && exec 6>/dev/null
1486
1487
1488 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1489 ac_ls_di=`ls -di .` &&
1490 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1491 as_fn_error $? "working directory cannot be determined"
1492 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493 as_fn_error $? "pwd does not report name of working directory"
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$as_myself" ||
1501 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$as_myself" : 'X\(//\)[^/]' \| \
1503 X"$as_myself" : 'X\(//\)$' \| \
1504 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505 $as_echo X"$as_myself" |
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507 s//\1/
1508 q
1509 }
1510 /^X\(\/\/\)[^/].*/{
1511 s//\1/
1512 q
1513 }
1514 /^X\(\/\/\)$/{
1515 s//\1/
1516 q
1517 }
1518 /^X\(\/\).*/{
1519 s//\1/
1520 q
1521 }
1522 s/.*/./; q'`
1523 srcdir=$ac_confdir
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1525 srcdir=..
1526 fi
1527 else
1528 ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1533 fi
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535 ac_abs_confdir=`(
1536 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1537 pwd)`
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540 srcdir=.
1541 fi
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1545 case $srcdir in
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 esac
1548 for ac_var in $ac_precious_vars; do
1549 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_env_${ac_var}_value=\$${ac_var}
1551 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1553 done
1554
1555 #
1556 # Report the --help message.
1557 #
1558 if test "$ac_init_help" = "long"; then
1559 # Omit some internal or obsolete options to make the list less imposing.
1560 # This message is too long to be a string in the A/UX 3.1 sh.
1561 cat <<_ACEOF
1562 \`configure' configures this package to adapt to many kinds of systems.
1563
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1565
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE. See below for descriptions of some of the useful variables.
1568
1569 Defaults for the options are specified in brackets.
1570
1571 Configuration:
1572 -h, --help display this help and exit
1573 --help=short display options specific to this package
1574 --help=recursive display the short help of all the included packages
1575 -V, --version display version information and exit
1576 -q, --quiet, --silent do not print \`checking ...' messages
1577 --cache-file=FILE cache test results in FILE [disabled]
1578 -C, --config-cache alias for \`--cache-file=config.cache'
1579 -n, --no-create do not create output files
1580 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1581
1582 Installation directories:
1583 --prefix=PREFIX install architecture-independent files in PREFIX
1584 [$ac_default_prefix]
1585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1586 [PREFIX]
1587
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1592
1593 For better control, use the options below.
1594
1595 Fine tuning of the installation directories:
1596 --bindir=DIR user executables [EPREFIX/bin]
1597 --sbindir=DIR system admin executables [EPREFIX/sbin]
1598 --libexecdir=DIR program executables [EPREFIX/libexec]
1599 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1600 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1601 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1602 --libdir=DIR object code libraries [EPREFIX/lib]
1603 --includedir=DIR C header files [PREFIX/include]
1604 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1607 --infodir=DIR info documentation [DATAROOTDIR/info]
1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1609 --mandir=DIR man documentation [DATAROOTDIR/man]
1610 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1611 --htmldir=DIR html documentation [DOCDIR]
1612 --dvidir=DIR dvi documentation [DOCDIR]
1613 --pdfdir=DIR pdf documentation [DOCDIR]
1614 --psdir=DIR ps documentation [DOCDIR]
1615 _ACEOF
1616
1617 cat <<\_ACEOF
1618
1619 Program names:
1620 --program-prefix=PREFIX prepend PREFIX to installed program names
1621 --program-suffix=SUFFIX append SUFFIX to installed program names
1622 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1623
1624 System types:
1625 --build=BUILD configure for building on BUILD [guessed]
1626 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1627 --target=TARGET configure for building compilers for TARGET [HOST]
1628 _ACEOF
1629 fi
1630
1631 if test -n "$ac_init_help"; then
1632
1633 cat <<\_ACEOF
1634
1635 Optional Features:
1636 --disable-option-checking ignore unrecognized --enable/--with options
1637 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1638 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1639 --enable-generated-files-in-srcdir
1640 put copies of generated files in source dir intended
1641 for creating source tarballs for users without
1642 texinfo bison or flex
1643 --disable-largefile omit support for large files
1644 --disable-build-format-warnings
1645 don't use -Wformat while building GCC
1646 --enable-werror-always enable -Werror despite compiler version
1647 --enable-checking[=LIST]
1648 enable expensive run-time checks. With LIST, enable
1649 only specific categories of checks. Categories are:
1650 yes,no,all,none,release. Flags are:
1651 assert,df,extra,fold,gc,gcac,gimple,misc,
1652 rtlflag,rtl,runtime,tree,valgrind,types
1653 --enable-coverage[=LEVEL]
1654 enable compiler's code coverage collection. Use to
1655 measure compiler performance and locate unused parts
1656 of the compiler. With LEVEL, specify optimization.
1657 Values are opt, noopt, default is noopt
1658 --enable-gather-detailed-mem-stats
1659 enable detailed memory allocation stats gathering
1660 --enable-valgrind-annotations
1661 enable valgrind runtime interaction
1662 --enable-multilib enable library support for multiple ABIs
1663 --enable-multiarch enable support for multiarch paths
1664 --enable-__cxa_atexit enable __cxa_atexit for C++
1665 --enable-decimal-float={no,yes,bid,dpd}
1666 enable decimal float extension to C. Selecting 'bid'
1667 or 'dpd' choses which decimal floating point format
1668 to use
1669 --enable-fixed-point enable fixed-point arithmetic extension to C
1670 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1671 package
1672 --enable-tls enable or disable generation of tls code overriding
1673 the assembler check for tls support
1674 --enable-vtable-verify enable vtable verification feature
1675 --enable-objc-gc enable the use of Boehm's garbage collector with the
1676 GNU Objective-C runtime
1677 --disable-shared don't provide a shared libgcc
1678 --disable-gcov don't provide libgcov and related host tools
1679 --enable-languages=LIST specify which front-ends to build
1680 --disable-rpath do not hardcode runtime library paths
1681 --enable-sjlj-exceptions
1682 arrange to use setjmp/longjmp exception handling
1683 --enable-secureplt enable -msecure-plt by default for PowerPC
1684 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1685 Default to platform configuration
1686 --enable-large-address-aware
1687 Link mingw executables with --large-address-aware
1688 --enable-leading-mingw64-underscores
1689 enable leading underscores on 64 bit mingw targets
1690 --enable-cld enable -mcld by default for 32bit x86
1691 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1692 --disable-win32-registry
1693 disable lookup of installation paths in the Registry
1694 on Windows hosts
1695 --enable-win32-registry enable registry lookup (default)
1696 --enable-win32-registry=KEY
1697 use KEY instead of GCC version as the last portion
1698 of the registry key
1699 --enable-shared[=PKGS] build shared libraries [default=yes]
1700 --enable-static[=PKGS] build static libraries [default=yes]
1701 --enable-fast-install[=PKGS]
1702 optimize for fast installation [default=yes]
1703 --disable-libtool-lock avoid locking (might break parallel builds)
1704 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1705 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1706 --enable-gnu-indirect-function
1707 enable the use of the @gnu_indirect_function to
1708 glibc systems
1709 --enable-initfini-array use .init_array/.fini_array sections
1710 --enable-comdat enable COMDAT group support
1711
1712 --enable-standard-branch-protection
1713 enable Branch Target Identification Mechanism and
1714 Return Address Signing by default for AArch64
1715 --disable-standard-branch-protection
1716 disable Branch Target Identification Mechanism and
1717 Return Address Signing by default for AArch64
1718
1719
1720 --enable-fix-cortex-a53-835769
1721 enable workaround for AArch64 Cortex-A53 erratum
1722 835769 by default
1723 --disable-fix-cortex-a53-835769
1724 disable workaround for AArch64 Cortex-A53 erratum
1725 835769 by default
1726
1727
1728 --enable-fix-cortex-a53-843419
1729 enable workaround for AArch64 Cortex-A53 erratum
1730 843419 by default
1731 --disable-fix-cortex-a53-843419
1732 disable workaround for AArch64 Cortex-A53 erratum
1733 843419 by default
1734
1735 --enable-gnu-unique-object
1736 enable the use of the @gnu_unique_object ELF
1737 extension on glibc systems
1738 --enable-linker-build-id
1739 compiler will always pass --build-id to linker
1740 --enable-libssp enable linking against libssp
1741 --enable-default-ssp enable Stack Smashing Protection as default
1742 --enable-maintainer-mode
1743 enable make rules and dependencies not useful (and
1744 sometimes confusing) to the casual installer
1745 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1746 thrashing on the build machine
1747 --enable-version-specific-runtime-libs
1748 specify that runtime libraries should be installed
1749 in a compiler-specific directory
1750 --enable-plugin enable plugin support
1751 --enable-host-shared build host code as shared libraries
1752 --disable-libquadmath-support
1753 disable libquadmath support for Fortran
1754 --enable-default-pie enable Position Independent Executable as default
1755
1756 Optional Packages:
1757 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1758 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1759 --with-build-libsubdir=DIR Directory where to find libraries for build system
1760 --with-local-prefix=DIR specifies directory to put local include
1761 --with-native-system-header-dir=dir
1762 use dir as the directory to look for standard
1763 system header files in. Defaults to /usr/include.
1764 --with-build-sysroot=sysroot
1765 use sysroot as the system root during the build
1766 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1767 --with-gxx-include-dir=DIR
1768 specifies directory to put g++ header files
1769 --with-cpp-install-dir=DIR
1770 install the user visible C preprocessor in DIR
1771 (relative to PREFIX) as well as PREFIX/bin
1772 --with-gnu-ld arrange to work with GNU ld
1773 --with-ld arrange to use the specified ld (full pathname)
1774 --with-demangler-in-ld try to use demangler in GNU ld
1775 --with-gnu-as arrange to work with GNU as
1776 --with-as arrange to use the specified as (full pathname)
1777 --with-stabs arrange to use stabs instead of host debug format
1778 --with-stack-clash-protection-guard-size=size
1779 Set the default stack clash protection guard size
1780 for specific targets as a power of two in bytes.
1781 --with-dwarf2 force the default debug format to be DWARF 2
1782 --with-specs=SPECS add SPECS to driver command-line processing
1783 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1784 --with-bugurl=URL Direct users to URL to report a bug
1785 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1786 --with-gnu-ld assume the C compiler uses GNU ld default=no
1787 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1788 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1789 --with-gcc-major-version-only
1790 use only GCC major number in filesystem paths
1791 --with-pic try to use only PIC/non-PIC objects [default=use
1792 both]
1793 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1794 --with-plugin-ld=[ARG] specify the plugin linker
1795 --with-glibc-version=M.N
1796 assume GCC used with glibc version M.N or later
1797 --with-long-double-128 use 128-bit long double by default
1798 --with-long-double-format={ieee,ibm}
1799 Specify whether PowerPC long double uses IEEE or IBM format
1800
1801 --with-gc={page,zone} this option is not supported anymore. It used to
1802 choose the garbage collection mechanism to use with
1803 the compiler
1804 --with-system-zlib use installed libz
1805 --with-linker-hash-style={sysv,gnu,both}
1806 specify the linker hash style
1807 --with-diagnostics-color={never,auto,auto-if-env,always}
1808 specify the default of -fdiagnostics-color option
1809 auto-if-env stands for -fdiagnostics-color=auto if
1810 GCC_COLOR environment variable is present and
1811 -fdiagnostics-color=never otherwise
1812
1813 Some influential environment variables:
1814 CC C compiler command
1815 CFLAGS C compiler flags
1816 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1817 nonstandard directory <lib dir>
1818 LIBS libraries to pass to the linker, e.g. -l<library>
1819 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1820 you have headers in a nonstandard directory <include dir>
1821 CXX C++ compiler command
1822 CXXFLAGS C++ compiler flags
1823 CXXCPP C++ preprocessor
1824 CPP C preprocessor
1825 GMPLIBS How to link GMP
1826 GMPINC How to find GMP include files
1827 ISLLIBS How to link isl
1828 ISLINC How to find isl include files
1829
1830 Use these variables to override the choices made by `configure' or to help
1831 it to find libraries and programs with nonstandard names/locations.
1832
1833 Report bugs to the package provider.
1834 _ACEOF
1835 ac_status=$?
1836 fi
1837
1838 if test "$ac_init_help" = "recursive"; then
1839 # If there are subdirs, report their specific --help.
1840 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1841 test -d "$ac_dir" ||
1842 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1843 continue
1844 ac_builddir=.
1845
1846 case "$ac_dir" in
1847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1848 *)
1849 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1850 # A ".." for each directory in $ac_dir_suffix.
1851 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1852 case $ac_top_builddir_sub in
1853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1855 esac ;;
1856 esac
1857 ac_abs_top_builddir=$ac_pwd
1858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1859 # for backward compatibility:
1860 ac_top_builddir=$ac_top_build_prefix
1861
1862 case $srcdir in
1863 .) # We are building in place.
1864 ac_srcdir=.
1865 ac_top_srcdir=$ac_top_builddir_sub
1866 ac_abs_top_srcdir=$ac_pwd ;;
1867 [\\/]* | ?:[\\/]* ) # Absolute name.
1868 ac_srcdir=$srcdir$ac_dir_suffix;
1869 ac_top_srcdir=$srcdir
1870 ac_abs_top_srcdir=$srcdir ;;
1871 *) # Relative name.
1872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1873 ac_top_srcdir=$ac_top_build_prefix$srcdir
1874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1875 esac
1876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1877
1878 cd "$ac_dir" || { ac_status=$?; continue; }
1879 # Check for guested configure.
1880 if test -f "$ac_srcdir/configure.gnu"; then
1881 echo &&
1882 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1883 elif test -f "$ac_srcdir/configure"; then
1884 echo &&
1885 $SHELL "$ac_srcdir/configure" --help=recursive
1886 else
1887 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1888 fi || ac_status=$?
1889 cd "$ac_pwd" || { ac_status=$?; break; }
1890 done
1891 fi
1892
1893 test -n "$ac_init_help" && exit $ac_status
1894 if $ac_init_version; then
1895 cat <<\_ACEOF
1896 configure
1897 generated by GNU Autoconf 2.69
1898
1899 Copyright (C) 2012 Free Software Foundation, Inc.
1900 This configure script is free software; the Free Software Foundation
1901 gives unlimited permission to copy, distribute and modify it.
1902 _ACEOF
1903 exit
1904 fi
1905
1906 ## ------------------------ ##
1907 ## Autoconf initialization. ##
1908 ## ------------------------ ##
1909
1910 # ac_fn_c_try_compile LINENO
1911 # --------------------------
1912 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_c_try_compile ()
1914 {
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 rm -f conftest.$ac_objext
1917 if { { ac_try="$ac_compile"
1918 case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_compile") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1930 fi
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && {
1933 test -z "$ac_c_werror_flag" ||
1934 test ! -s conftest.err
1935 } && test -s conftest.$ac_objext; then :
1936 ac_retval=0
1937 else
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 ac_retval=1
1942 fi
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 as_fn_set_status $ac_retval
1945
1946 } # ac_fn_c_try_compile
1947
1948 # ac_fn_cxx_try_compile LINENO
1949 # ----------------------------
1950 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_cxx_try_compile ()
1952 {
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 rm -f conftest.$ac_objext
1955 if { { ac_try="$ac_compile"
1956 case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_compile") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && {
1971 test -z "$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 } && test -s conftest.$ac_objext; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980 fi
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1983
1984 } # ac_fn_cxx_try_compile
1985
1986 # ac_fn_cxx_try_cpp LINENO
1987 # ------------------------
1988 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_cpp ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if { { ac_try="$ac_cpp conftest.$ac_ext"
1993 case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2000 ac_status=$?
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2005 fi
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } > conftest.i && {
2008 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2009 test ! -s conftest.err
2010 }; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_retval=1
2017 fi
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 as_fn_set_status $ac_retval
2020
2021 } # ac_fn_cxx_try_cpp
2022
2023 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2024 # ---------------------------------------------------------
2025 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2026 # the include files in INCLUDES and setting the cache variable VAR
2027 # accordingly.
2028 ac_fn_cxx_check_header_mongrel ()
2029 {
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if eval \${$3+:} false; then :
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036 fi
2037 eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 else
2041 # Is the header compilable?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2043 $as_echo_n "checking $2 usability... " >&6; }
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 $4
2047 #include <$2>
2048 _ACEOF
2049 if ac_fn_cxx_try_compile "$LINENO"; then :
2050 ac_header_compiler=yes
2051 else
2052 ac_header_compiler=no
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2056 $as_echo "$ac_header_compiler" >&6; }
2057
2058 # Is the header present?
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2060 $as_echo_n "checking $2 presence... " >&6; }
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 #include <$2>
2064 _ACEOF
2065 if ac_fn_cxx_try_cpp "$LINENO"; then :
2066 ac_header_preproc=yes
2067 else
2068 ac_header_preproc=no
2069 fi
2070 rm -f conftest.err conftest.i conftest.$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2072 $as_echo "$ac_header_preproc" >&6; }
2073
2074 # So? What about this header?
2075 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2076 yes:no: )
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2078 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2080 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2081 ;;
2082 no:yes:* )
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2084 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2086 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2088 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2090 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2093 ;;
2094 esac
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if eval \${$3+:} false; then :
2098 $as_echo_n "(cached) " >&6
2099 else
2100 eval "$3=\$ac_header_compiler"
2101 fi
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 fi
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107
2108 } # ac_fn_cxx_check_header_mongrel
2109
2110 # ac_fn_cxx_try_run LINENO
2111 # ------------------------
2112 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2113 # that executables *can* be run.
2114 ac_fn_cxx_try_run ()
2115 {
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 if { { ac_try="$ac_link"
2118 case "(($ac_try" in
2119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2121 esac
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 $as_echo "$ac_try_echo"; } >&5
2124 (eval "$ac_link") 2>&5
2125 ac_status=$?
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2128 { { case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_try") 2>&5
2135 ac_status=$?
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; }; }; then :
2138 ac_retval=0
2139 else
2140 $as_echo "$as_me: program exited with status $ac_status" >&5
2141 $as_echo "$as_me: failed program was:" >&5
2142 sed 's/^/| /' conftest.$ac_ext >&5
2143
2144 ac_retval=$ac_status
2145 fi
2146 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 as_fn_set_status $ac_retval
2149
2150 } # ac_fn_cxx_try_run
2151
2152 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2153 # ---------------------------------------------------------
2154 # Tests whether HEADER exists and can be compiled using the include files in
2155 # INCLUDES, setting the cache variable VAR accordingly.
2156 ac_fn_cxx_check_header_compile ()
2157 {
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2166 $4
2167 #include <$2>
2168 _ACEOF
2169 if ac_fn_cxx_try_compile "$LINENO"; then :
2170 eval "$3=yes"
2171 else
2172 eval "$3=no"
2173 fi
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 fi
2176 eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180
2181 } # ac_fn_cxx_check_header_compile
2182
2183 # ac_fn_c_try_cpp LINENO
2184 # ----------------------
2185 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2186 ac_fn_c_try_cpp ()
2187 {
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 if { { ac_try="$ac_cpp conftest.$ac_ext"
2190 case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2197 ac_status=$?
2198 if test -s conftest.err; then
2199 grep -v '^ *+' conftest.err >conftest.er1
2200 cat conftest.er1 >&5
2201 mv -f conftest.er1 conftest.err
2202 fi
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; } > conftest.i && {
2205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2206 test ! -s conftest.err
2207 }; then :
2208 ac_retval=0
2209 else
2210 $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 ac_retval=1
2214 fi
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 as_fn_set_status $ac_retval
2217
2218 } # ac_fn_c_try_cpp
2219
2220 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2221 # ----------------------------------------------
2222 # Tries to find the compile-time value of EXPR in a program that includes
2223 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2224 # computed
2225 ac_fn_cxx_compute_int ()
2226 {
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if test "$cross_compiling" = yes; then
2229 # Depending upon the size, compute the lo and hi bounds.
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2232 $4
2233 int
2234 main ()
2235 {
2236 static int test_array [1 - 2 * !(($2) >= 0)];
2237 test_array [0] = 0;
2238 return test_array [0];
2239
2240 ;
2241 return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_cxx_try_compile "$LINENO"; then :
2245 ac_lo=0 ac_mid=0
2246 while :; do
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2249 $4
2250 int
2251 main ()
2252 {
2253 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2254 test_array [0] = 0;
2255 return test_array [0];
2256
2257 ;
2258 return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_cxx_try_compile "$LINENO"; then :
2262 ac_hi=$ac_mid; break
2263 else
2264 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2265 if test $ac_lo -le $ac_mid; then
2266 ac_lo= ac_hi=
2267 break
2268 fi
2269 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2270 fi
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 done
2273 else
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2276 $4
2277 int
2278 main ()
2279 {
2280 static int test_array [1 - 2 * !(($2) < 0)];
2281 test_array [0] = 0;
2282 return test_array [0];
2283
2284 ;
2285 return 0;
2286 }
2287 _ACEOF
2288 if ac_fn_cxx_try_compile "$LINENO"; then :
2289 ac_hi=-1 ac_mid=-1
2290 while :; do
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2293 $4
2294 int
2295 main ()
2296 {
2297 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2298 test_array [0] = 0;
2299 return test_array [0];
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_cxx_try_compile "$LINENO"; then :
2306 ac_lo=$ac_mid; break
2307 else
2308 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2309 if test $ac_mid -le $ac_hi; then
2310 ac_lo= ac_hi=
2311 break
2312 fi
2313 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2314 fi
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 done
2317 else
2318 ac_lo= ac_hi=
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 # Binary search between lo and hi bounds.
2324 while test "x$ac_lo" != "x$ac_hi"; do
2325 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 $4
2329 int
2330 main ()
2331 {
2332 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2333 test_array [0] = 0;
2334 return test_array [0];
2335
2336 ;
2337 return 0;
2338 }
2339 _ACEOF
2340 if ac_fn_cxx_try_compile "$LINENO"; then :
2341 ac_hi=$ac_mid
2342 else
2343 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2344 fi
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 done
2347 case $ac_lo in #((
2348 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2349 '') ac_retval=1 ;;
2350 esac
2351 else
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2354 $4
2355 static long int longval () { return $2; }
2356 static unsigned long int ulongval () { return $2; }
2357 #include <stdio.h>
2358 #include <stdlib.h>
2359 int
2360 main ()
2361 {
2362
2363 FILE *f = fopen ("conftest.val", "w");
2364 if (! f)
2365 return 1;
2366 if (($2) < 0)
2367 {
2368 long int i = longval ();
2369 if (i != ($2))
2370 return 1;
2371 fprintf (f, "%ld", i);
2372 }
2373 else
2374 {
2375 unsigned long int i = ulongval ();
2376 if (i != ($2))
2377 return 1;
2378 fprintf (f, "%lu", i);
2379 }
2380 /* Do not output a trailing newline, as this causes \r\n confusion
2381 on some platforms. */
2382 return ferror (f) || fclose (f) != 0;
2383
2384 ;
2385 return 0;
2386 }
2387 _ACEOF
2388 if ac_fn_cxx_try_run "$LINENO"; then :
2389 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2390 else
2391 ac_retval=1
2392 fi
2393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2394 conftest.$ac_objext conftest.beam conftest.$ac_ext
2395 rm -f conftest.val
2396
2397 fi
2398 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399 as_fn_set_status $ac_retval
2400
2401 } # ac_fn_cxx_compute_int
2402
2403 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2404 # ---------------------------------------------
2405 # Tests whether TYPE exists after having included INCLUDES, setting cache
2406 # variable VAR accordingly.
2407 ac_fn_cxx_check_type ()
2408 {
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if eval \${$3+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 eval "$3=no"
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2418 $4
2419 int
2420 main ()
2421 {
2422 if (sizeof ($2))
2423 return 0;
2424 ;
2425 return 0;
2426 }
2427 _ACEOF
2428 if ac_fn_cxx_try_compile "$LINENO"; then :
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2431 $4
2432 int
2433 main ()
2434 {
2435 if (sizeof (($2)))
2436 return 0;
2437 ;
2438 return 0;
2439 }
2440 _ACEOF
2441 if ac_fn_cxx_try_compile "$LINENO"; then :
2442
2443 else
2444 eval "$3=yes"
2445 fi
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 fi
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 fi
2450 eval ac_res=\$$3
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2454
2455 } # ac_fn_cxx_check_type
2456
2457 # ac_fn_c_find_intX_t LINENO BITS VAR
2458 # -----------------------------------
2459 # Finds a signed integer type with width BITS, setting cache variable VAR
2460 # accordingly.
2461 ac_fn_c_find_intX_t ()
2462 {
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2465 $as_echo_n "checking for int$2_t... " >&6; }
2466 if eval \${$3+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 eval "$3=no"
2470 # Order is important - never check a type that is potentially smaller
2471 # than half of the expected target width.
2472 for ac_type in int$2_t 'int' 'long int' \
2473 'long long int' 'short int' 'signed char'; do
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2476 $ac_includes_default
2477 enum { N = $2 / 2 - 1 };
2478 int
2479 main ()
2480 {
2481 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2482 test_array [0] = 0;
2483 return test_array [0];
2484
2485 ;
2486 return 0;
2487 }
2488 _ACEOF
2489 if ac_fn_cxx_try_compile "$LINENO"; then :
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2492 $ac_includes_default
2493 enum { N = $2 / 2 - 1 };
2494 int
2495 main ()
2496 {
2497 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2498 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2499 test_array [0] = 0;
2500 return test_array [0];
2501
2502 ;
2503 return 0;
2504 }
2505 _ACEOF
2506 if ac_fn_cxx_try_compile "$LINENO"; then :
2507
2508 else
2509 case $ac_type in #(
2510 int$2_t) :
2511 eval "$3=yes" ;; #(
2512 *) :
2513 eval "$3=\$ac_type" ;;
2514 esac
2515 fi
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 fi
2518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 if eval test \"x\$"$3"\" = x"no"; then :
2520
2521 else
2522 break
2523 fi
2524 done
2525 fi
2526 eval ac_res=\$$3
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2528 $as_echo "$ac_res" >&6; }
2529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2530
2531 } # ac_fn_c_find_intX_t
2532
2533 # ac_fn_cxx_try_link LINENO
2534 # -------------------------
2535 # Try to link conftest.$ac_ext, and return whether this succeeded.
2536 ac_fn_cxx_try_link ()
2537 {
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 rm -f conftest.$ac_objext conftest$ac_exeext
2540 if { { ac_try="$ac_link"
2541 case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2544 esac
2545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2546 $as_echo "$ac_try_echo"; } >&5
2547 (eval "$ac_link") 2>conftest.err
2548 ac_status=$?
2549 if test -s conftest.err; then
2550 grep -v '^ *+' conftest.err >conftest.er1
2551 cat conftest.er1 >&5
2552 mv -f conftest.er1 conftest.err
2553 fi
2554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2555 test $ac_status = 0; } && {
2556 test -z "$ac_cxx_werror_flag" ||
2557 test ! -s conftest.err
2558 } && test -s conftest$ac_exeext && {
2559 test "$cross_compiling" = yes ||
2560 test -x conftest$ac_exeext
2561 }; then :
2562 ac_retval=0
2563 else
2564 $as_echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 ac_retval=1
2568 fi
2569 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2570 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2571 # interfere with the next link command; also delete a directory that is
2572 # left behind by Apple's compiler. We do this before executing the actions.
2573 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2575 as_fn_set_status $ac_retval
2576
2577 } # ac_fn_cxx_try_link
2578
2579 # ac_fn_c_find_uintX_t LINENO BITS VAR
2580 # ------------------------------------
2581 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2582 # accordingly.
2583 ac_fn_c_find_uintX_t ()
2584 {
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2587 $as_echo_n "checking for uint$2_t... " >&6; }
2588 if eval \${$3+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 eval "$3=no"
2592 # Order is important - never check a type that is potentially smaller
2593 # than half of the expected target width.
2594 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2595 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2598 $ac_includes_default
2599 int
2600 main ()
2601 {
2602 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2603 test_array [0] = 0;
2604 return test_array [0];
2605
2606 ;
2607 return 0;
2608 }
2609 _ACEOF
2610 if ac_fn_cxx_try_compile "$LINENO"; then :
2611 case $ac_type in #(
2612 uint$2_t) :
2613 eval "$3=yes" ;; #(
2614 *) :
2615 eval "$3=\$ac_type" ;;
2616 esac
2617 fi
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 if eval test \"x\$"$3"\" = x"no"; then :
2620
2621 else
2622 break
2623 fi
2624 done
2625 fi
2626 eval ac_res=\$$3
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2628 $as_echo "$ac_res" >&6; }
2629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2630
2631 } # ac_fn_c_find_uintX_t
2632
2633 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2634 # ------------------------------------------------
2635 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2636 ac_fn_cxx_check_header_preproc ()
2637 {
2638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2640 $as_echo_n "checking for $2... " >&6; }
2641 if eval \${$3+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2646 #include <$2>
2647 _ACEOF
2648 if ac_fn_cxx_try_cpp "$LINENO"; then :
2649 eval "$3=yes"
2650 else
2651 eval "$3=no"
2652 fi
2653 rm -f conftest.err conftest.i conftest.$ac_ext
2654 fi
2655 eval ac_res=\$$3
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2657 $as_echo "$ac_res" >&6; }
2658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659
2660 } # ac_fn_cxx_check_header_preproc
2661
2662 # ac_fn_cxx_check_func LINENO FUNC VAR
2663 # ------------------------------------
2664 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2665 ac_fn_cxx_check_func ()
2666 {
2667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2669 $as_echo_n "checking for $2... " >&6; }
2670 if eval \${$3+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2675 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2677 #define $2 innocuous_$2
2678
2679 /* System header to define __stub macros and hopefully few prototypes,
2680 which can conflict with char $2 (); below.
2681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2682 <limits.h> exists even on freestanding compilers. */
2683
2684 #ifdef __STDC__
2685 # include <limits.h>
2686 #else
2687 # include <assert.h>
2688 #endif
2689
2690 #undef $2
2691
2692 /* Override any GCC internal prototype to avoid an error.
2693 Use char because int might match the return type of a GCC
2694 builtin and then its argument prototype would still apply. */
2695 #ifdef __cplusplus
2696 extern "C"
2697 #endif
2698 char $2 ();
2699 /* The GNU C library defines this for functions which it implements
2700 to always fail with ENOSYS. Some functions are actually named
2701 something starting with __ and the normal name is an alias. */
2702 #if defined __stub_$2 || defined __stub___$2
2703 choke me
2704 #endif
2705
2706 int
2707 main ()
2708 {
2709 return $2 ();
2710 ;
2711 return 0;
2712 }
2713 _ACEOF
2714 if ac_fn_cxx_try_link "$LINENO"; then :
2715 eval "$3=yes"
2716 else
2717 eval "$3=no"
2718 fi
2719 rm -f core conftest.err conftest.$ac_objext \
2720 conftest$ac_exeext conftest.$ac_ext
2721 fi
2722 eval ac_res=\$$3
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2724 $as_echo "$ac_res" >&6; }
2725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2726
2727 } # ac_fn_cxx_check_func
2728
2729 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2730 # -----------------------------------------------
2731 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2732 # accordingly.
2733 ac_fn_cxx_check_decl ()
2734 {
2735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2736 as_decl_name=`echo $2|sed 's/ *(.*//'`
2737 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2739 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2740 if eval \${$3+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744 /* end confdefs.h. */
2745 $4
2746 int
2747 main ()
2748 {
2749 #ifndef $as_decl_name
2750 #ifdef __cplusplus
2751 (void) $as_decl_use;
2752 #else
2753 (void) $as_decl_name;
2754 #endif
2755 #endif
2756
2757 ;
2758 return 0;
2759 }
2760 _ACEOF
2761 if ac_fn_cxx_try_compile "$LINENO"; then :
2762 eval "$3=yes"
2763 else
2764 eval "$3=no"
2765 fi
2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 fi
2768 eval ac_res=\$$3
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2770 $as_echo "$ac_res" >&6; }
2771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2772
2773 } # ac_fn_cxx_check_decl
2774
2775 # ac_fn_c_try_link LINENO
2776 # -----------------------
2777 # Try to link conftest.$ac_ext, and return whether this succeeded.
2778 ac_fn_c_try_link ()
2779 {
2780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2781 rm -f conftest.$ac_objext conftest$ac_exeext
2782 if { { ac_try="$ac_link"
2783 case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2786 esac
2787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788 $as_echo "$ac_try_echo"; } >&5
2789 (eval "$ac_link") 2>conftest.err
2790 ac_status=$?
2791 if test -s conftest.err; then
2792 grep -v '^ *+' conftest.err >conftest.er1
2793 cat conftest.er1 >&5
2794 mv -f conftest.er1 conftest.err
2795 fi
2796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2797 test $ac_status = 0; } && {
2798 test -z "$ac_c_werror_flag" ||
2799 test ! -s conftest.err
2800 } && test -s conftest$ac_exeext && {
2801 test "$cross_compiling" = yes ||
2802 test -x conftest$ac_exeext
2803 }; then :
2804 ac_retval=0
2805 else
2806 $as_echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 ac_retval=1
2810 fi
2811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2813 # interfere with the next link command; also delete a directory that is
2814 # left behind by Apple's compiler. We do this before executing the actions.
2815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2817 as_fn_set_status $ac_retval
2818
2819 } # ac_fn_c_try_link
2820
2821 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2822 # ----------------------------------------------
2823 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2824 ac_fn_c_check_header_preproc ()
2825 {
2826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2828 $as_echo_n "checking for $2... " >&6; }
2829 if eval \${$3+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h. */
2834 #include <$2>
2835 _ACEOF
2836 if ac_fn_c_try_cpp "$LINENO"; then :
2837 eval "$3=yes"
2838 else
2839 eval "$3=no"
2840 fi
2841 rm -f conftest.err conftest.i conftest.$ac_ext
2842 fi
2843 eval ac_res=\$$3
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2845 $as_echo "$ac_res" >&6; }
2846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2847
2848 } # ac_fn_c_check_header_preproc
2849
2850 # ac_fn_c_check_func LINENO FUNC VAR
2851 # ----------------------------------
2852 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2853 ac_fn_c_check_func ()
2854 {
2855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2857 $as_echo_n "checking for $2... " >&6; }
2858 if eval \${$3+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2863 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2865 #define $2 innocuous_$2
2866
2867 /* System header to define __stub macros and hopefully few prototypes,
2868 which can conflict with char $2 (); below.
2869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2870 <limits.h> exists even on freestanding compilers. */
2871
2872 #ifdef __STDC__
2873 # include <limits.h>
2874 #else
2875 # include <assert.h>
2876 #endif
2877
2878 #undef $2
2879
2880 /* Override any GCC internal prototype to avoid an error.
2881 Use char because int might match the return type of a GCC
2882 builtin and then its argument prototype would still apply. */
2883 #ifdef __cplusplus
2884 extern "C"
2885 #endif
2886 char $2 ();
2887 /* The GNU C library defines this for functions which it implements
2888 to always fail with ENOSYS. Some functions are actually named
2889 something starting with __ and the normal name is an alias. */
2890 #if defined __stub_$2 || defined __stub___$2
2891 choke me
2892 #endif
2893
2894 int
2895 main ()
2896 {
2897 return $2 ();
2898 ;
2899 return 0;
2900 }
2901 _ACEOF
2902 if ac_fn_c_try_link "$LINENO"; then :
2903 eval "$3=yes"
2904 else
2905 eval "$3=no"
2906 fi
2907 rm -f core conftest.err conftest.$ac_objext \
2908 conftest$ac_exeext conftest.$ac_ext
2909 fi
2910 eval ac_res=\$$3
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2912 $as_echo "$ac_res" >&6; }
2913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2914
2915 } # ac_fn_c_check_func
2916 cat >config.log <<_ACEOF
2917 This file contains any messages produced by compilers while
2918 running configure, to aid debugging if configure makes a mistake.
2919
2920 It was created by $as_me, which was
2921 generated by GNU Autoconf 2.69. Invocation command line was
2922
2923 $ $0 $@
2924
2925 _ACEOF
2926 exec 5>>config.log
2927 {
2928 cat <<_ASUNAME
2929 ## --------- ##
2930 ## Platform. ##
2931 ## --------- ##
2932
2933 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2934 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2935 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2936 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2937 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2938
2939 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2940 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2941
2942 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2943 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2944 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2945 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2946 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2947 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2948 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2949
2950 _ASUNAME
2951
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 $as_echo "PATH: $as_dir"
2958 done
2959 IFS=$as_save_IFS
2960
2961 } >&5
2962
2963 cat >&5 <<_ACEOF
2964
2965
2966 ## ----------- ##
2967 ## Core tests. ##
2968 ## ----------- ##
2969
2970 _ACEOF
2971
2972
2973 # Keep a trace of the command line.
2974 # Strip out --no-create and --no-recursion so they do not pile up.
2975 # Strip out --silent because we don't want to record it for future runs.
2976 # Also quote any args containing shell meta-characters.
2977 # Make two passes to allow for proper duplicate-argument suppression.
2978 ac_configure_args=
2979 ac_configure_args0=
2980 ac_configure_args1=
2981 ac_must_keep_next=false
2982 for ac_pass in 1 2
2983 do
2984 for ac_arg
2985 do
2986 case $ac_arg in
2987 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2989 | -silent | --silent | --silen | --sile | --sil)
2990 continue ;;
2991 *\'*)
2992 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2993 esac
2994 case $ac_pass in
2995 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2996 2)
2997 as_fn_append ac_configure_args1 " '$ac_arg'"
2998 if test $ac_must_keep_next = true; then
2999 ac_must_keep_next=false # Got value, back to normal.
3000 else
3001 case $ac_arg in
3002 *=* | --config-cache | -C | -disable-* | --disable-* \
3003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3005 | -with-* | --with-* | -without-* | --without-* | --x)
3006 case "$ac_configure_args0 " in
3007 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3008 esac
3009 ;;
3010 -* ) ac_must_keep_next=true ;;
3011 esac
3012 fi
3013 as_fn_append ac_configure_args " '$ac_arg'"
3014 ;;
3015 esac
3016 done
3017 done
3018 { ac_configure_args0=; unset ac_configure_args0;}
3019 { ac_configure_args1=; unset ac_configure_args1;}
3020
3021 # When interrupted or exit'd, cleanup temporary files, and complete
3022 # config.log. We remove comments because anyway the quotes in there
3023 # would cause problems or look ugly.
3024 # WARNING: Use '\'' to represent an apostrophe within the trap.
3025 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3026 trap 'exit_status=$?
3027 # Save into config.log some information that might help in debugging.
3028 {
3029 echo
3030
3031 $as_echo "## ---------------- ##
3032 ## Cache variables. ##
3033 ## ---------------- ##"
3034 echo
3035 # The following way of writing the cache mishandles newlines in values,
3036 (
3037 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3038 eval ac_val=\$$ac_var
3039 case $ac_val in #(
3040 *${as_nl}*)
3041 case $ac_var in #(
3042 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3043 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3044 esac
3045 case $ac_var in #(
3046 _ | IFS | as_nl) ;; #(
3047 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3048 *) { eval $ac_var=; unset $ac_var;} ;;
3049 esac ;;
3050 esac
3051 done
3052 (set) 2>&1 |
3053 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3054 *${as_nl}ac_space=\ *)
3055 sed -n \
3056 "s/'\''/'\''\\\\'\'''\''/g;
3057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3058 ;; #(
3059 *)
3060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3061 ;;
3062 esac |
3063 sort
3064 )
3065 echo
3066
3067 $as_echo "## ----------------- ##
3068 ## Output variables. ##
3069 ## ----------------- ##"
3070 echo
3071 for ac_var in $ac_subst_vars
3072 do
3073 eval ac_val=\$$ac_var
3074 case $ac_val in
3075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3076 esac
3077 $as_echo "$ac_var='\''$ac_val'\''"
3078 done | sort
3079 echo
3080
3081 if test -n "$ac_subst_files"; then
3082 $as_echo "## ------------------- ##
3083 ## File substitutions. ##
3084 ## ------------------- ##"
3085 echo
3086 for ac_var in $ac_subst_files
3087 do
3088 eval ac_val=\$$ac_var
3089 case $ac_val in
3090 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3091 esac
3092 $as_echo "$ac_var='\''$ac_val'\''"
3093 done | sort
3094 echo
3095 fi
3096
3097 if test -s confdefs.h; then
3098 $as_echo "## ----------- ##
3099 ## confdefs.h. ##
3100 ## ----------- ##"
3101 echo
3102 cat confdefs.h
3103 echo
3104 fi
3105 test "$ac_signal" != 0 &&
3106 $as_echo "$as_me: caught signal $ac_signal"
3107 $as_echo "$as_me: exit $exit_status"
3108 } >&5
3109 rm -f core *.core core.conftest.* &&
3110 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3111 exit $exit_status
3112 ' 0
3113 for ac_signal in 1 2 13 15; do
3114 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3115 done
3116 ac_signal=0
3117
3118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3119 rm -f -r conftest* confdefs.h
3120
3121 $as_echo "/* confdefs.h */" > confdefs.h
3122
3123 # Predefined preprocessor variables.
3124
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE_NAME "$PACKAGE_NAME"
3127 _ACEOF
3128
3129 cat >>confdefs.h <<_ACEOF
3130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3131 _ACEOF
3132
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3135 _ACEOF
3136
3137 cat >>confdefs.h <<_ACEOF
3138 #define PACKAGE_STRING "$PACKAGE_STRING"
3139 _ACEOF
3140
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3143 _ACEOF
3144
3145 cat >>confdefs.h <<_ACEOF
3146 #define PACKAGE_URL "$PACKAGE_URL"
3147 _ACEOF
3148
3149
3150 # Let the site file select an alternate cache file if it wants to.
3151 # Prefer an explicitly selected file to automatically selected ones.
3152 ac_site_file1=NONE
3153 ac_site_file2=NONE
3154 if test -n "$CONFIG_SITE"; then
3155 # We do not want a PATH search for config.site.
3156 case $CONFIG_SITE in #((
3157 -*) ac_site_file1=./$CONFIG_SITE;;
3158 */*) ac_site_file1=$CONFIG_SITE;;
3159 *) ac_site_file1=./$CONFIG_SITE;;
3160 esac
3161 elif test "x$prefix" != xNONE; then
3162 ac_site_file1=$prefix/share/config.site
3163 ac_site_file2=$prefix/etc/config.site
3164 else
3165 ac_site_file1=$ac_default_prefix/share/config.site
3166 ac_site_file2=$ac_default_prefix/etc/config.site
3167 fi
3168 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3169 do
3170 test "x$ac_site_file" = xNONE && continue
3171 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3173 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3174 sed 's/^/| /' "$ac_site_file" >&5
3175 . "$ac_site_file" \
3176 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "failed to load site script $ac_site_file
3179 See \`config.log' for more details" "$LINENO" 5; }
3180 fi
3181 done
3182
3183 if test -r "$cache_file"; then
3184 # Some versions of bash will fail to source /dev/null (special files
3185 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3186 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3188 $as_echo "$as_me: loading cache $cache_file" >&6;}
3189 case $cache_file in
3190 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3191 *) . "./$cache_file";;
3192 esac
3193 fi
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3196 $as_echo "$as_me: creating cache $cache_file" >&6;}
3197 >$cache_file
3198 fi
3199
3200 # Check that the precious variables saved in the cache have kept the same
3201 # value.
3202 ac_cache_corrupted=false
3203 for ac_var in $ac_precious_vars; do
3204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3205 eval ac_new_set=\$ac_env_${ac_var}_set
3206 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3207 eval ac_new_val=\$ac_env_${ac_var}_value
3208 case $ac_old_set,$ac_new_set in
3209 set,)
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3211 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3212 ac_cache_corrupted=: ;;
3213 ,set)
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3215 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3216 ac_cache_corrupted=: ;;
3217 ,);;
3218 *)
3219 if test "x$ac_old_val" != "x$ac_new_val"; then
3220 # differences in whitespace do not lead to failure.
3221 ac_old_val_w=`echo x $ac_old_val`
3222 ac_new_val_w=`echo x $ac_new_val`
3223 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3225 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3226 ac_cache_corrupted=:
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3229 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3230 eval $ac_var=\$ac_old_val
3231 fi
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3233 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3235 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3236 fi;;
3237 esac
3238 # Pass precious variables to config.status.
3239 if test "$ac_new_set" = set; then
3240 case $ac_new_val in
3241 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3242 *) ac_arg=$ac_var=$ac_new_val ;;
3243 esac
3244 case " $ac_configure_args " in
3245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3246 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3247 esac
3248 fi
3249 done
3250 if $ac_cache_corrupted; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3254 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3255 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3256 fi
3257 ## -------------------- ##
3258 ## Main body of script. ##
3259 ## -------------------- ##
3260
3261 ac_ext=c
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266
3267
3268
3269
3270
3271
3272 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3273
3274
3275 gcc_version=`cat $srcdir/BASE-VER`
3276
3277 # Determine the host, build, and target systems
3278 ac_aux_dir=
3279 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3280 if test -f "$ac_dir/install-sh"; then
3281 ac_aux_dir=$ac_dir
3282 ac_install_sh="$ac_aux_dir/install-sh -c"
3283 break
3284 elif test -f "$ac_dir/install.sh"; then
3285 ac_aux_dir=$ac_dir
3286 ac_install_sh="$ac_aux_dir/install.sh -c"
3287 break
3288 elif test -f "$ac_dir/shtool"; then
3289 ac_aux_dir=$ac_dir
3290 ac_install_sh="$ac_aux_dir/shtool install -c"
3291 break
3292 fi
3293 done
3294 if test -z "$ac_aux_dir"; then
3295 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3296 fi
3297
3298 # These three variables are undocumented and unsupported,
3299 # and are intended to be withdrawn in a future Autoconf release.
3300 # They can cause serious problems if a builder's source tree is in a directory
3301 # whose full name contains unusual characters.
3302 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3303 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3304 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3305
3306
3307 # Make sure we can run config.sub.
3308 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3309 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3310
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3312 $as_echo_n "checking build system type... " >&6; }
3313 if ${ac_cv_build+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 ac_build_alias=$build_alias
3317 test "x$ac_build_alias" = x &&
3318 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3319 test "x$ac_build_alias" = x &&
3320 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3321 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3322 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3323
3324 fi
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3326 $as_echo "$ac_cv_build" >&6; }
3327 case $ac_cv_build in
3328 *-*-*) ;;
3329 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3330 esac
3331 build=$ac_cv_build
3332 ac_save_IFS=$IFS; IFS='-'
3333 set x $ac_cv_build
3334 shift
3335 build_cpu=$1
3336 build_vendor=$2
3337 shift; shift
3338 # Remember, the first character of IFS is used to create $*,
3339 # except with old shells:
3340 build_os=$*
3341 IFS=$ac_save_IFS
3342 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3343
3344
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3346 $as_echo_n "checking host system type... " >&6; }
3347 if ${ac_cv_host+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 if test "x$host_alias" = x; then
3351 ac_cv_host=$ac_cv_build
3352 else
3353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3354 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3355 fi
3356
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3359 $as_echo "$ac_cv_host" >&6; }
3360 case $ac_cv_host in
3361 *-*-*) ;;
3362 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3363 esac
3364 host=$ac_cv_host
3365 ac_save_IFS=$IFS; IFS='-'
3366 set x $ac_cv_host
3367 shift
3368 host_cpu=$1
3369 host_vendor=$2
3370 shift; shift
3371 # Remember, the first character of IFS is used to create $*,
3372 # except with old shells:
3373 host_os=$*
3374 IFS=$ac_save_IFS
3375 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3376
3377
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3379 $as_echo_n "checking target system type... " >&6; }
3380 if ${ac_cv_target+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test "x$target_alias" = x; then
3384 ac_cv_target=$ac_cv_host
3385 else
3386 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3388 fi
3389
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3392 $as_echo "$ac_cv_target" >&6; }
3393 case $ac_cv_target in
3394 *-*-*) ;;
3395 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3396 esac
3397 target=$ac_cv_target
3398 ac_save_IFS=$IFS; IFS='-'
3399 set x $ac_cv_target
3400 shift
3401 target_cpu=$1
3402 target_vendor=$2
3403 shift; shift
3404 # Remember, the first character of IFS is used to create $*,
3405 # except with old shells:
3406 target_os=$*
3407 IFS=$ac_save_IFS
3408 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3409
3410
3411 # The aliases save the names the user supplied, while $host etc.
3412 # will get canonicalized.
3413 test -n "$target_alias" &&
3414 test "$program_prefix$program_suffix$program_transform_name" = \
3415 NONENONEs,x,x, &&
3416 program_prefix=${target_alias}-
3417
3418 # Determine the noncanonical host name, for Ada.
3419 case ${build_alias} in
3420 "") build_noncanonical=${build} ;;
3421 *) build_noncanonical=${build_alias} ;;
3422 esac
3423
3424 case ${host_alias} in
3425 "") host_noncanonical=${build_noncanonical} ;;
3426 *) host_noncanonical=${host_alias} ;;
3427 esac
3428
3429
3430
3431
3432 # Determine the noncanonical target name, for directory use.
3433 case ${target_alias} in
3434 "") target_noncanonical=${host_noncanonical} ;;
3435 *) target_noncanonical=${target_alias} ;;
3436 esac
3437
3438
3439
3440
3441 # Used for constructing correct paths for offload compilers.
3442 real_target_noncanonical=${target_noncanonical}
3443 accel_dir_suffix=
3444
3445 # Determine the target- and build-specific subdirectories
3446
3447 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3448 # have matching libraries, they should use host libraries: Makefile.tpl
3449 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3450 # However, they still use the build modules, because the corresponding
3451 # host modules (e.g. bison) are only built for the host when bootstrap
3452 # finishes. So:
3453 # - build_subdir is where we find build modules, and never changes.
3454 # - build_libsubdir is where we find build libraries, and can be overridden.
3455
3456 # Prefix 'build-' so this never conflicts with target_subdir.
3457 build_subdir="build-${build_noncanonical}"
3458
3459 # Check whether --with-build-libsubdir was given.
3460 if test "${with_build_libsubdir+set}" = set; then :
3461 withval=$with_build_libsubdir; build_libsubdir="$withval"
3462 else
3463 build_libsubdir="$build_subdir"
3464 fi
3465
3466 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3467 if ( test $srcdir = . && test -d gcc ) \
3468 || test -d $srcdir/../host-${host_noncanonical}; then
3469 host_subdir="host-${host_noncanonical}"
3470 else
3471 host_subdir=.
3472 fi
3473 # No prefix.
3474 target_subdir=${target_noncanonical}
3475
3476
3477 # Set program_transform_name
3478 test "$program_prefix" != NONE &&
3479 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3480 # Use a double $ so make ignores it.
3481 test "$program_suffix" != NONE &&
3482 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3483 # Double any \ or $.
3484 # By default was `s,x,x', remove it if useless.
3485 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3486 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3487
3488
3489 # Check for bogus environment variables.
3490 # Test if LIBRARY_PATH contains the notation for the current directory
3491 # since this would lead to problems installing/building glibc.
3492 # LIBRARY_PATH contains the current directory if one of the following
3493 # is true:
3494 # - one of the terminals (":" and ";") is the first or last sign
3495 # - two terminals occur directly after each other
3496 # - the path contains an element with a dot in it
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3498 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3499 case ${LIBRARY_PATH} in
3500 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3501 library_path_setting="contains current directory"
3502 ;;
3503 *)
3504 library_path_setting="ok"
3505 ;;
3506 esac
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3508 $as_echo "$library_path_setting" >&6; }
3509 if test "$library_path_setting" != "ok"; then
3510 as_fn_error $? "
3511 *** LIBRARY_PATH shouldn't contain the current directory when
3512 *** building gcc. Please change the environment variable
3513 *** and run configure again." "$LINENO" 5
3514 fi
3515
3516 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3517 # since this would lead to problems installing/building glibc.
3518 # GCC_EXEC_PREFIX contains the current directory if one of the following
3519 # is true:
3520 # - one of the terminals (":" and ";") is the first or last sign
3521 # - two terminals occur directly after each other
3522 # - the path contains an element with a dot in it
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3524 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3525 case ${GCC_EXEC_PREFIX} in
3526 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3527 gcc_exec_prefix_setting="contains current directory"
3528 ;;
3529 *)
3530 gcc_exec_prefix_setting="ok"
3531 ;;
3532 esac
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3534 $as_echo "$gcc_exec_prefix_setting" >&6; }
3535 if test "$gcc_exec_prefix_setting" != "ok"; then
3536 as_fn_error $? "
3537 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3538 *** building gcc. Please change the environment variable
3539 *** and run configure again." "$LINENO" 5
3540 fi
3541
3542 # -----------
3543 # Directories
3544 # -----------
3545
3546 # Specify the local prefix
3547 local_prefix=
3548
3549 # Check whether --with-local-prefix was given.
3550 if test "${with_local_prefix+set}" = set; then :
3551 withval=$with_local_prefix; case "${withval}" in
3552 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3553 no) ;;
3554 *) local_prefix=$with_local_prefix ;;
3555 esac
3556 fi
3557
3558
3559 # Default local prefix if it is empty
3560 if test x$local_prefix = x; then
3561 local_prefix=/usr/local
3562 fi
3563
3564
3565 # Check whether --with-native-system-header-dir was given.
3566 if test "${with_native_system_header_dir+set}" = set; then :
3567 withval=$with_native_system_header_dir;
3568 case ${with_native_system_header_dir} in
3569 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3570 /* | [A-Za-z]:[\\/]*) ;;
3571 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3572 esac
3573 configured_native_system_header_dir="${withval}"
3574
3575 else
3576 configured_native_system_header_dir=
3577 fi
3578
3579
3580
3581 # Check whether --with-build-sysroot was given.
3582 if test "${with_build_sysroot+set}" = set; then :
3583 withval=$with_build_sysroot; if test x"$withval" != x ; then
3584 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3585 fi
3586 else
3587 SYSROOT_CFLAGS_FOR_TARGET=
3588 fi
3589
3590
3591
3592 if test "x$prefix" = xNONE; then
3593 test_prefix=/usr/local
3594 else
3595 test_prefix=$prefix
3596 fi
3597 if test "x$exec_prefix" = xNONE; then
3598 test_exec_prefix=$test_prefix
3599 else
3600 test_exec_prefix=$exec_prefix
3601 fi
3602
3603
3604 # Check whether --with-sysroot was given.
3605 if test "${with_sysroot+set}" = set; then :
3606 withval=$with_sysroot;
3607 case ${with_sysroot} in
3608 /) ;;
3609 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3610 esac
3611 case ${with_sysroot} in
3612 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3613 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3614 esac
3615
3616 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3617 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3618
3619 case ${TARGET_SYSTEM_ROOT} in
3620 "${test_prefix}"|"${test_prefix}/"*|\
3621 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3622 '${prefix}'|'${prefix}/'*|\
3623 '${exec_prefix}'|'${exec_prefix}/'*)
3624 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3625 TARGET_SYSTEM_ROOT_DEFINE="$t"
3626 ;;
3627 esac
3628
3629 else
3630
3631 TARGET_SYSTEM_ROOT=
3632 TARGET_SYSTEM_ROOT_DEFINE=
3633 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3634
3635 fi
3636
3637
3638
3639
3640
3641 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3642 # passed in by the toplevel make and thus we'd get different behavior
3643 # depending on where we built the sources.
3644 gcc_gxx_include_dir=
3645 # Specify the g++ header file directory
3646
3647 # Check whether --with-gxx-include-dir was given.
3648 if test "${with_gxx_include_dir+set}" = set; then :
3649 withval=$with_gxx_include_dir; case "${withval}" in
3650 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3651 no) ;;
3652 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3653 esac
3654 fi
3655
3656
3657 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3658 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3659 # relative to the sysroot.
3660 gcc_gxx_include_dir_add_sysroot=0
3661
3662 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3663 if test x${gcc_gxx_include_dir} = x; then
3664 if test x${enable_version_specific_runtime_libs} = xyes; then
3665 gcc_gxx_include_dir='${libsubdir}/include/c++'
3666 else
3667 libstdcxx_incdir='include/c++/$(version)'
3668 if test x$host != x$target; then
3669 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3670 fi
3671 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3672 fi
3673 elif test "${with_sysroot+set}" = set; then
3674 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3675 if test "${gcc_gxx_without_sysroot}"; then
3676 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3677 gcc_gxx_include_dir_add_sysroot=1
3678 fi
3679 fi
3680
3681
3682 # Check whether --with-cpp_install_dir was given.
3683 if test "${with_cpp_install_dir+set}" = set; then :
3684 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3685 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3686 elif test x$withval != xno; then
3687 cpp_install_dir=$withval
3688 fi
3689 fi
3690
3691
3692 # We would like to our source tree to be readonly. However when releases or
3693 # pre-releases are generated, the flex/bison generated files as well as the
3694 # various formats of manuals need to be included along with the rest of the
3695 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3696 # just that.
3697
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3699 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3700 # Check whether --enable-generated-files-in-srcdir was given.
3701 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3702 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3703 else
3704 generated_files_in_srcdir=no
3705 fi
3706
3707
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3709 $as_echo "$generated_files_in_srcdir" >&6; }
3710
3711 if test "$generated_files_in_srcdir" = "yes"; then
3712 GENINSRC=''
3713 else
3714 GENINSRC='#'
3715 fi
3716
3717
3718 # -------------------
3719 # Find default linker
3720 # -------------------
3721
3722 # With GNU ld
3723
3724 # Check whether --with-gnu-ld was given.
3725 if test "${with_gnu_ld+set}" = set; then :
3726 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3727 else
3728 gnu_ld_flag=no
3729 fi
3730
3731
3732 case $target in
3733 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3734 *) ld64_flag=no;;
3735 esac
3736
3737 # With pre-defined ld
3738
3739 # Check whether --with-ld was given.
3740 if test "${with_ld+set}" = set; then :
3741 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3742 fi
3743
3744 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3745 if test ! -x "$DEFAULT_LINKER"; then
3746 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3747 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3748 gnu_ld_flag=yes
3749 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3750 ld64_flag=yes
3751 fi
3752
3753 cat >>confdefs.h <<_ACEOF
3754 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3755 _ACEOF
3756
3757 fi
3758
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3760 $as_echo_n "checking whether a default linker was specified... " >&6; }
3761 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3762 if test x"$gnu_ld_flag" = x"no"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3764 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3767 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3768 fi
3769 else
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3772 fi
3773
3774 # With demangler in GNU ld
3775
3776 # Check whether --with-demangler-in-ld was given.
3777 if test "${with_demangler_in_ld+set}" = set; then :
3778 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3779 else
3780 demangler_in_ld=yes
3781 fi
3782
3783
3784 # ----------------------
3785 # Find default assembler
3786 # ----------------------
3787
3788 # With GNU as
3789
3790 # Check whether --with-gnu-as was given.
3791 if test "${with_gnu_as+set}" = set; then :
3792 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3793 else
3794 gas_flag=no
3795 fi
3796
3797
3798
3799 # Check whether --with-as was given.
3800 if test "${with_as+set}" = set; then :
3801 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3802 fi
3803
3804 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3805 if test ! -x "$DEFAULT_ASSEMBLER"; then
3806 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3807 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3808 gas_flag=yes
3809 fi
3810
3811 cat >>confdefs.h <<_ACEOF
3812 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3813 _ACEOF
3814
3815 fi
3816
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3818 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3819 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3820 if test x"$gas_flag" = x"no"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3822 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3825 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3826 fi
3827 else
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3830 fi
3831
3832 # ---------------
3833 # Find C compiler
3834 # ---------------
3835
3836 # If a non-executable a.out is present (e.g. created by GNU as above even if
3837 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3838 # file, even when creating an executable, so an execution test fails.
3839 # Remove possible default executable files to avoid this.
3840 #
3841 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3842 # Autoconf includes it.
3843 rm -f a.out a.exe b.out
3844
3845 # Find the native compiler
3846 ac_ext=c
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC="$CC" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873 done
3874 done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 CC=$ac_cv_prog_CC
3880 if test -n "$CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 $as_echo "$CC" >&6; }
3883 else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888
3889 fi
3890 if test -z "$ac_cv_prog_CC"; then
3891 ac_ct_CC=$CC
3892 # Extract the first word of "gcc", so it can be a program name with args.
3893 set dummy gcc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$ac_ct_CC"; then
3900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_CC="gcc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913 done
3914 done
3915 IFS=$as_save_IFS
3916
3917 fi
3918 fi
3919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920 if test -n "$ac_ct_CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3922 $as_echo "$ac_ct_CC" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926 fi
3927
3928 if test "x$ac_ct_CC" = x; then
3929 CC=""
3930 else
3931 case $cross_compiling:$ac_tool_warned in
3932 yes:)
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3935 ac_tool_warned=yes ;;
3936 esac
3937 CC=$ac_ct_CC
3938 fi
3939 else
3940 CC="$ac_cv_prog_CC"
3941 fi
3942
3943 if test -z "$CC"; then
3944 if test -n "$ac_tool_prefix"; then
3945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}cc; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CC+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if test -n "$CC"; then
3953 ac_cv_prog_CC="$CC" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_CC="${ac_tool_prefix}cc"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3965 fi
3966 done
3967 done
3968 IFS=$as_save_IFS
3969
3970 fi
3971 fi
3972 CC=$ac_cv_prog_CC
3973 if test -n "$CC"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3975 $as_echo "$CC" >&6; }
3976 else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 fi
3980
3981
3982 fi
3983 fi
3984 if test -z "$CC"; then
3985 # Extract the first word of "cc", so it can be a program name with args.
3986 set dummy cc; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_CC+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -n "$CC"; then
3993 ac_cv_prog_CC="$CC" # Let the user override the test.
3994 else
3995 ac_prog_rejected=no
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4004 ac_prog_rejected=yes
4005 continue
4006 fi
4007 ac_cv_prog_CC="cc"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4010 fi
4011 done
4012 done
4013 IFS=$as_save_IFS
4014
4015 if test $ac_prog_rejected = yes; then
4016 # We found a bogon in the path, so make sure we never use it.
4017 set dummy $ac_cv_prog_CC
4018 shift
4019 if test $# != 0; then
4020 # We chose a different compiler from the bogus one.
4021 # However, it has the same basename, so the bogon will be chosen
4022 # first if we set CC to just the basename; use the full file name.
4023 shift
4024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4025 fi
4026 fi
4027 fi
4028 fi
4029 CC=$ac_cv_prog_CC
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4033 else
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4036 fi
4037
4038
4039 fi
4040 if test -z "$CC"; then
4041 if test -n "$ac_tool_prefix"; then
4042 for ac_prog in cl.exe
4043 do
4044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_CC+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065 done
4066 done
4067 IFS=$as_save_IFS
4068
4069 fi
4070 fi
4071 CC=$ac_cv_prog_CC
4072 if test -n "$CC"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4074 $as_echo "$CC" >&6; }
4075 else
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4078 fi
4079
4080
4081 test -n "$CC" && break
4082 done
4083 fi
4084 if test -z "$CC"; then
4085 ac_ct_CC=$CC
4086 for ac_prog in cl.exe
4087 do
4088 # Extract the first word of "$ac_prog", so it can be a program name with args.
4089 set dummy $ac_prog; ac_word=$2
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 if test -n "$ac_ct_CC"; then
4096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_prog_ac_ct_CC="$ac_prog"
4106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 break 2
4108 fi
4109 done
4110 done
4111 IFS=$as_save_IFS
4112
4113 fi
4114 fi
4115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4116 if test -n "$ac_ct_CC"; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4118 $as_echo "$ac_ct_CC" >&6; }
4119 else
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4122 fi
4123
4124
4125 test -n "$ac_ct_CC" && break
4126 done
4127
4128 if test "x$ac_ct_CC" = x; then
4129 CC=""
4130 else
4131 case $cross_compiling:$ac_tool_warned in
4132 yes:)
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4135 ac_tool_warned=yes ;;
4136 esac
4137 CC=$ac_ct_CC
4138 fi
4139 fi
4140
4141 fi
4142
4143
4144 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4146 as_fn_error $? "no acceptable C compiler found in \$PATH
4147 See \`config.log' for more details" "$LINENO" 5; }
4148
4149 # Provide some information about the compiler.
4150 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4151 set X $ac_compile
4152 ac_compiler=$2
4153 for ac_option in --version -v -V -qversion; do
4154 { { ac_try="$ac_compiler $ac_option >&5"
4155 case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158 esac
4159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160 $as_echo "$ac_try_echo"; } >&5
4161 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4162 ac_status=$?
4163 if test -s conftest.err; then
4164 sed '10a\
4165 ... rest of stderr output deleted ...
4166 10q' conftest.err >conftest.er1
4167 cat conftest.er1 >&5
4168 fi
4169 rm -f conftest.er1 conftest.err
4170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171 test $ac_status = 0; }
4172 done
4173
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176
4177 int
4178 main ()
4179 {
4180
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 ac_clean_files_save=$ac_clean_files
4186 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4187 # Try to create an executable without -o first, disregard a.out.
4188 # It will help us diagnose broken compilers, and finding out an intuition
4189 # of exeext.
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4191 $as_echo_n "checking whether the C compiler works... " >&6; }
4192 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4193
4194 # The possible output files:
4195 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4196
4197 ac_rmfiles=
4198 for ac_file in $ac_files
4199 do
4200 case $ac_file in
4201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4202 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4203 esac
4204 done
4205 rm -f $ac_rmfiles
4206
4207 if { { ac_try="$ac_link_default"
4208 case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213 $as_echo "$ac_try_echo"; } >&5
4214 (eval "$ac_link_default") 2>&5
4215 ac_status=$?
4216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217 test $ac_status = 0; }; then :
4218 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4219 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4220 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4221 # so that the user can short-circuit this test for compilers unknown to
4222 # Autoconf.
4223 for ac_file in $ac_files ''
4224 do
4225 test -f "$ac_file" || continue
4226 case $ac_file in
4227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4228 ;;
4229 [ab].out )
4230 # We found the default executable, but exeext='' is most
4231 # certainly right.
4232 break;;
4233 *.* )
4234 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4235 then :; else
4236 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4237 fi
4238 # We set ac_cv_exeext here because the later test for it is not
4239 # safe: cross compilers may not add the suffix if given an `-o'
4240 # argument, so we may need to know it at that point already.
4241 # Even if this section looks crufty: it has the advantage of
4242 # actually working.
4243 break;;
4244 * )
4245 break;;
4246 esac
4247 done
4248 test "$ac_cv_exeext" = no && ac_cv_exeext=
4249
4250 else
4251 ac_file=''
4252 fi
4253 if test -z "$ac_file"; then :
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 $as_echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4261 as_fn_error 77 "C compiler cannot create executables
4262 See \`config.log' for more details" "$LINENO" 5; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4265 $as_echo "yes" >&6; }
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4268 $as_echo_n "checking for C compiler default output file name... " >&6; }
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4270 $as_echo "$ac_file" >&6; }
4271 ac_exeext=$ac_cv_exeext
4272
4273 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4274 ac_clean_files=$ac_clean_files_save
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4276 $as_echo_n "checking for suffix of executables... " >&6; }
4277 if { { ac_try="$ac_link"
4278 case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284 (eval "$ac_link") 2>&5
4285 ac_status=$?
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; }; then :
4288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4289 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4290 # work properly (i.e., refer to `conftest.exe'), while it won't with
4291 # `rm'.
4292 for ac_file in conftest.exe conftest conftest.*; do
4293 test -f "$ac_file" || continue
4294 case $ac_file in
4295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4297 break;;
4298 * ) break;;
4299 esac
4300 done
4301 else
4302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4305 See \`config.log' for more details" "$LINENO" 5; }
4306 fi
4307 rm -f conftest conftest$ac_cv_exeext
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4309 $as_echo "$ac_cv_exeext" >&6; }
4310
4311 rm -f conftest.$ac_ext
4312 EXEEXT=$ac_cv_exeext
4313 ac_exeext=$EXEEXT
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #include <stdio.h>
4317 int
4318 main ()
4319 {
4320 FILE *f = fopen ("conftest.out", "w");
4321 return ferror (f) || fclose (f) != 0;
4322
4323 ;
4324 return 0;
4325 }
4326 _ACEOF
4327 ac_clean_files="$ac_clean_files conftest.out"
4328 # Check that the compiler produces executables we can run. If not, either
4329 # the compiler is broken, or we cross compile.
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4331 $as_echo_n "checking whether we are cross compiling... " >&6; }
4332 if test "$cross_compiling" != yes; then
4333 { { ac_try="$ac_link"
4334 case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 $as_echo "$ac_try_echo"; } >&5
4340 (eval "$ac_link") 2>&5
4341 ac_status=$?
4342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343 test $ac_status = 0; }
4344 if { ac_try='./conftest$ac_cv_exeext'
4345 { { case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348 esac
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_try") 2>&5
4352 ac_status=$?
4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }; }; then
4355 cross_compiling=no
4356 else
4357 if test "$cross_compiling" = maybe; then
4358 cross_compiling=yes
4359 else
4360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4362 as_fn_error $? "cannot run C compiled programs.
4363 If you meant to cross compile, use \`--host'.
4364 See \`config.log' for more details" "$LINENO" 5; }
4365 fi
4366 fi
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4369 $as_echo "$cross_compiling" >&6; }
4370
4371 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4372 ac_clean_files=$ac_clean_files_save
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4374 $as_echo_n "checking for suffix of object files... " >&6; }
4375 if ${ac_cv_objext+:} false; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380
4381 int
4382 main ()
4383 {
4384
4385 ;
4386 return 0;
4387 }
4388 _ACEOF
4389 rm -f conftest.o conftest.obj
4390 if { { ac_try="$ac_compile"
4391 case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_compile") 2>&5
4398 ac_status=$?
4399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }; then :
4401 for ac_file in conftest.o conftest.obj conftest.*; do
4402 test -f "$ac_file" || continue;
4403 case $ac_file in
4404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4405 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4406 break;;
4407 esac
4408 done
4409 else
4410 $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error $? "cannot compute suffix of object files: cannot compile
4416 See \`config.log' for more details" "$LINENO" 5; }
4417 fi
4418 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4421 $as_echo "$ac_cv_objext" >&6; }
4422 OBJEXT=$ac_cv_objext
4423 ac_objext=$OBJEXT
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4425 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4426 if ${ac_cv_c_compiler_gnu+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431
4432 int
4433 main ()
4434 {
4435 #ifndef __GNUC__
4436 choke me
4437 #endif
4438
4439 ;
4440 return 0;
4441 }
4442 _ACEOF
4443 if ac_fn_c_try_compile "$LINENO"; then :
4444 ac_compiler_gnu=yes
4445 else
4446 ac_compiler_gnu=no
4447 fi
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4450
4451 fi
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4453 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4454 if test $ac_compiler_gnu = yes; then
4455 GCC=yes
4456 else
4457 GCC=
4458 fi
4459 ac_test_CFLAGS=${CFLAGS+set}
4460 ac_save_CFLAGS=$CFLAGS
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4462 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4463 if ${ac_cv_prog_cc_g+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 ac_save_c_werror_flag=$ac_c_werror_flag
4467 ac_c_werror_flag=yes
4468 ac_cv_prog_cc_g=no
4469 CFLAGS="-g"
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472
4473 int
4474 main ()
4475 {
4476
4477 ;
4478 return 0;
4479 }
4480 _ACEOF
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_prog_cc_g=yes
4483 else
4484 CFLAGS=""
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487
4488 int
4489 main ()
4490 {
4491
4492 ;
4493 return 0;
4494 }
4495 _ACEOF
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497
4498 else
4499 ac_c_werror_flag=$ac_save_c_werror_flag
4500 CFLAGS="-g"
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503
4504 int
4505 main ()
4506 {
4507
4508 ;
4509 return 0;
4510 }
4511 _ACEOF
4512 if ac_fn_c_try_compile "$LINENO"; then :
4513 ac_cv_prog_cc_g=yes
4514 fi
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 fi
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 fi
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 ac_c_werror_flag=$ac_save_c_werror_flag
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4523 $as_echo "$ac_cv_prog_cc_g" >&6; }
4524 if test "$ac_test_CFLAGS" = set; then
4525 CFLAGS=$ac_save_CFLAGS
4526 elif test $ac_cv_prog_cc_g = yes; then
4527 if test "$GCC" = yes; then
4528 CFLAGS="-g -O2"
4529 else
4530 CFLAGS="-g"
4531 fi
4532 else
4533 if test "$GCC" = yes; then
4534 CFLAGS="-O2"
4535 else
4536 CFLAGS=
4537 fi
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4540 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4541 if ${ac_cv_prog_cc_c89+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 ac_cv_prog_cc_c89=no
4545 ac_save_CC=$CC
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #include <stdarg.h>
4549 #include <stdio.h>
4550 struct stat;
4551 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4552 struct buf { int x; };
4553 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4554 static char *e (p, i)
4555 char **p;
4556 int i;
4557 {
4558 return p[i];
4559 }
4560 static char *f (char * (*g) (char **, int), char **p, ...)
4561 {
4562 char *s;
4563 va_list v;
4564 va_start (v,p);
4565 s = g (p, va_arg (v,int));
4566 va_end (v);
4567 return s;
4568 }
4569
4570 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4571 function prototypes and stuff, but not '\xHH' hex character constants.
4572 These don't provoke an error unfortunately, instead are silently treated
4573 as 'x'. The following induces an error, until -std is added to get
4574 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4575 array size at least. It's necessary to write '\x00'==0 to get something
4576 that's true only with -std. */
4577 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4578
4579 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4580 inside strings and character constants. */
4581 #define FOO(x) 'x'
4582 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4583
4584 int test (int i, double x);
4585 struct s1 {int (*f) (int a);};
4586 struct s2 {int (*f) (double a);};
4587 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4588 int argc;
4589 char **argv;
4590 int
4591 main ()
4592 {
4593 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4594 ;
4595 return 0;
4596 }
4597 _ACEOF
4598 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4599 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4600 do
4601 CC="$ac_save_CC $ac_arg"
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_prog_cc_c89=$ac_arg
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext
4606 test "x$ac_cv_prog_cc_c89" != "xno" && break
4607 done
4608 rm -f conftest.$ac_ext
4609 CC=$ac_save_CC
4610
4611 fi
4612 # AC_CACHE_VAL
4613 case "x$ac_cv_prog_cc_c89" in
4614 x)
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4616 $as_echo "none needed" >&6; } ;;
4617 xno)
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4619 $as_echo "unsupported" >&6; } ;;
4620 *)
4621 CC="$CC $ac_cv_prog_cc_c89"
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4623 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4624 esac
4625 if test "x$ac_cv_prog_cc_c89" != xno; then :
4626
4627 fi
4628
4629 ac_ext=c
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635 ac_ext=cpp
4636 ac_cpp='$CXXCPP $CPPFLAGS'
4637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4640 if test -z "$CXX"; then
4641 if test -n "$CCC"; then
4642 CXX=$CCC
4643 else
4644 if test -n "$ac_tool_prefix"; then
4645 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4646 do
4647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_CXX+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$CXX"; then
4655 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668 done
4669 done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 CXX=$ac_cv_prog_CXX
4675 if test -n "$CXX"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4677 $as_echo "$CXX" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683
4684 test -n "$CXX" && break
4685 done
4686 fi
4687 if test -z "$CXX"; then
4688 ac_ct_CXX=$CXX
4689 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4690 do
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$ac_ct_CXX"; then
4699 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_ac_ct_CXX="$ac_prog"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712 done
4713 done
4714 IFS=$as_save_IFS
4715
4716 fi
4717 fi
4718 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4719 if test -n "$ac_ct_CXX"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4721 $as_echo "$ac_ct_CXX" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4725 fi
4726
4727
4728 test -n "$ac_ct_CXX" && break
4729 done
4730
4731 if test "x$ac_ct_CXX" = x; then
4732 CXX="g++"
4733 else
4734 case $cross_compiling:$ac_tool_warned in
4735 yes:)
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4739 esac
4740 CXX=$ac_ct_CXX
4741 fi
4742 fi
4743
4744 fi
4745 fi
4746 # Provide some information about the compiler.
4747 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4748 set X $ac_compile
4749 ac_compiler=$2
4750 for ac_option in --version -v -V -qversion; do
4751 { { ac_try="$ac_compiler $ac_option >&5"
4752 case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755 esac
4756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757 $as_echo "$ac_try_echo"; } >&5
4758 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4759 ac_status=$?
4760 if test -s conftest.err; then
4761 sed '10a\
4762 ... rest of stderr output deleted ...
4763 10q' conftest.err >conftest.er1
4764 cat conftest.er1 >&5
4765 fi
4766 rm -f conftest.er1 conftest.err
4767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4768 test $ac_status = 0; }
4769 done
4770
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4772 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4773 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778
4779 int
4780 main ()
4781 {
4782 #ifndef __GNUC__
4783 choke me
4784 #endif
4785
4786 ;
4787 return 0;
4788 }
4789 _ACEOF
4790 if ac_fn_cxx_try_compile "$LINENO"; then :
4791 ac_compiler_gnu=yes
4792 else
4793 ac_compiler_gnu=no
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4797
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4800 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4801 if test $ac_compiler_gnu = yes; then
4802 GXX=yes
4803 else
4804 GXX=
4805 fi
4806 ac_test_CXXFLAGS=${CXXFLAGS+set}
4807 ac_save_CXXFLAGS=$CXXFLAGS
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4809 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4810 if ${ac_cv_prog_cxx_g+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4814 ac_cxx_werror_flag=yes
4815 ac_cv_prog_cxx_g=no
4816 CXXFLAGS="-g"
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4819
4820 int
4821 main ()
4822 {
4823
4824 ;
4825 return 0;
4826 }
4827 _ACEOF
4828 if ac_fn_cxx_try_compile "$LINENO"; then :
4829 ac_cv_prog_cxx_g=yes
4830 else
4831 CXXFLAGS=""
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834
4835 int
4836 main ()
4837 {
4838
4839 ;
4840 return 0;
4841 }
4842 _ACEOF
4843 if ac_fn_cxx_try_compile "$LINENO"; then :
4844
4845 else
4846 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4847 CXXFLAGS="-g"
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850
4851 int
4852 main ()
4853 {
4854
4855 ;
4856 return 0;
4857 }
4858 _ACEOF
4859 if ac_fn_cxx_try_compile "$LINENO"; then :
4860 ac_cv_prog_cxx_g=yes
4861 fi
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 fi
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4868 fi
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4870 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4871 if test "$ac_test_CXXFLAGS" = set; then
4872 CXXFLAGS=$ac_save_CXXFLAGS
4873 elif test $ac_cv_prog_cxx_g = yes; then
4874 if test "$GXX" = yes; then
4875 CXXFLAGS="-g -O2"
4876 else
4877 CXXFLAGS="-g"
4878 fi
4879 else
4880 if test "$GXX" = yes; then
4881 CXXFLAGS="-O2"
4882 else
4883 CXXFLAGS=
4884 fi
4885 fi
4886 ac_ext=c
4887 ac_cpp='$CPP $CPPFLAGS'
4888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891
4892
4893
4894
4895 if test -n "$ac_tool_prefix"; then
4896 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4897 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_GNATBIND+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$GNATBIND"; then
4904 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 fi
4922 fi
4923 GNATBIND=$ac_cv_prog_GNATBIND
4924 if test -n "$GNATBIND"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4926 $as_echo "$GNATBIND" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931
4932
4933 fi
4934 if test -z "$ac_cv_prog_GNATBIND"; then
4935 ac_ct_GNATBIND=$GNATBIND
4936 # Extract the first word of "gnatbind", so it can be a program name with args.
4937 set dummy gnatbind; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$ac_ct_GNATBIND"; then
4944 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4956 fi
4957 done
4958 done
4959 IFS=$as_save_IFS
4960
4961 fi
4962 fi
4963 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4964 if test -n "$ac_ct_GNATBIND"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4966 $as_echo "$ac_ct_GNATBIND" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4970 fi
4971
4972 if test "x$ac_ct_GNATBIND" = x; then
4973 GNATBIND="no"
4974 else
4975 case $cross_compiling:$ac_tool_warned in
4976 yes:)
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned=yes ;;
4980 esac
4981 GNATBIND=$ac_ct_GNATBIND
4982 fi
4983 else
4984 GNATBIND="$ac_cv_prog_GNATBIND"
4985 fi
4986
4987 if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4989 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_prog_GNATMAKE+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$GNATMAKE"; then
4996 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 fi
5014 fi
5015 GNATMAKE=$ac_cv_prog_GNATMAKE
5016 if test -n "$GNATMAKE"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5018 $as_echo "$GNATMAKE" >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 fi
5023
5024
5025 fi
5026 if test -z "$ac_cv_prog_GNATMAKE"; then
5027 ac_ct_GNATMAKE=$GNATMAKE
5028 # Extract the first word of "gnatmake", so it can be a program name with args.
5029 set dummy gnatmake; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -n "$ac_ct_GNATMAKE"; then
5036 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5048 fi
5049 done
5050 done
5051 IFS=$as_save_IFS
5052
5053 fi
5054 fi
5055 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5056 if test -n "$ac_ct_GNATMAKE"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5058 $as_echo "$ac_ct_GNATMAKE" >&6; }
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5062 fi
5063
5064 if test "x$ac_ct_GNATMAKE" = x; then
5065 GNATMAKE="no"
5066 else
5067 case $cross_compiling:$ac_tool_warned in
5068 yes:)
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071 ac_tool_warned=yes ;;
5072 esac
5073 GNATMAKE=$ac_ct_GNATMAKE
5074 fi
5075 else
5076 GNATMAKE="$ac_cv_prog_GNATMAKE"
5077 fi
5078
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5080 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5081 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 cat >conftest.adb <<EOF
5085 procedure conftest is begin null; end conftest;
5086 EOF
5087 acx_cv_cc_gcc_supports_ada=no
5088 # There is a bug in old released versions of GCC which causes the
5089 # driver to exit successfully when the appropriate language module
5090 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5091 # Therefore we must check for the error message as well as an
5092 # unsuccessful exit.
5093 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5094 # given a .adb file, but produce no object file. So we must check
5095 # if an object file was really produced to guard against this.
5096 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5097 if test x"$errors" = x && test -f conftest.$ac_objext; then
5098 acx_cv_cc_gcc_supports_ada=yes
5099 fi
5100 rm -f conftest.*
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5103 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5104
5105 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5106 have_gnat=yes
5107 else
5108 have_gnat=no
5109 fi
5110
5111
5112 # Do configure tests with the C++ compiler, since that's what we build with.
5113 ac_ext=cpp
5114 ac_cpp='$CXXCPP $CPPFLAGS'
5115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5118
5119
5120 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5121 # optimizations to be activated explicitly by the toplevel.
5122 case "$CC" in
5123 */prev-gcc/xgcc*) ;;
5124 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5125 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5126 esac
5127
5128
5129
5130 # Determine PICFLAG for target gnatlib.
5131
5132
5133
5134
5135 case "${target}" in
5136 # PIC is the default on some targets or must not be used.
5137 *-*-darwin*)
5138 # For darwin, common symbols are not allowed in MH_DYLIB files
5139 case "${CFLAGS}" in
5140 # If we are using a compiler supporting mdynamic-no-pic
5141 # and the option has been tested as safe to add, then cancel
5142 # it here, since the code generated is incompatible with shared
5143 # libs.
5144 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5145 *) PICFLAG_FOR_TARGET=-fno-common ;;
5146 esac
5147 ;;
5148 alpha*-dec-osf5*)
5149 # PIC is the default.
5150 ;;
5151 hppa*64*-*-hpux*)
5152 # PIC is the default for 64-bit PA HP-UX.
5153 ;;
5154 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5155 ;;
5156 i[34567]86-*-mingw* | x86_64-*-mingw*)
5157 ;;
5158 i[34567]86-*-interix[3-9]*)
5159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5160 # Instead, we relocate shared libraries at runtime.
5161 ;;
5162 i[34567]86-*-nto-qnx*)
5163 # QNX uses GNU C++, but need to define -shared option too, otherwise
5164 # it will coredump.
5165 PICFLAG_FOR_TARGET='-fPIC -shared'
5166 ;;
5167 i[34567]86-pc-msdosdjgpp*)
5168 # DJGPP does not support shared libraries at all.
5169 ;;
5170 ia64*-*-hpux*)
5171 # On IA64 HP-UX, PIC is the default but the pic flag
5172 # sets the default TLS model and affects inlining.
5173 PICFLAG_FOR_TARGET=-fPIC
5174 ;;
5175 mips-sgi-irix6*)
5176 # PIC is the default.
5177 ;;
5178 rs6000-ibm-aix* | powerpc-ibm-aix*)
5179 # All AIX code is PIC.
5180 ;;
5181
5182 # Some targets support both -fPIC and -fpic, but prefer the latter.
5183 # FIXME: Why?
5184 i[34567]86-*-* | x86_64-*-*)
5185 PICFLAG_FOR_TARGET=-fpic
5186 ;;
5187 # FIXME: Override -fPIC default in libgcc only?
5188 sh-*-linux* | sh[2346lbe]*-*-linux*)
5189 PICFLAG_FOR_TARGET=-fpic
5190 ;;
5191 # FIXME: Simplify to sh*-*-netbsd*?
5192 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5193 sh64-*-netbsd* | sh64l*-*-netbsd*)
5194 PICFLAG_FOR_TARGET=-fpic
5195 ;;
5196 # Default to -fPIC unless specified otherwise.
5197 *)
5198 PICFLAG_FOR_TARGET=-fPIC
5199 ;;
5200 esac
5201
5202 # If the user explicitly uses -fpic/-fPIC, keep that.
5203 case "${CFLAGS_FOR_TARGET}" in
5204 *-fpic*)
5205 PICFLAG_FOR_TARGET=-fpic
5206 ;;
5207 *-fPIC*)
5208 PICFLAG_FOR_TARGET=-fPIC
5209 ;;
5210 esac
5211
5212
5213
5214 # -------------------------
5215 # Check C compiler features
5216 # -------------------------
5217
5218
5219 ac_ext=cpp
5220 ac_cpp='$CXXCPP $CPPFLAGS'
5221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5225 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5226 if test -z "$CXXCPP"; then
5227 if ${ac_cv_prog_CXXCPP+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 # Double quotes because CXXCPP needs to be expanded
5231 for CXXCPP in "$CXX -E" "/lib/cpp"
5232 do
5233 ac_preproc_ok=false
5234 for ac_cxx_preproc_warn_flag in '' yes
5235 do
5236 # Use a header file that comes with gcc, so configuring glibc
5237 # with a fresh cross-compiler works.
5238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5239 # <limits.h> exists even on freestanding compilers.
5240 # On the NeXT, cc -E runs the code through the compiler's parser,
5241 # not just through cpp. "Syntax error" is here to catch this case.
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 #ifdef __STDC__
5245 # include <limits.h>
5246 #else
5247 # include <assert.h>
5248 #endif
5249 Syntax error
5250 _ACEOF
5251 if ac_fn_cxx_try_cpp "$LINENO"; then :
5252
5253 else
5254 # Broken: fails on valid input.
5255 continue
5256 fi
5257 rm -f conftest.err conftest.i conftest.$ac_ext
5258
5259 # OK, works on sane cases. Now check whether nonexistent headers
5260 # can be detected and how.
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 #include <ac_nonexistent.h>
5264 _ACEOF
5265 if ac_fn_cxx_try_cpp "$LINENO"; then :
5266 # Broken: success on invalid input.
5267 continue
5268 else
5269 # Passes both tests.
5270 ac_preproc_ok=:
5271 break
5272 fi
5273 rm -f conftest.err conftest.i conftest.$ac_ext
5274
5275 done
5276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5277 rm -f conftest.i conftest.err conftest.$ac_ext
5278 if $ac_preproc_ok; then :
5279 break
5280 fi
5281
5282 done
5283 ac_cv_prog_CXXCPP=$CXXCPP
5284
5285 fi
5286 CXXCPP=$ac_cv_prog_CXXCPP
5287 else
5288 ac_cv_prog_CXXCPP=$CXXCPP
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5291 $as_echo "$CXXCPP" >&6; }
5292 ac_preproc_ok=false
5293 for ac_cxx_preproc_warn_flag in '' yes
5294 do
5295 # Use a header file that comes with gcc, so configuring glibc
5296 # with a fresh cross-compiler works.
5297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5298 # <limits.h> exists even on freestanding compilers.
5299 # On the NeXT, cc -E runs the code through the compiler's parser,
5300 # not just through cpp. "Syntax error" is here to catch this case.
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303 #ifdef __STDC__
5304 # include <limits.h>
5305 #else
5306 # include <assert.h>
5307 #endif
5308 Syntax error
5309 _ACEOF
5310 if ac_fn_cxx_try_cpp "$LINENO"; then :
5311
5312 else
5313 # Broken: fails on valid input.
5314 continue
5315 fi
5316 rm -f conftest.err conftest.i conftest.$ac_ext
5317
5318 # OK, works on sane cases. Now check whether nonexistent headers
5319 # can be detected and how.
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 #include <ac_nonexistent.h>
5323 _ACEOF
5324 if ac_fn_cxx_try_cpp "$LINENO"; then :
5325 # Broken: success on invalid input.
5326 continue
5327 else
5328 # Passes both tests.
5329 ac_preproc_ok=:
5330 break
5331 fi
5332 rm -f conftest.err conftest.i conftest.$ac_ext
5333
5334 done
5335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5336 rm -f conftest.i conftest.err conftest.$ac_ext
5337 if $ac_preproc_ok; then :
5338
5339 else
5340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5342 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5343 See \`config.log' for more details" "$LINENO" 5; }
5344 fi
5345
5346 ac_ext=cpp
5347 ac_cpp='$CXXCPP $CPPFLAGS'
5348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5351
5352
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5354 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5355 if ${ac_cv_path_GREP+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 if test -z "$GREP"; then
5359 ac_path_GREP_found=false
5360 # Loop through the user's path and test for each of PROGNAME-LIST
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5363 do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_prog in grep ggrep; do
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5369 as_fn_executable_p "$ac_path_GREP" || continue
5370 # Check for GNU ac_path_GREP and select it if it is found.
5371 # Check for GNU $ac_path_GREP
5372 case `"$ac_path_GREP" --version 2>&1` in
5373 *GNU*)
5374 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5375 *)
5376 ac_count=0
5377 $as_echo_n 0123456789 >"conftest.in"
5378 while :
5379 do
5380 cat "conftest.in" "conftest.in" >"conftest.tmp"
5381 mv "conftest.tmp" "conftest.in"
5382 cp "conftest.in" "conftest.nl"
5383 $as_echo 'GREP' >> "conftest.nl"
5384 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5386 as_fn_arith $ac_count + 1 && ac_count=$as_val
5387 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5388 # Best one so far, save it but keep looking for a better one
5389 ac_cv_path_GREP="$ac_path_GREP"
5390 ac_path_GREP_max=$ac_count
5391 fi
5392 # 10*(2^10) chars as input seems more than enough
5393 test $ac_count -gt 10 && break
5394 done
5395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5396 esac
5397
5398 $ac_path_GREP_found && break 3
5399 done
5400 done
5401 done
5402 IFS=$as_save_IFS
5403 if test -z "$ac_cv_path_GREP"; then
5404 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5405 fi
5406 else
5407 ac_cv_path_GREP=$GREP
5408 fi
5409
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5412 $as_echo "$ac_cv_path_GREP" >&6; }
5413 GREP="$ac_cv_path_GREP"
5414
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5417 $as_echo_n "checking for egrep... " >&6; }
5418 if ${ac_cv_path_EGREP+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5422 then ac_cv_path_EGREP="$GREP -E"
5423 else
5424 if test -z "$EGREP"; then
5425 ac_path_EGREP_found=false
5426 # Loop through the user's path and test for each of PROGNAME-LIST
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5429 do
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_prog in egrep; do
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5435 as_fn_executable_p "$ac_path_EGREP" || continue
5436 # Check for GNU ac_path_EGREP and select it if it is found.
5437 # Check for GNU $ac_path_EGREP
5438 case `"$ac_path_EGREP" --version 2>&1` in
5439 *GNU*)
5440 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5441 *)
5442 ac_count=0
5443 $as_echo_n 0123456789 >"conftest.in"
5444 while :
5445 do
5446 cat "conftest.in" "conftest.in" >"conftest.tmp"
5447 mv "conftest.tmp" "conftest.in"
5448 cp "conftest.in" "conftest.nl"
5449 $as_echo 'EGREP' >> "conftest.nl"
5450 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5452 as_fn_arith $ac_count + 1 && ac_count=$as_val
5453 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5454 # Best one so far, save it but keep looking for a better one
5455 ac_cv_path_EGREP="$ac_path_EGREP"
5456 ac_path_EGREP_max=$ac_count
5457 fi
5458 # 10*(2^10) chars as input seems more than enough
5459 test $ac_count -gt 10 && break
5460 done
5461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5462 esac
5463
5464 $ac_path_EGREP_found && break 3
5465 done
5466 done
5467 done
5468 IFS=$as_save_IFS
5469 if test -z "$ac_cv_path_EGREP"; then
5470 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5471 fi
5472 else
5473 ac_cv_path_EGREP=$EGREP
5474 fi
5475
5476 fi
5477 fi
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5479 $as_echo "$ac_cv_path_EGREP" >&6; }
5480 EGREP="$ac_cv_path_EGREP"
5481
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5484 $as_echo_n "checking for ANSI C header files... " >&6; }
5485 if ${ac_cv_header_stdc+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 #include <stdlib.h>
5491 #include <stdarg.h>
5492 #include <string.h>
5493 #include <float.h>
5494
5495 int
5496 main ()
5497 {
5498
5499 ;
5500 return 0;
5501 }
5502 _ACEOF
5503 if ac_fn_cxx_try_compile "$LINENO"; then :
5504 ac_cv_header_stdc=yes
5505 else
5506 ac_cv_header_stdc=no
5507 fi
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509
5510 if test $ac_cv_header_stdc = yes; then
5511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 #include <string.h>
5515
5516 _ACEOF
5517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518 $EGREP "memchr" >/dev/null 2>&1; then :
5519
5520 else
5521 ac_cv_header_stdc=no
5522 fi
5523 rm -f conftest*
5524
5525 fi
5526
5527 if test $ac_cv_header_stdc = yes; then
5528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 #include <stdlib.h>
5532
5533 _ACEOF
5534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5535 $EGREP "free" >/dev/null 2>&1; then :
5536
5537 else
5538 ac_cv_header_stdc=no
5539 fi
5540 rm -f conftest*
5541
5542 fi
5543
5544 if test $ac_cv_header_stdc = yes; then
5545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5546 if test "$cross_compiling" = yes; then :
5547 :
5548 else
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <ctype.h>
5552 #include <stdlib.h>
5553 #if ((' ' & 0x0FF) == 0x020)
5554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5556 #else
5557 # define ISLOWER(c) \
5558 (('a' <= (c) && (c) <= 'i') \
5559 || ('j' <= (c) && (c) <= 'r') \
5560 || ('s' <= (c) && (c) <= 'z'))
5561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5562 #endif
5563
5564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5565 int
5566 main ()
5567 {
5568 int i;
5569 for (i = 0; i < 256; i++)
5570 if (XOR (islower (i), ISLOWER (i))
5571 || toupper (i) != TOUPPER (i))
5572 return 2;
5573 return 0;
5574 }
5575 _ACEOF
5576 if ac_fn_cxx_try_run "$LINENO"; then :
5577
5578 else
5579 ac_cv_header_stdc=no
5580 fi
5581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5582 conftest.$ac_objext conftest.beam conftest.$ac_ext
5583 fi
5584
5585 fi
5586 fi
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5588 $as_echo "$ac_cv_header_stdc" >&6; }
5589 if test $ac_cv_header_stdc = yes; then
5590
5591 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5592
5593 fi
5594
5595 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5596 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5597 inttypes.h stdint.h unistd.h
5598 do :
5599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5600 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5601 "
5602 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5603 cat >>confdefs.h <<_ACEOF
5604 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5605 _ACEOF
5606
5607 fi
5608
5609 done
5610
5611
5612
5613 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5614 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5615 MINIX=yes
5616 else
5617 MINIX=
5618 fi
5619
5620
5621 if test "$MINIX" = yes; then
5622
5623 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5624
5625
5626 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5627
5628
5629 $as_echo "#define _MINIX 1" >>confdefs.h
5630
5631 fi
5632
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5635 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5636 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641
5642 # define __EXTENSIONS__ 1
5643 $ac_includes_default
5644 int
5645 main ()
5646 {
5647
5648 ;
5649 return 0;
5650 }
5651 _ACEOF
5652 if ac_fn_cxx_try_compile "$LINENO"; then :
5653 ac_cv_safe_to_define___extensions__=yes
5654 else
5655 ac_cv_safe_to_define___extensions__=no
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 fi
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5660 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5661 test $ac_cv_safe_to_define___extensions__ = yes &&
5662 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5663
5664 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5665
5666 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5667
5668 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5669
5670 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5671
5672
5673 ac_ext=c
5674 ac_cpp='$CPP $CPPFLAGS'
5675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5679 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5680 # On Suns, sometimes $CPP names a directory.
5681 if test -n "$CPP" && test -d "$CPP"; then
5682 CPP=
5683 fi
5684 if test -z "$CPP"; then
5685 if ${ac_cv_prog_CPP+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 # Double quotes because CPP needs to be expanded
5689 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5690 do
5691 ac_preproc_ok=false
5692 for ac_c_preproc_warn_flag in '' yes
5693 do
5694 # Use a header file that comes with gcc, so configuring glibc
5695 # with a fresh cross-compiler works.
5696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5697 # <limits.h> exists even on freestanding compilers.
5698 # On the NeXT, cc -E runs the code through the compiler's parser,
5699 # not just through cpp. "Syntax error" is here to catch this case.
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 #ifdef __STDC__
5703 # include <limits.h>
5704 #else
5705 # include <assert.h>
5706 #endif
5707 Syntax error
5708 _ACEOF
5709 if ac_fn_c_try_cpp "$LINENO"; then :
5710
5711 else
5712 # Broken: fails on valid input.
5713 continue
5714 fi
5715 rm -f conftest.err conftest.i conftest.$ac_ext
5716
5717 # OK, works on sane cases. Now check whether nonexistent headers
5718 # can be detected and how.
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721 #include <ac_nonexistent.h>
5722 _ACEOF
5723 if ac_fn_c_try_cpp "$LINENO"; then :
5724 # Broken: success on invalid input.
5725 continue
5726 else
5727 # Passes both tests.
5728 ac_preproc_ok=:
5729 break
5730 fi
5731 rm -f conftest.err conftest.i conftest.$ac_ext
5732
5733 done
5734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5735 rm -f conftest.i conftest.err conftest.$ac_ext
5736 if $ac_preproc_ok; then :
5737 break
5738 fi
5739
5740 done
5741 ac_cv_prog_CPP=$CPP
5742
5743 fi
5744 CPP=$ac_cv_prog_CPP
5745 else
5746 ac_cv_prog_CPP=$CPP
5747 fi
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5749 $as_echo "$CPP" >&6; }
5750 ac_preproc_ok=false
5751 for ac_c_preproc_warn_flag in '' yes
5752 do
5753 # Use a header file that comes with gcc, so configuring glibc
5754 # with a fresh cross-compiler works.
5755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756 # <limits.h> exists even on freestanding compilers.
5757 # On the NeXT, cc -E runs the code through the compiler's parser,
5758 # not just through cpp. "Syntax error" is here to catch this case.
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #ifdef __STDC__
5762 # include <limits.h>
5763 #else
5764 # include <assert.h>
5765 #endif
5766 Syntax error
5767 _ACEOF
5768 if ac_fn_c_try_cpp "$LINENO"; then :
5769
5770 else
5771 # Broken: fails on valid input.
5772 continue
5773 fi
5774 rm -f conftest.err conftest.i conftest.$ac_ext
5775
5776 # OK, works on sane cases. Now check whether nonexistent headers
5777 # can be detected and how.
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <ac_nonexistent.h>
5781 _ACEOF
5782 if ac_fn_c_try_cpp "$LINENO"; then :
5783 # Broken: success on invalid input.
5784 continue
5785 else
5786 # Passes both tests.
5787 ac_preproc_ok=:
5788 break
5789 fi
5790 rm -f conftest.err conftest.i conftest.$ac_ext
5791
5792 done
5793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5794 rm -f conftest.i conftest.err conftest.$ac_ext
5795 if $ac_preproc_ok; then :
5796
5797 else
5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5801 See \`config.log' for more details" "$LINENO" 5; }
5802 fi
5803
5804 ac_ext=cpp
5805 ac_cpp='$CXXCPP $CPPFLAGS'
5806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5811 $as_echo_n "checking for inline... " >&6; }
5812 if ${ac_cv_c_inline+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 ac_cv_c_inline=no
5816 for ac_kw in inline __inline__ __inline; do
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #ifndef __cplusplus
5820 typedef int foo_t;
5821 static $ac_kw foo_t static_foo () {return 0; }
5822 $ac_kw foo_t foo () {return 0; }
5823 #endif
5824
5825 _ACEOF
5826 if ac_fn_cxx_try_compile "$LINENO"; then :
5827 ac_cv_c_inline=$ac_kw
5828 fi
5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 test "$ac_cv_c_inline" != no && break
5831 done
5832
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5835 $as_echo "$ac_cv_c_inline" >&6; }
5836
5837 case $ac_cv_c_inline in
5838 inline | yes) ;;
5839 *)
5840 case $ac_cv_c_inline in
5841 no) ac_val=;;
5842 *) ac_val=$ac_cv_c_inline;;
5843 esac
5844 cat >>confdefs.h <<_ACEOF
5845 #ifndef __cplusplus
5846 #define inline $ac_val
5847 #endif
5848 _ACEOF
5849 ;;
5850 esac
5851
5852
5853 # Check whether --enable-largefile was given.
5854 if test "${enable_largefile+set}" = set; then :
5855 enableval=$enable_largefile;
5856 fi
5857
5858 if test "$enable_largefile" != no; then
5859
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5861 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5862 if ${ac_cv_sys_largefile_CC+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 ac_cv_sys_largefile_CC=no
5866 if test "$GCC" != yes; then
5867 ac_save_CC=$CC
5868 while :; do
5869 # IRIX 6.2 and later do not support large files by default,
5870 # so use the C compiler's -n32 option if that helps.
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873 #include <sys/types.h>
5874 /* Check that off_t can represent 2**63 - 1 correctly.
5875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5876 since some C++ compilers masquerading as C compilers
5877 incorrectly reject 9223372036854775807. */
5878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5880 && LARGE_OFF_T % 2147483647 == 1)
5881 ? 1 : -1];
5882 int
5883 main ()
5884 {
5885
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 if ac_fn_cxx_try_compile "$LINENO"; then :
5891 break
5892 fi
5893 rm -f core conftest.err conftest.$ac_objext
5894 CC="$CC -n32"
5895 if ac_fn_cxx_try_compile "$LINENO"; then :
5896 ac_cv_sys_largefile_CC=' -n32'; break
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext
5899 break
5900 done
5901 CC=$ac_save_CC
5902 rm -f conftest.$ac_ext
5903 fi
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5906 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5907 if test "$ac_cv_sys_largefile_CC" != no; then
5908 CC=$CC$ac_cv_sys_largefile_CC
5909 fi
5910
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5912 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5913 if ${ac_cv_sys_file_offset_bits+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 while :; do
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 #include <sys/types.h>
5920 /* Check that off_t can represent 2**63 - 1 correctly.
5921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5922 since some C++ compilers masquerading as C compilers
5923 incorrectly reject 9223372036854775807. */
5924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5926 && LARGE_OFF_T % 2147483647 == 1)
5927 ? 1 : -1];
5928 int
5929 main ()
5930 {
5931
5932 ;
5933 return 0;
5934 }
5935 _ACEOF
5936 if ac_fn_cxx_try_compile "$LINENO"; then :
5937 ac_cv_sys_file_offset_bits=no; break
5938 fi
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 #define _FILE_OFFSET_BITS 64
5943 #include <sys/types.h>
5944 /* Check that off_t can represent 2**63 - 1 correctly.
5945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5946 since some C++ compilers masquerading as C compilers
5947 incorrectly reject 9223372036854775807. */
5948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5950 && LARGE_OFF_T % 2147483647 == 1)
5951 ? 1 : -1];
5952 int
5953 main ()
5954 {
5955
5956 ;
5957 return 0;
5958 }
5959 _ACEOF
5960 if ac_fn_cxx_try_compile "$LINENO"; then :
5961 ac_cv_sys_file_offset_bits=64; break
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 ac_cv_sys_file_offset_bits=unknown
5965 break
5966 done
5967 fi
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5969 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5970 case $ac_cv_sys_file_offset_bits in #(
5971 no | unknown) ;;
5972 *)
5973 cat >>confdefs.h <<_ACEOF
5974 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5975 _ACEOF
5976 ;;
5977 esac
5978 rm -rf conftest*
5979 if test $ac_cv_sys_file_offset_bits = unknown; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5981 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5982 if ${ac_cv_sys_large_files+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 while :; do
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 #include <sys/types.h>
5989 /* Check that off_t can represent 2**63 - 1 correctly.
5990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5991 since some C++ compilers masquerading as C compilers
5992 incorrectly reject 9223372036854775807. */
5993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5995 && LARGE_OFF_T % 2147483647 == 1)
5996 ? 1 : -1];
5997 int
5998 main ()
5999 {
6000
6001 ;
6002 return 0;
6003 }
6004 _ACEOF
6005 if ac_fn_cxx_try_compile "$LINENO"; then :
6006 ac_cv_sys_large_files=no; break
6007 fi
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #define _LARGE_FILES 1
6012 #include <sys/types.h>
6013 /* Check that off_t can represent 2**63 - 1 correctly.
6014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6015 since some C++ compilers masquerading as C compilers
6016 incorrectly reject 9223372036854775807. */
6017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6019 && LARGE_OFF_T % 2147483647 == 1)
6020 ? 1 : -1];
6021 int
6022 main ()
6023 {
6024
6025 ;
6026 return 0;
6027 }
6028 _ACEOF
6029 if ac_fn_cxx_try_compile "$LINENO"; then :
6030 ac_cv_sys_large_files=1; break
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 ac_cv_sys_large_files=unknown
6034 break
6035 done
6036 fi
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6038 $as_echo "$ac_cv_sys_large_files" >&6; }
6039 case $ac_cv_sys_large_files in #(
6040 no | unknown) ;;
6041 *)
6042 cat >>confdefs.h <<_ACEOF
6043 #define _LARGE_FILES $ac_cv_sys_large_files
6044 _ACEOF
6045 ;;
6046 esac
6047 rm -rf conftest*
6048 fi
6049
6050
6051 fi
6052
6053
6054 # sizeof(char) is 1 by definition.
6055 # The cast to long int works around a bug in the HP C Compiler
6056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6058 # This bug is HP SR number 8606223364.
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6060 $as_echo_n "checking size of void *... " >&6; }
6061 if ${ac_cv_sizeof_void_p+:} false; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6065
6066 else
6067 if test "$ac_cv_type_void_p" = yes; then
6068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6070 as_fn_error 77 "cannot compute sizeof (void *)
6071 See \`config.log' for more details" "$LINENO" 5; }
6072 else
6073 ac_cv_sizeof_void_p=0
6074 fi
6075 fi
6076
6077 fi
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6079 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6080
6081
6082
6083 cat >>confdefs.h <<_ACEOF
6084 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6085 _ACEOF
6086
6087
6088 # The cast to long int works around a bug in the HP C Compiler
6089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6091 # This bug is HP SR number 8606223364.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6093 $as_echo_n "checking size of short... " >&6; }
6094 if ${ac_cv_sizeof_short+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6098
6099 else
6100 if test "$ac_cv_type_short" = yes; then
6101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6103 as_fn_error 77 "cannot compute sizeof (short)
6104 See \`config.log' for more details" "$LINENO" 5; }
6105 else
6106 ac_cv_sizeof_short=0
6107 fi
6108 fi
6109
6110 fi
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6112 $as_echo "$ac_cv_sizeof_short" >&6; }
6113
6114
6115
6116 cat >>confdefs.h <<_ACEOF
6117 #define SIZEOF_SHORT $ac_cv_sizeof_short
6118 _ACEOF
6119
6120
6121 # The cast to long int works around a bug in the HP C Compiler
6122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6124 # This bug is HP SR number 8606223364.
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6126 $as_echo_n "checking size of int... " >&6; }
6127 if ${ac_cv_sizeof_int+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6131
6132 else
6133 if test "$ac_cv_type_int" = yes; then
6134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6136 as_fn_error 77 "cannot compute sizeof (int)
6137 See \`config.log' for more details" "$LINENO" 5; }
6138 else
6139 ac_cv_sizeof_int=0
6140 fi
6141 fi
6142
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6145 $as_echo "$ac_cv_sizeof_int" >&6; }
6146
6147
6148
6149 cat >>confdefs.h <<_ACEOF
6150 #define SIZEOF_INT $ac_cv_sizeof_int
6151 _ACEOF
6152
6153
6154 # The cast to long int works around a bug in the HP C Compiler
6155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6157 # This bug is HP SR number 8606223364.
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6159 $as_echo_n "checking size of long... " >&6; }
6160 if ${ac_cv_sizeof_long+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6164
6165 else
6166 if test "$ac_cv_type_long" = yes; then
6167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6169 as_fn_error 77 "cannot compute sizeof (long)
6170 See \`config.log' for more details" "$LINENO" 5; }
6171 else
6172 ac_cv_sizeof_long=0
6173 fi
6174 fi
6175
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6178 $as_echo "$ac_cv_sizeof_long" >&6; }
6179
6180
6181
6182 cat >>confdefs.h <<_ACEOF
6183 #define SIZEOF_LONG $ac_cv_sizeof_long
6184 _ACEOF
6185
6186
6187 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6188 if test "x$ac_cv_type_long_long" = xyes; then :
6189
6190 cat >>confdefs.h <<_ACEOF
6191 #define HAVE_LONG_LONG 1
6192 _ACEOF
6193
6194 # The cast to long int works around a bug in the HP C Compiler
6195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6197 # This bug is HP SR number 8606223364.
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6199 $as_echo_n "checking size of long long... " >&6; }
6200 if ${ac_cv_sizeof_long_long+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6204
6205 else
6206 if test "$ac_cv_type_long_long" = yes; then
6207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6209 as_fn_error 77 "cannot compute sizeof (long long)
6210 See \`config.log' for more details" "$LINENO" 5; }
6211 else
6212 ac_cv_sizeof_long_long=0
6213 fi
6214 fi
6215
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6218 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6219
6220
6221
6222 cat >>confdefs.h <<_ACEOF
6223 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6224 _ACEOF
6225
6226
6227 fi
6228
6229 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6230 case $ac_cv_c_int8_t in #(
6231 no|yes) ;; #(
6232 *)
6233
6234 cat >>confdefs.h <<_ACEOF
6235 #define int8_t $ac_cv_c_int8_t
6236 _ACEOF
6237 ;;
6238 esac
6239
6240 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6241 case $ac_cv_c_int16_t in #(
6242 no|yes) ;; #(
6243 *)
6244
6245 cat >>confdefs.h <<_ACEOF
6246 #define int16_t $ac_cv_c_int16_t
6247 _ACEOF
6248 ;;
6249 esac
6250
6251 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6252 case $ac_cv_c_int32_t in #(
6253 no|yes) ;; #(
6254 *)
6255
6256 cat >>confdefs.h <<_ACEOF
6257 #define int32_t $ac_cv_c_int32_t
6258 _ACEOF
6259 ;;
6260 esac
6261
6262 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6263 case $ac_cv_c_int64_t in #(
6264 no|yes) ;; #(
6265 *)
6266
6267 cat >>confdefs.h <<_ACEOF
6268 #define int64_t $ac_cv_c_int64_t
6269 _ACEOF
6270 ;;
6271 esac
6272
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6275 $as_echo_n "checking for unsigned long long int... " >&6; }
6276 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 ac_cv_type_unsigned_long_long_int=yes
6280 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283
6284 /* For now, do not test the preprocessor; as of 2007 there are too many
6285 implementations with broken preprocessors. Perhaps this can
6286 be revisited in 2012. In the meantime, code should not expect
6287 #if to work with literals wider than 32 bits. */
6288 /* Test literals. */
6289 long long int ll = 9223372036854775807ll;
6290 long long int nll = -9223372036854775807LL;
6291 unsigned long long int ull = 18446744073709551615ULL;
6292 /* Test constant expressions. */
6293 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6294 ? 1 : -1)];
6295 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6296 ? 1 : -1)];
6297 int i = 63;
6298 int
6299 main ()
6300 {
6301 /* Test availability of runtime routines for shift and division. */
6302 long long int llmax = 9223372036854775807ll;
6303 unsigned long long int ullmax = 18446744073709551615ull;
6304 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6305 | (llmax / ll) | (llmax % ll)
6306 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6307 | (ullmax / ull) | (ullmax % ull));
6308 ;
6309 return 0;
6310 }
6311
6312 _ACEOF
6313 if ac_fn_cxx_try_link "$LINENO"; then :
6314
6315 else
6316 ac_cv_type_unsigned_long_long_int=no
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext \
6319 conftest$ac_exeext conftest.$ac_ext
6320 fi
6321 fi
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6323 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6324 if test $ac_cv_type_unsigned_long_long_int = yes; then
6325
6326 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6327
6328 fi
6329
6330
6331
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6333 $as_echo_n "checking for long long int... " >&6; }
6334 if ${ac_cv_type_long_long_int+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 ac_cv_type_long_long_int=yes
6338 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6339 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6340 if test $ac_cv_type_long_long_int = yes; then
6341 if test "$cross_compiling" = yes; then :
6342 :
6343 else
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 #include <limits.h>
6347 #ifndef LLONG_MAX
6348 # define HALF \
6349 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6350 # define LLONG_MAX (HALF - 1 + HALF)
6351 #endif
6352 int
6353 main ()
6354 {
6355 long long int n = 1;
6356 int i;
6357 for (i = 0; ; i++)
6358 {
6359 long long int m = n << i;
6360 if (m >> i != n)
6361 return 1;
6362 if (LLONG_MAX / 2 < m)
6363 break;
6364 }
6365 return 0;
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 if ac_fn_cxx_try_run "$LINENO"; then :
6371
6372 else
6373 ac_cv_type_long_long_int=no
6374 fi
6375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6376 conftest.$ac_objext conftest.beam conftest.$ac_ext
6377 fi
6378
6379 fi
6380 fi
6381 fi
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6383 $as_echo "$ac_cv_type_long_long_int" >&6; }
6384 if test $ac_cv_type_long_long_int = yes; then
6385
6386 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6387
6388 fi
6389
6390
6391
6392 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6393 if test "x$ac_cv_type_intmax_t" = xyes; then :
6394
6395 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6396
6397 else
6398 test $ac_cv_type_long_long_int = yes \
6399 && ac_type='long long int' \
6400 || ac_type='long int'
6401
6402 cat >>confdefs.h <<_ACEOF
6403 #define intmax_t $ac_type
6404 _ACEOF
6405
6406 fi
6407
6408
6409
6410 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6411 if test "x$ac_cv_type_intptr_t" = xyes; then :
6412
6413 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6414
6415 else
6416 for ac_type in 'int' 'long int' 'long long int'; do
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6419 $ac_includes_default
6420 int
6421 main ()
6422 {
6423 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6424 test_array [0] = 0;
6425 return test_array [0];
6426
6427 ;
6428 return 0;
6429 }
6430 _ACEOF
6431 if ac_fn_cxx_try_compile "$LINENO"; then :
6432
6433 cat >>confdefs.h <<_ACEOF
6434 #define intptr_t $ac_type
6435 _ACEOF
6436
6437 ac_type=
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 test -z "$ac_type" && break
6441 done
6442 fi
6443
6444
6445 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6446 case $ac_cv_c_uint8_t in #(
6447 no|yes) ;; #(
6448 *)
6449
6450 $as_echo "#define _UINT8_T 1" >>confdefs.h
6451
6452
6453 cat >>confdefs.h <<_ACEOF
6454 #define uint8_t $ac_cv_c_uint8_t
6455 _ACEOF
6456 ;;
6457 esac
6458
6459 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6460 case $ac_cv_c_uint16_t in #(
6461 no|yes) ;; #(
6462 *)
6463
6464
6465 cat >>confdefs.h <<_ACEOF
6466 #define uint16_t $ac_cv_c_uint16_t
6467 _ACEOF
6468 ;;
6469 esac
6470
6471 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6472 case $ac_cv_c_uint32_t in #(
6473 no|yes) ;; #(
6474 *)
6475
6476 $as_echo "#define _UINT32_T 1" >>confdefs.h
6477
6478
6479 cat >>confdefs.h <<_ACEOF
6480 #define uint32_t $ac_cv_c_uint32_t
6481 _ACEOF
6482 ;;
6483 esac
6484
6485 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6486 case $ac_cv_c_uint64_t in #(
6487 no|yes) ;; #(
6488 *)
6489
6490 $as_echo "#define _UINT64_T 1" >>confdefs.h
6491
6492
6493 cat >>confdefs.h <<_ACEOF
6494 #define uint64_t $ac_cv_c_uint64_t
6495 _ACEOF
6496 ;;
6497 esac
6498
6499
6500
6501 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6502 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6503
6504 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6505
6506 else
6507 test $ac_cv_type_unsigned_long_long_int = yes \
6508 && ac_type='unsigned long long int' \
6509 || ac_type='unsigned long int'
6510
6511 cat >>confdefs.h <<_ACEOF
6512 #define uintmax_t $ac_type
6513 _ACEOF
6514
6515 fi
6516
6517
6518
6519 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6520 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6521
6522 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6523
6524 else
6525 for ac_type in 'unsigned int' 'unsigned long int' \
6526 'unsigned long long int'; do
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 $ac_includes_default
6530 int
6531 main ()
6532 {
6533 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6534 test_array [0] = 0;
6535 return test_array [0];
6536
6537 ;
6538 return 0;
6539 }
6540 _ACEOF
6541 if ac_fn_cxx_try_compile "$LINENO"; then :
6542
6543 cat >>confdefs.h <<_ACEOF
6544 #define uintptr_t $ac_type
6545 _ACEOF
6546
6547 ac_type=
6548 fi
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 test -z "$ac_type" && break
6551 done
6552 fi
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6568 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6569 fi
6570
6571 # check what underlying integer type int64_t uses
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6573 $as_echo_n "checking for int64_t underlying type... " >&6; }
6574 if ${ac_cv_int64_t_type+:} false; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580
6581 #ifdef HAVE_STDINT_H
6582 #include <stdint.h>
6583 #endif
6584 template <typename T> struct X { };
6585 template <>
6586 struct X<long> { typedef long t; };
6587
6588 int
6589 main ()
6590 {
6591 X<int64_t>::t x;
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_cxx_try_compile "$LINENO"; then :
6597 ac_cv_int64_t_type=long
6598 else
6599 ac_cv_int64_t_type="long long"
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6604 $as_echo "$ac_cv_int64_t_type" >&6; }
6605 if test "$ac_cv_int64_t_type" = "long"; then
6606
6607 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6608
6609 else
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612
6613 #ifdef HAVE_STDINT_H
6614 #include <stdint.h>
6615 #endif
6616 template <typename T> struct X { };
6617 template <>
6618 struct X<long long> { typedef long long t; };
6619
6620 int
6621 main ()
6622 {
6623 X<int64_t>::t x;
6624 ;
6625 return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_cxx_try_compile "$LINENO"; then :
6629
6630 else
6631 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634 fi
6635
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6637 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6638 if ${ac_cv_std_swap_in_utility+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644
6645 #include <utility>
6646
6647 int
6648 main ()
6649 {
6650 int a, b; std::swap(a,b);
6651 ;
6652 return 0;
6653 }
6654 _ACEOF
6655 if ac_fn_cxx_try_compile "$LINENO"; then :
6656 ac_cv_std_swap_in_utility=yes
6657 else
6658 ac_cv_std_swap_in_utility=no
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 fi
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6663 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6664 if test $ac_cv_std_swap_in_utility = yes; then
6665
6666 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6667
6668 fi
6669
6670 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6671 # If the host compiler is affected by the bug, and we build with optimization
6672 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6673 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6674 # Since there is no reliable feature check for the presence of this bug,
6675 # we simply use a GCC version number check. (This should never trigger for
6676 # stages 2 or 3 of a native bootstrap.)
6677 aliasing_flags=
6678 if test "$GCC" = yes; then
6679 saved_CXXFLAGS="$CXXFLAGS"
6680
6681 # The following test compilation will succeed if and only if $CXX accepts
6682 # -fno-strict-aliasing *and* is older than GCC 4.3.
6683 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6685 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688
6689 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6690 #error compiler not affected by placement new aliasing bug
6691 #endif
6692
6693 _ACEOF
6694 if ac_fn_cxx_try_compile "$LINENO"; then :
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6696 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702
6703 CXXFLAGS="$saved_CXXFLAGS"
6704 fi
6705
6706
6707
6708
6709 # ---------------------
6710 # Warnings and checking
6711 # ---------------------
6712
6713 # Check $CC warning features (if it's GCC).
6714 # We want to use -pedantic, but we don't want warnings about
6715 # * 'long long'
6716 # * variadic macros
6717 # * overlong strings
6718 # * C++11 narrowing conversions in { }
6719 # So, we only use -pedantic if we can disable those warnings.
6720
6721 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6722 # Check whether --enable-build-format-warnings was given.
6723 if test "${enable_build_format_warnings+set}" = set; then :
6724 enableval=$enable_build_format_warnings;
6725 else
6726 enable_build_format_warnings=yes
6727 fi
6728
6729 if test $enable_build_format_warnings = no; then :
6730 wf_opt=-Wno-format
6731 else
6732 wf_opt=
6733 fi
6734 ac_ext=cpp
6735 ac_cpp='$CXXCPP $CPPFLAGS'
6736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6739
6740 loose_warn=
6741 save_CXXFLAGS="$CXXFLAGS"
6742 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6743 # Do the check with the no- prefix removed since gcc silently
6744 # accepts any -Wno-* option on purpose
6745 case $real_option in
6746 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6747 *) option=$real_option ;;
6748 esac
6749 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6750
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6752 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6753 if eval \${$as_acx_Woption+:} false; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 CXXFLAGS="$option"
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759
6760 int
6761 main ()
6762 {
6763
6764 ;
6765 return 0;
6766 }
6767 _ACEOF
6768 if ac_fn_cxx_try_compile "$LINENO"; then :
6769 eval "$as_acx_Woption=yes"
6770 else
6771 eval "$as_acx_Woption=no"
6772 fi
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774
6775 fi
6776 eval ac_res=\$$as_acx_Woption
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6778 $as_echo "$ac_res" >&6; }
6779 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6780 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6781 fi
6782 done
6783 CXXFLAGS="$save_CXXFLAGS"
6784 ac_ext=cpp
6785 ac_cpp='$CXXCPP $CPPFLAGS'
6786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6789
6790
6791
6792 ac_ext=c
6793 ac_cpp='$CPP $CPPFLAGS'
6794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797
6798 c_loose_warn=
6799 save_CFLAGS="$CFLAGS"
6800 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6801 # Do the check with the no- prefix removed since gcc silently
6802 # accepts any -Wno-* option on purpose
6803 case $real_option in
6804 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6805 *) option=$real_option ;;
6806 esac
6807 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6808
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6810 $as_echo_n "checking whether $CC supports $option... " >&6; }
6811 if eval \${$as_acx_Woption+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 CFLAGS="$option"
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817
6818 int
6819 main ()
6820 {
6821
6822 ;
6823 return 0;
6824 }
6825 _ACEOF
6826 if ac_fn_c_try_compile "$LINENO"; then :
6827 eval "$as_acx_Woption=yes"
6828 else
6829 eval "$as_acx_Woption=no"
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832
6833 fi
6834 eval ac_res=\$$as_acx_Woption
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6836 $as_echo "$ac_res" >&6; }
6837 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6838 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6839 fi
6840 done
6841 CFLAGS="$save_CFLAGS"
6842 ac_ext=cpp
6843 ac_cpp='$CXXCPP $CPPFLAGS'
6844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6847
6848
6849 ac_ext=cpp
6850 ac_cpp='$CXXCPP $CPPFLAGS'
6851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6854
6855 strict_warn=
6856 save_CXXFLAGS="$CXXFLAGS"
6857 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6858 # Do the check with the no- prefix removed since gcc silently
6859 # accepts any -Wno-* option on purpose
6860 case $real_option in
6861 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6862 *) option=$real_option ;;
6863 esac
6864 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6865
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6867 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6868 if eval \${$as_acx_Woption+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 CXXFLAGS="$option"
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874
6875 int
6876 main ()
6877 {
6878
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 if ac_fn_cxx_try_compile "$LINENO"; then :
6884 eval "$as_acx_Woption=yes"
6885 else
6886 eval "$as_acx_Woption=no"
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889
6890 fi
6891 eval ac_res=\$$as_acx_Woption
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6893 $as_echo "$ac_res" >&6; }
6894 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6895 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6896 fi
6897 done
6898 CXXFLAGS="$save_CXXFLAGS"
6899 ac_ext=cpp
6900 ac_cpp='$CXXCPP $CPPFLAGS'
6901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6904
6905
6906 ac_ext=c
6907 ac_cpp='$CPP $CPPFLAGS'
6908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911
6912 c_strict_warn=
6913 save_CFLAGS="$CFLAGS"
6914 for real_option in -Wold-style-definition -Wc++-compat; do
6915 # Do the check with the no- prefix removed since gcc silently
6916 # accepts any -Wno-* option on purpose
6917 case $real_option in
6918 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6919 *) option=$real_option ;;
6920 esac
6921 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6924 $as_echo_n "checking whether $CC supports $option... " >&6; }
6925 if eval \${$as_acx_Woption+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 CFLAGS="$option"
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931
6932 int
6933 main ()
6934 {
6935
6936 ;
6937 return 0;
6938 }
6939 _ACEOF
6940 if ac_fn_c_try_compile "$LINENO"; then :
6941 eval "$as_acx_Woption=yes"
6942 else
6943 eval "$as_acx_Woption=no"
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946
6947 fi
6948 eval ac_res=\$$as_acx_Woption
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6950 $as_echo "$ac_res" >&6; }
6951 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6952 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6953 fi
6954 done
6955 CFLAGS="$save_CFLAGS"
6956 ac_ext=cpp
6957 ac_cpp='$CXXCPP $CPPFLAGS'
6958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6961
6962
6963 ac_ext=cpp
6964 ac_cpp='$CXXCPP $CPPFLAGS'
6965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6968
6969 # Do the check with the no- prefix removed from the warning options
6970 # since gcc silently accepts any -Wno-* option on purpose
6971 if test "$GXX" = yes; then :
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6973 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6974 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 save_CXXFLAGS="$CXXFLAGS"
6978 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6981
6982 int
6983 main ()
6984 {
6985
6986 ;
6987 return 0;
6988 }
6989 _ACEOF
6990 if ac_fn_cxx_try_compile "$LINENO"; then :
6991 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6992 else
6993 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 CXXFLAGS="$save_CXXFLAGS"
6997 fi
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6999 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7000 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7001 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7002 fi
7003
7004 fi
7005 ac_ext=cpp
7006 ac_cpp='$CXXCPP $CPPFLAGS'
7007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7010
7011
7012 ac_ext=cpp
7013 ac_cpp='$CXXCPP $CPPFLAGS'
7014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7017
7018 # Check whether --enable-werror-always was given.
7019 if test "${enable_werror_always+set}" = set; then :
7020 enableval=$enable_werror_always;
7021 else
7022 enable_werror_always=no
7023 fi
7024
7025 if test $enable_werror_always = yes; then :
7026 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7027 fi
7028
7029 ac_ext=cpp
7030 ac_cpp='$CXXCPP $CPPFLAGS'
7031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7034
7035
7036
7037 # The above macros do nothing if the compiler is not GCC. However, the
7038 # Makefile has more goo to add other flags, so these variables are used
7039 # to enable warnings only for GCC.
7040 warn_cflags=
7041 warn_cxxflags=
7042 if test "x$GCC" = "xyes"; then
7043 warn_cflags='$(GCC_WARN_CFLAGS)'
7044 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7045 fi
7046
7047
7048
7049 # Disable exceptions and RTTI if building with g++
7050 ac_ext=c
7051 ac_cpp='$CPP $CPPFLAGS'
7052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7055
7056 noexception_flags=
7057 save_CFLAGS="$CFLAGS"
7058 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7059 # Do the check with the no- prefix removed since gcc silently
7060 # accepts any -Wno-* option on purpose
7061 case $real_option in
7062 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7063 *) option=$real_option ;;
7064 esac
7065 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7066
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7068 $as_echo_n "checking whether $CC supports $option... " >&6; }
7069 if eval \${$as_acx_Woption+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 CFLAGS="$option"
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7075
7076 int
7077 main ()
7078 {
7079
7080 ;
7081 return 0;
7082 }
7083 _ACEOF
7084 if ac_fn_c_try_compile "$LINENO"; then :
7085 eval "$as_acx_Woption=yes"
7086 else
7087 eval "$as_acx_Woption=no"
7088 fi
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090
7091 fi
7092 eval ac_res=\$$as_acx_Woption
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7094 $as_echo "$ac_res" >&6; }
7095 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7096 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7097 fi
7098 done
7099 CFLAGS="$save_CFLAGS"
7100 ac_ext=cpp
7101 ac_cpp='$CXXCPP $CPPFLAGS'
7102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7105
7106
7107
7108 # Enable expensive internal checks
7109 is_release=
7110 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7111 is_release=yes
7112 fi
7113
7114 # Check whether --enable-checking was given.
7115 if test "${enable_checking+set}" = set; then :
7116 enableval=$enable_checking; ac_checking_flags="${enableval}"
7117 else
7118
7119 # Determine the default checks.
7120 if test x$is_release = x ; then
7121 ac_checking_flags=yes,extra
7122 else
7123 ac_checking_flags=release
7124 fi
7125 fi
7126
7127 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7128 for check in release $ac_checking_flags
7129 do
7130 case $check in
7131 # these set all the flags to specific states
7132 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7133 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7134 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7135 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7136 ac_tree_checking=1 ; ac_valgrind_checking= ;
7137 ac_types_checking=1 ;;
7138 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7139 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7140 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7141 ac_rtlflag_checking= ; ac_runtime_checking= ;
7142 ac_tree_checking= ; ac_valgrind_checking= ;
7143 ac_types_checking= ;;
7144 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7145 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7146 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7147 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7148 ac_tree_checking=1 ; ac_valgrind_checking= ;
7149 ac_types_checking=1 ;;
7150 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7151 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7152 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7153 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7154 ac_tree_checking= ; ac_valgrind_checking= ;
7155 ac_types_checking= ;;
7156 # these enable particular checks
7157 assert) ac_assert_checking=1 ;;
7158 df) ac_df_checking=1 ;;
7159 extra) ac_extra_checking=1 ;;
7160 fold) ac_fold_checking=1 ;;
7161 gc) ac_gc_checking=1 ;;
7162 gcac) ac_gc_always_collect=1 ;;
7163 gimple) ac_gimple_checking=1 ;;
7164 misc) ac_checking=1 ;;
7165 rtl) ac_rtl_checking=1 ;;
7166 rtlflag) ac_rtlflag_checking=1 ;;
7167 runtime) ac_runtime_checking=1 ;;
7168 tree) ac_tree_checking=1 ;;
7169 types) ac_types_checking=1 ;;
7170 valgrind) ac_valgrind_checking=1 ;;
7171 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7172 esac
7173 done
7174 IFS="$ac_save_IFS"
7175
7176 nocommon_flag=""
7177 if test x$ac_checking != x ; then
7178
7179 $as_echo "#define CHECKING_P 1" >>confdefs.h
7180
7181 nocommon_flag=-fno-common
7182 else
7183 $as_echo "#define CHECKING_P 0" >>confdefs.h
7184
7185 fi
7186
7187 if test x$ac_extra_checking != x ; then
7188
7189 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7190
7191 else
7192 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7193
7194 fi
7195 if test x$ac_df_checking != x ; then
7196
7197 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7198
7199 fi
7200 if test x$ac_assert_checking != x ; then
7201
7202 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7203
7204 fi
7205 if test x$ac_gimple_checking != x ; then
7206
7207 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7208
7209 fi
7210
7211 if test x$ac_runtime_checking != x ; then
7212
7213 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7214
7215 fi
7216 if test x$ac_tree_checking != x ; then
7217
7218 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7219
7220 TREECHECKING=yes
7221 fi
7222 if test x$ac_types_checking != x ; then
7223
7224 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7225
7226 fi
7227
7228 if test x$ac_rtl_checking != x ; then
7229
7230 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7231
7232 fi
7233 if test x$ac_rtlflag_checking != x ; then
7234
7235 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7236
7237 fi
7238 if test x$ac_gc_checking != x ; then
7239
7240 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7241
7242 fi
7243 if test x$ac_gc_always_collect != x ; then
7244
7245 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7246
7247 fi
7248 if test x$ac_fold_checking != x ; then
7249
7250 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7251
7252 fi
7253 valgrind_path_defines=
7254 valgrind_command=
7255
7256 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7257 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7258 have_valgrind_h=yes
7259 else
7260 have_valgrind_h=no
7261 fi
7262
7263
7264
7265 # It is certainly possible that there's valgrind but no valgrind.h.
7266 # GCC relies on making annotations so we must have both.
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7268 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 #include <valgrind/memcheck.h>
7272 #ifndef VALGRIND_DISCARD
7273 #error VALGRIND_DISCARD not defined
7274 #endif
7275 _ACEOF
7276 if ac_fn_cxx_try_cpp "$LINENO"; then :
7277 gcc_cv_header_valgrind_memcheck_h=yes
7278 else
7279 gcc_cv_header_valgrind_memcheck_h=no
7280 fi
7281 rm -f conftest.err conftest.i conftest.$ac_ext
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7283 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7285 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 #include <memcheck.h>
7289 #ifndef VALGRIND_DISCARD
7290 #error VALGRIND_DISCARD not defined
7291 #endif
7292 _ACEOF
7293 if ac_fn_cxx_try_cpp "$LINENO"; then :
7294 gcc_cv_header_memcheck_h=yes
7295 else
7296 gcc_cv_header_memcheck_h=no
7297 fi
7298 rm -f conftest.err conftest.i conftest.$ac_ext
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7300 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7301 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7302
7303 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7304
7305 fi
7306 if test $gcc_cv_header_memcheck_h = yes; then
7307
7308 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7309
7310 fi
7311
7312 if test x$ac_valgrind_checking != x ; then
7313
7314 # Prepare PATH_SEPARATOR.
7315 # The user is always right.
7316 if test "${PATH_SEPARATOR+set}" != set; then
7317 echo "#! /bin/sh" >conf$$.sh
7318 echo "exit 0" >>conf$$.sh
7319 chmod +x conf$$.sh
7320 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7321 PATH_SEPARATOR=';'
7322 else
7323 PATH_SEPARATOR=:
7324 fi
7325 rm -f conf$$.sh
7326 fi
7327
7328 # Find out how to test for executable files. Don't use a zero-byte file,
7329 # as systems may use methods other than mode bits to determine executability.
7330 cat >conf$$.file <<_ASEOF
7331 #! /bin/sh
7332 exit 0
7333 _ASEOF
7334 chmod +x conf$$.file
7335 if test -x conf$$.file >/dev/null 2>&1; then
7336 ac_executable_p="test -x"
7337 else
7338 ac_executable_p="test -f"
7339 fi
7340 rm -f conf$$.file
7341
7342 # Extract the first word of "valgrind", so it can be a program name with args.
7343 set dummy valgrind; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if ${ac_cv_path_valgrind_path+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 case "$valgrind_path" in
7350 [\\/]* | ?:[\\/]*)
7351 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7352 ;;
7353 *)
7354 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7355 for ac_dir in $PATH; do
7356 IFS="$ac_save_IFS"
7357 test -z "$ac_dir" && ac_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7360 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7361 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7362 break 2
7363 fi
7364 fi
7365 done
7366 done
7367 IFS="$ac_save_IFS"
7368 ;;
7369 esac
7370 fi
7371 valgrind_path="$ac_cv_path_valgrind_path"
7372 if test -n "$valgrind_path"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7374 $as_echo "$valgrind_path" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7379
7380 if test "x$valgrind_path" = "x" \
7381 || (test $have_valgrind_h = no \
7382 && test $gcc_cv_header_memcheck_h = no \
7383 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7384 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7385 fi
7386 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7387 valgrind_command="$valgrind_path -q"
7388
7389 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7390
7391 fi
7392
7393
7394
7395 # Enable code coverage collection
7396 # Check whether --enable-coverage was given.
7397 if test "${enable_coverage+set}" = set; then :
7398 enableval=$enable_coverage; case "${enableval}" in
7399 yes|noopt)
7400 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7401 ;;
7402 opt)
7403 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7404 ;;
7405 no)
7406 # a.k.a. --disable-coverage
7407 coverage_flags=""
7408 ;;
7409 *)
7410 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7411 ;;
7412 esac
7413 else
7414 coverage_flags=""
7415 fi
7416
7417
7418
7419 # Check whether --enable-gather-detailed-mem-stats was given.
7420 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7421 enableval=$enable_gather_detailed_mem_stats;
7422 else
7423 enable_gather_detailed_mem_stats=no
7424 fi
7425
7426 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7427
7428 cat >>confdefs.h <<_ACEOF
7429 #define GATHER_STATISTICS $gather_stats
7430 _ACEOF
7431
7432
7433 # Check whether --enable-valgrind-annotations was given.
7434 if test "${enable_valgrind_annotations+set}" = set; then :
7435 enableval=$enable_valgrind_annotations;
7436 else
7437 enable_valgrind_annotations=no
7438 fi
7439
7440 if test x$enable_valgrind_annotations != xno \
7441 || test x$ac_valgrind_checking != x; then
7442 if (test $have_valgrind_h = no \
7443 && test $gcc_cv_header_memcheck_h = no \
7444 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7445 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7446 fi
7447
7448 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7449
7450 fi
7451
7452 # -------------------------------
7453 # Miscenalleous configure options
7454 # -------------------------------
7455
7456 # With stabs
7457
7458 # Check whether --with-stabs was given.
7459 if test "${with_stabs+set}" = set; then :
7460 withval=$with_stabs; stabs="$with_stabs"
7461 else
7462 stabs=no
7463 fi
7464
7465
7466 # Determine whether or not multilibs are enabled.
7467 # Check whether --enable-multilib was given.
7468 if test "${enable_multilib+set}" = set; then :
7469 enableval=$enable_multilib;
7470 else
7471 enable_multilib=yes
7472 fi
7473
7474
7475
7476 # Determine whether or not multiarch is enabled.
7477 # Check whether --enable-multiarch was given.
7478 if test "${enable_multiarch+set}" = set; then :
7479 enableval=$enable_multiarch; case "${enableval}" in
7480 yes|no|auto) enable_multiarch=$enableval;;
7481 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7482 esac
7483 else
7484 enable_multiarch=auto
7485 fi
7486
7487 if test x${enable_multiarch} = xauto; then
7488 if test x${with_native_system_header_dir} != x; then
7489 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7490 enable_multiarch=no
7491 fi
7492 if test x$host != x$target && test "x$with_sysroot" = x; then
7493 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7494 enable_multiarch=no
7495 fi
7496 fi
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7498 $as_echo_n "checking for multiarch configuration... " >&6; }
7499
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7501 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7502
7503 # needed for setting the multiarch name for soft-float/hard-float ABIs
7504
7505
7506
7507 # default stack clash protection guard size as power of twos in bytes.
7508 # Please keep these in sync with params.def.
7509 stk_clash_min=12
7510 stk_clash_max=30
7511
7512 # Keep the default value when the option is not used to 0, this allows us to
7513 # distinguish between the cases where the user specifially set a value via
7514 # configure and when the normal default value is used.
7515
7516 # Check whether --with-stack-clash-protection-guard-size was given.
7517 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7518 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7519 else
7520 DEFAULT_STK_CLASH_GUARD_SIZE=0
7521 fi
7522
7523 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7524 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7525 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7526 as_fn_error $? "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7527 fi
7528
7529
7530 cat >>confdefs.h <<_ACEOF
7531 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7532 _ACEOF
7533
7534
7535 # Enable __cxa_atexit for C++.
7536 # Check whether --enable-__cxa_atexit was given.
7537 if test "${enable___cxa_atexit+set}" = set; then :
7538 enableval=$enable___cxa_atexit;
7539 fi
7540
7541
7542 # Enable C extension for decimal float if target supports it.
7543
7544 # Check whether --enable-decimal-float was given.
7545 if test "${enable_decimal_float+set}" = set; then :
7546 enableval=$enable_decimal_float;
7547 case $enable_decimal_float in
7548 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7549 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7550 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7551 esac
7552
7553 else
7554
7555 case $target in
7556 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7557 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7558 i?86*-*-mingw* | x86_64*-*-mingw* | \
7559 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7560 enable_decimal_float=yes
7561 ;;
7562 *)
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7564 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7565 enable_decimal_float=no
7566 ;;
7567 esac
7568
7569 fi
7570
7571
7572 # x86's use BID format instead of DPD
7573 case x$enable_decimal_float in
7574 xyes)
7575 case $target in
7576 i?86*-*-* | x86_64*-*-*)
7577 enable_decimal_float=bid
7578 ;;
7579 *)
7580 enable_decimal_float=dpd
7581 ;;
7582 esac
7583 default_decimal_float=$enable_decimal_float
7584 ;;
7585 xno)
7586 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7587 # dependency on libdecnumber.
7588 default_decimal_float=dpd
7589 ;;
7590 esac
7591
7592
7593
7594
7595 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7596
7597 cat >>confdefs.h <<_ACEOF
7598 #define ENABLE_DECIMAL_FLOAT $dfp
7599 _ACEOF
7600
7601
7602 # Use default_decimal_float for dependency.
7603 enable_decimal_float=$default_decimal_float
7604
7605 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7606
7607 cat >>confdefs.h <<_ACEOF
7608 #define ENABLE_DECIMAL_BID_FORMAT $bid
7609 _ACEOF
7610
7611
7612 # Enable C extension for fixed-point arithmetic.
7613 # Check whether --enable-fixed-point was given.
7614 if test "${enable_fixed_point+set}" = set; then :
7615 enableval=$enable_fixed_point;
7616 else
7617
7618 case $target in
7619 arm*)
7620 enable_fixed_point=yes
7621 ;;
7622
7623 mips*-*-*)
7624 enable_fixed_point=yes
7625 ;;
7626 *)
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7628 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7629 enable_fixed_point=no
7630 ;;
7631 esac
7632
7633 fi
7634
7635
7636
7637 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7638
7639 cat >>confdefs.h <<_ACEOF
7640 #define ENABLE_FIXED_POINT $fixedpoint
7641 _ACEOF
7642
7643
7644 # Enable threads
7645 # Pass with no value to take the default
7646 # Pass with a value to specify a thread package
7647 # Check whether --enable-threads was given.
7648 if test "${enable_threads+set}" = set; then :
7649 enableval=$enable_threads;
7650 else
7651 enable_threads=''
7652 fi
7653
7654
7655 # Check whether --enable-tls was given.
7656 if test "${enable_tls+set}" = set; then :
7657 enableval=$enable_tls;
7658 case $enable_tls in
7659 yes | no) ;;
7660 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7661 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7662 esac
7663
7664 else
7665 enable_tls=''
7666 fi
7667
7668
7669 # Check whether --enable-vtable-verify was given.
7670 if test "${enable_vtable_verify+set}" = set; then :
7671 enableval=$enable_vtable_verify;
7672 else
7673 enable_vtable_verify=no
7674 fi
7675
7676 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7677
7678 cat >>confdefs.h <<_ACEOF
7679 #define ENABLE_VTABLE_VERIFY $vtable_verify
7680 _ACEOF
7681
7682
7683 # Check whether --enable-objc-gc was given.
7684 if test "${enable_objc_gc+set}" = set; then :
7685 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7686 objc_boehm_gc=''
7687 else
7688 objc_boehm_gc=1
7689 fi
7690 else
7691 objc_boehm_gc=''
7692 fi
7693
7694
7695
7696 # Check whether --with-dwarf2 was given.
7697 if test "${with_dwarf2+set}" = set; then :
7698 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7699 else
7700 dwarf2=no
7701 fi
7702
7703
7704 # Check whether --enable-shared was given.
7705 if test "${enable_shared+set}" = set; then :
7706 enableval=$enable_shared;
7707 case $enable_shared in
7708 yes | no) ;;
7709 *)
7710 enable_shared=no
7711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7712 for pkg in $enableval; do
7713 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7714 enable_shared=yes
7715 fi
7716 done
7717 IFS="$ac_save_ifs"
7718 ;;
7719 esac
7720
7721 else
7722 enable_shared=yes
7723 fi
7724
7725
7726
7727 # Check whether --enable-gcov was given.
7728 if test "${enable_gcov+set}" = set; then :
7729 enableval=$enable_gcov;
7730 else
7731 enable_gcov=yes
7732 fi
7733
7734
7735
7736
7737 # Check whether --with-specs was given.
7738 if test "${with_specs+set}" = set; then :
7739 withval=$with_specs; CONFIGURE_SPECS=$withval
7740 else
7741 CONFIGURE_SPECS=
7742
7743 fi
7744
7745
7746
7747
7748
7749 # Check whether --with-pkgversion was given.
7750 if test "${with_pkgversion+set}" = set; then :
7751 withval=$with_pkgversion; case "$withval" in
7752 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7753 no) PKGVERSION= ;;
7754 *) PKGVERSION="($withval) " ;;
7755 esac
7756 else
7757 PKGVERSION="(GCC) "
7758
7759 fi
7760
7761
7762
7763
7764
7765 # Check whether --with-bugurl was given.
7766 if test "${with_bugurl+set}" = set; then :
7767 withval=$with_bugurl; case "$withval" in
7768 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7769 no) BUGURL=
7770 ;;
7771 *) BUGURL="$withval"
7772 ;;
7773 esac
7774 else
7775 BUGURL="https://gcc.gnu.org/bugs/"
7776
7777 fi
7778
7779 case ${BUGURL} in
7780 "")
7781 REPORT_BUGS_TO=
7782 REPORT_BUGS_TEXI=
7783 ;;
7784 *)
7785 REPORT_BUGS_TO="<$BUGURL>"
7786 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7787 ;;
7788 esac;
7789
7790
7791
7792
7793 # Sanity check enable_languages in case someone does not run the toplevel
7794 # configure # script.
7795 # Check whether --enable-languages was given.
7796 if test "${enable_languages+set}" = set; then :
7797 enableval=$enable_languages; case ,${enable_languages}, in
7798 ,,|,yes,)
7799 # go safe -- we cannot be much sure without the toplevel
7800 # configure's
7801 # analysis of which target libs are present and usable
7802 enable_languages=c
7803 ;;
7804 *,all,*)
7805 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7806 ;;
7807 *,c,*)
7808 ;;
7809 *)
7810 enable_languages=c,${enable_languages}
7811 ;;
7812 esac
7813 else
7814 enable_languages=c
7815 fi
7816
7817
7818 if test x"$enable_as_accelerator_for" != x; then
7819
7820 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7821
7822 enable_as_accelerator=yes
7823 case "${target}" in
7824 *-intelmicemul-*)
7825 # In this case we expect offload compiler to be built as native, so we
7826 # need to rename the driver to avoid clashes with host's drivers.
7827 program_transform_name="s&^&${target}-&" ;;
7828 esac
7829 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7830 program_transform_name=`echo $program_transform_name | sed $sedscript`
7831 accel_dir_suffix=/accel/${target_noncanonical}
7832 real_target_noncanonical=${enable_as_accelerator_for}
7833 fi
7834
7835
7836
7837
7838 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7839 tgt=`echo $tgt | sed 's/=.*//'`
7840
7841 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7842 enable_hsa=1
7843 else
7844 enable_offloading=1
7845 fi
7846
7847 if test x"$offload_targets" = x; then
7848 offload_targets=$tgt
7849 else
7850 offload_targets="$offload_targets,$tgt"
7851 fi
7852 done
7853
7854 cat >>confdefs.h <<_ACEOF
7855 #define OFFLOAD_TARGETS "$offload_targets"
7856 _ACEOF
7857
7858 if test x"$enable_offloading" != x; then
7859
7860 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7861
7862 else
7863
7864 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7865
7866 fi
7867
7868 if test x"$enable_hsa" = x1 ; then
7869
7870 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7871
7872 fi
7873
7874
7875 # Check whether --with-multilib-list was given.
7876 if test "${with_multilib_list+set}" = set; then :
7877 withval=$with_multilib_list; :
7878 else
7879 with_multilib_list=default
7880 fi
7881
7882
7883 # -------------------------
7884 # Checks for other programs
7885 # -------------------------
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7888 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7889 set x ${MAKE-make}
7890 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7891 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 cat >conftest.make <<\_ACEOF
7895 SHELL = /bin/sh
7896 all:
7897 @echo '@@@%%%=$(MAKE)=@@@%%%'
7898 _ACEOF
7899 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7900 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7901 *@@@%%%=?*=@@@%%%*)
7902 eval ac_cv_prog_make_${ac_make}_set=yes;;
7903 *)
7904 eval ac_cv_prog_make_${ac_make}_set=no;;
7905 esac
7906 rm -f conftest.make
7907 fi
7908 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7910 $as_echo "yes" >&6; }
7911 SET_MAKE=
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 SET_MAKE="MAKE=${MAKE-make}"
7916 fi
7917
7918
7919 # Find some useful tools
7920 for ac_prog in gawk mawk nawk awk
7921 do
7922 # Extract the first word of "$ac_prog", so it can be a program name with args.
7923 set dummy $ac_prog; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if ${ac_cv_prog_AWK+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 if test -n "$AWK"; then
7930 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7934 do
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7939 ac_cv_prog_AWK="$ac_prog"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7942 fi
7943 done
7944 done
7945 IFS=$as_save_IFS
7946
7947 fi
7948 fi
7949 AWK=$ac_cv_prog_AWK
7950 if test -n "$AWK"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7952 $as_echo "$AWK" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7956 fi
7957
7958
7959 test -n "$AWK" && break
7960 done
7961
7962 # We need awk to create options.c and options.h.
7963 # Bail out if it's missing.
7964 case ${AWK} in
7965 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
7966 esac
7967
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7969 $as_echo_n "checking whether ln -s works... " >&6; }
7970 if ${gcc_cv_prog_LN_S+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 rm -f conftestdata_t
7974 echo >conftestdata_f
7975 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7976 then
7977 gcc_cv_prog_LN_S="ln -s"
7978 else
7979 if ln conftestdata_f conftestdata_t 2>/dev/null
7980 then
7981 gcc_cv_prog_LN_S=ln
7982 else
7983 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7984 then
7985 gcc_cv_prog_LN_S="cp -p"
7986 else
7987 gcc_cv_prog_LN_S=cp
7988 fi
7989 fi
7990 fi
7991 rm -f conftestdata_f conftestdata_t
7992
7993 fi
7994 LN_S="$gcc_cv_prog_LN_S"
7995 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7997 $as_echo "yes" >&6; }
7998 else
7999 if test "$gcc_cv_prog_LN_S" = "ln"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8001 $as_echo "no, using ln" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8004 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8005 fi
8006 fi
8007
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8009 $as_echo_n "checking whether ln works... " >&6; }
8010 if ${acx_cv_prog_LN+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 rm -f conftestdata_t
8014 echo >conftestdata_f
8015 if ln conftestdata_f conftestdata_t 2>/dev/null
8016 then
8017 acx_cv_prog_LN=ln
8018 else
8019 acx_cv_prog_LN=no
8020 fi
8021 rm -f conftestdata_f conftestdata_t
8022
8023 fi
8024 if test $acx_cv_prog_LN = no; then
8025 LN="$LN_S"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8027 $as_echo "no, using $LN" >&6; }
8028 else
8029 LN="$acx_cv_prog_LN"
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8031 $as_echo "yes" >&6; }
8032 fi
8033
8034 if test -n "$ac_tool_prefix"; then
8035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_prog_RANLIB+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 if test -n "$RANLIB"; then
8043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8055 fi
8056 done
8057 done
8058 IFS=$as_save_IFS
8059
8060 fi
8061 fi
8062 RANLIB=$ac_cv_prog_RANLIB
8063 if test -n "$RANLIB"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8065 $as_echo "$RANLIB" >&6; }
8066 else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8069 fi
8070
8071
8072 fi
8073 if test -z "$ac_cv_prog_RANLIB"; then
8074 ac_ct_RANLIB=$RANLIB
8075 # Extract the first word of "ranlib", so it can be a program name with args.
8076 set dummy ranlib; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 if test -n "$ac_ct_RANLIB"; then
8083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_ac_ct_RANLIB="ranlib"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096 done
8097 done
8098 IFS=$as_save_IFS
8099
8100 fi
8101 fi
8102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8103 if test -n "$ac_ct_RANLIB"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8105 $as_echo "$ac_ct_RANLIB" >&6; }
8106 else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8109 fi
8110
8111 if test "x$ac_ct_RANLIB" = x; then
8112 RANLIB=":"
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115 yes:)
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118 ac_tool_warned=yes ;;
8119 esac
8120 RANLIB=$ac_ct_RANLIB
8121 fi
8122 else
8123 RANLIB="$ac_cv_prog_RANLIB"
8124 fi
8125
8126 ranlib_flags=""
8127
8128
8129 # Find a good install program. We prefer a C program (faster),
8130 # so one script is as good as another. But avoid the broken or
8131 # incompatible versions:
8132 # SysV /etc/install, /usr/sbin/install
8133 # SunOS /usr/etc/install
8134 # IRIX /sbin/install
8135 # AIX /bin/install
8136 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8138 # ./install, which can be erroneously created by make from ./install.sh.
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8140 $as_echo_n "checking for a BSD compatible install... " >&6; }
8141 if test -z "$INSTALL"; then
8142 if ${ac_cv_path_install+:} false; then :
8143 $as_echo_n "(cached) " >&6
8144 else
8145 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8146 for ac_dir in $PATH; do
8147 # Account for people who put trailing slashes in PATH elements.
8148 case "$ac_dir/" in
8149 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8150 *)
8151 # OSF1 and SCO ODT 3.0 have their own names for install.
8152 for ac_prog in ginstall scoinst install; do
8153 if test -f $ac_dir/$ac_prog; then
8154 if test $ac_prog = install &&
8155 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8156 # AIX install. It has an incompatible calling convention.
8157 # OSF/1 installbsd also uses dspmsg, but is usable.
8158 :
8159 else
8160 ac_cv_path_install="$ac_dir/$ac_prog -c"
8161 break 2
8162 fi
8163 fi
8164 done
8165 ;;
8166 esac
8167 done
8168 IFS="$ac_save_IFS"
8169
8170 fi
8171 if test "${ac_cv_path_install+set}" = set; then
8172 INSTALL="$ac_cv_path_install"
8173 else
8174 # As a last resort, use the slow shell script. We don't cache a
8175 # path for INSTALL within a source directory, because that will
8176 # break other packages using the cache if that directory is
8177 # removed, or if the path is relative.
8178 INSTALL="$ac_install_sh"
8179 fi
8180 fi
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8182 $as_echo "$INSTALL" >&6; }
8183
8184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8185 # It thinks the first close brace ends the variable substitution.
8186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8187
8188 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8189
8190
8191 # See if cmp has --ignore-initial.
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8193 $as_echo_n "checking for cmp's capabilities... " >&6; }
8194 if ${gcc_cv_prog_cmp_skip+:} false; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 echo abfoo >t1
8198 echo cdfoo >t2
8199 gcc_cv_prog_cmp_skip=slowcompare
8200 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8201 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8202 :
8203 else
8204 gcc_cv_prog_cmp_skip=gnucompare
8205 fi
8206 fi
8207 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8208 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8209 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8210 :
8211 else
8212 gcc_cv_prog_cmp_skip=fastcompare
8213 fi
8214 fi
8215 fi
8216 rm t1 t2
8217
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8220 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8221 make_compare_target=$gcc_cv_prog_cmp_skip
8222
8223
8224
8225 # See if we have the mktemp command.
8226 # Extract the first word of "mktemp", so it can be a program name with args.
8227 set dummy mktemp; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 if test -n "$have_mktemp_command"; then
8234 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8235 else
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8238 do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8243 ac_cv_prog_have_mktemp_command="yes"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8246 fi
8247 done
8248 done
8249 IFS=$as_save_IFS
8250
8251 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8252 fi
8253 fi
8254 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8255 if test -n "$have_mktemp_command"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8257 $as_echo "$have_mktemp_command" >&6; }
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8261 fi
8262
8263
8264
8265 # See if makeinfo has been installed and is modern enough
8266 # that we can use it.
8267
8268 # Extract the first word of "makeinfo", so it can be a program name with args.
8269 set dummy makeinfo; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if ${ac_cv_prog_MAKEINFO+:} false; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 if test -n "$MAKEINFO"; then
8276 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285 ac_cv_prog_MAKEINFO="makeinfo"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8288 fi
8289 done
8290 done
8291 IFS=$as_save_IFS
8292
8293 fi
8294 fi
8295 MAKEINFO=$ac_cv_prog_MAKEINFO
8296 if test -n "$MAKEINFO"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8298 $as_echo "$MAKEINFO" >&6; }
8299 else
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8302 fi
8303
8304
8305 if test -n "$MAKEINFO"; then
8306 # Found it, now check the version.
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8308 $as_echo_n "checking for modern makeinfo... " >&6; }
8309 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8313 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8314
8315 case $ac_prog_version in
8316 '') gcc_cv_prog_makeinfo_modern=no;;
8317 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8318 *) gcc_cv_prog_makeinfo_modern=no;;
8319 esac
8320
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8323 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8324 else
8325 gcc_cv_prog_makeinfo_modern=no
8326 fi
8327 if test $gcc_cv_prog_makeinfo_modern = no; then
8328 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8329 fi
8330
8331 if test $gcc_cv_prog_makeinfo_modern = no; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8333 *** Makeinfo is missing or too old.
8334 *** Info documentation will not be built." >&5
8335 $as_echo "$as_me: WARNING:
8336 *** Makeinfo is missing or too old.
8337 *** Info documentation will not be built." >&2;}
8338 BUILD_INFO=
8339 else
8340 BUILD_INFO=info
8341 fi
8342
8343
8344 # Is pod2man recent enough to regenerate manpages?
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8346 $as_echo_n "checking for recent Pod::Man... " >&6; }
8347 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8349 $as_echo "yes" >&6; }
8350 GENERATED_MANPAGES=generated-manpages
8351 else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8354 GENERATED_MANPAGES=
8355 fi
8356
8357
8358 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8359
8360 # How about lex?
8361 for ac_prog in flex
8362 do
8363 # Extract the first word of "$ac_prog", so it can be a program name with args.
8364 set dummy $ac_prog; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if ${ac_cv_prog_FLEX+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 if test -n "$FLEX"; then
8371 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_FLEX="$ac_prog"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384 done
8385 done
8386 IFS=$as_save_IFS
8387
8388 fi
8389 fi
8390 FLEX=$ac_cv_prog_FLEX
8391 if test -n "$FLEX"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8393 $as_echo "$FLEX" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8397 fi
8398
8399
8400 test -n "$FLEX" && break
8401 done
8402 test -n "$FLEX" || FLEX="$MISSING flex"
8403
8404
8405 # Bison?
8406 for ac_prog in bison
8407 do
8408 # Extract the first word of "$ac_prog", so it can be a program name with args.
8409 set dummy $ac_prog; ac_word=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if ${ac_cv_prog_BISON+:} false; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 if test -n "$BISON"; then
8416 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8417 else
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8420 do
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8425 ac_cv_prog_BISON="$ac_prog"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 break 2
8428 fi
8429 done
8430 done
8431 IFS=$as_save_IFS
8432
8433 fi
8434 fi
8435 BISON=$ac_cv_prog_BISON
8436 if test -n "$BISON"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8438 $as_echo "$BISON" >&6; }
8439 else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8442 fi
8443
8444
8445 test -n "$BISON" && break
8446 done
8447 test -n "$BISON" || BISON="$MISSING bison"
8448
8449
8450 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8451 # check for build == host before using them.
8452
8453 # NM
8454 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8455 && test -d ../binutils ; then
8456 NM='${objdir}/../binutils/nm-new'
8457 else
8458 # Extract the first word of "nm", so it can be a program name with args.
8459 set dummy nm; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if ${ac_cv_prog_NM+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 if test -n "$NM"; then
8466 ac_cv_prog_NM="$NM" # Let the user override the test.
8467 else
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8470 do
8471 IFS=$as_save_IFS
8472 test -z "$as_dir" && as_dir=.
8473 for ac_exec_ext in '' $ac_executable_extensions; do
8474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8475 ac_cv_prog_NM="nm"
8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477 break 2
8478 fi
8479 done
8480 done
8481 IFS=$as_save_IFS
8482
8483 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8484 fi
8485 fi
8486 NM=$ac_cv_prog_NM
8487 if test -n "$NM"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8489 $as_echo "$NM" >&6; }
8490 else
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8493 fi
8494
8495
8496 fi
8497
8498 # AR
8499 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8500 && test -d ../binutils ; then
8501 AR='${objdir}/../binutils/ar'
8502 else
8503 # Extract the first word of "ar", so it can be a program name with args.
8504 set dummy ar; ac_word=$2
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506 $as_echo_n "checking for $ac_word... " >&6; }
8507 if ${ac_cv_prog_AR+:} false; then :
8508 $as_echo_n "(cached) " >&6
8509 else
8510 if test -n "$AR"; then
8511 ac_cv_prog_AR="$AR" # Let the user override the test.
8512 else
8513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 for as_dir in $PATH
8515 do
8516 IFS=$as_save_IFS
8517 test -z "$as_dir" && as_dir=.
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8520 ac_cv_prog_AR="ar"
8521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 break 2
8523 fi
8524 done
8525 done
8526 IFS=$as_save_IFS
8527
8528 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8529 fi
8530 fi
8531 AR=$ac_cv_prog_AR
8532 if test -n "$AR"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8534 $as_echo "$AR" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8538 fi
8539
8540
8541 fi
8542
8543 # The jit documentation looks better if built with sphinx, but can be
8544 # built with texinfo if sphinx is not available.
8545 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8546 # Extract the first word of "sphinx-build", so it can be a program name with args.
8547 set dummy sphinx-build; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_doc_build_sys+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 if test -n "$doc_build_sys"; then
8554 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8555 else
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8558 do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_doc_build_sys="sphinx"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8566 fi
8567 done
8568 done
8569 IFS=$as_save_IFS
8570
8571 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8572 fi
8573 fi
8574 doc_build_sys=$ac_cv_prog_doc_build_sys
8575 if test -n "$doc_build_sys"; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8577 $as_echo "$doc_build_sys" >&6; }
8578 else
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8581 fi
8582
8583
8584
8585 # --------------------
8586 # Checks for C headers
8587 # --------------------
8588
8589 # Need to reject headers which give warnings, so that the -Werror bootstrap
8590 # works later. *sigh* This needs to come before all header checks.
8591
8592 ac_c_preproc_warn_flag=yes
8593
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8595 $as_echo_n "checking for ANSI C header files... " >&6; }
8596 if ${ac_cv_header_stdc+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8601 #include <stdlib.h>
8602 #include <stdarg.h>
8603 #include <string.h>
8604 #include <float.h>
8605
8606 int
8607 main ()
8608 {
8609
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 if ac_fn_cxx_try_compile "$LINENO"; then :
8615 ac_cv_header_stdc=yes
8616 else
8617 ac_cv_header_stdc=no
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620
8621 if test $ac_cv_header_stdc = yes; then
8622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625 #include <string.h>
8626
8627 _ACEOF
8628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8629 $EGREP "memchr" >/dev/null 2>&1; then :
8630
8631 else
8632 ac_cv_header_stdc=no
8633 fi
8634 rm -f conftest*
8635
8636 fi
8637
8638 if test $ac_cv_header_stdc = yes; then
8639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #include <stdlib.h>
8643
8644 _ACEOF
8645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8646 $EGREP "free" >/dev/null 2>&1; then :
8647
8648 else
8649 ac_cv_header_stdc=no
8650 fi
8651 rm -f conftest*
8652
8653 fi
8654
8655 if test $ac_cv_header_stdc = yes; then
8656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8657 if test "$cross_compiling" = yes; then :
8658 :
8659 else
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #include <ctype.h>
8663 #include <stdlib.h>
8664 #if ((' ' & 0x0FF) == 0x020)
8665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8667 #else
8668 # define ISLOWER(c) \
8669 (('a' <= (c) && (c) <= 'i') \
8670 || ('j' <= (c) && (c) <= 'r') \
8671 || ('s' <= (c) && (c) <= 'z'))
8672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8673 #endif
8674
8675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8676 int
8677 main ()
8678 {
8679 int i;
8680 for (i = 0; i < 256; i++)
8681 if (XOR (islower (i), ISLOWER (i))
8682 || toupper (i) != TOUPPER (i))
8683 return 2;
8684 return 0;
8685 }
8686 _ACEOF
8687 if ac_fn_cxx_try_run "$LINENO"; then :
8688
8689 else
8690 ac_cv_header_stdc=no
8691 fi
8692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8693 conftest.$ac_objext conftest.beam conftest.$ac_ext
8694 fi
8695
8696 fi
8697 fi
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8699 $as_echo "$ac_cv_header_stdc" >&6; }
8700 if test $ac_cv_header_stdc = yes; then
8701
8702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8703
8704 fi
8705
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8707 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8708 if ${ac_cv_header_time+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 #include <sys/types.h>
8714 #include <sys/time.h>
8715 #include <time.h>
8716
8717 int
8718 main ()
8719 {
8720 if ((struct tm *) 0)
8721 return 0;
8722 ;
8723 return 0;
8724 }
8725 _ACEOF
8726 if ac_fn_cxx_try_compile "$LINENO"; then :
8727 ac_cv_header_time=yes
8728 else
8729 ac_cv_header_time=no
8730 fi
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8734 $as_echo "$ac_cv_header_time" >&6; }
8735 if test $ac_cv_header_time = yes; then
8736
8737 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8738
8739 fi
8740
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8742 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8743 if ${gcc_cv_header_string+:} false; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748 #include <string.h>
8749 #include <strings.h>
8750 int
8751 main ()
8752 {
8753
8754 ;
8755 return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_cxx_try_compile "$LINENO"; then :
8759 gcc_cv_header_string=yes
8760 else
8761 gcc_cv_header_string=no
8762 fi
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 fi
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8766 $as_echo "$gcc_cv_header_string" >&6; }
8767 if test $gcc_cv_header_string = yes; then
8768
8769 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8770
8771 fi
8772
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8774 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8775 if ${ac_cv_header_sys_wait_h+:} false; then :
8776 $as_echo_n "(cached) " >&6
8777 else
8778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779 /* end confdefs.h. */
8780 #include <sys/types.h>
8781 #include <sys/wait.h>
8782 #ifndef WEXITSTATUS
8783 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8784 #endif
8785 #ifndef WIFEXITED
8786 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8787 #endif
8788
8789 int
8790 main ()
8791 {
8792 int s;
8793 wait (&s);
8794 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8795 ;
8796 return 0;
8797 }
8798 _ACEOF
8799 if ac_fn_cxx_try_compile "$LINENO"; then :
8800 ac_cv_header_sys_wait_h=yes
8801 else
8802 ac_cv_header_sys_wait_h=no
8803 fi
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 fi
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8807 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8808 if test $ac_cv_header_sys_wait_h = yes; then
8809
8810 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8811
8812 fi
8813
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8815 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8816 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8821 #include <sys/types.h>
8822 #include <termios.h>
8823 #ifdef TIOCGWINSZ
8824 yes
8825 #endif
8826
8827 _ACEOF
8828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8829 $EGREP "yes" >/dev/null 2>&1; then :
8830 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8831 else
8832 ac_cv_sys_tiocgwinsz_in_termios_h=no
8833 fi
8834 rm -f conftest*
8835
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8838 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8839
8840 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8842 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8843 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848 #include <sys/types.h>
8849 #include <sys/ioctl.h>
8850 #ifdef TIOCGWINSZ
8851 yes
8852 #endif
8853
8854 _ACEOF
8855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8856 $EGREP "yes" >/dev/null 2>&1; then :
8857 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8858 else
8859 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8860 fi
8861 rm -f conftest*
8862
8863 fi
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8865 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8866
8867 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8868
8869 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8870
8871 fi
8872 fi
8873
8874 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8875 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8876 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8877 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8878 do :
8879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8880 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8881 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8882 cat >>confdefs.h <<_ACEOF
8883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8884 _ACEOF
8885
8886 fi
8887 done
8888
8889
8890 # Check for thread headers.
8891 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8892 if test "x$ac_cv_header_thread_h" = xyes; then :
8893 have_thread_h=yes
8894 else
8895 have_thread_h=
8896 fi
8897
8898 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8899 if test "x$ac_cv_header_pthread_h" = xyes; then :
8900 have_pthread_h=yes
8901 else
8902 have_pthread_h=
8903 fi
8904
8905
8906 # These tests can't be done till we know if we have limits.h.
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8908 $as_echo_n "checking for CHAR_BIT... " >&6; }
8909 if ${gcc_cv_decl_char_bit+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #ifdef HAVE_LIMITS_H
8915 #include <limits.h>
8916 #endif
8917 #ifdef CHAR_BIT
8918 found
8919 #endif
8920 _ACEOF
8921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8922 $EGREP "found" >/dev/null 2>&1; then :
8923 gcc_cv_decl_char_bit=yes
8924 else
8925 gcc_cv_decl_char_bit=no
8926 fi
8927 rm -f conftest*
8928
8929
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8932 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8933 if test $gcc_cv_decl_char_bit = no; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8935 $as_echo_n "checking number of bits in a byte... " >&6; }
8936 if ${gcc_cv_c_nbby+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938 else
8939 i=8
8940 gcc_cv_c_nbby=
8941 while test $i -lt 65; do
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944
8945 int
8946 main ()
8947 {
8948 switch(0) {
8949 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8950 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8951 ; }
8952 ;
8953 return 0;
8954 }
8955 _ACEOF
8956 if ac_fn_cxx_try_compile "$LINENO"; then :
8957 gcc_cv_c_nbby=$i; break
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 i=`expr $i + 1`
8961 done
8962 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8963
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8966 $as_echo "$gcc_cv_c_nbby" >&6; }
8967 if test $gcc_cv_c_nbby = failed; then
8968 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
8969 else
8970
8971 cat >>confdefs.h <<_ACEOF
8972 #define CHAR_BIT $gcc_cv_c_nbby
8973 _ACEOF
8974
8975 fi
8976 fi
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8978 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8979 if ${ac_cv_c_bigendian+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 ac_cv_c_bigendian=unknown
8983 # See if we're dealing with a universal compiler.
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 #ifndef __APPLE_CC__
8987 not a universal capable compiler
8988 #endif
8989 typedef int dummy;
8990
8991 _ACEOF
8992 if ac_fn_cxx_try_compile "$LINENO"; then :
8993
8994 # Check for potential -arch flags. It is not universal unless
8995 # there are at least two -arch flags with different values.
8996 ac_arch=
8997 ac_prev=
8998 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8999 if test -n "$ac_prev"; then
9000 case $ac_word in
9001 i?86 | x86_64 | ppc | ppc64)
9002 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9003 ac_arch=$ac_word
9004 else
9005 ac_cv_c_bigendian=universal
9006 break
9007 fi
9008 ;;
9009 esac
9010 ac_prev=
9011 elif test "x$ac_word" = "x-arch"; then
9012 ac_prev=arch
9013 fi
9014 done
9015 fi
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 if test $ac_cv_c_bigendian = unknown; then
9018 # See if sys/param.h defines the BYTE_ORDER macro.
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 #include <sys/types.h>
9022 #include <sys/param.h>
9023
9024 int
9025 main ()
9026 {
9027 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9028 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9029 && LITTLE_ENDIAN)
9030 bogus endian macros
9031 #endif
9032
9033 ;
9034 return 0;
9035 }
9036 _ACEOF
9037 if ac_fn_cxx_try_compile "$LINENO"; then :
9038 # It does; now see whether it defined to BIG_ENDIAN or not.
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9041 #include <sys/types.h>
9042 #include <sys/param.h>
9043
9044 int
9045 main ()
9046 {
9047 #if BYTE_ORDER != BIG_ENDIAN
9048 not big endian
9049 #endif
9050
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_cxx_try_compile "$LINENO"; then :
9056 ac_cv_c_bigendian=yes
9057 else
9058 ac_cv_c_bigendian=no
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 fi
9064 if test $ac_cv_c_bigendian = unknown; then
9065 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 #include <limits.h>
9069
9070 int
9071 main ()
9072 {
9073 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9074 bogus endian macros
9075 #endif
9076
9077 ;
9078 return 0;
9079 }
9080 _ACEOF
9081 if ac_fn_cxx_try_compile "$LINENO"; then :
9082 # It does; now see whether it defined to _BIG_ENDIAN or not.
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085 #include <limits.h>
9086
9087 int
9088 main ()
9089 {
9090 #ifndef _BIG_ENDIAN
9091 not big endian
9092 #endif
9093
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 if ac_fn_cxx_try_compile "$LINENO"; then :
9099 ac_cv_c_bigendian=yes
9100 else
9101 ac_cv_c_bigendian=no
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 fi
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 fi
9107 if test $ac_cv_c_bigendian = unknown; then
9108 # Compile a test program.
9109 if test "$cross_compiling" = yes; then :
9110 # Try to guess by grepping values from an object file.
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 short int ascii_mm[] =
9114 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9115 short int ascii_ii[] =
9116 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9117 int use_ascii (int i) {
9118 return ascii_mm[i] + ascii_ii[i];
9119 }
9120 short int ebcdic_ii[] =
9121 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9122 short int ebcdic_mm[] =
9123 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9124 int use_ebcdic (int i) {
9125 return ebcdic_mm[i] + ebcdic_ii[i];
9126 }
9127 extern int foo;
9128
9129 int
9130 main ()
9131 {
9132 return use_ascii (foo) == use_ebcdic (foo);
9133 ;
9134 return 0;
9135 }
9136 _ACEOF
9137 if ac_fn_cxx_try_compile "$LINENO"; then :
9138 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9139 ac_cv_c_bigendian=yes
9140 fi
9141 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9142 if test "$ac_cv_c_bigendian" = unknown; then
9143 ac_cv_c_bigendian=no
9144 else
9145 # finding both strings is unlikely to happen, but who knows?
9146 ac_cv_c_bigendian=unknown
9147 fi
9148 fi
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 else
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 $ac_includes_default
9155 int
9156 main ()
9157 {
9158
9159 /* Are we little or big endian? From Harbison&Steele. */
9160 union
9161 {
9162 long int l;
9163 char c[sizeof (long int)];
9164 } u;
9165 u.l = 1;
9166 return u.c[sizeof (long int) - 1] == 1;
9167
9168 ;
9169 return 0;
9170 }
9171 _ACEOF
9172 if ac_fn_cxx_try_run "$LINENO"; then :
9173 ac_cv_c_bigendian=no
9174 else
9175 ac_cv_c_bigendian=yes
9176 fi
9177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9178 conftest.$ac_objext conftest.beam conftest.$ac_ext
9179 fi
9180
9181 fi
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9184 $as_echo "$ac_cv_c_bigendian" >&6; }
9185 case $ac_cv_c_bigendian in #(
9186 yes)
9187 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9188 ;; #(
9189 no)
9190 ;; #(
9191 universal)
9192
9193 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9194
9195 ;; #(
9196 *)
9197 as_fn_error $? "unknown endianness
9198 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9199 esac
9200
9201
9202 # ----------------------
9203 # Checks for C++ headers
9204 # ----------------------
9205
9206 ac_ext=cpp
9207 ac_cpp='$CXXCPP $CPPFLAGS'
9208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9212 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9213 if test -z "$CXXCPP"; then
9214 if ${ac_cv_prog_CXXCPP+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 # Double quotes because CXXCPP needs to be expanded
9218 for CXXCPP in "$CXX -E" "/lib/cpp"
9219 do
9220 ac_preproc_ok=false
9221 for ac_cxx_preproc_warn_flag in '' yes
9222 do
9223 # Use a header file that comes with gcc, so configuring glibc
9224 # with a fresh cross-compiler works.
9225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9226 # <limits.h> exists even on freestanding compilers.
9227 # On the NeXT, cc -E runs the code through the compiler's parser,
9228 # not just through cpp. "Syntax error" is here to catch this case.
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 #ifdef __STDC__
9232 # include <limits.h>
9233 #else
9234 # include <assert.h>
9235 #endif
9236 Syntax error
9237 _ACEOF
9238 if ac_fn_cxx_try_cpp "$LINENO"; then :
9239
9240 else
9241 # Broken: fails on valid input.
9242 continue
9243 fi
9244 rm -f conftest.err conftest.i conftest.$ac_ext
9245
9246 # OK, works on sane cases. Now check whether nonexistent headers
9247 # can be detected and how.
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 #include <ac_nonexistent.h>
9251 _ACEOF
9252 if ac_fn_cxx_try_cpp "$LINENO"; then :
9253 # Broken: success on invalid input.
9254 continue
9255 else
9256 # Passes both tests.
9257 ac_preproc_ok=:
9258 break
9259 fi
9260 rm -f conftest.err conftest.i conftest.$ac_ext
9261
9262 done
9263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9264 rm -f conftest.i conftest.err conftest.$ac_ext
9265 if $ac_preproc_ok; then :
9266 break
9267 fi
9268
9269 done
9270 ac_cv_prog_CXXCPP=$CXXCPP
9271
9272 fi
9273 CXXCPP=$ac_cv_prog_CXXCPP
9274 else
9275 ac_cv_prog_CXXCPP=$CXXCPP
9276 fi
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9278 $as_echo "$CXXCPP" >&6; }
9279 ac_preproc_ok=false
9280 for ac_cxx_preproc_warn_flag in '' yes
9281 do
9282 # Use a header file that comes with gcc, so configuring glibc
9283 # with a fresh cross-compiler works.
9284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9285 # <limits.h> exists even on freestanding compilers.
9286 # On the NeXT, cc -E runs the code through the compiler's parser,
9287 # not just through cpp. "Syntax error" is here to catch this case.
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 #ifdef __STDC__
9291 # include <limits.h>
9292 #else
9293 # include <assert.h>
9294 #endif
9295 Syntax error
9296 _ACEOF
9297 if ac_fn_cxx_try_cpp "$LINENO"; then :
9298
9299 else
9300 # Broken: fails on valid input.
9301 continue
9302 fi
9303 rm -f conftest.err conftest.i conftest.$ac_ext
9304
9305 # OK, works on sane cases. Now check whether nonexistent headers
9306 # can be detected and how.
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 #include <ac_nonexistent.h>
9310 _ACEOF
9311 if ac_fn_cxx_try_cpp "$LINENO"; then :
9312 # Broken: success on invalid input.
9313 continue
9314 else
9315 # Passes both tests.
9316 ac_preproc_ok=:
9317 break
9318 fi
9319 rm -f conftest.err conftest.i conftest.$ac_ext
9320
9321 done
9322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9323 rm -f conftest.i conftest.err conftest.$ac_ext
9324 if $ac_preproc_ok; then :
9325
9326 else
9327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9330 See \`config.log' for more details" >&5
9331 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9332 See \`config.log' for more details" >&2;}; }
9333 fi
9334
9335 ac_ext=cpp
9336 ac_cpp='$CXXCPP $CPPFLAGS'
9337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9340
9341
9342 for ac_header in unordered_map
9343 do :
9344 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9345 if test "x$ac_cv_header_unordered_map" = xyes; then :
9346 cat >>confdefs.h <<_ACEOF
9347 #define HAVE_UNORDERED_MAP 1
9348 _ACEOF
9349
9350 fi
9351 done
9352
9353 for ac_header in tr1/unordered_map
9354 do :
9355 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9356 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9357 cat >>confdefs.h <<_ACEOF
9358 #define HAVE_TR1_UNORDERED_MAP 1
9359 _ACEOF
9360
9361 fi
9362 done
9363
9364 for ac_header in ext/hash_map
9365 do :
9366 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9367 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9368 cat >>confdefs.h <<_ACEOF
9369 #define HAVE_EXT_HASH_MAP 1
9370 _ACEOF
9371
9372 fi
9373 done
9374
9375
9376 # --------
9377 # Dependency checking.
9378 # --------
9379
9380 rm -rf .tst 2>/dev/null
9381 mkdir .tst 2>/dev/null
9382 if test -d .tst; then
9383 am__leading_dot=.
9384 else
9385 am__leading_dot=_
9386 fi
9387 rmdir .tst 2>/dev/null
9388
9389 DEPDIR="${am__leading_dot}deps"
9390
9391 ac_config_commands="$ac_config_commands depdir"
9392
9393
9394 ac_config_commands="$ac_config_commands gccdepdir"
9395
9396
9397 depcc="$CXX" am_compiler_list=
9398
9399 am_depcomp=$ac_aux_dir/depcomp
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9401 $as_echo_n "checking dependency style of $depcc... " >&6; }
9402 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 if test -f "$am_depcomp"; then
9406 # We make a subdir and do the tests there. Otherwise we can end up
9407 # making bogus files that we don't know about and never remove. For
9408 # instance it was reported that on HP-UX the gcc test will end up
9409 # making a dummy file named `D' -- because `-MD' means `put the output
9410 # in D'.
9411 mkdir conftest.dir
9412 # Copy depcomp to subdir because otherwise we won't find it if we're
9413 # using a relative directory.
9414 cp "$am_depcomp" conftest.dir
9415 cd conftest.dir
9416 # We will build objects and dependencies in a subdirectory because
9417 # it helps to detect inapplicable dependency modes. For instance
9418 # both Tru64's cc and ICC support -MD to output dependencies as a
9419 # side effect of compilation, but ICC will put the dependencies in
9420 # the current directory while Tru64 will put them in the object
9421 # directory.
9422 mkdir sub
9423
9424 am_cv_CXX_dependencies_compiler_type=none
9425 if test "$am_compiler_list" = ""; then
9426 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9427 fi
9428 for depmode in $am_compiler_list; do
9429 if test $depmode = none; then break; fi
9430
9431 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9432 # Setup a source with many dependencies, because some compilers
9433 # like to wrap large dependency lists on column 80 (with \), and
9434 # we should not choose a depcomp mode which is confused by this.
9435 #
9436 # We need to recreate these files for each test, as the compiler may
9437 # overwrite some of them when testing with obscure command lines.
9438 # This happens at least with the AIX C compiler.
9439 : > sub/conftest.c
9440 for i in 1 2 3 4 5 6; do
9441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9443 # Solaris 8's {/usr,}/bin/sh.
9444 touch sub/conftst$i.h
9445 done
9446 echo "include sub/conftest.Po" > confmf
9447
9448 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9449 # mode. It turns out that the SunPro C++ compiler does not properly
9450 # handle `-M -o', and we need to detect this.
9451 depcmd="depmode=$depmode \
9452 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9453 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9454 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9455 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9456 if env $depcmd > conftest.err 2>&1 &&
9457 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9458 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9459 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9460 # icc doesn't choke on unknown options, it will just issue warnings
9461 # or remarks (even with -Werror). So we grep stderr for any message
9462 # that says an option was ignored or not supported.
9463 # When given -MP, icc 7.0 and 7.1 complain thusly:
9464 # icc: Command line warning: ignoring option '-M'; no argument required
9465 # The diagnosis changed in icc 8.0:
9466 # icc: Command line remark: option '-MP' not supported
9467 if (grep 'ignoring option' conftest.err ||
9468 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9469 am_cv_CXX_dependencies_compiler_type=$depmode
9470 $as_echo "$as_me:$LINENO: success" >&5
9471 break
9472 fi
9473 fi
9474 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9475 sed -e 's/^/| /' < conftest.err >&5
9476 done
9477
9478 cd ..
9479 rm -rf conftest.dir
9480 else
9481 am_cv_CXX_dependencies_compiler_type=none
9482 fi
9483
9484 fi
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9486 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9487 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9488 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9489 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9490
9491 fi
9492
9493
9494 # --------
9495 # UNSORTED
9496 # --------
9497
9498
9499 # These libraries may be used by collect2.
9500 # We may need a special search path to get them linked.
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9502 $as_echo_n "checking for collect2 libraries... " >&6; }
9503 if ${gcc_cv_collect2_libs+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 save_LIBS="$LIBS"
9507 for libs in '' -lld -lmld \
9508 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9509 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9510 do
9511 LIBS="$libs"
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 char ldopen ();
9522 int
9523 main ()
9524 {
9525 return ldopen ();
9526 ;
9527 return 0;
9528 }
9529 _ACEOF
9530 if ac_fn_cxx_try_link "$LINENO"; then :
9531 gcc_cv_collect2_libs="$libs"; break
9532 fi
9533 rm -f core conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 done
9536 LIBS="$save_LIBS"
9537 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9538 fi
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9540 $as_echo "$gcc_cv_collect2_libs" >&6; }
9541 case $gcc_cv_collect2_libs in
9542 "none required") ;;
9543 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9544 esac
9545
9546
9547 # When building Ada code on Alpha, we need exc_resume which is usually in
9548 # -lexc. So test for it.
9549 save_LIBS="$LIBS"
9550 LIBS=
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9552 $as_echo_n "checking for library containing exc_resume... " >&6; }
9553 if ${ac_cv_search_exc_resume+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 ac_func_search_save_LIBS=$LIBS
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559
9560 /* Override any GCC internal prototype to avoid an error.
9561 Use char because int might match the return type of a GCC
9562 builtin and then its argument prototype would still apply. */
9563 #ifdef __cplusplus
9564 extern "C"
9565 #endif
9566 char exc_resume ();
9567 int
9568 main ()
9569 {
9570 return exc_resume ();
9571 ;
9572 return 0;
9573 }
9574 _ACEOF
9575 for ac_lib in '' exc; do
9576 if test -z "$ac_lib"; then
9577 ac_res="none required"
9578 else
9579 ac_res=-l$ac_lib
9580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9581 fi
9582 if ac_fn_cxx_try_link "$LINENO"; then :
9583 ac_cv_search_exc_resume=$ac_res
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext
9587 if ${ac_cv_search_exc_resume+:} false; then :
9588 break
9589 fi
9590 done
9591 if ${ac_cv_search_exc_resume+:} false; then :
9592
9593 else
9594 ac_cv_search_exc_resume=no
9595 fi
9596 rm conftest.$ac_ext
9597 LIBS=$ac_func_search_save_LIBS
9598 fi
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9600 $as_echo "$ac_cv_search_exc_resume" >&6; }
9601 ac_res=$ac_cv_search_exc_resume
9602 if test "$ac_res" != no; then :
9603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9604
9605 fi
9606
9607 GNAT_LIBEXC="$LIBS"
9608 LIBS="$save_LIBS"
9609
9610
9611 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9612 save_LIBS="$LIBS"
9613 LIBS=
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9615 $as_echo_n "checking for library containing kstat_open... " >&6; }
9616 if ${ac_cv_search_kstat_open+:} false; then :
9617 $as_echo_n "(cached) " >&6
9618 else
9619 ac_func_search_save_LIBS=$LIBS
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622
9623 /* Override any GCC internal prototype to avoid an error.
9624 Use char because int might match the return type of a GCC
9625 builtin and then its argument prototype would still apply. */
9626 #ifdef __cplusplus
9627 extern "C"
9628 #endif
9629 char kstat_open ();
9630 int
9631 main ()
9632 {
9633 return kstat_open ();
9634 ;
9635 return 0;
9636 }
9637 _ACEOF
9638 for ac_lib in '' kstat; do
9639 if test -z "$ac_lib"; then
9640 ac_res="none required"
9641 else
9642 ac_res=-l$ac_lib
9643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9644 fi
9645 if ac_fn_cxx_try_link "$LINENO"; then :
9646 ac_cv_search_kstat_open=$ac_res
9647 fi
9648 rm -f core conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext
9650 if ${ac_cv_search_kstat_open+:} false; then :
9651 break
9652 fi
9653 done
9654 if ${ac_cv_search_kstat_open+:} false; then :
9655
9656 else
9657 ac_cv_search_kstat_open=no
9658 fi
9659 rm conftest.$ac_ext
9660 LIBS=$ac_func_search_save_LIBS
9661 fi
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9663 $as_echo "$ac_cv_search_kstat_open" >&6; }
9664 ac_res=$ac_cv_search_kstat_open
9665 if test "$ac_res" != no; then :
9666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9667
9668 fi
9669
9670 EXTRA_GCC_LIBS="$LIBS"
9671 LIBS="$save_LIBS"
9672
9673
9674 # Some systems put ldexp and frexp in libm instead of libc; assume
9675 # they're both in the same place. jcf-dump needs them.
9676 save_LIBS="$LIBS"
9677 LIBS=
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9679 $as_echo_n "checking for library containing ldexp... " >&6; }
9680 if ${ac_cv_search_ldexp+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 ac_func_search_save_LIBS=$LIBS
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686
9687 /* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
9690 #ifdef __cplusplus
9691 extern "C"
9692 #endif
9693 char ldexp ();
9694 int
9695 main ()
9696 {
9697 return ldexp ();
9698 ;
9699 return 0;
9700 }
9701 _ACEOF
9702 for ac_lib in '' m; do
9703 if test -z "$ac_lib"; then
9704 ac_res="none required"
9705 else
9706 ac_res=-l$ac_lib
9707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9708 fi
9709 if ac_fn_cxx_try_link "$LINENO"; then :
9710 ac_cv_search_ldexp=$ac_res
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext
9714 if ${ac_cv_search_ldexp+:} false; then :
9715 break
9716 fi
9717 done
9718 if ${ac_cv_search_ldexp+:} false; then :
9719
9720 else
9721 ac_cv_search_ldexp=no
9722 fi
9723 rm conftest.$ac_ext
9724 LIBS=$ac_func_search_save_LIBS
9725 fi
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9727 $as_echo "$ac_cv_search_ldexp" >&6; }
9728 ac_res=$ac_cv_search_ldexp
9729 if test "$ac_res" != no; then :
9730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9731
9732 fi
9733
9734 LDEXP_LIB="$LIBS"
9735 LIBS="$save_LIBS"
9736
9737
9738 # Some systems need dlopen
9739 save_LIBS="$LIBS"
9740 LIBS=
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9742 $as_echo_n "checking for library containing dlopen... " >&6; }
9743 if ${ac_cv_search_dlopen+:} false; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 ac_func_search_save_LIBS=$LIBS
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749
9750 /* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 char dlopen ();
9757 int
9758 main ()
9759 {
9760 return dlopen ();
9761 ;
9762 return 0;
9763 }
9764 _ACEOF
9765 for ac_lib in '' dl; do
9766 if test -z "$ac_lib"; then
9767 ac_res="none required"
9768 else
9769 ac_res=-l$ac_lib
9770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9771 fi
9772 if ac_fn_cxx_try_link "$LINENO"; then :
9773 ac_cv_search_dlopen=$ac_res
9774 fi
9775 rm -f core conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext
9777 if ${ac_cv_search_dlopen+:} false; then :
9778 break
9779 fi
9780 done
9781 if ${ac_cv_search_dlopen+:} false; then :
9782
9783 else
9784 ac_cv_search_dlopen=no
9785 fi
9786 rm conftest.$ac_ext
9787 LIBS=$ac_func_search_save_LIBS
9788 fi
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9790 $as_echo "$ac_cv_search_dlopen" >&6; }
9791 ac_res=$ac_cv_search_dlopen
9792 if test "$ac_res" != no; then :
9793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9794
9795 fi
9796
9797 DL_LIB="$LIBS"
9798 LIBS="$save_LIBS"
9799
9800
9801 # Use <inttypes.h> only if it exists,
9802 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9803 # PRId64
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9805 $as_echo_n "checking for inttypes.h... " >&6; }
9806 if ${gcc_cv_header_inttypes_h+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 #define __STDC_FORMAT_MACROS
9812 #include <sys/types.h>
9813 #include <inttypes.h>
9814 int
9815 main ()
9816 {
9817 intmax_t i = -1;
9818 #ifndef PRId64
9819 choke me
9820 #endif
9821 ;
9822 return 0;
9823 }
9824 _ACEOF
9825 if ac_fn_cxx_try_compile "$LINENO"; then :
9826 gcc_cv_header_inttypes_h=yes
9827 else
9828 gcc_cv_header_inttypes_h=no
9829 fi
9830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831 fi
9832
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9834 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9835 if test $gcc_cv_header_inttypes_h = yes; then
9836
9837 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9838
9839 fi
9840
9841
9842
9843 for ac_func in times clock kill getrlimit setrlimit atoq \
9844 popen sysconf strsignal getrusage nl_langinfo \
9845 gettimeofday mbstowcs wcswidth mmap setlocale \
9846 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
9847 do :
9848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9849 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9850 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9851 cat >>confdefs.h <<_ACEOF
9852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9853 _ACEOF
9854
9855 fi
9856 done
9857
9858
9859 if test x$ac_cv_func_mbstowcs = xyes; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9861 $as_echo_n "checking whether mbstowcs works... " >&6; }
9862 if ${gcc_cv_func_mbstowcs_works+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 if test "$cross_compiling" = yes; then :
9866 gcc_cv_func_mbstowcs_works=yes
9867 else
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 #include <stdlib.h>
9871 int main()
9872 {
9873 mbstowcs(0, "", 0);
9874 return 0;
9875 }
9876 _ACEOF
9877 if ac_fn_cxx_try_run "$LINENO"; then :
9878 gcc_cv_func_mbstowcs_works=yes
9879 else
9880 gcc_cv_func_mbstowcs_works=no
9881 fi
9882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9883 conftest.$ac_objext conftest.beam conftest.$ac_ext
9884 fi
9885
9886 fi
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9888 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9889 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9890
9891 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9892
9893 fi
9894 fi
9895
9896 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9897 if test "x$ac_cv_type_ssize_t" = xyes; then :
9898
9899 else
9900
9901 cat >>confdefs.h <<_ACEOF
9902 #define ssize_t int
9903 _ACEOF
9904
9905 fi
9906
9907 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9908 if test "x$ac_cv_type_caddr_t" = xyes; then :
9909
9910 else
9911
9912 cat >>confdefs.h <<_ACEOF
9913 #define caddr_t char *
9914 _ACEOF
9915
9916 fi
9917
9918
9919
9920 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9921 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
9922 gcc_header_sys_mman_h=yes
9923 else
9924 gcc_header_sys_mman_h=no
9925 fi
9926
9927 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9928 if test "x$ac_cv_func_mmap" = xyes; then :
9929 gcc_func_mmap=yes
9930 else
9931 gcc_func_mmap=no
9932 fi
9933
9934 if test "$gcc_header_sys_mman_h" != yes \
9935 || test "$gcc_func_mmap" != yes; then
9936 gcc_cv_func_mmap_file=no
9937 gcc_cv_func_mmap_dev_zero=no
9938 gcc_cv_func_mmap_anon=no
9939 else
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9941 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9942 if ${gcc_cv_func_mmap_file+:} false; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9945 # Add a system to this blacklist if
9946 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9947 # memory area containing the same data that you'd get if you applied
9948 # read() to the same fd. The only system known to have a problem here
9949 # is VMS, where text files have record structure.
9950 case "$host_os" in
9951 *vms* | ultrix*)
9952 gcc_cv_func_mmap_file=no ;;
9953 *)
9954 gcc_cv_func_mmap_file=yes;;
9955 esac
9956 fi
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9958 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9960 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9961 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 # Add a system to this blacklist if it has mmap() but /dev/zero
9965 # does not exist, or if mmapping /dev/zero does not give anonymous
9966 # zeroed pages with both the following properties:
9967 # 1. If you map N consecutive pages in with one call, and then
9968 # unmap any subset of those pages, the pages that were not
9969 # explicitly unmapped remain accessible.
9970 # 2. If you map two adjacent blocks of memory and then unmap them
9971 # both at once, they must both go away.
9972 # Systems known to be in this category are Windows (all variants),
9973 # VMS, and Darwin.
9974 case "$host_os" in
9975 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9976 gcc_cv_func_mmap_dev_zero=no ;;
9977 *)
9978 gcc_cv_func_mmap_dev_zero=yes;;
9979 esac
9980 fi
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9982 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9983
9984 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9986 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9987 if ${gcc_cv_decl_map_anon+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
9992 #include <sys/types.h>
9993 #include <sys/mman.h>
9994 #include <unistd.h>
9995
9996 #ifndef MAP_ANONYMOUS
9997 #define MAP_ANONYMOUS MAP_ANON
9998 #endif
9999
10000 int
10001 main ()
10002 {
10003 int n = MAP_ANONYMOUS;
10004 ;
10005 return 0;
10006 }
10007 _ACEOF
10008 if ac_fn_cxx_try_compile "$LINENO"; then :
10009 gcc_cv_decl_map_anon=yes
10010 else
10011 gcc_cv_decl_map_anon=no
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10016 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10017
10018 if test $gcc_cv_decl_map_anon = no; then
10019 gcc_cv_func_mmap_anon=no
10020 else
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10022 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10023 if ${gcc_cv_func_mmap_anon+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10027 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10028 # doesn't give anonymous zeroed pages with the same properties listed
10029 # above for use of /dev/zero.
10030 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10031 case "$host_os" in
10032 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10033 gcc_cv_func_mmap_anon=no ;;
10034 *)
10035 gcc_cv_func_mmap_anon=yes;;
10036 esac
10037 fi
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10039 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10040 fi
10041 fi
10042
10043 if test $gcc_cv_func_mmap_file = yes; then
10044
10045 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10046
10047 fi
10048 if test $gcc_cv_func_mmap_dev_zero = yes; then
10049
10050 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10051
10052 fi
10053 if test $gcc_cv_func_mmap_anon = yes; then
10054
10055 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10056
10057 fi
10058
10059
10060 case "${host}" in
10061 *-*-*vms*)
10062 # Under VMS, vfork works very differently than on Unix. The standard test
10063 # won't work, and it isn't easily adaptable. It makes more sense to
10064 # just force it.
10065 ac_cv_func_vfork_works=yes
10066 ;;
10067 esac
10068 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10069 if test "x$ac_cv_type_pid_t" = xyes; then :
10070
10071 else
10072
10073 cat >>confdefs.h <<_ACEOF
10074 #define pid_t int
10075 _ACEOF
10076
10077 fi
10078
10079 for ac_header in vfork.h
10080 do :
10081 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10082 if test "x$ac_cv_header_vfork_h" = xyes; then :
10083 cat >>confdefs.h <<_ACEOF
10084 #define HAVE_VFORK_H 1
10085 _ACEOF
10086
10087 fi
10088 done
10089
10090 for ac_func in fork vfork
10091 do :
10092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10093 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10094 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10095 cat >>confdefs.h <<_ACEOF
10096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10097 _ACEOF
10098
10099 fi
10100 done
10101
10102 if test "x$ac_cv_func_fork" = xyes; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10104 $as_echo_n "checking for working fork... " >&6; }
10105 if ${ac_cv_func_fork_works+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 if test "$cross_compiling" = yes; then :
10109 ac_cv_func_fork_works=cross
10110 else
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113 $ac_includes_default
10114 int
10115 main ()
10116 {
10117
10118 /* By Ruediger Kuhlmann. */
10119 return fork () < 0;
10120
10121 ;
10122 return 0;
10123 }
10124 _ACEOF
10125 if ac_fn_cxx_try_run "$LINENO"; then :
10126 ac_cv_func_fork_works=yes
10127 else
10128 ac_cv_func_fork_works=no
10129 fi
10130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10131 conftest.$ac_objext conftest.beam conftest.$ac_ext
10132 fi
10133
10134 fi
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10136 $as_echo "$ac_cv_func_fork_works" >&6; }
10137
10138 else
10139 ac_cv_func_fork_works=$ac_cv_func_fork
10140 fi
10141 if test "x$ac_cv_func_fork_works" = xcross; then
10142 case $host in
10143 *-*-amigaos* | *-*-msdosdjgpp*)
10144 # Override, as these systems have only a dummy fork() stub
10145 ac_cv_func_fork_works=no
10146 ;;
10147 *)
10148 ac_cv_func_fork_works=yes
10149 ;;
10150 esac
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10152 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10153 fi
10154 ac_cv_func_vfork_works=$ac_cv_func_vfork
10155 if test "x$ac_cv_func_vfork" = xyes; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10157 $as_echo_n "checking for working vfork... " >&6; }
10158 if ${ac_cv_func_vfork_works+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 if test "$cross_compiling" = yes; then :
10162 ac_cv_func_vfork_works=cross
10163 else
10164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165 /* end confdefs.h. */
10166 /* Thanks to Paul Eggert for this test. */
10167 $ac_includes_default
10168 #include <sys/wait.h>
10169 #ifdef HAVE_VFORK_H
10170 # include <vfork.h>
10171 #endif
10172 /* On some sparc systems, changes by the child to local and incoming
10173 argument registers are propagated back to the parent. The compiler
10174 is told about this with #include <vfork.h>, but some compilers
10175 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10176 static variable whose address is put into a register that is
10177 clobbered by the vfork. */
10178 static void
10179 #ifdef __cplusplus
10180 sparc_address_test (int arg)
10181 # else
10182 sparc_address_test (arg) int arg;
10183 #endif
10184 {
10185 static pid_t child;
10186 if (!child) {
10187 child = vfork ();
10188 if (child < 0) {
10189 perror ("vfork");
10190 _exit(2);
10191 }
10192 if (!child) {
10193 arg = getpid();
10194 write(-1, "", 0);
10195 _exit (arg);
10196 }
10197 }
10198 }
10199
10200 int
10201 main ()
10202 {
10203 pid_t parent = getpid ();
10204 pid_t child;
10205
10206 sparc_address_test (0);
10207
10208 child = vfork ();
10209
10210 if (child == 0) {
10211 /* Here is another test for sparc vfork register problems. This
10212 test uses lots of local variables, at least as many local
10213 variables as main has allocated so far including compiler
10214 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10215 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10216 reuse the register of parent for one of the local variables,
10217 since it will think that parent can't possibly be used any more
10218 in this routine. Assigning to the local variable will thus
10219 munge parent in the parent process. */
10220 pid_t
10221 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10222 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10223 /* Convince the compiler that p..p7 are live; otherwise, it might
10224 use the same hardware register for all 8 local variables. */
10225 if (p != p1 || p != p2 || p != p3 || p != p4
10226 || p != p5 || p != p6 || p != p7)
10227 _exit(1);
10228
10229 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10230 from child file descriptors. If the child closes a descriptor
10231 before it execs or exits, this munges the parent's descriptor
10232 as well. Test for this by closing stdout in the child. */
10233 _exit(close(fileno(stdout)) != 0);
10234 } else {
10235 int status;
10236 struct stat st;
10237
10238 while (wait(&status) != child)
10239 ;
10240 return (
10241 /* Was there some problem with vforking? */
10242 child < 0
10243
10244 /* Did the child fail? (This shouldn't happen.) */
10245 || status
10246
10247 /* Did the vfork/compiler bug occur? */
10248 || parent != getpid()
10249
10250 /* Did the file descriptor bug occur? */
10251 || fstat(fileno(stdout), &st) != 0
10252 );
10253 }
10254 }
10255 _ACEOF
10256 if ac_fn_cxx_try_run "$LINENO"; then :
10257 ac_cv_func_vfork_works=yes
10258 else
10259 ac_cv_func_vfork_works=no
10260 fi
10261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10262 conftest.$ac_objext conftest.beam conftest.$ac_ext
10263 fi
10264
10265 fi
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10267 $as_echo "$ac_cv_func_vfork_works" >&6; }
10268
10269 fi;
10270 if test "x$ac_cv_func_fork_works" = xcross; then
10271 ac_cv_func_vfork_works=$ac_cv_func_vfork
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10273 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10274 fi
10275
10276 if test "x$ac_cv_func_vfork_works" = xyes; then
10277
10278 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10279
10280 else
10281
10282 $as_echo "#define vfork fork" >>confdefs.h
10283
10284 fi
10285 if test "x$ac_cv_func_fork_works" = xyes; then
10286
10287 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10288
10289 fi
10290
10291
10292
10293 if test "X$prefix" = "XNONE"; then
10294 acl_final_prefix="$ac_default_prefix"
10295 else
10296 acl_final_prefix="$prefix"
10297 fi
10298 if test "X$exec_prefix" = "XNONE"; then
10299 acl_final_exec_prefix='${prefix}'
10300 else
10301 acl_final_exec_prefix="$exec_prefix"
10302 fi
10303 acl_save_prefix="$prefix"
10304 prefix="$acl_final_prefix"
10305 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10306 prefix="$acl_save_prefix"
10307
10308
10309 # Check whether --with-gnu-ld was given.
10310 if test "${with_gnu_ld+set}" = set; then :
10311 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10312 else
10313 with_gnu_ld=no
10314 fi
10315
10316 # Prepare PATH_SEPARATOR.
10317 # The user is always right.
10318 if test "${PATH_SEPARATOR+set}" != set; then
10319 echo "#! /bin/sh" >conf$$.sh
10320 echo "exit 0" >>conf$$.sh
10321 chmod +x conf$$.sh
10322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10323 PATH_SEPARATOR=';'
10324 else
10325 PATH_SEPARATOR=:
10326 fi
10327 rm -f conf$$.sh
10328 fi
10329 ac_prog=ld
10330 if test "$GCC" = yes; then
10331 # Check if gcc -print-prog-name=ld gives a path.
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10333 $as_echo_n "checking for ld used by GCC... " >&6; }
10334 case $host in
10335 *-*-mingw*)
10336 # gcc leaves a trailing carriage return which upsets mingw
10337 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10338 *)
10339 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10340 esac
10341 case $ac_prog in
10342 # Accept absolute paths.
10343 [\\/]* | [A-Za-z]:[\\/]*)
10344 re_direlt='/[^/][^/]*/\.\./'
10345 # Canonicalize the path of ld
10346 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10347 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10348 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10349 done
10350 test -z "$LD" && LD="$ac_prog"
10351 ;;
10352 "")
10353 # If it fails, then pretend we aren't using GCC.
10354 ac_prog=ld
10355 ;;
10356 *)
10357 # If it is relative, then search for the first ld in PATH.
10358 with_gnu_ld=unknown
10359 ;;
10360 esac
10361 elif test "$with_gnu_ld" = yes; then
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10363 $as_echo_n "checking for GNU ld... " >&6; }
10364 else
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10366 $as_echo_n "checking for non-GNU ld... " >&6; }
10367 fi
10368 if ${acl_cv_path_LD+:} false; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10371 if test -z "$LD"; then
10372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10373 for ac_dir in $PATH; do
10374 test -z "$ac_dir" && ac_dir=.
10375 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10376 acl_cv_path_LD="$ac_dir/$ac_prog"
10377 # Check to see if the program is GNU ld. I'd rather use --version,
10378 # but apparently some GNU ld's only accept -v.
10379 # Break only if it was the GNU/non-GNU ld that we prefer.
10380 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10381 test "$with_gnu_ld" != no && break
10382 else
10383 test "$with_gnu_ld" != yes && break
10384 fi
10385 fi
10386 done
10387 IFS="$ac_save_ifs"
10388 else
10389 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10390 fi
10391 fi
10392
10393 LD="$acl_cv_path_LD"
10394 if test -n "$LD"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10396 $as_echo "$LD" >&6; }
10397 else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10400 fi
10401 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10403 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10404 if ${acl_cv_prog_gnu_ld+:} false; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10408 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10409 acl_cv_prog_gnu_ld=yes
10410 else
10411 acl_cv_prog_gnu_ld=no
10412 fi
10413 fi
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10415 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10416 with_gnu_ld=$acl_cv_prog_gnu_ld
10417
10418
10419
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10421 $as_echo_n "checking for shared library run path origin... " >&6; }
10422 if ${acl_cv_rpath+:} false; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425
10426 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10427 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10428 . ./conftest.sh
10429 rm -f ./conftest.sh
10430 acl_cv_rpath=done
10431
10432 fi
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10434 $as_echo "$acl_cv_rpath" >&6; }
10435 wl="$acl_cv_wl"
10436 libext="$acl_cv_libext"
10437 shlibext="$acl_cv_shlibext"
10438 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10439 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10440 hardcode_direct="$acl_cv_hardcode_direct"
10441 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10442 # Check whether --enable-rpath was given.
10443 if test "${enable_rpath+set}" = set; then :
10444 enableval=$enable_rpath; :
10445 else
10446 enable_rpath=yes
10447 fi
10448
10449
10450
10451
10452
10453
10454
10455
10456 use_additional=yes
10457
10458 acl_save_prefix="$prefix"
10459 prefix="$acl_final_prefix"
10460 acl_save_exec_prefix="$exec_prefix"
10461 exec_prefix="$acl_final_exec_prefix"
10462
10463 eval additional_includedir=\"$includedir\"
10464 eval additional_libdir=\"$libdir\"
10465
10466 exec_prefix="$acl_save_exec_prefix"
10467 prefix="$acl_save_prefix"
10468
10469
10470 # Check whether --with-libiconv-prefix was given.
10471 if test "${with_libiconv_prefix+set}" = set; then :
10472 withval=$with_libiconv_prefix;
10473 if test "X$withval" = "Xno"; then
10474 use_additional=no
10475 else
10476 if test "X$withval" = "X"; then
10477
10478 acl_save_prefix="$prefix"
10479 prefix="$acl_final_prefix"
10480 acl_save_exec_prefix="$exec_prefix"
10481 exec_prefix="$acl_final_exec_prefix"
10482
10483 eval additional_includedir=\"$includedir\"
10484 eval additional_libdir=\"$libdir\"
10485
10486 exec_prefix="$acl_save_exec_prefix"
10487 prefix="$acl_save_prefix"
10488
10489 else
10490 additional_includedir="$withval/include"
10491 additional_libdir="$withval/lib"
10492 fi
10493 fi
10494
10495 fi
10496
10497 LIBICONV=
10498 LTLIBICONV=
10499 INCICONV=
10500 rpathdirs=
10501 ltrpathdirs=
10502 names_already_handled=
10503 names_next_round='iconv '
10504 while test -n "$names_next_round"; do
10505 names_this_round="$names_next_round"
10506 names_next_round=
10507 for name in $names_this_round; do
10508 already_handled=
10509 for n in $names_already_handled; do
10510 if test "$n" = "$name"; then
10511 already_handled=yes
10512 break
10513 fi
10514 done
10515 if test -z "$already_handled"; then
10516 names_already_handled="$names_already_handled $name"
10517 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10518 eval value=\"\$HAVE_LIB$uppername\"
10519 if test -n "$value"; then
10520 if test "$value" = yes; then
10521 eval value=\"\$LIB$uppername\"
10522 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10523 eval value=\"\$LTLIB$uppername\"
10524 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10525 else
10526 :
10527 fi
10528 else
10529 found_dir=
10530 found_la=
10531 found_so=
10532 found_a=
10533 if test $use_additional = yes; then
10534 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10535 found_dir="$additional_libdir"
10536 found_so="$additional_libdir/lib$name.$shlibext"
10537 if test -f "$additional_libdir/lib$name.la"; then
10538 found_la="$additional_libdir/lib$name.la"
10539 fi
10540 else
10541 if test -f "$additional_libdir/lib$name.$libext"; then
10542 found_dir="$additional_libdir"
10543 found_a="$additional_libdir/lib$name.$libext"
10544 if test -f "$additional_libdir/lib$name.la"; then
10545 found_la="$additional_libdir/lib$name.la"
10546 fi
10547 fi
10548 fi
10549 fi
10550 if test "X$found_dir" = "X"; then
10551 for x in $LDFLAGS $LTLIBICONV; do
10552
10553 acl_save_prefix="$prefix"
10554 prefix="$acl_final_prefix"
10555 acl_save_exec_prefix="$exec_prefix"
10556 exec_prefix="$acl_final_exec_prefix"
10557 eval x=\"$x\"
10558 exec_prefix="$acl_save_exec_prefix"
10559 prefix="$acl_save_prefix"
10560
10561 case "$x" in
10562 -L*)
10563 dir=`echo "X$x" | sed -e 's/^X-L//'`
10564 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10565 found_dir="$dir"
10566 found_so="$dir/lib$name.$shlibext"
10567 if test -f "$dir/lib$name.la"; then
10568 found_la="$dir/lib$name.la"
10569 fi
10570 else
10571 if test -f "$dir/lib$name.$libext"; then
10572 found_dir="$dir"
10573 found_a="$dir/lib$name.$libext"
10574 if test -f "$dir/lib$name.la"; then
10575 found_la="$dir/lib$name.la"
10576 fi
10577 fi
10578 fi
10579 ;;
10580 esac
10581 if test "X$found_dir" != "X"; then
10582 break
10583 fi
10584 done
10585 fi
10586 if test "X$found_dir" != "X"; then
10587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10588 if test "X$found_so" != "X"; then
10589 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10590 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10591 else
10592 haveit=
10593 for x in $ltrpathdirs; do
10594 if test "X$x" = "X$found_dir"; then
10595 haveit=yes
10596 break
10597 fi
10598 done
10599 if test -z "$haveit"; then
10600 ltrpathdirs="$ltrpathdirs $found_dir"
10601 fi
10602 if test "$hardcode_direct" = yes; then
10603 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10604 else
10605 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10606 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10607 haveit=
10608 for x in $rpathdirs; do
10609 if test "X$x" = "X$found_dir"; then
10610 haveit=yes
10611 break
10612 fi
10613 done
10614 if test -z "$haveit"; then
10615 rpathdirs="$rpathdirs $found_dir"
10616 fi
10617 else
10618 haveit=
10619 for x in $LDFLAGS $LIBICONV; do
10620
10621 acl_save_prefix="$prefix"
10622 prefix="$acl_final_prefix"
10623 acl_save_exec_prefix="$exec_prefix"
10624 exec_prefix="$acl_final_exec_prefix"
10625 eval x=\"$x\"
10626 exec_prefix="$acl_save_exec_prefix"
10627 prefix="$acl_save_prefix"
10628
10629 if test "X$x" = "X-L$found_dir"; then
10630 haveit=yes
10631 break
10632 fi
10633 done
10634 if test -z "$haveit"; then
10635 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10636 fi
10637 if test "$hardcode_minus_L" != no; then
10638 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10639 else
10640 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10641 fi
10642 fi
10643 fi
10644 fi
10645 else
10646 if test "X$found_a" != "X"; then
10647 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10648 else
10649 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10650 fi
10651 fi
10652 additional_includedir=
10653 case "$found_dir" in
10654 */lib | */lib/)
10655 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10656 additional_includedir="$basedir/include"
10657 ;;
10658 esac
10659 if test "X$additional_includedir" != "X"; then
10660 if test "X$additional_includedir" != "X/usr/include"; then
10661 haveit=
10662 if test "X$additional_includedir" = "X/usr/local/include"; then
10663 if test -n "$GCC"; then
10664 case $host_os in
10665 linux*) haveit=yes;;
10666 esac
10667 fi
10668 fi
10669 if test -z "$haveit"; then
10670 for x in $CPPFLAGS $INCICONV; do
10671
10672 acl_save_prefix="$prefix"
10673 prefix="$acl_final_prefix"
10674 acl_save_exec_prefix="$exec_prefix"
10675 exec_prefix="$acl_final_exec_prefix"
10676 eval x=\"$x\"
10677 exec_prefix="$acl_save_exec_prefix"
10678 prefix="$acl_save_prefix"
10679
10680 if test "X$x" = "X-I$additional_includedir"; then
10681 haveit=yes
10682 break
10683 fi
10684 done
10685 if test -z "$haveit"; then
10686 if test -d "$additional_includedir"; then
10687 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10688 fi
10689 fi
10690 fi
10691 fi
10692 fi
10693 if test -n "$found_la"; then
10694 save_libdir="$libdir"
10695 case "$found_la" in
10696 */* | *\\*) . "$found_la" ;;
10697 *) . "./$found_la" ;;
10698 esac
10699 libdir="$save_libdir"
10700 for dep in $dependency_libs; do
10701 case "$dep" in
10702 -L*)
10703 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10704 if test "X$additional_libdir" != "X/usr/lib"; then
10705 haveit=
10706 if test "X$additional_libdir" = "X/usr/local/lib"; then
10707 if test -n "$GCC"; then
10708 case $host_os in
10709 linux*) haveit=yes;;
10710 esac
10711 fi
10712 fi
10713 if test -z "$haveit"; then
10714 haveit=
10715 for x in $LDFLAGS $LIBICONV; do
10716
10717 acl_save_prefix="$prefix"
10718 prefix="$acl_final_prefix"
10719 acl_save_exec_prefix="$exec_prefix"
10720 exec_prefix="$acl_final_exec_prefix"
10721 eval x=\"$x\"
10722 exec_prefix="$acl_save_exec_prefix"
10723 prefix="$acl_save_prefix"
10724
10725 if test "X$x" = "X-L$additional_libdir"; then
10726 haveit=yes
10727 break
10728 fi
10729 done
10730 if test -z "$haveit"; then
10731 if test -d "$additional_libdir"; then
10732 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10733 fi
10734 fi
10735 haveit=
10736 for x in $LDFLAGS $LTLIBICONV; do
10737
10738 acl_save_prefix="$prefix"
10739 prefix="$acl_final_prefix"
10740 acl_save_exec_prefix="$exec_prefix"
10741 exec_prefix="$acl_final_exec_prefix"
10742 eval x=\"$x\"
10743 exec_prefix="$acl_save_exec_prefix"
10744 prefix="$acl_save_prefix"
10745
10746 if test "X$x" = "X-L$additional_libdir"; then
10747 haveit=yes
10748 break
10749 fi
10750 done
10751 if test -z "$haveit"; then
10752 if test -d "$additional_libdir"; then
10753 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10754 fi
10755 fi
10756 fi
10757 fi
10758 ;;
10759 -R*)
10760 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10761 if test "$enable_rpath" != no; then
10762 haveit=
10763 for x in $rpathdirs; do
10764 if test "X$x" = "X$dir"; then
10765 haveit=yes
10766 break
10767 fi
10768 done
10769 if test -z "$haveit"; then
10770 rpathdirs="$rpathdirs $dir"
10771 fi
10772 haveit=
10773 for x in $ltrpathdirs; do
10774 if test "X$x" = "X$dir"; then
10775 haveit=yes
10776 break
10777 fi
10778 done
10779 if test -z "$haveit"; then
10780 ltrpathdirs="$ltrpathdirs $dir"
10781 fi
10782 fi
10783 ;;
10784 -l*)
10785 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10786 ;;
10787 *.la)
10788 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10789 ;;
10790 *)
10791 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10792 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10793 ;;
10794 esac
10795 done
10796 fi
10797 else
10798 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10799 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10800 fi
10801 fi
10802 fi
10803 done
10804 done
10805 if test "X$rpathdirs" != "X"; then
10806 if test -n "$hardcode_libdir_separator"; then
10807 alldirs=
10808 for found_dir in $rpathdirs; do
10809 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10810 done
10811 acl_save_libdir="$libdir"
10812 libdir="$alldirs"
10813 eval flag=\"$hardcode_libdir_flag_spec\"
10814 libdir="$acl_save_libdir"
10815 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10816 else
10817 for found_dir in $rpathdirs; do
10818 acl_save_libdir="$libdir"
10819 libdir="$found_dir"
10820 eval flag=\"$hardcode_libdir_flag_spec\"
10821 libdir="$acl_save_libdir"
10822 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10823 done
10824 fi
10825 fi
10826 if test "X$ltrpathdirs" != "X"; then
10827 for found_dir in $ltrpathdirs; do
10828 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10829 done
10830 fi
10831
10832
10833
10834
10835
10836
10837
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10839 $as_echo_n "checking for iconv... " >&6; }
10840 if ${am_cv_func_iconv+:} false; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843
10844 am_cv_func_iconv="no, consider installing GNU libiconv"
10845 am_cv_lib_iconv=no
10846 am_save_CPPFLAGS="$CPPFLAGS"
10847 CPPFLAGS="$CPPFLAGS $INCICONV"
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850 #include <stdlib.h>
10851 #include <iconv.h>
10852 int
10853 main ()
10854 {
10855 iconv_t cd = iconv_open("","");
10856 iconv(cd,NULL,NULL,NULL,NULL);
10857 iconv_close(cd);
10858 ;
10859 return 0;
10860 }
10861 _ACEOF
10862 if ac_fn_cxx_try_link "$LINENO"; then :
10863 am_cv_func_iconv=yes
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867 CPPFLAGS="$am_save_CPPFLAGS"
10868
10869 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10870 for _libs in .libs _libs; do
10871 am_save_CPPFLAGS="$CPPFLAGS"
10872 am_save_LIBS="$LIBS"
10873 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10874 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877 #include <stdlib.h>
10878 #include <iconv.h>
10879 int
10880 main ()
10881 {
10882 iconv_t cd = iconv_open("","");
10883 iconv(cd,NULL,NULL,NULL,NULL);
10884 iconv_close(cd);
10885 ;
10886 return 0;
10887 }
10888 _ACEOF
10889 if ac_fn_cxx_try_link "$LINENO"; then :
10890 INCICONV="-I../libiconv/include"
10891 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10892 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10893 am_cv_lib_iconv=yes
10894 am_cv_func_iconv=yes
10895 fi
10896 rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10898 CPPFLAGS="$am_save_CPPFLAGS"
10899 LIBS="$am_save_LIBS"
10900 if test "$am_cv_func_iconv" = "yes"; then
10901 break
10902 fi
10903 done
10904 fi
10905
10906 if test "$am_cv_func_iconv" != yes; then
10907 am_save_CPPFLAGS="$CPPFLAGS"
10908 am_save_LIBS="$LIBS"
10909 CPPFLAGS="$CPPFLAGS $INCICONV"
10910 LIBS="$LIBS $LIBICONV"
10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10913 #include <stdlib.h>
10914 #include <iconv.h>
10915 int
10916 main ()
10917 {
10918 iconv_t cd = iconv_open("","");
10919 iconv(cd,NULL,NULL,NULL,NULL);
10920 iconv_close(cd);
10921 ;
10922 return 0;
10923 }
10924 _ACEOF
10925 if ac_fn_cxx_try_link "$LINENO"; then :
10926 am_cv_lib_iconv=yes
10927 am_cv_func_iconv=yes
10928 fi
10929 rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931 CPPFLAGS="$am_save_CPPFLAGS"
10932 LIBS="$am_save_LIBS"
10933 fi
10934
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10937 $as_echo "$am_cv_func_iconv" >&6; }
10938 if test "$am_cv_func_iconv" = yes; then
10939
10940 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10941
10942 fi
10943 if test "$am_cv_lib_iconv" = yes; then
10944
10945 for element in $INCICONV; do
10946 haveit=
10947 for x in $CPPFLAGS; do
10948
10949 acl_save_prefix="$prefix"
10950 prefix="$acl_final_prefix"
10951 acl_save_exec_prefix="$exec_prefix"
10952 exec_prefix="$acl_final_exec_prefix"
10953 eval x=\"$x\"
10954 exec_prefix="$acl_save_exec_prefix"
10955 prefix="$acl_save_prefix"
10956
10957 if test "X$x" = "X$element"; then
10958 haveit=yes
10959 break
10960 fi
10961 done
10962 if test -z "$haveit"; then
10963 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10964 fi
10965 done
10966
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10968 $as_echo_n "checking how to link with libiconv... " >&6; }
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10970 $as_echo "$LIBICONV" >&6; }
10971 else
10972 LIBICONV=
10973 LTLIBICONV=
10974 fi
10975
10976
10977
10978 if test "$am_cv_func_iconv" = yes; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10980 $as_echo_n "checking for iconv declaration... " >&6; }
10981 if ${am_cv_proto_iconv+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10987
10988 #include <stdlib.h>
10989 #include <iconv.h>
10990 extern
10991 #ifdef __cplusplus
10992 "C"
10993 #endif
10994 #if defined(__STDC__) || defined(__cplusplus)
10995 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10996 #else
10997 size_t iconv();
10998 #endif
10999
11000 int
11001 main ()
11002 {
11003
11004 ;
11005 return 0;
11006 }
11007 _ACEOF
11008 if ac_fn_cxx_try_compile "$LINENO"; then :
11009 am_cv_proto_iconv_arg1=""
11010 else
11011 am_cv_proto_iconv_arg1="const"
11012 fi
11013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11014 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);"
11015 fi
11016
11017 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11019 }$am_cv_proto_iconv" >&5
11020 $as_echo "${ac_t:-
11021 }$am_cv_proto_iconv" >&6; }
11022
11023 cat >>confdefs.h <<_ACEOF
11024 #define ICONV_CONST $am_cv_proto_iconv_arg1
11025 _ACEOF
11026
11027 fi
11028
11029
11030 # Until we have in-tree GNU iconv:
11031 LIBICONV_DEP=
11032 if test -f "$LTLIBICONV"; then
11033 LIBICONV_DEP=$LTLIBICONV
11034 fi
11035
11036
11037
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11039 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11040 if ${am_cv_val_LC_MESSAGES+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11045 #include <locale.h>
11046 int
11047 main ()
11048 {
11049 return LC_MESSAGES
11050 ;
11051 return 0;
11052 }
11053 _ACEOF
11054 if ac_fn_cxx_try_link "$LINENO"; then :
11055 am_cv_val_LC_MESSAGES=yes
11056 else
11057 am_cv_val_LC_MESSAGES=no
11058 fi
11059 rm -f core conftest.err conftest.$ac_objext \
11060 conftest$ac_exeext conftest.$ac_ext
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11063 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11064 if test $am_cv_val_LC_MESSAGES = yes; then
11065
11066 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11067
11068 fi
11069
11070
11071
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11073 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11074 if ${am_cv_langinfo_codeset+:} false; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11079 #include <langinfo.h>
11080 int
11081 main ()
11082 {
11083 char* cs = nl_langinfo(CODESET);
11084 ;
11085 return 0;
11086 }
11087 _ACEOF
11088 if ac_fn_cxx_try_link "$LINENO"; then :
11089 am_cv_langinfo_codeset=yes
11090 else
11091 am_cv_langinfo_codeset=no
11092 fi
11093 rm -f core conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095
11096 fi
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11098 $as_echo "$am_cv_langinfo_codeset" >&6; }
11099 if test $am_cv_langinfo_codeset = yes; then
11100
11101 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11102
11103 fi
11104
11105
11106 # We will need to find libiberty.h and ansidecl.h
11107 saved_CFLAGS="$CFLAGS"
11108 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11109 saved_CXXFLAGS="$CXXFLAGS"
11110 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11111
11112 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11113 # normal autoconf function for these. But force definition of
11114 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11115 # basename handling in libiberty.h.
11116 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11117 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11118 #undef HAVE_DECL_BASENAME
11119 #define HAVE_DECL_BASENAME 1
11120 #include \"ansidecl.h\"
11121 #include \"system.h\"
11122 "
11123 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11124 ac_have_decl=1
11125 else
11126 ac_have_decl=0
11127 fi
11128
11129 cat >>confdefs.h <<_ACEOF
11130 #define HAVE_DECL_BASENAME $ac_have_decl
11131 _ACEOF
11132 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11133 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11134 #undef HAVE_DECL_BASENAME
11135 #define HAVE_DECL_BASENAME 1
11136 #include \"ansidecl.h\"
11137 #include \"system.h\"
11138 "
11139 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11140 ac_have_decl=1
11141 else
11142 ac_have_decl=0
11143 fi
11144
11145 cat >>confdefs.h <<_ACEOF
11146 #define HAVE_DECL_STRSTR $ac_have_decl
11147 _ACEOF
11148
11149
11150 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11151 madvise stpcpy strnlen strsignal strverscmp \
11152 strtol strtoul strtoll strtoull setenv unsetenv \
11153 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11154 free 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
11155 do
11156 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11158 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11159 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11160 $as_echo_n "(cached) " >&6
11161 else
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11164 #undef $ac_tr_decl
11165 #define $ac_tr_decl 1
11166
11167 #include "ansidecl.h"
11168 #include "system.h"
11169
11170 int
11171 main ()
11172 {
11173 #ifndef $ac_func
11174 char *(*pfn) = (char *(*)) $ac_func ;
11175 #endif
11176 ;
11177 return 0;
11178 }
11179 _ACEOF
11180 if ac_fn_cxx_try_compile "$LINENO"; then :
11181 eval "gcc_cv_have_decl_$ac_func=yes"
11182 else
11183 eval "gcc_cv_have_decl_$ac_func=no"
11184 fi
11185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11186 fi
11187
11188 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11190 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11191 #define $ac_tr_decl 1
11192 _ACEOF
11193
11194 else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11197 #define $ac_tr_decl 0
11198 _ACEOF
11199
11200 fi
11201
11202 done
11203
11204
11205 for ac_func in getrlimit setrlimit getrusage
11206 do
11207 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11209 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11210 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11211 $as_echo_n "(cached) " >&6
11212 else
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11215 #undef $ac_tr_decl
11216 #define $ac_tr_decl 1
11217
11218 #include "ansidecl.h"
11219 #include "system.h"
11220 #ifdef HAVE_SYS_RESOURCE_H
11221 #include <sys/resource.h>
11222 #endif
11223
11224
11225 int
11226 main ()
11227 {
11228 #ifndef $ac_func
11229 char *(*pfn) = (char *(*)) $ac_func ;
11230 #endif
11231 ;
11232 return 0;
11233 }
11234 _ACEOF
11235 if ac_fn_cxx_try_compile "$LINENO"; then :
11236 eval "gcc_cv_have_decl_$ac_func=yes"
11237 else
11238 eval "gcc_cv_have_decl_$ac_func=no"
11239 fi
11240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241 fi
11242
11243 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11245 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11246 #define $ac_tr_decl 1
11247 _ACEOF
11248
11249 else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11252 #define $ac_tr_decl 0
11253 _ACEOF
11254
11255 fi
11256
11257 done
11258
11259
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11262
11263 #include "ansidecl.h"
11264 #include "system.h"
11265 #ifdef HAVE_SYS_RESOURCE_H
11266 #include <sys/resource.h>
11267 #endif
11268
11269 int
11270 main ()
11271 {
11272 rlim_t l = 0;
11273 ;
11274 return 0;
11275 }
11276 _ACEOF
11277 if ac_fn_cxx_try_compile "$LINENO"; then :
11278
11279 else
11280
11281 $as_echo "#define rlim_t long" >>confdefs.h
11282
11283 fi
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285
11286 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11287 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11288 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11289 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11290 for ac_func in ldgetname
11291 do
11292 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11294 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11295 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11300 #undef $ac_tr_decl
11301 #define $ac_tr_decl 1
11302
11303 #include "ansidecl.h"
11304 #include "system.h"
11305 #ifdef HAVE_LDFCN_H
11306 #undef FREAD
11307 #undef FWRITE
11308 #include <ldfcn.h>
11309 #endif
11310
11311
11312 int
11313 main ()
11314 {
11315 #ifndef $ac_func
11316 char *(*pfn) = (char *(*)) $ac_func ;
11317 #endif
11318 ;
11319 return 0;
11320 }
11321 _ACEOF
11322 if ac_fn_cxx_try_compile "$LINENO"; then :
11323 eval "gcc_cv_have_decl_$ac_func=yes"
11324 else
11325 eval "gcc_cv_have_decl_$ac_func=no"
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 fi
11329
11330 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11332 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11333 #define $ac_tr_decl 1
11334 _ACEOF
11335
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11339 #define $ac_tr_decl 0
11340 _ACEOF
11341
11342 fi
11343
11344 done
11345
11346
11347 for ac_func in times
11348 do
11349 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11351 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11352 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11353 $as_echo_n "(cached) " >&6
11354 else
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 #undef $ac_tr_decl
11358 #define $ac_tr_decl 1
11359
11360 #include "ansidecl.h"
11361 #include "system.h"
11362 #ifdef HAVE_SYS_TIMES_H
11363 #include <sys/times.h>
11364 #endif
11365
11366
11367 int
11368 main ()
11369 {
11370 #ifndef $ac_func
11371 char *(*pfn) = (char *(*)) $ac_func ;
11372 #endif
11373 ;
11374 return 0;
11375 }
11376 _ACEOF
11377 if ac_fn_cxx_try_compile "$LINENO"; then :
11378 eval "gcc_cv_have_decl_$ac_func=yes"
11379 else
11380 eval "gcc_cv_have_decl_$ac_func=no"
11381 fi
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11383 fi
11384
11385 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11387 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11388 #define $ac_tr_decl 1
11389 _ACEOF
11390
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11394 #define $ac_tr_decl 0
11395 _ACEOF
11396
11397 fi
11398
11399 done
11400
11401
11402 for ac_func in sigaltstack
11403 do
11404 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11406 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11407 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11408 $as_echo_n "(cached) " >&6
11409 else
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11412 #undef $ac_tr_decl
11413 #define $ac_tr_decl 1
11414
11415 #include "ansidecl.h"
11416 #include "system.h"
11417 #include <signal.h>
11418
11419
11420 int
11421 main ()
11422 {
11423 #ifndef $ac_func
11424 char *(*pfn) = (char *(*)) $ac_func ;
11425 #endif
11426 ;
11427 return 0;
11428 }
11429 _ACEOF
11430 if ac_fn_cxx_try_compile "$LINENO"; then :
11431 eval "gcc_cv_have_decl_$ac_func=yes"
11432 else
11433 eval "gcc_cv_have_decl_$ac_func=no"
11434 fi
11435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11436 fi
11437
11438 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11440 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11441 #define $ac_tr_decl 1
11442 _ACEOF
11443
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11447 #define $ac_tr_decl 0
11448 _ACEOF
11449
11450 fi
11451
11452 done
11453
11454
11455 # More time-related stuff.
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11457 $as_echo_n "checking for struct tms... " >&6; }
11458 if ${ac_cv_struct_tms+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464
11465 #include "ansidecl.h"
11466 #include "system.h"
11467 #ifdef HAVE_SYS_TIMES_H
11468 #include <sys/times.h>
11469 #endif
11470
11471 int
11472 main ()
11473 {
11474 struct tms tms;
11475 ;
11476 return 0;
11477 }
11478 _ACEOF
11479 if ac_fn_cxx_try_compile "$LINENO"; then :
11480 ac_cv_struct_tms=yes
11481 else
11482 ac_cv_struct_tms=no
11483 fi
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11487 $as_echo "$ac_cv_struct_tms" >&6; }
11488 if test $ac_cv_struct_tms = yes; then
11489
11490 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11491
11492 fi
11493
11494 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11495 # revisit after autoconf 2.50.
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11497 $as_echo_n "checking for clock_t... " >&6; }
11498 if ${gcc_cv_type_clock_t+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504
11505 #include "ansidecl.h"
11506 #include "system.h"
11507
11508 int
11509 main ()
11510 {
11511 clock_t x;
11512 ;
11513 return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_cxx_try_compile "$LINENO"; then :
11517 gcc_cv_type_clock_t=yes
11518 else
11519 gcc_cv_type_clock_t=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11522 fi
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11524 $as_echo "$gcc_cv_type_clock_t" >&6; }
11525 if test $gcc_cv_type_clock_t = yes; then
11526
11527 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11528
11529 fi
11530
11531 # Check if F_SETLKW is supported by fcntl.
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11533 $as_echo_n "checking for F_SETLKW... " >&6; }
11534 if ${ac_cv_f_setlkw+:} false; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11540
11541 #include <fcntl.h>
11542 int
11543 main ()
11544 {
11545
11546 struct flock fl;
11547 fl.l_whence = 0;
11548 fl.l_start = 0;
11549 fl.l_len = 0;
11550 fl.l_pid = 0;
11551 return fcntl (1, F_SETLKW, &fl);
11552 ;
11553 return 0;
11554 }
11555 _ACEOF
11556 if ac_fn_cxx_try_compile "$LINENO"; then :
11557 ac_cv_f_setlkw=yes
11558 else
11559 ac_cv_f_setlkw=no
11560 fi
11561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11562 fi
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11564 $as_echo "$ac_cv_f_setlkw" >&6; }
11565 if test $ac_cv_f_setlkw = yes; then
11566
11567 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11568
11569 fi
11570
11571 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11572 CFLAGS="$saved_CFLAGS"
11573 CXXFLAGS="$saved_CXXFLAGS"
11574
11575 # mkdir takes a single argument on some systems.
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11577 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11578 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11583
11584 #include <sys/types.h>
11585 #ifdef HAVE_SYS_STAT_H
11586 # include <sys/stat.h>
11587 #endif
11588 #ifdef HAVE_UNISTD_H
11589 # include <unistd.h>
11590 #endif
11591 #ifdef HAVE_DIRECT_H
11592 # include <direct.h>
11593 #endif
11594 int
11595 main ()
11596 {
11597 mkdir ("foo", 0);
11598 ;
11599 return 0;
11600 }
11601 _ACEOF
11602 if ac_fn_cxx_try_compile "$LINENO"; then :
11603 gcc_cv_mkdir_takes_one_arg=no
11604 else
11605 gcc_cv_mkdir_takes_one_arg=yes
11606 fi
11607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11610 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11611 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11612
11613 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11614
11615 fi
11616
11617
11618 # File extensions
11619 manext='.1'
11620 objext='.o'
11621
11622
11623
11624 # With Setjmp/Longjmp based exception handling.
11625 # Check whether --enable-sjlj-exceptions was given.
11626 if test "${enable_sjlj_exceptions+set}" = set; then :
11627 enableval=$enable_sjlj_exceptions; case $target in
11628 *-*-hpux10*)
11629 if test $enableval != yes; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11631 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11632 enableval=yes
11633 fi
11634 ;;
11635 esac
11636 force_sjlj_exceptions=yes
11637 else
11638 case $target in
11639 *-*-hpux10*)
11640 force_sjlj_exceptions=yes
11641 enableval=yes
11642 ;;
11643 lm32*-*-*)
11644 force_sjlj_exceptions=yes
11645 enableval=yes
11646 ;;
11647 *)
11648 force_sjlj_exceptions=no
11649 ;;
11650 esac
11651 fi
11652
11653 if test $force_sjlj_exceptions = yes; then
11654 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11655
11656 cat >>confdefs.h <<_ACEOF
11657 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11658 _ACEOF
11659
11660 fi
11661
11662 # --------------------------------------------------------
11663 # Build, host, and target specific configuration fragments
11664 # --------------------------------------------------------
11665
11666 # Collect build-machine-specific information.
11667 . ${srcdir}/config.build || exit 1
11668
11669 # Collect host-machine-specific information.
11670 . ${srcdir}/config.host || exit 1
11671
11672 target_gtfiles=
11673
11674 # Collect target-machine-specific information.
11675 . ${srcdir}/config.gcc || exit 1
11676
11677 extra_objs="${host_extra_objs} ${extra_objs}"
11678 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11679
11680 # Default the target-machine variables that were not explicitly set.
11681 if test x"$tm_file" = x
11682 then tm_file=$cpu_type/$cpu_type.h; fi
11683
11684 if test x"$extra_headers" = x
11685 then extra_headers=; fi
11686
11687 if test x$md_file = x
11688 then md_file=$cpu_type/$cpu_type.md; fi
11689
11690 if test x$out_file = x
11691 then out_file=$cpu_type/$cpu_type.c; fi
11692
11693 if test x"$tmake_file" = x
11694 then tmake_file=$cpu_type/t-$cpu_type
11695 fi
11696
11697 # Support --enable-initfini-array.
11698 if test x$enable_initfini_array != xno; then
11699 tm_file="${tm_file} initfini-array.h"
11700 fi
11701
11702 if test x"$dwarf2" = xyes
11703 then tm_file="$tm_file tm-dwarf2.h"
11704 fi
11705
11706 # Say what files are being used for the output code and MD file.
11707 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11708 echo "Using \`$srcdir/config/$md_file' as machine description file."
11709
11710 # If any of the xm_file variables contain nonexistent files, warn
11711 # about them and drop them.
11712
11713 bx=
11714 for x in $build_xm_file; do
11715 if test -f $srcdir/config/$x
11716 then bx="$bx $x"
11717 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11718 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11719 fi
11720 done
11721 build_xm_file="$bx"
11722
11723 hx=
11724 for x in $host_xm_file; do
11725 if test -f $srcdir/config/$x
11726 then hx="$hx $x"
11727 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11728 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11729 fi
11730 done
11731 host_xm_file="$hx"
11732
11733 tx=
11734 for x in $xm_file; do
11735 if test -f $srcdir/config/$x
11736 then tx="$tx $x"
11737 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11738 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11739 fi
11740 done
11741 xm_file="$tx"
11742
11743 count=a
11744 for f in $tm_file; do
11745 count=${count}x
11746 done
11747 if test $count = ax; then
11748 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11749 else
11750 echo "Using the following target machine macro files:"
11751 for f in $tm_file; do
11752 echo " $srcdir/config/$f"
11753 done
11754 fi
11755
11756 if test x$use_long_long_for_widest_fast_int = xyes; then
11757
11758 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11759
11760 fi
11761
11762 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11763
11764 cat >>confdefs.h <<_ACEOF
11765 #define HAVE_GNU_LD $gnu_ld_bool
11766 _ACEOF
11767
11768
11769 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11770
11771 cat >>confdefs.h <<_ACEOF
11772 #define HAVE_GNU_AS $gnu_as_bool
11773 _ACEOF
11774
11775
11776 count=a
11777 for f in $host_xm_file; do
11778 count=${count}x
11779 done
11780 if test $count = a; then
11781 :
11782 elif test $count = ax; then
11783 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11784 else
11785 echo "Using the following host machine macro files:"
11786 for f in $host_xm_file; do
11787 echo " $srcdir/config/$f"
11788 done
11789 fi
11790 echo "Using ${out_host_hook_obj} for host machine hooks."
11791
11792 if test "$host_xm_file" != "$build_xm_file"; then
11793 count=a
11794 for f in $build_xm_file; do
11795 count=${count}x
11796 done
11797 if test $count = a; then
11798 :
11799 elif test $count = ax; then
11800 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11801 else
11802 echo "Using the following build machine macro files:"
11803 for f in $build_xm_file; do
11804 echo " $srcdir/config/$f"
11805 done
11806 fi
11807 fi
11808
11809 if test -n "$configured_native_system_header_dir"; then
11810 native_system_header_dir=$configured_native_system_header_dir
11811 fi
11812 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11813
11814
11815 case ${host} in
11816 powerpc*-*-darwin*)
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11818 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11819 if ${gcc_cv_mcontext_underscores+:} false; then :
11820 $as_echo_n "(cached) " >&6
11821 else
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11824
11825 #include <sys/cdefs.h>
11826 #include <sys/signal.h>
11827 #include <ucontext.h>
11828 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11829
11830 _ACEOF
11831 if ac_fn_cxx_try_compile "$LINENO"; then :
11832 gcc_cv_mcontext_underscores=no
11833 else
11834 gcc_cv_mcontext_underscores=yes
11835 fi
11836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 fi
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11839 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11840 if test $gcc_cv_mcontext_underscores = yes; then
11841
11842 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11843
11844 fi
11845 ;;
11846 esac
11847
11848 # ---------
11849 # Threading
11850 # ---------
11851
11852 # Check if a valid thread package
11853 case ${enable_threads} in
11854 "" | no)
11855 # No threads
11856 target_thread_file='single'
11857 ;;
11858 yes)
11859 # default
11860 target_thread_file='single'
11861 ;;
11862 aix | dce | lynx | mipssde | posix | rtems | \
11863 single | tpf | vxworks | win32)
11864 target_thread_file=${enable_threads}
11865 ;;
11866 *)
11867 echo "${enable_threads} is an unknown thread package" 1>&2
11868 exit 1
11869 ;;
11870 esac
11871
11872 if test x${thread_file} = x; then
11873 # No thread file set by target-specific clauses in config.gcc,
11874 # so use file chosen by default logic above
11875 thread_file=${target_thread_file}
11876 fi
11877
11878 # --------
11879 # UNSORTED
11880 # --------
11881
11882 use_cxa_atexit=no
11883 if test x$enable___cxa_atexit = xyes || \
11884 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11885 if test x$host = x$target; then
11886 case $host in
11887 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11888 # keyed to flag_use_cxa_atexit
11889 *-*-mingw32*)
11890 use_cxa_atexit=yes
11891 ;;
11892 powerpc-ibm-aix*)
11893 use_cxa_atexit=yes
11894 ;;
11895 *)
11896 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11897 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
11898 use_cxa_atexit=yes
11899 else
11900 echo "__cxa_atexit can't be enabled on this target"
11901 fi
11902
11903 ;;
11904 esac
11905 else
11906 # We can't check for __cxa_atexit when building a cross, so assume
11907 # it is available
11908 use_cxa_atexit=yes
11909 fi
11910 if test x$use_cxa_atexit = xyes; then
11911
11912 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11913
11914 fi
11915 fi
11916
11917 # Look for a file containing extra machine modes.
11918 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11919 extra_modes_file='$(srcdir)'/config/${extra_modes}
11920
11921
11922 cat >>confdefs.h <<_ACEOF
11923 #define EXTRA_MODES_FILE "config/$extra_modes"
11924 _ACEOF
11925
11926 fi
11927
11928 # Convert extra_options into a form suitable for Makefile use.
11929 extra_opt_files=
11930 all_opt_files=
11931 for f in $extra_options; do
11932 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11933 all_opt_files="$all_opt_files $srcdir/config/$f"
11934 done
11935
11936
11937 # auto-host.h is the file containing items generated by autoconf and is
11938 # the first file included by config.h.
11939 # If host=build, it is correct to have bconfig include auto-host.h
11940 # as well. If host!=build, we are in error and need to do more
11941 # work to find out the build config parameters.
11942 if test x$host = x$build
11943 then
11944 build_auto=auto-host.h
11945 else
11946 # We create a subdir, then run autoconf in the subdir.
11947 # To prevent recursion we set host and build for the new
11948 # invocation of configure to the build for this invocation
11949 # of configure.
11950 tempdir=build.$$
11951 rm -rf $tempdir
11952 mkdir $tempdir
11953 cd $tempdir
11954 case ${srcdir} in
11955 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11956 *) realsrcdir=../${srcdir};;
11957 esac
11958 # Clearing GMPINC is necessary to prevent host headers being
11959 # used by the build compiler. Defining GENERATOR_FILE stops
11960 # system.h from including gmp.h.
11961 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11962 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11963 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11964 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11965 ${realsrcdir}/configure \
11966 --enable-languages=${enable_languages-all} \
11967 --target=$target_alias --host=$build_alias --build=$build_alias
11968
11969 # We just finished tests for the build machine, so rename
11970 # the file auto-build.h in the gcc directory.
11971 mv auto-host.h ../auto-build.h
11972 cd ..
11973 rm -rf $tempdir
11974 build_auto=auto-build.h
11975 fi
11976
11977
11978 tm_file="${tm_file} defaults.h"
11979 tm_p_file="${tm_p_file} tm-preds.h"
11980 tm_d_file="${tm_d_file} defaults.h"
11981 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11982 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11983 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11984 # put this back in temporarily.
11985 xm_file="auto-host.h ansidecl.h ${xm_file}"
11986
11987 # --------
11988 # UNSORTED
11989 # --------
11990
11991 # Compile in configure arguments.
11992 if test -f configargs.h ; then
11993 # Being re-configured.
11994 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11995 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11996 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11997 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11998 fi
11999 else
12000 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12001 fi
12002
12003 # Double all backslashes and backslash all quotes to turn
12004 # gcc_config_arguments into a C string.
12005 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12006 $gcc_config_arguments
12007 EOF
12008 gcc_config_arguments_str=`cat conftest.out`
12009 rm -f conftest.out
12010
12011 cat > configargs.h <<EOF
12012 /* Generated automatically. */
12013 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12014 static const char thread_model[] = "$thread_file";
12015
12016 static const struct {
12017 const char *name, *value;
12018 } configure_default_options[] = $configure_default_options;
12019 EOF
12020
12021 gcc_BASEVER=`cat $srcdir/BASE-VER`
12022 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12023 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12024 if test -f $srcdir/REVISION ; then
12025 gcc_REVISION=`cat $srcdir/REVISION`
12026 else
12027 gcc_REVISION=""
12028 fi
12029 cat > plugin-version.h <<EOF
12030 #include "configargs.h"
12031
12032 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12033 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12034 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12035 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12036
12037 static char basever[] = "$gcc_BASEVER";
12038 static char datestamp[] = "$gcc_DATESTAMP";
12039 static char devphase[] = "$gcc_DEVPHASE";
12040 static char revision[] = "$gcc_REVISION";
12041
12042 /* FIXME plugins: We should make the version information more precise.
12043 One way to do is to add a checksum. */
12044
12045 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12046 devphase, revision,
12047 configuration_arguments};
12048 EOF
12049
12050 # Determine what GCC version number to use in filesystem paths.
12051
12052 get_gcc_base_ver="cat"
12053
12054 # Check whether --with-gcc-major-version-only was given.
12055 if test "${with_gcc_major_version_only+set}" = set; then :
12056 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12057 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12058 fi
12059
12060 fi
12061
12062
12063
12064
12065 # Internationalization
12066 # If we haven't got the data from the intl directory,
12067 # assume NLS is disabled.
12068 USE_NLS=no
12069 LIBINTL=
12070 LIBINTL_DEP=
12071 INCINTL=
12072 XGETTEXT=
12073 GMSGFMT=
12074 POSUB=
12075
12076 if test -f ../intl/config.intl; then
12077 . ../intl/config.intl
12078 fi
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12080 $as_echo_n "checking whether NLS is requested... " >&6; }
12081 if test x"$USE_NLS" != xyes; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12084 else
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12086 $as_echo "yes" >&6; }
12087
12088 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12089
12090
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12092 $as_echo_n "checking for catalogs to be installed... " >&6; }
12093 # Look for .po and .gmo files in the source directory.
12094 CATALOGS=
12095 XLINGUAS=
12096 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12097 # If there aren't any .gmo files the shell will give us the
12098 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12099 # weeded out.
12100 case "$cat" in *\**)
12101 continue;;
12102 esac
12103 # The quadruple backslash is collapsed to a double backslash
12104 # by the backticks, then collapsed again by the double quotes,
12105 # leaving us with one backslash in the sed expression (right
12106 # before the dot that mustn't act as a wildcard).
12107 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12108 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12109 # The user is allowed to set LINGUAS to a list of languages to
12110 # install catalogs for. If it's empty that means "all of them."
12111 if test "x$LINGUAS" = x; then
12112 CATALOGS="$CATALOGS $cat"
12113 XLINGUAS="$XLINGUAS $lang"
12114 else
12115 case "$LINGUAS" in *$lang*)
12116 CATALOGS="$CATALOGS $cat"
12117 XLINGUAS="$XLINGUAS $lang"
12118 ;;
12119 esac
12120 fi
12121 done
12122 LINGUAS="$XLINGUAS"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12124 $as_echo "$LINGUAS" >&6; }
12125
12126
12127 DATADIRNAME=share
12128
12129 INSTOBJEXT=.mo
12130
12131 GENCAT=gencat
12132
12133 CATOBJEXT=.gmo
12134
12135 fi
12136
12137 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12138 # -liconv on the link line twice.
12139 case "$LIBINTL" in *$LIBICONV*)
12140 LIBICONV= ;;
12141 esac
12142
12143 # Check whether --enable-secureplt was given.
12144 if test "${enable_secureplt+set}" = set; then :
12145 enableval=$enable_secureplt;
12146 fi
12147
12148
12149 # Check whether --enable-mingw-wildcard was given.
12150 if test "${enable_mingw_wildcard+set}" = set; then :
12151 enableval=$enable_mingw_wildcard;
12152 else
12153 enable_mingw_wildcard=platform
12154 fi
12155
12156 if test x"$enable_mingw_wildcard" != xplatform ; then :
12157
12158 cat >>confdefs.h <<_ACEOF
12159 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12160 _ACEOF
12161
12162 fi
12163
12164 # Check whether --enable-large-address-aware was given.
12165 if test "${enable_large_address_aware+set}" = set; then :
12166 enableval=$enable_large_address_aware;
12167 fi
12168
12169 if test x"$enable_large_address_aware" = xyes; then :
12170
12171 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12172
12173 fi
12174
12175 # Check whether --enable-leading-mingw64-underscores was given.
12176 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12177 enableval=$enable_leading_mingw64_underscores;
12178 fi
12179
12180 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12181
12182 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12183
12184 fi
12185
12186 # Check whether --enable-cld was given.
12187 if test "${enable_cld+set}" = set; then :
12188 enableval=$enable_cld;
12189 else
12190 enable_cld=no
12191 fi
12192
12193
12194 # Check whether --enable-frame-pointer was given.
12195 if test "${enable_frame_pointer+set}" = set; then :
12196 enableval=$enable_frame_pointer;
12197 else
12198
12199 case $target_os in
12200 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12201 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12202 enable_frame_pointer=no
12203 ;;
12204 *)
12205 enable_frame_pointer=yes
12206 ;;
12207 esac
12208
12209 fi
12210
12211
12212 case $target in
12213 i[34567]86-*-* | x86_64-*-*)
12214 if test "x$enable_cld" = xyes; then
12215 tm_defines="${tm_defines} USE_IX86_CLD=1"
12216 fi
12217 if test "x$enable_frame_pointer" = xyes; then
12218 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12219 fi
12220 ;;
12221 esac
12222
12223 # Windows32 Registry support for specifying GCC installation paths.
12224 # Check whether --enable-win32-registry was given.
12225 if test "${enable_win32_registry+set}" = set; then :
12226 enableval=$enable_win32_registry;
12227 fi
12228
12229
12230 case $host_os in
12231 win32 | pe | cygwin* | mingw32*)
12232 if test "x$enable_win32_registry" != xno; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12234 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12235 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 ac_func_search_save_LIBS=$LIBS
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 char RegOpenKeyExA ();
12249 int
12250 main ()
12251 {
12252 return RegOpenKeyExA ();
12253 ;
12254 return 0;
12255 }
12256 _ACEOF
12257 for ac_lib in '' advapi32; do
12258 if test -z "$ac_lib"; then
12259 ac_res="none required"
12260 else
12261 ac_res=-l$ac_lib
12262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12263 fi
12264 if ac_fn_cxx_try_link "$LINENO"; then :
12265 ac_cv_search_RegOpenKeyExA=$ac_res
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext
12269 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12270 break
12271 fi
12272 done
12273 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12274
12275 else
12276 ac_cv_search_RegOpenKeyExA=no
12277 fi
12278 rm conftest.$ac_ext
12279 LIBS=$ac_func_search_save_LIBS
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12282 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12283 ac_res=$ac_cv_search_RegOpenKeyExA
12284 if test "$ac_res" != no; then :
12285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12286
12287 else
12288 enable_win32_registry=no
12289 fi
12290
12291 fi
12292
12293 if test "x$enable_win32_registry" != xno; then
12294
12295 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12296
12297
12298 if test "x$enable_win32_registry" != xyes \
12299 && test "x$enable_win32_registry" != x; then
12300
12301 cat >>confdefs.h <<_ACEOF
12302 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12303 _ACEOF
12304
12305 fi
12306 fi
12307 ;;
12308 esac
12309
12310 # Get an absolute path to the GCC top-level source directory
12311 holddir=`${PWDCMD-pwd}`
12312 cd $srcdir
12313 topdir=`${PWDCMD-pwd}`
12314 cd $holddir
12315
12316 # Conditionalize the makefile for this host machine.
12317 xmake_file=
12318 for f in ${host_xmake_file}
12319 do
12320 if test -f ${srcdir}/config/$f
12321 then
12322 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12323 fi
12324 done
12325
12326 # Conditionalize the makefile for this target machine.
12327 tmake_file_=
12328 for f in ${tmake_file}
12329 do
12330 if test -f ${srcdir}/config/$f
12331 then
12332 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12333 fi
12334 done
12335 tmake_file="${tmake_file_}"
12336
12337 out_object_file=`basename $out_file .c`.o
12338 common_out_object_file=`basename $common_out_file .c`.o
12339
12340 tm_file_list="options.h"
12341 tm_include_list="options.h insn-constants.h"
12342 for f in $tm_file; do
12343 case $f in
12344 ./* )
12345 f=`echo $f | sed 's/^..//'`
12346 tm_file_list="${tm_file_list} $f"
12347 tm_include_list="${tm_include_list} $f"
12348 ;;
12349 defaults.h )
12350 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12351 tm_include_list="${tm_include_list} $f"
12352 ;;
12353 * )
12354 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12355 tm_include_list="${tm_include_list} config/$f"
12356 ;;
12357 esac
12358 done
12359
12360 tm_p_file_list=
12361 tm_p_include_list=
12362 for f in $tm_p_file; do
12363 case $f in
12364 tm-preds.h )
12365 tm_p_file_list="${tm_p_file_list} $f"
12366 tm_p_include_list="${tm_p_include_list} $f"
12367 ;;
12368 * )
12369 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12370 tm_p_include_list="${tm_p_include_list} config/$f"
12371 esac
12372 done
12373
12374 tm_d_file_list=
12375 tm_d_include_list="options.h insn-constants.h"
12376 for f in $tm_d_file; do
12377 case $f in
12378 defaults.h )
12379 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12380 tm_d_include_list="${tm_d_include_list} $f"
12381 ;;
12382 * )
12383 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12384 tm_d_include_list="${tm_d_include_list} config/$f"
12385 ;;
12386 esac
12387 done
12388
12389 xm_file_list=
12390 xm_include_list=
12391 for f in $xm_file; do
12392 case $f in
12393 ansidecl.h )
12394 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12395 xm_include_list="${xm_include_list} $f"
12396 ;;
12397 auto-host.h )
12398 xm_file_list="${xm_file_list} $f"
12399 xm_include_list="${xm_include_list} $f"
12400 ;;
12401 * )
12402 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12403 xm_include_list="${xm_include_list} config/$f"
12404 ;;
12405 esac
12406 done
12407
12408 host_xm_file_list=
12409 host_xm_include_list=
12410 for f in $host_xm_file; do
12411 case $f in
12412 ansidecl.h )
12413 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12414 host_xm_include_list="${host_xm_include_list} $f"
12415 ;;
12416 auto-host.h )
12417 host_xm_file_list="${host_xm_file_list} $f"
12418 host_xm_include_list="${host_xm_include_list} $f"
12419 ;;
12420 * )
12421 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12422 host_xm_include_list="${host_xm_include_list} config/$f"
12423 ;;
12424 esac
12425 done
12426
12427 build_xm_file_list=
12428 for f in $build_xm_file; do
12429 case $f in
12430 ansidecl.h )
12431 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12432 build_xm_include_list="${build_xm_include_list} $f"
12433 ;;
12434 auto-build.h | auto-host.h )
12435 build_xm_file_list="${build_xm_file_list} $f"
12436 build_xm_include_list="${build_xm_include_list} $f"
12437 ;;
12438 * )
12439 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12440 build_xm_include_list="${build_xm_include_list} config/$f"
12441 ;;
12442 esac
12443 done
12444
12445 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12446 # cross-compiler which does not use the native headers and libraries.
12447 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12448 CROSS=
12449 ALL=all.internal
12450 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12451 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12452
12453 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12454 test x$build != x$host || test "x$with_build_sysroot" != x; then
12455 if test "x$with_build_sysroot" != x; then
12456 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12457 else
12458 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12459 fi
12460
12461 if test x$host != x$target
12462 then
12463 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12464 ALL=all.cross
12465 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12466 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12467 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12468 fi
12469
12470 if test "x$with_build_sysroot" != "x"; then
12471 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12472 elif test "x$with_sysroot" = x; then
12473 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12474 elif test "x$with_sysroot" = xyes; then
12475 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12476 else
12477 target_header_dir="${with_sysroot}${native_system_header_dir}"
12478 fi
12479 else
12480 target_header_dir=${native_system_header_dir}
12481 fi
12482
12483 # If this is a cross-compiler that does not
12484 # have its own set of headers then define
12485 # inhibit_libc
12486
12487 # If this is using newlib, without having the headers available now,
12488 # then define inhibit_libc in LIBGCC2_CFLAGS.
12489 # This prevents libgcc2 from containing any code which requires libc
12490 # support.
12491 : ${inhibit_libc=false}
12492 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12493 test x$with_newlib = xyes ; } &&
12494 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12495 inhibit_libc=true
12496 fi
12497
12498
12499 # When building gcc with a cross-compiler, we need to adjust things so
12500 # that the generator programs are still built with the native compiler.
12501 # Also, we cannot run fixincludes.
12502
12503 # These are the normal (build=host) settings:
12504 CC_FOR_BUILD='$(CC)'
12505 CXX_FOR_BUILD='$(CXX)'
12506 BUILD_CFLAGS='$(ALL_CFLAGS)'
12507 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12508 BUILD_LDFLAGS='$(LDFLAGS)'
12509 STMP_FIXINC=stmp-fixinc
12510
12511 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12512 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12513
12514 # And these apply if build != host, or we are generating coverage data
12515 if test x$build != x$host || test "x$coverage_flags" != x
12516 then
12517 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12518 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12519 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12520
12521 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12522 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12523 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12524 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12525 fi
12526
12527
12528
12529 # Expand extra_headers to include complete path.
12530 # This substitutes for lots of t-* files.
12531 extra_headers_list=
12532 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12533 for file in ${extra_headers} ; do
12534 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12535 done
12536
12537 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12538 if test x"$use_gcc_tgmath" = xyes
12539 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12540 fi
12541
12542 # Define collect2 in Makefile.
12543 case $host_can_use_collect2 in
12544 no) collect2= ;;
12545 *) collect2='collect2$(exeext)' ;;
12546 esac
12547
12548
12549 # Add a definition of USE_COLLECT2 if system wants one.
12550 case $use_collect2 in
12551 no) use_collect2= ;;
12552 "") ;;
12553 *)
12554 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12555 xm_defines="${xm_defines} USE_COLLECT2"
12556 case $host_can_use_collect2 in
12557 no)
12558 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12559 ;;
12560 esac
12561 ;;
12562 esac
12563
12564
12565 cat >>confdefs.h <<_ACEOF
12566 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12567 _ACEOF
12568
12569
12570 # ---------------------------
12571 # Assembler & linker features
12572 # ---------------------------
12573
12574 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12575 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12576 # However when ld-new is first executed from the build tree, libtool will
12577 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12578 # to the build tree. While doing this we need to use the previous-stage
12579 # linker, or we have an infinite loop. The presence of a shell script as
12580 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12581 # the gcc/collect-ld script. So we need to know how libtool works, or
12582 # exec-tool will fail.
12583
12584
12585 case `pwd` in
12586 *\ * | *\ *)
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12588 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12589 esac
12590
12591
12592
12593 macro_version='2.2.7a'
12594 macro_revision='1.3134'
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608 ltmain="$ac_aux_dir/ltmain.sh"
12609
12610 # Backslashify metacharacters that are still active within
12611 # double-quoted strings.
12612 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12613
12614 # Same as above, but do not quote variable references.
12615 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12616
12617 # Sed substitution to delay expansion of an escaped shell variable in a
12618 # double_quote_subst'ed string.
12619 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12620
12621 # Sed substitution to delay expansion of an escaped single quote.
12622 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12623
12624 # Sed substitution to avoid accidental globbing in evaled expressions
12625 no_glob_subst='s/\*/\\\*/g'
12626
12627 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12628 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12629 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12630
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12632 $as_echo_n "checking how to print strings... " >&6; }
12633 # Test print first, because it will be a builtin if present.
12634 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12635 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12636 ECHO='print -r --'
12637 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12638 ECHO='printf %s\n'
12639 else
12640 # Use this function as a fallback that always works.
12641 func_fallback_echo ()
12642 {
12643 eval 'cat <<_LTECHO_EOF
12644 $1
12645 _LTECHO_EOF'
12646 }
12647 ECHO='func_fallback_echo'
12648 fi
12649
12650 # func_echo_all arg...
12651 # Invoke $ECHO with all args, space-separated.
12652 func_echo_all ()
12653 {
12654 $ECHO ""
12655 }
12656
12657 case "$ECHO" in
12658 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12659 $as_echo "printf" >&6; } ;;
12660 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12661 $as_echo "print -r" >&6; } ;;
12662 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12663 $as_echo "cat" >&6; } ;;
12664 esac
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12680 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12681 if ${ac_cv_path_SED+:} false; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12685 for ac_i in 1 2 3 4 5 6 7; do
12686 ac_script="$ac_script$as_nl$ac_script"
12687 done
12688 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12689 { ac_script=; unset ac_script;}
12690 if test -z "$SED"; then
12691 ac_path_SED_found=false
12692 # Loop through the user's path and test for each of PROGNAME-LIST
12693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694 for as_dir in $PATH
12695 do
12696 IFS=$as_save_IFS
12697 test -z "$as_dir" && as_dir=.
12698 for ac_prog in sed gsed; do
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12701 as_fn_executable_p "$ac_path_SED" || continue
12702 # Check for GNU ac_path_SED and select it if it is found.
12703 # Check for GNU $ac_path_SED
12704 case `"$ac_path_SED" --version 2>&1` in
12705 *GNU*)
12706 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12707 *)
12708 ac_count=0
12709 $as_echo_n 0123456789 >"conftest.in"
12710 while :
12711 do
12712 cat "conftest.in" "conftest.in" >"conftest.tmp"
12713 mv "conftest.tmp" "conftest.in"
12714 cp "conftest.in" "conftest.nl"
12715 $as_echo '' >> "conftest.nl"
12716 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12718 as_fn_arith $ac_count + 1 && ac_count=$as_val
12719 if test $ac_count -gt ${ac_path_SED_max-0}; then
12720 # Best one so far, save it but keep looking for a better one
12721 ac_cv_path_SED="$ac_path_SED"
12722 ac_path_SED_max=$ac_count
12723 fi
12724 # 10*(2^10) chars as input seems more than enough
12725 test $ac_count -gt 10 && break
12726 done
12727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12728 esac
12729
12730 $ac_path_SED_found && break 3
12731 done
12732 done
12733 done
12734 IFS=$as_save_IFS
12735 if test -z "$ac_cv_path_SED"; then
12736 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12737 fi
12738 else
12739 ac_cv_path_SED=$SED
12740 fi
12741
12742 fi
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12744 $as_echo "$ac_cv_path_SED" >&6; }
12745 SED="$ac_cv_path_SED"
12746 rm -f conftest.sed
12747
12748 test -z "$SED" && SED=sed
12749 Xsed="$SED -e 1s/^X//"
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12762 $as_echo_n "checking for fgrep... " >&6; }
12763 if ${ac_cv_path_FGREP+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12767 then ac_cv_path_FGREP="$GREP -F"
12768 else
12769 if test -z "$FGREP"; then
12770 ac_path_FGREP_found=false
12771 # Loop through the user's path and test for each of PROGNAME-LIST
12772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12774 do
12775 IFS=$as_save_IFS
12776 test -z "$as_dir" && as_dir=.
12777 for ac_prog in fgrep; do
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12780 as_fn_executable_p "$ac_path_FGREP" || continue
12781 # Check for GNU ac_path_FGREP and select it if it is found.
12782 # Check for GNU $ac_path_FGREP
12783 case `"$ac_path_FGREP" --version 2>&1` in
12784 *GNU*)
12785 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12786 *)
12787 ac_count=0
12788 $as_echo_n 0123456789 >"conftest.in"
12789 while :
12790 do
12791 cat "conftest.in" "conftest.in" >"conftest.tmp"
12792 mv "conftest.tmp" "conftest.in"
12793 cp "conftest.in" "conftest.nl"
12794 $as_echo 'FGREP' >> "conftest.nl"
12795 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12797 as_fn_arith $ac_count + 1 && ac_count=$as_val
12798 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12799 # Best one so far, save it but keep looking for a better one
12800 ac_cv_path_FGREP="$ac_path_FGREP"
12801 ac_path_FGREP_max=$ac_count
12802 fi
12803 # 10*(2^10) chars as input seems more than enough
12804 test $ac_count -gt 10 && break
12805 done
12806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12807 esac
12808
12809 $ac_path_FGREP_found && break 3
12810 done
12811 done
12812 done
12813 IFS=$as_save_IFS
12814 if test -z "$ac_cv_path_FGREP"; then
12815 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12816 fi
12817 else
12818 ac_cv_path_FGREP=$FGREP
12819 fi
12820
12821 fi
12822 fi
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12824 $as_echo "$ac_cv_path_FGREP" >&6; }
12825 FGREP="$ac_cv_path_FGREP"
12826
12827
12828 test -z "$GREP" && GREP=grep
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848 # Check whether --with-gnu-ld was given.
12849 if test "${with_gnu_ld+set}" = set; then :
12850 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12851 else
12852 with_gnu_ld=no
12853 fi
12854
12855 ac_prog=ld
12856 if test "$GCC" = yes; then
12857 # Check if gcc -print-prog-name=ld gives a path.
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12859 $as_echo_n "checking for ld used by $CC... " >&6; }
12860 case $host in
12861 *-*-mingw*)
12862 # gcc leaves a trailing carriage return which upsets mingw
12863 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12864 *)
12865 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12866 esac
12867 case $ac_prog in
12868 # Accept absolute paths.
12869 [\\/]* | ?:[\\/]*)
12870 re_direlt='/[^/][^/]*/\.\./'
12871 # Canonicalize the pathname of ld
12872 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12873 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12874 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12875 done
12876 test -z "$LD" && LD="$ac_prog"
12877 ;;
12878 "")
12879 # If it fails, then pretend we aren't using GCC.
12880 ac_prog=ld
12881 ;;
12882 *)
12883 # If it is relative, then search for the first ld in PATH.
12884 with_gnu_ld=unknown
12885 ;;
12886 esac
12887 elif test "$with_gnu_ld" = yes; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12889 $as_echo_n "checking for GNU ld... " >&6; }
12890 else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12892 $as_echo_n "checking for non-GNU ld... " >&6; }
12893 fi
12894 if ${lt_cv_path_LD+:} false; then :
12895 $as_echo_n "(cached) " >&6
12896 else
12897 if test -z "$LD"; then
12898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12899 for ac_dir in $PATH; do
12900 IFS="$lt_save_ifs"
12901 test -z "$ac_dir" && ac_dir=.
12902 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12903 lt_cv_path_LD="$ac_dir/$ac_prog"
12904 # Check to see if the program is GNU ld. I'd rather use --version,
12905 # but apparently some variants of GNU ld only accept -v.
12906 # Break only if it was the GNU/non-GNU ld that we prefer.
12907 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12908 *GNU* | *'with BFD'*)
12909 test "$with_gnu_ld" != no && break
12910 ;;
12911 *)
12912 test "$with_gnu_ld" != yes && break
12913 ;;
12914 esac
12915 fi
12916 done
12917 IFS="$lt_save_ifs"
12918 else
12919 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12920 fi
12921 fi
12922
12923 LD="$lt_cv_path_LD"
12924 if test -n "$LD"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12926 $as_echo "$LD" >&6; }
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12930 fi
12931 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12933 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12934 if ${lt_cv_prog_gnu_ld+:} false; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12938 case `$LD -v 2>&1 </dev/null` in
12939 *GNU* | *'with BFD'*)
12940 lt_cv_prog_gnu_ld=yes
12941 ;;
12942 *)
12943 lt_cv_prog_gnu_ld=no
12944 ;;
12945 esac
12946 fi
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12948 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12949 with_gnu_ld=$lt_cv_prog_gnu_ld
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12960 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12961 if ${lt_cv_path_NM+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 if test -n "$NM"; then
12965 # Let the user override the test.
12966 lt_cv_path_NM="$NM"
12967 else
12968 lt_nm_to_check="${ac_tool_prefix}nm"
12969 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12970 lt_nm_to_check="$lt_nm_to_check nm"
12971 fi
12972 for lt_tmp_nm in $lt_nm_to_check; do
12973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12974 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12975 IFS="$lt_save_ifs"
12976 test -z "$ac_dir" && ac_dir=.
12977 tmp_nm="$ac_dir/$lt_tmp_nm"
12978 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12979 # Check to see if the nm accepts a BSD-compat flag.
12980 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12981 # nm: unknown option "B" ignored
12982 # Tru64's nm complains that /dev/null is an invalid object file
12983 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12984 */dev/null* | *'Invalid file or object type'*)
12985 lt_cv_path_NM="$tmp_nm -B"
12986 break
12987 ;;
12988 *)
12989 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12990 */dev/null*)
12991 lt_cv_path_NM="$tmp_nm -p"
12992 break
12993 ;;
12994 *)
12995 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12996 continue # so that we can try to find one that supports BSD flags
12997 ;;
12998 esac
12999 ;;
13000 esac
13001 fi
13002 done
13003 IFS="$lt_save_ifs"
13004 done
13005 : ${lt_cv_path_NM=no}
13006 fi
13007 fi
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13009 $as_echo "$lt_cv_path_NM" >&6; }
13010 if test "$lt_cv_path_NM" != "no"; then
13011 NM="$lt_cv_path_NM"
13012 else
13013 # Didn't find any BSD compatible name lister, look for dumpbin.
13014 if test -n "$DUMPBIN"; then :
13015 # Let the user override the test.
13016 else
13017 if test -n "$ac_tool_prefix"; then
13018 for ac_prog in dumpbin "link -dump"
13019 do
13020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if ${ac_cv_prog_DUMPBIN+:} false; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 if test -n "$DUMPBIN"; then
13028 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13029 else
13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $PATH
13032 do
13033 IFS=$as_save_IFS
13034 test -z "$as_dir" && as_dir=.
13035 for ac_exec_ext in '' $ac_executable_extensions; do
13036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13037 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13039 break 2
13040 fi
13041 done
13042 done
13043 IFS=$as_save_IFS
13044
13045 fi
13046 fi
13047 DUMPBIN=$ac_cv_prog_DUMPBIN
13048 if test -n "$DUMPBIN"; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13050 $as_echo "$DUMPBIN" >&6; }
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13054 fi
13055
13056
13057 test -n "$DUMPBIN" && break
13058 done
13059 fi
13060 if test -z "$DUMPBIN"; then
13061 ac_ct_DUMPBIN=$DUMPBIN
13062 for ac_prog in dumpbin "link -dump"
13063 do
13064 # Extract the first word of "$ac_prog", so it can be a program name with args.
13065 set dummy $ac_prog; ac_word=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067 $as_echo_n "checking for $ac_word... " >&6; }
13068 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 if test -n "$ac_ct_DUMPBIN"; then
13072 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13073 else
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13076 do
13077 IFS=$as_save_IFS
13078 test -z "$as_dir" && as_dir=.
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13083 break 2
13084 fi
13085 done
13086 done
13087 IFS=$as_save_IFS
13088
13089 fi
13090 fi
13091 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13092 if test -n "$ac_ct_DUMPBIN"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13094 $as_echo "$ac_ct_DUMPBIN" >&6; }
13095 else
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13098 fi
13099
13100
13101 test -n "$ac_ct_DUMPBIN" && break
13102 done
13103
13104 if test "x$ac_ct_DUMPBIN" = x; then
13105 DUMPBIN=":"
13106 else
13107 case $cross_compiling:$ac_tool_warned in
13108 yes:)
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13111 ac_tool_warned=yes ;;
13112 esac
13113 DUMPBIN=$ac_ct_DUMPBIN
13114 fi
13115 fi
13116
13117 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13118 *COFF*)
13119 DUMPBIN="$DUMPBIN -symbols"
13120 ;;
13121 *)
13122 DUMPBIN=:
13123 ;;
13124 esac
13125 fi
13126
13127 if test "$DUMPBIN" != ":"; then
13128 NM="$DUMPBIN"
13129 fi
13130 fi
13131 test -z "$NM" && NM=nm
13132
13133
13134
13135
13136
13137
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13139 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13140 if ${lt_cv_nm_interface+:} false; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 lt_cv_nm_interface="BSD nm"
13144 echo "int some_variable = 0;" > conftest.$ac_ext
13145 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13146 (eval "$ac_compile" 2>conftest.err)
13147 cat conftest.err >&5
13148 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13149 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13150 cat conftest.err >&5
13151 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13152 cat conftest.out >&5
13153 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13154 lt_cv_nm_interface="MS dumpbin"
13155 fi
13156 rm -f conftest*
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13159 $as_echo "$lt_cv_nm_interface" >&6; }
13160
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13162 $as_echo_n "checking whether ln -s works... " >&6; }
13163 LN_S=$as_ln_s
13164 if test "$LN_S" = "ln -s"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13166 $as_echo "yes" >&6; }
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13169 $as_echo "no, using $LN_S" >&6; }
13170 fi
13171
13172 # find the maximum length of command line arguments
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13174 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13175 if ${lt_cv_sys_max_cmd_len+:} false; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 i=0
13179 teststring="ABCD"
13180
13181 case $build_os in
13182 msdosdjgpp*)
13183 # On DJGPP, this test can blow up pretty badly due to problems in libc
13184 # (any single argument exceeding 2000 bytes causes a buffer overrun
13185 # during glob expansion). Even if it were fixed, the result of this
13186 # check would be larger than it should be.
13187 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13188 ;;
13189
13190 gnu*)
13191 # Under GNU Hurd, this test is not required because there is
13192 # no limit to the length of command line arguments.
13193 # Libtool will interpret -1 as no limit whatsoever
13194 lt_cv_sys_max_cmd_len=-1;
13195 ;;
13196
13197 cygwin* | mingw* | cegcc*)
13198 # On Win9x/ME, this test blows up -- it succeeds, but takes
13199 # about 5 minutes as the teststring grows exponentially.
13200 # Worse, since 9x/ME are not pre-emptively multitasking,
13201 # you end up with a "frozen" computer, even though with patience
13202 # the test eventually succeeds (with a max line length of 256k).
13203 # Instead, let's just punt: use the minimum linelength reported by
13204 # all of the supported platforms: 8192 (on NT/2K/XP).
13205 lt_cv_sys_max_cmd_len=8192;
13206 ;;
13207
13208 mint*)
13209 # On MiNT this can take a long time and run out of memory.
13210 lt_cv_sys_max_cmd_len=8192;
13211 ;;
13212
13213 amigaos*)
13214 # On AmigaOS with pdksh, this test takes hours, literally.
13215 # So we just punt and use a minimum line length of 8192.
13216 lt_cv_sys_max_cmd_len=8192;
13217 ;;
13218
13219 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13220 # This has been around since 386BSD, at least. Likely further.
13221 if test -x /sbin/sysctl; then
13222 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13223 elif test -x /usr/sbin/sysctl; then
13224 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13225 else
13226 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13227 fi
13228 # And add a safety zone
13229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13231 ;;
13232
13233 interix*)
13234 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13235 lt_cv_sys_max_cmd_len=196608
13236 ;;
13237
13238 osf*)
13239 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13240 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13241 # nice to cause kernel panics so lets avoid the loop below.
13242 # First set a reasonable default.
13243 lt_cv_sys_max_cmd_len=16384
13244 #
13245 if test -x /sbin/sysconfig; then
13246 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13247 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13248 esac
13249 fi
13250 ;;
13251 sco3.2v5*)
13252 lt_cv_sys_max_cmd_len=102400
13253 ;;
13254 sysv5* | sco5v6* | sysv4.2uw2*)
13255 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13256 if test -n "$kargmax"; then
13257 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13258 else
13259 lt_cv_sys_max_cmd_len=32768
13260 fi
13261 ;;
13262 *)
13263 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13264 if test -n "$lt_cv_sys_max_cmd_len"; then
13265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13267 else
13268 # Make teststring a little bigger before we do anything with it.
13269 # a 1K string should be a reasonable start.
13270 for i in 1 2 3 4 5 6 7 8 ; do
13271 teststring=$teststring$teststring
13272 done
13273 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13274 # If test is not a shell built-in, we'll probably end up computing a
13275 # maximum length that is only half of the actual maximum length, but
13276 # we can't tell.
13277 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13278 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13279 test $i != 17 # 1/2 MB should be enough
13280 do
13281 i=`expr $i + 1`
13282 teststring=$teststring$teststring
13283 done
13284 # Only check the string length outside the loop.
13285 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13286 teststring=
13287 # Add a significant safety factor because C++ compilers can tack on
13288 # massive amounts of additional arguments before passing them to the
13289 # linker. It appears as though 1/2 is a usable value.
13290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13291 fi
13292 ;;
13293 esac
13294
13295 fi
13296
13297 if test -n $lt_cv_sys_max_cmd_len ; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13299 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13300 else
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13302 $as_echo "none" >&6; }
13303 fi
13304 max_cmd_len=$lt_cv_sys_max_cmd_len
13305
13306
13307
13308
13309
13310
13311 : ${CP="cp -f"}
13312 : ${MV="mv -f"}
13313 : ${RM="rm -f"}
13314
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13316 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13317 # Try some XSI features
13318 xsi_shell=no
13319 ( _lt_dummy="a/b/c"
13320 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13321 = c,a/b,, \
13322 && eval 'test $(( 1 + 1 )) -eq 2 \
13323 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13324 && xsi_shell=yes
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13326 $as_echo "$xsi_shell" >&6; }
13327
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13330 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13331 lt_shell_append=no
13332 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13333 >/dev/null 2>&1 \
13334 && lt_shell_append=yes
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13336 $as_echo "$lt_shell_append" >&6; }
13337
13338
13339 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13340 lt_unset=unset
13341 else
13342 lt_unset=false
13343 fi
13344
13345
13346
13347
13348
13349 # test EBCDIC or ASCII
13350 case `echo X|tr X '\101'` in
13351 A) # ASCII based system
13352 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13353 lt_SP2NL='tr \040 \012'
13354 lt_NL2SP='tr \015\012 \040\040'
13355 ;;
13356 *) # EBCDIC based system
13357 lt_SP2NL='tr \100 \n'
13358 lt_NL2SP='tr \r\n \100\100'
13359 ;;
13360 esac
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13371 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13372 if ${lt_cv_ld_reload_flag+:} false; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 lt_cv_ld_reload_flag='-r'
13376 fi
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13378 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13379 reload_flag=$lt_cv_ld_reload_flag
13380 case $reload_flag in
13381 "" | " "*) ;;
13382 *) reload_flag=" $reload_flag" ;;
13383 esac
13384 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13385 case $host_os in
13386 darwin*)
13387 if test "$GCC" = yes; then
13388 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13389 else
13390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13391 fi
13392 ;;
13393 esac
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403 if test -n "$ac_tool_prefix"; then
13404 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13405 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407 $as_echo_n "checking for $ac_word... " >&6; }
13408 if ${ac_cv_prog_OBJDUMP+:} false; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 if test -n "$OBJDUMP"; then
13412 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13413 else
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415 for as_dir in $PATH
13416 do
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
13420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13421 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13423 break 2
13424 fi
13425 done
13426 done
13427 IFS=$as_save_IFS
13428
13429 fi
13430 fi
13431 OBJDUMP=$ac_cv_prog_OBJDUMP
13432 if test -n "$OBJDUMP"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13434 $as_echo "$OBJDUMP" >&6; }
13435 else
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437 $as_echo "no" >&6; }
13438 fi
13439
13440
13441 fi
13442 if test -z "$ac_cv_prog_OBJDUMP"; then
13443 ac_ct_OBJDUMP=$OBJDUMP
13444 # Extract the first word of "objdump", so it can be a program name with args.
13445 set dummy objdump; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 $as_echo_n "checking for $ac_word... " >&6; }
13448 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 if test -n "$ac_ct_OBJDUMP"; then
13452 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13453 else
13454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455 for as_dir in $PATH
13456 do
13457 IFS=$as_save_IFS
13458 test -z "$as_dir" && as_dir=.
13459 for ac_exec_ext in '' $ac_executable_extensions; do
13460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13461 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13463 break 2
13464 fi
13465 done
13466 done
13467 IFS=$as_save_IFS
13468
13469 fi
13470 fi
13471 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13472 if test -n "$ac_ct_OBJDUMP"; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13474 $as_echo "$ac_ct_OBJDUMP" >&6; }
13475 else
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13478 fi
13479
13480 if test "x$ac_ct_OBJDUMP" = x; then
13481 OBJDUMP="false"
13482 else
13483 case $cross_compiling:$ac_tool_warned in
13484 yes:)
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13487 ac_tool_warned=yes ;;
13488 esac
13489 OBJDUMP=$ac_ct_OBJDUMP
13490 fi
13491 else
13492 OBJDUMP="$ac_cv_prog_OBJDUMP"
13493 fi
13494
13495 test -z "$OBJDUMP" && OBJDUMP=objdump
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13506 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13507 if ${lt_cv_deplibs_check_method+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 lt_cv_file_magic_cmd='$MAGIC_CMD'
13511 lt_cv_file_magic_test_file=
13512 lt_cv_deplibs_check_method='unknown'
13513 # Need to set the preceding variable on all platforms that support
13514 # interlibrary dependencies.
13515 # 'none' -- dependencies not supported.
13516 # `unknown' -- same as none, but documents that we really don't know.
13517 # 'pass_all' -- all dependencies passed with no checks.
13518 # 'test_compile' -- check by making test program.
13519 # 'file_magic [[regex]]' -- check by looking for files in library path
13520 # which responds to the $file_magic_cmd with a given extended regex.
13521 # If you have `file' or equivalent on your system and you're not sure
13522 # whether `pass_all' will *always* work, you probably want this one.
13523
13524 case $host_os in
13525 aix[4-9]*)
13526 lt_cv_deplibs_check_method=pass_all
13527 ;;
13528
13529 beos*)
13530 lt_cv_deplibs_check_method=pass_all
13531 ;;
13532
13533 bsdi[45]*)
13534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13535 lt_cv_file_magic_cmd='/usr/bin/file -L'
13536 lt_cv_file_magic_test_file=/shlib/libc.so
13537 ;;
13538
13539 cygwin*)
13540 # func_win32_libid is a shell function defined in ltmain.sh
13541 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13542 lt_cv_file_magic_cmd='func_win32_libid'
13543 ;;
13544
13545 mingw* | pw32*)
13546 # Base MSYS/MinGW do not provide the 'file' command needed by
13547 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13548 # unless we find 'file', for example because we are cross-compiling.
13549 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13550 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13551 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13552 lt_cv_file_magic_cmd='func_win32_libid'
13553 else
13554 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13555 lt_cv_file_magic_cmd='$OBJDUMP -f'
13556 fi
13557 ;;
13558
13559 cegcc*)
13560 # use the weaker test based on 'objdump'. See mingw*.
13561 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13562 lt_cv_file_magic_cmd='$OBJDUMP -f'
13563 ;;
13564
13565 darwin* | rhapsody*)
13566 lt_cv_deplibs_check_method=pass_all
13567 ;;
13568
13569 freebsd* | dragonfly*)
13570 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13571 case $host_cpu in
13572 i*86 )
13573 # Not sure whether the presence of OpenBSD here was a mistake.
13574 # Let's accept both of them until this is cleared up.
13575 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13576 lt_cv_file_magic_cmd=/usr/bin/file
13577 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13578 ;;
13579 esac
13580 else
13581 lt_cv_deplibs_check_method=pass_all
13582 fi
13583 ;;
13584
13585 gnu*)
13586 lt_cv_deplibs_check_method=pass_all
13587 ;;
13588
13589 haiku*)
13590 lt_cv_deplibs_check_method=pass_all
13591 ;;
13592
13593 hpux10.20* | hpux11*)
13594 lt_cv_file_magic_cmd=/usr/bin/file
13595 case $host_cpu in
13596 ia64*)
13597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13598 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13599 ;;
13600 hppa*64*)
13601 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]'
13602 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13603 ;;
13604 *)
13605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13606 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13607 ;;
13608 esac
13609 ;;
13610
13611 interix[3-9]*)
13612 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13614 ;;
13615
13616 irix5* | irix6* | nonstopux*)
13617 case $LD in
13618 *-32|*"-32 ") libmagic=32-bit;;
13619 *-n32|*"-n32 ") libmagic=N32;;
13620 *-64|*"-64 ") libmagic=64-bit;;
13621 *) libmagic=never-match;;
13622 esac
13623 lt_cv_deplibs_check_method=pass_all
13624 ;;
13625
13626 # This must be Linux ELF.
13627 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13628 lt_cv_deplibs_check_method=pass_all
13629 ;;
13630
13631 netbsd*)
13632 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13634 else
13635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13636 fi
13637 ;;
13638
13639 newos6*)
13640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13641 lt_cv_file_magic_cmd=/usr/bin/file
13642 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13643 ;;
13644
13645 *nto* | *qnx*)
13646 lt_cv_deplibs_check_method=pass_all
13647 ;;
13648
13649 openbsd*)
13650 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13652 else
13653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13654 fi
13655 ;;
13656
13657 osf3* | osf4* | osf5*)
13658 lt_cv_deplibs_check_method=pass_all
13659 ;;
13660
13661 rdos*)
13662 lt_cv_deplibs_check_method=pass_all
13663 ;;
13664
13665 solaris*)
13666 lt_cv_deplibs_check_method=pass_all
13667 ;;
13668
13669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13670 lt_cv_deplibs_check_method=pass_all
13671 ;;
13672
13673 sysv4 | sysv4.3*)
13674 case $host_vendor in
13675 motorola)
13676 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]'
13677 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13678 ;;
13679 ncr)
13680 lt_cv_deplibs_check_method=pass_all
13681 ;;
13682 sequent)
13683 lt_cv_file_magic_cmd='/bin/file'
13684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13685 ;;
13686 sni)
13687 lt_cv_file_magic_cmd='/bin/file'
13688 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13689 lt_cv_file_magic_test_file=/lib/libc.so
13690 ;;
13691 siemens)
13692 lt_cv_deplibs_check_method=pass_all
13693 ;;
13694 pc)
13695 lt_cv_deplibs_check_method=pass_all
13696 ;;
13697 esac
13698 ;;
13699
13700 tpf*)
13701 lt_cv_deplibs_check_method=pass_all
13702 ;;
13703 esac
13704
13705 fi
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13707 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13708 file_magic_cmd=$lt_cv_file_magic_cmd
13709 deplibs_check_method=$lt_cv_deplibs_check_method
13710 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723 if test -n "$ac_tool_prefix"; then
13724 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13725 set dummy ${ac_tool_prefix}ar; ac_word=$2
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13727 $as_echo_n "checking for $ac_word... " >&6; }
13728 if ${ac_cv_prog_AR+:} false; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 if test -n "$AR"; then
13732 ac_cv_prog_AR="$AR" # Let the user override the test.
13733 else
13734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735 for as_dir in $PATH
13736 do
13737 IFS=$as_save_IFS
13738 test -z "$as_dir" && as_dir=.
13739 for ac_exec_ext in '' $ac_executable_extensions; do
13740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13741 ac_cv_prog_AR="${ac_tool_prefix}ar"
13742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13743 break 2
13744 fi
13745 done
13746 done
13747 IFS=$as_save_IFS
13748
13749 fi
13750 fi
13751 AR=$ac_cv_prog_AR
13752 if test -n "$AR"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13754 $as_echo "$AR" >&6; }
13755 else
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13758 fi
13759
13760
13761 fi
13762 if test -z "$ac_cv_prog_AR"; then
13763 ac_ct_AR=$AR
13764 # Extract the first word of "ar", so it can be a program name with args.
13765 set dummy ar; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 if test -n "$ac_ct_AR"; then
13772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13773 else
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13776 do
13777 IFS=$as_save_IFS
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781 ac_cv_prog_ac_ct_AR="ar"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783 break 2
13784 fi
13785 done
13786 done
13787 IFS=$as_save_IFS
13788
13789 fi
13790 fi
13791 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13792 if test -n "$ac_ct_AR"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13794 $as_echo "$ac_ct_AR" >&6; }
13795 else
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 $as_echo "no" >&6; }
13798 fi
13799
13800 if test "x$ac_ct_AR" = x; then
13801 AR="false"
13802 else
13803 case $cross_compiling:$ac_tool_warned in
13804 yes:)
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13807 ac_tool_warned=yes ;;
13808 esac
13809 AR=$ac_ct_AR
13810 fi
13811 else
13812 AR="$ac_cv_prog_AR"
13813 fi
13814
13815 test -z "$AR" && AR=ar
13816 test -z "$AR_FLAGS" && AR_FLAGS=cru
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828 if test -n "$ac_tool_prefix"; then
13829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13830 set dummy ${ac_tool_prefix}strip; ac_word=$2
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13832 $as_echo_n "checking for $ac_word... " >&6; }
13833 if ${ac_cv_prog_STRIP+:} false; then :
13834 $as_echo_n "(cached) " >&6
13835 else
13836 if test -n "$STRIP"; then
13837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13838 else
13839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840 for as_dir in $PATH
13841 do
13842 IFS=$as_save_IFS
13843 test -z "$as_dir" && as_dir=.
13844 for ac_exec_ext in '' $ac_executable_extensions; do
13845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13848 break 2
13849 fi
13850 done
13851 done
13852 IFS=$as_save_IFS
13853
13854 fi
13855 fi
13856 STRIP=$ac_cv_prog_STRIP
13857 if test -n "$STRIP"; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13859 $as_echo "$STRIP" >&6; }
13860 else
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862 $as_echo "no" >&6; }
13863 fi
13864
13865
13866 fi
13867 if test -z "$ac_cv_prog_STRIP"; then
13868 ac_ct_STRIP=$STRIP
13869 # Extract the first word of "strip", so it can be a program name with args.
13870 set dummy strip; ac_word=$2
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13872 $as_echo_n "checking for $ac_word... " >&6; }
13873 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 if test -n "$ac_ct_STRIP"; then
13877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13878 else
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $PATH
13881 do
13882 IFS=$as_save_IFS
13883 test -z "$as_dir" && as_dir=.
13884 for ac_exec_ext in '' $ac_executable_extensions; do
13885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13886 ac_cv_prog_ac_ct_STRIP="strip"
13887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 break 2
13889 fi
13890 done
13891 done
13892 IFS=$as_save_IFS
13893
13894 fi
13895 fi
13896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13897 if test -n "$ac_ct_STRIP"; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13899 $as_echo "$ac_ct_STRIP" >&6; }
13900 else
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13902 $as_echo "no" >&6; }
13903 fi
13904
13905 if test "x$ac_ct_STRIP" = x; then
13906 STRIP=":"
13907 else
13908 case $cross_compiling:$ac_tool_warned in
13909 yes:)
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13912 ac_tool_warned=yes ;;
13913 esac
13914 STRIP=$ac_ct_STRIP
13915 fi
13916 else
13917 STRIP="$ac_cv_prog_STRIP"
13918 fi
13919
13920 test -z "$STRIP" && STRIP=:
13921
13922
13923
13924
13925
13926
13927 if test -n "$ac_tool_prefix"; then
13928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13929 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13931 $as_echo_n "checking for $ac_word... " >&6; }
13932 if ${ac_cv_prog_RANLIB+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 if test -n "$RANLIB"; then
13936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13937 else
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13940 do
13941 IFS=$as_save_IFS
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13947 break 2
13948 fi
13949 done
13950 done
13951 IFS=$as_save_IFS
13952
13953 fi
13954 fi
13955 RANLIB=$ac_cv_prog_RANLIB
13956 if test -n "$RANLIB"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13958 $as_echo "$RANLIB" >&6; }
13959 else
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13962 fi
13963
13964
13965 fi
13966 if test -z "$ac_cv_prog_RANLIB"; then
13967 ac_ct_RANLIB=$RANLIB
13968 # Extract the first word of "ranlib", so it can be a program name with args.
13969 set dummy ranlib; ac_word=$2
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13971 $as_echo_n "checking for $ac_word... " >&6; }
13972 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13973 $as_echo_n "(cached) " >&6
13974 else
13975 if test -n "$ac_ct_RANLIB"; then
13976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13977 else
13978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13979 for as_dir in $PATH
13980 do
13981 IFS=$as_save_IFS
13982 test -z "$as_dir" && as_dir=.
13983 for ac_exec_ext in '' $ac_executable_extensions; do
13984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13985 ac_cv_prog_ac_ct_RANLIB="ranlib"
13986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13987 break 2
13988 fi
13989 done
13990 done
13991 IFS=$as_save_IFS
13992
13993 fi
13994 fi
13995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13996 if test -n "$ac_ct_RANLIB"; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13998 $as_echo "$ac_ct_RANLIB" >&6; }
13999 else
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14001 $as_echo "no" >&6; }
14002 fi
14003
14004 if test "x$ac_ct_RANLIB" = x; then
14005 RANLIB=":"
14006 else
14007 case $cross_compiling:$ac_tool_warned in
14008 yes:)
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14011 ac_tool_warned=yes ;;
14012 esac
14013 RANLIB=$ac_ct_RANLIB
14014 fi
14015 else
14016 RANLIB="$ac_cv_prog_RANLIB"
14017 fi
14018
14019 test -z "$RANLIB" && RANLIB=:
14020
14021
14022
14023
14024
14025
14026 # Determine commands to create old-style static archives.
14027 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14028 old_postinstall_cmds='chmod 644 $oldlib'
14029 old_postuninstall_cmds=
14030
14031 if test -n "$RANLIB"; then
14032 case $host_os in
14033 openbsd*)
14034 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14035 ;;
14036 *)
14037 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14038 ;;
14039 esac
14040 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14041 fi
14042
14043 case $host_os in
14044 darwin*)
14045 lock_old_archive_extraction=yes ;;
14046 *)
14047 lock_old_archive_extraction=no ;;
14048 esac
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088 # If no C compiler was specified, use CC.
14089 LTCC=${LTCC-"$CC"}
14090
14091 # If no C compiler flags were specified, use CFLAGS.
14092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14093
14094 # Allow CC to be a program name with arguments.
14095 compiler=$CC
14096
14097
14098 # Check for command to grab the raw symbol name followed by C symbol from nm.
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14100 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14101 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14102 $as_echo_n "(cached) " >&6
14103 else
14104
14105 # These are sane defaults that work on at least a few old systems.
14106 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14107
14108 # Character class describing NM global symbol codes.
14109 symcode='[BCDEGRST]'
14110
14111 # Regexp to match symbols that can be accessed directly from C.
14112 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14113
14114 # Define system-specific variables.
14115 case $host_os in
14116 aix*)
14117 symcode='[BCDT]'
14118 ;;
14119 cygwin* | mingw* | pw32* | cegcc*)
14120 symcode='[ABCDGISTW]'
14121 ;;
14122 hpux*)
14123 if test "$host_cpu" = ia64; then
14124 symcode='[ABCDEGRST]'
14125 fi
14126 ;;
14127 irix* | nonstopux*)
14128 symcode='[BCDEGRST]'
14129 ;;
14130 osf*)
14131 symcode='[BCDEGQRST]'
14132 ;;
14133 solaris*)
14134 symcode='[BDRT]'
14135 ;;
14136 sco3.2v5*)
14137 symcode='[DT]'
14138 ;;
14139 sysv4.2uw2*)
14140 symcode='[DT]'
14141 ;;
14142 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14143 symcode='[ABDT]'
14144 ;;
14145 sysv4)
14146 symcode='[DFNSTU]'
14147 ;;
14148 esac
14149
14150 # If we're using GNU nm, then use its standard symbol codes.
14151 case `$NM -V 2>&1` in
14152 *GNU* | *'with BFD'*)
14153 symcode='[ABCDGIRSTW]' ;;
14154 esac
14155
14156 # Transform an extracted symbol line into a proper C declaration.
14157 # Some systems (esp. on ia64) link data and code symbols differently,
14158 # so use this general approach.
14159 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14160
14161 # Transform an extracted symbol line into symbol name and symbol address
14162 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14163 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'"
14164
14165 # Handle CRLF in mingw tool chain
14166 opt_cr=
14167 case $build_os in
14168 mingw*)
14169 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14170 ;;
14171 esac
14172
14173 # Try without a prefix underscore, then with it.
14174 for ac_symprfx in "" "_"; do
14175
14176 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14177 symxfrm="\\1 $ac_symprfx\\2 \\2"
14178
14179 # Write the raw and C identifiers.
14180 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14181 # Fake it for dumpbin and say T for any non-static function
14182 # and D for any global variable.
14183 # Also find C++ and __fastcall symbols from MSVC++,
14184 # which start with @ or ?.
14185 lt_cv_sys_global_symbol_pipe="$AWK '"\
14186 " {last_section=section; section=\$ 3};"\
14187 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14188 " \$ 0!~/External *\|/{next};"\
14189 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14190 " {if(hide[section]) next};"\
14191 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14192 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14193 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14194 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14195 " ' prfx=^$ac_symprfx"
14196 else
14197 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14198 fi
14199
14200 # Check to see that the pipe works correctly.
14201 pipe_works=no
14202
14203 rm -f conftest*
14204 cat > conftest.$ac_ext <<_LT_EOF
14205 #ifdef __cplusplus
14206 extern "C" {
14207 #endif
14208 char nm_test_var;
14209 void nm_test_func(void);
14210 void nm_test_func(void){}
14211 #ifdef __cplusplus
14212 }
14213 #endif
14214 int main(){nm_test_var='a';nm_test_func();return(0);}
14215 _LT_EOF
14216
14217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14218 (eval $ac_compile) 2>&5
14219 ac_status=$?
14220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14221 test $ac_status = 0; }; then
14222 # Now try to grab the symbols.
14223 nlist=conftest.nm
14224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14225 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14226 ac_status=$?
14227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228 test $ac_status = 0; } && test -s "$nlist"; then
14229 # Try sorting and uniquifying the output.
14230 if sort "$nlist" | uniq > "$nlist"T; then
14231 mv -f "$nlist"T "$nlist"
14232 else
14233 rm -f "$nlist"T
14234 fi
14235
14236 # Make sure that we snagged all the symbols we need.
14237 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14238 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14239 cat <<_LT_EOF > conftest.$ac_ext
14240 #ifdef __cplusplus
14241 extern "C" {
14242 #endif
14243
14244 _LT_EOF
14245 # Now generate the symbol file.
14246 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14247
14248 cat <<_LT_EOF >> conftest.$ac_ext
14249
14250 /* The mapping between symbol names and symbols. */
14251 const struct {
14252 const char *name;
14253 void *address;
14254 }
14255 lt__PROGRAM__LTX_preloaded_symbols[] =
14256 {
14257 { "@PROGRAM@", (void *) 0 },
14258 _LT_EOF
14259 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14260 cat <<\_LT_EOF >> conftest.$ac_ext
14261 {0, (void *) 0}
14262 };
14263
14264 /* This works around a problem in FreeBSD linker */
14265 #ifdef FREEBSD_WORKAROUND
14266 static const void *lt_preloaded_setup() {
14267 return lt__PROGRAM__LTX_preloaded_symbols;
14268 }
14269 #endif
14270
14271 #ifdef __cplusplus
14272 }
14273 #endif
14274 _LT_EOF
14275 # Now try linking the two files.
14276 mv conftest.$ac_objext conftstm.$ac_objext
14277 lt_save_LIBS="$LIBS"
14278 lt_save_CFLAGS="$CFLAGS"
14279 LIBS="conftstm.$ac_objext"
14280 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14282 (eval $ac_link) 2>&5
14283 ac_status=$?
14284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14285 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14286 pipe_works=yes
14287 fi
14288 LIBS="$lt_save_LIBS"
14289 CFLAGS="$lt_save_CFLAGS"
14290 else
14291 echo "cannot find nm_test_func in $nlist" >&5
14292 fi
14293 else
14294 echo "cannot find nm_test_var in $nlist" >&5
14295 fi
14296 else
14297 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14298 fi
14299 else
14300 echo "$progname: failed program was:" >&5
14301 cat conftest.$ac_ext >&5
14302 fi
14303 rm -rf conftest* conftst*
14304
14305 # Do not use the global_symbol_pipe unless it works.
14306 if test "$pipe_works" = yes; then
14307 break
14308 else
14309 lt_cv_sys_global_symbol_pipe=
14310 fi
14311 done
14312
14313 fi
14314
14315 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14316 lt_cv_sys_global_symbol_to_cdecl=
14317 fi
14318 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14320 $as_echo "failed" >&6; }
14321 else
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14323 $as_echo "ok" >&6; }
14324 fi
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347 # Check whether --enable-libtool-lock was given.
14348 if test "${enable_libtool_lock+set}" = set; then :
14349 enableval=$enable_libtool_lock;
14350 fi
14351
14352 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14353
14354 # Some flags need to be propagated to the compiler or linker for good
14355 # libtool support.
14356 case $host in
14357 ia64-*-hpux*)
14358 # Find out which ABI we are using.
14359 echo 'int i;' > conftest.$ac_ext
14360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14361 (eval $ac_compile) 2>&5
14362 ac_status=$?
14363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14364 test $ac_status = 0; }; then
14365 case `/usr/bin/file conftest.$ac_objext` in
14366 *ELF-32*)
14367 HPUX_IA64_MODE="32"
14368 ;;
14369 *ELF-64*)
14370 HPUX_IA64_MODE="64"
14371 ;;
14372 esac
14373 fi
14374 rm -rf conftest*
14375 ;;
14376 *-*-irix6*)
14377 # Find out which ABI we are using.
14378 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14380 (eval $ac_compile) 2>&5
14381 ac_status=$?
14382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14383 test $ac_status = 0; }; then
14384 if test "$lt_cv_prog_gnu_ld" = yes; then
14385 case `/usr/bin/file conftest.$ac_objext` in
14386 *32-bit*)
14387 LD="${LD-ld} -melf32bsmip"
14388 ;;
14389 *N32*)
14390 LD="${LD-ld} -melf32bmipn32"
14391 ;;
14392 *64-bit*)
14393 LD="${LD-ld} -melf64bmip"
14394 ;;
14395 esac
14396 else
14397 case `/usr/bin/file conftest.$ac_objext` in
14398 *32-bit*)
14399 LD="${LD-ld} -32"
14400 ;;
14401 *N32*)
14402 LD="${LD-ld} -n32"
14403 ;;
14404 *64-bit*)
14405 LD="${LD-ld} -64"
14406 ;;
14407 esac
14408 fi
14409 fi
14410 rm -rf conftest*
14411 ;;
14412
14413 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14414 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14415 # Find out which ABI we are using.
14416 echo 'int i;' > conftest.$ac_ext
14417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14418 (eval $ac_compile) 2>&5
14419 ac_status=$?
14420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14421 test $ac_status = 0; }; then
14422 case `/usr/bin/file conftest.o` in
14423 *32-bit*)
14424 case $host in
14425 x86_64-*kfreebsd*-gnu)
14426 LD="${LD-ld} -m elf_i386_fbsd"
14427 ;;
14428 x86_64-*linux*)
14429 case `/usr/bin/file conftest.o` in
14430 *x86-64*)
14431 LD="${LD-ld} -m elf32_x86_64"
14432 ;;
14433 *)
14434 LD="${LD-ld} -m elf_i386"
14435 ;;
14436 esac
14437 ;;
14438 powerpc64le-*linux*)
14439 LD="${LD-ld} -m elf32lppclinux"
14440 ;;
14441 powerpc64-*linux*)
14442 LD="${LD-ld} -m elf32ppclinux"
14443 ;;
14444 s390x-*linux*)
14445 LD="${LD-ld} -m elf_s390"
14446 ;;
14447 sparc64-*linux*)
14448 LD="${LD-ld} -m elf32_sparc"
14449 ;;
14450 esac
14451 ;;
14452 *64-bit*)
14453 case $host in
14454 x86_64-*kfreebsd*-gnu)
14455 LD="${LD-ld} -m elf_x86_64_fbsd"
14456 ;;
14457 x86_64-*linux*)
14458 LD="${LD-ld} -m elf_x86_64"
14459 ;;
14460 powerpcle-*linux*)
14461 LD="${LD-ld} -m elf64lppc"
14462 ;;
14463 powerpc-*linux*)
14464 LD="${LD-ld} -m elf64ppc"
14465 ;;
14466 s390*-*linux*|s390*-*tpf*)
14467 LD="${LD-ld} -m elf64_s390"
14468 ;;
14469 sparc*-*linux*)
14470 LD="${LD-ld} -m elf64_sparc"
14471 ;;
14472 esac
14473 ;;
14474 esac
14475 fi
14476 rm -rf conftest*
14477 ;;
14478
14479 *-*-sco3.2v5*)
14480 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14481 SAVE_CFLAGS="$CFLAGS"
14482 CFLAGS="$CFLAGS -belf"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14484 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14485 if ${lt_cv_cc_needs_belf+:} false; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 ac_ext=c
14489 ac_cpp='$CPP $CPPFLAGS'
14490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14493
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496
14497 int
14498 main ()
14499 {
14500
14501 ;
14502 return 0;
14503 }
14504 _ACEOF
14505 if ac_fn_c_try_link "$LINENO"; then :
14506 lt_cv_cc_needs_belf=yes
14507 else
14508 lt_cv_cc_needs_belf=no
14509 fi
14510 rm -f core conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
14512 ac_ext=c
14513 ac_cpp='$CPP $CPPFLAGS'
14514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14517
14518 fi
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14520 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14523 CFLAGS="$SAVE_CFLAGS"
14524 fi
14525 ;;
14526 sparc*-*solaris*)
14527 # Find out which ABI we are using.
14528 echo 'int i;' > conftest.$ac_ext
14529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14530 (eval $ac_compile) 2>&5
14531 ac_status=$?
14532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14533 test $ac_status = 0; }; then
14534 case `/usr/bin/file conftest.o` in
14535 *64-bit*)
14536 case $lt_cv_prog_gnu_ld in
14537 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14538 *)
14539 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14540 LD="${LD-ld} -64"
14541 fi
14542 ;;
14543 esac
14544 ;;
14545 esac
14546 fi
14547 rm -rf conftest*
14548 ;;
14549 esac
14550
14551 need_locks="$enable_libtool_lock"
14552
14553
14554 case $host_os in
14555 rhapsody* | darwin*)
14556 if test -n "$ac_tool_prefix"; then
14557 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14558 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14560 $as_echo_n "checking for $ac_word... " >&6; }
14561 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14562 $as_echo_n "(cached) " >&6
14563 else
14564 if test -n "$DSYMUTIL"; then
14565 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14566 else
14567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14568 for as_dir in $PATH
14569 do
14570 IFS=$as_save_IFS
14571 test -z "$as_dir" && as_dir=.
14572 for ac_exec_ext in '' $ac_executable_extensions; do
14573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14574 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14576 break 2
14577 fi
14578 done
14579 done
14580 IFS=$as_save_IFS
14581
14582 fi
14583 fi
14584 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14585 if test -n "$DSYMUTIL"; then
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14587 $as_echo "$DSYMUTIL" >&6; }
14588 else
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14590 $as_echo "no" >&6; }
14591 fi
14592
14593
14594 fi
14595 if test -z "$ac_cv_prog_DSYMUTIL"; then
14596 ac_ct_DSYMUTIL=$DSYMUTIL
14597 # Extract the first word of "dsymutil", so it can be a program name with args.
14598 set dummy dsymutil; ac_word=$2
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14600 $as_echo_n "checking for $ac_word... " >&6; }
14601 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14602 $as_echo_n "(cached) " >&6
14603 else
14604 if test -n "$ac_ct_DSYMUTIL"; then
14605 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14606 else
14607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608 for as_dir in $PATH
14609 do
14610 IFS=$as_save_IFS
14611 test -z "$as_dir" && as_dir=.
14612 for ac_exec_ext in '' $ac_executable_extensions; do
14613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14614 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14616 break 2
14617 fi
14618 done
14619 done
14620 IFS=$as_save_IFS
14621
14622 fi
14623 fi
14624 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14625 if test -n "$ac_ct_DSYMUTIL"; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14627 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14628 else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630 $as_echo "no" >&6; }
14631 fi
14632
14633 if test "x$ac_ct_DSYMUTIL" = x; then
14634 DSYMUTIL=":"
14635 else
14636 case $cross_compiling:$ac_tool_warned in
14637 yes:)
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14640 ac_tool_warned=yes ;;
14641 esac
14642 DSYMUTIL=$ac_ct_DSYMUTIL
14643 fi
14644 else
14645 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14646 fi
14647
14648 if test -n "$ac_tool_prefix"; then
14649 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14650 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14652 $as_echo_n "checking for $ac_word... " >&6; }
14653 if ${ac_cv_prog_NMEDIT+:} false; then :
14654 $as_echo_n "(cached) " >&6
14655 else
14656 if test -n "$NMEDIT"; then
14657 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14658 else
14659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14660 for as_dir in $PATH
14661 do
14662 IFS=$as_save_IFS
14663 test -z "$as_dir" && as_dir=.
14664 for ac_exec_ext in '' $ac_executable_extensions; do
14665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14666 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14668 break 2
14669 fi
14670 done
14671 done
14672 IFS=$as_save_IFS
14673
14674 fi
14675 fi
14676 NMEDIT=$ac_cv_prog_NMEDIT
14677 if test -n "$NMEDIT"; then
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14679 $as_echo "$NMEDIT" >&6; }
14680 else
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14682 $as_echo "no" >&6; }
14683 fi
14684
14685
14686 fi
14687 if test -z "$ac_cv_prog_NMEDIT"; then
14688 ac_ct_NMEDIT=$NMEDIT
14689 # Extract the first word of "nmedit", so it can be a program name with args.
14690 set dummy nmedit; ac_word=$2
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14692 $as_echo_n "checking for $ac_word... " >&6; }
14693 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 if test -n "$ac_ct_NMEDIT"; then
14697 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14698 else
14699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14700 for as_dir in $PATH
14701 do
14702 IFS=$as_save_IFS
14703 test -z "$as_dir" && as_dir=.
14704 for ac_exec_ext in '' $ac_executable_extensions; do
14705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14706 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14708 break 2
14709 fi
14710 done
14711 done
14712 IFS=$as_save_IFS
14713
14714 fi
14715 fi
14716 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14717 if test -n "$ac_ct_NMEDIT"; then
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14719 $as_echo "$ac_ct_NMEDIT" >&6; }
14720 else
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14723 fi
14724
14725 if test "x$ac_ct_NMEDIT" = x; then
14726 NMEDIT=":"
14727 else
14728 case $cross_compiling:$ac_tool_warned in
14729 yes:)
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14732 ac_tool_warned=yes ;;
14733 esac
14734 NMEDIT=$ac_ct_NMEDIT
14735 fi
14736 else
14737 NMEDIT="$ac_cv_prog_NMEDIT"
14738 fi
14739
14740 if test -n "$ac_tool_prefix"; then
14741 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14742 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14744 $as_echo_n "checking for $ac_word... " >&6; }
14745 if ${ac_cv_prog_LIPO+:} false; then :
14746 $as_echo_n "(cached) " >&6
14747 else
14748 if test -n "$LIPO"; then
14749 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14750 else
14751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14752 for as_dir in $PATH
14753 do
14754 IFS=$as_save_IFS
14755 test -z "$as_dir" && as_dir=.
14756 for ac_exec_ext in '' $ac_executable_extensions; do
14757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14758 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14760 break 2
14761 fi
14762 done
14763 done
14764 IFS=$as_save_IFS
14765
14766 fi
14767 fi
14768 LIPO=$ac_cv_prog_LIPO
14769 if test -n "$LIPO"; then
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14771 $as_echo "$LIPO" >&6; }
14772 else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774 $as_echo "no" >&6; }
14775 fi
14776
14777
14778 fi
14779 if test -z "$ac_cv_prog_LIPO"; then
14780 ac_ct_LIPO=$LIPO
14781 # Extract the first word of "lipo", so it can be a program name with args.
14782 set dummy lipo; ac_word=$2
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14784 $as_echo_n "checking for $ac_word... " >&6; }
14785 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14786 $as_echo_n "(cached) " >&6
14787 else
14788 if test -n "$ac_ct_LIPO"; then
14789 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14790 else
14791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14792 for as_dir in $PATH
14793 do
14794 IFS=$as_save_IFS
14795 test -z "$as_dir" && as_dir=.
14796 for ac_exec_ext in '' $ac_executable_extensions; do
14797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14798 ac_cv_prog_ac_ct_LIPO="lipo"
14799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14800 break 2
14801 fi
14802 done
14803 done
14804 IFS=$as_save_IFS
14805
14806 fi
14807 fi
14808 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14809 if test -n "$ac_ct_LIPO"; then
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14811 $as_echo "$ac_ct_LIPO" >&6; }
14812 else
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14814 $as_echo "no" >&6; }
14815 fi
14816
14817 if test "x$ac_ct_LIPO" = x; then
14818 LIPO=":"
14819 else
14820 case $cross_compiling:$ac_tool_warned in
14821 yes:)
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14824 ac_tool_warned=yes ;;
14825 esac
14826 LIPO=$ac_ct_LIPO
14827 fi
14828 else
14829 LIPO="$ac_cv_prog_LIPO"
14830 fi
14831
14832 if test -n "$ac_tool_prefix"; then
14833 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14834 set dummy ${ac_tool_prefix}otool; ac_word=$2
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14836 $as_echo_n "checking for $ac_word... " >&6; }
14837 if ${ac_cv_prog_OTOOL+:} false; then :
14838 $as_echo_n "(cached) " >&6
14839 else
14840 if test -n "$OTOOL"; then
14841 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14842 else
14843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14844 for as_dir in $PATH
14845 do
14846 IFS=$as_save_IFS
14847 test -z "$as_dir" && as_dir=.
14848 for ac_exec_ext in '' $ac_executable_extensions; do
14849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14850 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14852 break 2
14853 fi
14854 done
14855 done
14856 IFS=$as_save_IFS
14857
14858 fi
14859 fi
14860 OTOOL=$ac_cv_prog_OTOOL
14861 if test -n "$OTOOL"; then
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14863 $as_echo "$OTOOL" >&6; }
14864 else
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14866 $as_echo "no" >&6; }
14867 fi
14868
14869
14870 fi
14871 if test -z "$ac_cv_prog_OTOOL"; then
14872 ac_ct_OTOOL=$OTOOL
14873 # Extract the first word of "otool", so it can be a program name with args.
14874 set dummy otool; ac_word=$2
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14876 $as_echo_n "checking for $ac_word... " >&6; }
14877 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14878 $as_echo_n "(cached) " >&6
14879 else
14880 if test -n "$ac_ct_OTOOL"; then
14881 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14882 else
14883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884 for as_dir in $PATH
14885 do
14886 IFS=$as_save_IFS
14887 test -z "$as_dir" && as_dir=.
14888 for ac_exec_ext in '' $ac_executable_extensions; do
14889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14890 ac_cv_prog_ac_ct_OTOOL="otool"
14891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14892 break 2
14893 fi
14894 done
14895 done
14896 IFS=$as_save_IFS
14897
14898 fi
14899 fi
14900 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14901 if test -n "$ac_ct_OTOOL"; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14903 $as_echo "$ac_ct_OTOOL" >&6; }
14904 else
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906 $as_echo "no" >&6; }
14907 fi
14908
14909 if test "x$ac_ct_OTOOL" = x; then
14910 OTOOL=":"
14911 else
14912 case $cross_compiling:$ac_tool_warned in
14913 yes:)
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14916 ac_tool_warned=yes ;;
14917 esac
14918 OTOOL=$ac_ct_OTOOL
14919 fi
14920 else
14921 OTOOL="$ac_cv_prog_OTOOL"
14922 fi
14923
14924 if test -n "$ac_tool_prefix"; then
14925 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14926 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14928 $as_echo_n "checking for $ac_word... " >&6; }
14929 if ${ac_cv_prog_OTOOL64+:} false; then :
14930 $as_echo_n "(cached) " >&6
14931 else
14932 if test -n "$OTOOL64"; then
14933 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14934 else
14935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14936 for as_dir in $PATH
14937 do
14938 IFS=$as_save_IFS
14939 test -z "$as_dir" && as_dir=.
14940 for ac_exec_ext in '' $ac_executable_extensions; do
14941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14942 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14944 break 2
14945 fi
14946 done
14947 done
14948 IFS=$as_save_IFS
14949
14950 fi
14951 fi
14952 OTOOL64=$ac_cv_prog_OTOOL64
14953 if test -n "$OTOOL64"; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14955 $as_echo "$OTOOL64" >&6; }
14956 else
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958 $as_echo "no" >&6; }
14959 fi
14960
14961
14962 fi
14963 if test -z "$ac_cv_prog_OTOOL64"; then
14964 ac_ct_OTOOL64=$OTOOL64
14965 # Extract the first word of "otool64", so it can be a program name with args.
14966 set dummy otool64; ac_word=$2
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14968 $as_echo_n "checking for $ac_word... " >&6; }
14969 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14970 $as_echo_n "(cached) " >&6
14971 else
14972 if test -n "$ac_ct_OTOOL64"; then
14973 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14974 else
14975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14977 do
14978 IFS=$as_save_IFS
14979 test -z "$as_dir" && as_dir=.
14980 for ac_exec_ext in '' $ac_executable_extensions; do
14981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14982 ac_cv_prog_ac_ct_OTOOL64="otool64"
14983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14984 break 2
14985 fi
14986 done
14987 done
14988 IFS=$as_save_IFS
14989
14990 fi
14991 fi
14992 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14993 if test -n "$ac_ct_OTOOL64"; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14995 $as_echo "$ac_ct_OTOOL64" >&6; }
14996 else
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
14999 fi
15000
15001 if test "x$ac_ct_OTOOL64" = x; then
15002 OTOOL64=":"
15003 else
15004 case $cross_compiling:$ac_tool_warned in
15005 yes:)
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15008 ac_tool_warned=yes ;;
15009 esac
15010 OTOOL64=$ac_ct_OTOOL64
15011 fi
15012 else
15013 OTOOL64="$ac_cv_prog_OTOOL64"
15014 fi
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15043 $as_echo_n "checking for -single_module linker flag... " >&6; }
15044 if ${lt_cv_apple_cc_single_mod+:} false; then :
15045 $as_echo_n "(cached) " >&6
15046 else
15047 lt_cv_apple_cc_single_mod=no
15048 if test -z "${LT_MULTI_MODULE}"; then
15049 # By default we will add the -single_module flag. You can override
15050 # by either setting the environment variable LT_MULTI_MODULE
15051 # non-empty at configure time, or by adding -multi_module to the
15052 # link flags.
15053 rm -rf libconftest.dylib*
15054 echo "int foo(void){return 1;}" > conftest.c
15055 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15056 -dynamiclib -Wl,-single_module conftest.c" >&5
15057 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15058 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15059 _lt_result=$?
15060 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15061 lt_cv_apple_cc_single_mod=yes
15062 else
15063 cat conftest.err >&5
15064 fi
15065 rm -rf libconftest.dylib*
15066 rm -f conftest.*
15067 fi
15068 fi
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15070 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15072 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15073 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15074 $as_echo_n "(cached) " >&6
15075 else
15076 lt_cv_ld_exported_symbols_list=no
15077 save_LDFLAGS=$LDFLAGS
15078 echo "_main" > conftest.sym
15079 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15082
15083 int
15084 main ()
15085 {
15086
15087 ;
15088 return 0;
15089 }
15090 _ACEOF
15091 if ac_fn_c_try_link "$LINENO"; then :
15092 lt_cv_ld_exported_symbols_list=yes
15093 else
15094 lt_cv_ld_exported_symbols_list=no
15095 fi
15096 rm -f core conftest.err conftest.$ac_objext \
15097 conftest$ac_exeext conftest.$ac_ext
15098 LDFLAGS="$save_LDFLAGS"
15099
15100 fi
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15102 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15104 $as_echo_n "checking for -force_load linker flag... " >&6; }
15105 if ${lt_cv_ld_force_load+:} false; then :
15106 $as_echo_n "(cached) " >&6
15107 else
15108 lt_cv_ld_force_load=no
15109 cat > conftest.c << _LT_EOF
15110 int forced_loaded() { return 2;}
15111 _LT_EOF
15112 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15113 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15114 echo "$AR cru libconftest.a conftest.o" >&5
15115 $AR cru libconftest.a conftest.o 2>&5
15116 cat > conftest.c << _LT_EOF
15117 int main() { return 0;}
15118 _LT_EOF
15119 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15120 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15121 _lt_result=$?
15122 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15123 lt_cv_ld_force_load=yes
15124 else
15125 cat conftest.err >&5
15126 fi
15127 rm -f conftest.err libconftest.a conftest conftest.c
15128 rm -rf conftest.dSYM
15129
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15132 $as_echo "$lt_cv_ld_force_load" >&6; }
15133 case $host_os in
15134 rhapsody* | darwin1.[012])
15135 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15136 darwin1.*)
15137 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15138 darwin*) # darwin 5.x on
15139 # if running on 10.5 or later, the deployment target defaults
15140 # to the OS version, if on x86, and 10.4, the deployment
15141 # target defaults to 10.4. Don't you love it?
15142 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15143 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15144 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15145 10.[012][,.]*)
15146 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15147 10.*)
15148 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15149 esac
15150 ;;
15151 esac
15152 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15153 _lt_dar_single_mod='$single_module'
15154 fi
15155 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15156 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15157 else
15158 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15159 fi
15160 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15161 _lt_dsymutil='~$DSYMUTIL $lib || :'
15162 else
15163 _lt_dsymutil=
15164 fi
15165 ;;
15166 esac
15167
15168
15169 for ac_header in dlfcn.h
15170 do :
15171 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15172 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15173 cat >>confdefs.h <<_ACEOF
15174 #define HAVE_DLFCN_H 1
15175 _ACEOF
15176
15177 fi
15178 done
15179
15180
15181
15182
15183
15184 # Set options
15185
15186
15187
15188 enable_dlopen=no
15189
15190
15191 enable_win32_dll=no
15192
15193
15194 # Check whether --enable-shared was given.
15195 if test "${enable_shared+set}" = set; then :
15196 enableval=$enable_shared; p=${PACKAGE-default}
15197 case $enableval in
15198 yes) enable_shared=yes ;;
15199 no) enable_shared=no ;;
15200 *)
15201 enable_shared=no
15202 # Look at the argument we got. We use all the common list separators.
15203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15204 for pkg in $enableval; do
15205 IFS="$lt_save_ifs"
15206 if test "X$pkg" = "X$p"; then
15207 enable_shared=yes
15208 fi
15209 done
15210 IFS="$lt_save_ifs"
15211 ;;
15212 esac
15213 else
15214 enable_shared=yes
15215 fi
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225 # Check whether --enable-static was given.
15226 if test "${enable_static+set}" = set; then :
15227 enableval=$enable_static; p=${PACKAGE-default}
15228 case $enableval in
15229 yes) enable_static=yes ;;
15230 no) enable_static=no ;;
15231 *)
15232 enable_static=no
15233 # Look at the argument we got. We use all the common list separators.
15234 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15235 for pkg in $enableval; do
15236 IFS="$lt_save_ifs"
15237 if test "X$pkg" = "X$p"; then
15238 enable_static=yes
15239 fi
15240 done
15241 IFS="$lt_save_ifs"
15242 ;;
15243 esac
15244 else
15245 enable_static=yes
15246 fi
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257 # Check whether --with-pic was given.
15258 if test "${with_pic+set}" = set; then :
15259 withval=$with_pic; pic_mode="$withval"
15260 else
15261 pic_mode=default
15262 fi
15263
15264
15265 test -z "$pic_mode" && pic_mode=default
15266
15267
15268
15269
15270
15271
15272
15273 # Check whether --enable-fast-install was given.
15274 if test "${enable_fast_install+set}" = set; then :
15275 enableval=$enable_fast_install; p=${PACKAGE-default}
15276 case $enableval in
15277 yes) enable_fast_install=yes ;;
15278 no) enable_fast_install=no ;;
15279 *)
15280 enable_fast_install=no
15281 # Look at the argument we got. We use all the common list separators.
15282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15283 for pkg in $enableval; do
15284 IFS="$lt_save_ifs"
15285 if test "X$pkg" = "X$p"; then
15286 enable_fast_install=yes
15287 fi
15288 done
15289 IFS="$lt_save_ifs"
15290 ;;
15291 esac
15292 else
15293 enable_fast_install=yes
15294 fi
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306 # This can be used to rebuild libtool when needed
15307 LIBTOOL_DEPS="$ltmain"
15308
15309 # Always use our own libtool.
15310 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337 test -z "$LN_S" && LN_S="ln -s"
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352 if test -n "${ZSH_VERSION+set}" ; then
15353 setopt NO_GLOB_SUBST
15354 fi
15355
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15357 $as_echo_n "checking for objdir... " >&6; }
15358 if ${lt_cv_objdir+:} false; then :
15359 $as_echo_n "(cached) " >&6
15360 else
15361 rm -f .libs 2>/dev/null
15362 mkdir .libs 2>/dev/null
15363 if test -d .libs; then
15364 lt_cv_objdir=.libs
15365 else
15366 # MS-DOS does not allow filenames that begin with a dot.
15367 lt_cv_objdir=_libs
15368 fi
15369 rmdir .libs 2>/dev/null
15370 fi
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15372 $as_echo "$lt_cv_objdir" >&6; }
15373 objdir=$lt_cv_objdir
15374
15375
15376
15377
15378
15379 cat >>confdefs.h <<_ACEOF
15380 #define LT_OBJDIR "$lt_cv_objdir/"
15381 _ACEOF
15382
15383
15384
15385
15386 case $host_os in
15387 aix3*)
15388 # AIX sometimes has problems with the GCC collect2 program. For some
15389 # reason, if we set the COLLECT_NAMES environment variable, the problems
15390 # vanish in a puff of smoke.
15391 if test "X${COLLECT_NAMES+set}" != Xset; then
15392 COLLECT_NAMES=
15393 export COLLECT_NAMES
15394 fi
15395 ;;
15396 esac
15397
15398 # Global variables:
15399 ofile=libtool
15400 can_build_shared=yes
15401
15402 # All known linkers require a `.a' archive for static linking (except MSVC,
15403 # which needs '.lib').
15404 libext=a
15405
15406 with_gnu_ld="$lt_cv_prog_gnu_ld"
15407
15408 old_CC="$CC"
15409 old_CFLAGS="$CFLAGS"
15410
15411 # Set sane defaults for various variables
15412 test -z "$CC" && CC=cc
15413 test -z "$LTCC" && LTCC=$CC
15414 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15415 test -z "$LD" && LD=ld
15416 test -z "$ac_objext" && ac_objext=o
15417
15418 for cc_temp in $compiler""; do
15419 case $cc_temp in
15420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15422 \-*) ;;
15423 *) break;;
15424 esac
15425 done
15426 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15427
15428
15429 # Only perform the check for file, if the check method requires it
15430 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15431 case $deplibs_check_method in
15432 file_magic*)
15433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15435 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15436 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15437 $as_echo_n "(cached) " >&6
15438 else
15439 case $MAGIC_CMD in
15440 [\\/*] | ?:[\\/]*)
15441 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15442 ;;
15443 *)
15444 lt_save_MAGIC_CMD="$MAGIC_CMD"
15445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15447 for ac_dir in $ac_dummy; do
15448 IFS="$lt_save_ifs"
15449 test -z "$ac_dir" && ac_dir=.
15450 if test -f $ac_dir/${ac_tool_prefix}file; then
15451 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15452 if test -n "$file_magic_test_file"; then
15453 case $deplibs_check_method in
15454 "file_magic "*)
15455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15458 $EGREP "$file_magic_regex" > /dev/null; then
15459 :
15460 else
15461 cat <<_LT_EOF 1>&2
15462
15463 *** Warning: the command libtool uses to detect shared libraries,
15464 *** $file_magic_cmd, produces output that libtool cannot recognize.
15465 *** The result is that libtool may fail to recognize shared libraries
15466 *** as such. This will affect the creation of libtool libraries that
15467 *** depend on shared libraries, but programs linked with such libtool
15468 *** libraries will work regardless of this problem. Nevertheless, you
15469 *** may want to report the problem to your system manager and/or to
15470 *** bug-libtool@gnu.org
15471
15472 _LT_EOF
15473 fi ;;
15474 esac
15475 fi
15476 break
15477 fi
15478 done
15479 IFS="$lt_save_ifs"
15480 MAGIC_CMD="$lt_save_MAGIC_CMD"
15481 ;;
15482 esac
15483 fi
15484
15485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15486 if test -n "$MAGIC_CMD"; then
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15488 $as_echo "$MAGIC_CMD" >&6; }
15489 else
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491 $as_echo "no" >&6; }
15492 fi
15493
15494
15495
15496
15497
15498 if test -z "$lt_cv_path_MAGIC_CMD"; then
15499 if test -n "$ac_tool_prefix"; then
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15501 $as_echo_n "checking for file... " >&6; }
15502 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15503 $as_echo_n "(cached) " >&6
15504 else
15505 case $MAGIC_CMD in
15506 [\\/*] | ?:[\\/]*)
15507 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15508 ;;
15509 *)
15510 lt_save_MAGIC_CMD="$MAGIC_CMD"
15511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15512 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15513 for ac_dir in $ac_dummy; do
15514 IFS="$lt_save_ifs"
15515 test -z "$ac_dir" && ac_dir=.
15516 if test -f $ac_dir/file; then
15517 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15518 if test -n "$file_magic_test_file"; then
15519 case $deplibs_check_method in
15520 "file_magic "*)
15521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15524 $EGREP "$file_magic_regex" > /dev/null; then
15525 :
15526 else
15527 cat <<_LT_EOF 1>&2
15528
15529 *** Warning: the command libtool uses to detect shared libraries,
15530 *** $file_magic_cmd, produces output that libtool cannot recognize.
15531 *** The result is that libtool may fail to recognize shared libraries
15532 *** as such. This will affect the creation of libtool libraries that
15533 *** depend on shared libraries, but programs linked with such libtool
15534 *** libraries will work regardless of this problem. Nevertheless, you
15535 *** may want to report the problem to your system manager and/or to
15536 *** bug-libtool@gnu.org
15537
15538 _LT_EOF
15539 fi ;;
15540 esac
15541 fi
15542 break
15543 fi
15544 done
15545 IFS="$lt_save_ifs"
15546 MAGIC_CMD="$lt_save_MAGIC_CMD"
15547 ;;
15548 esac
15549 fi
15550
15551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15552 if test -n "$MAGIC_CMD"; then
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15554 $as_echo "$MAGIC_CMD" >&6; }
15555 else
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15557 $as_echo "no" >&6; }
15558 fi
15559
15560
15561 else
15562 MAGIC_CMD=:
15563 fi
15564 fi
15565
15566 fi
15567 ;;
15568 esac
15569
15570 # Use C for the default configuration in the libtool script
15571
15572 lt_save_CC="$CC"
15573 ac_ext=c
15574 ac_cpp='$CPP $CPPFLAGS'
15575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15578
15579
15580 # Source file extension for C test sources.
15581 ac_ext=c
15582
15583 # Object file extension for compiled C test sources.
15584 objext=o
15585 objext=$objext
15586
15587 # Code to be used in simple compile tests
15588 lt_simple_compile_test_code="int some_variable = 0;"
15589
15590 # Code to be used in simple link tests
15591 lt_simple_link_test_code='int main(){return(0);}'
15592
15593
15594
15595
15596
15597
15598
15599 # If no C compiler was specified, use CC.
15600 LTCC=${LTCC-"$CC"}
15601
15602 # If no C compiler flags were specified, use CFLAGS.
15603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15604
15605 # Allow CC to be a program name with arguments.
15606 compiler=$CC
15607
15608 # Save the default compiler, since it gets overwritten when the other
15609 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15610 compiler_DEFAULT=$CC
15611
15612 # save warnings/boilerplate of simple test code
15613 ac_outfile=conftest.$ac_objext
15614 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15616 _lt_compiler_boilerplate=`cat conftest.err`
15617 $RM conftest*
15618
15619 ac_outfile=conftest.$ac_objext
15620 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15622 _lt_linker_boilerplate=`cat conftest.err`
15623 $RM -r conftest*
15624
15625
15626 ## CAVEAT EMPTOR:
15627 ## There is no encapsulation within the following macros, do not change
15628 ## the running order or otherwise move them around unless you know exactly
15629 ## what you are doing...
15630 if test -n "$compiler"; then
15631
15632 lt_prog_compiler_no_builtin_flag=
15633
15634 if test "$GCC" = yes; then
15635 case $cc_basename in
15636 nvcc*)
15637 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15638 *)
15639 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15640 esac
15641
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15643 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15644 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15645 $as_echo_n "(cached) " >&6
15646 else
15647 lt_cv_prog_compiler_rtti_exceptions=no
15648 ac_outfile=conftest.$ac_objext
15649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15650 lt_compiler_flag="-fno-rtti -fno-exceptions"
15651 # Insert the option either (1) after the last *FLAGS variable, or
15652 # (2) before a word containing "conftest.", or (3) at the end.
15653 # Note that $ac_compile itself does not contain backslashes and begins
15654 # with a dollar sign (not a hyphen), so the echo should work correctly.
15655 # The option is referenced via a variable to avoid confusing sed.
15656 lt_compile=`echo "$ac_compile" | $SED \
15657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15659 -e 's:$: $lt_compiler_flag:'`
15660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15661 (eval "$lt_compile" 2>conftest.err)
15662 ac_status=$?
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 if (exit $ac_status) && test -s "$ac_outfile"; then
15666 # The compiler can only warn and ignore the option if not recognized
15667 # So say no if there are warnings other than the usual output.
15668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15671 lt_cv_prog_compiler_rtti_exceptions=yes
15672 fi
15673 fi
15674 $RM conftest*
15675
15676 fi
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15678 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15679
15680 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15681 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15682 else
15683 :
15684 fi
15685
15686 fi
15687
15688
15689
15690
15691
15692
15693 lt_prog_compiler_wl=
15694 lt_prog_compiler_pic=
15695 lt_prog_compiler_static=
15696
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15698 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15699
15700 if test "$GCC" = yes; then
15701 lt_prog_compiler_wl='-Wl,'
15702 lt_prog_compiler_static='-static'
15703
15704 case $host_os in
15705 aix*)
15706 # All AIX code is PIC.
15707 if test "$host_cpu" = ia64; then
15708 # AIX 5 now supports IA64 processor
15709 lt_prog_compiler_static='-Bstatic'
15710 fi
15711 lt_prog_compiler_pic='-fPIC'
15712 ;;
15713
15714 amigaos*)
15715 case $host_cpu in
15716 powerpc)
15717 # see comment about AmigaOS4 .so support
15718 lt_prog_compiler_pic='-fPIC'
15719 ;;
15720 m68k)
15721 # FIXME: we need at least 68020 code to build shared libraries, but
15722 # adding the `-m68020' flag to GCC prevents building anything better,
15723 # like `-m68040'.
15724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15725 ;;
15726 esac
15727 ;;
15728
15729 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15730 # PIC is the default for these OSes.
15731 ;;
15732
15733 mingw* | cygwin* | pw32* | os2* | cegcc*)
15734 # This hack is so that the source file can tell whether it is being
15735 # built for inclusion in a dll (and should export symbols for example).
15736 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15737 # (--disable-auto-import) libraries
15738 lt_prog_compiler_pic='-DDLL_EXPORT'
15739 ;;
15740
15741 darwin* | rhapsody*)
15742 # PIC is the default on this platform
15743 # Common symbols not allowed in MH_DYLIB files
15744 lt_prog_compiler_pic='-fno-common'
15745 ;;
15746
15747 haiku*)
15748 # PIC is the default for Haiku.
15749 # The "-static" flag exists, but is broken.
15750 lt_prog_compiler_static=
15751 ;;
15752
15753 hpux*)
15754 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15755 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15756 # sets the default TLS model and affects inlining.
15757 case $host_cpu in
15758 hppa*64*)
15759 # +Z the default
15760 ;;
15761 *)
15762 lt_prog_compiler_pic='-fPIC'
15763 ;;
15764 esac
15765 ;;
15766
15767 interix[3-9]*)
15768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15769 # Instead, we relocate shared libraries at runtime.
15770 ;;
15771
15772 msdosdjgpp*)
15773 # Just because we use GCC doesn't mean we suddenly get shared libraries
15774 # on systems that don't support them.
15775 lt_prog_compiler_can_build_shared=no
15776 enable_shared=no
15777 ;;
15778
15779 *nto* | *qnx*)
15780 # QNX uses GNU C++, but need to define -shared option too, otherwise
15781 # it will coredump.
15782 lt_prog_compiler_pic='-fPIC -shared'
15783 ;;
15784
15785 sysv4*MP*)
15786 if test -d /usr/nec; then
15787 lt_prog_compiler_pic=-Kconform_pic
15788 fi
15789 ;;
15790
15791 *)
15792 lt_prog_compiler_pic='-fPIC'
15793 ;;
15794 esac
15795
15796 case $cc_basename in
15797 nvcc*) # Cuda Compiler Driver 2.2
15798 lt_prog_compiler_wl='-Xlinker '
15799 lt_prog_compiler_pic='-Xcompiler -fPIC'
15800 ;;
15801 esac
15802 else
15803 # PORTME Check for flag to pass linker flags through the system compiler.
15804 case $host_os in
15805 aix*)
15806 lt_prog_compiler_wl='-Wl,'
15807 if test "$host_cpu" = ia64; then
15808 # AIX 5 now supports IA64 processor
15809 lt_prog_compiler_static='-Bstatic'
15810 else
15811 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15812 fi
15813 ;;
15814
15815 mingw* | cygwin* | pw32* | os2* | cegcc*)
15816 # This hack is so that the source file can tell whether it is being
15817 # built for inclusion in a dll (and should export symbols for example).
15818 lt_prog_compiler_pic='-DDLL_EXPORT'
15819 ;;
15820
15821 hpux9* | hpux10* | hpux11*)
15822 lt_prog_compiler_wl='-Wl,'
15823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15824 # not for PA HP-UX.
15825 case $host_cpu in
15826 hppa*64*|ia64*)
15827 # +Z the default
15828 ;;
15829 *)
15830 lt_prog_compiler_pic='+Z'
15831 ;;
15832 esac
15833 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15834 lt_prog_compiler_static='${wl}-a ${wl}archive'
15835 ;;
15836
15837 irix5* | irix6* | nonstopux*)
15838 lt_prog_compiler_wl='-Wl,'
15839 # PIC (with -KPIC) is the default.
15840 lt_prog_compiler_static='-non_shared'
15841 ;;
15842
15843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15844 case $cc_basename in
15845 # old Intel for x86_64 which still supported -KPIC.
15846 ecc*)
15847 lt_prog_compiler_wl='-Wl,'
15848 lt_prog_compiler_pic='-KPIC'
15849 lt_prog_compiler_static='-static'
15850 ;;
15851 # icc used to be incompatible with GCC.
15852 # ICC 10 doesn't accept -KPIC any more.
15853 icc* | ifort*)
15854 lt_prog_compiler_wl='-Wl,'
15855 lt_prog_compiler_pic='-fPIC'
15856 lt_prog_compiler_static='-static'
15857 ;;
15858 # Lahey Fortran 8.1.
15859 lf95*)
15860 lt_prog_compiler_wl='-Wl,'
15861 lt_prog_compiler_pic='--shared'
15862 lt_prog_compiler_static='--static'
15863 ;;
15864 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15865 # Portland Group compilers (*not* the Pentium gcc compiler,
15866 # which looks to be a dead project)
15867 lt_prog_compiler_wl='-Wl,'
15868 lt_prog_compiler_pic='-fpic'
15869 lt_prog_compiler_static='-Bstatic'
15870 ;;
15871 ccc*)
15872 lt_prog_compiler_wl='-Wl,'
15873 # All Alpha code is PIC.
15874 lt_prog_compiler_static='-non_shared'
15875 ;;
15876 xl* | bgxl* | bgf* | mpixl*)
15877 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15878 lt_prog_compiler_wl='-Wl,'
15879 lt_prog_compiler_pic='-qpic'
15880 lt_prog_compiler_static='-qstaticlink'
15881 ;;
15882 *)
15883 case `$CC -V 2>&1 | sed 5q` in
15884 *Sun\ F* | *Sun*Fortran*)
15885 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15886 lt_prog_compiler_pic='-KPIC'
15887 lt_prog_compiler_static='-Bstatic'
15888 lt_prog_compiler_wl=''
15889 ;;
15890 *Sun\ C*)
15891 # Sun C 5.9
15892 lt_prog_compiler_pic='-KPIC'
15893 lt_prog_compiler_static='-Bstatic'
15894 lt_prog_compiler_wl='-Wl,'
15895 ;;
15896 esac
15897 ;;
15898 esac
15899 ;;
15900
15901 newsos6)
15902 lt_prog_compiler_pic='-KPIC'
15903 lt_prog_compiler_static='-Bstatic'
15904 ;;
15905
15906 *nto* | *qnx*)
15907 # QNX uses GNU C++, but need to define -shared option too, otherwise
15908 # it will coredump.
15909 lt_prog_compiler_pic='-fPIC -shared'
15910 ;;
15911
15912 osf3* | osf4* | osf5*)
15913 lt_prog_compiler_wl='-Wl,'
15914 # All OSF/1 code is PIC.
15915 lt_prog_compiler_static='-non_shared'
15916 ;;
15917
15918 rdos*)
15919 lt_prog_compiler_static='-non_shared'
15920 ;;
15921
15922 solaris*)
15923 lt_prog_compiler_pic='-KPIC'
15924 lt_prog_compiler_static='-Bstatic'
15925 case $cc_basename in
15926 f77* | f90* | f95*)
15927 lt_prog_compiler_wl='-Qoption ld ';;
15928 *)
15929 lt_prog_compiler_wl='-Wl,';;
15930 esac
15931 ;;
15932
15933 sunos4*)
15934 lt_prog_compiler_wl='-Qoption ld '
15935 lt_prog_compiler_pic='-PIC'
15936 lt_prog_compiler_static='-Bstatic'
15937 ;;
15938
15939 sysv4 | sysv4.2uw2* | sysv4.3*)
15940 lt_prog_compiler_wl='-Wl,'
15941 lt_prog_compiler_pic='-KPIC'
15942 lt_prog_compiler_static='-Bstatic'
15943 ;;
15944
15945 sysv4*MP*)
15946 if test -d /usr/nec ;then
15947 lt_prog_compiler_pic='-Kconform_pic'
15948 lt_prog_compiler_static='-Bstatic'
15949 fi
15950 ;;
15951
15952 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15953 lt_prog_compiler_wl='-Wl,'
15954 lt_prog_compiler_pic='-KPIC'
15955 lt_prog_compiler_static='-Bstatic'
15956 ;;
15957
15958 unicos*)
15959 lt_prog_compiler_wl='-Wl,'
15960 lt_prog_compiler_can_build_shared=no
15961 ;;
15962
15963 uts4*)
15964 lt_prog_compiler_pic='-pic'
15965 lt_prog_compiler_static='-Bstatic'
15966 ;;
15967
15968 *)
15969 lt_prog_compiler_can_build_shared=no
15970 ;;
15971 esac
15972 fi
15973
15974 case $host_os in
15975 # For platforms which do not support PIC, -DPIC is meaningless:
15976 *djgpp*)
15977 lt_prog_compiler_pic=
15978 ;;
15979 *)
15980 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15981 ;;
15982 esac
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15984 $as_echo "$lt_prog_compiler_pic" >&6; }
15985
15986
15987
15988
15989
15990
15991 #
15992 # Check to make sure the PIC flag actually works.
15993 #
15994 if test -n "$lt_prog_compiler_pic"; then
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15996 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15997 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15998 $as_echo_n "(cached) " >&6
15999 else
16000 lt_cv_prog_compiler_pic_works=no
16001 ac_outfile=conftest.$ac_objext
16002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16003 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16004 # Insert the option either (1) after the last *FLAGS variable, or
16005 # (2) before a word containing "conftest.", or (3) at the end.
16006 # Note that $ac_compile itself does not contain backslashes and begins
16007 # with a dollar sign (not a hyphen), so the echo should work correctly.
16008 # The option is referenced via a variable to avoid confusing sed.
16009 lt_compile=`echo "$ac_compile" | $SED \
16010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16012 -e 's:$: $lt_compiler_flag:'`
16013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16014 (eval "$lt_compile" 2>conftest.err)
16015 ac_status=$?
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 if (exit $ac_status) && test -s "$ac_outfile"; then
16019 # The compiler can only warn and ignore the option if not recognized
16020 # So say no if there are warnings other than the usual output.
16021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16024 lt_cv_prog_compiler_pic_works=yes
16025 fi
16026 fi
16027 $RM conftest*
16028
16029 fi
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16031 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16032
16033 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16034 case $lt_prog_compiler_pic in
16035 "" | " "*) ;;
16036 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16037 esac
16038 else
16039 lt_prog_compiler_pic=
16040 lt_prog_compiler_can_build_shared=no
16041 fi
16042
16043 fi
16044
16045
16046
16047
16048
16049
16050 #
16051 # Check to make sure the static flag actually works.
16052 #
16053 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16055 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16056 if ${lt_cv_prog_compiler_static_works+:} false; then :
16057 $as_echo_n "(cached) " >&6
16058 else
16059 lt_cv_prog_compiler_static_works=no
16060 save_LDFLAGS="$LDFLAGS"
16061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16062 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16064 # The linker can only warn and ignore the option if not recognized
16065 # So say no if there are warnings
16066 if test -s conftest.err; then
16067 # Append any errors to the config.log.
16068 cat conftest.err 1>&5
16069 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16071 if diff conftest.exp conftest.er2 >/dev/null; then
16072 lt_cv_prog_compiler_static_works=yes
16073 fi
16074 else
16075 lt_cv_prog_compiler_static_works=yes
16076 fi
16077 fi
16078 $RM -r conftest*
16079 LDFLAGS="$save_LDFLAGS"
16080
16081 fi
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16083 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16084
16085 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16086 :
16087 else
16088 lt_prog_compiler_static=
16089 fi
16090
16091
16092
16093
16094
16095
16096
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16098 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16099 if ${lt_cv_prog_compiler_c_o+:} false; then :
16100 $as_echo_n "(cached) " >&6
16101 else
16102 lt_cv_prog_compiler_c_o=no
16103 $RM -r conftest 2>/dev/null
16104 mkdir conftest
16105 cd conftest
16106 mkdir out
16107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16108
16109 lt_compiler_flag="-o out/conftest2.$ac_objext"
16110 # Insert the option either (1) after the last *FLAGS variable, or
16111 # (2) before a word containing "conftest.", or (3) at the end.
16112 # Note that $ac_compile itself does not contain backslashes and begins
16113 # with a dollar sign (not a hyphen), so the echo should work correctly.
16114 lt_compile=`echo "$ac_compile" | $SED \
16115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16117 -e 's:$: $lt_compiler_flag:'`
16118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16119 (eval "$lt_compile" 2>out/conftest.err)
16120 ac_status=$?
16121 cat out/conftest.err >&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16124 then
16125 # The compiler can only warn and ignore the option if not recognized
16126 # So say no if there are warnings
16127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16130 lt_cv_prog_compiler_c_o=yes
16131 fi
16132 fi
16133 chmod u+w . 2>&5
16134 $RM conftest*
16135 # SGI C++ compiler will create directory out/ii_files/ for
16136 # template instantiation
16137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16138 $RM out/* && rmdir out
16139 cd ..
16140 $RM -r conftest
16141 $RM conftest*
16142
16143 fi
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16145 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16146
16147
16148
16149
16150
16151
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16153 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16154 if ${lt_cv_prog_compiler_c_o+:} false; then :
16155 $as_echo_n "(cached) " >&6
16156 else
16157 lt_cv_prog_compiler_c_o=no
16158 $RM -r conftest 2>/dev/null
16159 mkdir conftest
16160 cd conftest
16161 mkdir out
16162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16163
16164 lt_compiler_flag="-o out/conftest2.$ac_objext"
16165 # Insert the option either (1) after the last *FLAGS variable, or
16166 # (2) before a word containing "conftest.", or (3) at the end.
16167 # Note that $ac_compile itself does not contain backslashes and begins
16168 # with a dollar sign (not a hyphen), so the echo should work correctly.
16169 lt_compile=`echo "$ac_compile" | $SED \
16170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16172 -e 's:$: $lt_compiler_flag:'`
16173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16174 (eval "$lt_compile" 2>out/conftest.err)
16175 ac_status=$?
16176 cat out/conftest.err >&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16179 then
16180 # The compiler can only warn and ignore the option if not recognized
16181 # So say no if there are warnings
16182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16185 lt_cv_prog_compiler_c_o=yes
16186 fi
16187 fi
16188 chmod u+w . 2>&5
16189 $RM conftest*
16190 # SGI C++ compiler will create directory out/ii_files/ for
16191 # template instantiation
16192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16193 $RM out/* && rmdir out
16194 cd ..
16195 $RM -r conftest
16196 $RM conftest*
16197
16198 fi
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16200 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16201
16202
16203
16204
16205 hard_links="nottested"
16206 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16207 # do not overwrite the value of need_locks provided by the user
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16209 $as_echo_n "checking if we can lock with hard links... " >&6; }
16210 hard_links=yes
16211 $RM conftest*
16212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16213 touch conftest.a
16214 ln conftest.a conftest.b 2>&5 || hard_links=no
16215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16217 $as_echo "$hard_links" >&6; }
16218 if test "$hard_links" = no; then
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16220 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16221 need_locks=warn
16222 fi
16223 else
16224 need_locks=no
16225 fi
16226
16227
16228
16229
16230
16231
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16233 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16234
16235 runpath_var=
16236 allow_undefined_flag=
16237 always_export_symbols=no
16238 archive_cmds=
16239 archive_expsym_cmds=
16240 compiler_needs_object=no
16241 enable_shared_with_static_runtimes=no
16242 export_dynamic_flag_spec=
16243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16244 hardcode_automatic=no
16245 hardcode_direct=no
16246 hardcode_direct_absolute=no
16247 hardcode_libdir_flag_spec=
16248 hardcode_libdir_flag_spec_ld=
16249 hardcode_libdir_separator=
16250 hardcode_minus_L=no
16251 hardcode_shlibpath_var=unsupported
16252 inherit_rpath=no
16253 link_all_deplibs=unknown
16254 module_cmds=
16255 module_expsym_cmds=
16256 old_archive_from_new_cmds=
16257 old_archive_from_expsyms_cmds=
16258 thread_safe_flag_spec=
16259 whole_archive_flag_spec=
16260 # include_expsyms should be a list of space-separated symbols to be *always*
16261 # included in the symbol list
16262 include_expsyms=
16263 # exclude_expsyms can be an extended regexp of symbols to exclude
16264 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16266 # as well as any symbol that contains `d'.
16267 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16269 # platforms (ab)use it in PIC code, but their linkers get confused if
16270 # the symbol is explicitly referenced. Since portable code cannot
16271 # rely on this symbol name, it's probably fine to never include it in
16272 # preloaded symbol tables.
16273 # Exclude shared library initialization/finalization symbols.
16274 extract_expsyms_cmds=
16275
16276 case $host_os in
16277 cygwin* | mingw* | pw32* | cegcc*)
16278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16279 # When not using gcc, we currently assume that we are using
16280 # Microsoft Visual C++.
16281 if test "$GCC" != yes; then
16282 with_gnu_ld=no
16283 fi
16284 ;;
16285 interix*)
16286 # we just hope/assume this is gcc and not c89 (= MSVC++)
16287 with_gnu_ld=yes
16288 ;;
16289 openbsd*)
16290 with_gnu_ld=no
16291 ;;
16292 esac
16293
16294 ld_shlibs=yes
16295
16296 # On some targets, GNU ld is compatible enough with the native linker
16297 # that we're better off using the native interface for both.
16298 lt_use_gnu_ld_interface=no
16299 if test "$with_gnu_ld" = yes; then
16300 case $host_os in
16301 aix*)
16302 # The AIX port of GNU ld has always aspired to compatibility
16303 # with the native linker. However, as the warning in the GNU ld
16304 # block says, versions before 2.19.5* couldn't really create working
16305 # shared libraries, regardless of the interface used.
16306 case `$LD -v 2>&1` in
16307 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16308 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16309 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16310 *)
16311 lt_use_gnu_ld_interface=yes
16312 ;;
16313 esac
16314 ;;
16315 *)
16316 lt_use_gnu_ld_interface=yes
16317 ;;
16318 esac
16319 fi
16320
16321 if test "$lt_use_gnu_ld_interface" = yes; then
16322 # If archive_cmds runs LD, not CC, wlarc should be empty
16323 wlarc='${wl}'
16324
16325 # Set some defaults for GNU ld with shared library support. These
16326 # are reset later if shared libraries are not supported. Putting them
16327 # here allows them to be overridden if necessary.
16328 runpath_var=LD_RUN_PATH
16329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16330 export_dynamic_flag_spec='${wl}--export-dynamic'
16331 # ancient GNU ld didn't support --whole-archive et. al.
16332 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16333 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16334 else
16335 whole_archive_flag_spec=
16336 fi
16337 supports_anon_versioning=no
16338 case `$LD -v 2>&1` in
16339 *GNU\ gold*) supports_anon_versioning=yes ;;
16340 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16341 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16342 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16343 *\ 2.11.*) ;; # other 2.11 versions
16344 *) supports_anon_versioning=yes ;;
16345 esac
16346
16347 # See if GNU ld supports shared libraries.
16348 case $host_os in
16349 aix[3-9]*)
16350 # On AIX/PPC, the GNU linker is very broken
16351 if test "$host_cpu" != ia64; then
16352 ld_shlibs=no
16353 cat <<_LT_EOF 1>&2
16354
16355 *** Warning: the GNU linker, at least up to release 2.19, is reported
16356 *** to be unable to reliably create shared libraries on AIX.
16357 *** Therefore, libtool is disabling shared libraries support. If you
16358 *** really care for shared libraries, you may want to install binutils
16359 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16360 *** You will then need to restart the configuration process.
16361
16362 _LT_EOF
16363 fi
16364 ;;
16365
16366 amigaos*)
16367 case $host_cpu in
16368 powerpc)
16369 # see comment about AmigaOS4 .so support
16370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16371 archive_expsym_cmds=''
16372 ;;
16373 m68k)
16374 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)'
16375 hardcode_libdir_flag_spec='-L$libdir'
16376 hardcode_minus_L=yes
16377 ;;
16378 esac
16379 ;;
16380
16381 beos*)
16382 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16383 allow_undefined_flag=unsupported
16384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16385 # support --undefined. This deserves some investigation. FIXME
16386 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16387 else
16388 ld_shlibs=no
16389 fi
16390 ;;
16391
16392 cygwin* | mingw* | pw32* | cegcc*)
16393 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16394 # as there is no search path for DLLs.
16395 hardcode_libdir_flag_spec='-L$libdir'
16396 export_dynamic_flag_spec='${wl}--export-all-symbols'
16397 allow_undefined_flag=unsupported
16398 always_export_symbols=no
16399 enable_shared_with_static_runtimes=yes
16400 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16401
16402 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16404 # If the export-symbols file already is a .def file (1st line
16405 # is EXPORTS), use it as is; otherwise, prepend...
16406 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16407 cp $export_symbols $output_objdir/$soname.def;
16408 else
16409 echo EXPORTS > $output_objdir/$soname.def;
16410 cat $export_symbols >> $output_objdir/$soname.def;
16411 fi~
16412 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16413 else
16414 ld_shlibs=no
16415 fi
16416 ;;
16417
16418 haiku*)
16419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16420 link_all_deplibs=yes
16421 ;;
16422
16423 interix[3-9]*)
16424 hardcode_direct=no
16425 hardcode_shlibpath_var=no
16426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16427 export_dynamic_flag_spec='${wl}-E'
16428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16429 # Instead, shared libraries are loaded at an image base (0x10000000 by
16430 # default) and relocated if they conflict, which is a slow very memory
16431 # consuming and fragmenting process. To avoid this, we pick a random,
16432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16435 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'
16436 ;;
16437
16438 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16439 tmp_diet=no
16440 if test "$host_os" = linux-dietlibc; then
16441 case $cc_basename in
16442 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16443 esac
16444 fi
16445 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16446 && test "$tmp_diet" = no
16447 then
16448 tmp_addflag=' $pic_flag'
16449 tmp_sharedflag='-shared'
16450 case $cc_basename,$host_cpu in
16451 pgcc*) # Portland Group C compiler
16452 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'
16453 tmp_addflag=' $pic_flag'
16454 ;;
16455 pgf77* | pgf90* | pgf95* | pgfortran*)
16456 # Portland Group f77 and f90 compilers
16457 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'
16458 tmp_addflag=' $pic_flag -Mnomain' ;;
16459 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16460 tmp_addflag=' -i_dynamic' ;;
16461 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16462 tmp_addflag=' -i_dynamic -nofor_main' ;;
16463 ifc* | ifort*) # Intel Fortran compiler
16464 tmp_addflag=' -nofor_main' ;;
16465 lf95*) # Lahey Fortran 8.1
16466 whole_archive_flag_spec=
16467 tmp_sharedflag='--shared' ;;
16468 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16469 tmp_sharedflag='-qmkshrobj'
16470 tmp_addflag= ;;
16471 nvcc*) # Cuda Compiler Driver 2.2
16472 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'
16473 compiler_needs_object=yes
16474 ;;
16475 esac
16476 case `$CC -V 2>&1 | sed 5q` in
16477 *Sun\ C*) # Sun C 5.9
16478 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'
16479 compiler_needs_object=yes
16480 tmp_sharedflag='-G' ;;
16481 *Sun\ F*) # Sun Fortran 8.3
16482 tmp_sharedflag='-G' ;;
16483 esac
16484 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16485
16486 if test "x$supports_anon_versioning" = xyes; then
16487 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16489 echo "local: *; };" >> $output_objdir/$libname.ver~
16490 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16491 fi
16492
16493 case $cc_basename in
16494 xlf* | bgf* | bgxlf* | mpixlf*)
16495 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16496 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16497 hardcode_libdir_flag_spec=
16498 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16499 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16500 if test "x$supports_anon_versioning" = xyes; then
16501 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16503 echo "local: *; };" >> $output_objdir/$libname.ver~
16504 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16505 fi
16506 ;;
16507 esac
16508 else
16509 ld_shlibs=no
16510 fi
16511 ;;
16512
16513 netbsd*)
16514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16515 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16516 wlarc=
16517 else
16518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16520 fi
16521 ;;
16522
16523 solaris*)
16524 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16525 ld_shlibs=no
16526 cat <<_LT_EOF 1>&2
16527
16528 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16529 *** create shared libraries on Solaris systems. Therefore, libtool
16530 *** is disabling shared libraries support. We urge you to upgrade GNU
16531 *** binutils to release 2.9.1 or newer. Another option is to modify
16532 *** your PATH or compiler configuration so that the native linker is
16533 *** used, and then restart.
16534
16535 _LT_EOF
16536 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16538 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16539 else
16540 ld_shlibs=no
16541 fi
16542 ;;
16543
16544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16545 case `$LD -v 2>&1` in
16546 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16547 ld_shlibs=no
16548 cat <<_LT_EOF 1>&2
16549
16550 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16551 *** reliably create shared libraries on SCO systems. Therefore, libtool
16552 *** is disabling shared libraries support. We urge you to upgrade GNU
16553 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16554 *** your PATH or compiler configuration so that the native linker is
16555 *** used, and then restart.
16556
16557 _LT_EOF
16558 ;;
16559 *)
16560 # For security reasons, it is highly recommended that you always
16561 # use absolute paths for naming shared libraries, and exclude the
16562 # DT_RUNPATH tag from executables and libraries. But doing so
16563 # requires that you compile everything twice, which is a pain.
16564 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16567 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16568 else
16569 ld_shlibs=no
16570 fi
16571 ;;
16572 esac
16573 ;;
16574
16575 sunos4*)
16576 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16577 wlarc=
16578 hardcode_direct=yes
16579 hardcode_shlibpath_var=no
16580 ;;
16581
16582 *)
16583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16585 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16586 else
16587 ld_shlibs=no
16588 fi
16589 ;;
16590 esac
16591
16592 if test "$ld_shlibs" = no; then
16593 runpath_var=
16594 hardcode_libdir_flag_spec=
16595 export_dynamic_flag_spec=
16596 whole_archive_flag_spec=
16597 fi
16598 else
16599 # PORTME fill in a description of your system's linker (not GNU ld)
16600 case $host_os in
16601 aix3*)
16602 allow_undefined_flag=unsupported
16603 always_export_symbols=yes
16604 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'
16605 # Note: this linker hardcodes the directories in LIBPATH if there
16606 # are no directories specified by -L.
16607 hardcode_minus_L=yes
16608 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16609 # Neither direct hardcoding nor static linking is supported with a
16610 # broken collect2.
16611 hardcode_direct=unsupported
16612 fi
16613 ;;
16614
16615 aix[4-9]*)
16616 if test "$host_cpu" = ia64; then
16617 # On IA64, the linker does run time linking by default, so we don't
16618 # have to do anything special.
16619 aix_use_runtimelinking=no
16620 exp_sym_flag='-Bexport'
16621 no_entry_flag=""
16622 else
16623 # If we're using GNU nm, then we don't want the "-C" option.
16624 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16625 # Also, AIX nm treats weak defined symbols like other global
16626 # defined symbols, whereas GNU nm marks them as "W".
16627 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16628 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'
16629 else
16630 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16631 fi
16632 aix_use_runtimelinking=no
16633
16634 # Test if we are trying to use run time linking or normal
16635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16636 # need to do runtime linking.
16637 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16638 for ld_flag in $LDFLAGS; do
16639 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16640 aix_use_runtimelinking=yes
16641 break
16642 fi
16643 done
16644 ;;
16645 esac
16646
16647 exp_sym_flag='-bexport'
16648 no_entry_flag='-bnoentry'
16649 fi
16650
16651 # When large executables or shared objects are built, AIX ld can
16652 # have problems creating the table of contents. If linking a library
16653 # or program results in "error TOC overflow" add -mminimal-toc to
16654 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16655 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16656
16657 archive_cmds=''
16658 hardcode_direct=yes
16659 hardcode_direct_absolute=yes
16660 hardcode_libdir_separator=':'
16661 link_all_deplibs=yes
16662 file_list_spec='${wl}-f,'
16663
16664 if test "$GCC" = yes; then
16665 case $host_os in aix4.[012]|aix4.[012].*)
16666 # We only want to do this on AIX 4.2 and lower, the check
16667 # below for broken collect2 doesn't work under 4.3+
16668 collect2name=`${CC} -print-prog-name=collect2`
16669 if test -f "$collect2name" &&
16670 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16671 then
16672 # We have reworked collect2
16673 :
16674 else
16675 # We have old collect2
16676 hardcode_direct=unsupported
16677 # It fails to find uninstalled libraries when the uninstalled
16678 # path is not listed in the libpath. Setting hardcode_minus_L
16679 # to unsupported forces relinking
16680 hardcode_minus_L=yes
16681 hardcode_libdir_flag_spec='-L$libdir'
16682 hardcode_libdir_separator=
16683 fi
16684 ;;
16685 esac
16686 shared_flag='-shared'
16687 if test "$aix_use_runtimelinking" = yes; then
16688 shared_flag="$shared_flag "'${wl}-G'
16689 fi
16690 else
16691 # not using gcc
16692 if test "$host_cpu" = ia64; then
16693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16694 # chokes on -Wl,-G. The following line is correct:
16695 shared_flag='-G'
16696 else
16697 if test "$aix_use_runtimelinking" = yes; then
16698 shared_flag='${wl}-G'
16699 else
16700 shared_flag='${wl}-bM:SRE'
16701 fi
16702 fi
16703 fi
16704
16705 export_dynamic_flag_spec='${wl}-bexpall'
16706 # It seems that -bexpall does not export symbols beginning with
16707 # underscore (_), so it is better to generate a list of symbols to export.
16708 always_export_symbols=yes
16709 if test "$aix_use_runtimelinking" = yes; then
16710 # Warning - without using the other runtime loading flags (-brtl),
16711 # -berok will link without error, but may produce a broken library.
16712 allow_undefined_flag='-berok'
16713 # Determine the default libpath from the value encoded in an
16714 # empty executable.
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16717
16718 int
16719 main ()
16720 {
16721
16722 ;
16723 return 0;
16724 }
16725 _ACEOF
16726 if ac_fn_c_try_link "$LINENO"; then :
16727
16728 lt_aix_libpath_sed='
16729 /Import File Strings/,/^$/ {
16730 /^0/ {
16731 s/^0 *\(.*\)$/\1/
16732 p
16733 }
16734 }'
16735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16736 # Check for a 64-bit object if we didn't find anything.
16737 if test -z "$aix_libpath"; then
16738 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16739 fi
16740 fi
16741 rm -f core conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
16743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16744
16745 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16746 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"
16747 else
16748 if test "$host_cpu" = ia64; then
16749 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16750 allow_undefined_flag="-z nodefs"
16751 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"
16752 else
16753 # Determine the default libpath from the value encoded in an
16754 # empty executable.
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757
16758 int
16759 main ()
16760 {
16761
16762 ;
16763 return 0;
16764 }
16765 _ACEOF
16766 if ac_fn_c_try_link "$LINENO"; then :
16767
16768 lt_aix_libpath_sed='
16769 /Import File Strings/,/^$/ {
16770 /^0/ {
16771 s/^0 *\(.*\)$/\1/
16772 p
16773 }
16774 }'
16775 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16776 # Check for a 64-bit object if we didn't find anything.
16777 if test -z "$aix_libpath"; then
16778 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16779 fi
16780 fi
16781 rm -f core conftest.err conftest.$ac_objext \
16782 conftest$ac_exeext conftest.$ac_ext
16783 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16784
16785 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16786 # Warning - without using the other run time loading flags,
16787 # -berok will link without error, but may produce a broken library.
16788 no_undefined_flag=' ${wl}-bernotok'
16789 allow_undefined_flag=' ${wl}-berok'
16790 if test "$with_gnu_ld" = yes; then
16791 # We only use this code for GNU lds that support --whole-archive.
16792 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16793 else
16794 # Exported symbols can be pulled into shared objects from archives
16795 whole_archive_flag_spec='$convenience'
16796 fi
16797 archive_cmds_need_lc=yes
16798 # This is similar to how AIX traditionally builds its shared libraries.
16799 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'
16800 fi
16801 fi
16802 ;;
16803
16804 amigaos*)
16805 case $host_cpu in
16806 powerpc)
16807 # see comment about AmigaOS4 .so support
16808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16809 archive_expsym_cmds=''
16810 ;;
16811 m68k)
16812 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)'
16813 hardcode_libdir_flag_spec='-L$libdir'
16814 hardcode_minus_L=yes
16815 ;;
16816 esac
16817 ;;
16818
16819 bsdi[45]*)
16820 export_dynamic_flag_spec=-rdynamic
16821 ;;
16822
16823 cygwin* | mingw* | pw32* | cegcc*)
16824 # When not using gcc, we currently assume that we are using
16825 # Microsoft Visual C++.
16826 # hardcode_libdir_flag_spec is actually meaningless, as there is
16827 # no search path for DLLs.
16828 hardcode_libdir_flag_spec=' '
16829 allow_undefined_flag=unsupported
16830 # Tell ltmain to make .lib files, not .a files.
16831 libext=lib
16832 # Tell ltmain to make .dll files, not .so files.
16833 shrext_cmds=".dll"
16834 # FIXME: Setting linknames here is a bad hack.
16835 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16836 # The linker will automatically build a .lib file if we build a DLL.
16837 old_archive_from_new_cmds='true'
16838 # FIXME: Should let the user specify the lib program.
16839 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16840 fix_srcfile_path='`cygpath -w "$srcfile"`'
16841 enable_shared_with_static_runtimes=yes
16842 ;;
16843
16844 darwin* | rhapsody*)
16845
16846
16847 archive_cmds_need_lc=no
16848 hardcode_direct=no
16849 hardcode_automatic=yes
16850 hardcode_shlibpath_var=unsupported
16851 if test "$lt_cv_ld_force_load" = "yes"; then
16852 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\"`'
16853 else
16854 whole_archive_flag_spec=''
16855 fi
16856 link_all_deplibs=yes
16857 allow_undefined_flag="$_lt_dar_allow_undefined"
16858 case $cc_basename in
16859 ifort*) _lt_dar_can_shared=yes ;;
16860 *) _lt_dar_can_shared=$GCC ;;
16861 esac
16862 if test "$_lt_dar_can_shared" = "yes"; then
16863 output_verbose_link_cmd=func_echo_all
16864 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16865 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16866 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}"
16867 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}"
16868
16869 else
16870 ld_shlibs=no
16871 fi
16872
16873 ;;
16874
16875 dgux*)
16876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16877 hardcode_libdir_flag_spec='-L$libdir'
16878 hardcode_shlibpath_var=no
16879 ;;
16880
16881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16882 # support. Future versions do this automatically, but an explicit c++rt0.o
16883 # does not break anything, and helps significantly (at the cost of a little
16884 # extra space).
16885 freebsd2.2*)
16886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16887 hardcode_libdir_flag_spec='-R$libdir'
16888 hardcode_direct=yes
16889 hardcode_shlibpath_var=no
16890 ;;
16891
16892 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16893 freebsd2.*)
16894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16895 hardcode_direct=yes
16896 hardcode_minus_L=yes
16897 hardcode_shlibpath_var=no
16898 ;;
16899
16900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16901 freebsd* | dragonfly*)
16902 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16903 hardcode_libdir_flag_spec='-R$libdir'
16904 hardcode_direct=yes
16905 hardcode_shlibpath_var=no
16906 ;;
16907
16908 hpux9*)
16909 if test "$GCC" = yes; then
16910 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'
16911 else
16912 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'
16913 fi
16914 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16915 hardcode_libdir_separator=:
16916 hardcode_direct=yes
16917
16918 # hardcode_minus_L: Not really in the search PATH,
16919 # but as the default location of the library.
16920 hardcode_minus_L=yes
16921 export_dynamic_flag_spec='${wl}-E'
16922 ;;
16923
16924 hpux10*)
16925 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16926 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16927 else
16928 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16929 fi
16930 if test "$with_gnu_ld" = no; then
16931 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16932 hardcode_libdir_flag_spec_ld='+b $libdir'
16933 hardcode_libdir_separator=:
16934 hardcode_direct=yes
16935 hardcode_direct_absolute=yes
16936 export_dynamic_flag_spec='${wl}-E'
16937 # hardcode_minus_L: Not really in the search PATH,
16938 # but as the default location of the library.
16939 hardcode_minus_L=yes
16940 fi
16941 ;;
16942
16943 hpux11*)
16944 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16945 case $host_cpu in
16946 hppa*64*)
16947 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16948 ;;
16949 ia64*)
16950 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16951 ;;
16952 *)
16953 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16954 ;;
16955 esac
16956 else
16957 case $host_cpu in
16958 hppa*64*)
16959 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16960 ;;
16961 ia64*)
16962 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16963 ;;
16964 *)
16965
16966 # Older versions of the 11.00 compiler do not understand -b yet
16967 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16969 $as_echo_n "checking if $CC understands -b... " >&6; }
16970 if ${lt_cv_prog_compiler__b+:} false; then :
16971 $as_echo_n "(cached) " >&6
16972 else
16973 lt_cv_prog_compiler__b=no
16974 save_LDFLAGS="$LDFLAGS"
16975 LDFLAGS="$LDFLAGS -b"
16976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16978 # The linker can only warn and ignore the option if not recognized
16979 # So say no if there are warnings
16980 if test -s conftest.err; then
16981 # Append any errors to the config.log.
16982 cat conftest.err 1>&5
16983 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16985 if diff conftest.exp conftest.er2 >/dev/null; then
16986 lt_cv_prog_compiler__b=yes
16987 fi
16988 else
16989 lt_cv_prog_compiler__b=yes
16990 fi
16991 fi
16992 $RM -r conftest*
16993 LDFLAGS="$save_LDFLAGS"
16994
16995 fi
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16997 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16998
16999 if test x"$lt_cv_prog_compiler__b" = xyes; then
17000 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17001 else
17002 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17003 fi
17004
17005 ;;
17006 esac
17007 fi
17008 if test "$with_gnu_ld" = no; then
17009 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17010 hardcode_libdir_separator=:
17011
17012 case $host_cpu in
17013 hppa*64*|ia64*)
17014 hardcode_direct=no
17015 hardcode_shlibpath_var=no
17016 ;;
17017 *)
17018 hardcode_direct=yes
17019 hardcode_direct_absolute=yes
17020 export_dynamic_flag_spec='${wl}-E'
17021
17022 # hardcode_minus_L: Not really in the search PATH,
17023 # but as the default location of the library.
17024 hardcode_minus_L=yes
17025 ;;
17026 esac
17027 fi
17028 ;;
17029
17030 irix5* | irix6* | nonstopux*)
17031 if test "$GCC" = yes; then
17032 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'
17033 # Try to use the -exported_symbol ld option, if it does not
17034 # work, assume that -exports_file does not work either and
17035 # implicitly export all symbols.
17036 save_LDFLAGS="$LDFLAGS"
17037 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17039 /* end confdefs.h. */
17040 int foo(void) {}
17041 _ACEOF
17042 if ac_fn_c_try_link "$LINENO"; then :
17043 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'
17044
17045 fi
17046 rm -f core conftest.err conftest.$ac_objext \
17047 conftest$ac_exeext conftest.$ac_ext
17048 LDFLAGS="$save_LDFLAGS"
17049 else
17050 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'
17051 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'
17052 fi
17053 archive_cmds_need_lc='no'
17054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17055 hardcode_libdir_separator=:
17056 inherit_rpath=yes
17057 link_all_deplibs=yes
17058 ;;
17059
17060 netbsd*)
17061 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17063 else
17064 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17065 fi
17066 hardcode_libdir_flag_spec='-R$libdir'
17067 hardcode_direct=yes
17068 hardcode_shlibpath_var=no
17069 ;;
17070
17071 newsos6)
17072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17073 hardcode_direct=yes
17074 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17075 hardcode_libdir_separator=:
17076 hardcode_shlibpath_var=no
17077 ;;
17078
17079 *nto* | *qnx*)
17080 ;;
17081
17082 openbsd*)
17083 if test -f /usr/libexec/ld.so; then
17084 hardcode_direct=yes
17085 hardcode_shlibpath_var=no
17086 hardcode_direct_absolute=yes
17087 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17088 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17089 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17091 export_dynamic_flag_spec='${wl}-E'
17092 else
17093 case $host_os in
17094 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17095 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17096 hardcode_libdir_flag_spec='-R$libdir'
17097 ;;
17098 *)
17099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17100 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17101 ;;
17102 esac
17103 fi
17104 else
17105 ld_shlibs=no
17106 fi
17107 ;;
17108
17109 os2*)
17110 hardcode_libdir_flag_spec='-L$libdir'
17111 hardcode_minus_L=yes
17112 allow_undefined_flag=unsupported
17113 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'
17114 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17115 ;;
17116
17117 osf3*)
17118 if test "$GCC" = yes; then
17119 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17120 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'
17121 else
17122 allow_undefined_flag=' -expect_unresolved \*'
17123 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'
17124 fi
17125 archive_cmds_need_lc='no'
17126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17127 hardcode_libdir_separator=:
17128 ;;
17129
17130 osf4* | osf5*) # as osf3* with the addition of -msym flag
17131 if test "$GCC" = yes; then
17132 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17133 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'
17134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17135 else
17136 allow_undefined_flag=' -expect_unresolved \*'
17137 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'
17138 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~
17139 $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'
17140
17141 # Both c and cxx compiler support -rpath directly
17142 hardcode_libdir_flag_spec='-rpath $libdir'
17143 fi
17144 archive_cmds_need_lc='no'
17145 hardcode_libdir_separator=:
17146 ;;
17147
17148 solaris*)
17149 no_undefined_flag=' -z defs'
17150 if test "$GCC" = yes; then
17151 wlarc='${wl}'
17152 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17154 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17155 else
17156 case `$CC -V 2>&1` in
17157 *"Compilers 5.0"*)
17158 wlarc=''
17159 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17161 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17162 ;;
17163 *)
17164 wlarc='${wl}'
17165 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17166 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17167 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17168 ;;
17169 esac
17170 fi
17171 hardcode_libdir_flag_spec='-R$libdir'
17172 hardcode_shlibpath_var=no
17173 case $host_os in
17174 solaris2.[0-5] | solaris2.[0-5].*) ;;
17175 *)
17176 # The compiler driver will combine and reorder linker options,
17177 # but understands `-z linker_flag'. GCC discards it without `$wl',
17178 # but is careful enough not to reorder.
17179 # Supported since Solaris 2.6 (maybe 2.5.1?)
17180 if test "$GCC" = yes; then
17181 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17182 else
17183 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17184 fi
17185 ;;
17186 esac
17187 link_all_deplibs=yes
17188 ;;
17189
17190 sunos4*)
17191 if test "x$host_vendor" = xsequent; then
17192 # Use $CC to link under sequent, because it throws in some extra .o
17193 # files that make .init and .fini sections work.
17194 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17195 else
17196 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17197 fi
17198 hardcode_libdir_flag_spec='-L$libdir'
17199 hardcode_direct=yes
17200 hardcode_minus_L=yes
17201 hardcode_shlibpath_var=no
17202 ;;
17203
17204 sysv4)
17205 case $host_vendor in
17206 sni)
17207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17208 hardcode_direct=yes # is this really true???
17209 ;;
17210 siemens)
17211 ## LD is ld it makes a PLAMLIB
17212 ## CC just makes a GrossModule.
17213 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17214 reload_cmds='$CC -r -o $output$reload_objs'
17215 hardcode_direct=no
17216 ;;
17217 motorola)
17218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17220 ;;
17221 esac
17222 runpath_var='LD_RUN_PATH'
17223 hardcode_shlibpath_var=no
17224 ;;
17225
17226 sysv4.3*)
17227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17228 hardcode_shlibpath_var=no
17229 export_dynamic_flag_spec='-Bexport'
17230 ;;
17231
17232 sysv4*MP*)
17233 if test -d /usr/nec; then
17234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 hardcode_shlibpath_var=no
17236 runpath_var=LD_RUN_PATH
17237 hardcode_runpath_var=yes
17238 ld_shlibs=yes
17239 fi
17240 ;;
17241
17242 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17243 no_undefined_flag='${wl}-z,text'
17244 archive_cmds_need_lc=no
17245 hardcode_shlibpath_var=no
17246 runpath_var='LD_RUN_PATH'
17247
17248 if test "$GCC" = yes; then
17249 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17250 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17251 else
17252 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17253 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17254 fi
17255 ;;
17256
17257 sysv5* | sco3.2v5* | sco5v6*)
17258 # Note: We can NOT use -z defs as we might desire, because we do not
17259 # link with -lc, and that would cause any symbols used from libc to
17260 # always be unresolved, which means just about no library would
17261 # ever link correctly. If we're not using GNU ld we use -z text
17262 # though, which does catch some bad symbols but isn't as heavy-handed
17263 # as -z defs.
17264 no_undefined_flag='${wl}-z,text'
17265 allow_undefined_flag='${wl}-z,nodefs'
17266 archive_cmds_need_lc=no
17267 hardcode_shlibpath_var=no
17268 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17269 hardcode_libdir_separator=':'
17270 link_all_deplibs=yes
17271 export_dynamic_flag_spec='${wl}-Bexport'
17272 runpath_var='LD_RUN_PATH'
17273
17274 if test "$GCC" = yes; then
17275 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17276 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17277 else
17278 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17279 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17280 fi
17281 ;;
17282
17283 uts4*)
17284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17285 hardcode_libdir_flag_spec='-L$libdir'
17286 hardcode_shlibpath_var=no
17287 ;;
17288
17289 *)
17290 ld_shlibs=no
17291 ;;
17292 esac
17293
17294 if test x$host_vendor = xsni; then
17295 case $host in
17296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17297 export_dynamic_flag_spec='${wl}-Blargedynsym'
17298 ;;
17299 esac
17300 fi
17301 fi
17302
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17304 $as_echo "$ld_shlibs" >&6; }
17305 test "$ld_shlibs" = no && can_build_shared=no
17306
17307 with_gnu_ld=$with_gnu_ld
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323 #
17324 # Do we need to explicitly link libc?
17325 #
17326 case "x$archive_cmds_need_lc" in
17327 x|xyes)
17328 # Assume -lc should be added
17329 archive_cmds_need_lc=yes
17330
17331 if test "$enable_shared" = yes && test "$GCC" = yes; then
17332 case $archive_cmds in
17333 *'~'*)
17334 # FIXME: we may have to deal with multi-command sequences.
17335 ;;
17336 '$CC '*)
17337 # Test whether the compiler implicitly links with -lc since on some
17338 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17339 # to ld, don't add -lc before -lgcc.
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17341 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17342 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17343 $as_echo_n "(cached) " >&6
17344 else
17345 $RM conftest*
17346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17347
17348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17349 (eval $ac_compile) 2>&5
17350 ac_status=$?
17351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17352 test $ac_status = 0; } 2>conftest.err; then
17353 soname=conftest
17354 lib=conftest
17355 libobjs=conftest.$ac_objext
17356 deplibs=
17357 wl=$lt_prog_compiler_wl
17358 pic_flag=$lt_prog_compiler_pic
17359 compiler_flags=-v
17360 linker_flags=-v
17361 verstring=
17362 output_objdir=.
17363 libname=conftest
17364 lt_save_allow_undefined_flag=$allow_undefined_flag
17365 allow_undefined_flag=
17366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17367 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17368 ac_status=$?
17369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17370 test $ac_status = 0; }
17371 then
17372 lt_cv_archive_cmds_need_lc=no
17373 else
17374 lt_cv_archive_cmds_need_lc=yes
17375 fi
17376 allow_undefined_flag=$lt_save_allow_undefined_flag
17377 else
17378 cat conftest.err 1>&5
17379 fi
17380 $RM conftest*
17381
17382 fi
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17384 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17385 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17386 ;;
17387 esac
17388 fi
17389 ;;
17390 esac
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17549 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17550
17551 if test "$GCC" = yes; then
17552 case $host_os in
17553 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17554 *) lt_awk_arg="/^libraries:/" ;;
17555 esac
17556 case $host_os in
17557 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17558 *) lt_sed_strip_eq="s,=/,/,g" ;;
17559 esac
17560 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17561 case $lt_search_path_spec in
17562 *\;*)
17563 # if the path contains ";" then we assume it to be the separator
17564 # otherwise default to the standard path separator (i.e. ":") - it is
17565 # assumed that no part of a normal pathname contains ";" but that should
17566 # okay in the real world where ";" in dirpaths is itself problematic.
17567 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17568 ;;
17569 *)
17570 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17571 ;;
17572 esac
17573 # Ok, now we have the path, separated by spaces, we can step through it
17574 # and add multilib dir if necessary.
17575 lt_tmp_lt_search_path_spec=
17576 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17577 for lt_sys_path in $lt_search_path_spec; do
17578 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17579 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17580 else
17581 test -d "$lt_sys_path" && \
17582 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17583 fi
17584 done
17585 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17586 BEGIN {RS=" "; FS="/|\n";} {
17587 lt_foo="";
17588 lt_count=0;
17589 for (lt_i = NF; lt_i > 0; lt_i--) {
17590 if ($lt_i != "" && $lt_i != ".") {
17591 if ($lt_i == "..") {
17592 lt_count++;
17593 } else {
17594 if (lt_count == 0) {
17595 lt_foo="/" $lt_i lt_foo;
17596 } else {
17597 lt_count--;
17598 }
17599 }
17600 }
17601 }
17602 if (lt_foo != "") { lt_freq[lt_foo]++; }
17603 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17604 }'`
17605 # AWK program above erroneously prepends '/' to C:/dos/paths
17606 # for these hosts.
17607 case $host_os in
17608 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17609 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17610 esac
17611 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17612 else
17613 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17614 fi
17615 library_names_spec=
17616 libname_spec='lib$name'
17617 soname_spec=
17618 shrext_cmds=".so"
17619 postinstall_cmds=
17620 postuninstall_cmds=
17621 finish_cmds=
17622 finish_eval=
17623 shlibpath_var=
17624 shlibpath_overrides_runpath=unknown
17625 version_type=none
17626 dynamic_linker="$host_os ld.so"
17627 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17628 need_lib_prefix=unknown
17629 hardcode_into_libs=no
17630
17631 # when you set need_version to no, make sure it does not cause -set_version
17632 # flags to be left without arguments
17633 need_version=unknown
17634
17635 case $host_os in
17636 aix3*)
17637 version_type=linux
17638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17639 shlibpath_var=LIBPATH
17640
17641 # AIX 3 has no versioning support, so we append a major version to the name.
17642 soname_spec='${libname}${release}${shared_ext}$major'
17643 ;;
17644
17645 aix[4-9]*)
17646 version_type=linux
17647 need_lib_prefix=no
17648 need_version=no
17649 hardcode_into_libs=yes
17650 if test "$host_cpu" = ia64; then
17651 # AIX 5 supports IA64
17652 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17653 shlibpath_var=LD_LIBRARY_PATH
17654 else
17655 # With GCC up to 2.95.x, collect2 would create an import file
17656 # for dependence libraries. The import file would start with
17657 # the line `#! .'. This would cause the generated library to
17658 # depend on `.', always an invalid library. This was fixed in
17659 # development snapshots of GCC prior to 3.0.
17660 case $host_os in
17661 aix4 | aix4.[01] | aix4.[01].*)
17662 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17663 echo ' yes '
17664 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17665 :
17666 else
17667 can_build_shared=no
17668 fi
17669 ;;
17670 esac
17671 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17672 # soname into executable. Probably we can add versioning support to
17673 # collect2, so additional links can be useful in future.
17674 if test "$aix_use_runtimelinking" = yes; then
17675 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17676 # instead of lib<name>.a to let people know that these are not
17677 # typical AIX shared libraries.
17678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17679 else
17680 # We preserve .a as extension for shared libraries through AIX4.2
17681 # and later when we are not doing run time linking.
17682 library_names_spec='${libname}${release}.a $libname.a'
17683 soname_spec='${libname}${release}${shared_ext}$major'
17684 fi
17685 shlibpath_var=LIBPATH
17686 fi
17687 ;;
17688
17689 amigaos*)
17690 case $host_cpu in
17691 powerpc)
17692 # Since July 2007 AmigaOS4 officially supports .so libraries.
17693 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17695 ;;
17696 m68k)
17697 library_names_spec='$libname.ixlibrary $libname.a'
17698 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17699 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'
17700 ;;
17701 esac
17702 ;;
17703
17704 beos*)
17705 library_names_spec='${libname}${shared_ext}'
17706 dynamic_linker="$host_os ld.so"
17707 shlibpath_var=LIBRARY_PATH
17708 ;;
17709
17710 bsdi[45]*)
17711 version_type=linux
17712 need_version=no
17713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714 soname_spec='${libname}${release}${shared_ext}$major'
17715 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17716 shlibpath_var=LD_LIBRARY_PATH
17717 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17718 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17719 # the default ld.so.conf also contains /usr/contrib/lib and
17720 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17721 # libtool to hard-code these into programs
17722 ;;
17723
17724 cygwin* | mingw* | pw32* | cegcc*)
17725 version_type=windows
17726 shrext_cmds=".dll"
17727 need_version=no
17728 need_lib_prefix=no
17729
17730 case $GCC,$host_os in
17731 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17732 library_names_spec='$libname.dll.a'
17733 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17734 postinstall_cmds='base_file=`basename \${file}`~
17735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17736 dldir=$destdir/`dirname \$dlpath`~
17737 test -d \$dldir || mkdir -p \$dldir~
17738 $install_prog $dir/$dlname \$dldir/$dlname~
17739 chmod a+x \$dldir/$dlname~
17740 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17741 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17742 fi'
17743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17744 dlpath=$dir/\$dldll~
17745 $RM \$dlpath'
17746 shlibpath_overrides_runpath=yes
17747
17748 case $host_os in
17749 cygwin*)
17750 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17751 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17752
17753 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17754 ;;
17755 mingw* | cegcc*)
17756 # MinGW DLLs use traditional 'lib' prefix
17757 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17758 ;;
17759 pw32*)
17760 # pw32 DLLs use 'pw' prefix rather than 'lib'
17761 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17762 ;;
17763 esac
17764 ;;
17765
17766 *)
17767 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17768 ;;
17769 esac
17770 dynamic_linker='Win32 ld.exe'
17771 # FIXME: first we should search . and the directory the executable is in
17772 shlibpath_var=PATH
17773 ;;
17774
17775 darwin* | rhapsody*)
17776 dynamic_linker="$host_os dyld"
17777 version_type=darwin
17778 need_lib_prefix=no
17779 need_version=no
17780 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17781 soname_spec='${libname}${release}${major}$shared_ext'
17782 shlibpath_overrides_runpath=yes
17783 shlibpath_var=DYLD_LIBRARY_PATH
17784 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17785
17786 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17787 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17788 ;;
17789
17790 dgux*)
17791 version_type=linux
17792 need_lib_prefix=no
17793 need_version=no
17794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17795 soname_spec='${libname}${release}${shared_ext}$major'
17796 shlibpath_var=LD_LIBRARY_PATH
17797 ;;
17798
17799 freebsd* | dragonfly*)
17800 # DragonFly does not have aout. When/if they implement a new
17801 # versioning mechanism, adjust this.
17802 if test -x /usr/bin/objformat; then
17803 objformat=`/usr/bin/objformat`
17804 else
17805 case $host_os in
17806 freebsd[23].*) objformat=aout ;;
17807 *) objformat=elf ;;
17808 esac
17809 fi
17810 version_type=freebsd-$objformat
17811 case $version_type in
17812 freebsd-elf*)
17813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17814 need_version=no
17815 need_lib_prefix=no
17816 ;;
17817 freebsd-*)
17818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17819 need_version=yes
17820 ;;
17821 esac
17822 shlibpath_var=LD_LIBRARY_PATH
17823 case $host_os in
17824 freebsd2.*)
17825 shlibpath_overrides_runpath=yes
17826 ;;
17827 freebsd3.[01]* | freebsdelf3.[01]*)
17828 shlibpath_overrides_runpath=yes
17829 hardcode_into_libs=yes
17830 ;;
17831 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17832 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17833 shlibpath_overrides_runpath=no
17834 hardcode_into_libs=yes
17835 ;;
17836 *) # from 4.6 on, and DragonFly
17837 shlibpath_overrides_runpath=yes
17838 hardcode_into_libs=yes
17839 ;;
17840 esac
17841 ;;
17842
17843 gnu*)
17844 version_type=linux
17845 need_lib_prefix=no
17846 need_version=no
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 shlibpath_var=LD_LIBRARY_PATH
17850 hardcode_into_libs=yes
17851 ;;
17852
17853 haiku*)
17854 version_type=linux
17855 need_lib_prefix=no
17856 need_version=no
17857 dynamic_linker="$host_os runtime_loader"
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17859 soname_spec='${libname}${release}${shared_ext}$major'
17860 shlibpath_var=LIBRARY_PATH
17861 shlibpath_overrides_runpath=yes
17862 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17863 hardcode_into_libs=yes
17864 ;;
17865
17866 hpux9* | hpux10* | hpux11*)
17867 # Give a soname corresponding to the major version so that dld.sl refuses to
17868 # link against other versions.
17869 version_type=sunos
17870 need_lib_prefix=no
17871 need_version=no
17872 case $host_cpu in
17873 ia64*)
17874 shrext_cmds='.so'
17875 hardcode_into_libs=yes
17876 dynamic_linker="$host_os dld.so"
17877 shlibpath_var=LD_LIBRARY_PATH
17878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17880 soname_spec='${libname}${release}${shared_ext}$major'
17881 if test "X$HPUX_IA64_MODE" = X32; then
17882 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17883 else
17884 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17885 fi
17886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17887 ;;
17888 hppa*64*)
17889 shrext_cmds='.sl'
17890 hardcode_into_libs=yes
17891 dynamic_linker="$host_os dld.sl"
17892 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17895 soname_spec='${libname}${release}${shared_ext}$major'
17896 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17898 ;;
17899 *)
17900 shrext_cmds='.sl'
17901 dynamic_linker="$host_os dld.sl"
17902 shlibpath_var=SHLIB_PATH
17903 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17905 soname_spec='${libname}${release}${shared_ext}$major'
17906 ;;
17907 esac
17908 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17909 postinstall_cmds='chmod 555 $lib'
17910 # or fails outright, so override atomically:
17911 install_override_mode=555
17912 ;;
17913
17914 interix[3-9]*)
17915 version_type=linux
17916 need_lib_prefix=no
17917 need_version=no
17918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17919 soname_spec='${libname}${release}${shared_ext}$major'
17920 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17921 shlibpath_var=LD_LIBRARY_PATH
17922 shlibpath_overrides_runpath=no
17923 hardcode_into_libs=yes
17924 ;;
17925
17926 irix5* | irix6* | nonstopux*)
17927 case $host_os in
17928 nonstopux*) version_type=nonstopux ;;
17929 *)
17930 if test "$lt_cv_prog_gnu_ld" = yes; then
17931 version_type=linux
17932 else
17933 version_type=irix
17934 fi ;;
17935 esac
17936 need_lib_prefix=no
17937 need_version=no
17938 soname_spec='${libname}${release}${shared_ext}$major'
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17940 case $host_os in
17941 irix5* | nonstopux*)
17942 libsuff= shlibsuff=
17943 ;;
17944 *)
17945 case $LD in # libtool.m4 will add one of these switches to LD
17946 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17947 libsuff= shlibsuff= libmagic=32-bit;;
17948 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17949 libsuff=32 shlibsuff=N32 libmagic=N32;;
17950 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17951 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17952 *) libsuff= shlibsuff= libmagic=never-match;;
17953 esac
17954 ;;
17955 esac
17956 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17957 shlibpath_overrides_runpath=no
17958 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17959 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17960 hardcode_into_libs=yes
17961 ;;
17962
17963 # No shared lib support for Linux oldld, aout, or coff.
17964 linux*oldld* | linux*aout* | linux*coff*)
17965 dynamic_linker=no
17966 ;;
17967
17968 # This must be Linux ELF.
17969 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17970 version_type=linux
17971 need_lib_prefix=no
17972 need_version=no
17973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17974 soname_spec='${libname}${release}${shared_ext}$major'
17975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17976 shlibpath_var=LD_LIBRARY_PATH
17977 shlibpath_overrides_runpath=no
17978
17979 # Some binutils ld are patched to set DT_RUNPATH
17980 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17981 $as_echo_n "(cached) " >&6
17982 else
17983 lt_cv_shlibpath_overrides_runpath=no
17984 save_LDFLAGS=$LDFLAGS
17985 save_libdir=$libdir
17986 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17987 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h. */
17990
17991 int
17992 main ()
17993 {
17994
17995 ;
17996 return 0;
17997 }
17998 _ACEOF
17999 if ac_fn_c_try_link "$LINENO"; then :
18000 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18001 lt_cv_shlibpath_overrides_runpath=yes
18002 fi
18003 fi
18004 rm -f core conftest.err conftest.$ac_objext \
18005 conftest$ac_exeext conftest.$ac_ext
18006 LDFLAGS=$save_LDFLAGS
18007 libdir=$save_libdir
18008
18009 fi
18010
18011 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18012
18013 # This implies no fast_install, which is unacceptable.
18014 # Some rework will be needed to allow for fast_install
18015 # before this can be enabled.
18016 hardcode_into_libs=yes
18017
18018 # Append ld.so.conf contents to the search path
18019 if test -f /etc/ld.so.conf; then
18020 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' ' '`
18021 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18022 fi
18023
18024 # We used to test for /lib/ld.so.1 and disable shared libraries on
18025 # powerpc, because MkLinux only supported shared libraries with the
18026 # GNU dynamic linker. Since this was broken with cross compilers,
18027 # most powerpc-linux boxes support dynamic linking these days and
18028 # people can always --disable-shared, the test was removed, and we
18029 # assume the GNU/Linux dynamic linker is in use.
18030 dynamic_linker='GNU/Linux ld.so'
18031 ;;
18032
18033 netbsd*)
18034 version_type=sunos
18035 need_lib_prefix=no
18036 need_version=no
18037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18040 dynamic_linker='NetBSD (a.out) ld.so'
18041 else
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18043 soname_spec='${libname}${release}${shared_ext}$major'
18044 dynamic_linker='NetBSD ld.elf_so'
18045 fi
18046 shlibpath_var=LD_LIBRARY_PATH
18047 shlibpath_overrides_runpath=yes
18048 hardcode_into_libs=yes
18049 ;;
18050
18051 newsos6)
18052 version_type=linux
18053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054 shlibpath_var=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath=yes
18056 ;;
18057
18058 *nto* | *qnx*)
18059 version_type=qnx
18060 need_lib_prefix=no
18061 need_version=no
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 shlibpath_overrides_runpath=no
18066 hardcode_into_libs=yes
18067 dynamic_linker='ldqnx.so'
18068 ;;
18069
18070 openbsd*)
18071 version_type=sunos
18072 sys_lib_dlsearch_path_spec="/usr/lib"
18073 need_lib_prefix=no
18074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18075 case $host_os in
18076 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18077 *) need_version=no ;;
18078 esac
18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18081 shlibpath_var=LD_LIBRARY_PATH
18082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18083 case $host_os in
18084 openbsd2.[89] | openbsd2.[89].*)
18085 shlibpath_overrides_runpath=no
18086 ;;
18087 *)
18088 shlibpath_overrides_runpath=yes
18089 ;;
18090 esac
18091 else
18092 shlibpath_overrides_runpath=yes
18093 fi
18094 ;;
18095
18096 os2*)
18097 libname_spec='$name'
18098 shrext_cmds=".dll"
18099 need_lib_prefix=no
18100 library_names_spec='$libname${shared_ext} $libname.a'
18101 dynamic_linker='OS/2 ld.exe'
18102 shlibpath_var=LIBPATH
18103 ;;
18104
18105 osf3* | osf4* | osf5*)
18106 version_type=osf
18107 need_lib_prefix=no
18108 need_version=no
18109 soname_spec='${libname}${release}${shared_ext}$major'
18110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18111 shlibpath_var=LD_LIBRARY_PATH
18112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18114 ;;
18115
18116 rdos*)
18117 dynamic_linker=no
18118 ;;
18119
18120 solaris*)
18121 version_type=linux
18122 need_lib_prefix=no
18123 need_version=no
18124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18125 soname_spec='${libname}${release}${shared_ext}$major'
18126 shlibpath_var=LD_LIBRARY_PATH
18127 shlibpath_overrides_runpath=yes
18128 hardcode_into_libs=yes
18129 # ldd complains unless libraries are executable
18130 postinstall_cmds='chmod +x $lib'
18131 ;;
18132
18133 sunos4*)
18134 version_type=sunos
18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18137 shlibpath_var=LD_LIBRARY_PATH
18138 shlibpath_overrides_runpath=yes
18139 if test "$with_gnu_ld" = yes; then
18140 need_lib_prefix=no
18141 fi
18142 need_version=yes
18143 ;;
18144
18145 sysv4 | sysv4.3*)
18146 version_type=linux
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18148 soname_spec='${libname}${release}${shared_ext}$major'
18149 shlibpath_var=LD_LIBRARY_PATH
18150 case $host_vendor in
18151 sni)
18152 shlibpath_overrides_runpath=no
18153 need_lib_prefix=no
18154 runpath_var=LD_RUN_PATH
18155 ;;
18156 siemens)
18157 need_lib_prefix=no
18158 ;;
18159 motorola)
18160 need_lib_prefix=no
18161 need_version=no
18162 shlibpath_overrides_runpath=no
18163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18164 ;;
18165 esac
18166 ;;
18167
18168 sysv4*MP*)
18169 if test -d /usr/nec ;then
18170 version_type=linux
18171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18172 soname_spec='$libname${shared_ext}.$major'
18173 shlibpath_var=LD_LIBRARY_PATH
18174 fi
18175 ;;
18176
18177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18178 version_type=freebsd-elf
18179 need_lib_prefix=no
18180 need_version=no
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18182 soname_spec='${libname}${release}${shared_ext}$major'
18183 shlibpath_var=LD_LIBRARY_PATH
18184 shlibpath_overrides_runpath=yes
18185 hardcode_into_libs=yes
18186 if test "$with_gnu_ld" = yes; then
18187 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18188 else
18189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18190 case $host_os in
18191 sco3.2v5*)
18192 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18193 ;;
18194 esac
18195 fi
18196 sys_lib_dlsearch_path_spec='/usr/lib'
18197 ;;
18198
18199 tpf*)
18200 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18201 version_type=linux
18202 need_lib_prefix=no
18203 need_version=no
18204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18205 shlibpath_var=LD_LIBRARY_PATH
18206 shlibpath_overrides_runpath=no
18207 hardcode_into_libs=yes
18208 ;;
18209
18210 uts4*)
18211 version_type=linux
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 soname_spec='${libname}${release}${shared_ext}$major'
18214 shlibpath_var=LD_LIBRARY_PATH
18215 ;;
18216
18217 *)
18218 dynamic_linker=no
18219 ;;
18220 esac
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18222 $as_echo "$dynamic_linker" >&6; }
18223 test "$dynamic_linker" = no && can_build_shared=no
18224
18225 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18226 if test "$GCC" = yes; then
18227 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18228 fi
18229
18230 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18231 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18232 fi
18233 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18234 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18235 fi
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18329 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18330 hardcode_action=
18331 if test -n "$hardcode_libdir_flag_spec" ||
18332 test -n "$runpath_var" ||
18333 test "X$hardcode_automatic" = "Xyes" ; then
18334
18335 # We can hardcode non-existent directories.
18336 if test "$hardcode_direct" != no &&
18337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18338 # have to relink, otherwise we might link with an installed library
18339 # when we should be linking with a yet-to-be-installed one
18340 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18341 test "$hardcode_minus_L" != no; then
18342 # Linking always hardcodes the temporary library directory.
18343 hardcode_action=relink
18344 else
18345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18346 hardcode_action=immediate
18347 fi
18348 else
18349 # We cannot hardcode anything, or else we can only hardcode existing
18350 # directories.
18351 hardcode_action=unsupported
18352 fi
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18354 $as_echo "$hardcode_action" >&6; }
18355
18356 if test "$hardcode_action" = relink ||
18357 test "$inherit_rpath" = yes; then
18358 # Fast installation is not supported
18359 enable_fast_install=no
18360 elif test "$shlibpath_overrides_runpath" = yes ||
18361 test "$enable_shared" = no; then
18362 # Fast installation is not necessary
18363 enable_fast_install=needless
18364 fi
18365
18366
18367
18368
18369
18370
18371 if test "x$enable_dlopen" != xyes; then
18372 enable_dlopen=unknown
18373 enable_dlopen_self=unknown
18374 enable_dlopen_self_static=unknown
18375 else
18376 lt_cv_dlopen=no
18377 lt_cv_dlopen_libs=
18378
18379 case $host_os in
18380 beos*)
18381 lt_cv_dlopen="load_add_on"
18382 lt_cv_dlopen_libs=
18383 lt_cv_dlopen_self=yes
18384 ;;
18385
18386 mingw* | pw32* | cegcc*)
18387 lt_cv_dlopen="LoadLibrary"
18388 lt_cv_dlopen_libs=
18389 ;;
18390
18391 cygwin*)
18392 lt_cv_dlopen="dlopen"
18393 lt_cv_dlopen_libs=
18394 ;;
18395
18396 darwin*)
18397 # if libdl is installed we need to link against it
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18399 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18400 if ${ac_cv_lib_dl_dlopen+:} false; then :
18401 $as_echo_n "(cached) " >&6
18402 else
18403 ac_check_lib_save_LIBS=$LIBS
18404 LIBS="-ldl $LIBS"
18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18407
18408 /* Override any GCC internal prototype to avoid an error.
18409 Use char because int might match the return type of a GCC
18410 builtin and then its argument prototype would still apply. */
18411 #ifdef __cplusplus
18412 extern "C"
18413 #endif
18414 char dlopen ();
18415 int
18416 main ()
18417 {
18418 return dlopen ();
18419 ;
18420 return 0;
18421 }
18422 _ACEOF
18423 if ac_fn_c_try_link "$LINENO"; then :
18424 ac_cv_lib_dl_dlopen=yes
18425 else
18426 ac_cv_lib_dl_dlopen=no
18427 fi
18428 rm -f core conftest.err conftest.$ac_objext \
18429 conftest$ac_exeext conftest.$ac_ext
18430 LIBS=$ac_check_lib_save_LIBS
18431 fi
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18433 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18434 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18435 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18436 else
18437
18438 lt_cv_dlopen="dyld"
18439 lt_cv_dlopen_libs=
18440 lt_cv_dlopen_self=yes
18441
18442 fi
18443
18444 ;;
18445
18446 *)
18447 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18448 if test "x$ac_cv_func_shl_load" = xyes; then :
18449 lt_cv_dlopen="shl_load"
18450 else
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18452 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18453 if ${ac_cv_lib_dld_shl_load+:} false; then :
18454 $as_echo_n "(cached) " >&6
18455 else
18456 ac_check_lib_save_LIBS=$LIBS
18457 LIBS="-ldld $LIBS"
18458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h. */
18460
18461 /* Override any GCC internal prototype to avoid an error.
18462 Use char because int might match the return type of a GCC
18463 builtin and then its argument prototype would still apply. */
18464 #ifdef __cplusplus
18465 extern "C"
18466 #endif
18467 char shl_load ();
18468 int
18469 main ()
18470 {
18471 return shl_load ();
18472 ;
18473 return 0;
18474 }
18475 _ACEOF
18476 if ac_fn_c_try_link "$LINENO"; then :
18477 ac_cv_lib_dld_shl_load=yes
18478 else
18479 ac_cv_lib_dld_shl_load=no
18480 fi
18481 rm -f core conftest.err conftest.$ac_objext \
18482 conftest$ac_exeext conftest.$ac_ext
18483 LIBS=$ac_check_lib_save_LIBS
18484 fi
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18486 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18487 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18488 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18489 else
18490 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18491 if test "x$ac_cv_func_dlopen" = xyes; then :
18492 lt_cv_dlopen="dlopen"
18493 else
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18495 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18496 if ${ac_cv_lib_dl_dlopen+:} false; then :
18497 $as_echo_n "(cached) " >&6
18498 else
18499 ac_check_lib_save_LIBS=$LIBS
18500 LIBS="-ldl $LIBS"
18501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18503
18504 /* Override any GCC internal prototype to avoid an error.
18505 Use char because int might match the return type of a GCC
18506 builtin and then its argument prototype would still apply. */
18507 #ifdef __cplusplus
18508 extern "C"
18509 #endif
18510 char dlopen ();
18511 int
18512 main ()
18513 {
18514 return dlopen ();
18515 ;
18516 return 0;
18517 }
18518 _ACEOF
18519 if ac_fn_c_try_link "$LINENO"; then :
18520 ac_cv_lib_dl_dlopen=yes
18521 else
18522 ac_cv_lib_dl_dlopen=no
18523 fi
18524 rm -f core conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18526 LIBS=$ac_check_lib_save_LIBS
18527 fi
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18529 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18530 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18531 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18532 else
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18534 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18535 if ${ac_cv_lib_svld_dlopen+:} false; then :
18536 $as_echo_n "(cached) " >&6
18537 else
18538 ac_check_lib_save_LIBS=$LIBS
18539 LIBS="-lsvld $LIBS"
18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542
18543 /* Override any GCC internal prototype to avoid an error.
18544 Use char because int might match the return type of a GCC
18545 builtin and then its argument prototype would still apply. */
18546 #ifdef __cplusplus
18547 extern "C"
18548 #endif
18549 char dlopen ();
18550 int
18551 main ()
18552 {
18553 return dlopen ();
18554 ;
18555 return 0;
18556 }
18557 _ACEOF
18558 if ac_fn_c_try_link "$LINENO"; then :
18559 ac_cv_lib_svld_dlopen=yes
18560 else
18561 ac_cv_lib_svld_dlopen=no
18562 fi
18563 rm -f core conftest.err conftest.$ac_objext \
18564 conftest$ac_exeext conftest.$ac_ext
18565 LIBS=$ac_check_lib_save_LIBS
18566 fi
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18568 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18569 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18571 else
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18573 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18574 if ${ac_cv_lib_dld_dld_link+:} false; then :
18575 $as_echo_n "(cached) " >&6
18576 else
18577 ac_check_lib_save_LIBS=$LIBS
18578 LIBS="-ldld $LIBS"
18579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h. */
18581
18582 /* Override any GCC internal prototype to avoid an error.
18583 Use char because int might match the return type of a GCC
18584 builtin and then its argument prototype would still apply. */
18585 #ifdef __cplusplus
18586 extern "C"
18587 #endif
18588 char dld_link ();
18589 int
18590 main ()
18591 {
18592 return dld_link ();
18593 ;
18594 return 0;
18595 }
18596 _ACEOF
18597 if ac_fn_c_try_link "$LINENO"; then :
18598 ac_cv_lib_dld_dld_link=yes
18599 else
18600 ac_cv_lib_dld_dld_link=no
18601 fi
18602 rm -f core conftest.err conftest.$ac_objext \
18603 conftest$ac_exeext conftest.$ac_ext
18604 LIBS=$ac_check_lib_save_LIBS
18605 fi
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18607 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18608 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18609 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18610 fi
18611
18612
18613 fi
18614
18615
18616 fi
18617
18618
18619 fi
18620
18621
18622 fi
18623
18624
18625 fi
18626
18627 ;;
18628 esac
18629
18630 if test "x$lt_cv_dlopen" != xno; then
18631 enable_dlopen=yes
18632 else
18633 enable_dlopen=no
18634 fi
18635
18636 case $lt_cv_dlopen in
18637 dlopen)
18638 save_CPPFLAGS="$CPPFLAGS"
18639 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18640
18641 save_LDFLAGS="$LDFLAGS"
18642 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18643
18644 save_LIBS="$LIBS"
18645 LIBS="$lt_cv_dlopen_libs $LIBS"
18646
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18648 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18649 if ${lt_cv_dlopen_self+:} false; then :
18650 $as_echo_n "(cached) " >&6
18651 else
18652 if test "$cross_compiling" = yes; then :
18653 lt_cv_dlopen_self=cross
18654 else
18655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18656 lt_status=$lt_dlunknown
18657 cat > conftest.$ac_ext <<_LT_EOF
18658 #line 18658 "configure"
18659 #include "confdefs.h"
18660
18661 #if HAVE_DLFCN_H
18662 #include <dlfcn.h>
18663 #endif
18664
18665 #include <stdio.h>
18666
18667 #ifdef RTLD_GLOBAL
18668 # define LT_DLGLOBAL RTLD_GLOBAL
18669 #else
18670 # ifdef DL_GLOBAL
18671 # define LT_DLGLOBAL DL_GLOBAL
18672 # else
18673 # define LT_DLGLOBAL 0
18674 # endif
18675 #endif
18676
18677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18678 find out it does not work in some platform. */
18679 #ifndef LT_DLLAZY_OR_NOW
18680 # ifdef RTLD_LAZY
18681 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18682 # else
18683 # ifdef DL_LAZY
18684 # define LT_DLLAZY_OR_NOW DL_LAZY
18685 # else
18686 # ifdef RTLD_NOW
18687 # define LT_DLLAZY_OR_NOW RTLD_NOW
18688 # else
18689 # ifdef DL_NOW
18690 # define LT_DLLAZY_OR_NOW DL_NOW
18691 # else
18692 # define LT_DLLAZY_OR_NOW 0
18693 # endif
18694 # endif
18695 # endif
18696 # endif
18697 #endif
18698
18699 /* When -fvisbility=hidden is used, assume the code has been annotated
18700 correspondingly for the symbols needed. */
18701 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18702 void fnord () __attribute__((visibility("default")));
18703 #endif
18704
18705 void fnord () { int i=42; }
18706 int main ()
18707 {
18708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18709 int status = $lt_dlunknown;
18710
18711 if (self)
18712 {
18713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18714 else
18715 {
18716 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18717 else puts (dlerror ());
18718 }
18719 /* dlclose (self); */
18720 }
18721 else
18722 puts (dlerror ());
18723
18724 return status;
18725 }
18726 _LT_EOF
18727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18728 (eval $ac_link) 2>&5
18729 ac_status=$?
18730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18731 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18732 (./conftest; exit; ) >&5 2>/dev/null
18733 lt_status=$?
18734 case x$lt_status in
18735 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18736 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18737 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18738 esac
18739 else :
18740 # compilation failed
18741 lt_cv_dlopen_self=no
18742 fi
18743 fi
18744 rm -fr conftest*
18745
18746
18747 fi
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18749 $as_echo "$lt_cv_dlopen_self" >&6; }
18750
18751 if test "x$lt_cv_dlopen_self" = xyes; then
18752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18754 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18755 if ${lt_cv_dlopen_self_static+:} false; then :
18756 $as_echo_n "(cached) " >&6
18757 else
18758 if test "$cross_compiling" = yes; then :
18759 lt_cv_dlopen_self_static=cross
18760 else
18761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18762 lt_status=$lt_dlunknown
18763 cat > conftest.$ac_ext <<_LT_EOF
18764 #line 18764 "configure"
18765 #include "confdefs.h"
18766
18767 #if HAVE_DLFCN_H
18768 #include <dlfcn.h>
18769 #endif
18770
18771 #include <stdio.h>
18772
18773 #ifdef RTLD_GLOBAL
18774 # define LT_DLGLOBAL RTLD_GLOBAL
18775 #else
18776 # ifdef DL_GLOBAL
18777 # define LT_DLGLOBAL DL_GLOBAL
18778 # else
18779 # define LT_DLGLOBAL 0
18780 # endif
18781 #endif
18782
18783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18784 find out it does not work in some platform. */
18785 #ifndef LT_DLLAZY_OR_NOW
18786 # ifdef RTLD_LAZY
18787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18788 # else
18789 # ifdef DL_LAZY
18790 # define LT_DLLAZY_OR_NOW DL_LAZY
18791 # else
18792 # ifdef RTLD_NOW
18793 # define LT_DLLAZY_OR_NOW RTLD_NOW
18794 # else
18795 # ifdef DL_NOW
18796 # define LT_DLLAZY_OR_NOW DL_NOW
18797 # else
18798 # define LT_DLLAZY_OR_NOW 0
18799 # endif
18800 # endif
18801 # endif
18802 # endif
18803 #endif
18804
18805 /* When -fvisbility=hidden is used, assume the code has been annotated
18806 correspondingly for the symbols needed. */
18807 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18808 void fnord () __attribute__((visibility("default")));
18809 #endif
18810
18811 void fnord () { int i=42; }
18812 int main ()
18813 {
18814 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18815 int status = $lt_dlunknown;
18816
18817 if (self)
18818 {
18819 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18820 else
18821 {
18822 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18823 else puts (dlerror ());
18824 }
18825 /* dlclose (self); */
18826 }
18827 else
18828 puts (dlerror ());
18829
18830 return status;
18831 }
18832 _LT_EOF
18833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18834 (eval $ac_link) 2>&5
18835 ac_status=$?
18836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18837 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18838 (./conftest; exit; ) >&5 2>/dev/null
18839 lt_status=$?
18840 case x$lt_status in
18841 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18842 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18843 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18844 esac
18845 else :
18846 # compilation failed
18847 lt_cv_dlopen_self_static=no
18848 fi
18849 fi
18850 rm -fr conftest*
18851
18852
18853 fi
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18855 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18856 fi
18857
18858 CPPFLAGS="$save_CPPFLAGS"
18859 LDFLAGS="$save_LDFLAGS"
18860 LIBS="$save_LIBS"
18861 ;;
18862 esac
18863
18864 case $lt_cv_dlopen_self in
18865 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18866 *) enable_dlopen_self=unknown ;;
18867 esac
18868
18869 case $lt_cv_dlopen_self_static in
18870 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18871 *) enable_dlopen_self_static=unknown ;;
18872 esac
18873 fi
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891 striplib=
18892 old_striplib=
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18894 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18895 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18896 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18897 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18899 $as_echo "yes" >&6; }
18900 else
18901 # FIXME - insert some real tests, host_os isn't really good enough
18902 case $host_os in
18903 darwin*)
18904 if test -n "$STRIP" ; then
18905 striplib="$STRIP -x"
18906 old_striplib="$STRIP -S"
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18908 $as_echo "yes" >&6; }
18909 else
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18911 $as_echo "no" >&6; }
18912 fi
18913 ;;
18914 *)
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18916 $as_echo "no" >&6; }
18917 ;;
18918 esac
18919 fi
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932 # Report which library types will actually be built
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18934 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18936 $as_echo "$can_build_shared" >&6; }
18937
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18939 $as_echo_n "checking whether to build shared libraries... " >&6; }
18940 test "$can_build_shared" = "no" && enable_shared=no
18941
18942 # On AIX, shared libraries and static libraries use the same namespace, and
18943 # are all built from PIC.
18944 case $host_os in
18945 aix3*)
18946 test "$enable_shared" = yes && enable_static=no
18947 if test -n "$RANLIB"; then
18948 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18949 postinstall_cmds='$RANLIB $lib'
18950 fi
18951 ;;
18952
18953 aix[4-9]*)
18954 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18955 test "$enable_shared" = yes && enable_static=no
18956 fi
18957 ;;
18958 esac
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18960 $as_echo "$enable_shared" >&6; }
18961
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18963 $as_echo_n "checking whether to build static libraries... " >&6; }
18964 # Make sure either enable_shared or enable_static is yes.
18965 test "$enable_shared" = yes || enable_static=yes
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18967 $as_echo "$enable_static" >&6; }
18968
18969
18970
18971
18972 fi
18973 ac_ext=cpp
18974 ac_cpp='$CXXCPP $CPPFLAGS'
18975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18978
18979 CC="$lt_save_CC"
18980
18981 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18982 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18983 (test "X$CXX" != "Xg++"))) ; then
18984 ac_ext=cpp
18985 ac_cpp='$CXXCPP $CPPFLAGS'
18986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18990 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18991 if test -z "$CXXCPP"; then
18992 if ${ac_cv_prog_CXXCPP+:} false; then :
18993 $as_echo_n "(cached) " >&6
18994 else
18995 # Double quotes because CXXCPP needs to be expanded
18996 for CXXCPP in "$CXX -E" "/lib/cpp"
18997 do
18998 ac_preproc_ok=false
18999 for ac_cxx_preproc_warn_flag in '' yes
19000 do
19001 # Use a header file that comes with gcc, so configuring glibc
19002 # with a fresh cross-compiler works.
19003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19004 # <limits.h> exists even on freestanding compilers.
19005 # On the NeXT, cc -E runs the code through the compiler's parser,
19006 # not just through cpp. "Syntax error" is here to catch this case.
19007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008 /* end confdefs.h. */
19009 #ifdef __STDC__
19010 # include <limits.h>
19011 #else
19012 # include <assert.h>
19013 #endif
19014 Syntax error
19015 _ACEOF
19016 if ac_fn_cxx_try_cpp "$LINENO"; then :
19017
19018 else
19019 # Broken: fails on valid input.
19020 continue
19021 fi
19022 rm -f conftest.err conftest.i conftest.$ac_ext
19023
19024 # OK, works on sane cases. Now check whether nonexistent headers
19025 # can be detected and how.
19026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h. */
19028 #include <ac_nonexistent.h>
19029 _ACEOF
19030 if ac_fn_cxx_try_cpp "$LINENO"; then :
19031 # Broken: success on invalid input.
19032 continue
19033 else
19034 # Passes both tests.
19035 ac_preproc_ok=:
19036 break
19037 fi
19038 rm -f conftest.err conftest.i conftest.$ac_ext
19039
19040 done
19041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19042 rm -f conftest.i conftest.err conftest.$ac_ext
19043 if $ac_preproc_ok; then :
19044 break
19045 fi
19046
19047 done
19048 ac_cv_prog_CXXCPP=$CXXCPP
19049
19050 fi
19051 CXXCPP=$ac_cv_prog_CXXCPP
19052 else
19053 ac_cv_prog_CXXCPP=$CXXCPP
19054 fi
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19056 $as_echo "$CXXCPP" >&6; }
19057 ac_preproc_ok=false
19058 for ac_cxx_preproc_warn_flag in '' yes
19059 do
19060 # Use a header file that comes with gcc, so configuring glibc
19061 # with a fresh cross-compiler works.
19062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19063 # <limits.h> exists even on freestanding compilers.
19064 # On the NeXT, cc -E runs the code through the compiler's parser,
19065 # not just through cpp. "Syntax error" is here to catch this case.
19066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19067 /* end confdefs.h. */
19068 #ifdef __STDC__
19069 # include <limits.h>
19070 #else
19071 # include <assert.h>
19072 #endif
19073 Syntax error
19074 _ACEOF
19075 if ac_fn_cxx_try_cpp "$LINENO"; then :
19076
19077 else
19078 # Broken: fails on valid input.
19079 continue
19080 fi
19081 rm -f conftest.err conftest.i conftest.$ac_ext
19082
19083 # OK, works on sane cases. Now check whether nonexistent headers
19084 # can be detected and how.
19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h. */
19087 #include <ac_nonexistent.h>
19088 _ACEOF
19089 if ac_fn_cxx_try_cpp "$LINENO"; then :
19090 # Broken: success on invalid input.
19091 continue
19092 else
19093 # Passes both tests.
19094 ac_preproc_ok=:
19095 break
19096 fi
19097 rm -f conftest.err conftest.i conftest.$ac_ext
19098
19099 done
19100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19101 rm -f conftest.i conftest.err conftest.$ac_ext
19102 if $ac_preproc_ok; then :
19103
19104 else
19105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19107 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19108 See \`config.log' for more details" "$LINENO" 5; }
19109 fi
19110
19111 ac_ext=cpp
19112 ac_cpp='$CXXCPP $CPPFLAGS'
19113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19116
19117 else
19118 _lt_caught_CXX_error=yes
19119 fi
19120
19121 ac_ext=cpp
19122 ac_cpp='$CXXCPP $CPPFLAGS'
19123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19126
19127 archive_cmds_need_lc_CXX=no
19128 allow_undefined_flag_CXX=
19129 always_export_symbols_CXX=no
19130 archive_expsym_cmds_CXX=
19131 compiler_needs_object_CXX=no
19132 export_dynamic_flag_spec_CXX=
19133 hardcode_direct_CXX=no
19134 hardcode_direct_absolute_CXX=no
19135 hardcode_libdir_flag_spec_CXX=
19136 hardcode_libdir_flag_spec_ld_CXX=
19137 hardcode_libdir_separator_CXX=
19138 hardcode_minus_L_CXX=no
19139 hardcode_shlibpath_var_CXX=unsupported
19140 hardcode_automatic_CXX=no
19141 inherit_rpath_CXX=no
19142 module_cmds_CXX=
19143 module_expsym_cmds_CXX=
19144 link_all_deplibs_CXX=unknown
19145 old_archive_cmds_CXX=$old_archive_cmds
19146 reload_flag_CXX=$reload_flag
19147 reload_cmds_CXX=$reload_cmds
19148 no_undefined_flag_CXX=
19149 whole_archive_flag_spec_CXX=
19150 enable_shared_with_static_runtimes_CXX=no
19151
19152 # Source file extension for C++ test sources.
19153 ac_ext=cpp
19154
19155 # Object file extension for compiled C++ test sources.
19156 objext=o
19157 objext_CXX=$objext
19158
19159 # No sense in running all these tests if we already determined that
19160 # the CXX compiler isn't working. Some variables (like enable_shared)
19161 # are currently assumed to apply to all compilers on this platform,
19162 # and will be corrupted by setting them based on a non-working compiler.
19163 if test "$_lt_caught_CXX_error" != yes; then
19164 # Code to be used in simple compile tests
19165 lt_simple_compile_test_code="int some_variable = 0;"
19166
19167 # Code to be used in simple link tests
19168 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19169
19170 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19171
19172
19173
19174
19175
19176
19177 # If no C compiler was specified, use CC.
19178 LTCC=${LTCC-"$CC"}
19179
19180 # If no C compiler flags were specified, use CFLAGS.
19181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19182
19183 # Allow CC to be a program name with arguments.
19184 compiler=$CC
19185
19186
19187 # save warnings/boilerplate of simple test code
19188 ac_outfile=conftest.$ac_objext
19189 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19191 _lt_compiler_boilerplate=`cat conftest.err`
19192 $RM conftest*
19193
19194 ac_outfile=conftest.$ac_objext
19195 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19197 _lt_linker_boilerplate=`cat conftest.err`
19198 $RM -r conftest*
19199
19200
19201 # Allow CC to be a program name with arguments.
19202 lt_save_CC=$CC
19203 lt_save_LD=$LD
19204 lt_save_GCC=$GCC
19205 GCC=$GXX
19206 lt_save_with_gnu_ld=$with_gnu_ld
19207 lt_save_path_LD=$lt_cv_path_LD
19208 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19209 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19210 else
19211 $as_unset lt_cv_prog_gnu_ld
19212 fi
19213 if test -n "${lt_cv_path_LDCXX+set}"; then
19214 lt_cv_path_LD=$lt_cv_path_LDCXX
19215 else
19216 $as_unset lt_cv_path_LD
19217 fi
19218 test -z "${LDCXX+set}" || LD=$LDCXX
19219 CC=${CXX-"c++"}
19220 compiler=$CC
19221 compiler_CXX=$CC
19222 for cc_temp in $compiler""; do
19223 case $cc_temp in
19224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19226 \-*) ;;
19227 *) break;;
19228 esac
19229 done
19230 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19231
19232
19233 if test -n "$compiler"; then
19234 # We don't want -fno-exception when compiling C++ code, so set the
19235 # no_builtin_flag separately
19236 if test "$GXX" = yes; then
19237 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19238 else
19239 lt_prog_compiler_no_builtin_flag_CXX=
19240 fi
19241
19242 if test "$GXX" = yes; then
19243 # Set up default GNU C++ configuration
19244
19245
19246
19247 # Check whether --with-gnu-ld was given.
19248 if test "${with_gnu_ld+set}" = set; then :
19249 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19250 else
19251 with_gnu_ld=no
19252 fi
19253
19254 ac_prog=ld
19255 if test "$GCC" = yes; then
19256 # Check if gcc -print-prog-name=ld gives a path.
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19258 $as_echo_n "checking for ld used by $CC... " >&6; }
19259 case $host in
19260 *-*-mingw*)
19261 # gcc leaves a trailing carriage return which upsets mingw
19262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19263 *)
19264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19265 esac
19266 case $ac_prog in
19267 # Accept absolute paths.
19268 [\\/]* | ?:[\\/]*)
19269 re_direlt='/[^/][^/]*/\.\./'
19270 # Canonicalize the pathname of ld
19271 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19272 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19273 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19274 done
19275 test -z "$LD" && LD="$ac_prog"
19276 ;;
19277 "")
19278 # If it fails, then pretend we aren't using GCC.
19279 ac_prog=ld
19280 ;;
19281 *)
19282 # If it is relative, then search for the first ld in PATH.
19283 with_gnu_ld=unknown
19284 ;;
19285 esac
19286 elif test "$with_gnu_ld" = yes; then
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19288 $as_echo_n "checking for GNU ld... " >&6; }
19289 else
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19291 $as_echo_n "checking for non-GNU ld... " >&6; }
19292 fi
19293 if ${lt_cv_path_LD+:} false; then :
19294 $as_echo_n "(cached) " >&6
19295 else
19296 if test -z "$LD"; then
19297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19298 for ac_dir in $PATH; do
19299 IFS="$lt_save_ifs"
19300 test -z "$ac_dir" && ac_dir=.
19301 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19302 lt_cv_path_LD="$ac_dir/$ac_prog"
19303 # Check to see if the program is GNU ld. I'd rather use --version,
19304 # but apparently some variants of GNU ld only accept -v.
19305 # Break only if it was the GNU/non-GNU ld that we prefer.
19306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19307 *GNU* | *'with BFD'*)
19308 test "$with_gnu_ld" != no && break
19309 ;;
19310 *)
19311 test "$with_gnu_ld" != yes && break
19312 ;;
19313 esac
19314 fi
19315 done
19316 IFS="$lt_save_ifs"
19317 else
19318 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19319 fi
19320 fi
19321
19322 LD="$lt_cv_path_LD"
19323 if test -n "$LD"; then
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19325 $as_echo "$LD" >&6; }
19326 else
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19328 $as_echo "no" >&6; }
19329 fi
19330 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19332 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19333 if ${lt_cv_prog_gnu_ld+:} false; then :
19334 $as_echo_n "(cached) " >&6
19335 else
19336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19337 case `$LD -v 2>&1 </dev/null` in
19338 *GNU* | *'with BFD'*)
19339 lt_cv_prog_gnu_ld=yes
19340 ;;
19341 *)
19342 lt_cv_prog_gnu_ld=no
19343 ;;
19344 esac
19345 fi
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19347 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19348 with_gnu_ld=$lt_cv_prog_gnu_ld
19349
19350
19351
19352
19353
19354
19355
19356 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19357 # archiving commands below assume that GNU ld is being used.
19358 if test "$with_gnu_ld" = yes; then
19359 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19360 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19361
19362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19364
19365 # If archive_cmds runs LD, not CC, wlarc should be empty
19366 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19367 # investigate it a little bit more. (MM)
19368 wlarc='${wl}'
19369
19370 # ancient GNU ld didn't support --whole-archive et. al.
19371 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19372 $GREP 'no-whole-archive' > /dev/null; then
19373 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19374 else
19375 whole_archive_flag_spec_CXX=
19376 fi
19377 else
19378 with_gnu_ld=no
19379 wlarc=
19380
19381 # A generic and very simple default shared library creation
19382 # command for GNU C++ for the case where it uses the native
19383 # linker, instead of GNU ld. If possible, this setting should
19384 # overridden to take advantage of the native linker features on
19385 # the platform it is being used on.
19386 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19387 fi
19388
19389 # Commands to make compiler produce verbose output that lists
19390 # what "hidden" libraries, object files and flags are used when
19391 # linking a shared library.
19392 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19393
19394 else
19395 GXX=no
19396 with_gnu_ld=no
19397 wlarc=
19398 fi
19399
19400 # PORTME: fill in a description of your system's C++ link characteristics
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19402 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19403 ld_shlibs_CXX=yes
19404 case $host_os in
19405 aix3*)
19406 # FIXME: insert proper C++ library support
19407 ld_shlibs_CXX=no
19408 ;;
19409 aix[4-9]*)
19410 if test "$host_cpu" = ia64; then
19411 # On IA64, the linker does run time linking by default, so we don't
19412 # have to do anything special.
19413 aix_use_runtimelinking=no
19414 exp_sym_flag='-Bexport'
19415 no_entry_flag=""
19416 else
19417 aix_use_runtimelinking=no
19418
19419 # Test if we are trying to use run time linking or normal
19420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19421 # need to do runtime linking.
19422 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19423 for ld_flag in $LDFLAGS; do
19424 case $ld_flag in
19425 *-brtl*)
19426 aix_use_runtimelinking=yes
19427 break
19428 ;;
19429 esac
19430 done
19431 ;;
19432 esac
19433
19434 exp_sym_flag='-bexport'
19435 no_entry_flag='-bnoentry'
19436 fi
19437
19438 # When large executables or shared objects are built, AIX ld can
19439 # have problems creating the table of contents. If linking a library
19440 # or program results in "error TOC overflow" add -mminimal-toc to
19441 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19442 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19443
19444 archive_cmds_CXX=''
19445 hardcode_direct_CXX=yes
19446 hardcode_direct_absolute_CXX=yes
19447 hardcode_libdir_separator_CXX=':'
19448 link_all_deplibs_CXX=yes
19449 file_list_spec_CXX='${wl}-f,'
19450
19451 if test "$GXX" = yes; then
19452 case $host_os in aix4.[012]|aix4.[012].*)
19453 # We only want to do this on AIX 4.2 and lower, the check
19454 # below for broken collect2 doesn't work under 4.3+
19455 collect2name=`${CC} -print-prog-name=collect2`
19456 if test -f "$collect2name" &&
19457 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19458 then
19459 # We have reworked collect2
19460 :
19461 else
19462 # We have old collect2
19463 hardcode_direct_CXX=unsupported
19464 # It fails to find uninstalled libraries when the uninstalled
19465 # path is not listed in the libpath. Setting hardcode_minus_L
19466 # to unsupported forces relinking
19467 hardcode_minus_L_CXX=yes
19468 hardcode_libdir_flag_spec_CXX='-L$libdir'
19469 hardcode_libdir_separator_CXX=
19470 fi
19471 esac
19472 shared_flag='-shared'
19473 if test "$aix_use_runtimelinking" = yes; then
19474 shared_flag="$shared_flag "'${wl}-G'
19475 fi
19476 else
19477 # not using gcc
19478 if test "$host_cpu" = ia64; then
19479 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19480 # chokes on -Wl,-G. The following line is correct:
19481 shared_flag='-G'
19482 else
19483 if test "$aix_use_runtimelinking" = yes; then
19484 shared_flag='${wl}-G'
19485 else
19486 shared_flag='${wl}-bM:SRE'
19487 fi
19488 fi
19489 fi
19490
19491 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19492 # It seems that -bexpall does not export symbols beginning with
19493 # underscore (_), so it is better to generate a list of symbols to
19494 # export.
19495 always_export_symbols_CXX=yes
19496 if test "$aix_use_runtimelinking" = yes; then
19497 # Warning - without using the other runtime loading flags (-brtl),
19498 # -berok will link without error, but may produce a broken library.
19499 allow_undefined_flag_CXX='-berok'
19500 # Determine the default libpath from the value encoded in an empty
19501 # executable.
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19504
19505 int
19506 main ()
19507 {
19508
19509 ;
19510 return 0;
19511 }
19512 _ACEOF
19513 if ac_fn_cxx_try_link "$LINENO"; then :
19514
19515 lt_aix_libpath_sed='
19516 /Import File Strings/,/^$/ {
19517 /^0/ {
19518 s/^0 *\(.*\)$/\1/
19519 p
19520 }
19521 }'
19522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19523 # Check for a 64-bit object if we didn't find anything.
19524 if test -z "$aix_libpath"; then
19525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19526 fi
19527 fi
19528 rm -f core conftest.err conftest.$ac_objext \
19529 conftest$ac_exeext conftest.$ac_ext
19530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19531
19532 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19533
19534 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"
19535 else
19536 if test "$host_cpu" = ia64; then
19537 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19538 allow_undefined_flag_CXX="-z nodefs"
19539 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"
19540 else
19541 # Determine the default libpath from the value encoded in an
19542 # empty executable.
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19545
19546 int
19547 main ()
19548 {
19549
19550 ;
19551 return 0;
19552 }
19553 _ACEOF
19554 if ac_fn_cxx_try_link "$LINENO"; then :
19555
19556 lt_aix_libpath_sed='
19557 /Import File Strings/,/^$/ {
19558 /^0/ {
19559 s/^0 *\(.*\)$/\1/
19560 p
19561 }
19562 }'
19563 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19564 # Check for a 64-bit object if we didn't find anything.
19565 if test -z "$aix_libpath"; then
19566 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19567 fi
19568 fi
19569 rm -f core conftest.err conftest.$ac_objext \
19570 conftest$ac_exeext conftest.$ac_ext
19571 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19572
19573 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19574 # Warning - without using the other run time loading flags,
19575 # -berok will link without error, but may produce a broken library.
19576 no_undefined_flag_CXX=' ${wl}-bernotok'
19577 allow_undefined_flag_CXX=' ${wl}-berok'
19578 if test "$with_gnu_ld" = yes; then
19579 # We only use this code for GNU lds that support --whole-archive.
19580 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19581 else
19582 # Exported symbols can be pulled into shared objects from archives
19583 whole_archive_flag_spec_CXX='$convenience'
19584 fi
19585 archive_cmds_need_lc_CXX=yes
19586 # This is similar to how AIX traditionally builds its shared
19587 # libraries.
19588 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'
19589 fi
19590 fi
19591 ;;
19592
19593 beos*)
19594 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19595 allow_undefined_flag_CXX=unsupported
19596 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19597 # support --undefined. This deserves some investigation. FIXME
19598 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19599 else
19600 ld_shlibs_CXX=no
19601 fi
19602 ;;
19603
19604 chorus*)
19605 case $cc_basename in
19606 *)
19607 # FIXME: insert proper C++ library support
19608 ld_shlibs_CXX=no
19609 ;;
19610 esac
19611 ;;
19612
19613 cygwin* | mingw* | pw32* | cegcc*)
19614 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19615 # as there is no search path for DLLs.
19616 hardcode_libdir_flag_spec_CXX='-L$libdir'
19617 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19618 allow_undefined_flag_CXX=unsupported
19619 always_export_symbols_CXX=no
19620 enable_shared_with_static_runtimes_CXX=yes
19621
19622 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19623 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'
19624 # If the export-symbols file already is a .def file (1st line
19625 # is EXPORTS), use it as is; otherwise, prepend...
19626 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19627 cp $export_symbols $output_objdir/$soname.def;
19628 else
19629 echo EXPORTS > $output_objdir/$soname.def;
19630 cat $export_symbols >> $output_objdir/$soname.def;
19631 fi~
19632 $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'
19633 else
19634 ld_shlibs_CXX=no
19635 fi
19636 ;;
19637 darwin* | rhapsody*)
19638
19639
19640 archive_cmds_need_lc_CXX=no
19641 hardcode_direct_CXX=no
19642 hardcode_automatic_CXX=yes
19643 hardcode_shlibpath_var_CXX=unsupported
19644 if test "$lt_cv_ld_force_load" = "yes"; then
19645 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\"`'
19646 else
19647 whole_archive_flag_spec_CXX=''
19648 fi
19649 link_all_deplibs_CXX=yes
19650 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19651 case $cc_basename in
19652 ifort*) _lt_dar_can_shared=yes ;;
19653 *) _lt_dar_can_shared=$GCC ;;
19654 esac
19655 if test "$_lt_dar_can_shared" = "yes"; then
19656 output_verbose_link_cmd=func_echo_all
19657 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}"
19658 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19659 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}"
19660 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}"
19661 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19662 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}"
19663 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}"
19664 fi
19665
19666 else
19667 ld_shlibs_CXX=no
19668 fi
19669
19670 ;;
19671
19672 dgux*)
19673 case $cc_basename in
19674 ec++*)
19675 # FIXME: insert proper C++ library support
19676 ld_shlibs_CXX=no
19677 ;;
19678 ghcx*)
19679 # Green Hills C++ Compiler
19680 # FIXME: insert proper C++ library support
19681 ld_shlibs_CXX=no
19682 ;;
19683 *)
19684 # FIXME: insert proper C++ library support
19685 ld_shlibs_CXX=no
19686 ;;
19687 esac
19688 ;;
19689
19690 freebsd2.*)
19691 # C++ shared libraries reported to be fairly broken before
19692 # switch to ELF
19693 ld_shlibs_CXX=no
19694 ;;
19695
19696 freebsd-elf*)
19697 archive_cmds_need_lc_CXX=no
19698 ;;
19699
19700 freebsd* | dragonfly*)
19701 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19702 # conventions
19703 ld_shlibs_CXX=yes
19704 ;;
19705
19706 gnu*)
19707 ;;
19708
19709 haiku*)
19710 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19711 link_all_deplibs_CXX=yes
19712 ;;
19713
19714 hpux9*)
19715 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19716 hardcode_libdir_separator_CXX=:
19717 export_dynamic_flag_spec_CXX='${wl}-E'
19718 hardcode_direct_CXX=yes
19719 hardcode_minus_L_CXX=yes # Not in the search PATH,
19720 # but as the default
19721 # location of the library.
19722
19723 case $cc_basename in
19724 CC*)
19725 # FIXME: insert proper C++ library support
19726 ld_shlibs_CXX=no
19727 ;;
19728 aCC*)
19729 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'
19730 # Commands to make compiler produce verbose output that lists
19731 # what "hidden" libraries, object files and flags are used when
19732 # linking a shared library.
19733 #
19734 # There doesn't appear to be a way to prevent this compiler from
19735 # explicitly linking system object files so we need to strip them
19736 # from the output so that they don't get included in the library
19737 # dependencies.
19738 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"'
19739 ;;
19740 *)
19741 if test "$GXX" = yes; then
19742 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'
19743 else
19744 # FIXME: insert proper C++ library support
19745 ld_shlibs_CXX=no
19746 fi
19747 ;;
19748 esac
19749 ;;
19750
19751 hpux10*|hpux11*)
19752 if test $with_gnu_ld = no; then
19753 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19754 hardcode_libdir_separator_CXX=:
19755
19756 case $host_cpu in
19757 hppa*64*|ia64*)
19758 ;;
19759 *)
19760 export_dynamic_flag_spec_CXX='${wl}-E'
19761 ;;
19762 esac
19763 fi
19764 case $host_cpu in
19765 hppa*64*|ia64*)
19766 hardcode_direct_CXX=no
19767 hardcode_shlibpath_var_CXX=no
19768 ;;
19769 *)
19770 hardcode_direct_CXX=yes
19771 hardcode_direct_absolute_CXX=yes
19772 hardcode_minus_L_CXX=yes # Not in the search PATH,
19773 # but as the default
19774 # location of the library.
19775 ;;
19776 esac
19777
19778 case $cc_basename in
19779 CC*)
19780 # FIXME: insert proper C++ library support
19781 ld_shlibs_CXX=no
19782 ;;
19783 aCC*)
19784 case $host_cpu in
19785 hppa*64*)
19786 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19787 ;;
19788 ia64*)
19789 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19790 ;;
19791 *)
19792 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19793 ;;
19794 esac
19795 # Commands to make compiler produce verbose output that lists
19796 # what "hidden" libraries, object files and flags are used when
19797 # linking a shared library.
19798 #
19799 # There doesn't appear to be a way to prevent this compiler from
19800 # explicitly linking system object files so we need to strip them
19801 # from the output so that they don't get included in the library
19802 # dependencies.
19803 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"'
19804 ;;
19805 *)
19806 if test "$GXX" = yes; then
19807 if test $with_gnu_ld = no; then
19808 case $host_cpu in
19809 hppa*64*)
19810 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19811 ;;
19812 ia64*)
19813 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19814 ;;
19815 *)
19816 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'
19817 ;;
19818 esac
19819 fi
19820 else
19821 # FIXME: insert proper C++ library support
19822 ld_shlibs_CXX=no
19823 fi
19824 ;;
19825 esac
19826 ;;
19827
19828 interix[3-9]*)
19829 hardcode_direct_CXX=no
19830 hardcode_shlibpath_var_CXX=no
19831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19832 export_dynamic_flag_spec_CXX='${wl}-E'
19833 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19834 # Instead, shared libraries are loaded at an image base (0x10000000 by
19835 # default) and relocated if they conflict, which is a slow very memory
19836 # consuming and fragmenting process. To avoid this, we pick a random,
19837 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19838 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19839 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'
19840 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'
19841 ;;
19842 irix5* | irix6*)
19843 case $cc_basename in
19844 CC*)
19845 # SGI C++
19846 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'
19847
19848 # Archives containing C++ object files must be created using
19849 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19850 # necessary to make sure instantiated templates are included
19851 # in the archive.
19852 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19853 ;;
19854 *)
19855 if test "$GXX" = yes; then
19856 if test "$with_gnu_ld" = no; then
19857 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'
19858 else
19859 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'
19860 fi
19861 fi
19862 link_all_deplibs_CXX=yes
19863 ;;
19864 esac
19865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19866 hardcode_libdir_separator_CXX=:
19867 inherit_rpath_CXX=yes
19868 ;;
19869
19870 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19871 case $cc_basename in
19872 KCC*)
19873 # Kuck and Associates, Inc. (KAI) C++ Compiler
19874
19875 # KCC will only create a shared library if the output file
19876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19877 # to its proper name (with version) after linking.
19878 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'
19879 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'
19880 # Commands to make compiler produce verbose output that lists
19881 # what "hidden" libraries, object files and flags are used when
19882 # linking a shared library.
19883 #
19884 # There doesn't appear to be a way to prevent this compiler from
19885 # explicitly linking system object files so we need to strip them
19886 # from the output so that they don't get included in the library
19887 # dependencies.
19888 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"'
19889
19890 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19891 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19892
19893 # Archives containing C++ object files must be created using
19894 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19895 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19896 ;;
19897 icpc* | ecpc* )
19898 # Intel C++
19899 with_gnu_ld=yes
19900 # version 8.0 and above of icpc choke on multiply defined symbols
19901 # if we add $predep_objects and $postdep_objects, however 7.1 and
19902 # earlier do not add the objects themselves.
19903 case `$CC -V 2>&1` in
19904 *"Version 7."*)
19905 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19906 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'
19907 ;;
19908 *) # Version 8.0 or newer
19909 tmp_idyn=
19910 case $host_cpu in
19911 ia64*) tmp_idyn=' -i_dynamic';;
19912 esac
19913 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19914 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'
19915 ;;
19916 esac
19917 archive_cmds_need_lc_CXX=no
19918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19919 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19920 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19921 ;;
19922 pgCC* | pgcpp*)
19923 # Portland Group C++ compiler
19924 case `$CC -V` in
19925 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19926 prelink_cmds_CXX='tpldir=Template.dir~
19927 rm -rf $tpldir~
19928 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19929 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19930 old_archive_cmds_CXX='tpldir=Template.dir~
19931 rm -rf $tpldir~
19932 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19933 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19934 $RANLIB $oldlib'
19935 archive_cmds_CXX='tpldir=Template.dir~
19936 rm -rf $tpldir~
19937 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19938 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19939 archive_expsym_cmds_CXX='tpldir=Template.dir~
19940 rm -rf $tpldir~
19941 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19942 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19943 ;;
19944 *) # Version 6 and above use weak symbols
19945 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19946 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'
19947 ;;
19948 esac
19949
19950 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19952 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'
19953 ;;
19954 cxx*)
19955 # Compaq C++
19956 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19957 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'
19958
19959 runpath_var=LD_RUN_PATH
19960 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19961 hardcode_libdir_separator_CXX=:
19962
19963 # Commands to make compiler produce verbose output that lists
19964 # what "hidden" libraries, object files and flags are used when
19965 # linking a shared library.
19966 #
19967 # There doesn't appear to be a way to prevent this compiler from
19968 # explicitly linking system object files so we need to strip them
19969 # from the output so that they don't get included in the library
19970 # dependencies.
19971 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'
19972 ;;
19973 xl* | mpixl* | bgxl*)
19974 # IBM XL 8.0 on PPC, with GNU ld
19975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19976 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19977 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19978 if test "x$supports_anon_versioning" = xyes; then
19979 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19980 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19981 echo "local: *; };" >> $output_objdir/$libname.ver~
19982 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19983 fi
19984 ;;
19985 *)
19986 case `$CC -V 2>&1 | sed 5q` in
19987 *Sun\ C*)
19988 # Sun C++ 5.9
19989 no_undefined_flag_CXX=' -zdefs'
19990 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19991 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'
19992 hardcode_libdir_flag_spec_CXX='-R$libdir'
19993 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'
19994 compiler_needs_object_CXX=yes
19995
19996 # Not sure whether something based on
19997 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19998 # would be better.
19999 output_verbose_link_cmd='func_echo_all'
20000
20001 # Archives containing C++ object files must be created using
20002 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20003 # necessary to make sure instantiated templates are included
20004 # in the archive.
20005 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20006 ;;
20007 esac
20008 ;;
20009 esac
20010 ;;
20011
20012 lynxos*)
20013 # FIXME: insert proper C++ library support
20014 ld_shlibs_CXX=no
20015 ;;
20016
20017 m88k*)
20018 # FIXME: insert proper C++ library support
20019 ld_shlibs_CXX=no
20020 ;;
20021
20022 mvs*)
20023 case $cc_basename in
20024 cxx*)
20025 # FIXME: insert proper C++ library support
20026 ld_shlibs_CXX=no
20027 ;;
20028 *)
20029 # FIXME: insert proper C++ library support
20030 ld_shlibs_CXX=no
20031 ;;
20032 esac
20033 ;;
20034
20035 netbsd*)
20036 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20037 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20038 wlarc=
20039 hardcode_libdir_flag_spec_CXX='-R$libdir'
20040 hardcode_direct_CXX=yes
20041 hardcode_shlibpath_var_CXX=no
20042 fi
20043 # Workaround some broken pre-1.5 toolchains
20044 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20045 ;;
20046
20047 *nto* | *qnx*)
20048 ld_shlibs_CXX=yes
20049 ;;
20050
20051 openbsd2*)
20052 # C++ shared libraries are fairly broken
20053 ld_shlibs_CXX=no
20054 ;;
20055
20056 openbsd*)
20057 if test -f /usr/libexec/ld.so; then
20058 hardcode_direct_CXX=yes
20059 hardcode_shlibpath_var_CXX=no
20060 hardcode_direct_absolute_CXX=yes
20061 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20064 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20065 export_dynamic_flag_spec_CXX='${wl}-E'
20066 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20067 fi
20068 output_verbose_link_cmd=func_echo_all
20069 else
20070 ld_shlibs_CXX=no
20071 fi
20072 ;;
20073
20074 osf3* | osf4* | osf5*)
20075 case $cc_basename in
20076 KCC*)
20077 # Kuck and Associates, Inc. (KAI) C++ Compiler
20078
20079 # KCC will only create a shared library if the output file
20080 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20081 # to its proper name (with version) after linking.
20082 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'
20083
20084 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20085 hardcode_libdir_separator_CXX=:
20086
20087 # Archives containing C++ object files must be created using
20088 # the KAI C++ compiler.
20089 case $host in
20090 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20091 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20092 esac
20093 ;;
20094 RCC*)
20095 # Rational C++ 2.4.1
20096 # FIXME: insert proper C++ library support
20097 ld_shlibs_CXX=no
20098 ;;
20099 cxx*)
20100 case $host in
20101 osf3*)
20102 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20103 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'
20104 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20105 ;;
20106 *)
20107 allow_undefined_flag_CXX=' -expect_unresolved \*'
20108 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'
20109 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20110 echo "-hidden">> $lib.exp~
20111 $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~
20112 $RM $lib.exp'
20113 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20114 ;;
20115 esac
20116
20117 hardcode_libdir_separator_CXX=:
20118
20119 # Commands to make compiler produce verbose output that lists
20120 # what "hidden" libraries, object files and flags are used when
20121 # linking a shared library.
20122 #
20123 # There doesn't appear to be a way to prevent this compiler from
20124 # explicitly linking system object files so we need to strip them
20125 # from the output so that they don't get included in the library
20126 # dependencies.
20127 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"'
20128 ;;
20129 *)
20130 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20131 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20132 case $host in
20133 osf3*)
20134 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'
20135 ;;
20136 *)
20137 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'
20138 ;;
20139 esac
20140
20141 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20142 hardcode_libdir_separator_CXX=:
20143
20144 # Commands to make compiler produce verbose output that lists
20145 # what "hidden" libraries, object files and flags are used when
20146 # linking a shared library.
20147 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20148
20149 else
20150 # FIXME: insert proper C++ library support
20151 ld_shlibs_CXX=no
20152 fi
20153 ;;
20154 esac
20155 ;;
20156
20157 psos*)
20158 # FIXME: insert proper C++ library support
20159 ld_shlibs_CXX=no
20160 ;;
20161
20162 sunos4*)
20163 case $cc_basename in
20164 CC*)
20165 # Sun C++ 4.x
20166 # FIXME: insert proper C++ library support
20167 ld_shlibs_CXX=no
20168 ;;
20169 lcc*)
20170 # Lucid
20171 # FIXME: insert proper C++ library support
20172 ld_shlibs_CXX=no
20173 ;;
20174 *)
20175 # FIXME: insert proper C++ library support
20176 ld_shlibs_CXX=no
20177 ;;
20178 esac
20179 ;;
20180
20181 solaris*)
20182 case $cc_basename in
20183 CC*)
20184 # Sun C++ 4.2, 5.x and Centerline C++
20185 archive_cmds_need_lc_CXX=yes
20186 no_undefined_flag_CXX=' -zdefs'
20187 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20188 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20189 $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'
20190
20191 hardcode_libdir_flag_spec_CXX='-R$libdir'
20192 hardcode_shlibpath_var_CXX=no
20193 case $host_os in
20194 solaris2.[0-5] | solaris2.[0-5].*) ;;
20195 *)
20196 # The compiler driver will combine and reorder linker options,
20197 # but understands `-z linker_flag'.
20198 # Supported since Solaris 2.6 (maybe 2.5.1?)
20199 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20200 ;;
20201 esac
20202 link_all_deplibs_CXX=yes
20203
20204 output_verbose_link_cmd='func_echo_all'
20205
20206 # Archives containing C++ object files must be created using
20207 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20208 # necessary to make sure instantiated templates are included
20209 # in the archive.
20210 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20211 ;;
20212 gcx*)
20213 # Green Hills C++ Compiler
20214 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20215
20216 # The C++ compiler must be used to create the archive.
20217 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20218 ;;
20219 *)
20220 # GNU C++ compiler with Solaris linker
20221 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20222 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20223 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20224 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20225 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20226 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20227
20228 # Commands to make compiler produce verbose output that lists
20229 # what "hidden" libraries, object files and flags are used when
20230 # linking a shared library.
20231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20232 else
20233 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20234 # platform.
20235 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20236 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20237 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20238
20239 # Commands to make compiler produce verbose output that lists
20240 # what "hidden" libraries, object files and flags are used when
20241 # linking a shared library.
20242 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20243 fi
20244
20245 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20246 case $host_os in
20247 solaris2.[0-5] | solaris2.[0-5].*) ;;
20248 *)
20249 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20250 ;;
20251 esac
20252 fi
20253 ;;
20254 esac
20255 ;;
20256
20257 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20258 no_undefined_flag_CXX='${wl}-z,text'
20259 archive_cmds_need_lc_CXX=no
20260 hardcode_shlibpath_var_CXX=no
20261 runpath_var='LD_RUN_PATH'
20262
20263 case $cc_basename in
20264 CC*)
20265 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20266 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20267 ;;
20268 *)
20269 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20270 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20271 ;;
20272 esac
20273 ;;
20274
20275 sysv5* | sco3.2v5* | sco5v6*)
20276 # Note: We can NOT use -z defs as we might desire, because we do not
20277 # link with -lc, and that would cause any symbols used from libc to
20278 # always be unresolved, which means just about no library would
20279 # ever link correctly. If we're not using GNU ld we use -z text
20280 # though, which does catch some bad symbols but isn't as heavy-handed
20281 # as -z defs.
20282 no_undefined_flag_CXX='${wl}-z,text'
20283 allow_undefined_flag_CXX='${wl}-z,nodefs'
20284 archive_cmds_need_lc_CXX=no
20285 hardcode_shlibpath_var_CXX=no
20286 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20287 hardcode_libdir_separator_CXX=':'
20288 link_all_deplibs_CXX=yes
20289 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20290 runpath_var='LD_RUN_PATH'
20291
20292 case $cc_basename in
20293 CC*)
20294 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20295 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20296 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20297 '"$old_archive_cmds_CXX"
20298 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20299 '"$reload_cmds_CXX"
20300 ;;
20301 *)
20302 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20303 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20304 ;;
20305 esac
20306 ;;
20307
20308 tandem*)
20309 case $cc_basename in
20310 NCC*)
20311 # NonStop-UX NCC 3.20
20312 # FIXME: insert proper C++ library support
20313 ld_shlibs_CXX=no
20314 ;;
20315 *)
20316 # FIXME: insert proper C++ library support
20317 ld_shlibs_CXX=no
20318 ;;
20319 esac
20320 ;;
20321
20322 vxworks*)
20323 # FIXME: insert proper C++ library support
20324 ld_shlibs_CXX=no
20325 ;;
20326
20327 *)
20328 # FIXME: insert proper C++ library support
20329 ld_shlibs_CXX=no
20330 ;;
20331 esac
20332
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20334 $as_echo "$ld_shlibs_CXX" >&6; }
20335 test "$ld_shlibs_CXX" = no && can_build_shared=no
20336
20337 GCC_CXX="$GXX"
20338 LD_CXX="$LD"
20339
20340 ## CAVEAT EMPTOR:
20341 ## There is no encapsulation within the following macros, do not change
20342 ## the running order or otherwise move them around unless you know exactly
20343 ## what you are doing...
20344 # Dependencies to place before and after the object being linked:
20345 predep_objects_CXX=
20346 postdep_objects_CXX=
20347 predeps_CXX=
20348 postdeps_CXX=
20349 compiler_lib_search_path_CXX=
20350
20351 cat > conftest.$ac_ext <<_LT_EOF
20352 class Foo
20353 {
20354 public:
20355 Foo (void) { a = 0; }
20356 private:
20357 int a;
20358 };
20359 _LT_EOF
20360
20361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20362 (eval $ac_compile) 2>&5
20363 ac_status=$?
20364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20365 test $ac_status = 0; }; then
20366 # Parse the compiler output and extract the necessary
20367 # objects, libraries and library flags.
20368
20369 # Sentinel used to keep track of whether or not we are before
20370 # the conftest object file.
20371 pre_test_object_deps_done=no
20372
20373 for p in `eval "$output_verbose_link_cmd"`; do
20374 case $p in
20375
20376 -L* | -R* | -l*)
20377 # Some compilers place space between "-{L,R}" and the path.
20378 # Remove the space.
20379 if test $p = "-L" ||
20380 test $p = "-R"; then
20381 prev=$p
20382 continue
20383 else
20384 prev=
20385 fi
20386
20387 if test "$pre_test_object_deps_done" = no; then
20388 case $p in
20389 -L* | -R*)
20390 # Internal compiler library paths should come after those
20391 # provided the user. The postdeps already come after the
20392 # user supplied libs so there is no need to process them.
20393 if test -z "$compiler_lib_search_path_CXX"; then
20394 compiler_lib_search_path_CXX="${prev}${p}"
20395 else
20396 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20397 fi
20398 ;;
20399 # The "-l" case would never come before the object being
20400 # linked, so don't bother handling this case.
20401 esac
20402 else
20403 if test -z "$postdeps_CXX"; then
20404 postdeps_CXX="${prev}${p}"
20405 else
20406 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20407 fi
20408 fi
20409 ;;
20410
20411 *.$objext)
20412 # This assumes that the test object file only shows up
20413 # once in the compiler output.
20414 if test "$p" = "conftest.$objext"; then
20415 pre_test_object_deps_done=yes
20416 continue
20417 fi
20418
20419 if test "$pre_test_object_deps_done" = no; then
20420 if test -z "$predep_objects_CXX"; then
20421 predep_objects_CXX="$p"
20422 else
20423 predep_objects_CXX="$predep_objects_CXX $p"
20424 fi
20425 else
20426 if test -z "$postdep_objects_CXX"; then
20427 postdep_objects_CXX="$p"
20428 else
20429 postdep_objects_CXX="$postdep_objects_CXX $p"
20430 fi
20431 fi
20432 ;;
20433
20434 *) ;; # Ignore the rest.
20435
20436 esac
20437 done
20438
20439 # Clean up.
20440 rm -f a.out a.exe
20441 else
20442 echo "libtool.m4: error: problem compiling CXX test program"
20443 fi
20444
20445 $RM -f confest.$objext
20446
20447 # PORTME: override above test on systems where it is broken
20448 case $host_os in
20449 interix[3-9]*)
20450 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20451 # hack all around it, let's just trust "g++" to DTRT.
20452 predep_objects_CXX=
20453 postdep_objects_CXX=
20454 postdeps_CXX=
20455 ;;
20456
20457 linux*)
20458 case `$CC -V 2>&1 | sed 5q` in
20459 *Sun\ C*)
20460 # Sun C++ 5.9
20461
20462 # The more standards-conforming stlport4 library is
20463 # incompatible with the Cstd library. Avoid specifying
20464 # it if it's in CXXFLAGS. Ignore libCrun as
20465 # -library=stlport4 depends on it.
20466 case " $CXX $CXXFLAGS " in
20467 *" -library=stlport4 "*)
20468 solaris_use_stlport4=yes
20469 ;;
20470 esac
20471
20472 if test "$solaris_use_stlport4" != yes; then
20473 postdeps_CXX='-library=Cstd -library=Crun'
20474 fi
20475 ;;
20476 esac
20477 ;;
20478
20479 solaris*)
20480 case $cc_basename in
20481 CC*)
20482 # The more standards-conforming stlport4 library is
20483 # incompatible with the Cstd library. Avoid specifying
20484 # it if it's in CXXFLAGS. Ignore libCrun as
20485 # -library=stlport4 depends on it.
20486 case " $CXX $CXXFLAGS " in
20487 *" -library=stlport4 "*)
20488 solaris_use_stlport4=yes
20489 ;;
20490 esac
20491
20492 # Adding this requires a known-good setup of shared libraries for
20493 # Sun compiler versions before 5.6, else PIC objects from an old
20494 # archive will be linked into the output, leading to subtle bugs.
20495 if test "$solaris_use_stlport4" != yes; then
20496 postdeps_CXX='-library=Cstd -library=Crun'
20497 fi
20498 ;;
20499 esac
20500 ;;
20501 esac
20502
20503
20504 case " $postdeps_CXX " in
20505 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20506 esac
20507 compiler_lib_search_dirs_CXX=
20508 if test -n "${compiler_lib_search_path_CXX}"; then
20509 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20510 fi
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542 lt_prog_compiler_wl_CXX=
20543 lt_prog_compiler_pic_CXX=
20544 lt_prog_compiler_static_CXX=
20545
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20547 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20548
20549 # C++ specific cases for pic, static, wl, etc.
20550 if test "$GXX" = yes; then
20551 lt_prog_compiler_wl_CXX='-Wl,'
20552 lt_prog_compiler_static_CXX='-static'
20553
20554 case $host_os in
20555 aix*)
20556 # All AIX code is PIC.
20557 if test "$host_cpu" = ia64; then
20558 # AIX 5 now supports IA64 processor
20559 lt_prog_compiler_static_CXX='-Bstatic'
20560 fi
20561 lt_prog_compiler_pic_CXX='-fPIC'
20562 ;;
20563
20564 amigaos*)
20565 case $host_cpu in
20566 powerpc)
20567 # see comment about AmigaOS4 .so support
20568 lt_prog_compiler_pic_CXX='-fPIC'
20569 ;;
20570 m68k)
20571 # FIXME: we need at least 68020 code to build shared libraries, but
20572 # adding the `-m68020' flag to GCC prevents building anything better,
20573 # like `-m68040'.
20574 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20575 ;;
20576 esac
20577 ;;
20578
20579 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20580 # PIC is the default for these OSes.
20581 ;;
20582 mingw* | cygwin* | os2* | pw32* | cegcc*)
20583 # This hack is so that the source file can tell whether it is being
20584 # built for inclusion in a dll (and should export symbols for example).
20585 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20586 # (--disable-auto-import) libraries
20587 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20588 ;;
20589 darwin* | rhapsody*)
20590 # PIC is the default on this platform
20591 # Common symbols not allowed in MH_DYLIB files
20592 lt_prog_compiler_pic_CXX='-fno-common'
20593 ;;
20594 *djgpp*)
20595 # DJGPP does not support shared libraries at all
20596 lt_prog_compiler_pic_CXX=
20597 ;;
20598 haiku*)
20599 # PIC is the default for Haiku.
20600 # The "-static" flag exists, but is broken.
20601 lt_prog_compiler_static_CXX=
20602 ;;
20603 interix[3-9]*)
20604 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20605 # Instead, we relocate shared libraries at runtime.
20606 ;;
20607 sysv4*MP*)
20608 if test -d /usr/nec; then
20609 lt_prog_compiler_pic_CXX=-Kconform_pic
20610 fi
20611 ;;
20612 hpux*)
20613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20615 # sets the default TLS model and affects inlining.
20616 case $host_cpu in
20617 hppa*64*)
20618 ;;
20619 *)
20620 lt_prog_compiler_pic_CXX='-fPIC'
20621 ;;
20622 esac
20623 ;;
20624 *qnx* | *nto*)
20625 # QNX uses GNU C++, but need to define -shared option too, otherwise
20626 # it will coredump.
20627 lt_prog_compiler_pic_CXX='-fPIC -shared'
20628 ;;
20629 *)
20630 lt_prog_compiler_pic_CXX='-fPIC'
20631 ;;
20632 esac
20633 else
20634 case $host_os in
20635 aix[4-9]*)
20636 # All AIX code is PIC.
20637 if test "$host_cpu" = ia64; then
20638 # AIX 5 now supports IA64 processor
20639 lt_prog_compiler_static_CXX='-Bstatic'
20640 else
20641 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20642 fi
20643 ;;
20644 chorus*)
20645 case $cc_basename in
20646 cxch68*)
20647 # Green Hills C++ Compiler
20648 # _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"
20649 ;;
20650 esac
20651 ;;
20652 dgux*)
20653 case $cc_basename in
20654 ec++*)
20655 lt_prog_compiler_pic_CXX='-KPIC'
20656 ;;
20657 ghcx*)
20658 # Green Hills C++ Compiler
20659 lt_prog_compiler_pic_CXX='-pic'
20660 ;;
20661 *)
20662 ;;
20663 esac
20664 ;;
20665 freebsd* | dragonfly*)
20666 # FreeBSD uses GNU C++
20667 ;;
20668 hpux9* | hpux10* | hpux11*)
20669 case $cc_basename in
20670 CC*)
20671 lt_prog_compiler_wl_CXX='-Wl,'
20672 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20673 if test "$host_cpu" != ia64; then
20674 lt_prog_compiler_pic_CXX='+Z'
20675 fi
20676 ;;
20677 aCC*)
20678 lt_prog_compiler_wl_CXX='-Wl,'
20679 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20680 case $host_cpu in
20681 hppa*64*|ia64*)
20682 # +Z the default
20683 ;;
20684 *)
20685 lt_prog_compiler_pic_CXX='+Z'
20686 ;;
20687 esac
20688 ;;
20689 *)
20690 ;;
20691 esac
20692 ;;
20693 interix*)
20694 # This is c89, which is MS Visual C++ (no shared libs)
20695 # Anyone wants to do a port?
20696 ;;
20697 irix5* | irix6* | nonstopux*)
20698 case $cc_basename in
20699 CC*)
20700 lt_prog_compiler_wl_CXX='-Wl,'
20701 lt_prog_compiler_static_CXX='-non_shared'
20702 # CC pic flag -KPIC is the default.
20703 ;;
20704 *)
20705 ;;
20706 esac
20707 ;;
20708 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20709 case $cc_basename in
20710 KCC*)
20711 # KAI C++ Compiler
20712 lt_prog_compiler_wl_CXX='--backend -Wl,'
20713 lt_prog_compiler_pic_CXX='-fPIC'
20714 ;;
20715 ecpc* )
20716 # old Intel C++ for x86_64 which still supported -KPIC.
20717 lt_prog_compiler_wl_CXX='-Wl,'
20718 lt_prog_compiler_pic_CXX='-KPIC'
20719 lt_prog_compiler_static_CXX='-static'
20720 ;;
20721 icpc* )
20722 # Intel C++, used to be incompatible with GCC.
20723 # ICC 10 doesn't accept -KPIC any more.
20724 lt_prog_compiler_wl_CXX='-Wl,'
20725 lt_prog_compiler_pic_CXX='-fPIC'
20726 lt_prog_compiler_static_CXX='-static'
20727 ;;
20728 pgCC* | pgcpp*)
20729 # Portland Group C++ compiler
20730 lt_prog_compiler_wl_CXX='-Wl,'
20731 lt_prog_compiler_pic_CXX='-fpic'
20732 lt_prog_compiler_static_CXX='-Bstatic'
20733 ;;
20734 cxx*)
20735 # Compaq C++
20736 # Make sure the PIC flag is empty. It appears that all Alpha
20737 # Linux and Compaq Tru64 Unix objects are PIC.
20738 lt_prog_compiler_pic_CXX=
20739 lt_prog_compiler_static_CXX='-non_shared'
20740 ;;
20741 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20742 # IBM XL 8.0, 9.0 on PPC and BlueGene
20743 lt_prog_compiler_wl_CXX='-Wl,'
20744 lt_prog_compiler_pic_CXX='-qpic'
20745 lt_prog_compiler_static_CXX='-qstaticlink'
20746 ;;
20747 *)
20748 case `$CC -V 2>&1 | sed 5q` in
20749 *Sun\ C*)
20750 # Sun C++ 5.9
20751 lt_prog_compiler_pic_CXX='-KPIC'
20752 lt_prog_compiler_static_CXX='-Bstatic'
20753 lt_prog_compiler_wl_CXX='-Qoption ld '
20754 ;;
20755 esac
20756 ;;
20757 esac
20758 ;;
20759 lynxos*)
20760 ;;
20761 m88k*)
20762 ;;
20763 mvs*)
20764 case $cc_basename in
20765 cxx*)
20766 lt_prog_compiler_pic_CXX='-W c,exportall'
20767 ;;
20768 *)
20769 ;;
20770 esac
20771 ;;
20772 netbsd*)
20773 ;;
20774 *qnx* | *nto*)
20775 # QNX uses GNU C++, but need to define -shared option too, otherwise
20776 # it will coredump.
20777 lt_prog_compiler_pic_CXX='-fPIC -shared'
20778 ;;
20779 osf3* | osf4* | osf5*)
20780 case $cc_basename in
20781 KCC*)
20782 lt_prog_compiler_wl_CXX='--backend -Wl,'
20783 ;;
20784 RCC*)
20785 # Rational C++ 2.4.1
20786 lt_prog_compiler_pic_CXX='-pic'
20787 ;;
20788 cxx*)
20789 # Digital/Compaq C++
20790 lt_prog_compiler_wl_CXX='-Wl,'
20791 # Make sure the PIC flag is empty. It appears that all Alpha
20792 # Linux and Compaq Tru64 Unix objects are PIC.
20793 lt_prog_compiler_pic_CXX=
20794 lt_prog_compiler_static_CXX='-non_shared'
20795 ;;
20796 *)
20797 ;;
20798 esac
20799 ;;
20800 psos*)
20801 ;;
20802 solaris*)
20803 case $cc_basename in
20804 CC*)
20805 # Sun C++ 4.2, 5.x and Centerline C++
20806 lt_prog_compiler_pic_CXX='-KPIC'
20807 lt_prog_compiler_static_CXX='-Bstatic'
20808 lt_prog_compiler_wl_CXX='-Qoption ld '
20809 ;;
20810 gcx*)
20811 # Green Hills C++ Compiler
20812 lt_prog_compiler_pic_CXX='-PIC'
20813 ;;
20814 *)
20815 ;;
20816 esac
20817 ;;
20818 sunos4*)
20819 case $cc_basename in
20820 CC*)
20821 # Sun C++ 4.x
20822 lt_prog_compiler_pic_CXX='-pic'
20823 lt_prog_compiler_static_CXX='-Bstatic'
20824 ;;
20825 lcc*)
20826 # Lucid
20827 lt_prog_compiler_pic_CXX='-pic'
20828 ;;
20829 *)
20830 ;;
20831 esac
20832 ;;
20833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20834 case $cc_basename in
20835 CC*)
20836 lt_prog_compiler_wl_CXX='-Wl,'
20837 lt_prog_compiler_pic_CXX='-KPIC'
20838 lt_prog_compiler_static_CXX='-Bstatic'
20839 ;;
20840 esac
20841 ;;
20842 tandem*)
20843 case $cc_basename in
20844 NCC*)
20845 # NonStop-UX NCC 3.20
20846 lt_prog_compiler_pic_CXX='-KPIC'
20847 ;;
20848 *)
20849 ;;
20850 esac
20851 ;;
20852 vxworks*)
20853 ;;
20854 *)
20855 lt_prog_compiler_can_build_shared_CXX=no
20856 ;;
20857 esac
20858 fi
20859
20860 case $host_os in
20861 # For platforms which do not support PIC, -DPIC is meaningless:
20862 *djgpp*)
20863 lt_prog_compiler_pic_CXX=
20864 ;;
20865 *)
20866 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20867 ;;
20868 esac
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20870 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20871
20872
20873
20874 #
20875 # Check to make sure the PIC flag actually works.
20876 #
20877 if test -n "$lt_prog_compiler_pic_CXX"; then
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20879 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20880 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20881 $as_echo_n "(cached) " >&6
20882 else
20883 lt_cv_prog_compiler_pic_works_CXX=no
20884 ac_outfile=conftest.$ac_objext
20885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20886 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20887 # Insert the option either (1) after the last *FLAGS variable, or
20888 # (2) before a word containing "conftest.", or (3) at the end.
20889 # Note that $ac_compile itself does not contain backslashes and begins
20890 # with a dollar sign (not a hyphen), so the echo should work correctly.
20891 # The option is referenced via a variable to avoid confusing sed.
20892 lt_compile=`echo "$ac_compile" | $SED \
20893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20895 -e 's:$: $lt_compiler_flag:'`
20896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20897 (eval "$lt_compile" 2>conftest.err)
20898 ac_status=$?
20899 cat conftest.err >&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 if (exit $ac_status) && test -s "$ac_outfile"; then
20902 # The compiler can only warn and ignore the option if not recognized
20903 # So say no if there are warnings other than the usual output.
20904 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20907 lt_cv_prog_compiler_pic_works_CXX=yes
20908 fi
20909 fi
20910 $RM conftest*
20911
20912 fi
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20914 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20915
20916 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20917 case $lt_prog_compiler_pic_CXX in
20918 "" | " "*) ;;
20919 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20920 esac
20921 else
20922 lt_prog_compiler_pic_CXX=
20923 lt_prog_compiler_can_build_shared_CXX=no
20924 fi
20925
20926 fi
20927
20928
20929
20930 #
20931 # Check to make sure the static flag actually works.
20932 #
20933 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20935 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20936 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20937 $as_echo_n "(cached) " >&6
20938 else
20939 lt_cv_prog_compiler_static_works_CXX=no
20940 save_LDFLAGS="$LDFLAGS"
20941 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20942 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20944 # The linker can only warn and ignore the option if not recognized
20945 # So say no if there are warnings
20946 if test -s conftest.err; then
20947 # Append any errors to the config.log.
20948 cat conftest.err 1>&5
20949 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20951 if diff conftest.exp conftest.er2 >/dev/null; then
20952 lt_cv_prog_compiler_static_works_CXX=yes
20953 fi
20954 else
20955 lt_cv_prog_compiler_static_works_CXX=yes
20956 fi
20957 fi
20958 $RM -r conftest*
20959 LDFLAGS="$save_LDFLAGS"
20960
20961 fi
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20963 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20964
20965 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20966 :
20967 else
20968 lt_prog_compiler_static_CXX=
20969 fi
20970
20971
20972
20973
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20975 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20976 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20977 $as_echo_n "(cached) " >&6
20978 else
20979 lt_cv_prog_compiler_c_o_CXX=no
20980 $RM -r conftest 2>/dev/null
20981 mkdir conftest
20982 cd conftest
20983 mkdir out
20984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20985
20986 lt_compiler_flag="-o out/conftest2.$ac_objext"
20987 # Insert the option either (1) after the last *FLAGS variable, or
20988 # (2) before a word containing "conftest.", or (3) at the end.
20989 # Note that $ac_compile itself does not contain backslashes and begins
20990 # with a dollar sign (not a hyphen), so the echo should work correctly.
20991 lt_compile=`echo "$ac_compile" | $SED \
20992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20994 -e 's:$: $lt_compiler_flag:'`
20995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20996 (eval "$lt_compile" 2>out/conftest.err)
20997 ac_status=$?
20998 cat out/conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21001 then
21002 # The compiler can only warn and ignore the option if not recognized
21003 # So say no if there are warnings
21004 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21005 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21006 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21007 lt_cv_prog_compiler_c_o_CXX=yes
21008 fi
21009 fi
21010 chmod u+w . 2>&5
21011 $RM conftest*
21012 # SGI C++ compiler will create directory out/ii_files/ for
21013 # template instantiation
21014 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21015 $RM out/* && rmdir out
21016 cd ..
21017 $RM -r conftest
21018 $RM conftest*
21019
21020 fi
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21022 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21023
21024
21025
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21027 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21028 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21029 $as_echo_n "(cached) " >&6
21030 else
21031 lt_cv_prog_compiler_c_o_CXX=no
21032 $RM -r conftest 2>/dev/null
21033 mkdir conftest
21034 cd conftest
21035 mkdir out
21036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21037
21038 lt_compiler_flag="-o out/conftest2.$ac_objext"
21039 # Insert the option either (1) after the last *FLAGS variable, or
21040 # (2) before a word containing "conftest.", or (3) at the end.
21041 # Note that $ac_compile itself does not contain backslashes and begins
21042 # with a dollar sign (not a hyphen), so the echo should work correctly.
21043 lt_compile=`echo "$ac_compile" | $SED \
21044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21046 -e 's:$: $lt_compiler_flag:'`
21047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21048 (eval "$lt_compile" 2>out/conftest.err)
21049 ac_status=$?
21050 cat out/conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21053 then
21054 # The compiler can only warn and ignore the option if not recognized
21055 # So say no if there are warnings
21056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21059 lt_cv_prog_compiler_c_o_CXX=yes
21060 fi
21061 fi
21062 chmod u+w . 2>&5
21063 $RM conftest*
21064 # SGI C++ compiler will create directory out/ii_files/ for
21065 # template instantiation
21066 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21067 $RM out/* && rmdir out
21068 cd ..
21069 $RM -r conftest
21070 $RM conftest*
21071
21072 fi
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21074 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21075
21076
21077
21078
21079 hard_links="nottested"
21080 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21081 # do not overwrite the value of need_locks provided by the user
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21083 $as_echo_n "checking if we can lock with hard links... " >&6; }
21084 hard_links=yes
21085 $RM conftest*
21086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21087 touch conftest.a
21088 ln conftest.a conftest.b 2>&5 || hard_links=no
21089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21091 $as_echo "$hard_links" >&6; }
21092 if test "$hard_links" = no; then
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21094 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21095 need_locks=warn
21096 fi
21097 else
21098 need_locks=no
21099 fi
21100
21101
21102
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21104 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21105
21106 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21107 case $host_os in
21108 aix[4-9]*)
21109 # If we're using GNU nm, then we don't want the "-C" option.
21110 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21111 # Also, AIX nm treats weak defined symbols like other global defined
21112 # symbols, whereas GNU nm marks them as "W".
21113 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21114 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'
21115 else
21116 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21117 fi
21118 ;;
21119 pw32*)
21120 export_symbols_cmds_CXX="$ltdll_cmds"
21121 ;;
21122 cygwin* | mingw* | cegcc*)
21123 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'
21124 ;;
21125 *)
21126 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21127 ;;
21128 esac
21129 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21130
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21132 $as_echo "$ld_shlibs_CXX" >&6; }
21133 test "$ld_shlibs_CXX" = no && can_build_shared=no
21134
21135 with_gnu_ld_CXX=$with_gnu_ld
21136
21137
21138
21139
21140
21141
21142 #
21143 # Do we need to explicitly link libc?
21144 #
21145 case "x$archive_cmds_need_lc_CXX" in
21146 x|xyes)
21147 # Assume -lc should be added
21148 archive_cmds_need_lc_CXX=yes
21149
21150 if test "$enable_shared" = yes && test "$GCC" = yes; then
21151 case $archive_cmds_CXX in
21152 *'~'*)
21153 # FIXME: we may have to deal with multi-command sequences.
21154 ;;
21155 '$CC '*)
21156 # Test whether the compiler implicitly links with -lc since on some
21157 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21158 # to ld, don't add -lc before -lgcc.
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21160 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21161 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21162 $as_echo_n "(cached) " >&6
21163 else
21164 $RM conftest*
21165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21166
21167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21168 (eval $ac_compile) 2>&5
21169 ac_status=$?
21170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21171 test $ac_status = 0; } 2>conftest.err; then
21172 soname=conftest
21173 lib=conftest
21174 libobjs=conftest.$ac_objext
21175 deplibs=
21176 wl=$lt_prog_compiler_wl_CXX
21177 pic_flag=$lt_prog_compiler_pic_CXX
21178 compiler_flags=-v
21179 linker_flags=-v
21180 verstring=
21181 output_objdir=.
21182 libname=conftest
21183 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21184 allow_undefined_flag_CXX=
21185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21186 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21187 ac_status=$?
21188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21189 test $ac_status = 0; }
21190 then
21191 lt_cv_archive_cmds_need_lc_CXX=no
21192 else
21193 lt_cv_archive_cmds_need_lc_CXX=yes
21194 fi
21195 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21196 else
21197 cat conftest.err 1>&5
21198 fi
21199 $RM conftest*
21200
21201 fi
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21203 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21204 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21205 ;;
21206 esac
21207 fi
21208 ;;
21209 esac
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21275 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21276
21277 library_names_spec=
21278 libname_spec='lib$name'
21279 soname_spec=
21280 shrext_cmds=".so"
21281 postinstall_cmds=
21282 postuninstall_cmds=
21283 finish_cmds=
21284 finish_eval=
21285 shlibpath_var=
21286 shlibpath_overrides_runpath=unknown
21287 version_type=none
21288 dynamic_linker="$host_os ld.so"
21289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21290 need_lib_prefix=unknown
21291 hardcode_into_libs=no
21292
21293 # when you set need_version to no, make sure it does not cause -set_version
21294 # flags to be left without arguments
21295 need_version=unknown
21296
21297 case $host_os in
21298 aix3*)
21299 version_type=linux
21300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21301 shlibpath_var=LIBPATH
21302
21303 # AIX 3 has no versioning support, so we append a major version to the name.
21304 soname_spec='${libname}${release}${shared_ext}$major'
21305 ;;
21306
21307 aix[4-9]*)
21308 version_type=linux
21309 need_lib_prefix=no
21310 need_version=no
21311 hardcode_into_libs=yes
21312 if test "$host_cpu" = ia64; then
21313 # AIX 5 supports IA64
21314 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21315 shlibpath_var=LD_LIBRARY_PATH
21316 else
21317 # With GCC up to 2.95.x, collect2 would create an import file
21318 # for dependence libraries. The import file would start with
21319 # the line `#! .'. This would cause the generated library to
21320 # depend on `.', always an invalid library. This was fixed in
21321 # development snapshots of GCC prior to 3.0.
21322 case $host_os in
21323 aix4 | aix4.[01] | aix4.[01].*)
21324 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21325 echo ' yes '
21326 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21327 :
21328 else
21329 can_build_shared=no
21330 fi
21331 ;;
21332 esac
21333 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21334 # soname into executable. Probably we can add versioning support to
21335 # collect2, so additional links can be useful in future.
21336 if test "$aix_use_runtimelinking" = yes; then
21337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21338 # instead of lib<name>.a to let people know that these are not
21339 # typical AIX shared libraries.
21340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21341 else
21342 # We preserve .a as extension for shared libraries through AIX4.2
21343 # and later when we are not doing run time linking.
21344 library_names_spec='${libname}${release}.a $libname.a'
21345 soname_spec='${libname}${release}${shared_ext}$major'
21346 fi
21347 shlibpath_var=LIBPATH
21348 fi
21349 ;;
21350
21351 amigaos*)
21352 case $host_cpu in
21353 powerpc)
21354 # Since July 2007 AmigaOS4 officially supports .so libraries.
21355 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21357 ;;
21358 m68k)
21359 library_names_spec='$libname.ixlibrary $libname.a'
21360 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21361 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'
21362 ;;
21363 esac
21364 ;;
21365
21366 beos*)
21367 library_names_spec='${libname}${shared_ext}'
21368 dynamic_linker="$host_os ld.so"
21369 shlibpath_var=LIBRARY_PATH
21370 ;;
21371
21372 bsdi[45]*)
21373 version_type=linux
21374 need_version=no
21375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21376 soname_spec='${libname}${release}${shared_ext}$major'
21377 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21378 shlibpath_var=LD_LIBRARY_PATH
21379 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21380 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21381 # the default ld.so.conf also contains /usr/contrib/lib and
21382 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21383 # libtool to hard-code these into programs
21384 ;;
21385
21386 cygwin* | mingw* | pw32* | cegcc*)
21387 version_type=windows
21388 shrext_cmds=".dll"
21389 need_version=no
21390 need_lib_prefix=no
21391
21392 case $GCC,$host_os in
21393 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21394 library_names_spec='$libname.dll.a'
21395 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21396 postinstall_cmds='base_file=`basename \${file}`~
21397 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21398 dldir=$destdir/`dirname \$dlpath`~
21399 test -d \$dldir || mkdir -p \$dldir~
21400 $install_prog $dir/$dlname \$dldir/$dlname~
21401 chmod a+x \$dldir/$dlname~
21402 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21403 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21404 fi'
21405 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21406 dlpath=$dir/\$dldll~
21407 $RM \$dlpath'
21408 shlibpath_overrides_runpath=yes
21409
21410 case $host_os in
21411 cygwin*)
21412 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21413 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21414
21415 ;;
21416 mingw* | cegcc*)
21417 # MinGW DLLs use traditional 'lib' prefix
21418 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21419 ;;
21420 pw32*)
21421 # pw32 DLLs use 'pw' prefix rather than 'lib'
21422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21423 ;;
21424 esac
21425 ;;
21426
21427 *)
21428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21429 ;;
21430 esac
21431 dynamic_linker='Win32 ld.exe'
21432 # FIXME: first we should search . and the directory the executable is in
21433 shlibpath_var=PATH
21434 ;;
21435
21436 darwin* | rhapsody*)
21437 dynamic_linker="$host_os dyld"
21438 version_type=darwin
21439 need_lib_prefix=no
21440 need_version=no
21441 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21442 soname_spec='${libname}${release}${major}$shared_ext'
21443 shlibpath_overrides_runpath=yes
21444 shlibpath_var=DYLD_LIBRARY_PATH
21445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21446
21447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21448 ;;
21449
21450 dgux*)
21451 version_type=linux
21452 need_lib_prefix=no
21453 need_version=no
21454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21455 soname_spec='${libname}${release}${shared_ext}$major'
21456 shlibpath_var=LD_LIBRARY_PATH
21457 ;;
21458
21459 freebsd* | dragonfly*)
21460 # DragonFly does not have aout. When/if they implement a new
21461 # versioning mechanism, adjust this.
21462 if test -x /usr/bin/objformat; then
21463 objformat=`/usr/bin/objformat`
21464 else
21465 case $host_os in
21466 freebsd[23].*) objformat=aout ;;
21467 *) objformat=elf ;;
21468 esac
21469 fi
21470 version_type=freebsd-$objformat
21471 case $version_type in
21472 freebsd-elf*)
21473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21474 need_version=no
21475 need_lib_prefix=no
21476 ;;
21477 freebsd-*)
21478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21479 need_version=yes
21480 ;;
21481 esac
21482 shlibpath_var=LD_LIBRARY_PATH
21483 case $host_os in
21484 freebsd2.*)
21485 shlibpath_overrides_runpath=yes
21486 ;;
21487 freebsd3.[01]* | freebsdelf3.[01]*)
21488 shlibpath_overrides_runpath=yes
21489 hardcode_into_libs=yes
21490 ;;
21491 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21492 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21493 shlibpath_overrides_runpath=no
21494 hardcode_into_libs=yes
21495 ;;
21496 *) # from 4.6 on, and DragonFly
21497 shlibpath_overrides_runpath=yes
21498 hardcode_into_libs=yes
21499 ;;
21500 esac
21501 ;;
21502
21503 gnu*)
21504 version_type=linux
21505 need_lib_prefix=no
21506 need_version=no
21507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21508 soname_spec='${libname}${release}${shared_ext}$major'
21509 shlibpath_var=LD_LIBRARY_PATH
21510 hardcode_into_libs=yes
21511 ;;
21512
21513 haiku*)
21514 version_type=linux
21515 need_lib_prefix=no
21516 need_version=no
21517 dynamic_linker="$host_os runtime_loader"
21518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21519 soname_spec='${libname}${release}${shared_ext}$major'
21520 shlibpath_var=LIBRARY_PATH
21521 shlibpath_overrides_runpath=yes
21522 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21523 hardcode_into_libs=yes
21524 ;;
21525
21526 hpux9* | hpux10* | hpux11*)
21527 # Give a soname corresponding to the major version so that dld.sl refuses to
21528 # link against other versions.
21529 version_type=sunos
21530 need_lib_prefix=no
21531 need_version=no
21532 case $host_cpu in
21533 ia64*)
21534 shrext_cmds='.so'
21535 hardcode_into_libs=yes
21536 dynamic_linker="$host_os dld.so"
21537 shlibpath_var=LD_LIBRARY_PATH
21538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21540 soname_spec='${libname}${release}${shared_ext}$major'
21541 if test "X$HPUX_IA64_MODE" = X32; then
21542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21543 else
21544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21545 fi
21546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21547 ;;
21548 hppa*64*)
21549 shrext_cmds='.sl'
21550 hardcode_into_libs=yes
21551 dynamic_linker="$host_os dld.sl"
21552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21555 soname_spec='${libname}${release}${shared_ext}$major'
21556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21558 ;;
21559 *)
21560 shrext_cmds='.sl'
21561 dynamic_linker="$host_os dld.sl"
21562 shlibpath_var=SHLIB_PATH
21563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21565 soname_spec='${libname}${release}${shared_ext}$major'
21566 ;;
21567 esac
21568 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21569 postinstall_cmds='chmod 555 $lib'
21570 # or fails outright, so override atomically:
21571 install_override_mode=555
21572 ;;
21573
21574 interix[3-9]*)
21575 version_type=linux
21576 need_lib_prefix=no
21577 need_version=no
21578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21579 soname_spec='${libname}${release}${shared_ext}$major'
21580 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21581 shlibpath_var=LD_LIBRARY_PATH
21582 shlibpath_overrides_runpath=no
21583 hardcode_into_libs=yes
21584 ;;
21585
21586 irix5* | irix6* | nonstopux*)
21587 case $host_os in
21588 nonstopux*) version_type=nonstopux ;;
21589 *)
21590 if test "$lt_cv_prog_gnu_ld" = yes; then
21591 version_type=linux
21592 else
21593 version_type=irix
21594 fi ;;
21595 esac
21596 need_lib_prefix=no
21597 need_version=no
21598 soname_spec='${libname}${release}${shared_ext}$major'
21599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21600 case $host_os in
21601 irix5* | nonstopux*)
21602 libsuff= shlibsuff=
21603 ;;
21604 *)
21605 case $LD in # libtool.m4 will add one of these switches to LD
21606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21607 libsuff= shlibsuff= libmagic=32-bit;;
21608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21609 libsuff=32 shlibsuff=N32 libmagic=N32;;
21610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21612 *) libsuff= shlibsuff= libmagic=never-match;;
21613 esac
21614 ;;
21615 esac
21616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21617 shlibpath_overrides_runpath=no
21618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21620 hardcode_into_libs=yes
21621 ;;
21622
21623 # No shared lib support for Linux oldld, aout, or coff.
21624 linux*oldld* | linux*aout* | linux*coff*)
21625 dynamic_linker=no
21626 ;;
21627
21628 # This must be Linux ELF.
21629 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21630 version_type=linux
21631 need_lib_prefix=no
21632 need_version=no
21633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21634 soname_spec='${libname}${release}${shared_ext}$major'
21635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21636 shlibpath_var=LD_LIBRARY_PATH
21637 shlibpath_overrides_runpath=no
21638
21639 # Some binutils ld are patched to set DT_RUNPATH
21640 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21641 $as_echo_n "(cached) " >&6
21642 else
21643 lt_cv_shlibpath_overrides_runpath=no
21644 save_LDFLAGS=$LDFLAGS
21645 save_libdir=$libdir
21646 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21647 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21649 /* end confdefs.h. */
21650
21651 int
21652 main ()
21653 {
21654
21655 ;
21656 return 0;
21657 }
21658 _ACEOF
21659 if ac_fn_cxx_try_link "$LINENO"; then :
21660 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21661 lt_cv_shlibpath_overrides_runpath=yes
21662 fi
21663 fi
21664 rm -f core conftest.err conftest.$ac_objext \
21665 conftest$ac_exeext conftest.$ac_ext
21666 LDFLAGS=$save_LDFLAGS
21667 libdir=$save_libdir
21668
21669 fi
21670
21671 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21672
21673 # This implies no fast_install, which is unacceptable.
21674 # Some rework will be needed to allow for fast_install
21675 # before this can be enabled.
21676 hardcode_into_libs=yes
21677
21678 # Append ld.so.conf contents to the search path
21679 if test -f /etc/ld.so.conf; then
21680 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' ' '`
21681 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21682 fi
21683
21684 # We used to test for /lib/ld.so.1 and disable shared libraries on
21685 # powerpc, because MkLinux only supported shared libraries with the
21686 # GNU dynamic linker. Since this was broken with cross compilers,
21687 # most powerpc-linux boxes support dynamic linking these days and
21688 # people can always --disable-shared, the test was removed, and we
21689 # assume the GNU/Linux dynamic linker is in use.
21690 dynamic_linker='GNU/Linux ld.so'
21691 ;;
21692
21693 netbsd*)
21694 version_type=sunos
21695 need_lib_prefix=no
21696 need_version=no
21697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21700 dynamic_linker='NetBSD (a.out) ld.so'
21701 else
21702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21703 soname_spec='${libname}${release}${shared_ext}$major'
21704 dynamic_linker='NetBSD ld.elf_so'
21705 fi
21706 shlibpath_var=LD_LIBRARY_PATH
21707 shlibpath_overrides_runpath=yes
21708 hardcode_into_libs=yes
21709 ;;
21710
21711 newsos6)
21712 version_type=linux
21713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21714 shlibpath_var=LD_LIBRARY_PATH
21715 shlibpath_overrides_runpath=yes
21716 ;;
21717
21718 *nto* | *qnx*)
21719 version_type=qnx
21720 need_lib_prefix=no
21721 need_version=no
21722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21723 soname_spec='${libname}${release}${shared_ext}$major'
21724 shlibpath_var=LD_LIBRARY_PATH
21725 shlibpath_overrides_runpath=no
21726 hardcode_into_libs=yes
21727 dynamic_linker='ldqnx.so'
21728 ;;
21729
21730 openbsd*)
21731 version_type=sunos
21732 sys_lib_dlsearch_path_spec="/usr/lib"
21733 need_lib_prefix=no
21734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21735 case $host_os in
21736 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21737 *) need_version=no ;;
21738 esac
21739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21741 shlibpath_var=LD_LIBRARY_PATH
21742 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21743 case $host_os in
21744 openbsd2.[89] | openbsd2.[89].*)
21745 shlibpath_overrides_runpath=no
21746 ;;
21747 *)
21748 shlibpath_overrides_runpath=yes
21749 ;;
21750 esac
21751 else
21752 shlibpath_overrides_runpath=yes
21753 fi
21754 ;;
21755
21756 os2*)
21757 libname_spec='$name'
21758 shrext_cmds=".dll"
21759 need_lib_prefix=no
21760 library_names_spec='$libname${shared_ext} $libname.a'
21761 dynamic_linker='OS/2 ld.exe'
21762 shlibpath_var=LIBPATH
21763 ;;
21764
21765 osf3* | osf4* | osf5*)
21766 version_type=osf
21767 need_lib_prefix=no
21768 need_version=no
21769 soname_spec='${libname}${release}${shared_ext}$major'
21770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21771 shlibpath_var=LD_LIBRARY_PATH
21772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21774 ;;
21775
21776 rdos*)
21777 dynamic_linker=no
21778 ;;
21779
21780 solaris*)
21781 version_type=linux
21782 need_lib_prefix=no
21783 need_version=no
21784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21785 soname_spec='${libname}${release}${shared_ext}$major'
21786 shlibpath_var=LD_LIBRARY_PATH
21787 shlibpath_overrides_runpath=yes
21788 hardcode_into_libs=yes
21789 # ldd complains unless libraries are executable
21790 postinstall_cmds='chmod +x $lib'
21791 ;;
21792
21793 sunos4*)
21794 version_type=sunos
21795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21797 shlibpath_var=LD_LIBRARY_PATH
21798 shlibpath_overrides_runpath=yes
21799 if test "$with_gnu_ld" = yes; then
21800 need_lib_prefix=no
21801 fi
21802 need_version=yes
21803 ;;
21804
21805 sysv4 | sysv4.3*)
21806 version_type=linux
21807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21808 soname_spec='${libname}${release}${shared_ext}$major'
21809 shlibpath_var=LD_LIBRARY_PATH
21810 case $host_vendor in
21811 sni)
21812 shlibpath_overrides_runpath=no
21813 need_lib_prefix=no
21814 runpath_var=LD_RUN_PATH
21815 ;;
21816 siemens)
21817 need_lib_prefix=no
21818 ;;
21819 motorola)
21820 need_lib_prefix=no
21821 need_version=no
21822 shlibpath_overrides_runpath=no
21823 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21824 ;;
21825 esac
21826 ;;
21827
21828 sysv4*MP*)
21829 if test -d /usr/nec ;then
21830 version_type=linux
21831 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21832 soname_spec='$libname${shared_ext}.$major'
21833 shlibpath_var=LD_LIBRARY_PATH
21834 fi
21835 ;;
21836
21837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21838 version_type=freebsd-elf
21839 need_lib_prefix=no
21840 need_version=no
21841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21842 soname_spec='${libname}${release}${shared_ext}$major'
21843 shlibpath_var=LD_LIBRARY_PATH
21844 shlibpath_overrides_runpath=yes
21845 hardcode_into_libs=yes
21846 if test "$with_gnu_ld" = yes; then
21847 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21848 else
21849 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21850 case $host_os in
21851 sco3.2v5*)
21852 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21853 ;;
21854 esac
21855 fi
21856 sys_lib_dlsearch_path_spec='/usr/lib'
21857 ;;
21858
21859 tpf*)
21860 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21861 version_type=linux
21862 need_lib_prefix=no
21863 need_version=no
21864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21865 shlibpath_var=LD_LIBRARY_PATH
21866 shlibpath_overrides_runpath=no
21867 hardcode_into_libs=yes
21868 ;;
21869
21870 uts4*)
21871 version_type=linux
21872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21873 soname_spec='${libname}${release}${shared_ext}$major'
21874 shlibpath_var=LD_LIBRARY_PATH
21875 ;;
21876
21877 *)
21878 dynamic_linker=no
21879 ;;
21880 esac
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21882 $as_echo "$dynamic_linker" >&6; }
21883 test "$dynamic_linker" = no && can_build_shared=no
21884
21885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21886 if test "$GCC" = yes; then
21887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21888 fi
21889
21890 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21891 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21892 fi
21893 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21894 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21895 fi
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21935 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21936 hardcode_action_CXX=
21937 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21938 test -n "$runpath_var_CXX" ||
21939 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21940
21941 # We can hardcode non-existent directories.
21942 if test "$hardcode_direct_CXX" != no &&
21943 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21944 # have to relink, otherwise we might link with an installed library
21945 # when we should be linking with a yet-to-be-installed one
21946 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21947 test "$hardcode_minus_L_CXX" != no; then
21948 # Linking always hardcodes the temporary library directory.
21949 hardcode_action_CXX=relink
21950 else
21951 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21952 hardcode_action_CXX=immediate
21953 fi
21954 else
21955 # We cannot hardcode anything, or else we can only hardcode existing
21956 # directories.
21957 hardcode_action_CXX=unsupported
21958 fi
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21960 $as_echo "$hardcode_action_CXX" >&6; }
21961
21962 if test "$hardcode_action_CXX" = relink ||
21963 test "$inherit_rpath_CXX" = yes; then
21964 # Fast installation is not supported
21965 enable_fast_install=no
21966 elif test "$shlibpath_overrides_runpath" = yes ||
21967 test "$enable_shared" = no; then
21968 # Fast installation is not necessary
21969 enable_fast_install=needless
21970 fi
21971
21972
21973
21974
21975
21976
21977
21978 fi # test -n "$compiler"
21979
21980 CC=$lt_save_CC
21981 LDCXX=$LD
21982 LD=$lt_save_LD
21983 GCC=$lt_save_GCC
21984 with_gnu_ld=$lt_save_with_gnu_ld
21985 lt_cv_path_LDCXX=$lt_cv_path_LD
21986 lt_cv_path_LD=$lt_save_path_LD
21987 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21988 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21989 fi # test "$_lt_caught_CXX_error" != yes
21990
21991 ac_ext=cpp
21992 ac_cpp='$CXXCPP $CPPFLAGS'
21993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012 # Only expand once:
22013
22014
22015
22016
22017
22018 # Identify the assembler which will work hand-in-glove with the newly
22019 # built GCC, so that we can examine its features. This is the assembler
22020 # which will be driven by the driver program.
22021 #
22022 # If build != host, and we aren't building gas in-tree, we identify a
22023 # build->target assembler and hope that it will have the same features
22024 # as the host->target assembler we'll be using.
22025 gcc_cv_gas_major_version=
22026 gcc_cv_gas_minor_version=
22027 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22028
22029 if ${gcc_cv_as+:} false; then :
22030
22031 else
22032
22033 if test -x "$DEFAULT_ASSEMBLER"; then
22034 gcc_cv_as="$DEFAULT_ASSEMBLER"
22035 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22036 && test -f ../gas/Makefile \
22037 && test x$build = x$host; then
22038 gcc_cv_as=../gas/as-new$build_exeext
22039 elif test -x as$build_exeext; then
22040 # Build using assembler in the current directory.
22041 gcc_cv_as=./as$build_exeext
22042 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22043 gcc_cv_as="$AS_FOR_TARGET"
22044 else
22045 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22046 set dummy $AS_FOR_TARGET; ac_word=$2
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22048 $as_echo_n "checking for $ac_word... " >&6; }
22049 if ${ac_cv_path_gcc_cv_as+:} false; then :
22050 $as_echo_n "(cached) " >&6
22051 else
22052 case $gcc_cv_as in
22053 [\\/]* | ?:[\\/]*)
22054 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22055 ;;
22056 *)
22057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22058 for as_dir in $PATH
22059 do
22060 IFS=$as_save_IFS
22061 test -z "$as_dir" && as_dir=.
22062 for ac_exec_ext in '' $ac_executable_extensions; do
22063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22064 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22066 break 2
22067 fi
22068 done
22069 done
22070 IFS=$as_save_IFS
22071
22072 ;;
22073 esac
22074 fi
22075 gcc_cv_as=$ac_cv_path_gcc_cv_as
22076 if test -n "$gcc_cv_as"; then
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22078 $as_echo "$gcc_cv_as" >&6; }
22079 else
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22081 $as_echo "no" >&6; }
22082 fi
22083
22084
22085 fi
22086 fi
22087
22088 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22089
22090 case "$ORIGINAL_AS_FOR_TARGET" in
22091 ./as | ./as$build_exeext) ;;
22092 *) ac_config_files="$ac_config_files as:exec-tool.in"
22093 ;;
22094 esac
22095
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22097 $as_echo_n "checking what assembler to use... " >&6; }
22098 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22099 # Single tree build which includes gas. We want to prefer it
22100 # over whatever linker top-level may have detected, since
22101 # we'll use what we're building after installation anyway.
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22103 $as_echo "newly built gas" >&6; }
22104 in_tree_gas=yes
22105 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22106 for f in $gcc_cv_as_bfd_srcdir/configure \
22107 $gcc_cv_as_gas_srcdir/configure \
22108 $gcc_cv_as_gas_srcdir/configure.ac \
22109 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22110 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22111 if test x$gcc_cv_gas_version != x; then
22112 break
22113 fi
22114 done
22115 case $gcc_cv_gas_version in
22116 VERSION=[0-9]*) ;;
22117 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22118 esac
22119 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22120 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22121 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22122 case $gcc_cv_gas_patch_version in
22123 "") gcc_cv_gas_patch_version="0" ;;
22124 esac
22125 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22126 + $gcc_cv_gas_minor_version \) \* 1000 \
22127 + $gcc_cv_gas_patch_version`
22128
22129 in_tree_gas_is_elf=no
22130 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22131 || (grep 'obj_format = multi' ../gas/Makefile \
22132 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22133 then
22134 in_tree_gas_is_elf=yes
22135 fi
22136 else
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22138 $as_echo "$gcc_cv_as" >&6; }
22139 in_tree_gas=no
22140 fi
22141
22142 default_ld=
22143 # Check whether --enable-ld was given.
22144 if test "${enable_ld+set}" = set; then :
22145 enableval=$enable_ld; case "${enableval}" in
22146 no)
22147 default_ld=ld.gold
22148 ;;
22149 esac
22150 fi
22151
22152
22153 install_gold_as_default=no
22154 # Check whether --enable-gold was given.
22155 if test "${enable_gold+set}" = set; then :
22156 enableval=$enable_gold; case "${enableval}" in
22157 default)
22158 install_gold_as_default=yes
22159 ;;
22160 yes)
22161 if test x${default_ld} != x; then
22162 install_gold_as_default=yes
22163 fi
22164 ;;
22165 no)
22166 ;;
22167 *)
22168 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22169 ;;
22170 esac
22171 fi
22172
22173
22174 # Identify the linker which will work hand-in-glove with the newly
22175 # built GCC, so that we can examine its features. This is the linker
22176 # which will be driven by the driver program.
22177 #
22178 # If build != host, and we aren't building gas in-tree, we identify a
22179 # build->target linker and hope that it will have the same features
22180 # as the host->target linker we'll be using.
22181 gcc_cv_gld_major_version=
22182 gcc_cv_gld_minor_version=
22183 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22184 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22185 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22186
22187 if ${gcc_cv_ld+:} false; then :
22188
22189 else
22190
22191 if test -x "$DEFAULT_LINKER"; then
22192 gcc_cv_ld="$DEFAULT_LINKER"
22193 elif test $install_gold_as_default = yes \
22194 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22195 && test -f ../gold/Makefile \
22196 && test x$build = x$host; then
22197 gcc_cv_ld=../gold/ld-new$build_exeext
22198 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22199 && test -f ../ld/Makefile \
22200 && test x$build = x$host; then
22201 gcc_cv_ld=../ld/ld-new$build_exeext
22202 elif test -x collect-ld$build_exeext; then
22203 # Build using linker in the current directory.
22204 gcc_cv_ld=./collect-ld$build_exeext
22205 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22206 gcc_cv_ld="$LD_FOR_TARGET"
22207 else
22208 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22209 set dummy $LD_FOR_TARGET; ac_word=$2
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22211 $as_echo_n "checking for $ac_word... " >&6; }
22212 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22213 $as_echo_n "(cached) " >&6
22214 else
22215 case $gcc_cv_ld in
22216 [\\/]* | ?:[\\/]*)
22217 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22218 ;;
22219 *)
22220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22221 for as_dir in $PATH
22222 do
22223 IFS=$as_save_IFS
22224 test -z "$as_dir" && as_dir=.
22225 for ac_exec_ext in '' $ac_executable_extensions; do
22226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22227 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22229 break 2
22230 fi
22231 done
22232 done
22233 IFS=$as_save_IFS
22234
22235 ;;
22236 esac
22237 fi
22238 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22239 if test -n "$gcc_cv_ld"; then
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22241 $as_echo "$gcc_cv_ld" >&6; }
22242 else
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22244 $as_echo "no" >&6; }
22245 fi
22246
22247
22248 fi
22249 fi
22250
22251 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22252 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22253 # if the PLUGIN_LD is set ld-new, just have it as ld
22254 # as that is the installed named.
22255 if test x$PLUGIN_LD_SUFFIX = xld-new \
22256 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22257 PLUGIN_LD_SUFFIX=ld
22258 fi
22259
22260 # Check whether --with-plugin-ld was given.
22261 if test "${with_plugin_ld+set}" = set; then :
22262 withval=$with_plugin_ld; if test x"$withval" != x; then
22263 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22264 PLUGIN_LD_SUFFIX="$withval"
22265 fi
22266 fi
22267
22268
22269
22270 cat >>confdefs.h <<_ACEOF
22271 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22272 _ACEOF
22273
22274
22275 # Check to see if we are using gold instead of ld
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22277 $as_echo_n "checking whether we are using gold... " >&6; }
22278 ld_is_gold=no
22279 if test x$gcc_cv_ld != x; then
22280 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22281 | grep "GNU gold" > /dev/null; then
22282 ld_is_gold=yes
22283 fi
22284 fi
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22286 $as_echo "$ld_is_gold" >&6; }
22287
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22289 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22290 # Check to see if default ld is not gold, but gold is
22291 # available and has support for split stack. If gcc was configured
22292 # with gold then no checking is done.
22293 #
22294 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22295
22296 # For platforms other than powerpc64*, enable as appropriate.
22297
22298 gold_non_default=no
22299 ld_gold=`which ${gcc_cv_ld}.gold`
22300 # Make sure this gold has minimal split stack support
22301 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22302 ld_vers=`$ld_gold --version | sed 1q`
22303 gold_vers=`echo $ld_vers | sed -n \
22304 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22305 case $target in
22306 # check that the gold version contains the complete split stack support
22307 # on powerpc64 big and little endian
22308 powerpc64*-*-*)
22309 case "$gold_vers" in
22310 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22311 ;;
22312 *) gold_non_default=no
22313 ;;
22314 esac
22315 ;;
22316 esac
22317 fi
22318 if test $gold_non_default = yes; then
22319
22320 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22321
22322 fi
22323 fi
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22325 $as_echo "$gold_non_default" >&6; }
22326
22327 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22328
22329 case "$ORIGINAL_LD_FOR_TARGET" in
22330 ./collect-ld | ./collect-ld$build_exeext) ;;
22331 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22332 ;;
22333 esac
22334
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22336 $as_echo_n "checking what linker to use... " >&6; }
22337 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22338 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22339 # Single tree build which includes ld. We want to prefer it
22340 # over whatever linker top-level may have detected, since
22341 # we'll use what we're building after installation anyway.
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22343 $as_echo "newly built ld" >&6; }
22344 in_tree_ld=yes
22345 in_tree_ld_is_elf=no
22346 if (grep 'EMUL = .*elf' ../ld/Makefile \
22347 || grep 'EMUL = .*linux' ../ld/Makefile \
22348 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22349 in_tree_ld_is_elf=yes
22350 elif test "$ld_is_gold" = yes; then
22351 in_tree_ld_is_elf=yes
22352 fi
22353 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
22354 do
22355 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22356 if test x$gcc_cv_gld_version != x; then
22357 break
22358 fi
22359 done
22360 case $gcc_cv_gld_version in
22361 VERSION=[0-9]*) ;;
22362 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22363 esac
22364 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22365 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22366 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22367 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22368 else
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22370 $as_echo "$gcc_cv_ld" >&6; }
22371 in_tree_ld=no
22372 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22373 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22374 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22375 fi
22376
22377
22378
22379
22380 # Figure out what nm we will be using.
22381 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22382 if ${gcc_cv_nm+:} false; then :
22383
22384 else
22385
22386 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22387 && test -f ../binutils/Makefile \
22388 && test x$build = x$host; then
22389 gcc_cv_nm=../binutils/nm-new$build_exeext
22390 elif test -x nm$build_exeext; then
22391 gcc_cv_nm=./nm$build_exeext
22392 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22393 gcc_cv_nm="$NM_FOR_TARGET"
22394 else
22395 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22396 set dummy $NM_FOR_TARGET; ac_word=$2
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22398 $as_echo_n "checking for $ac_word... " >&6; }
22399 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22400 $as_echo_n "(cached) " >&6
22401 else
22402 case $gcc_cv_nm in
22403 [\\/]* | ?:[\\/]*)
22404 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22405 ;;
22406 *)
22407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22408 for as_dir in $PATH
22409 do
22410 IFS=$as_save_IFS
22411 test -z "$as_dir" && as_dir=.
22412 for ac_exec_ext in '' $ac_executable_extensions; do
22413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22414 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22416 break 2
22417 fi
22418 done
22419 done
22420 IFS=$as_save_IFS
22421
22422 ;;
22423 esac
22424 fi
22425 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22426 if test -n "$gcc_cv_nm"; then
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22428 $as_echo "$gcc_cv_nm" >&6; }
22429 else
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22431 $as_echo "no" >&6; }
22432 fi
22433
22434
22435 fi
22436 fi
22437
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22439 $as_echo_n "checking what nm to use... " >&6; }
22440 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22441 # Single tree build which includes binutils.
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22443 $as_echo "newly built nm" >&6; }
22444 in_tree_nm=yes
22445 else
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22447 $as_echo "$gcc_cv_nm" >&6; }
22448 in_tree_nm=no
22449 fi
22450
22451 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22452
22453 case "$ORIGINAL_NM_FOR_TARGET" in
22454 ./nm | ./nm$build_exeext) ;;
22455 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22456 ;;
22457 esac
22458
22459
22460 # Figure out what objdump we will be using.
22461 if ${gcc_cv_objdump+:} false; then :
22462
22463 else
22464
22465 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22466 && test -f ../binutils/Makefile \
22467 && test x$build = x$host; then
22468 # Single tree build which includes binutils.
22469 gcc_cv_objdump=../binutils/objdump$build_exeext
22470 elif test -x objdump$build_exeext; then
22471 gcc_cv_objdump=./objdump$build_exeext
22472 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22473 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22474 else
22475 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22476 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22478 $as_echo_n "checking for $ac_word... " >&6; }
22479 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22480 $as_echo_n "(cached) " >&6
22481 else
22482 case $gcc_cv_objdump in
22483 [\\/]* | ?:[\\/]*)
22484 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22485 ;;
22486 *)
22487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22488 for as_dir in $PATH
22489 do
22490 IFS=$as_save_IFS
22491 test -z "$as_dir" && as_dir=.
22492 for ac_exec_ext in '' $ac_executable_extensions; do
22493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22494 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22496 break 2
22497 fi
22498 done
22499 done
22500 IFS=$as_save_IFS
22501
22502 ;;
22503 esac
22504 fi
22505 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22506 if test -n "$gcc_cv_objdump"; then
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22508 $as_echo "$gcc_cv_objdump" >&6; }
22509 else
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22511 $as_echo "no" >&6; }
22512 fi
22513
22514
22515 fi
22516 fi
22517
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22519 $as_echo_n "checking what objdump to use... " >&6; }
22520 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22521 # Single tree build which includes binutils.
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22523 $as_echo "newly built objdump" >&6; }
22524 elif test x$gcc_cv_objdump = x; then
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22526 $as_echo "not found" >&6; }
22527 else
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22529 $as_echo "$gcc_cv_objdump" >&6; }
22530 fi
22531
22532 # Figure out what readelf we will be using.
22533 if ${gcc_cv_readelf+:} false; then :
22534
22535 else
22536
22537 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22538 && test -f ../binutils/Makefile \
22539 && test x$build = x$host; then
22540 # Single tree build which includes binutils.
22541 gcc_cv_readelf=../binutils/readelf$build_exeext
22542 elif test -x readelf$build_exeext; then
22543 gcc_cv_readelf=./readelf$build_exeext
22544 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22545 gcc_cv_readelf="$READELF_FOR_TARGET"
22546 else
22547 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22548 set dummy $READELF_FOR_TARGET; ac_word=$2
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22550 $as_echo_n "checking for $ac_word... " >&6; }
22551 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22552 $as_echo_n "(cached) " >&6
22553 else
22554 case $gcc_cv_readelf in
22555 [\\/]* | ?:[\\/]*)
22556 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22557 ;;
22558 *)
22559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22560 for as_dir in $PATH
22561 do
22562 IFS=$as_save_IFS
22563 test -z "$as_dir" && as_dir=.
22564 for ac_exec_ext in '' $ac_executable_extensions; do
22565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22566 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22568 break 2
22569 fi
22570 done
22571 done
22572 IFS=$as_save_IFS
22573
22574 ;;
22575 esac
22576 fi
22577 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22578 if test -n "$gcc_cv_readelf"; then
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22580 $as_echo "$gcc_cv_readelf" >&6; }
22581 else
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22583 $as_echo "no" >&6; }
22584 fi
22585
22586
22587 fi
22588 fi
22589
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22591 $as_echo_n "checking what readelf to use... " >&6; }
22592 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22593 # Single tree build which includes binutils.
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22595 $as_echo "newly built readelf" >&6; }
22596 elif test x$gcc_cv_readelf = x; then
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22598 $as_echo "not found" >&6; }
22599 else
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22601 $as_echo "$gcc_cv_readelf" >&6; }
22602 fi
22603
22604 # Figure out what otool we will be using.
22605 if ${gcc_cv_otool+:} false; then :
22606
22607 else
22608
22609 if test -x otool$build_exeext; then
22610 gcc_cv_otool=./otool$build_exeext
22611 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22612 gcc_cv_otool="$OTOOL_FOR_TARGET"
22613 else
22614 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22615 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22617 $as_echo_n "checking for $ac_word... " >&6; }
22618 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22619 $as_echo_n "(cached) " >&6
22620 else
22621 case $gcc_cv_otool in
22622 [\\/]* | ?:[\\/]*)
22623 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22624 ;;
22625 *)
22626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22627 for as_dir in $PATH
22628 do
22629 IFS=$as_save_IFS
22630 test -z "$as_dir" && as_dir=.
22631 for ac_exec_ext in '' $ac_executable_extensions; do
22632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22633 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22635 break 2
22636 fi
22637 done
22638 done
22639 IFS=$as_save_IFS
22640
22641 ;;
22642 esac
22643 fi
22644 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22645 if test -n "$gcc_cv_otool"; then
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22647 $as_echo "$gcc_cv_otool" >&6; }
22648 else
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22650 $as_echo "no" >&6; }
22651 fi
22652
22653
22654 fi
22655 fi
22656
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22658 $as_echo_n "checking what otool to use... " >&6; }
22659 if test x$gcc_cv_otool = x; then
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22661 $as_echo "not found" >&6; }
22662 else
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22664 $as_echo "$gcc_cv_otool" >&6; }
22665 fi
22666
22667 # Figure out what assembler alignment features are present.
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22669 $as_echo_n "checking assembler flags... " >&6; }
22670 if ${gcc_cv_as_flags+:} false; then :
22671 $as_echo_n "(cached) " >&6
22672 else
22673 case "$target" in
22674 i[34567]86-*-linux*)
22675 gcc_cv_as_flags=--32
22676 ;;
22677 x86_64-*-linux-gnux32)
22678 gcc_cv_as_flags=--x32
22679 ;;
22680 x86_64-*-linux*)
22681 gcc_cv_as_flags=--64
22682 ;;
22683 powerpc*-*-darwin*)
22684 gcc_cv_as_flags="-arch ppc"
22685 ;;
22686 *)
22687 gcc_cv_as_flags=" "
22688 ;;
22689 esac
22690 fi
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22692 $as_echo "$gcc_cv_as_flags" >&6; }
22693
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22695 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22696 if ${gcc_cv_as_balign_and_p2align+:} false; then :
22697 $as_echo_n "(cached) " >&6
22698 else
22699 gcc_cv_as_balign_and_p2align=no
22700 if test $in_tree_gas = yes; then
22701 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22702 then gcc_cv_as_balign_and_p2align=yes
22703 fi
22704 elif test x$gcc_cv_as != x; then
22705 $as_echo '.balign 4
22706 .p2align 2' > conftest.s
22707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22709 (eval $ac_try) 2>&5
22710 ac_status=$?
22711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22712 test $ac_status = 0; }; }
22713 then
22714 gcc_cv_as_balign_and_p2align=yes
22715 else
22716 echo "configure: failed program was" >&5
22717 cat conftest.s >&5
22718 fi
22719 rm -f conftest.o conftest.s
22720 fi
22721 fi
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22723 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22724 if test $gcc_cv_as_balign_and_p2align = yes; then
22725
22726 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22727
22728 fi
22729
22730
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22732 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22733 if ${gcc_cv_as_max_skip_p2align+:} false; then :
22734 $as_echo_n "(cached) " >&6
22735 else
22736 gcc_cv_as_max_skip_p2align=no
22737 if test $in_tree_gas = yes; then
22738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22739 then gcc_cv_as_max_skip_p2align=yes
22740 fi
22741 elif test x$gcc_cv_as != x; then
22742 $as_echo '.p2align 4,,7' > conftest.s
22743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22745 (eval $ac_try) 2>&5
22746 ac_status=$?
22747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22748 test $ac_status = 0; }; }
22749 then
22750 gcc_cv_as_max_skip_p2align=yes
22751 else
22752 echo "configure: failed program was" >&5
22753 cat conftest.s >&5
22754 fi
22755 rm -f conftest.o conftest.s
22756 fi
22757 fi
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22759 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22760 if test $gcc_cv_as_max_skip_p2align = yes; then
22761
22762 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22763
22764 fi
22765
22766
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22768 $as_echo_n "checking assembler for .literal16... " >&6; }
22769 if ${gcc_cv_as_literal16+:} false; then :
22770 $as_echo_n "(cached) " >&6
22771 else
22772 gcc_cv_as_literal16=no
22773 if test $in_tree_gas = yes; then
22774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22775 then gcc_cv_as_literal16=yes
22776 fi
22777 elif test x$gcc_cv_as != x; then
22778 $as_echo '.literal16' > conftest.s
22779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22781 (eval $ac_try) 2>&5
22782 ac_status=$?
22783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22784 test $ac_status = 0; }; }
22785 then
22786 gcc_cv_as_literal16=yes
22787 else
22788 echo "configure: failed program was" >&5
22789 cat conftest.s >&5
22790 fi
22791 rm -f conftest.o conftest.s
22792 fi
22793 fi
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22795 $as_echo "$gcc_cv_as_literal16" >&6; }
22796 if test $gcc_cv_as_literal16 = yes; then
22797
22798 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22799
22800 fi
22801
22802
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22804 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22805 if ${gcc_cv_as_subsection_m1+:} false; then :
22806 $as_echo_n "(cached) " >&6
22807 else
22808 gcc_cv_as_subsection_m1=no
22809 if test $in_tree_gas = yes; then
22810 if test $in_tree_gas_is_elf = yes \
22811 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22812 then gcc_cv_as_subsection_m1=yes
22813 fi
22814 elif test x$gcc_cv_as != x; then
22815 $as_echo 'conftest_label1: .word 0
22816 .subsection -1
22817 conftest_label2: .word 0
22818 .previous' > conftest.s
22819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22821 (eval $ac_try) 2>&5
22822 ac_status=$?
22823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22824 test $ac_status = 0; }; }
22825 then
22826 if test x$gcc_cv_nm != x; then
22827 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22828 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22829 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22830 then :
22831 else gcc_cv_as_subsection_m1=yes
22832 fi
22833 rm -f conftest.nm1 conftest.nm2
22834 fi
22835 else
22836 echo "configure: failed program was" >&5
22837 cat conftest.s >&5
22838 fi
22839 rm -f conftest.o conftest.s
22840 fi
22841 fi
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22843 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22844 if test $gcc_cv_as_subsection_m1 = yes; then
22845
22846 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22847
22848 fi
22849
22850
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22852 $as_echo_n "checking assembler for .weak... " >&6; }
22853 if ${gcc_cv_as_weak+:} false; then :
22854 $as_echo_n "(cached) " >&6
22855 else
22856 gcc_cv_as_weak=no
22857 if test $in_tree_gas = yes; then
22858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22859 then gcc_cv_as_weak=yes
22860 fi
22861 elif test x$gcc_cv_as != x; then
22862 $as_echo ' .weak foobar' > conftest.s
22863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22865 (eval $ac_try) 2>&5
22866 ac_status=$?
22867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22868 test $ac_status = 0; }; }
22869 then
22870 gcc_cv_as_weak=yes
22871 else
22872 echo "configure: failed program was" >&5
22873 cat conftest.s >&5
22874 fi
22875 rm -f conftest.o conftest.s
22876 fi
22877 fi
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22879 $as_echo "$gcc_cv_as_weak" >&6; }
22880 if test $gcc_cv_as_weak = yes; then
22881
22882 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22883
22884 fi
22885
22886
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22888 $as_echo_n "checking assembler for .weakref... " >&6; }
22889 if ${gcc_cv_as_weakref+:} false; then :
22890 $as_echo_n "(cached) " >&6
22891 else
22892 gcc_cv_as_weakref=no
22893 if test $in_tree_gas = yes; then
22894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22895 then gcc_cv_as_weakref=yes
22896 fi
22897 elif test x$gcc_cv_as != x; then
22898 $as_echo ' .weakref foobar, barfnot' > conftest.s
22899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22901 (eval $ac_try) 2>&5
22902 ac_status=$?
22903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22904 test $ac_status = 0; }; }
22905 then
22906 gcc_cv_as_weakref=yes
22907 else
22908 echo "configure: failed program was" >&5
22909 cat conftest.s >&5
22910 fi
22911 rm -f conftest.o conftest.s
22912 fi
22913 fi
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22915 $as_echo "$gcc_cv_as_weakref" >&6; }
22916 if test $gcc_cv_as_weakref = yes; then
22917
22918 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22919
22920 fi
22921
22922
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22924 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22925 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
22926 $as_echo_n "(cached) " >&6
22927 else
22928 gcc_cv_as_nsubspa_comdat=no
22929 if test $in_tree_gas = yes; then
22930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22931 then gcc_cv_as_nsubspa_comdat=yes
22932 fi
22933 elif test x$gcc_cv_as != x; then
22934 $as_echo ' .SPACE $TEXT$
22935 .NSUBSPA $CODE$,COMDAT' > conftest.s
22936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22938 (eval $ac_try) 2>&5
22939 ac_status=$?
22940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22941 test $ac_status = 0; }; }
22942 then
22943 gcc_cv_as_nsubspa_comdat=yes
22944 else
22945 echo "configure: failed program was" >&5
22946 cat conftest.s >&5
22947 fi
22948 rm -f conftest.o conftest.s
22949 fi
22950 fi
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22952 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22953 if test $gcc_cv_as_nsubspa_comdat = yes; then
22954
22955 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22956
22957 fi
22958
22959
22960 # .hidden needs to be supported in both the assembler and the linker,
22961 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22962 # This is irritatingly difficult to feature test for; we have to check the
22963 # date string after the version number. If we've got an in-tree
22964 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22965 # to be safe.
22966 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22967 case "${target}" in
22968 *-*-aix*)
22969 conftest_s=' .globl foobar,hidden'
22970 ;;
22971 *)
22972 conftest_s=' .hidden foobar
22973 foobar:'
22974 ;;
22975 esac
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22977 $as_echo_n "checking assembler for .hidden... " >&6; }
22978 if ${gcc_cv_as_hidden+:} false; then :
22979 $as_echo_n "(cached) " >&6
22980 else
22981 gcc_cv_as_hidden=no
22982 if test $in_tree_gas = yes; then
22983 if test $in_tree_gas_is_elf = yes \
22984 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22985 then gcc_cv_as_hidden=yes
22986 fi
22987 elif test x$gcc_cv_as != x; then
22988 $as_echo "$conftest_s" > conftest.s
22989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22991 (eval $ac_try) 2>&5
22992 ac_status=$?
22993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22994 test $ac_status = 0; }; }
22995 then
22996 gcc_cv_as_hidden=yes
22997 else
22998 echo "configure: failed program was" >&5
22999 cat conftest.s >&5
23000 fi
23001 rm -f conftest.o conftest.s
23002 fi
23003 fi
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23005 $as_echo "$gcc_cv_as_hidden" >&6; }
23006
23007
23008 case "${target}" in
23009 *-*-darwin*)
23010 # Darwin as has some visibility support, though with a different syntax.
23011 gcc_cv_as_hidden=yes
23012 ;;
23013 esac
23014
23015 # gnu_indirect_function type is an extension proposed at
23016 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23017 # selection of function implementation
23018 # Check whether --enable-gnu-indirect-function was given.
23019 if test "${enable_gnu_indirect_function+set}" = set; then :
23020 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23021 yes | no) ;;
23022 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23023 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23024 esac
23025 else
23026 enable_gnu_indirect_function="$default_gnu_indirect_function"
23027 fi
23028
23029
23030 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23031
23032 cat >>confdefs.h <<_ACEOF
23033 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23034 _ACEOF
23035
23036
23037
23038 if test $in_tree_ld != yes ; then
23039 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23040 if echo "$ld_ver" | grep GNU > /dev/null; then
23041 if test x"$ld_is_gold" = xyes; then
23042 # GNU gold --version looks like this:
23043 #
23044 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23045 #
23046 # We extract the binutils version which is more familiar and specific
23047 # than the gold version.
23048 ld_vers=`echo $ld_ver | sed -n \
23049 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23050 else
23051 # GNU ld --version looks like this:
23052 #
23053 # GNU ld (GNU Binutils) 2.21.51.20110225
23054 ld_vers=`echo $ld_ver | sed -n \
23055 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23056 fi
23057 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'`
23058 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23059 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23060 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23061 else
23062 case "${target}" in
23063 *-*-solaris2*)
23064 # Solaris 2 ld -V output looks like this for a regular version:
23065 #
23066 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23067 #
23068 # but test versions add stuff at the end:
23069 #
23070 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23071 #
23072 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23073 # numbers can be used in ld.so.1 feature checks even if a different
23074 # linker is configured.
23075 ld_ver=`$gcc_cv_ld -V 2>&1`
23076 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23077 ld_vers=`echo $ld_ver | sed -n \
23078 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23079 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23080 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23081 fi
23082 ;;
23083 esac
23084 fi
23085 fi
23086
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23088 $as_echo_n "checking linker for .hidden support... " >&6; }
23089 if ${gcc_cv_ld_hidden+:} false; then :
23090 $as_echo_n "(cached) " >&6
23091 else
23092 if test $in_tree_ld = yes ; then
23093 gcc_cv_ld_hidden=no
23094 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 \
23095 && test $in_tree_ld_is_elf = yes; then
23096 gcc_cv_ld_hidden=yes
23097 fi
23098 else
23099 gcc_cv_ld_hidden=yes
23100 if test x"$ld_is_gold" = xyes; then
23101 :
23102 elif echo "$ld_ver" | grep GNU > /dev/null; then
23103 case "${target}" in
23104 mmix-knuth-mmixware)
23105 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23106 gcc_cv_ld_hidden=no
23107 ;;
23108 esac
23109 if test 0"$ld_date" -lt 20020404; then
23110 if test -n "$ld_date"; then
23111 # If there was date string, but was earlier than 2002-04-04, fail
23112 gcc_cv_ld_hidden=no
23113 elif test -z "$ld_vers"; then
23114 # If there was no date string nor ld version number, something is wrong
23115 gcc_cv_ld_hidden=no
23116 else
23117 test -z "$ld_vers_patch" && ld_vers_patch=0
23118 if test "$ld_vers_major" -lt 2; then
23119 gcc_cv_ld_hidden=no
23120 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23121 gcc_cv_ld_hidden="no"
23122 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23123 gcc_cv_ld_hidden=no
23124 fi
23125 fi
23126 fi
23127 else
23128 case "${target}" in
23129 *-*-aix[789]*)
23130 gcc_cv_ld_hidden=yes
23131 ;;
23132 *-*-darwin*)
23133 # Darwin ld has some visibility support.
23134 gcc_cv_ld_hidden=yes
23135 ;;
23136 hppa64*-*-hpux* | ia64*-*-hpux*)
23137 gcc_cv_ld_hidden=yes
23138 ;;
23139 *-*-solaris2*)
23140 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23141 # .symbolic was only added in Solaris 9 12/02.
23142 gcc_cv_ld_hidden=yes
23143 ;;
23144 *)
23145 gcc_cv_ld_hidden=no
23146 ;;
23147 esac
23148 fi
23149 fi
23150 fi
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23152 $as_echo "$gcc_cv_ld_hidden" >&6; }
23153 libgcc_visibility=no
23154
23155
23156 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23157 libgcc_visibility=yes
23158
23159 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23160
23161 fi
23162
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23164 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23165 gcc_cv_ld_ro_rw_mix=unknown
23166 if test $in_tree_ld = yes ; then
23167 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 \
23168 && test $in_tree_ld_is_elf = yes; then
23169 gcc_cv_ld_ro_rw_mix=read-write
23170 fi
23171 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23172 echo '.section myfoosect, "a"' > conftest1.s
23173 echo '.section myfoosect, "aw"' > conftest2.s
23174 echo '.byte 1' >> conftest2.s
23175 echo '.section myfoosect, "a"' > conftest3.s
23176 echo '.byte 0' >> conftest3.s
23177 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23178 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23179 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23180 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23181 conftest2.o conftest3.o > /dev/null 2>&1; then
23182 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23183 | sed -e '/myfoosect/!d' -e N`
23184 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23185 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23186 gcc_cv_ld_ro_rw_mix=read-only
23187 else
23188 gcc_cv_ld_ro_rw_mix=read-write
23189 fi
23190 fi
23191 fi
23192 rm -f conftest.* conftest[123].*
23193 fi
23194 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23195
23196 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23197
23198 fi
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23200 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23201
23202 # Check whether --enable-initfini-array was given.
23203 if test "${enable_initfini_array+set}" = set; then :
23204 enableval=$enable_initfini_array;
23205 else
23206
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23208 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23209 if ${gcc_cv_initfini_array+:} false; then :
23210 $as_echo_n "(cached) " >&6
23211 else
23212 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23213 case "${target}" in
23214 ia64-*)
23215 if test "$cross_compiling" = yes; then :
23216 gcc_cv_initfini_array=no
23217 else
23218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23219 /* end confdefs.h. */
23220
23221 #ifndef __ELF__
23222 #error Not an ELF OS
23223 #endif
23224 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23225 if it can be used. */
23226 static int x = -1;
23227 int main (void) { return x; }
23228 int foo (void) { x = 0; }
23229 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23230
23231 _ACEOF
23232 if ac_fn_cxx_try_run "$LINENO"; then :
23233 gcc_cv_initfini_array=yes
23234 else
23235 gcc_cv_initfini_array=no
23236 fi
23237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23238 conftest.$ac_objext conftest.beam conftest.$ac_ext
23239 fi
23240 ;;
23241 *)
23242 gcc_cv_initfini_array=no
23243 if test $in_tree_ld = yes ; then
23244 if test "$gcc_cv_gld_major_version" -eq 2 \
23245 -a "$gcc_cv_gld_minor_version" -ge 22 \
23246 -o "$gcc_cv_gld_major_version" -gt 2 \
23247 && test $in_tree_ld_is_elf = yes; then
23248 gcc_cv_initfini_array=yes
23249 fi
23250 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23251 case $target:$gas in
23252 *:yes)
23253 sh_flags='"a"'
23254 sh_type='%progbits'
23255 ;;
23256 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23257 sh_flags='"a"'
23258 sh_type='@progbits'
23259 ;;
23260 sparc*-*-solaris2*:no)
23261 sh_flags='#alloc'
23262 sh_type='#progbits'
23263 sh_quote='"'
23264 ;;
23265 esac
23266 case "$target:$gnu_ld" in
23267 *:yes)
23268 cat > conftest.s <<EOF
23269 .section .dtors,$sh_flags,$sh_type
23270 .balign 4
23271 .byte 'A', 'A', 'A', 'A'
23272 .section .ctors,$sh_flags,$sh_type
23273 .balign 4
23274 .byte 'B', 'B', 'B', 'B'
23275 .section .fini_array.65530,$sh_flags,$sh_type
23276 .balign 4
23277 .byte 'C', 'C', 'C', 'C'
23278 .section .init_array.65530,$sh_flags,$sh_type
23279 .balign 4
23280 .byte 'D', 'D', 'D', 'D'
23281 .section .dtors.64528,$sh_flags,$sh_type
23282 .balign 4
23283 .byte 'E', 'E', 'E', 'E'
23284 .section .ctors.64528,$sh_flags,$sh_type
23285 .balign 4
23286 .byte 'F', 'F', 'F', 'F'
23287 .section .fini_array.01005,$sh_flags,$sh_type
23288 .balign 4
23289 .byte 'G', 'G', 'G', 'G'
23290 .section .init_array.01005,$sh_flags,$sh_type
23291 .balign 4
23292 .byte 'H', 'H', 'H', 'H'
23293 .text
23294 .globl _start
23295 _start:
23296 EOF
23297 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23298 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23299 && $gcc_cv_objdump -s -j .init_array conftest \
23300 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23301 && $gcc_cv_objdump -s -j .fini_array conftest \
23302 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23303 gcc_cv_initfini_array=yes
23304 fi
23305 ;;
23306 *-*-solaris2*:no)
23307 # When Solaris ld added constructor priority support, it was
23308 # decided to only handle .init_array.N/.fini_array.N since
23309 # there was no need for backwards compatibility with
23310 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23311 # sections with correct execution order resp. to
23312 # .init_array/.fini_array, while gld merges them into
23313 # .init_array/.fini_array.
23314 cat > conftest.s <<EOF
23315 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23316 .align 4
23317 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23318 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23319 .align 4
23320 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23321 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23322 .align 4
23323 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23324 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23325 .align 4
23326 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23327 .text
23328 .globl _start
23329 _start:
23330 EOF
23331 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23332 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23333 && $gcc_cv_objdump -s -j .init_array conftest \
23334 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23335 && $gcc_cv_objdump -s -j .fini_array conftest \
23336 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23337 gcc_cv_initfini_array=yes
23338 fi
23339 ;;
23340 esac
23341 rm -f conftest conftest.*
23342 fi
23343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23344 /* end confdefs.h. */
23345
23346 #ifndef __ELF__
23347 # error Not an ELF OS
23348 #endif
23349 #include <stdlib.h>
23350 #if defined __GLIBC_PREREQ
23351 # if __GLIBC_PREREQ (2, 4)
23352 # else
23353 # error GLIBC 2.4 required
23354 # endif
23355 #else
23356 # if defined __sun__ && defined __svr4__
23357 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23358 # else
23359 # error The C library not known to support .init_array/.fini_array
23360 # endif
23361 #endif
23362
23363 _ACEOF
23364 if ac_fn_cxx_try_cpp "$LINENO"; then :
23365
23366 else
23367 gcc_cv_initfini_array=no
23368 fi
23369 rm -f conftest.err conftest.i conftest.$ac_ext;;
23370 esac
23371 else
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23373 $as_echo_n "checking cross compile... guessing... " >&6; }
23374 gcc_cv_initfini_array=no
23375 fi
23376 fi
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23378 $as_echo "$gcc_cv_initfini_array" >&6; }
23379 enable_initfini_array=$gcc_cv_initfini_array
23380
23381 fi
23382
23383
23384 cat >>confdefs.h <<_ACEOF
23385 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23386 _ACEOF
23387
23388
23389
23390 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23392 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23393 if ${gcc_cv_as_leb128+:} false; then :
23394 $as_echo_n "(cached) " >&6
23395 else
23396 gcc_cv_as_leb128=no
23397 if test $in_tree_gas = yes; then
23398 if test $in_tree_gas_is_elf = yes \
23399 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23400 then gcc_cv_as_leb128=yes
23401 fi
23402 elif test x$gcc_cv_as != x; then
23403 $as_echo ' .data
23404 .uleb128 L2 - L1
23405 L1:
23406 .uleb128 1280
23407 .sleb128 -1010
23408 L2:' > conftest.s
23409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23411 (eval $ac_try) 2>&5
23412 ac_status=$?
23413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23414 test $ac_status = 0; }; }
23415 then
23416 # GAS versions before 2.11 do not support uleb128,
23417 # despite appearing to.
23418 # ??? There exists an elf-specific test that will crash
23419 # the assembler. Perhaps it's better to figure out whether
23420 # arbitrary sections are supported and try the test.
23421 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23422 if echo "$as_ver" | grep GNU > /dev/null; then
23423 as_vers=`echo $as_ver | sed -n \
23424 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23425 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23426 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23427 if test $as_major -eq 2 && test $as_minor -lt 11
23428 then :
23429 else gcc_cv_as_leb128=yes
23430 fi
23431 fi
23432 else
23433 echo "configure: failed program was" >&5
23434 cat conftest.s >&5
23435 fi
23436 rm -f conftest.o conftest.s
23437 fi
23438 fi
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23440 $as_echo "$gcc_cv_as_leb128" >&6; }
23441 if test $gcc_cv_as_leb128 = yes; then
23442
23443 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23444
23445 fi
23446 if test $gcc_cv_as_leb128 != yes; then
23447
23448 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23449
23450 fi
23451
23452 # Determine if an .eh_frame section is read-only.
23453 gcc_fn_eh_frame_ro () {
23454 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23455 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23456 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23457 }
23458
23459 # Check if we have assembler support for unwind directives.
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23461 $as_echo_n "checking assembler for cfi directives... " >&6; }
23462 if ${gcc_cv_as_cfi_directive+:} false; then :
23463 $as_echo_n "(cached) " >&6
23464 else
23465 gcc_cv_as_cfi_directive=no
23466 if test x$gcc_cv_as != x; then
23467 $as_echo ' .text
23468 .cfi_startproc
23469 .cfi_offset 0, 0
23470 .cfi_same_value 1
23471 .cfi_def_cfa 1, 2
23472 .cfi_escape 1, 2, 3, 4, 5
23473 .cfi_endproc' > conftest.s
23474 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23479 test $ac_status = 0; }; }
23480 then
23481 case "$target" in
23482 *-*-solaris*)
23483 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23484 # read-only and read-write sections, we need to make sure that the
23485 # assembler used emits read-write .eh_frame sections.
23486 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23487 gcc_cv_as_cfi_directive=yes
23488 elif test "x$gcc_cv_objdump" = x; then
23489 # No objdump, err on the side of caution.
23490 gcc_cv_as_cfi_directive=no
23491 else
23492 if test x$gas = xyes; then
23493 as_32_opt="--32"
23494 as_64_opt="--64"
23495 else
23496 as_32_opt="-m32"
23497 as_64_opt="-m64"
23498 fi
23499 case "$target" in
23500 sparc*-*-solaris2.*)
23501 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23502 if gcc_fn_eh_frame_ro $as_32_opt \
23503 || gcc_fn_eh_frame_ro $as_64_opt; then
23504 gcc_cv_as_cfi_directive=no
23505 else
23506 gcc_cv_as_cfi_directive=yes
23507 fi
23508 ;;
23509 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23510 # On Solaris/x86, make sure that GCC and assembler agree on using
23511 # read-only .eh_frame sections for 64-bit.
23512 if gcc_fn_eh_frame_ro $as_32_opt; then
23513 gcc_cv_as_cfi_directive=no
23514 elif gcc_fn_eh_frame_ro $as_64_opt; then
23515 gcc_cv_as_cfi_directive=yes
23516 else
23517 gcc_cv_as_cfi_directive=no
23518 fi
23519 ;;
23520 esac
23521 fi
23522 ;;
23523 *-*-*)
23524 gcc_cv_as_cfi_directive=yes
23525 ;;
23526 esac
23527 else
23528 echo "configure: failed program was" >&5
23529 cat conftest.s >&5
23530 fi
23531 rm -f conftest.o conftest.s
23532 fi
23533 fi
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23535 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23536
23537
23538 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23540 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23541 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23542 $as_echo_n "(cached) " >&6
23543 else
23544 gcc_cv_as_cfi_advance_working=no
23545 if test x$gcc_cv_as != x; then
23546 $as_echo ' .text
23547 .cfi_startproc
23548 .cfi_adjust_cfa_offset 64
23549 .skip 75040, 0
23550 .cfi_adjust_cfa_offset 128
23551 .cfi_endproc' > conftest.s
23552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23554 (eval $ac_try) 2>&5
23555 ac_status=$?
23556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23557 test $ac_status = 0; }; }
23558 then
23559
23560 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23561 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23562 gcc_cv_as_cfi_advance_working=yes
23563 fi
23564
23565 else
23566 echo "configure: failed program was" >&5
23567 cat conftest.s >&5
23568 fi
23569 rm -f conftest.o conftest.s
23570 fi
23571 fi
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23573 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23574
23575
23576 else
23577 # no objdump, err on the side of caution
23578 gcc_cv_as_cfi_advance_working=no
23579 fi
23580
23581
23582 cat >>confdefs.h <<_ACEOF
23583 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23584 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23585 _ACEOF
23586
23587
23588
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23590 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23591 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23592 $as_echo_n "(cached) " >&6
23593 else
23594 gcc_cv_as_cfi_personality_directive=no
23595 if test x$gcc_cv_as != x; then
23596 $as_echo ' .text
23597 .cfi_startproc
23598 .cfi_personality 0, symbol
23599 .cfi_endproc' > conftest.s
23600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23602 (eval $ac_try) 2>&5
23603 ac_status=$?
23604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23605 test $ac_status = 0; }; }
23606 then
23607 gcc_cv_as_cfi_personality_directive=yes
23608 else
23609 echo "configure: failed program was" >&5
23610 cat conftest.s >&5
23611 fi
23612 rm -f conftest.o conftest.s
23613 fi
23614 fi
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23616 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23617
23618
23619
23620 cat >>confdefs.h <<_ACEOF
23621 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23622 _ACEOF
23623
23624
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23626 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23627 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23628 $as_echo_n "(cached) " >&6
23629 else
23630 gcc_cv_as_cfi_sections_directive=no
23631 if test x$gcc_cv_as != x; then
23632 $as_echo ' .text
23633 .cfi_sections .debug_frame, .eh_frame
23634 .cfi_startproc
23635 .cfi_endproc' > conftest.s
23636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23638 (eval $ac_try) 2>&5
23639 ac_status=$?
23640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23641 test $ac_status = 0; }; }
23642 then
23643 case $target_os in
23644 win32 | pe | cygwin* | mingw32*)
23645 # Need to check that we generated the correct relocation for the
23646 # .debug_frame section. This was fixed for binutils 2.21.
23647 gcc_cv_as_cfi_sections_directive=no
23648 if test "x$gcc_cv_objdump" != x; then
23649 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23650 grep secrel > /dev/null; then
23651 gcc_cv_as_cfi_sections_directive=yes
23652 fi
23653 fi
23654 ;;
23655 *)
23656 gcc_cv_as_cfi_sections_directive=yes
23657 ;;
23658 esac
23659 else
23660 echo "configure: failed program was" >&5
23661 cat conftest.s >&5
23662 fi
23663 rm -f conftest.o conftest.s
23664 fi
23665 fi
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23667 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23668
23669
23670
23671
23672 cat >>confdefs.h <<_ACEOF
23673 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23674 _ACEOF
23675
23676
23677 # GAS versions up to and including 2.11.0 may mis-optimize
23678 # .eh_frame data.
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23680 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23681 if ${gcc_cv_as_eh_frame+:} false; then :
23682 $as_echo_n "(cached) " >&6
23683 else
23684 gcc_cv_as_eh_frame=no
23685 if test $in_tree_gas = yes; then
23686 if test $in_tree_gas_is_elf = yes \
23687 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23688 then gcc_cv_as_eh_frame=yes
23689 fi
23690 elif test x$gcc_cv_as != x; then
23691 $as_echo ' .text
23692 .LFB1:
23693 .4byte 0
23694 .L1:
23695 .4byte 0
23696 .LFE1:
23697 .section .eh_frame,"aw",@progbits
23698 __FRAME_BEGIN__:
23699 .4byte .LECIE1-.LSCIE1
23700 .LSCIE1:
23701 .4byte 0x0
23702 .byte 0x1
23703 .ascii "z\0"
23704 .byte 0x1
23705 .byte 0x78
23706 .byte 0x1a
23707 .byte 0x0
23708 .byte 0x4
23709 .4byte 1
23710 .p2align 1
23711 .LECIE1:
23712 .LSFDE1:
23713 .4byte .LEFDE1-.LASFDE1
23714 .LASFDE1:
23715 .4byte .LASFDE1-__FRAME_BEGIN__
23716 .4byte .LFB1
23717 .4byte .LFE1-.LFB1
23718 .byte 0x4
23719 .4byte .LFE1-.LFB1
23720 .byte 0x4
23721 .4byte .L1-.LFB1
23722 .LEFDE1:' > conftest.s
23723 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23725 (eval $ac_try) 2>&5
23726 ac_status=$?
23727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23728 test $ac_status = 0; }; }
23729 then
23730 cat > conftest.lit <<EOF
23731 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23732 0010 01000000 12000000 18000000 00000000 ................
23733 0020 08000000 04080000 0044 .........D
23734 EOF
23735 cat > conftest.big <<EOF
23736 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23737 0010 00000001 00000012 00000018 00000000 ................
23738 0020 00000008 04000000 0844 .........D
23739 EOF
23740 # If the assembler didn't choke, and we can objdump,
23741 # and we got the correct data, then succeed.
23742 # The text in the here-document typically retains its unix-style line
23743 # endings, while the output of objdump will use host line endings.
23744 # Therefore, use diff -b for the comparisons.
23745 if test x$gcc_cv_objdump != x \
23746 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23747 | tail -3 > conftest.got \
23748 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23749 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23750 then
23751 gcc_cv_as_eh_frame=yes
23752 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23754 (eval $ac_try) 2>&5
23755 ac_status=$?
23756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23757 test $ac_status = 0; }; }; then
23758 gcc_cv_as_eh_frame=buggy
23759 else
23760 # Uh oh, what do we do now?
23761 gcc_cv_as_eh_frame=no
23762 fi
23763 else
23764 echo "configure: failed program was" >&5
23765 cat conftest.s >&5
23766 fi
23767 rm -f conftest.o conftest.s
23768 fi
23769 fi
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23771 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23772
23773
23774
23775 if test $gcc_cv_as_eh_frame = buggy; then
23776
23777 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23778
23779 fi
23780
23781 # Test if the assembler supports the section flag 'e' or #exclude for
23782 # specifying an excluded section.
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23784 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23785 if ${gcc_cv_as_section_exclude_e+:} false; then :
23786 $as_echo_n "(cached) " >&6
23787 else
23788 gcc_cv_as_section_exclude_e=no
23789 if test $in_tree_gas = yes; then
23790 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23791 then gcc_cv_as_section_exclude_e=yes
23792 fi
23793 elif test x$gcc_cv_as != x; then
23794 $as_echo '.section foo1,"e"
23795 .byte 0,0,0,0' > conftest.s
23796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23798 (eval $ac_try) 2>&5
23799 ac_status=$?
23800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23801 test $ac_status = 0; }; }
23802 then
23803 gcc_cv_as_section_exclude_e=yes
23804 else
23805 echo "configure: failed program was" >&5
23806 cat conftest.s >&5
23807 fi
23808 rm -f conftest.o conftest.s
23809 fi
23810 fi
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23812 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23813
23814
23815 if test $gcc_cv_as_section_exclude_e = no; then
23816 case "${target}" in
23817 # Solaris as uses #exclude instead.
23818 *-*-solaris2*)
23819 case "${target}" in
23820 sparc*-*-solaris2*)
23821 conftest_s='.section "foo1", #exclude'
23822 ;;
23823 i?86-*-solaris2* | x86_64-*-solaris2*)
23824 conftest_s='.section foo1, #exclude'
23825 ;;
23826 esac
23827 ;;
23828 esac
23829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23830 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23831 if ${gcc_cv_as_section_exclude_hash+:} false; then :
23832 $as_echo_n "(cached) " >&6
23833 else
23834 gcc_cv_as_section_exclude_hash=no
23835 if test x$gcc_cv_as != x; then
23836 $as_echo "$conftest_s
23837 .byte 0,0,0,0" > conftest.s
23838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23840 (eval $ac_try) 2>&5
23841 ac_status=$?
23842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23843 test $ac_status = 0; }; }
23844 then
23845 gcc_cv_as_section_exclude_hash=yes
23846 else
23847 echo "configure: failed program was" >&5
23848 cat conftest.s >&5
23849 fi
23850 rm -f conftest.o conftest.s
23851 fi
23852 fi
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23854 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23855
23856
23857 fi
23858
23859 cat >>confdefs.h <<_ACEOF
23860 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
23861 _ACEOF
23862
23863
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23865 $as_echo_n "checking assembler for section merging support... " >&6; }
23866 if ${gcc_cv_as_shf_merge+:} false; then :
23867 $as_echo_n "(cached) " >&6
23868 else
23869 gcc_cv_as_shf_merge=no
23870 if test $in_tree_gas = yes; then
23871 if test $in_tree_gas_is_elf = yes \
23872 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23873 then gcc_cv_as_shf_merge=yes
23874 fi
23875 elif test x$gcc_cv_as != x; then
23876 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23879 (eval $ac_try) 2>&5
23880 ac_status=$?
23881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23882 test $ac_status = 0; }; }
23883 then
23884 gcc_cv_as_shf_merge=yes
23885 else
23886 echo "configure: failed program was" >&5
23887 cat conftest.s >&5
23888 fi
23889 rm -f conftest.o conftest.s
23890 fi
23891 fi
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23893 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23894
23895
23896 if test $gcc_cv_as_shf_merge = no; then
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23898 $as_echo_n "checking assembler for section merging support... " >&6; }
23899 if ${gcc_cv_as_shf_merge+:} false; then :
23900 $as_echo_n "(cached) " >&6
23901 else
23902 gcc_cv_as_shf_merge=no
23903 if test $in_tree_gas = yes; then
23904 if test $in_tree_gas_is_elf = yes \
23905 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23906 then gcc_cv_as_shf_merge=yes
23907 fi
23908 elif test x$gcc_cv_as != x; then
23909 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23912 (eval $ac_try) 2>&5
23913 ac_status=$?
23914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23915 test $ac_status = 0; }; }
23916 then
23917 gcc_cv_as_shf_merge=yes
23918 else
23919 echo "configure: failed program was" >&5
23920 cat conftest.s >&5
23921 fi
23922 rm -f conftest.o conftest.s
23923 fi
23924 fi
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23926 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23927
23928
23929 fi
23930
23931 cat >>confdefs.h <<_ACEOF
23932 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23933 _ACEOF
23934
23935
23936 gcc_cv_ld_aligned_shf_merge=yes
23937 case "$target" in
23938 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23939 # alignment > 1.
23940 sparc*-*-solaris2.11*)
23941 if test x"$gnu_ld" = xno \
23942 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23943 gcc_cv_ld_aligned_shf_merge=no
23944 fi
23945 ;;
23946 esac
23947
23948 cat >>confdefs.h <<_ACEOF
23949 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23950 _ACEOF
23951
23952
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23954 $as_echo_n "checking assembler for stabs directive... " >&6; }
23955 if ${gcc_cv_as_stabs_directive+:} false; then :
23956 $as_echo_n "(cached) " >&6
23957 else
23958 gcc_cv_as_stabs_directive=no
23959 if test x$gcc_cv_as != x; then
23960 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23963 (eval $ac_try) 2>&5
23964 ac_status=$?
23965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23966 test $ac_status = 0; }; }
23967 then
23968 gcc_cv_as_stabs_directive=yes
23969 else
23970 echo "configure: failed program was" >&5
23971 cat conftest.s >&5
23972 fi
23973 rm -f conftest.o conftest.s
23974 fi
23975 fi
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23977 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23978 if test $gcc_cv_as_stabs_directive = yes; then
23979
23980 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23981
23982 fi
23983
23984
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23986 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23987 if ${gcc_cv_as_comdat_group+:} false; then :
23988 $as_echo_n "(cached) " >&6
23989 else
23990 gcc_cv_as_comdat_group=no
23991 if test $in_tree_gas = yes; then
23992 if test $in_tree_gas_is_elf = yes \
23993 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23994 then gcc_cv_as_comdat_group=yes
23995 fi
23996 elif test x$gcc_cv_as != x; then
23997 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24000 (eval $ac_try) 2>&5
24001 ac_status=$?
24002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24003 test $ac_status = 0; }; }
24004 then
24005 gcc_cv_as_comdat_group=yes
24006 else
24007 echo "configure: failed program was" >&5
24008 cat conftest.s >&5
24009 fi
24010 rm -f conftest.o conftest.s
24011 fi
24012 fi
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24014 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24015
24016
24017 if test $gcc_cv_as_comdat_group = yes; then
24018 gcc_cv_as_comdat_group_percent=no
24019 gcc_cv_as_comdat_group_group=no
24020 else
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24022 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24023 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24024 $as_echo_n "(cached) " >&6
24025 else
24026 gcc_cv_as_comdat_group_percent=no
24027 if test $in_tree_gas = yes; then
24028 if test $in_tree_gas_is_elf = yes \
24029 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24030 then gcc_cv_as_comdat_group_percent=yes
24031 fi
24032 elif test x$gcc_cv_as != x; then
24033 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24036 (eval $ac_try) 2>&5
24037 ac_status=$?
24038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24039 test $ac_status = 0; }; }
24040 then
24041 gcc_cv_as_comdat_group_percent=yes
24042 else
24043 echo "configure: failed program was" >&5
24044 cat conftest.s >&5
24045 fi
24046 rm -f conftest.o conftest.s
24047 fi
24048 fi
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24050 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24051
24052
24053 if test $gcc_cv_as_comdat_group_percent = yes; then
24054 gcc_cv_as_comdat_group_group=no
24055 else
24056 case "${target}" in
24057 # Sun as uses a completely different syntax.
24058 *-*-solaris2*)
24059 case "${target}" in
24060 sparc*-*-solaris2*)
24061 conftest_s='
24062 .group foo,".text%foo",#comdat
24063 .section ".text%foo", #alloc,#execinstr,#progbits
24064 .globl foo
24065 foo:
24066 '
24067 ;;
24068 i?86-*-solaris2* | x86_64-*-solaris2*)
24069 conftest_s='
24070 .group foo,.text%foo,#comdat
24071 .section .text%foo, "ax", @progbits
24072 .globl foo
24073 foo:
24074 '
24075 ;;
24076 esac
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24078 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24079 if ${gcc_cv_as_comdat_group_group+:} false; then :
24080 $as_echo_n "(cached) " >&6
24081 else
24082 gcc_cv_as_comdat_group_group=no
24083 if test x$gcc_cv_as != x; then
24084 $as_echo "$conftest_s" > conftest.s
24085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24087 (eval $ac_try) 2>&5
24088 ac_status=$?
24089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24090 test $ac_status = 0; }; }
24091 then
24092 gcc_cv_as_comdat_group_group=yes
24093 else
24094 echo "configure: failed program was" >&5
24095 cat conftest.s >&5
24096 fi
24097 rm -f conftest.o conftest.s
24098 fi
24099 fi
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24101 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24102
24103
24104 ;;
24105 esac
24106 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24107 gcc_cv_as_comdat_group_group=no
24108 fi
24109 fi
24110 fi
24111 if test x"$ld_is_gold" = xyes; then
24112 comdat_group=yes
24113 elif test $in_tree_ld = yes ; then
24114 comdat_group=no
24115 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 \
24116 && test $in_tree_ld_is_elf = yes; then
24117 comdat_group=yes
24118 fi
24119 elif echo "$ld_ver" | grep GNU > /dev/null; then
24120 comdat_group=yes
24121 if test 0"$ld_date" -lt 20050308; then
24122 if test -n "$ld_date"; then
24123 # If there was date string, but was earlier than 2005-03-08, fail
24124 comdat_group=no
24125 elif test "$ld_vers_major" -lt 2; then
24126 comdat_group=no
24127 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24128 comdat_group=no
24129 fi
24130 fi
24131 else
24132 case "${target}" in
24133 *-*-solaris2.1[1-9]*)
24134 comdat_group=no
24135 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24136 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24137 # version 1.688.
24138 #
24139 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24140 # least ld version 1.2267.
24141 if test "$ld_vers_major" -gt 1; then
24142 comdat_group=yes
24143 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24144 comdat_group=yes
24145 elif test "$ld_vers_minor" -ge 2267; then
24146 comdat_group=yes
24147 fi
24148 ;;
24149 *)
24150 # Assume linkers other than GNU ld don't support COMDAT group.
24151 comdat_group=no
24152 ;;
24153 esac
24154 fi
24155 # Allow overriding the automatic COMDAT group tests above.
24156 # Check whether --enable-comdat was given.
24157 if test "${enable_comdat+set}" = set; then :
24158 enableval=$enable_comdat; comdat_group="$enable_comdat"
24159 fi
24160
24161 if test $comdat_group = no; then
24162 gcc_cv_as_comdat_group=no
24163 gcc_cv_as_comdat_group_percent=no
24164 gcc_cv_as_comdat_group_group=no
24165 fi
24166
24167 cat >>confdefs.h <<_ACEOF
24168 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24169 || test $gcc_cv_as_comdat_group_percent = yes \
24170 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24171 _ACEOF
24172
24173
24174 # Restrict this test to Solaris/x86: other targets define this statically.
24175 case "${target}" in
24176 i?86-*-solaris2* | x86_64-*-solaris2*)
24177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24178 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24179 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24180 hidden_linkonce=yes
24181 else
24182 case "${target}" in
24183 # Full support for hidden thunks in linkonce sections only appeared in
24184 # Solaris 11/OpenSolaris.
24185 *-*-solaris2.1[1-9]*)
24186 hidden_linkonce=yes
24187 ;;
24188 *)
24189 hidden_linkonce=no
24190 ;;
24191 esac
24192 fi
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24194 $as_echo "$hidden_linkonce" >&6; }
24195
24196 cat >>confdefs.h <<_ACEOF
24197 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24198 _ACEOF
24199
24200 ;;
24201 esac
24202
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24204 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24205 if ${gcc_cv_as_is_stmt+:} false; then :
24206 $as_echo_n "(cached) " >&6
24207 else
24208 gcc_cv_as_is_stmt=no
24209 if test $in_tree_gas = yes; then
24210 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24211 then gcc_cv_as_is_stmt=yes
24212 fi
24213 elif test x$gcc_cv_as != x; then
24214 $as_echo ' .text
24215 .file 1 "conf.c"
24216 .loc 1 1 0 is_stmt 1' > conftest.s
24217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24219 (eval $ac_try) 2>&5
24220 ac_status=$?
24221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24222 test $ac_status = 0; }; }
24223 then
24224 gcc_cv_as_is_stmt=yes
24225 else
24226 echo "configure: failed program was" >&5
24227 cat conftest.s >&5
24228 fi
24229 rm -f conftest.o conftest.s
24230 fi
24231 fi
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24233 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24234 if test $gcc_cv_as_is_stmt = yes; then
24235
24236 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24237
24238 fi
24239
24240
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24242 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24243 if ${gcc_cv_as_discriminator+:} false; then :
24244 $as_echo_n "(cached) " >&6
24245 else
24246 gcc_cv_as_discriminator=no
24247 if test $in_tree_gas = yes; then
24248 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24249 then gcc_cv_as_discriminator=yes
24250 fi
24251 elif test x$gcc_cv_as != x; then
24252 $as_echo ' .text
24253 .file 1 "conf.c"
24254 .loc 1 1 0 discriminator 1' > conftest.s
24255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24257 (eval $ac_try) 2>&5
24258 ac_status=$?
24259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24260 test $ac_status = 0; }; }
24261 then
24262 gcc_cv_as_discriminator=yes
24263 else
24264 echo "configure: failed program was" >&5
24265 cat conftest.s >&5
24266 fi
24267 rm -f conftest.o conftest.s
24268 fi
24269 fi
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24271 $as_echo "$gcc_cv_as_discriminator" >&6; }
24272 if test $gcc_cv_as_discriminator = yes; then
24273
24274 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24275
24276 fi
24277
24278
24279 # Thread-local storage - the check is heavily parameterized.
24280 conftest_s=
24281 tls_first_major=
24282 tls_first_minor=
24283 tls_as_opt=
24284 case "$target" in
24285 alpha*-*-*)
24286 conftest_s='
24287 .section ".tdata","awT",@progbits
24288 foo: .long 25
24289 .text
24290 ldq $27,__tls_get_addr($29) !literal!1
24291 lda $16,foo($29) !tlsgd!1
24292 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24293 ldq $27,__tls_get_addr($29) !literal!2
24294 lda $16,foo($29) !tlsldm!2
24295 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24296 ldq $1,foo($29) !gotdtprel
24297 ldah $2,foo($29) !dtprelhi
24298 lda $3,foo($2) !dtprello
24299 lda $4,foo($29) !dtprel
24300 ldq $1,foo($29) !gottprel
24301 ldah $2,foo($29) !tprelhi
24302 lda $3,foo($2) !tprello
24303 lda $4,foo($29) !tprel'
24304 tls_first_major=2
24305 tls_first_minor=13
24306 tls_as_opt=--fatal-warnings
24307 ;;
24308 arc*-*-*)
24309 conftest_s='
24310 add_s r0,r0, @foo@tpoff'
24311 tls_first_major=2
24312 tls_first_minor=23
24313 ;;
24314 cris-*-*|crisv32-*-*)
24315 conftest_s='
24316 .section ".tdata","awT",@progbits
24317 x: .long 25
24318 .text
24319 move.d x:IE,$r10
24320 nop'
24321 tls_first_major=2
24322 tls_first_minor=20
24323 tls_as_opt=--fatal-warnings
24324 ;;
24325 frv*-*-*)
24326 conftest_s='
24327 .section ".tdata","awT",@progbits
24328 x: .long 25
24329 .text
24330 call #gettlsoff(x)'
24331 tls_first_major=2
24332 tls_first_minor=14
24333 ;;
24334 hppa*-*-linux*)
24335 conftest_s='
24336 t1: .reg %r20
24337 t2: .reg %r21
24338 gp: .reg %r19
24339 .section ".tdata","awT",@progbits
24340 foo: .long 25
24341 .text
24342 .align 4
24343 addil LT%foo-$tls_gdidx$,gp
24344 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24345 b __tls_get_addr
24346 nop
24347 addil LT%foo-$tls_ldidx$,gp
24348 b __tls_get_addr
24349 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24350 addil LR%foo-$tls_dtpoff$,%ret0
24351 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24352 mfctl %cr27,%t1
24353 addil LT%foo-$tls_ieoff$,gp
24354 ldw RT%foo-$tls_ieoff$(%r1),%t2
24355 add %t1,%t2,%t3
24356 mfctl %cr27,%t1
24357 addil LR%foo-$tls_leoff$,%t1
24358 ldo RR%foo-$tls_leoff$(%r1),%t2'
24359 tls_first_major=2
24360 tls_first_minor=15
24361 tls_as_opt=--fatal-warnings
24362 ;;
24363 arm*-*-*)
24364 conftest_s='
24365 .section ".tdata","awT",%progbits
24366 foo: .long 25
24367 .text
24368 .word foo(gottpoff)
24369 .word foo(tpoff)
24370 .word foo(tlsgd)
24371 .word foo(tlsldm)
24372 .word foo(tlsldo)'
24373 tls_first_major=2
24374 tls_first_minor=17
24375 ;;
24376 i[34567]86-*-* | x86_64-*-*)
24377 case "$target" in
24378 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24379 on_solaris=yes
24380 ;;
24381 *)
24382 on_solaris=no
24383 ;;
24384 esac
24385 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24386 conftest_s='
24387 .section .tdata,"awt",@progbits'
24388 tls_first_major=0
24389 tls_first_minor=0
24390 tls_section_flag=t
24391
24392 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24393
24394 else
24395 conftest_s='
24396 .section ".tdata","awT",@progbits'
24397 tls_first_major=2
24398 tls_first_minor=14
24399 tls_section_flag=T
24400 tls_as_opt="--fatal-warnings"
24401 fi
24402 case "$target" in
24403 i[34567]86-*-*)
24404 conftest_s="$conftest_s
24405 foo: .long 25
24406 .text
24407 movl %gs:0, %eax
24408 leal foo@tlsgd(,%ebx,1), %eax
24409 leal foo@tlsldm(%ebx), %eax
24410 leal foo@dtpoff(%eax), %edx
24411 movl foo@gottpoff(%ebx), %eax
24412 subl foo@gottpoff(%ebx), %eax
24413 addl foo@gotntpoff(%ebx), %eax
24414 movl foo@indntpoff, %eax
24415 movl \$foo@tpoff, %eax
24416 subl \$foo@tpoff, %eax
24417 leal foo@ntpoff(%ecx), %eax"
24418 ;;
24419 x86_64-*-*)
24420 if test x$on_solaris = xyes; then
24421 case $gas_flag in
24422 yes) tls_as_opt="$tls_as_opt --64" ;;
24423 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24424 esac
24425 fi
24426 conftest_s="$conftest_s
24427 foo: .long 25
24428 .text
24429 movq %fs:0, %rax
24430 leaq foo@tlsgd(%rip), %rdi
24431 leaq foo@tlsld(%rip), %rdi
24432 leaq foo@dtpoff(%rax), %rdx
24433 movq foo@gottpoff(%rip), %rax
24434 movq \$foo@tpoff, %rax"
24435 ;;
24436 esac
24437 ;;
24438 ia64-*-*)
24439 conftest_s='
24440 .section ".tdata","awT",@progbits
24441 foo: data8 25
24442 .text
24443 addl r16 = @ltoff(@dtpmod(foo#)), gp
24444 addl r17 = @ltoff(@dtprel(foo#)), gp
24445 addl r18 = @ltoff(@tprel(foo#)), gp
24446 addl r19 = @dtprel(foo#), gp
24447 adds r21 = @dtprel(foo#), r13
24448 movl r23 = @dtprel(foo#)
24449 addl r20 = @tprel(foo#), gp
24450 adds r22 = @tprel(foo#), r13
24451 movl r24 = @tprel(foo#)'
24452 tls_first_major=2
24453 tls_first_minor=13
24454 tls_as_opt=--fatal-warnings
24455 ;;
24456 microblaze*-*-*)
24457 conftest_s='
24458 .section .tdata,"awT",@progbits
24459 x:
24460 .word 2
24461 .text
24462 addik r5,r20,x@TLSGD
24463 addik r5,r20,x@TLSLDM'
24464 tls_first_major=2
24465 tls_first_minor=20
24466 tls_as_opt='--fatal-warnings'
24467 ;;
24468 mips*-*-*)
24469 conftest_s='
24470 .section .tdata,"awT",@progbits
24471 x:
24472 .word 2
24473 .text
24474 addiu $4, $28, %tlsgd(x)
24475 addiu $4, $28, %tlsldm(x)
24476 lui $4, %dtprel_hi(x)
24477 addiu $4, $4, %dtprel_lo(x)
24478 lw $4, %gottprel(x)($28)
24479 lui $4, %tprel_hi(x)
24480 addiu $4, $4, %tprel_lo(x)'
24481 tls_first_major=2
24482 tls_first_minor=16
24483 tls_as_opt='-32 --fatal-warnings'
24484 ;;
24485 m68k-*-*)
24486 conftest_s='
24487 .section .tdata,"awT",@progbits
24488 x:
24489 .word 2
24490 .text
24491 foo:
24492 move.l x@TLSGD(%a5),%a0
24493 move.l x@TLSLDM(%a5),%a0
24494 move.l x@TLSLDO(%a5),%a0
24495 move.l x@TLSIE(%a5),%a0
24496 move.l x@TLSLE(%a5),%a0'
24497 tls_first_major=2
24498 tls_first_minor=19
24499 tls_as_opt='--fatal-warnings'
24500 ;;
24501 nios2-*-*)
24502 conftest_s='
24503 .section ".tdata","awT",@progbits'
24504 tls_first_major=2
24505 tls_first_minor=23
24506 tls_as_opt="--fatal-warnings"
24507 ;;
24508 aarch64*-*-*)
24509 conftest_s='
24510 .section ".tdata","awT",%progbits
24511 foo: .long 25
24512 .text
24513 adrp x0, :tlsgd:x
24514 add x0, x0, #:tlsgd_lo12:x
24515 bl __tls_get_addr
24516 nop'
24517 tls_first_major=2
24518 tls_first_minor=20
24519 tls_as_opt='--fatal-warnings'
24520 ;;
24521 or1k*-*-*)
24522 conftest_s='
24523 .section ".tdata","awT",@progbits
24524 foo: .long 25
24525 .text
24526 l.movhi r3, tpoffha(foo)
24527 l.add r3, r3, r10
24528 l.lwz r4, tpofflo(foo)(r3)'
24529 tls_first_major=2
24530 tls_first_minor=30
24531 tls_as_opt=--fatal-warnings
24532 ;;
24533 powerpc-ibm-aix*)
24534 conftest_s='
24535 .extern __get_tpointer
24536 .toc
24537 LC..1:
24538 .tc a[TC],a[TL]@le
24539 .csect .text[PR]
24540 .tlstest:
24541 lwz 9,LC..1(2)
24542 bla __get_tpointer
24543 lwzx 3,9,3
24544 .globl a
24545 .csect a[TL],4
24546 a:
24547 .space 4'
24548 tls_first_major=0
24549 tls_first_minor=0
24550 ;;
24551 powerpc64*-*-*)
24552 conftest_s='
24553 .section ".tdata","awT",@progbits
24554 .align 3
24555 ld0: .space 8
24556 ld1: .space 8
24557 x1: .space 8
24558 x2: .space 8
24559 x3: .space 8
24560 .text
24561 addi 3,2,ld0@got@tlsgd
24562 bl .__tls_get_addr
24563 nop
24564 addi 3,2,ld1@toc
24565 bl .__tls_get_addr
24566 nop
24567 addi 3,2,x1@got@tlsld
24568 bl .__tls_get_addr
24569 nop
24570 addi 9,3,x1@dtprel
24571 bl .__tls_get_addr
24572 nop
24573 addis 9,3,x2@dtprel@ha
24574 addi 9,9,x2@dtprel@l
24575 bl .__tls_get_addr
24576 nop
24577 ld 9,x3@got@dtprel(2)
24578 add 9,9,3
24579 bl .__tls_get_addr
24580 nop'
24581 tls_first_major=2
24582 tls_first_minor=14
24583 tls_as_opt="-a64 --fatal-warnings"
24584 ;;
24585 powerpc*-*-*)
24586 conftest_s='
24587 .section ".tdata","awT",@progbits
24588 .align 2
24589 ld0: .space 4
24590 ld1: .space 4
24591 x1: .space 4
24592 x2: .space 4
24593 x3: .space 4
24594 .text
24595 addi 3,31,ld0@got@tlsgd
24596 bl __tls_get_addr
24597 addi 3,31,x1@got@tlsld
24598 bl __tls_get_addr
24599 addi 9,3,x1@dtprel
24600 addis 9,3,x2@dtprel@ha
24601 addi 9,9,x2@dtprel@l
24602 lwz 9,x3@got@tprel(31)
24603 add 9,9,x@tls
24604 addi 9,2,x1@tprel
24605 addis 9,2,x2@tprel@ha
24606 addi 9,9,x2@tprel@l'
24607 tls_first_major=2
24608 tls_first_minor=14
24609 tls_as_opt="-a32 --fatal-warnings"
24610 ;;
24611 riscv*-*-*)
24612 conftest_s='
24613 .section .tdata,"awT",@progbits
24614 x: .word 2
24615 .text
24616 la.tls.gd a0,x
24617 call __tls_get_addr'
24618 tls_first_major=2
24619 tls_first_minor=21
24620 tls_as_opt='--fatal-warnings'
24621 ;;
24622 s390-*-*)
24623 conftest_s='
24624 .section ".tdata","awT",@progbits
24625 foo: .long 25
24626 .text
24627 .long foo@TLSGD
24628 .long foo@TLSLDM
24629 .long foo@DTPOFF
24630 .long foo@NTPOFF
24631 .long foo@GOTNTPOFF
24632 .long foo@INDNTPOFF
24633 l %r1,foo@GOTNTPOFF(%r12)
24634 l %r1,0(%r1):tls_load:foo
24635 bas %r14,0(%r1,%r13):tls_gdcall:foo
24636 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24637 tls_first_major=2
24638 tls_first_minor=14
24639 tls_as_opt="-m31 --fatal-warnings"
24640 ;;
24641 s390x-*-*)
24642 conftest_s='
24643 .section ".tdata","awT",@progbits
24644 foo: .long 25
24645 .text
24646 .quad foo@TLSGD
24647 .quad foo@TLSLDM
24648 .quad foo@DTPOFF
24649 .quad foo@NTPOFF
24650 .quad foo@GOTNTPOFF
24651 lg %r1,foo@GOTNTPOFF(%r12)
24652 larl %r1,foo@INDNTPOFF
24653 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24654 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24655 tls_first_major=2
24656 tls_first_minor=14
24657 tls_as_opt="-m64 -Aesame --fatal-warnings"
24658 ;;
24659 sh-*-* | sh[123456789lbe]*-*-*)
24660 conftest_s='
24661 .section ".tdata","awT",@progbits
24662 foo: .long 25
24663 .text
24664 .long foo@TLSGD
24665 .long foo@TLSLDM
24666 .long foo@DTPOFF
24667 .long foo@GOTTPOFF
24668 .long foo@TPOFF'
24669 tls_first_major=2
24670 tls_first_minor=13
24671 tls_as_opt=--fatal-warnings
24672 ;;
24673 sparc*-*-*)
24674 case "$target" in
24675 sparc*-sun-solaris2.*)
24676 on_solaris=yes
24677 ;;
24678 *)
24679 on_solaris=no
24680 ;;
24681 esac
24682 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24683 conftest_s='
24684 .section ".tdata",#alloc,#write,#tls'
24685 tls_first_major=0
24686 tls_first_minor=0
24687 else
24688 conftest_s='
24689 .section ".tdata","awT",@progbits'
24690 tls_first_major=2
24691 tls_first_minor=14
24692 tls_as_opt="-32 --fatal-warnings"
24693 fi
24694 conftest_s="$conftest_s
24695 foo: .long 25
24696 .text
24697 sethi %tgd_hi22(foo), %o0
24698 add %o0, %tgd_lo10(foo), %o1
24699 add %l7, %o1, %o0, %tgd_add(foo)
24700 call __tls_get_addr, %tgd_call(foo)
24701 sethi %tldm_hi22(foo), %l1
24702 add %l1, %tldm_lo10(foo), %l2
24703 add %l7, %l2, %o0, %tldm_add(foo)
24704 call __tls_get_addr, %tldm_call(foo)
24705 sethi %tldo_hix22(foo), %l3
24706 xor %l3, %tldo_lox10(foo), %l4
24707 add %o0, %l4, %l5, %tldo_add(foo)
24708 sethi %tie_hi22(foo), %o3
24709 add %o3, %tie_lo10(foo), %o3
24710 ld [%l7 + %o3], %o2, %tie_ld(foo)
24711 add %g7, %o2, %o4, %tie_add(foo)
24712 sethi %tle_hix22(foo), %l1
24713 xor %l1, %tle_lox10(foo), %o5
24714 ld [%g7 + %o5], %o1"
24715 ;;
24716 tilepro*-*-*)
24717 conftest_s='
24718 .section ".tdata","awT",@progbits
24719 foo: .long 25
24720 .text
24721 addli r0, zero, tls_gd(foo)
24722 auli r0, zero, tls_gd_ha16(foo)
24723 addli r0, r0, tls_gd_lo16(foo)
24724 jal __tls_get_addr
24725 addli r0, zero, tls_ie(foo)
24726 auli r0, r0, tls_ie_ha16(foo)
24727 addli r0, r0, tls_ie_lo16(foo)'
24728 tls_first_major=2
24729 tls_first_minor=22
24730 tls_as_opt="--fatal-warnings"
24731 ;;
24732 tilegx*-*-*)
24733 conftest_s='
24734 .section ".tdata","awT",@progbits
24735 foo: .long 25
24736 .text
24737 shl16insli r0, zero, hw0_last_tls_gd(foo)
24738 shl16insli r0, zero, hw1_last_tls_gd(foo)
24739 shl16insli r0, r0, hw0_tls_gd(foo)
24740 jal __tls_get_addr
24741 shl16insli r0, zero, hw1_last_tls_ie(foo)
24742 shl16insli r0, r0, hw0_tls_ie(foo)'
24743 tls_first_major=2
24744 tls_first_minor=22
24745 tls_as_opt="--fatal-warnings"
24746 ;;
24747 xtensa*-*-*)
24748 conftest_s='
24749 .section ".tdata","awT",@progbits
24750 foo: .long 25
24751 .text
24752 movi a8, foo@TLSFUNC
24753 movi a10, foo@TLSARG
24754 callx8.tls a8, foo@TLSCALL'
24755 tls_first_major=2
24756 tls_first_minor=19
24757 ;;
24758 esac
24759 set_have_as_tls=no
24760 if test "x$enable_tls" = xno ; then
24761 : # TLS explicitly disabled.
24762 elif test "x$enable_tls" = xyes ; then
24763 set_have_as_tls=yes # TLS explicitly enabled.
24764 elif test -z "$tls_first_major"; then
24765 : # If we don't have a check, assume no support.
24766 else
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24768 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24769 if ${gcc_cv_as_tls+:} false; then :
24770 $as_echo_n "(cached) " >&6
24771 else
24772 gcc_cv_as_tls=no
24773 if test $in_tree_gas = yes; then
24774 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24775 then gcc_cv_as_tls=yes
24776 fi
24777 elif test x$gcc_cv_as != x; then
24778 $as_echo "$conftest_s" > conftest.s
24779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24785 then
24786 gcc_cv_as_tls=yes
24787 else
24788 echo "configure: failed program was" >&5
24789 cat conftest.s >&5
24790 fi
24791 rm -f conftest.o conftest.s
24792 fi
24793 fi
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24795 $as_echo "$gcc_cv_as_tls" >&6; }
24796 if test $gcc_cv_as_tls = yes; then
24797 set_have_as_tls=yes
24798 fi
24799
24800 fi
24801 if test $set_have_as_tls = yes ; then
24802
24803 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24804
24805 fi
24806
24807 # Target-specific assembler checks.
24808
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24810 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24811 gcc_cv_ld_static_dynamic=no
24812 gcc_cv_ld_static_option='-Bstatic'
24813 gcc_cv_ld_dynamic_option='-Bdynamic'
24814 if test $in_tree_ld = yes ; then
24815 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
24816 gcc_cv_ld_static_dynamic=yes
24817 fi
24818 elif test x$gcc_cv_ld != x; then
24819 # Check if linker supports -Bstatic/-Bdynamic option
24820 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24821 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24822 gcc_cv_ld_static_dynamic=yes
24823 else
24824 case "$target" in
24825 # AIX ld uses -b flags
24826 *-*-aix4.[23]* | *-*-aix[5-9]*)
24827 gcc_cv_ld_static_dynamic=yes
24828 gcc_cv_ld_static_option="-bstatic"
24829 gcc_cv_ld_dynamic_option="-bdynamic"
24830 ;;
24831 # HP-UX ld uses -a flags to select between shared and archive.
24832 *-*-hpux*)
24833 if test x"$gnu_ld" = xno; then
24834 gcc_cv_ld_static_dynamic=yes
24835 gcc_cv_ld_static_option="-aarchive_shared"
24836 gcc_cv_ld_dynamic_option="-adefault"
24837 fi
24838 ;;
24839 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24840 *-*-solaris2*)
24841 gcc_cv_ld_static_dynamic=yes
24842 ;;
24843 esac
24844 fi
24845 fi
24846 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24847
24848 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24849
24850
24851 cat >>confdefs.h <<_ACEOF
24852 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24853 _ACEOF
24854
24855
24856 cat >>confdefs.h <<_ACEOF
24857 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24858 _ACEOF
24859
24860 fi
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24862 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24863
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24865 $as_echo_n "checking linker --version-script option... " >&6; }
24866 gcc_cv_ld_version_script=no
24867 ld_version_script_option=''
24868 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24869 gcc_cv_ld_version_script=yes
24870 ld_version_script_option='--version-script'
24871 elif test x$gcc_cv_ld != x; then
24872 case "$target" in
24873 # Solaris 2 ld always supports -M. It also supports a subset of
24874 # --version-script since Solaris 11.4, but requires
24875 # -z gnu-version-script-compat to activate.
24876 *-*-solaris2*)
24877 gcc_cv_ld_version_script=yes
24878 ld_version_script_option='-M'
24879 ;;
24880 esac
24881 fi
24882 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24884 $as_echo "$gcc_cv_ld_version_script" >&6; }
24885
24886
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24888 $as_echo_n "checking linker soname option... " >&6; }
24889 gcc_cv_ld_soname=no
24890 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24891 gcc_cv_ld_soname=yes
24892 ld_soname_option='-soname'
24893 elif test x$gcc_cv_ld != x; then
24894 case "$target" in
24895 *-*-darwin*)
24896 gcc_cv_ld_soname=yes
24897 ld_soname_option='-install_name'
24898 ;;
24899 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24900 # ld compatiblity since some Solaris 10 update.
24901 *-*-solaris2*)
24902 gcc_cv_ld_soname=yes
24903 ld_soname_option='-h'
24904 ;;
24905 esac
24906 fi
24907 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24909 $as_echo "$gcc_cv_ld_soname" >&6; }
24910
24911
24912 if test x"$demangler_in_ld" = xyes; then
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24914 $as_echo_n "checking linker --demangle support... " >&6; }
24915 gcc_cv_ld_demangle=no
24916 if test $in_tree_ld = yes; then
24917 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 \
24918 gcc_cv_ld_demangle=yes
24919 fi
24920 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24921 # Check if the GNU linker supports --demangle option
24922 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24923 gcc_cv_ld_demangle=yes
24924 fi
24925 fi
24926 if test x"$gcc_cv_ld_demangle" = xyes; then
24927
24928 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24929
24930 fi
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24932 $as_echo "$gcc_cv_ld_demangle" >&6; }
24933 fi
24934
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24936 $as_echo_n "checking linker plugin support... " >&6; }
24937 gcc_cv_lto_plugin=0
24938 if test -f liblto_plugin.la; then
24939 save_ld_ver="$ld_ver"
24940 save_ld_vers_major="$ld_vers_major"
24941 save_ld_vers_minor="$ld_vers_minor"
24942 save_ld_is_gold="$ld_is_gold"
24943
24944 ld_is_gold=no
24945
24946 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24947 ld_ver="GNU ld"
24948 # FIXME: ld_is_gold?
24949 ld_vers_major="$gcc_cv_gld_major_version"
24950 ld_vers_minor="$gcc_cv_gld_minor_version"
24951 else
24952 # Determine plugin linker version.
24953 # FIXME: Partial duplicate from above, generalize.
24954 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24955 if echo "$ld_ver" | grep GNU > /dev/null; then
24956 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24957 ld_is_gold=yes
24958 ld_vers=`echo $ld_ver | sed -n \
24959 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24960 else
24961 ld_vers=`echo $ld_ver | sed -n \
24962 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24963 fi
24964 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24965 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24966 fi
24967 fi
24968
24969 # Determine plugin support.
24970 if echo "$ld_ver" | grep GNU > /dev/null; then
24971 # Require GNU ld or gold 2.21+ for plugin support by default.
24972 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24973 gcc_cv_lto_plugin=2
24974 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24975 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24976 gcc_cv_lto_plugin=1
24977 fi
24978 fi
24979
24980 ld_ver="$save_ld_ver"
24981 ld_vers_major="$save_ld_vers_major"
24982 ld_vers_minor="$save_ld_vers_minor"
24983 ld_is_gold="$save_ld_is_gold"
24984 fi
24985
24986 cat >>confdefs.h <<_ACEOF
24987 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24988 _ACEOF
24989
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24991 $as_echo "$gcc_cv_lto_plugin" >&6; }
24992
24993 # Target OS-specific assembler checks.
24994
24995 case "$target_os" in
24996 darwin*)
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24998 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24999 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25000 $as_echo_n "(cached) " >&6
25001 else
25002 gcc_cv_as_mmacosx_version_min=no
25003 if test x$gcc_cv_as != x; then
25004 $as_echo '.text' > conftest.s
25005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25007 (eval $ac_try) 2>&5
25008 ac_status=$?
25009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25010 test $ac_status = 0; }; }
25011 then
25012 gcc_cv_as_mmacosx_version_min=yes
25013 else
25014 echo "configure: failed program was" >&5
25015 cat conftest.s >&5
25016 fi
25017 rm -f conftest.o conftest.s
25018 fi
25019 fi
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25021 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25022 if test $gcc_cv_as_mmacosx_version_min = yes; then
25023
25024 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25025
25026 fi
25027
25028 ;;
25029 esac
25030
25031 # Target CPU-specific assembler checks.
25032
25033 case "$target" in
25034 aarch64*-*-*)
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25036 $as_echo_n "checking assembler for -mabi option... " >&6; }
25037 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25038 $as_echo_n "(cached) " >&6
25039 else
25040 gcc_cv_as_aarch64_mabi=no
25041 if test x$gcc_cv_as != x; then
25042 $as_echo '.text' > conftest.s
25043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25045 (eval $ac_try) 2>&5
25046 ac_status=$?
25047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25048 test $ac_status = 0; }; }
25049 then
25050 gcc_cv_as_aarch64_mabi=yes
25051 else
25052 echo "configure: failed program was" >&5
25053 cat conftest.s >&5
25054 fi
25055 rm -f conftest.o conftest.s
25056 fi
25057 fi
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25059 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25060
25061
25062 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25063
25064 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25065
25066 else
25067 if test x$with_abi = xilp32; then
25068 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25069 Upgrade the Assembler." "$LINENO" 5
25070 fi
25071 if test x"$with_multilib_list" = xdefault; then
25072 TM_MULTILIB_CONFIG=lp64
25073 else
25074 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25075 for aarch64_multilib in ${aarch64_multilibs}; do
25076 case ${aarch64_multilib} in
25077 ilp32)
25078 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25079 Upgrade the Assembler." "$LINENO" 5
25080 ;;
25081 *)
25082 ;;
25083 esac
25084 done
25085 fi
25086 fi
25087 # Check if we have binutils support for relocations types needed by -fpic
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25089 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25090 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25091 $as_echo_n "(cached) " >&6
25092 else
25093 gcc_cv_as_aarch64_picreloc=no
25094 if test x$gcc_cv_as != x; then
25095 $as_echo '
25096 .text
25097 ldr x0, [x2, #:gotpage_lo15:globalsym]
25098 ' > conftest.s
25099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_aarch64_picreloc=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_aarch64_picreloc" >&5
25115 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25116 if test $gcc_cv_as_aarch64_picreloc = yes; then
25117
25118 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25119
25120 fi
25121
25122 # Enable Branch Target Identification Mechanism and Return Address
25123 # Signing by default.
25124 # Check whether --enable-standard-branch-protection was given.
25125 if test "${enable_standard_branch_protection+set}" = set; then :
25126 enableval=$enable_standard_branch_protection;
25127 case $enableval in
25128 yes)
25129 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25130 ;;
25131 no)
25132 ;;
25133 *)
25134 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25135 Valid choices are 'yes' and 'no'." "$LINENO" 5
25136 ;;
25137 esac
25138
25139 fi
25140
25141 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25142 # Check whether --enable-fix-cortex-a53-835769 was given.
25143 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25144 enableval=$enable_fix_cortex_a53_835769;
25145 case $enableval in
25146 yes)
25147 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25148 ;;
25149 no)
25150 ;;
25151 *)
25152 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25153 Valid choices are 'yes' and 'no'." "$LINENO" 5
25154 ;;
25155
25156 esac
25157
25158 fi
25159
25160 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25161 # Check whether --enable-fix-cortex-a53-843419 was given.
25162 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25163 enableval=$enable_fix_cortex_a53_843419;
25164 case $enableval in
25165 yes)
25166 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25167 ;;
25168 no)
25169 ;;
25170 *)
25171 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25172 Valid choices are 'yes' and 'no'." "$LINENO" 5
25173 ;;
25174
25175 esac
25176
25177 fi
25178
25179 ;;
25180
25181 # All TARGET_ABI_OSF targets.
25182 alpha*-*-linux* | alpha*-*-*bsd*)
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25184 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25185 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25186 $as_echo_n "(cached) " >&6
25187 else
25188 gcc_cv_as_alpha_explicit_relocs=no
25189 if test $in_tree_gas = yes; then
25190 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25191 then gcc_cv_as_alpha_explicit_relocs=yes
25192 fi
25193 elif test x$gcc_cv_as != x; then
25194 $as_echo ' .set nomacro
25195 .text
25196 extbl $3, $2, $3 !lituse_bytoff!1
25197 ldq $2, a($29) !literal!1
25198 ldq $4, b($29) !literal!2
25199 ldq_u $3, 0($2) !lituse_base!1
25200 ldq $27, f($29) !literal!5
25201 jsr $26, ($27), f !lituse_jsr!5
25202 ldah $29, 0($26) !gpdisp!3
25203 lda $0, c($29) !gprel
25204 ldah $1, d($29) !gprelhigh
25205 lda $1, d($1) !gprellow
25206 lda $29, 0($29) !gpdisp!3' > conftest.s
25207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25209 (eval $ac_try) 2>&5
25210 ac_status=$?
25211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25212 test $ac_status = 0; }; }
25213 then
25214 gcc_cv_as_alpha_explicit_relocs=yes
25215 else
25216 echo "configure: failed program was" >&5
25217 cat conftest.s >&5
25218 fi
25219 rm -f conftest.o conftest.s
25220 fi
25221 fi
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25223 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25224 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25225
25226 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25227
25228 fi
25229
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25231 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25232 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25233 $as_echo_n "(cached) " >&6
25234 else
25235 gcc_cv_as_alpha_jsrdirect_relocs=no
25236 if test $in_tree_gas = yes; then
25237 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25238 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25239 fi
25240 elif test x$gcc_cv_as != x; then
25241 $as_echo ' .set nomacro
25242 .text
25243 ldq $27, a($29) !literal!1
25244 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247 (eval $ac_try) 2>&5
25248 ac_status=$?
25249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }; }
25251 then
25252 gcc_cv_as_alpha_jsrdirect_relocs=yes
25253 else
25254 echo "configure: failed program was" >&5
25255 cat conftest.s >&5
25256 fi
25257 rm -f conftest.o conftest.s
25258 fi
25259 fi
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25261 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25262 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25263
25264 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25265
25266 fi
25267
25268 ;;
25269
25270 avr-*-*)
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25272 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25273 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25274 $as_echo_n "(cached) " >&6
25275 else
25276 gcc_cv_as_avr_mlink_relax=no
25277 if test x$gcc_cv_as != x; then
25278 $as_echo '.text' > conftest.s
25279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25281 (eval $ac_try) 2>&5
25282 ac_status=$?
25283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25284 test $ac_status = 0; }; }
25285 then
25286 gcc_cv_as_avr_mlink_relax=yes
25287 else
25288 echo "configure: failed program was" >&5
25289 cat conftest.s >&5
25290 fi
25291 rm -f conftest.o conftest.s
25292 fi
25293 fi
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25295 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25296 if test $gcc_cv_as_avr_mlink_relax = yes; then
25297
25298 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25299
25300 fi
25301
25302
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25304 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25305 if ${gcc_cv_as_avr_mrmw+:} false; then :
25306 $as_echo_n "(cached) " >&6
25307 else
25308 gcc_cv_as_avr_mrmw=no
25309 if test x$gcc_cv_as != x; then
25310 $as_echo '.text' > conftest.s
25311 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25313 (eval $ac_try) 2>&5
25314 ac_status=$?
25315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25316 test $ac_status = 0; }; }
25317 then
25318 gcc_cv_as_avr_mrmw=yes
25319 else
25320 echo "configure: failed program was" >&5
25321 cat conftest.s >&5
25322 fi
25323 rm -f conftest.o conftest.s
25324 fi
25325 fi
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25327 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25328 if test $gcc_cv_as_avr_mrmw = yes; then
25329
25330 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25331
25332 fi
25333
25334
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25336 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25337 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25338 $as_echo_n "(cached) " >&6
25339 else
25340 gcc_cv_as_avr_mgccisr=no
25341 if test x$gcc_cv_as != x; then
25342 $as_echo '.text
25343 __gcc_isr 1
25344 __gcc_isr 2
25345 __gcc_isr 0,r24
25346 ' > conftest.s
25347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25349 (eval $ac_try) 2>&5
25350 ac_status=$?
25351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25352 test $ac_status = 0; }; }
25353 then
25354 gcc_cv_as_avr_mgccisr=yes
25355 else
25356 echo "configure: failed program was" >&5
25357 cat conftest.s >&5
25358 fi
25359 rm -f conftest.o conftest.s
25360 fi
25361 fi
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25363 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25364 if test $gcc_cv_as_avr_mgccisr = yes; then
25365
25366 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25367
25368 fi
25369
25370
25371 # Check how default linker description file implements .rodata for
25372 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25373 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25375 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25376 cat > conftest.s <<EOF
25377 .section .rodata,"a",@progbits
25378 .global xxvaryy
25379 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25380 xxvaryy:
25381 .word 1
25382 EOF
25383 rm -f conftest.nm
25384 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25386 (eval $ac_try) 2>&5
25387 ac_status=$?
25388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25389 test $ac_status = 0; }; }
25390 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25392 (eval $ac_try) 2>&5
25393 ac_status=$?
25394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25395 test $ac_status = 0; }; }
25396 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25399 ac_status=$?
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; }
25402 if test -s conftest.nm
25403 then
25404 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25406 $as_echo "yes" >&6; }
25407
25408 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25409
25410 else
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25412 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25413 echo "$as_me: nm output was" >&5
25414 cat conftest.nm >&5
25415 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25417 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25418 fi
25419 else
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25421 $as_echo "test failed" >&6; }
25422 echo "$as_me: failed program was" >&5
25423 cat conftest.s >&5
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25425 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25426 fi
25427 rm -f conftest.s conftest.o conftest.elf conftest.nm
25428 ;;
25429
25430 cris-*-*)
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25432 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25433 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25434 $as_echo_n "(cached) " >&6
25435 else
25436 gcc_cv_as_cris_no_mul_bug=no
25437 if test $in_tree_gas = yes; then
25438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25439 then gcc_cv_as_cris_no_mul_bug=yes
25440 fi
25441 elif test x$gcc_cv_as != x; then
25442 $as_echo '.text' > conftest.s
25443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25445 (eval $ac_try) 2>&5
25446 ac_status=$?
25447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25448 test $ac_status = 0; }; }
25449 then
25450 gcc_cv_as_cris_no_mul_bug=yes
25451 else
25452 echo "configure: failed program was" >&5
25453 cat conftest.s >&5
25454 fi
25455 rm -f conftest.o conftest.s
25456 fi
25457 fi
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25459 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25460 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25461
25462 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25463
25464 fi
25465
25466 ;;
25467
25468 sparc*-*-*)
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25470 $as_echo_n "checking assembler for -relax option... " >&6; }
25471 if ${gcc_cv_as_sparc_relax+:} false; then :
25472 $as_echo_n "(cached) " >&6
25473 else
25474 gcc_cv_as_sparc_relax=no
25475 if test x$gcc_cv_as != x; then
25476 $as_echo '.text' > conftest.s
25477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25479 (eval $ac_try) 2>&5
25480 ac_status=$?
25481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25482 test $ac_status = 0; }; }
25483 then
25484 gcc_cv_as_sparc_relax=yes
25485 else
25486 echo "configure: failed program was" >&5
25487 cat conftest.s >&5
25488 fi
25489 rm -f conftest.o conftest.s
25490 fi
25491 fi
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25493 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25494 if test $gcc_cv_as_sparc_relax = yes; then
25495
25496 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25497
25498 fi
25499
25500
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25502 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25503 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25504 $as_echo_n "(cached) " >&6
25505 else
25506 gcc_cv_as_sparc_gotdata_op=no
25507 if test x$gcc_cv_as != x; then
25508 $as_echo '.text
25509 .align 4
25510 foo:
25511 nop
25512 bar:
25513 sethi %gdop_hix22(foo), %g1
25514 xor %g1, %gdop_lox10(foo), %g1
25515 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25516 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25521 test $ac_status = 0; }; }
25522 then
25523 if test x$gcc_cv_ld != x \
25524 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25525 if test x$gcc_cv_objdump != x; then
25526 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25527 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25528 gcc_cv_as_sparc_gotdata_op=no
25529 else
25530 gcc_cv_as_sparc_gotdata_op=yes
25531 fi
25532 fi
25533 fi
25534 rm -f conftest
25535 else
25536 echo "configure: failed program was" >&5
25537 cat conftest.s >&5
25538 fi
25539 rm -f conftest.o conftest.s
25540 fi
25541 fi
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25543 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25544 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25545
25546 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25547
25548 fi
25549
25550
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25552 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25553 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25554 $as_echo_n "(cached) " >&6
25555 else
25556 gcc_cv_as_sparc_ua_pcrel=no
25557 if test x$gcc_cv_as != x; then
25558 $as_echo '.text
25559 foo:
25560 nop
25561 .data
25562 .align 4
25563 .byte 0
25564 .uaword %r_disp32(foo)' > conftest.s
25565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25567 (eval $ac_try) 2>&5
25568 ac_status=$?
25569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570 test $ac_status = 0; }; }
25571 then
25572 if test x$gcc_cv_ld != x \
25573 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25574 gcc_cv_as_sparc_ua_pcrel=yes
25575 fi
25576 rm -f conftest
25577 else
25578 echo "configure: failed program was" >&5
25579 cat conftest.s >&5
25580 fi
25581 rm -f conftest.o conftest.s
25582 fi
25583 fi
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25585 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25586 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25587
25588 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25589
25590
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25592 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25593 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25594 $as_echo_n "(cached) " >&6
25595 else
25596 gcc_cv_as_sparc_ua_pcrel_hidden=no
25597 if test x$gcc_cv_as != x; then
25598 $as_echo '.data
25599 .align 4
25600 .byte 0x31
25601 .uaword %r_disp32(foo)
25602 .byte 0x32, 0x33, 0x34
25603 .global foo
25604 .hidden foo
25605 foo:
25606 .skip 4' > conftest.s
25607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25615 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25616 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25617 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25618 if $gcc_cv_objdump -R conftest 2> /dev/null \
25619 | grep 'DISP32' > /dev/null 2>&1; then
25620 :
25621 else
25622 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25623 fi
25624 fi
25625 rm -f conftest
25626 else
25627 echo "configure: failed program was" >&5
25628 cat conftest.s >&5
25629 fi
25630 rm -f conftest.o conftest.s
25631 fi
25632 fi
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25634 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25635 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25636
25637 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25638
25639 fi
25640
25641
25642 fi
25643 # unaligned pcrel relocs
25644
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25646 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25647 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25648 $as_echo_n "(cached) " >&6
25649 else
25650 gcc_cv_as_sparc_offsetable_lo10=no
25651 if test x$gcc_cv_as != x; then
25652 $as_echo '.text
25653 or %g1, %lo(ab) + 12, %g1
25654 or %g1, %lo(ab + 12), %g1' > conftest.s
25655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25657 (eval $ac_try) 2>&5
25658 ac_status=$?
25659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25660 test $ac_status = 0; }; }
25661 then
25662 if test x$gcc_cv_objdump != x \
25663 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25664 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25665 gcc_cv_as_sparc_offsetable_lo10=yes
25666 fi
25667 else
25668 echo "configure: failed program was" >&5
25669 cat conftest.s >&5
25670 fi
25671 rm -f conftest.o conftest.s
25672 fi
25673 fi
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25675 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25676 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25677
25678 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25679
25680 fi
25681
25682
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25684 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25685 if ${gcc_cv_as_sparc_fmaf+:} false; then :
25686 $as_echo_n "(cached) " >&6
25687 else
25688 gcc_cv_as_sparc_fmaf=no
25689 if test x$gcc_cv_as != x; then
25690 $as_echo '.text
25691 .register %g2, #scratch
25692 .register %g3, #scratch
25693 .align 4
25694 fmaddd %f0, %f2, %f4, %f6
25695 addxccc %g1, %g2, %g3
25696 fsrl32 %f2, %f4, %f8
25697 fnaddd %f10, %f12, %f14' > conftest.s
25698 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25700 (eval $ac_try) 2>&5
25701 ac_status=$?
25702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25703 test $ac_status = 0; }; }
25704 then
25705 gcc_cv_as_sparc_fmaf=yes
25706 else
25707 echo "configure: failed program was" >&5
25708 cat conftest.s >&5
25709 fi
25710 rm -f conftest.o conftest.s
25711 fi
25712 fi
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25714 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25715 if test $gcc_cv_as_sparc_fmaf = yes; then
25716
25717 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25718
25719 fi
25720
25721
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25723 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25724 if ${gcc_cv_as_sparc_sparc4+:} false; then :
25725 $as_echo_n "(cached) " >&6
25726 else
25727 gcc_cv_as_sparc_sparc4=no
25728 if test x$gcc_cv_as != x; then
25729 $as_echo '.text
25730 .register %g2, #scratch
25731 .register %g3, #scratch
25732 .align 4
25733 cxbe %g2, %g3, 1f
25734 1: cwbneg %g2, %g3, 1f
25735 1: sha1
25736 md5
25737 aes_kexpand0 %f4, %f6, %f8
25738 des_round %f38, %f40, %f42, %f44
25739 camellia_f %f54, %f56, %f58, %f60
25740 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25743 (eval $ac_try) 2>&5
25744 ac_status=$?
25745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25746 test $ac_status = 0; }; }
25747 then
25748 gcc_cv_as_sparc_sparc4=yes
25749 else
25750 echo "configure: failed program was" >&5
25751 cat conftest.s >&5
25752 fi
25753 rm -f conftest.o conftest.s
25754 fi
25755 fi
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25757 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25758 if test $gcc_cv_as_sparc_sparc4 = yes; then
25759
25760 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25761
25762 fi
25763
25764
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25766 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25767 if ${gcc_cv_as_sparc_sparc5+:} false; then :
25768 $as_echo_n "(cached) " >&6
25769 else
25770 gcc_cv_as_sparc_sparc5=no
25771 if test x$gcc_cv_as != x; then
25772 $as_echo '.text
25773 .register %g2, #scratch
25774 .register %g3, #scratch
25775 .align 4
25776 subxc %g1, %g2, %g3
25777 fpadd8 %f0, %f2, %f4' > conftest.s
25778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25783 test $ac_status = 0; }; }
25784 then
25785 gcc_cv_as_sparc_sparc5=yes
25786 else
25787 echo "configure: failed program was" >&5
25788 cat conftest.s >&5
25789 fi
25790 rm -f conftest.o conftest.s
25791 fi
25792 fi
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25794 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25795 if test $gcc_cv_as_sparc_sparc5 = yes; then
25796
25797 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25798
25799 fi
25800
25801
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25803 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25804 if ${gcc_cv_as_sparc_sparc6+:} false; then :
25805 $as_echo_n "(cached) " >&6
25806 else
25807 gcc_cv_as_sparc_sparc6=no
25808 if test x$gcc_cv_as != x; then
25809 $as_echo '.text
25810 .register %g2, #scratch
25811 .register %g3, #scratch
25812 .align 4
25813 rd %entropy, %g1
25814 fpsll64x %f0, %f2, %f4' > conftest.s
25815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25817 (eval $ac_try) 2>&5
25818 ac_status=$?
25819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25820 test $ac_status = 0; }; }
25821 then
25822 gcc_cv_as_sparc_sparc6=yes
25823 else
25824 echo "configure: failed program was" >&5
25825 cat conftest.s >&5
25826 fi
25827 rm -f conftest.o conftest.s
25828 fi
25829 fi
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25831 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25832 if test $gcc_cv_as_sparc_sparc6 = yes; then
25833
25834 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25835
25836 fi
25837
25838
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25840 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25841 if ${gcc_cv_as_sparc_leon+:} false; then :
25842 $as_echo_n "(cached) " >&6
25843 else
25844 gcc_cv_as_sparc_leon=no
25845 if test x$gcc_cv_as != x; then
25846 $as_echo '.text
25847 .register %g2, #scratch
25848 .register %g3, #scratch
25849 .align 4
25850 smac %g2, %g3, %g1
25851 umac %g2, %g3, %g1
25852 casa [%g2] 0xb, %g3, %g1' > conftest.s
25853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25858 test $ac_status = 0; }; }
25859 then
25860 gcc_cv_as_sparc_leon=yes
25861 else
25862 echo "configure: failed program was" >&5
25863 cat conftest.s >&5
25864 fi
25865 rm -f conftest.o conftest.s
25866 fi
25867 fi
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25869 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25870 if test $gcc_cv_as_sparc_leon = yes; then
25871
25872 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25873
25874 fi
25875
25876 ;;
25877
25878 i[34567]86-*-* | x86_64-*-*)
25879 case $target_os in
25880 cygwin*)
25881 # Full C++ conformance when using a shared libstdc++-v3 requires some
25882 # support from the Cygwin DLL, which in more recent versions exports
25883 # wrappers to aid in interposing and redirecting operators new, delete,
25884 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25885 # are configuring for a version of Cygwin that exports the wrappers.
25886 if test x$host = x$target && test x$host_cpu = xi686; then
25887 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25888 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
25889 gcc_ac_cygwin_dll_wrappers=yes
25890 else
25891 gcc_ac_cygwin_dll_wrappers=no
25892 fi
25893
25894 else
25895 # Can't check presence of libc functions during cross-compile, so
25896 # we just have to assume we're building for an up-to-date target.
25897 gcc_ac_cygwin_dll_wrappers=yes
25898 fi
25899
25900 cat >>confdefs.h <<_ACEOF
25901 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25902 _ACEOF
25903
25904 esac
25905 case $target_os in
25906 cygwin* | pe | mingw32*)
25907 # Recent binutils allows the three-operand form of ".comm" on PE. This
25908 # definition is used unconditionally to initialise the default state of
25909 # the target option variable that governs usage of the feature.
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25911 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25912 if ${gcc_cv_as_comm_has_align+:} false; then :
25913 $as_echo_n "(cached) " >&6
25914 else
25915 gcc_cv_as_comm_has_align=no
25916 if test $in_tree_gas = yes; then
25917 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25918 then gcc_cv_as_comm_has_align=yes
25919 fi
25920 elif test x$gcc_cv_as != x; then
25921 $as_echo '.comm foo,1,32' > conftest.s
25922 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25924 (eval $ac_try) 2>&5
25925 ac_status=$?
25926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25927 test $ac_status = 0; }; }
25928 then
25929 gcc_cv_as_comm_has_align=yes
25930 else
25931 echo "configure: failed program was" >&5
25932 cat conftest.s >&5
25933 fi
25934 rm -f conftest.o conftest.s
25935 fi
25936 fi
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25938 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25939
25940
25941
25942 cat >>confdefs.h <<_ACEOF
25943 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25944 _ACEOF
25945
25946 # Used for DWARF 2 in PE
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25948 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25949 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
25950 $as_echo_n "(cached) " >&6
25951 else
25952 gcc_cv_as_ix86_pe_secrel32=no
25953 if test $in_tree_gas = yes; then
25954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25955 then gcc_cv_as_ix86_pe_secrel32=yes
25956 fi
25957 elif test x$gcc_cv_as != x; then
25958 $as_echo '.text
25959 foo: nop
25960 .data
25961 .secrel32 foo' > conftest.s
25962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25967 test $ac_status = 0; }; }
25968 then
25969 if test x$gcc_cv_ld != x \
25970 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25971 gcc_cv_as_ix86_pe_secrel32=yes
25972 fi
25973 rm -f conftest
25974 else
25975 echo "configure: failed program was" >&5
25976 cat conftest.s >&5
25977 fi
25978 rm -f conftest.o conftest.s
25979 fi
25980 fi
25981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25982 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25983 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25984
25985 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25986
25987 fi
25988
25989 # Test if the assembler supports the extended form of the .section
25990 # directive that specifies section alignment. LTO support uses this,
25991 # but normally only after installation, so we warn but don't fail the
25992 # configure if LTO is enabled but the assembler does not support it.
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25994 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25995 if ${gcc_cv_as_section_has_align+:} false; then :
25996 $as_echo_n "(cached) " >&6
25997 else
25998 gcc_cv_as_section_has_align=no
25999 if test $in_tree_gas = yes; then
26000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26001 then gcc_cv_as_section_has_align=yes
26002 fi
26003 elif test x$gcc_cv_as != x; then
26004 $as_echo '.section lto_test,"dr0"' > conftest.s
26005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26007 (eval $ac_try) 2>&5
26008 ac_status=$?
26009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26010 test $ac_status = 0; }; }
26011 then
26012 gcc_cv_as_section_has_align=yes
26013 else
26014 echo "configure: failed program was" >&5
26015 cat conftest.s >&5
26016 fi
26017 rm -f conftest.o conftest.s
26018 fi
26019 fi
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26021 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26022
26023
26024 if test x$gcc_cv_as_section_has_align != xyes; then
26025 case ",$enable_languages," in
26026 *,lto,*)
26027 { $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
26028 $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;}
26029 ;;
26030 esac
26031 fi
26032 ;;
26033 esac
26034
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26036 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26037 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26038 $as_echo_n "(cached) " >&6
26039 else
26040 gcc_cv_as_ix86_xbrace_comment=no
26041 if test x$gcc_cv_as != x; then
26042 $as_echo '.text' > conftest.s
26043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26045 (eval $ac_try) 2>&5
26046 ac_status=$?
26047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26048 test $ac_status = 0; }; }
26049 then
26050 gcc_cv_as_ix86_xbrace_comment=yes
26051 else
26052 echo "configure: failed program was" >&5
26053 cat conftest.s >&5
26054 fi
26055 rm -f conftest.o conftest.s
26056 fi
26057 fi
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26059 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26060 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26061
26062 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26063
26064 fi
26065
26066
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26068 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26069 if ${gcc_cv_as_ix86_filds+:} false; then :
26070 $as_echo_n "(cached) " >&6
26071 else
26072 gcc_cv_as_ix86_filds=no
26073 if test x$gcc_cv_as != x; then
26074 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26077 (eval $ac_try) 2>&5
26078 ac_status=$?
26079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26080 test $ac_status = 0; }; }
26081 then
26082 gcc_cv_as_ix86_filds=yes
26083 else
26084 echo "configure: failed program was" >&5
26085 cat conftest.s >&5
26086 fi
26087 rm -f conftest.o conftest.s
26088 fi
26089 fi
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26091 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26092 if test $gcc_cv_as_ix86_filds = yes; then
26093
26094 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26095
26096 fi
26097
26098
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26100 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26101 if ${gcc_cv_as_ix86_fildq+:} false; then :
26102 $as_echo_n "(cached) " >&6
26103 else
26104 gcc_cv_as_ix86_fildq=no
26105 if test x$gcc_cv_as != x; then
26106 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26107 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26109 (eval $ac_try) 2>&5
26110 ac_status=$?
26111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26112 test $ac_status = 0; }; }
26113 then
26114 gcc_cv_as_ix86_fildq=yes
26115 else
26116 echo "configure: failed program was" >&5
26117 cat conftest.s >&5
26118 fi
26119 rm -f conftest.o conftest.s
26120 fi
26121 fi
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26123 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26124 if test $gcc_cv_as_ix86_fildq = yes; then
26125
26126 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26127
26128 fi
26129
26130
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26132 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26133 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26134 $as_echo_n "(cached) " >&6
26135 else
26136 gcc_cv_as_ix86_cmov_sun_syntax=no
26137 if test x$gcc_cv_as != x; then
26138 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26139 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26141 (eval $ac_try) 2>&5
26142 ac_status=$?
26143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26144 test $ac_status = 0; }; }
26145 then
26146 gcc_cv_as_ix86_cmov_sun_syntax=yes
26147 else
26148 echo "configure: failed program was" >&5
26149 cat conftest.s >&5
26150 fi
26151 rm -f conftest.o conftest.s
26152 fi
26153 fi
26154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26155 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26156 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26157
26158 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26159
26160 fi
26161
26162
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26164 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26165 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26166 $as_echo_n "(cached) " >&6
26167 else
26168 gcc_cv_as_ix86_ffreep=no
26169 if test x$gcc_cv_as != x; then
26170 $as_echo 'ffreep %st(1)' > conftest.s
26171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26173 (eval $ac_try) 2>&5
26174 ac_status=$?
26175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26176 test $ac_status = 0; }; }
26177 then
26178 gcc_cv_as_ix86_ffreep=yes
26179 else
26180 echo "configure: failed program was" >&5
26181 cat conftest.s >&5
26182 fi
26183 rm -f conftest.o conftest.s
26184 fi
26185 fi
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26187 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26188 if test $gcc_cv_as_ix86_ffreep = yes; then
26189
26190 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26191
26192 fi
26193
26194
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26196 $as_echo_n "checking assembler for .quad directive... " >&6; }
26197 if ${gcc_cv_as_ix86_quad+:} false; then :
26198 $as_echo_n "(cached) " >&6
26199 else
26200 gcc_cv_as_ix86_quad=no
26201 if test x$gcc_cv_as != x; then
26202 $as_echo '.quad 0' > conftest.s
26203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26205 (eval $ac_try) 2>&5
26206 ac_status=$?
26207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26208 test $ac_status = 0; }; }
26209 then
26210 gcc_cv_as_ix86_quad=yes
26211 else
26212 echo "configure: failed program was" >&5
26213 cat conftest.s >&5
26214 fi
26215 rm -f conftest.o conftest.s
26216 fi
26217 fi
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26219 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26220 if test $gcc_cv_as_ix86_quad = yes; then
26221
26222 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26223
26224 fi
26225
26226
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26228 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26229 if ${gcc_cv_as_ix86_sahf+:} false; then :
26230 $as_echo_n "(cached) " >&6
26231 else
26232 gcc_cv_as_ix86_sahf=no
26233 if test x$gcc_cv_as != x; then
26234 $as_echo '.code64
26235 sahf' > conftest.s
26236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26238 (eval $ac_try) 2>&5
26239 ac_status=$?
26240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26241 test $ac_status = 0; }; }
26242 then
26243 gcc_cv_as_ix86_sahf=yes
26244 else
26245 echo "configure: failed program was" >&5
26246 cat conftest.s >&5
26247 fi
26248 rm -f conftest.o conftest.s
26249 fi
26250 fi
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26252 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26253 if test $gcc_cv_as_ix86_sahf = yes; then
26254
26255 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26256
26257 fi
26258
26259
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26261 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26262 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26263 $as_echo_n "(cached) " >&6
26264 else
26265 gcc_cv_as_ix86_interunit_movq=no
26266 if test x$gcc_cv_as != x; then
26267 $as_echo '.code64
26268 movq %mm0, %rax
26269 movq %rax, %xmm0' > conftest.s
26270 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26272 (eval $ac_try) 2>&5
26273 ac_status=$?
26274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26275 test $ac_status = 0; }; }
26276 then
26277 gcc_cv_as_ix86_interunit_movq=yes
26278 else
26279 echo "configure: failed program was" >&5
26280 cat conftest.s >&5
26281 fi
26282 rm -f conftest.o conftest.s
26283 fi
26284 fi
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26286 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26287
26288
26289
26290 cat >>confdefs.h <<_ACEOF
26291 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26292 _ACEOF
26293
26294
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26296 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26297 if ${gcc_cv_as_ix86_hle+:} false; then :
26298 $as_echo_n "(cached) " >&6
26299 else
26300 gcc_cv_as_ix86_hle=no
26301 if test x$gcc_cv_as != x; then
26302 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26303 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26305 (eval $ac_try) 2>&5
26306 ac_status=$?
26307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26308 test $ac_status = 0; }; }
26309 then
26310 gcc_cv_as_ix86_hle=yes
26311 else
26312 echo "configure: failed program was" >&5
26313 cat conftest.s >&5
26314 fi
26315 rm -f conftest.o conftest.s
26316 fi
26317 fi
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26319 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26320 if test $gcc_cv_as_ix86_hle = yes; then
26321
26322 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26323
26324 fi
26325
26326
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26328 $as_echo_n "checking assembler for swap suffix... " >&6; }
26329 if ${gcc_cv_as_ix86_swap+:} false; then :
26330 $as_echo_n "(cached) " >&6
26331 else
26332 gcc_cv_as_ix86_swap=no
26333 if test x$gcc_cv_as != x; then
26334 $as_echo 'movl.s %esp, %ebp' > conftest.s
26335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26337 (eval $ac_try) 2>&5
26338 ac_status=$?
26339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26340 test $ac_status = 0; }; }
26341 then
26342 gcc_cv_as_ix86_swap=yes
26343 else
26344 echo "configure: failed program was" >&5
26345 cat conftest.s >&5
26346 fi
26347 rm -f conftest.o conftest.s
26348 fi
26349 fi
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26351 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26352 if test $gcc_cv_as_ix86_swap = yes; then
26353
26354 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26355
26356 fi
26357
26358
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26360 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26361 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26362 $as_echo_n "(cached) " >&6
26363 else
26364 gcc_cv_as_ix86_diff_sect_delta=no
26365 if test x$gcc_cv_as != x; then
26366 $as_echo '.section .rodata
26367 .L1:
26368 .long .L2-.L1
26369 .long .L3-.L1
26370 .text
26371 .L3: nop
26372 .L2: nop' > conftest.s
26373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26375 (eval $ac_try) 2>&5
26376 ac_status=$?
26377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26378 test $ac_status = 0; }; }
26379 then
26380 gcc_cv_as_ix86_diff_sect_delta=yes
26381 else
26382 echo "configure: failed program was" >&5
26383 cat conftest.s >&5
26384 fi
26385 rm -f conftest.o conftest.s
26386 fi
26387 fi
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26389 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26390 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26391
26392 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26393
26394 fi
26395
26396
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26398 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26399 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26400 $as_echo_n "(cached) " >&6
26401 else
26402 gcc_cv_as_ix86_rep_lock_prefix=no
26403 if test x$gcc_cv_as != x; then
26404 $as_echo 'rep movsl
26405 rep ret
26406 rep nop
26407 rep bsf %ecx, %eax
26408 rep bsr %ecx, %eax
26409 lock addl %edi, (%eax,%esi)
26410 lock orl $0, (%esp)' > conftest.s
26411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26413 (eval $ac_try) 2>&5
26414 ac_status=$?
26415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26416 test $ac_status = 0; }; }
26417 then
26418 gcc_cv_as_ix86_rep_lock_prefix=yes
26419 else
26420 echo "configure: failed program was" >&5
26421 cat conftest.s >&5
26422 fi
26423 rm -f conftest.o conftest.s
26424 fi
26425 fi
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26427 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26428 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26429
26430 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26431
26432 fi
26433
26434
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26436 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26437 if ${gcc_cv_as_ix86_ud2+:} false; then :
26438 $as_echo_n "(cached) " >&6
26439 else
26440 gcc_cv_as_ix86_ud2=no
26441 if test x$gcc_cv_as != x; then
26442 $as_echo 'ud2' > conftest.s
26443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26445 (eval $ac_try) 2>&5
26446 ac_status=$?
26447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26448 test $ac_status = 0; }; }
26449 then
26450 gcc_cv_as_ix86_ud2=yes
26451 else
26452 echo "configure: failed program was" >&5
26453 cat conftest.s >&5
26454 fi
26455 rm -f conftest.o conftest.s
26456 fi
26457 fi
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26459 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26460 if test $gcc_cv_as_ix86_ud2 = yes; then
26461
26462 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26463
26464 fi
26465
26466
26467 # Enforce 32-bit output with gas and gld.
26468 if test x$gas = xyes; then
26469 as_ix86_gas_32_opt="--32"
26470 fi
26471 if echo "$ld_ver" | grep GNU > /dev/null; then
26472 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26473 ld_ix86_gld_32_opt="-melf_i386_sol2"
26474 else
26475 ld_ix86_gld_32_opt="-melf_i386"
26476 fi
26477 fi
26478
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26480 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26481 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26482 $as_echo_n "(cached) " >&6
26483 else
26484 gcc_cv_as_ix86_tlsgdplt=no
26485 if test x$gcc_cv_as != x; then
26486 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26492 test $ac_status = 0; }; }
26493 then
26494 if test x$gcc_cv_ld != x \
26495 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26496 gcc_cv_as_ix86_tlsgdplt=yes
26497 fi
26498 rm -f conftest
26499 else
26500 echo "configure: failed program was" >&5
26501 cat conftest.s >&5
26502 fi
26503 rm -f conftest.o conftest.s
26504 fi
26505 fi
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26507 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26508 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26509
26510 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26511
26512 fi
26513
26514
26515 conftest_s='
26516 .section .tdata,"aw'$tls_section_flag'",@progbits
26517 tls_ld:
26518 .section .text,"ax",@progbits
26519 call tls_ld@tlsldmplt'
26520
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26522 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26523 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26524 $as_echo_n "(cached) " >&6
26525 else
26526 gcc_cv_as_ix86_tlsldmplt=no
26527 if test x$gcc_cv_as != x; then
26528 $as_echo "$conftest_s" > conftest.s
26529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26531 (eval $ac_try) 2>&5
26532 ac_status=$?
26533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26534 test $ac_status = 0; }; }
26535 then
26536 if test x$gcc_cv_ld != x \
26537 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26538 gcc_cv_as_ix86_tlsldmplt=yes
26539 fi
26540 rm -f conftest
26541 else
26542 echo "configure: failed program was" >&5
26543 cat conftest.s >&5
26544 fi
26545 rm -f conftest.o conftest.s
26546 fi
26547 fi
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26549 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26550
26551
26552
26553 cat >>confdefs.h <<_ACEOF
26554 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26555 _ACEOF
26556
26557
26558 conftest_s='
26559 .section .text,"ax",@progbits
26560 .globl _start
26561 .type _start, @function
26562 _start:
26563 leal value@tlsldm(%ebx), %eax
26564 call ___tls_get_addr@plt
26565
26566 .section .tdata,"aw'$tls_section_flag'",@progbits
26567 .type value, @object
26568 value:'
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26570 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26571 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26572 $as_echo_n "(cached) " >&6
26573 else
26574 gcc_cv_as_ix86_tlsldm=no
26575 if test x$gcc_cv_as != x; then
26576 $as_echo "$conftest_s" > conftest.s
26577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26579 (eval $ac_try) 2>&5
26580 ac_status=$?
26581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26582 test $ac_status = 0; }; }
26583 then
26584 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26585 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26586 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26587 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26588 gcc_cv_as_ix86_tlsldm=yes
26589 fi
26590 fi
26591 rm -f conftest
26592 else
26593 echo "configure: failed program was" >&5
26594 cat conftest.s >&5
26595 fi
26596 rm -f conftest.o conftest.s
26597 fi
26598 fi
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26600 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26601
26602
26603
26604 cat >>confdefs.h <<_ACEOF
26605 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26606 _ACEOF
26607
26608
26609 conftest_s='
26610 .data
26611 bar:
26612 .byte 1
26613 .text
26614 .global _start
26615 _start:
26616 cmpl $0, bar@GOT
26617 jmp *_start@GOT'
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26619 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26620 if ${gcc_cv_as_ix86_got32x+:} false; then :
26621 $as_echo_n "(cached) " >&6
26622 else
26623 gcc_cv_as_ix86_got32x=no
26624 if test x$gcc_cv_as != x; then
26625 $as_echo "$conftest_s" > conftest.s
26626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26628 (eval $ac_try) 2>&5
26629 ac_status=$?
26630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26631 test $ac_status = 0; }; }
26632 then
26633 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26634 && test x$gcc_cv_readelf != x \
26635 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26636 | grep R_386_GOT32X > /dev/null 2>&1 \
26637 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26638 if $gcc_cv_objdump -dw conftest 2>&1 \
26639 | grep 0xffffff > /dev/null 2>&1; then
26640 gcc_cv_as_ix86_got32x=no
26641 else
26642 gcc_cv_as_ix86_got32x=yes
26643 fi
26644 fi
26645 rm -f conftest
26646 else
26647 echo "configure: failed program was" >&5
26648 cat conftest.s >&5
26649 fi
26650 rm -f conftest.o conftest.s
26651 fi
26652 fi
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26654 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26655
26656
26657
26658 cat >>confdefs.h <<_ACEOF
26659 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26660 _ACEOF
26661
26662
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26664 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26665 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
26666 $as_echo_n "(cached) " >&6
26667 else
26668 gcc_cv_as_ix86_gotoff_in_data=no
26669 if test $in_tree_gas = yes; then
26670 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26671 then gcc_cv_as_ix86_gotoff_in_data=yes
26672 fi
26673 elif test x$gcc_cv_as != x; then
26674 $as_echo ' .text
26675 .L0:
26676 nop
26677 .data
26678 .long .L0@GOTOFF' > conftest.s
26679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; }
26685 then
26686 gcc_cv_as_ix86_gotoff_in_data=yes
26687 else
26688 echo "configure: failed program was" >&5
26689 cat conftest.s >&5
26690 fi
26691 rm -f conftest.o conftest.s
26692 fi
26693 fi
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26695 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26696
26697
26698
26699 cat >>confdefs.h <<_ACEOF
26700 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26701 _ACEOF
26702
26703
26704 conftest_s='
26705 .section .text,"ax",@progbits
26706 .globl _start
26707 .type _start, @function
26708 _start:
26709 leal ld@tlsldm(%ecx), %eax
26710 call *___tls_get_addr@GOT(%ecx)
26711 leal gd@tlsgd(%ecx), %eax
26712 call *___tls_get_addr@GOT(%ecx)
26713
26714 .section .tdata,"aw'$tls_section_flag'",@progbits
26715 .type ld, @object
26716 ld:
26717 .byte 0
26718 .globl gd
26719 .type gd, @object
26720 gd:
26721 .byte 0'
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26723 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26724 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
26725 $as_echo_n "(cached) " >&6
26726 else
26727 gcc_cv_as_ix86_tls_get_addr_via_got=no
26728 if test x$gcc_cv_as != x; then
26729 $as_echo "$conftest_s" > conftest.s
26730 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26732 (eval $ac_try) 2>&5
26733 ac_status=$?
26734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26735 test $ac_status = 0; }; }
26736 then
26737 if test x$gcc_cv_ld != x \
26738 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26739 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26740 fi
26741 rm -f conftest
26742 else
26743 echo "configure: failed program was" >&5
26744 cat conftest.s >&5
26745 fi
26746 rm -f conftest.o conftest.s
26747 fi
26748 fi
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26750 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26751
26752
26753
26754 cat >>confdefs.h <<_ACEOF
26755 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26756 _ACEOF
26757
26758 ;;
26759
26760 ia64*-*-*)
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26762 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26763 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
26764 $as_echo_n "(cached) " >&6
26765 else
26766 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26767 if test $in_tree_gas = yes; then
26768 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26769 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26770 fi
26771 elif test x$gcc_cv_as != x; then
26772 $as_echo ' .text
26773 addl r15 = @ltoffx(x#), gp
26774 ;;
26775 ld8.mov r16 = [r15], x#
26776 ' > conftest.s
26777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26782 test $ac_status = 0; }; }
26783 then
26784 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26785 else
26786 echo "configure: failed program was" >&5
26787 cat conftest.s >&5
26788 fi
26789 rm -f conftest.o conftest.s
26790 fi
26791 fi
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26793 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26794 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26795
26796 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26797
26798 fi
26799
26800
26801 ;;
26802
26803 powerpc*-*-*)
26804
26805 case $target in
26806 *-*-darwin*)
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26808 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26809 if ${gcc_cv_as_machine_directive+:} false; then :
26810 $as_echo_n "(cached) " >&6
26811 else
26812 gcc_cv_as_machine_directive=no
26813 if test x$gcc_cv_as != x; then
26814 $as_echo ' .machine ppc7400' > conftest.s
26815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26817 (eval $ac_try) 2>&5
26818 ac_status=$?
26819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26820 test $ac_status = 0; }; }
26821 then
26822 gcc_cv_as_machine_directive=yes
26823 else
26824 echo "configure: failed program was" >&5
26825 cat conftest.s >&5
26826 fi
26827 rm -f conftest.o conftest.s
26828 fi
26829 fi
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26831 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26832
26833
26834 if test x$gcc_cv_as_machine_directive != xyes; then
26835 echo "*** This target requires an assembler supporting \".machine\"" >&2
26836 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26837 test x$build = x$target && exit 1
26838 fi
26839 ;;
26840 esac
26841
26842 case $target in
26843 *-*-aix*) conftest_s=' .machine "pwr5"
26844 .csect .text[PR]
26845 mfcr 3,128';;
26846 *-*-darwin*) conftest_s=' .text
26847 mfcr r3,128';;
26848 *) conftest_s=' .machine power4
26849 .text
26850 mfcr 3,128';;
26851 esac
26852
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26854 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26855 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
26856 $as_echo_n "(cached) " >&6
26857 else
26858 gcc_cv_as_powerpc_mfcrf=no
26859 if test $in_tree_gas = yes; then
26860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26861 then gcc_cv_as_powerpc_mfcrf=yes
26862 fi
26863 elif test x$gcc_cv_as != x; then
26864 $as_echo "$conftest_s" > conftest.s
26865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26867 (eval $ac_try) 2>&5
26868 ac_status=$?
26869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26870 test $ac_status = 0; }; }
26871 then
26872 gcc_cv_as_powerpc_mfcrf=yes
26873 else
26874 echo "configure: failed program was" >&5
26875 cat conftest.s >&5
26876 fi
26877 rm -f conftest.o conftest.s
26878 fi
26879 fi
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26881 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26882 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26883
26884 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26885
26886 fi
26887
26888
26889 case $target in
26890 *-*-aix*) conftest_s=' .csect .text[PR]
26891 LCF..0:
26892 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26893 *-*-darwin*)
26894 conftest_s=' .text
26895 LCF0:
26896 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26897 *) conftest_s=' .text
26898 .LCF0:
26899 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26900 esac
26901
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26903 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26904 if ${gcc_cv_as_powerpc_rel16+:} false; then :
26905 $as_echo_n "(cached) " >&6
26906 else
26907 gcc_cv_as_powerpc_rel16=no
26908 if test $in_tree_gas = yes; then
26909 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26910 then gcc_cv_as_powerpc_rel16=yes
26911 fi
26912 elif test x$gcc_cv_as != x; then
26913 $as_echo "$conftest_s" > conftest.s
26914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26916 (eval $ac_try) 2>&5
26917 ac_status=$?
26918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26919 test $ac_status = 0; }; }
26920 then
26921 gcc_cv_as_powerpc_rel16=yes
26922 else
26923 echo "configure: failed program was" >&5
26924 cat conftest.s >&5
26925 fi
26926 rm -f conftest.o conftest.s
26927 fi
26928 fi
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26930 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26931 if test $gcc_cv_as_powerpc_rel16 = yes; then
26932
26933 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26934
26935 fi
26936
26937
26938 case $target in
26939 *-*-aix*) conftest_s=' .machine "pwr7"
26940 .csect .text[PR]
26941 lxvd2x 1,2,3';;
26942 *) conftest_s=' .machine power7
26943 .text
26944 lxvd2x 1,2,3';;
26945 esac
26946
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26948 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26949 if ${gcc_cv_as_powerpc_vsx+:} false; then :
26950 $as_echo_n "(cached) " >&6
26951 else
26952 gcc_cv_as_powerpc_vsx=no
26953 if test $in_tree_gas = yes; then
26954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26955 then gcc_cv_as_powerpc_vsx=yes
26956 fi
26957 elif test x$gcc_cv_as != x; then
26958 $as_echo "$conftest_s" > conftest.s
26959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26961 (eval $ac_try) 2>&5
26962 ac_status=$?
26963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26964 test $ac_status = 0; }; }
26965 then
26966 gcc_cv_as_powerpc_vsx=yes
26967 else
26968 echo "configure: failed program was" >&5
26969 cat conftest.s >&5
26970 fi
26971 rm -f conftest.o conftest.s
26972 fi
26973 fi
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26975 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26976 if test $gcc_cv_as_powerpc_vsx = yes; then
26977
26978 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26979
26980 fi
26981
26982
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26984 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26985 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
26986 $as_echo_n "(cached) " >&6
26987 else
26988 gcc_cv_as_powerpc_gnu_attribute=no
26989 if test $in_tree_gas = yes; then
26990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26991 then gcc_cv_as_powerpc_gnu_attribute=yes
26992 fi
26993 elif test x$gcc_cv_as != x; then
26994 $as_echo '.gnu_attribute 4,1' > conftest.s
26995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26997 (eval $ac_try) 2>&5
26998 ac_status=$?
26999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27000 test $ac_status = 0; }; }
27001 then
27002 gcc_cv_as_powerpc_gnu_attribute=yes
27003 else
27004 echo "configure: failed program was" >&5
27005 cat conftest.s >&5
27006 fi
27007 rm -f conftest.o conftest.s
27008 fi
27009 fi
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27011 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27012 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27013
27014 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27015
27016 fi
27017
27018
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27020 $as_echo_n "checking assembler for tls marker support... " >&6; }
27021 if ${gcc_cv_as_powerpc_tls_markers+:} false; then :
27022 $as_echo_n "(cached) " >&6
27023 else
27024 gcc_cv_as_powerpc_tls_markers=no
27025 if test $in_tree_gas = yes; then
27026 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27027 then gcc_cv_as_powerpc_tls_markers=yes
27028 fi
27029 elif test x$gcc_cv_as != x; then
27030 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27031 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27033 (eval $ac_try) 2>&5
27034 ac_status=$?
27035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27036 test $ac_status = 0; }; }
27037 then
27038 gcc_cv_as_powerpc_tls_markers=yes
27039 else
27040 echo "configure: failed program was" >&5
27041 cat conftest.s >&5
27042 fi
27043 rm -f conftest.o conftest.s
27044 fi
27045 fi
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27047 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27048 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27049
27050 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27051
27052 fi
27053
27054
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27056 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27057 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27058 $as_echo_n "(cached) " >&6
27059 else
27060 gcc_cv_as_powerpc_entry_markers=no
27061 if test $in_tree_gas = yes; then
27062 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27063 then gcc_cv_as_powerpc_entry_markers=yes
27064 fi
27065 elif test x$gcc_cv_as != x; then
27066 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27069 (eval $ac_try) 2>&5
27070 ac_status=$?
27071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27072 test $ac_status = 0; }; }
27073 then
27074 gcc_cv_as_powerpc_entry_markers=yes
27075 else
27076 echo "configure: failed program was" >&5
27077 cat conftest.s >&5
27078 fi
27079 rm -f conftest.o conftest.s
27080 fi
27081 fi
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27083 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27084 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27085
27086 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27087
27088 fi
27089
27090
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27092 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27093 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27094 $as_echo_n "(cached) " >&6
27095 else
27096 gcc_cv_as_powerpc_pltseq_markers=no
27097 if test $in_tree_gas = yes; then
27098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27099 then gcc_cv_as_powerpc_pltseq_markers=yes
27100 fi
27101 elif test x$gcc_cv_as != x; then
27102 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27105 (eval $ac_try) 2>&5
27106 ac_status=$?
27107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27108 test $ac_status = 0; }; }
27109 then
27110 gcc_cv_as_powerpc_pltseq_markers=yes
27111 else
27112 echo "configure: failed program was" >&5
27113 cat conftest.s >&5
27114 fi
27115 rm -f conftest.o conftest.s
27116 fi
27117 fi
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27119 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27120 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27121
27122 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27123
27124 fi
27125
27126
27127 case $target in
27128 *-*-aix*)
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27130 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27131 if ${gcc_cv_as_aix_ref+:} false; then :
27132 $as_echo_n "(cached) " >&6
27133 else
27134 gcc_cv_as_aix_ref=no
27135 if test $in_tree_gas = yes; then
27136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27137 then gcc_cv_as_aix_ref=yes
27138 fi
27139 elif test x$gcc_cv_as != x; then
27140 $as_echo ' .csect stuff[rw]
27141 stuff:
27142 .long 1
27143 .extern sym
27144 .ref sym
27145 ' > conftest.s
27146 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27148 (eval $ac_try) 2>&5
27149 ac_status=$?
27150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27151 test $ac_status = 0; }; }
27152 then
27153 gcc_cv_as_aix_ref=yes
27154 else
27155 echo "configure: failed program was" >&5
27156 cat conftest.s >&5
27157 fi
27158 rm -f conftest.o conftest.s
27159 fi
27160 fi
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27162 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27163 if test $gcc_cv_as_aix_ref = yes; then
27164
27165 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27166
27167 fi
27168
27169
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27171 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27172 if ${gcc_cv_as_aix_dwloc+:} false; then :
27173 $as_echo_n "(cached) " >&6
27174 else
27175 gcc_cv_as_aix_dwloc=no
27176 if test $in_tree_gas = yes; then
27177 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27178 then gcc_cv_as_aix_dwloc=yes
27179 fi
27180 elif test x$gcc_cv_as != x; then
27181 $as_echo ' .dwsect 0xA0000
27182 Lframe..0:
27183 .vbyte 4,Lframe..0
27184 ' > conftest.s
27185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27187 (eval $ac_try) 2>&5
27188 ac_status=$?
27189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27190 test $ac_status = 0; }; }
27191 then
27192 gcc_cv_as_aix_dwloc=yes
27193 else
27194 echo "configure: failed program was" >&5
27195 cat conftest.s >&5
27196 fi
27197 rm -f conftest.o conftest.s
27198 fi
27199 fi
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27201 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27202 if test $gcc_cv_as_aix_dwloc = yes; then
27203
27204 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27205
27206 fi
27207
27208 ;;
27209 esac
27210 ;;
27211
27212 mips*-*-*)
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27214 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27215 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27216 $as_echo_n "(cached) " >&6
27217 else
27218 gcc_cv_as_mips_explicit_relocs=no
27219 if test $in_tree_gas = yes; then
27220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27221 then gcc_cv_as_mips_explicit_relocs=yes
27222 fi
27223 elif test x$gcc_cv_as != x; then
27224 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27227 (eval $ac_try) 2>&5
27228 ac_status=$?
27229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27230 test $ac_status = 0; }; }
27231 then
27232 gcc_cv_as_mips_explicit_relocs=yes
27233 else
27234 echo "configure: failed program was" >&5
27235 cat conftest.s >&5
27236 fi
27237 rm -f conftest.o conftest.s
27238 fi
27239 fi
27240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27241 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27242 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27243 if test x$target_cpu_default = x
27244 then target_cpu_default=MASK_EXPLICIT_RELOCS
27245 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27246 fi
27247 fi
27248
27249
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27251 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27252 if ${gcc_cv_as_mips_no_shared+:} false; then :
27253 $as_echo_n "(cached) " >&6
27254 else
27255 gcc_cv_as_mips_no_shared=no
27256 if test $in_tree_gas = yes; then
27257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27258 then gcc_cv_as_mips_no_shared=yes
27259 fi
27260 elif test x$gcc_cv_as != x; then
27261 $as_echo 'nop' > conftest.s
27262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27264 (eval $ac_try) 2>&5
27265 ac_status=$?
27266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27267 test $ac_status = 0; }; }
27268 then
27269 gcc_cv_as_mips_no_shared=yes
27270 else
27271 echo "configure: failed program was" >&5
27272 cat conftest.s >&5
27273 fi
27274 rm -f conftest.o conftest.s
27275 fi
27276 fi
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27278 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27279 if test $gcc_cv_as_mips_no_shared = yes; then
27280
27281 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27282
27283 fi
27284
27285
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27287 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27288 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27289 $as_echo_n "(cached) " >&6
27290 else
27291 gcc_cv_as_mips_gnu_attribute=no
27292 if test $in_tree_gas = yes; then
27293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27294 then gcc_cv_as_mips_gnu_attribute=yes
27295 fi
27296 elif test x$gcc_cv_as != x; then
27297 $as_echo '.gnu_attribute 4,1' > conftest.s
27298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27300 (eval $ac_try) 2>&5
27301 ac_status=$?
27302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27303 test $ac_status = 0; }; }
27304 then
27305 gcc_cv_as_mips_gnu_attribute=yes
27306 else
27307 echo "configure: failed program was" >&5
27308 cat conftest.s >&5
27309 fi
27310 rm -f conftest.o conftest.s
27311 fi
27312 fi
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27314 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27315 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27316
27317 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27318
27319 fi
27320
27321
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27323 $as_echo_n "checking assembler for .module support... " >&6; }
27324 if ${gcc_cv_as_mips_dot_module+:} false; then :
27325 $as_echo_n "(cached) " >&6
27326 else
27327 gcc_cv_as_mips_dot_module=no
27328 if test x$gcc_cv_as != x; then
27329 $as_echo '.module mips2
27330 .module fp=xx' > conftest.s
27331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27333 (eval $ac_try) 2>&5
27334 ac_status=$?
27335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27336 test $ac_status = 0; }; }
27337 then
27338 gcc_cv_as_mips_dot_module=yes
27339 else
27340 echo "configure: failed program was" >&5
27341 cat conftest.s >&5
27342 fi
27343 rm -f conftest.o conftest.s
27344 fi
27345 fi
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27347 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27348 if test $gcc_cv_as_mips_dot_module = yes; then
27349
27350 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27351
27352 fi
27353
27354 if test x$gcc_cv_as_mips_dot_module = xno \
27355 && test x$with_fp_32 != x; then
27356 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27357 fi
27358
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27360 $as_echo_n "checking assembler for .micromips support... " >&6; }
27361 if ${gcc_cv_as_micromips_support+:} false; then :
27362 $as_echo_n "(cached) " >&6
27363 else
27364 gcc_cv_as_micromips_support=no
27365 if test x$gcc_cv_as != x; then
27366 $as_echo '.set micromips' > conftest.s
27367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27369 (eval $ac_try) 2>&5
27370 ac_status=$?
27371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27372 test $ac_status = 0; }; }
27373 then
27374 gcc_cv_as_micromips_support=yes
27375 else
27376 echo "configure: failed program was" >&5
27377 cat conftest.s >&5
27378 fi
27379 rm -f conftest.o conftest.s
27380 fi
27381 fi
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27383 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27384 if test $gcc_cv_as_micromips_support = yes; then
27385
27386 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27387
27388 fi
27389
27390
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27392 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27393 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27394 $as_echo_n "(cached) " >&6
27395 else
27396 gcc_cv_as_mips_dtprelword=no
27397 if test $in_tree_gas = yes; then
27398 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27399 then gcc_cv_as_mips_dtprelword=yes
27400 fi
27401 elif test x$gcc_cv_as != x; then
27402 $as_echo '.section .tdata,"awT",@progbits
27403 x:
27404 .word 2
27405 .text
27406 .dtprelword x+0x8000' > conftest.s
27407 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27409 (eval $ac_try) 2>&5
27410 ac_status=$?
27411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27412 test $ac_status = 0; }; }
27413 then
27414 gcc_cv_as_mips_dtprelword=yes
27415 else
27416 echo "configure: failed program was" >&5
27417 cat conftest.s >&5
27418 fi
27419 rm -f conftest.o conftest.s
27420 fi
27421 fi
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27423 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27424 if test $gcc_cv_as_mips_dtprelword = yes; then
27425
27426 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27427
27428 fi
27429
27430
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27432 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27433 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27434 $as_echo_n "(cached) " >&6
27435 else
27436 gcc_cv_as_mips_dspr1_mult=no
27437 if test x$gcc_cv_as != x; then
27438 $as_echo ' .set mips32r2
27439 .set nodspr2
27440 .set dsp
27441 madd $ac3,$4,$5
27442 maddu $ac3,$4,$5
27443 msub $ac3,$4,$5
27444 msubu $ac3,$4,$5
27445 mult $ac3,$4,$5
27446 multu $ac3,$4,$5' > conftest.s
27447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27449 (eval $ac_try) 2>&5
27450 ac_status=$?
27451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27452 test $ac_status = 0; }; }
27453 then
27454 gcc_cv_as_mips_dspr1_mult=yes
27455 else
27456 echo "configure: failed program was" >&5
27457 cat conftest.s >&5
27458 fi
27459 rm -f conftest.o conftest.s
27460 fi
27461 fi
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27463 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27464 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27465
27466 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27467
27468 fi
27469
27470
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27472 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27473 gcc_cv_as_ld_jalr_reloc=no
27474 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27475 if test $in_tree_ld = yes ; then
27476 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 \
27477 && test $in_tree_ld_is_elf = yes; then
27478 gcc_cv_as_ld_jalr_reloc=yes
27479 fi
27480 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27481 echo ' .ent x' > conftest.s
27482 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27483 echo ' lw $25,%call16(y)($28)' >> conftest.s
27484 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27485 echo '1: jalr $25' >> conftest.s
27486 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27487 echo '1: jalr $25' >> conftest.s
27488 echo ' .end x' >> conftest.s
27489 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27490 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27491 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27492 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27493 gcc_cv_as_ld_jalr_reloc=yes
27494 fi
27495 fi
27496 rm -f conftest.*
27497 fi
27498 fi
27499 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27500 if test x$target_cpu_default = x; then
27501 target_cpu_default=MASK_RELAX_PIC_CALLS
27502 else
27503 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27504 fi
27505 fi
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27507 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27508
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27510 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27511 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27512 $as_echo_n "(cached) " >&6
27513 else
27514 gcc_cv_ld_mips_personality_relaxation=no
27515 if test $in_tree_ld = yes ; then
27516 if test "$gcc_cv_gld_major_version" -eq 2 \
27517 -a "$gcc_cv_gld_minor_version" -ge 21 \
27518 -o "$gcc_cv_gld_major_version" -gt 2; then
27519 gcc_cv_ld_mips_personality_relaxation=yes
27520 fi
27521 elif test x$gcc_cv_as != x \
27522 -a x$gcc_cv_ld != x \
27523 -a x$gcc_cv_readelf != x ; then
27524 cat > conftest.s <<EOF
27525 .cfi_startproc
27526 .cfi_personality 0x80,indirect_ptr
27527 .ent test
27528 test:
27529 nop
27530 .end test
27531 .cfi_endproc
27532
27533 .section .data,"aw",@progbits
27534 indirect_ptr:
27535 .dc.a personality
27536 EOF
27537 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27538 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27539 if $gcc_cv_readelf -d conftest 2>&1 \
27540 | grep TEXTREL > /dev/null 2>&1; then
27541 :
27542 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27543 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27544 :
27545 else
27546 gcc_cv_ld_mips_personality_relaxation=yes
27547 fi
27548 fi
27549 fi
27550 rm -f conftest.s conftest.o conftest
27551 fi
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27553 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27554 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27555
27556 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27557
27558 fi
27559
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27561 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27562 if ${gcc_cv_as_mips_nan+:} false; then :
27563 $as_echo_n "(cached) " >&6
27564 else
27565 gcc_cv_as_mips_nan=no
27566 if test x$gcc_cv_as != x; then
27567 $as_echo '' > conftest.s
27568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27570 (eval $ac_try) 2>&5
27571 ac_status=$?
27572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27573 test $ac_status = 0; }; }
27574 then
27575 gcc_cv_as_mips_nan=yes
27576 else
27577 echo "configure: failed program was" >&5
27578 cat conftest.s >&5
27579 fi
27580 rm -f conftest.o conftest.s
27581 fi
27582 fi
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27584 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27585 if test $gcc_cv_as_mips_nan = yes; then
27586
27587 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27588
27589 fi
27590
27591 if test x$gcc_cv_as_mips_nan = xno \
27592 && test x$with_nan != x; then
27593 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27594 fi
27595 ;;
27596 riscv*-*-*)
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27598 $as_echo_n "checking assembler for .attribute support... " >&6; }
27599 if ${gcc_cv_as_riscv_attribute+:} false; then :
27600 $as_echo_n "(cached) " >&6
27601 else
27602 gcc_cv_as_riscv_attribute=no
27603 if test $in_tree_gas = yes; then
27604 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27605 then gcc_cv_as_riscv_attribute=yes
27606 fi
27607 elif test x$gcc_cv_as != x; then
27608 $as_echo '.attribute stack_align,4' > conftest.s
27609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27611 (eval $ac_try) 2>&5
27612 ac_status=$?
27613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27614 test $ac_status = 0; }; }
27615 then
27616 gcc_cv_as_riscv_attribute=yes
27617 else
27618 echo "configure: failed program was" >&5
27619 cat conftest.s >&5
27620 fi
27621 rm -f conftest.o conftest.s
27622 fi
27623 fi
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
27625 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
27626 if test $gcc_cv_as_riscv_attribute = yes; then
27627
27628 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
27629
27630 fi
27631
27632 ;;
27633 s390*-*-*)
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27635 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27636 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
27637 $as_echo_n "(cached) " >&6
27638 else
27639 gcc_cv_as_s390_gnu_attribute=no
27640 if test $in_tree_gas = yes; then
27641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27642 then gcc_cv_as_s390_gnu_attribute=yes
27643 fi
27644 elif test x$gcc_cv_as != x; then
27645 $as_echo '.gnu_attribute 8,1' > conftest.s
27646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27648 (eval $ac_try) 2>&5
27649 ac_status=$?
27650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27651 test $ac_status = 0; }; }
27652 then
27653 gcc_cv_as_s390_gnu_attribute=yes
27654 else
27655 echo "configure: failed program was" >&5
27656 cat conftest.s >&5
27657 fi
27658 rm -f conftest.o conftest.s
27659 fi
27660 fi
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27662 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27663 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27664
27665 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27666
27667 fi
27668
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27670 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27671 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
27672 $as_echo_n "(cached) " >&6
27673 else
27674 gcc_cv_as_s390_machine_machinemode=no
27675 if test $in_tree_gas = yes; then
27676 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27677 then gcc_cv_as_s390_machine_machinemode=yes
27678 fi
27679 elif test x$gcc_cv_as != x; then
27680 $as_echo ' .machinemode push
27681 .machinemode pop
27682 .machine push
27683 .machine pop' > conftest.s
27684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27686 (eval $ac_try) 2>&5
27687 ac_status=$?
27688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27689 test $ac_status = 0; }; }
27690 then
27691 gcc_cv_as_s390_machine_machinemode=yes
27692 else
27693 echo "configure: failed program was" >&5
27694 cat conftest.s >&5
27695 fi
27696 rm -f conftest.o conftest.s
27697 fi
27698 fi
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27700 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27701 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27702
27703 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27704
27705 fi
27706
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27708 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27709 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
27710 $as_echo_n "(cached) " >&6
27711 else
27712 gcc_cv_as_s390_architecture_modifiers=no
27713 if test $in_tree_gas = yes; then
27714 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27715 then gcc_cv_as_s390_architecture_modifiers=yes
27716 fi
27717 elif test x$gcc_cv_as != x; then
27718 $as_echo ' .machine z13+vx ' > conftest.s
27719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27721 (eval $ac_try) 2>&5
27722 ac_status=$?
27723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27724 test $ac_status = 0; }; }
27725 then
27726 gcc_cv_as_s390_architecture_modifiers=yes
27727 else
27728 echo "configure: failed program was" >&5
27729 cat conftest.s >&5
27730 fi
27731 rm -f conftest.o conftest.s
27732 fi
27733 fi
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27735 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27736 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27737
27738 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27739
27740 fi
27741
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
27743 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
27744 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
27745 $as_echo_n "(cached) " >&6
27746 else
27747 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
27748 if test $in_tree_gas = yes; then
27749 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27750 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27751 fi
27752 elif test x$gcc_cv_as != x; then
27753 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
27754 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27756 (eval $ac_try) 2>&5
27757 ac_status=$?
27758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27759 test $ac_status = 0; }; }
27760 then
27761 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27762 else
27763 echo "configure: failed program was" >&5
27764 cat conftest.s >&5
27765 fi
27766 rm -f conftest.o conftest.s
27767 fi
27768 fi
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
27770 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
27771 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
27772
27773 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
27774
27775 fi
27776
27777
27778 ;;
27779 esac
27780
27781 # Mips and HP-UX need the GNU assembler.
27782 # Linux on IA64 might be able to use the Intel assembler.
27783
27784 case "$target" in
27785 mips*-*-* | *-*-hpux* )
27786 if test x$gas_flag = xyes \
27787 || test x"$host" != x"$build" \
27788 || test ! -x "$gcc_cv_as" \
27789 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27790 :
27791 else
27792 echo "*** This configuration requires the GNU assembler" >&2
27793 exit 1
27794 fi
27795 ;;
27796 esac
27797
27798 # ??? Not all targets support dwarf2 debug_line, even within a version
27799 # of gas. Moreover, we need to emit a valid instruction to trigger any
27800 # info to the output file. So, as supported targets are added to gas 2.11,
27801 # add some instruction here to (also) show we expect this might work.
27802 # ??? Once 2.11 is released, probably need to add first known working
27803 # version to the per-target configury.
27804 case "$cpu_type" in
27805 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27806 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27807 | tilegx | tilepro | visium | xstormy16 | xtensa)
27808 insn="nop"
27809 ;;
27810 ia64 | s390)
27811 insn="nop 0"
27812 ;;
27813 mmix)
27814 insn="swym 0"
27815 ;;
27816 esac
27817 if test x"$insn" != x; then
27818 conftest_s="\
27819 .file 1 \"conftest.s\"
27820 .loc 1 3 0
27821 $insn"
27822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27823 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27824 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
27825 $as_echo_n "(cached) " >&6
27826 else
27827 gcc_cv_as_dwarf2_debug_line=no
27828 if test $in_tree_gas = yes; then
27829 if test $in_tree_gas_is_elf = yes \
27830 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27831 then gcc_cv_as_dwarf2_debug_line=yes
27832 fi
27833 elif test x$gcc_cv_as != x; then
27834 $as_echo "$conftest_s" > conftest.s
27835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27837 (eval $ac_try) 2>&5
27838 ac_status=$?
27839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27840 test $ac_status = 0; }; }
27841 then
27842 if test x$gcc_cv_objdump != x \
27843 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27844 | grep debug_line > /dev/null 2>&1; then
27845 gcc_cv_as_dwarf2_debug_line=yes
27846 elif test x$gcc_cv_otool != x \
27847 && $gcc_cv_otool -l conftest.o 2> /dev/null \
27848 | grep debug_line > /dev/null 2>&1; then
27849 gcc_cv_as_dwarf2_debug_line=yes
27850 fi
27851 else
27852 echo "configure: failed program was" >&5
27853 cat conftest.s >&5
27854 fi
27855 rm -f conftest.o conftest.s
27856 fi
27857 fi
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27859 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27860
27861
27862
27863 # The .debug_line file table must be in the exact order that
27864 # we specified the files, since these indices are also used
27865 # by DW_AT_decl_file. Approximate this test by testing if
27866 # the assembler bitches if the same index is assigned twice.
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27868 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27869 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
27870 $as_echo_n "(cached) " >&6
27871 else
27872 gcc_cv_as_dwarf2_file_buggy=no
27873 if test x$gcc_cv_as != x; then
27874 $as_echo ' .file 1 "foo.s"
27875 .file 1 "bar.s"' > conftest.s
27876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27878 (eval $ac_try) 2>&5
27879 ac_status=$?
27880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27881 test $ac_status = 0; }; }
27882 then
27883 gcc_cv_as_dwarf2_file_buggy=yes
27884 else
27885 echo "configure: failed program was" >&5
27886 cat conftest.s >&5
27887 fi
27888 rm -f conftest.o conftest.s
27889 fi
27890 fi
27891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27892 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27893
27894
27895
27896 if test $gcc_cv_as_dwarf2_debug_line = yes \
27897 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27898
27899 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27900
27901
27902 if test $gcc_cv_as_leb128 = yes; then
27903 conftest_s="\
27904 .file 1 \"conftest.s\"
27905 .loc 1 3 0 view .LVU1
27906 $insn
27907 .data
27908 .uleb128 .LVU1
27909 .uleb128 .LVU1
27910 "
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27912 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27913 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
27914 $as_echo_n "(cached) " >&6
27915 else
27916 gcc_cv_as_dwarf2_debug_view=no
27917 if test $in_tree_gas = yes; then
27918 if test $in_tree_gas_is_elf = yes \
27919 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27920 then gcc_cv_as_dwarf2_debug_view=yes
27921 fi
27922 elif test x$gcc_cv_as != x; then
27923 $as_echo "$conftest_s" > conftest.s
27924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27926 (eval $ac_try) 2>&5
27927 ac_status=$?
27928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27929 test $ac_status = 0; }; }
27930 then
27931 gcc_cv_as_dwarf2_debug_view=yes
27932 else
27933 echo "configure: failed program was" >&5
27934 cat conftest.s >&5
27935 fi
27936 rm -f conftest.o conftest.s
27937 fi
27938 fi
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27940 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27941 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27942
27943 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27944
27945 fi
27946
27947 fi
27948 fi
27949
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27951 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27952 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
27953 $as_echo_n "(cached) " >&6
27954 else
27955 gcc_cv_as_gdwarf2_flag=no
27956 if test $in_tree_gas = yes; then
27957 if test $in_tree_gas_is_elf = yes \
27958 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27959 then gcc_cv_as_gdwarf2_flag=yes
27960 fi
27961 elif test x$gcc_cv_as != x; then
27962 $as_echo "$insn" > conftest.s
27963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27965 (eval $ac_try) 2>&5
27966 ac_status=$?
27967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27968 test $ac_status = 0; }; }
27969 then
27970 gcc_cv_as_gdwarf2_flag=yes
27971 else
27972 echo "configure: failed program was" >&5
27973 cat conftest.s >&5
27974 fi
27975 rm -f conftest.o conftest.s
27976 fi
27977 fi
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27979 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27980 if test $gcc_cv_as_gdwarf2_flag = yes; then
27981
27982 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27983
27984 fi
27985
27986
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27988 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27989 if ${gcc_cv_as_gstabs_flag+:} false; then :
27990 $as_echo_n "(cached) " >&6
27991 else
27992 gcc_cv_as_gstabs_flag=no
27993 if test $in_tree_gas = yes; then
27994 if test $in_tree_gas_is_elf = yes \
27995 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27996 then gcc_cv_as_gstabs_flag=yes
27997 fi
27998 elif test x$gcc_cv_as != x; then
27999 $as_echo "$insn" > conftest.s
28000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28002 (eval $ac_try) 2>&5
28003 ac_status=$?
28004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28005 test $ac_status = 0; }; }
28006 then
28007 gcc_cv_as_gstabs_flag=yes
28008 else
28009 echo "configure: failed program was" >&5
28010 cat conftest.s >&5
28011 fi
28012 rm -f conftest.o conftest.s
28013 fi
28014 fi
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28016 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28017 if test $gcc_cv_as_gstabs_flag = yes; then
28018
28019 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28020
28021 fi
28022
28023
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28025 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28026 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28027 $as_echo_n "(cached) " >&6
28028 else
28029 gcc_cv_as_debug_prefix_map_flag=no
28030 if test $in_tree_gas = yes; then
28031 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28032 then gcc_cv_as_debug_prefix_map_flag=yes
28033 fi
28034 elif test x$gcc_cv_as != x; then
28035 $as_echo "$insn" > conftest.s
28036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28038 (eval $ac_try) 2>&5
28039 ac_status=$?
28040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28041 test $ac_status = 0; }; }
28042 then
28043 gcc_cv_as_debug_prefix_map_flag=yes
28044 else
28045 echo "configure: failed program was" >&5
28046 cat conftest.s >&5
28047 fi
28048 rm -f conftest.o conftest.s
28049 fi
28050 fi
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28052 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28053 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28054
28055 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28056
28057 fi
28058
28059 fi
28060
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28062 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28063 if ${gcc_cv_as_compress_debug+:} false; then :
28064 $as_echo_n "(cached) " >&6
28065 else
28066 gcc_cv_as_compress_debug=no
28067 if test x$gcc_cv_as != x; then
28068 $as_echo '' > conftest.s
28069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28071 (eval $ac_try) 2>&5
28072 ac_status=$?
28073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28074 test $ac_status = 0; }; }
28075 then
28076 # gas compiled without zlib cannot compress debug sections and warns
28077 # about it, but still exits successfully. So check for this, too.
28078 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28079 then
28080 gcc_cv_as_compress_debug=0
28081 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28082 # defaulting to the ELF gABI format.
28083 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28084 then
28085 gcc_cv_as_compress_debug=2
28086 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28087 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28088 # Before binutils 2.26, gas only supported --compress-debug-options and
28089 # emitted the traditional GNU format.
28090 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28091 then
28092 gcc_cv_as_compress_debug=1
28093 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28094 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28095 else
28096 gcc_cv_as_compress_debug=0
28097 fi
28098 else
28099 echo "configure: failed program was" >&5
28100 cat conftest.s >&5
28101 fi
28102 rm -f conftest.o conftest.s
28103 fi
28104 fi
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28106 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28107
28108
28109
28110 cat >>confdefs.h <<_ACEOF
28111 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28112 _ACEOF
28113
28114
28115 cat >>confdefs.h <<_ACEOF
28116 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28117 _ACEOF
28118
28119
28120 cat >>confdefs.h <<_ACEOF
28121 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28122 _ACEOF
28123
28124
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28126 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28127 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28128 $as_echo_n "(cached) " >&6
28129 else
28130 gcc_cv_as_lcomm_with_alignment=no
28131 if test x$gcc_cv_as != x; then
28132 $as_echo '.lcomm bar,4,16' > conftest.s
28133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28135 (eval $ac_try) 2>&5
28136 ac_status=$?
28137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28138 test $ac_status = 0; }; }
28139 then
28140 gcc_cv_as_lcomm_with_alignment=yes
28141 else
28142 echo "configure: failed program was" >&5
28143 cat conftest.s >&5
28144 fi
28145 rm -f conftest.o conftest.s
28146 fi
28147 fi
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28149 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28150 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28151
28152 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28153
28154 fi
28155
28156
28157 if test x$with_sysroot = x && test x$host = x$target \
28158 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28159 && test "$prefix" != "NONE"; then
28160
28161 cat >>confdefs.h <<_ACEOF
28162 #define PREFIX_INCLUDE_DIR "$prefix/include"
28163 _ACEOF
28164
28165 fi
28166
28167 # Determine the version of glibc, if any, used on the target.
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28169 $as_echo_n "checking for target glibc version... " >&6; }
28170
28171 # Check whether --with-glibc-version was given.
28172 if test "${with_glibc_version+set}" = set; then :
28173 withval=$with_glibc_version;
28174 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28175 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28176 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28177 else
28178 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28179 fi
28180 else
28181
28182 glibc_version_major=0
28183 glibc_version_minor=0
28184 if test -f $target_header_dir/features.h \
28185 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28186 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28187 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28188 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28189 fi
28190 fi
28191
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28193 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28194
28195 cat >>confdefs.h <<_ACEOF
28196 #define TARGET_GLIBC_MAJOR $glibc_version_major
28197 _ACEOF
28198
28199
28200 cat >>confdefs.h <<_ACEOF
28201 #define TARGET_GLIBC_MINOR $glibc_version_minor
28202 _ACEOF
28203
28204
28205 # Check whether --enable-gnu-unique-object was given.
28206 if test "${enable_gnu_unique_object+set}" = set; then :
28207 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28208 yes | no) ;;
28209 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28210 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28211 esac
28212 else
28213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28214 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28215 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28216 $as_echo_n "(cached) " >&6
28217 else
28218 gcc_cv_as_gnu_unique_object=no
28219 if test $in_tree_gas = yes; then
28220 if test $in_tree_gas_is_elf = yes \
28221 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28222 then gcc_cv_as_gnu_unique_object=yes
28223 fi
28224 elif test x$gcc_cv_as != x; then
28225 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28226 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28228 (eval $ac_try) 2>&5
28229 ac_status=$?
28230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28231 test $ac_status = 0; }; }
28232 then
28233 gcc_cv_as_gnu_unique_object=yes
28234 else
28235 echo "configure: failed program was" >&5
28236 cat conftest.s >&5
28237 fi
28238 rm -f conftest.o conftest.s
28239 fi
28240 fi
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28242 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28243 if test $gcc_cv_as_gnu_unique_object = yes; then
28244 # We need to unquote above to to use the definition from config.gcc.
28245 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28246
28247 if test $glibc_version_major -gt 2 \
28248 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28249 enable_gnu_unique_object=yes
28250 fi
28251
28252 fi
28253
28254 fi
28255
28256 if test x$enable_gnu_unique_object = xyes; then
28257
28258 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28259
28260 fi
28261
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28263 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28264 if ${gcc_cv_as_line_zero+:} false; then :
28265 $as_echo_n "(cached) " >&6
28266 else
28267 gcc_cv_as_line_zero=no
28268 if test $in_tree_gas = yes; then
28269 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28270 then gcc_cv_as_line_zero=yes
28271 fi
28272 elif test "x$gcc_cv_as" != x; then
28273 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28274 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28276 (eval $ac_try) 2>&5
28277 ac_status=$?
28278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28279 test $ac_status = 0; }; } &&
28280 test "x`cat conftest.out`" = x
28281 then
28282 gcc_cv_as_line_zero=yes
28283 else
28284 echo "configure: failed program was" >&5
28285 cat conftest.s >&5
28286 echo "configure: error output was" >&5
28287 cat conftest.out >&5
28288 fi
28289 rm -f conftest.o conftest.s conftest.out
28290 fi
28291 fi
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28293 $as_echo "$gcc_cv_as_line_zero" >&6; }
28294 if test "x$gcc_cv_as_line_zero" = xyes; then
28295
28296 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28297
28298 fi
28299
28300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28301 $as_echo_n "checking support for thin archives... " >&6; }
28302 thin_archive_support=no
28303 echo 'int main (void) { return 0; }' > conftest.c
28304 if ($AR --version | sed 1q | grep "GNU ar" \
28305 && $CC $CFLAGS -c conftest.c \
28306 && $AR rcT conftest.a conftest.o \
28307 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28308 thin_archive_support=yes
28309 fi
28310 rm -f conftest.c conftest.o conftest.a conftest
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28312 $as_echo "$thin_archive_support" >&6; }
28313
28314
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28316 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28317 gcc_cv_ld_eh_frame_hdr=no
28318 if test $in_tree_ld = yes ; then
28319 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 \
28320 && test $in_tree_ld_is_elf = yes; then
28321 gcc_cv_ld_eh_frame_hdr=yes
28322 fi
28323 elif test x$gcc_cv_ld != x; then
28324 if echo "$ld_ver" | grep GNU > /dev/null; then
28325 # Check if linker supports --eh-frame-hdr option
28326 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28327 gcc_cv_ld_eh_frame_hdr=yes
28328 fi
28329 else
28330 case "$target" in
28331 *-*-solaris2*)
28332 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28333 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28334 gcc_cv_ld_eh_frame_hdr=yes
28335 fi
28336 ;;
28337 esac
28338 fi
28339 fi
28340
28341 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28342
28343 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28344
28345 fi
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28347 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28348
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28350 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28351 gcc_cv_ld_eh_frame_ciev3=no
28352 if test $in_tree_ld = yes ; then
28353 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 \
28354 && test $in_tree_ld_is_elf = yes; then
28355 gcc_cv_ld_eh_frame_ciev3=yes
28356 fi
28357 elif test x$gcc_cv_ld != x; then
28358 if echo "$ld_ver" | grep GNU > /dev/null; then
28359 gcc_cv_ld_eh_frame_ciev3=yes
28360 if test 0"$ld_date" -lt 20040513; then
28361 if test -n "$ld_date"; then
28362 # If there was date string, but was earlier than 2004-05-13, fail
28363 gcc_cv_ld_eh_frame_ciev3=no
28364 elif test "$ld_vers_major" -lt 2; then
28365 gcc_cv_ld_eh_frame_ciev3=no
28366 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28367 gcc_cv_ld_eh_frame_ciev3=no
28368 fi
28369 fi
28370 else
28371 case "$target" in
28372 *-*-solaris2*)
28373 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28374 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28375 gcc_cv_ld_eh_frame_ciev3=yes
28376 fi
28377 ;;
28378 esac
28379 fi
28380 fi
28381
28382 cat >>confdefs.h <<_ACEOF
28383 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28384 _ACEOF
28385
28386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28387 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28388
28389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28390 $as_echo_n "checking linker position independent executable support... " >&6; }
28391 gcc_cv_ld_pie=no
28392 if test $in_tree_ld = yes ; then
28393 case "$target" in
28394 # Full PIE support on Solaris was only introduced in gld 2.26.
28395 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28396 *) gcc_gld_pie_min_version=15 ;;
28397 esac
28398 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
28399 && test $in_tree_ld_is_elf = yes; then
28400 gcc_cv_ld_pie=yes
28401 fi
28402 elif test x$gcc_cv_ld != x; then
28403 # Check if linker supports -pie option
28404 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28405 gcc_cv_ld_pie=yes
28406 case "$target" in
28407 *-*-solaris2*)
28408 if echo "$ld_ver" | grep GNU > /dev/null \
28409 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28410 gcc_cv_ld_pie=no
28411 fi
28412 ;;
28413 esac
28414 else
28415 case "$target" in
28416 *-*-solaris2.1[1-9]*)
28417 # Solaris 11.3 added PIE support.
28418 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28419 gcc_cv_ld_pie=yes
28420 fi
28421 ;;
28422 esac
28423 fi
28424 fi
28425 if test x"$gcc_cv_ld_pie" = xyes; then
28426
28427 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28428
28429 fi
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28431 $as_echo "$gcc_cv_ld_pie" >&6; }
28432
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28434 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28435 gcc_cv_ld_pie_copyreloc=no
28436 if test $gcc_cv_ld_pie = yes ; then
28437 if test $in_tree_ld = yes ; then
28438 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
28439 gcc_cv_ld_pie_copyreloc=yes
28440 fi
28441 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28442 # Check if linker supports -pie option with copy reloc
28443 case "$target" in
28444 i?86-*-linux* | x86_64-*-linux*)
28445 cat > conftest1.s <<EOF
28446 .globl a_glob
28447 .data
28448 .type a_glob, @object
28449 .size a_glob, 4
28450 a_glob:
28451 .long 2
28452 EOF
28453 cat > conftest2.s <<EOF
28454 .text
28455 .globl main
28456 .type main, @function
28457 main:
28458 movl %eax, a_glob(%rip)
28459 .size main, .-main
28460 .globl ptr
28461 .section .data.rel,"aw",@progbits
28462 .type ptr, @object
28463 ptr:
28464 .quad a_glob
28465 EOF
28466 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28467 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28468 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28469 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28470 gcc_cv_ld_pie_copyreloc=yes
28471 fi
28472 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28473 ;;
28474 esac
28475 fi
28476 fi
28477
28478 cat >>confdefs.h <<_ACEOF
28479 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28480 _ACEOF
28481
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28483 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28484
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28486 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28487 gcc_cv_ld_eh_gc_sections=no
28488 if test $in_tree_ld = yes ; then
28489 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 \
28490 && test $in_tree_ld_is_elf = yes; then
28491 gcc_cv_ld_eh_gc_sections=yes
28492 fi
28493 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28494 cat > conftest.s <<EOF
28495 .section .text
28496 .globl _start
28497 .type _start, @function
28498 _start:
28499 .long foo
28500 .size _start, .-_start
28501 .section .text.foo,"ax",@progbits
28502 .type foo, @function
28503 foo:
28504 .long 0
28505 .size foo, .-foo
28506 .section .gcc_except_table.foo,"a",@progbits
28507 .L0:
28508 .long 0
28509 .section .eh_frame,"a",@progbits
28510 .long .L0
28511 EOF
28512 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28513 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28514 | grep "gc-sections option ignored" > /dev/null; then
28515 gcc_cv_ld_eh_gc_sections=no
28516 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28517 | grep gcc_except_table > /dev/null; then
28518 gcc_cv_ld_eh_gc_sections=yes
28519 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28520 if test x$gcc_cv_as_comdat_group != xyes; then
28521 gcc_cv_ld_eh_gc_sections=no
28522 cat > conftest.s <<EOF
28523 .section .text
28524 .globl _start
28525 .type _start, @function
28526 _start:
28527 .long foo
28528 .size _start, .-_start
28529 .section .gnu.linkonce.t.foo,"ax",@progbits
28530 .type foo, @function
28531 foo:
28532 .long 0
28533 .size foo, .-foo
28534 .section .gcc_except_table.foo,"a",@progbits
28535 .L0:
28536 .long 0
28537 .section .eh_frame,"a",@progbits
28538 .long .L0
28539 EOF
28540 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28541 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28542 | grep "gc-sections option ignored" > /dev/null; then
28543 gcc_cv_ld_eh_gc_sections=no
28544 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28545 | grep gcc_except_table > /dev/null; then
28546 gcc_cv_ld_eh_gc_sections=yes
28547 fi
28548 fi
28549 fi
28550 fi
28551 fi
28552 rm -f conftest.s conftest.o conftest
28553 fi
28554 case "$target" in
28555 hppa*-*-linux*)
28556 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28557 gcc_cv_ld_eh_gc_sections=no
28558 ;;
28559 esac
28560 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28561
28562 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28563
28564 fi
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28566 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28567
28568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28569 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28570 gcc_cv_ld_eh_gc_sections_bug=no
28571 if test $in_tree_ld = yes ; then
28572 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 \
28573 && test $in_tree_ld_is_elf = yes; then
28574 gcc_cv_ld_eh_gc_sections_bug=yes
28575 fi
28576 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
28577 gcc_cv_ld_eh_gc_sections_bug=yes
28578 cat > conftest.s <<EOF
28579 .section .text
28580 .globl _start
28581 .type _start, @function
28582 _start:
28583 .long foo
28584 .size _start, .-_start
28585 .section .text.startup.foo,"ax",@progbits
28586 .type foo, @function
28587 foo:
28588 .long 0
28589 .size foo, .-foo
28590 .section .gcc_except_table.foo,"a",@progbits
28591 .L0:
28592 .long 0
28593 .section .eh_frame,"a",@progbits
28594 .long .L0
28595 EOF
28596 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28597 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28598 | grep "gc-sections option ignored" > /dev/null; then
28599 :
28600 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28601 | grep gcc_except_table > /dev/null; then
28602 gcc_cv_ld_eh_gc_sections_bug=no
28603 fi
28604 fi
28605 rm -f conftest.s conftest.o conftest
28606 fi
28607 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28608
28609 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28610
28611 fi
28612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28613 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28614
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28616 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28617 # gold/gld support compressed debug sections since binutils 2.19/2.21
28618 # In binutils 2.26, gld gained support for the ELF gABI format.
28619 if test $in_tree_ld = yes ; then
28620 gcc_cv_ld_compress_debug=0
28621 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 \
28622 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28623 gcc_cv_ld_compress_debug=2
28624 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28625 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28626 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28627 gcc_cv_ld_compress_debug=3
28628 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28629 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 \
28630 && test $in_tree_ld_is_elf = yes; then
28631 gcc_cv_ld_compress_debug=1
28632 fi
28633 elif echo "$ld_ver" | grep GNU > /dev/null; then
28634 if test "$ld_vers_major" -lt 2 \
28635 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28636 gcc_cv_ld_compress_debug=0
28637 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28638 gcc_cv_ld_compress_debug=1
28639 else
28640 gcc_cv_ld_compress_debug=3
28641 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28642 fi
28643 if test $ld_is_gold = yes; then
28644 gcc_cv_ld_compress_debug=2
28645 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28646 fi
28647 else
28648 case "${target}" in
28649 *-*-solaris2*)
28650 # Introduced in Solaris 11.2.
28651 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28652 gcc_cv_ld_compress_debug=3
28653 gcc_cv_ld_compress_debug_option="-z compress-sections"
28654 else
28655 gcc_cv_ld_compress_debug=0
28656 fi
28657 ;;
28658 *)
28659 # Assume linkers other than GNU ld don't support compessed debug
28660 # sections.
28661 gcc_cv_ld_compress_debug=0
28662 ;;
28663 esac
28664 fi
28665
28666 cat >>confdefs.h <<_ACEOF
28667 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28668 _ACEOF
28669
28670
28671 cat >>confdefs.h <<_ACEOF
28672 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28673 _ACEOF
28674
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28676 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28677
28678 if test x"$ld64_flag" = x"yes"; then
28679
28680 # Set defaults for possibly untestable items.
28681 gcc_cv_ld64_export_dynamic=0
28682
28683 if test "$build" = "$host"; then
28684 darwin_try_test=1
28685 else
28686 darwin_try_test=0
28687 fi
28688
28689 # On Darwin, because of FAT library support, it is often possible to execute
28690 # exes from compatible archs even when the host differs from the build system.
28691 case "$build","$host" in
28692 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28693 darwin_try_test=1;;
28694 *) ;;
28695 esac
28696
28697 # If the configurer specified a minimum ld64 version to be supported, then use
28698 # that to determine feature support.
28699 if test x"${gcc_cv_ld64_version}" != x; then
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28701 $as_echo_n "checking ld64 specified version... " >&6; }
28702 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28704 $as_echo "$gcc_cv_ld64_major" >&6; }
28705 if test "$gcc_cv_ld64_major" -ge 236; then
28706 gcc_cv_ld64_export_dynamic=1
28707 fi
28708 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28709 # If the version was not specified, try to find it.
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28711 $as_echo_n "checking linker version... " >&6; }
28712 if test x"${gcc_cv_ld64_version}" = x; then
28713 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28714 fi
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28716 $as_echo "$gcc_cv_ld64_version" >&6; }
28717
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28719 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28720 gcc_cv_ld64_export_dynamic=1
28721 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28722 gcc_cv_ld64_export_dynamic=0
28723 fi
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28725 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28726 fi
28727
28728 if test x"${gcc_cv_ld64_version}" != x; then
28729
28730 cat >>confdefs.h <<_ACEOF
28731 #define LD64_VERSION "${gcc_cv_ld64_version}"
28732 _ACEOF
28733
28734 fi
28735
28736
28737 cat >>confdefs.h <<_ACEOF
28738 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28739 _ACEOF
28740
28741 fi
28742
28743 # --------
28744 # UNSORTED
28745 # --------
28746
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28748 $as_echo_n "checking linker --as-needed support... " >&6; }
28749 if ${gcc_cv_ld_as_needed+:} false; then :
28750 $as_echo_n "(cached) " >&6
28751 else
28752 gcc_cv_ld_as_needed=no
28753 gcc_cv_ld_as_needed_option='--as-needed'
28754 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28755 if test $in_tree_ld = yes ; then
28756 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 \
28757 && test $in_tree_ld_is_elf = yes; then
28758 gcc_cv_ld_as_needed=yes
28759 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28760 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28761 gcc_cv_ld_no_as_needed_option='--pop-state'
28762 fi
28763 fi
28764 elif test x$gcc_cv_ld != x; then
28765 # Check if linker supports --as-needed and --no-as-needed options
28766 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28767 gcc_cv_ld_as_needed=yes
28768 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28769 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28770 && echo "$ld_ver" | grep GNU > /dev/null \
28771 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28772 # Use these options only when both ld.bfd and ld.gold support
28773 # --push-state/--pop-state, which unfortunately wasn't added
28774 # at the same time.
28775 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28776 gcc_cv_ld_no_as_needed_option='--pop-state'
28777 fi
28778 fi
28779 case "$target:$gnu_ld" in
28780 *-*-solaris2*:no)
28781 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28782 # forms.
28783 gcc_cv_ld_as_needed=yes
28784 gcc_cv_ld_as_needed_option="-z ignore"
28785 gcc_cv_ld_no_as_needed_option="-z record"
28786 ;;
28787 esac
28788 fi
28789 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28790 # dl_iterate_phdr, i.e. since Solaris 11.
28791 case "$target" in
28792 *-*-solaris2.1[1-9]*)
28793 case "$target" in
28794 i?86-*-* | x86_64-*-*)
28795 if echo "$ld_ver" | grep GNU > /dev/null; then
28796 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28797 gcc_cv_ld_as_needed=no
28798 fi
28799 ;;
28800 esac
28801 ;;
28802 *-*-solaris2*)
28803 gcc_cv_ld_as_needed=no
28804 ;;
28805 esac
28806
28807 fi
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28809 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28810 if test x"$gcc_cv_ld_as_needed" = xyes; then
28811
28812 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28813
28814
28815 cat >>confdefs.h <<_ACEOF
28816 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28817 _ACEOF
28818
28819
28820 cat >>confdefs.h <<_ACEOF
28821 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28822 _ACEOF
28823
28824 fi
28825
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28827 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28828 saved_LDFLAGS="$LDFLAGS"
28829 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28830 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28832 /* end confdefs.h. */
28833 int main(void) {return 0;}
28834 _ACEOF
28835 if ac_fn_cxx_try_link "$LINENO"; then :
28836 gcc_cv_ld_clearcap=yes; break
28837 else
28838 gcc_cv_ld_clearcap=no
28839 fi
28840 rm -f core conftest.err conftest.$ac_objext \
28841 conftest$ac_exeext conftest.$ac_ext
28842 done
28843 LDFLAGS="$saved_LDFLAGS"
28844 if test "x$gcc_cv_ld_clearcap" = xyes; then
28845
28846 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28847
28848 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28849
28850 fi
28851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28852 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28853
28854 case "$target" in
28855 powerpc*-*-*)
28856 case "$target" in
28857 *le-*-linux*)
28858 emul_name="-melf32lppc"
28859 ;;
28860 *)
28861 emul_name="-melf32ppc"
28862 ;;
28863 esac
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28865 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28866 if ${gcc_cv_ld_ppc_attr+:} false; then :
28867 $as_echo_n "(cached) " >&6
28868 else
28869 gcc_cv_ld_ppc_attr=no
28870 if test x"$ld_is_gold" = xyes; then
28871 gcc_cv_ld_ppc_attr=yes
28872 elif test $in_tree_ld = yes ; then
28873 if test "$gcc_cv_gld_major_version" -eq 2 \
28874 -a "$gcc_cv_gld_minor_version" -ge 28 \
28875 -o "$gcc_cv_gld_major_version" -gt 2; then
28876 gcc_cv_ld_ppc_attr=yes
28877 fi
28878 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28879 # check that merging the long double .gnu_attribute doesn't warn
28880 cat > conftest1.s <<EOF
28881 .gnu_attribute 4,1
28882 EOF
28883 cat > conftest2.s <<EOF
28884 .gnu_attribute 4,9
28885 EOF
28886 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28887 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28888 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28889 && test ! -s conftest.err; then
28890 gcc_cv_ld_ppc_attr=yes
28891 fi
28892 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28893 fi
28894
28895 fi
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28897 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28898 if test x$gcc_cv_ld_ppc_attr = xyes; then
28899
28900 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28901
28902 fi
28903 ;;
28904 esac
28905
28906 case "$target:$tm_file" in
28907 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28908 case "$target" in
28909 *le-*-linux*)
28910 emul_name="-melf64lppc"
28911 ;;
28912 *-*-linux*)
28913 emul_name="-melf64ppc"
28914 ;;
28915 *-*-freebsd*)
28916 emul_name="-melf64ppc_fbsd"
28917 ;;
28918 esac
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28920 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28921 if ${gcc_cv_ld_no_dot_syms+:} false; then :
28922 $as_echo_n "(cached) " >&6
28923 else
28924 gcc_cv_ld_no_dot_syms=no
28925 if test x"$ld_is_gold" = xyes; then
28926 gcc_cv_ld_no_dot_syms=yes
28927 elif test $in_tree_ld = yes ; then
28928 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
28929 gcc_cv_ld_no_dot_syms=yes
28930 fi
28931 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28932 cat > conftest1.s <<EOF
28933 .text
28934 bl .foo
28935 EOF
28936 cat > conftest2.s <<EOF
28937 .section ".opd","aw"
28938 .align 3
28939 .globl foo
28940 .type foo,@function
28941 foo:
28942 .quad .LEfoo,.TOC.@tocbase,0
28943 .text
28944 .LEfoo:
28945 blr
28946 .size foo,.-.LEfoo
28947 EOF
28948 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28949 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28950 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28951 gcc_cv_ld_no_dot_syms=yes
28952 fi
28953 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28954 fi
28955
28956 fi
28957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28958 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28959 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28960
28961 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28962
28963 fi
28964
28965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28966 $as_echo_n "checking linker large toc support... " >&6; }
28967 if ${gcc_cv_ld_large_toc+:} false; then :
28968 $as_echo_n "(cached) " >&6
28969 else
28970 gcc_cv_ld_large_toc=no
28971 if test x"$ld_is_gold" = xyes; then
28972 gcc_cv_ld_large_toc=yes
28973 elif test $in_tree_ld = yes ; then
28974 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
28975 gcc_cv_ld_large_toc=yes
28976 fi
28977 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28978 cat > conftest.s <<EOF
28979 .section ".tbss","awT",@nobits
28980 .align 3
28981 ie0: .space 8
28982 .global _start
28983 .text
28984 _start:
28985 addis 9,13,ie0@got@tprel@ha
28986 ld 9,ie0@got@tprel@l(9)
28987 EOF
28988 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28989 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28990 gcc_cv_ld_large_toc=yes
28991 fi
28992 rm -f conftest conftest.o conftest.s
28993 fi
28994
28995 fi
28996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28997 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28998 if test x"$gcc_cv_ld_large_toc" = xyes; then
28999
29000 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29001
29002 fi
29003
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29005 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29006 if ${gcc_cv_ld_toc_align+:} false; then :
29007 $as_echo_n "(cached) " >&6
29008 else
29009 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29010 cat > conftest.s <<EOF
29011 .global _start
29012 .text
29013 _start:
29014 addis 9,2,x@got@ha
29015 .section .data.rel.ro,"aw",@progbits
29016 .p2align 16
29017 .space 32768
29018 x: .quad .TOC.
29019 EOF
29020 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29021 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29022 gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
29023 fi
29024 rm -f conftest conftest.o conftest.s
29025 fi
29026
29027 fi
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29029 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29030 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29031
29032 cat >>confdefs.h <<_ACEOF
29033 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29034 _ACEOF
29035
29036 fi
29037 ;;
29038 esac
29039
29040 case "$target" in
29041 *-*-aix*)
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29043 $as_echo_n "checking linker large toc support... " >&6; }
29044 if ${gcc_cv_ld_large_toc+:} false; then :
29045 $as_echo_n "(cached) " >&6
29046 else
29047 gcc_cv_ld_large_toc=no
29048 if test x$gcc_cv_as != x ; then
29049 cat > conftest.s <<EOF
29050 .toc
29051 LC..1:
29052 .tc a[TC],a[RW]
29053 .extern a[RW]
29054 .csect .text[PR]
29055 .largetoctest:
29056 addis 9,LC..1@u(2)
29057 ld 3,LC..1@l(9)
29058 EOF
29059 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29060 gcc_cv_ld_large_toc=yes
29061 fi
29062 rm -f conftest conftest.o conftest.s
29063 fi
29064
29065 fi
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29067 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29068 if test x"$gcc_cv_ld_large_toc" = xyes; then
29069
29070 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29071
29072 fi
29073 ;;
29074 esac
29075
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29077 $as_echo_n "checking linker --build-id support... " >&6; }
29078 if ${gcc_cv_ld_buildid+:} false; then :
29079 $as_echo_n "(cached) " >&6
29080 else
29081 gcc_cv_ld_buildid=no
29082 if test $in_tree_ld = yes ; then
29083 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29084 "$gcc_cv_gld_minor_version" -ge 18 -o \
29085 "$gcc_cv_gld_major_version" -gt 2 \
29086 && test $in_tree_ld_is_elf = yes; then
29087 gcc_cv_ld_buildid=yes
29088 fi
29089 elif test x$gcc_cv_ld != x; then
29090 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29091 gcc_cv_ld_buildid=yes
29092 fi
29093 fi
29094 fi
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29096 $as_echo "$gcc_cv_ld_buildid" >&6; }
29097 if test x"$gcc_cv_ld_buildid" = xyes; then
29098
29099 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29100
29101 fi
29102
29103 # Check whether --enable-linker-build-id was given.
29104 if test "${enable_linker_build_id+set}" = set; then :
29105 enableval=$enable_linker_build_id;
29106 else
29107 enable_linker_build_id=no
29108 fi
29109
29110
29111 if test x"$enable_linker_build_id" = xyes; then
29112 if test x"$gcc_cv_ld_buildid" = xyes; then
29113
29114 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29115
29116 else
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29118 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29119 fi
29120 fi
29121
29122 # In binutils 2.21, GNU ld gained support for new emulations fully
29123 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29125 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29126 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29127 $as_echo_n "(cached) " >&6
29128 else
29129 gcc_cv_ld_sol2_emulation=no
29130 if test $in_tree_ld = yes ; then
29131 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29132 "$gcc_cv_gld_minor_version" -ge 21 -o \
29133 "$gcc_cv_gld_major_version" -gt 2 \
29134 && test $in_tree_ld_is_elf = yes; then
29135 gcc_cv_ld_sol2_emulation=yes
29136 fi
29137 elif test x$gcc_cv_ld != x; then
29138 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29139 grep _sol2 > /dev/null; then
29140 gcc_cv_ld_sol2_emulation=yes
29141 fi
29142 fi
29143 fi
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29145 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29146 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29147
29148 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29149
29150 fi
29151
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29153 $as_echo_n "checking linker --sysroot support... " >&6; }
29154 if ${gcc_cv_ld_sysroot+:} false; then :
29155 $as_echo_n "(cached) " >&6
29156 else
29157 gcc_cv_ld_sysroot=no
29158 if test $in_tree_ld = yes ; then
29159 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
29160 gcc_cv_ld_sysroot=yes
29161 fi
29162 elif test x$gcc_cv_ld != x; then
29163 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29164 gcc_cv_ld_sysroot=yes
29165 fi
29166 fi
29167 fi
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29169 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29170 if test x"$gcc_cv_ld_sysroot" = xyes; then
29171
29172 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29173
29174 fi
29175
29176 case $target in
29177 *-*-solaris2*)
29178 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29180 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29181 if ${gcc_cv_solaris_crts+:} false; then :
29182 $as_echo_n "(cached) " >&6
29183 else
29184 gcc_cv_solaris_crts=no
29185 if test x$host != x$target; then
29186 if test "x$with_sysroot" = xyes; then
29187 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29188 else
29189 target_sysroot="${with_sysroot}"
29190 fi
29191 fi
29192 target_libdir="$target_sysroot/usr/lib"
29193 # At the time they were added, gcrt1.o became a symlink for backwards
29194 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29195 case $target in
29196 i?86-*-solaris2* | x86_64-*-solaris2*)
29197 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29198 ;;
29199 sparc*-*-solaris2*)
29200 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29201 ;;
29202 esac
29203 fi
29204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29205 $as_echo "$gcc_cv_solaris_crts" >&6; }
29206 ;;
29207 esac
29208 if test x$gcc_cv_solaris_crts = xyes; then
29209
29210 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29211
29212 fi
29213
29214 # Check whether --enable-libssp was given.
29215 if test "${enable_libssp+set}" = set; then :
29216 enableval=$enable_libssp; case "${enableval}" in
29217 yes|no)
29218 ;;
29219 *)
29220 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29221 ;;
29222 esac
29223 fi
29224
29225
29226 # Test for stack protector support in target C library.
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29228 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29229 if ${gcc_cv_libc_provides_ssp+:} false; then :
29230 $as_echo_n "(cached) " >&6
29231 else
29232 gcc_cv_libc_provides_ssp=no
29233 if test "x$enable_libssp" = "xno"; then
29234 gcc_cv_libc_provides_ssp=yes
29235 elif test "x$enable_libssp" = "xyes"; then
29236 gcc_cv_libc_provides_ssp=no
29237 else
29238 case "$target" in
29239 *-*-musl*)
29240 # All versions of musl provide stack protector
29241 gcc_cv_libc_provides_ssp=yes;;
29242 *-*-linux* | *-*-kfreebsd*-gnu)
29243 # glibc 2.4 and later provides __stack_chk_fail and
29244 # either __stack_chk_guard, or TLS access to stack guard canary.
29245
29246 if test $glibc_version_major -gt 2 \
29247 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29248 gcc_cv_libc_provides_ssp=yes
29249 else
29250
29251 if test -f $target_header_dir/features.h \
29252 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29253 $target_header_dir/features.h > /dev/null; then
29254 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29255 $target_header_dir/features.h > /dev/null && \
29256 test -f $target_header_dir/bits/uClibc_config.h && \
29257 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29258 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29259 gcc_cv_libc_provides_ssp=yes
29260 fi
29261 # all versions of Bionic support stack protector
29262 elif test -f $target_header_dir/sys/cdefs.h \
29263 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29264 $target_header_dir/sys/cdefs.h > /dev/null; then
29265 gcc_cv_libc_provides_ssp=yes
29266 fi
29267 fi
29268 ;;
29269 *-*-gnu*)
29270 # Avoid complicated tests (see
29271 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29272 # simply assert that glibc does provide this, which is true for all
29273 # realistically usable GNU/Hurd configurations.
29274 # All supported versions of musl provide it as well
29275 gcc_cv_libc_provides_ssp=yes;;
29276 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29277 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29278 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29279 gcc_cv_libc_provides_ssp=yes
29280 else
29281 echo "no __stack_chk_fail on this target"
29282 fi
29283
29284 ;;
29285 *) gcc_cv_libc_provides_ssp=no ;;
29286 esac
29287 fi
29288 fi
29289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29290 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29291
29292 if test x$gcc_cv_libc_provides_ssp = xyes; then
29293
29294 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29295
29296 fi
29297
29298 # Check whether --enable-default-ssp was given.
29299 # Check whether --enable-default-ssp was given.
29300 if test "${enable_default_ssp+set}" = set; then :
29301 enableval=$enable_default_ssp;
29302 if test x$gcc_cv_libc_provides_ssp = xyes; then
29303 case "$target" in
29304 ia64*-*-*) enable_default_ssp=no ;;
29305 *) enable_default_ssp=$enableval ;;
29306 esac
29307 else
29308 enable_default_ssp=no
29309 fi
29310 else
29311 enable_default_ssp=no
29312 fi
29313
29314 if test x$enable_default_ssp = xyes ; then
29315
29316 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29317
29318 fi
29319
29320
29321 # Test for <sys/sdt.h> on the target.
29322
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29324 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29325 have_sys_sdt_h=no
29326 if test -f $target_header_dir/sys/sdt.h; then
29327 have_sys_sdt_h=yes
29328
29329 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29330
29331 fi
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29333 $as_echo "$have_sys_sdt_h" >&6; }
29334
29335 # Check if TFmode long double should be used by default or not.
29336 # Some glibc targets used DFmode long double, but with glibc 2.4
29337 # and later they can use TFmode.
29338 case "$target" in
29339 powerpc*-*-linux* | \
29340 sparc*-*-linux* | \
29341 s390*-*-linux* | \
29342 alpha*-*-linux*)
29343
29344 # Check whether --with-long-double-128 was given.
29345 if test "${with_long_double_128+set}" = set; then :
29346 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29347 else
29348
29349 if test $glibc_version_major -gt 2 \
29350 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29351 gcc_cv_target_ldbl128=yes
29352 else
29353
29354 gcc_cv_target_ldbl128=no
29355 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29356 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29357 && gcc_cv_target_ldbl128=yes
29358
29359 fi
29360 fi
29361
29362 ;;
29363 esac
29364 if test x$gcc_cv_target_ldbl128 = xyes; then
29365
29366 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29367
29368 fi
29369
29370 # Check if TFmode long double target should use the IBM extended double or IEEE
29371 # 128-bit floating point formats if long doubles are 128-bits long. The long
29372 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29373 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29374 # libgcc.
29375
29376 # Check whether --with-long-double-format was given.
29377 if test "${with_long_double_format+set}" = set; then :
29378 withval=$with_long_double_format;
29379 case "$target:$with_long_double_format" in
29380 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29381 :
29382 ;;
29383 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29384 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29385 case "$with_cpu" in
29386 power7 | power8 | power9 | power1*)
29387 :
29388 ;;
29389 *)
29390 as_fn_error $? "Configuration option --with-long-double-format is only \
29391 supported if the default cpu is power7 or newer" "$LINENO" 5
29392 with_long_double_format=""
29393 ;;
29394 esac
29395 ;;
29396 xpowerpc64*-*-linux*:*)
29397 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29398 with_long_double_format=""
29399 ;;
29400 *)
29401 as_fn_error $? "Configure option --with-long-double-format is only supported \
29402 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29403 with_long_double_format=""
29404 ;;
29405 esac
29406 fi
29407
29408
29409 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29410 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29411 gcc_cv_libc_provides_hwcap_in_tcb=no
29412 case "$target" in
29413 powerpc*-*-linux*)
29414
29415 if test $glibc_version_major -gt 2 \
29416 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29417 gcc_cv_libc_provides_hwcap_in_tcb=yes
29418 fi
29419 ;;
29420 esac
29421 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29422
29423 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29424
29425 fi
29426
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29428 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29429 gcc_cv_target_dl_iterate_phdr=unknown
29430 case "$target" in
29431 *-*-solaris2*)
29432 # <link.h> needs both a dl_iterate_phdr declaration and support for
29433 # compilation with largefile support.
29434 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29435 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29436 gcc_cv_target_dl_iterate_phdr=yes
29437 else
29438 gcc_cv_target_dl_iterate_phdr=no
29439 fi
29440 ;;
29441 *-*-dragonfly* | *-*-freebsd*)
29442 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29443 gcc_cv_target_dl_iterate_phdr=yes
29444 else
29445 gcc_cv_target_dl_iterate_phdr=no
29446 fi
29447 ;;
29448 *-linux-musl*)
29449 gcc_cv_target_dl_iterate_phdr=yes
29450 ;;
29451 esac
29452
29453 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29454
29455 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29456
29457 fi
29458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29459 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29460
29461 # We no longer support different GC mechanisms. Emit an error if
29462 # the user configures with --with-gc.
29463
29464 # Check whether --with-gc was given.
29465 if test "${with_gc+set}" = set; then :
29466 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29467 fi
29468
29469
29470 # Libraries to use on the host. This will normally be set by the top
29471 # level Makefile. Here we simply capture the value for our Makefile.
29472 if test -z "${HOST_LIBS+set}"; then
29473 HOST_LIBS=
29474 fi
29475
29476
29477 # Use the system's zlib library.
29478
29479 # Use the system's zlib library.
29480 zlibdir="-L\$(top_builddir)/../zlib"
29481 zlibinc="-I\$(top_srcdir)/../zlib"
29482
29483 # Check whether --with-system-zlib was given.
29484 if test "${with_system_zlib+set}" = set; then :
29485 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29486 zlibdir=
29487 zlibinc=
29488 fi
29489
29490 fi
29491
29492
29493
29494
29495
29496
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29498 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29499 # Check whether --enable-maintainer-mode was given.
29500 if test "${enable_maintainer_mode+set}" = set; then :
29501 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29502 else
29503 maintainer_mode=no
29504 fi
29505
29506
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29508 $as_echo "$maintainer_mode" >&6; }
29509
29510 if test "$maintainer_mode" = "yes"; then
29511 MAINT=''
29512 else
29513 MAINT='#'
29514 fi
29515
29516
29517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29518 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29519 # Check whether --enable-link-mutex was given.
29520 if test "${enable_link_mutex+set}" = set; then :
29521 enableval=$enable_link_mutex; do_link_mutex=$enableval
29522 else
29523 do_link_mutex=no
29524 fi
29525
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29527 $as_echo "$do_link_mutex" >&6; }
29528
29529 if test "$do_link_mutex" = "yes"; then
29530 DO_LINK_MUTEX=true
29531 else
29532 DO_LINK_MUTEX=false
29533 fi
29534
29535
29536 # --------------
29537 # Language hooks
29538 # --------------
29539
29540 # Make empty files to contain the specs and options for each language.
29541 # Then add #include lines to for a compiler that has specs and/or options.
29542
29543 subdirs=
29544 lang_opt_files=
29545 lang_specs_files=
29546 lang_tree_files=
29547 # These (without "all_") are set in each config-lang.in.
29548 # `language' must be a single word so is spelled singularly.
29549 all_languages=
29550 all_compilers=
29551 all_outputs='Makefile'
29552 # List of language makefile fragments.
29553 all_lang_makefrags=
29554 # Additional files for gengtype
29555 all_gtfiles="$target_gtfiles"
29556
29557 # These are the languages that are set in --enable-languages,
29558 # and are available in the GCC tree.
29559 all_selected_languages=
29560
29561 # Add the language fragments.
29562 # Languages are added via two mechanisms. Some information must be
29563 # recorded in makefile variables, these are defined in config-lang.in.
29564 # We accumulate them and plug them into the main Makefile.
29565 # The other mechanism is a set of hooks for each of the main targets
29566 # like `clean', `install', etc.
29567
29568 language_hooks="Make-hooks"
29569
29570 for lang in ${srcdir}/*/config-lang.in
29571 do
29572 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29573
29574 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29575 if test "x$lang_alias" = x
29576 then
29577 echo "$lang doesn't set \$language." 1>&2
29578 exit 1
29579 fi
29580 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29581 subdirs="$subdirs $subdir"
29582
29583 # $gcc_subdir is where the gcc integration files are to be found
29584 # for a language, both for internal compiler purposes (compiler
29585 # sources implementing front-end to GCC tree converters), and for
29586 # build infrastructure purposes (Make-lang.in, etc.)
29587 #
29588 # This will be <subdir> (relative to $srcdir) if a line like
29589 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29590 # is found in <langdir>/config-lang.in, and will remain <langdir>
29591 # otherwise.
29592 #
29593 # Except for the language alias (fetched above), the regular
29594 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29595 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29596 # only this and the language alias.
29597
29598 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29599 if [ "$gcc_subdir" = "" ]; then
29600 gcc_subdir="$subdir"
29601 fi
29602
29603 case ",$enable_languages," in
29604 *,$lang_alias,*)
29605 all_selected_languages="$all_selected_languages $lang_alias"
29606 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29607 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29608 fi
29609 ;;
29610 esac
29611
29612 language=
29613 boot_language=
29614 compilers=
29615 outputs=
29616 gtfiles=
29617 subdir_requires=
29618 . ${srcdir}/$gcc_subdir/config-lang.in
29619 if test "x$language" = x
29620 then
29621 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29622 exit 1
29623 fi
29624
29625 ok=:
29626 case ",$enable_languages," in
29627 *,$lang_alias,*) ;;
29628 *)
29629 for i in $subdir_requires; do
29630 test -f "${srcdir}/$i/config-lang.in" && continue
29631 ok=false
29632 break
29633 done
29634 ;;
29635 esac
29636 $ok || continue
29637
29638 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29639 if test -f $srcdir/$gcc_subdir/lang.opt; then
29640 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29641 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29642 fi
29643 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29644 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29645 fi
29646 all_languages="$all_languages $language"
29647 all_compilers="$all_compilers $compilers"
29648 all_outputs="$all_outputs $outputs"
29649 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29650 case ",$enable_languages," in
29651 *,lto,*)
29652
29653 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29654
29655 enable_lto=yes
29656
29657 ;;
29658 *) ;;
29659 esac
29660 done
29661
29662 check_languages=
29663 for language in $all_selected_languages
29664 do
29665 check_languages="$check_languages check-$language"
29666 done
29667
29668 selftest_languages=
29669 for language in $all_selected_languages
29670 do
29671 selftest_languages="$selftest_languages selftest-$language"
29672 done
29673
29674 # We link each language in with a set of hooks, reached indirectly via
29675 # lang.${target}. Only do so for selected languages.
29676
29677 rm -f Make-hooks
29678 touch Make-hooks
29679 target_list="all.cross start.encap rest.encap tags \
29680 install-common install-man install-info install-pdf install-html dvi \
29681 pdf html uninstall info man srcextra srcman srcinfo \
29682 mostlyclean clean distclean maintainer-clean install-plugin"
29683
29684 for t in $target_list
29685 do
29686 x=
29687 for lang in $all_selected_languages
29688 do
29689 x="$x $lang.$t"
29690 done
29691 echo "lang.$t: $x" >> Make-hooks
29692 done
29693
29694 # --------
29695 # Option include files
29696 # --------
29697
29698 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29699 option_includes="option-includes.mk"
29700
29701
29702 # --------
29703 # UNSORTED
29704 # --------
29705
29706 # Create .gdbinit.
29707
29708 echo "dir ." > .gdbinit
29709 echo "dir ${srcdir}" >> .gdbinit
29710 if test x$gdb_needs_out_file_path = xyes
29711 then
29712 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29713 fi
29714 if test "x$subdirs" != x; then
29715 for s in $subdirs
29716 do
29717 echo "dir ${srcdir}/$s" >> .gdbinit
29718 done
29719 fi
29720 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29721 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29722
29723 # Put a breakpoint on __asan_report_error to help with debugging buffer
29724 # overflow.
29725 case "$CFLAGS" in
29726 *-fsanitize=address*)
29727 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29728 ;;
29729 esac
29730
29731 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29732
29733
29734
29735 # Find a directory in which to install a shared libgcc.
29736
29737 # Check whether --enable-version-specific-runtime-libs was given.
29738 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29739 enableval=$enable_version_specific_runtime_libs;
29740 fi
29741
29742
29743 # Substitute configuration variables
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810 # Echo link setup.
29811 if test x${build} = x${host} ; then
29812 if test x${host} = x${target} ; then
29813 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29814 else
29815 echo "Links are now set up to build a cross-compiler" 1>&2
29816 echo " from ${host} to ${target}." 1>&2
29817 fi
29818 else
29819 if test x${host} = x${target} ; then
29820 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29821 echo " for ${target}." 1>&2
29822 else
29823 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29824 echo " from ${host} to ${target}." 1>&2
29825 fi
29826 fi
29827
29828
29829
29830
29831
29832
29833 if test "x${ISLLIBS}" != "x" ; then
29834
29835 $as_echo "#define HAVE_isl 1" >>confdefs.h
29836
29837 fi
29838
29839 # Check for plugin support
29840 # Check whether --enable-plugin was given.
29841 if test "${enable_plugin+set}" = set; then :
29842 enableval=$enable_plugin; enable_plugin=$enableval
29843 else
29844 enable_plugin=yes; default_plugin=yes
29845 fi
29846
29847
29848 pluginlibs=
29849 plugin_check=yes
29850
29851 case "${host}" in
29852 *-*-mingw*)
29853 # Since plugin support under MinGW is not as straightforward as on
29854 # other platforms (e.g., we have to link import library, etc), we
29855 # only enable it if explicitly requested.
29856 if test x"$default_plugin" = x"yes"; then
29857 enable_plugin=no
29858 elif test x"$enable_plugin" = x"yes"; then
29859 # Use make's target variable to derive import library name.
29860 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29861 plugin_check=no
29862 fi
29863 ;;
29864 *-*-darwin*)
29865 if test x$build = x$host; then
29866 export_sym_check="nm${exeext} -g"
29867 elif test x$host = x$target; then
29868 export_sym_check="$gcc_cv_nm -g"
29869 else
29870 export_sym_check=
29871 fi
29872 ;;
29873 *)
29874 if test x$build = x$host; then
29875 export_sym_check="objdump${exeext} -T"
29876 elif test x$host = x$target; then
29877 export_sym_check="$gcc_cv_objdump -T"
29878 else
29879 export_sym_check=
29880 fi
29881 ;;
29882 esac
29883
29884 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29885
29886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29887 $as_echo_n "checking for exported symbols... " >&6; }
29888 if test "x$export_sym_check" != x; then
29889 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29890 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29891 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29892 : # No need to use a flag
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29894 $as_echo "yes" >&6; }
29895 else
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29897 $as_echo "yes" >&6; }
29898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29899 $as_echo_n "checking for -rdynamic... " >&6; }
29900 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29901 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29902 plugin_rdynamic=yes
29903 pluginlibs="-rdynamic"
29904 else
29905 plugin_rdynamic=no
29906 enable_plugin=no
29907 fi
29908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29909 $as_echo "$plugin_rdynamic" >&6; }
29910 fi
29911 else
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29913 $as_echo "unable to check" >&6; }
29914 fi
29915
29916 # Check -ldl
29917 saved_LIBS="$LIBS"
29918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29919 $as_echo_n "checking for library containing dlopen... " >&6; }
29920 if ${ac_cv_search_dlopen+:} false; then :
29921 $as_echo_n "(cached) " >&6
29922 else
29923 ac_func_search_save_LIBS=$LIBS
29924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29925 /* end confdefs.h. */
29926
29927 /* Override any GCC internal prototype to avoid an error.
29928 Use char because int might match the return type of a GCC
29929 builtin and then its argument prototype would still apply. */
29930 #ifdef __cplusplus
29931 extern "C"
29932 #endif
29933 char dlopen ();
29934 int
29935 main ()
29936 {
29937 return dlopen ();
29938 ;
29939 return 0;
29940 }
29941 _ACEOF
29942 for ac_lib in '' dl; do
29943 if test -z "$ac_lib"; then
29944 ac_res="none required"
29945 else
29946 ac_res=-l$ac_lib
29947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29948 fi
29949 if ac_fn_cxx_try_link "$LINENO"; then :
29950 ac_cv_search_dlopen=$ac_res
29951 fi
29952 rm -f core conftest.err conftest.$ac_objext \
29953 conftest$ac_exeext
29954 if ${ac_cv_search_dlopen+:} false; then :
29955 break
29956 fi
29957 done
29958 if ${ac_cv_search_dlopen+:} false; then :
29959
29960 else
29961 ac_cv_search_dlopen=no
29962 fi
29963 rm conftest.$ac_ext
29964 LIBS=$ac_func_search_save_LIBS
29965 fi
29966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29967 $as_echo "$ac_cv_search_dlopen" >&6; }
29968 ac_res=$ac_cv_search_dlopen
29969 if test "$ac_res" != no; then :
29970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29971
29972 fi
29973
29974 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29975 pluginlibs="$pluginlibs -ldl"
29976 fi
29977 LIBS="$saved_LIBS"
29978
29979 # Check that we can build shared objects with -fPIC -shared
29980 saved_LDFLAGS="$LDFLAGS"
29981 saved_CFLAGS="$CFLAGS"
29982 case "${host}" in
29983 *-*-darwin*)
29984 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29985 CFLAGS="$CFLAGS -fPIC"
29986 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29987 ;;
29988 *)
29989 CFLAGS="$CFLAGS -fPIC"
29990 LDFLAGS="$LDFLAGS -fPIC -shared"
29991 ;;
29992 esac
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29994 $as_echo_n "checking for -fPIC -shared... " >&6; }
29995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29996 /* end confdefs.h. */
29997 extern int X;
29998 int
29999 main ()
30000 {
30001 return X == 0;
30002 ;
30003 return 0;
30004 }
30005 _ACEOF
30006 if ac_fn_cxx_try_link "$LINENO"; then :
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30008 $as_echo "yes" >&6; }; have_pic_shared=yes
30009 else
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30011 $as_echo "no" >&6; }; have_pic_shared=no
30012 fi
30013 rm -f core conftest.err conftest.$ac_objext \
30014 conftest$ac_exeext conftest.$ac_ext
30015 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30016 pluginlibs=
30017 enable_plugin=no
30018 fi
30019 LDFLAGS="$saved_LDFLAGS"
30020 CFLAGS="$saved_CFLAGS"
30021
30022 # If plugin support had been requested but not available, fail.
30023 if test x"$enable_plugin" = x"no" ; then
30024 if test x"$default_plugin" != x"yes"; then
30025 as_fn_error $? "
30026 Building GCC with plugin support requires a host that supports
30027 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30028 fi
30029 fi
30030 fi
30031
30032
30033
30034 if test x"$enable_plugin" = x"yes"; then
30035
30036 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30037
30038 fi
30039
30040
30041 # Enable --enable-host-shared
30042 # Check whether --enable-host-shared was given.
30043 if test "${enable_host_shared+set}" = set; then :
30044 enableval=$enable_host_shared; PICFLAG=-fPIC
30045 else
30046 PICFLAG=
30047 fi
30048
30049
30050
30051
30052
30053 # Check whether --enable-libquadmath-support was given.
30054 if test "${enable_libquadmath_support+set}" = set; then :
30055 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30056 else
30057 ENABLE_LIBQUADMATH_SUPPORT=yes
30058 fi
30059
30060 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30061
30062 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30063
30064 fi
30065
30066
30067 # Specify what hash style to use by default.
30068
30069 # Check whether --with-linker-hash-style was given.
30070 if test "${with_linker_hash_style+set}" = set; then :
30071 withval=$with_linker_hash_style; case x"$withval" in
30072 xsysv)
30073 LINKER_HASH_STYLE=sysv
30074 ;;
30075 xgnu)
30076 LINKER_HASH_STYLE=gnu
30077 ;;
30078 xboth)
30079 LINKER_HASH_STYLE=both
30080 ;;
30081 *)
30082 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30083 ;;
30084 esac
30085 else
30086 LINKER_HASH_STYLE=''
30087 fi
30088
30089 if test x"${LINKER_HASH_STYLE}" != x; then
30090
30091 cat >>confdefs.h <<_ACEOF
30092 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30093 _ACEOF
30094
30095 fi
30096
30097 # Specify what should be the default of -fdiagnostics-color option.
30098
30099 # Check whether --with-diagnostics-color was given.
30100 if test "${with_diagnostics_color+set}" = set; then :
30101 withval=$with_diagnostics_color; case x"$withval" in
30102 xnever)
30103 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30104 ;;
30105 xauto)
30106 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30107 ;;
30108 xauto-if-env)
30109 DIAGNOSTICS_COLOR_DEFAULT=-1
30110 ;;
30111 xalways)
30112 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30113 ;;
30114 *)
30115 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30116 ;;
30117 esac
30118 else
30119 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30120 fi
30121
30122
30123 cat >>confdefs.h <<_ACEOF
30124 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30125 _ACEOF
30126
30127
30128 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30129 # of jit/jit-playback.c.
30130 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30131 echo "gcc_driver_version: ${gcc_driver_version}"
30132 cat > gcc-driver-name.h <<EOF
30133 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30134 EOF
30135
30136 # Check whether --enable-default-pie was given.
30137 # Check whether --enable-default-pie was given.
30138 if test "${enable_default_pie+set}" = set; then :
30139 enableval=$enable_default_pie; enable_default_pie=$enableval
30140 else
30141 enable_default_pie=no
30142 fi
30143
30144 if test x$enable_default_pie = xyes ; then
30145
30146 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30147
30148 fi
30149
30150
30151 # Check if -fno-PIE works.
30152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30153 $as_echo_n "checking for -fno-PIE option... " >&6; }
30154 if ${gcc_cv_c_no_fpie+:} false; then :
30155 $as_echo_n "(cached) " >&6
30156 else
30157 saved_CXXFLAGS="$CXXFLAGS"
30158 CXXFLAGS="$CXXFLAGS -fno-PIE"
30159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30160 /* end confdefs.h. */
30161 int main(void) {return 0;}
30162 _ACEOF
30163 if ac_fn_cxx_try_compile "$LINENO"; then :
30164 gcc_cv_c_no_fpie=yes
30165 else
30166 gcc_cv_c_no_fpie=no
30167 fi
30168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30169 CXXFLAGS="$saved_CXXFLAGS"
30170 fi
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30172 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30173 if test "$gcc_cv_c_no_fpie" = "yes"; then
30174 NO_PIE_CFLAGS="-fno-PIE"
30175 fi
30176
30177
30178 # Check if -no-pie works.
30179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30180 $as_echo_n "checking for -no-pie option... " >&6; }
30181 if ${gcc_cv_no_pie+:} false; then :
30182 $as_echo_n "(cached) " >&6
30183 else
30184 saved_LDFLAGS="$LDFLAGS"
30185 LDFLAGS="$LDFLAGS -no-pie"
30186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30187 /* end confdefs.h. */
30188 int main(void) {return 0;}
30189 _ACEOF
30190 if ac_fn_cxx_try_link "$LINENO"; then :
30191 gcc_cv_no_pie=yes
30192 else
30193 gcc_cv_no_pie=no
30194 fi
30195 rm -f core conftest.err conftest.$ac_objext \
30196 conftest$ac_exeext conftest.$ac_ext
30197 LDFLAGS="$saved_LDFLAGS"
30198 fi
30199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30200 $as_echo "$gcc_cv_no_pie" >&6; }
30201 if test "$gcc_cv_no_pie" = "yes"; then
30202 NO_PIE_FLAG="-no-pie"
30203 fi
30204
30205
30206 # Check linker supports '-z bndplt'
30207 ld_bndplt_support=no
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30209 $as_echo_n "checking linker -z bndplt option... " >&6; }
30210 if test x"$ld_is_gold" = xno; then
30211 if test $in_tree_ld = yes ; then
30212 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
30213 ld_bndplt_support=yes
30214 fi
30215 elif test x$gcc_cv_ld != x; then
30216 # Check if linker supports -a bndplt option
30217 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30218 ld_bndplt_support=yes
30219 fi
30220 fi
30221 fi
30222 if test x"$ld_bndplt_support" = xyes; then
30223
30224 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30225
30226 fi
30227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30228 $as_echo "$ld_bndplt_support" >&6; }
30229
30230 # Check linker supports '--push-state'/'--pop-state'
30231 ld_pushpopstate_support=no
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30233 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30234 if test x"$ld_is_gold" = xno; then
30235 if test $in_tree_ld = yes ; then
30236 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
30237 ld_pushpopstate_support=yes
30238 fi
30239 elif test x$gcc_cv_ld != x; then
30240 # Check if linker supports --push-state/--pop-state options
30241 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30242 ld_pushpopstate_support=yes
30243 fi
30244 fi
30245 fi
30246 if test x"$ld_pushpopstate_support" = xyes; then
30247
30248 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30249
30250 fi
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30252 $as_echo "$ld_pushpopstate_support" >&6; }
30253
30254 # Configure the subdirectories
30255 # AC_CONFIG_SUBDIRS($subdirs)
30256
30257 # Create the Makefile
30258 # and configure language subdirectories
30259 ac_config_files="$ac_config_files $all_outputs"
30260
30261
30262 ac_config_commands="$ac_config_commands default"
30263
30264 cat >confcache <<\_ACEOF
30265 # This file is a shell script that caches the results of configure
30266 # tests run on this system so they can be shared between configure
30267 # scripts and configure runs, see configure's option --config-cache.
30268 # It is not useful on other systems. If it contains results you don't
30269 # want to keep, you may remove or edit it.
30270 #
30271 # config.status only pays attention to the cache file if you give it
30272 # the --recheck option to rerun configure.
30273 #
30274 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30275 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30276 # following values.
30277
30278 _ACEOF
30279
30280 # The following way of writing the cache mishandles newlines in values,
30281 # but we know of no workaround that is simple, portable, and efficient.
30282 # So, we kill variables containing newlines.
30283 # Ultrix sh set writes to stderr and can't be redirected directly,
30284 # and sets the high bit in the cache file unless we assign to the vars.
30285 (
30286 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30287 eval ac_val=\$$ac_var
30288 case $ac_val in #(
30289 *${as_nl}*)
30290 case $ac_var in #(
30291 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30292 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30293 esac
30294 case $ac_var in #(
30295 _ | IFS | as_nl) ;; #(
30296 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30297 *) { eval $ac_var=; unset $ac_var;} ;;
30298 esac ;;
30299 esac
30300 done
30301
30302 (set) 2>&1 |
30303 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30304 *${as_nl}ac_space=\ *)
30305 # `set' does not quote correctly, so add quotes: double-quote
30306 # substitution turns \\\\ into \\, and sed turns \\ into \.
30307 sed -n \
30308 "s/'/'\\\\''/g;
30309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30310 ;; #(
30311 *)
30312 # `set' quotes correctly as required by POSIX, so do not add quotes.
30313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30314 ;;
30315 esac |
30316 sort
30317 ) |
30318 sed '
30319 /^ac_cv_env_/b end
30320 t clear
30321 :clear
30322 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30323 t end
30324 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30325 :end' >>confcache
30326 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30327 if test -w "$cache_file"; then
30328 if test "x$cache_file" != "x/dev/null"; then
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30330 $as_echo "$as_me: updating cache $cache_file" >&6;}
30331 if test ! -f "$cache_file" || test -h "$cache_file"; then
30332 cat confcache >"$cache_file"
30333 else
30334 case $cache_file in #(
30335 */* | ?:*)
30336 mv -f confcache "$cache_file"$$ &&
30337 mv -f "$cache_file"$$ "$cache_file" ;; #(
30338 *)
30339 mv -f confcache "$cache_file" ;;
30340 esac
30341 fi
30342 fi
30343 else
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30345 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30346 fi
30347 fi
30348 rm -f confcache
30349
30350 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30351 # Let make expand exec_prefix.
30352 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30353
30354 DEFS=-DHAVE_CONFIG_H
30355
30356 ac_libobjs=
30357 ac_ltlibobjs=
30358 U=
30359 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30360 # 1. Remove the extension, and $U if already installed.
30361 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30362 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30363 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30364 # will be set to the directory where LIBOBJS objects are built.
30365 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30366 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30367 done
30368 LIBOBJS=$ac_libobjs
30369
30370 LTLIBOBJS=$ac_ltlibobjs
30371
30372
30373
30374
30375 : "${CONFIG_STATUS=./config.status}"
30376 ac_write_fail=0
30377 ac_clean_files_save=$ac_clean_files
30378 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30380 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30381 as_write_fail=0
30382 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30383 #! $SHELL
30384 # Generated by $as_me.
30385 # Run this file to recreate the current configuration.
30386 # Compiler output produced by configure, useful for debugging
30387 # configure, is in config.log if it exists.
30388
30389 debug=false
30390 ac_cs_recheck=false
30391 ac_cs_silent=false
30392
30393 SHELL=\${CONFIG_SHELL-$SHELL}
30394 export SHELL
30395 _ASEOF
30396 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30397 ## -------------------- ##
30398 ## M4sh Initialization. ##
30399 ## -------------------- ##
30400
30401 # Be more Bourne compatible
30402 DUALCASE=1; export DUALCASE # for MKS sh
30403 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30404 emulate sh
30405 NULLCMD=:
30406 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30407 # is contrary to our usage. Disable this feature.
30408 alias -g '${1+"$@"}'='"$@"'
30409 setopt NO_GLOB_SUBST
30410 else
30411 case `(set -o) 2>/dev/null` in #(
30412 *posix*) :
30413 set -o posix ;; #(
30414 *) :
30415 ;;
30416 esac
30417 fi
30418
30419
30420 as_nl='
30421 '
30422 export as_nl
30423 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30424 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30425 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30426 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30427 # Prefer a ksh shell builtin over an external printf program on Solaris,
30428 # but without wasting forks for bash or zsh.
30429 if test -z "$BASH_VERSION$ZSH_VERSION" \
30430 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30431 as_echo='print -r --'
30432 as_echo_n='print -rn --'
30433 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30434 as_echo='printf %s\n'
30435 as_echo_n='printf %s'
30436 else
30437 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30438 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30439 as_echo_n='/usr/ucb/echo -n'
30440 else
30441 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30442 as_echo_n_body='eval
30443 arg=$1;
30444 case $arg in #(
30445 *"$as_nl"*)
30446 expr "X$arg" : "X\\(.*\\)$as_nl";
30447 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30448 esac;
30449 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30450 '
30451 export as_echo_n_body
30452 as_echo_n='sh -c $as_echo_n_body as_echo'
30453 fi
30454 export as_echo_body
30455 as_echo='sh -c $as_echo_body as_echo'
30456 fi
30457
30458 # The user is always right.
30459 if test "${PATH_SEPARATOR+set}" != set; then
30460 PATH_SEPARATOR=:
30461 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30462 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30463 PATH_SEPARATOR=';'
30464 }
30465 fi
30466
30467
30468 # IFS
30469 # We need space, tab and new line, in precisely that order. Quoting is
30470 # there to prevent editors from complaining about space-tab.
30471 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30472 # splitting by setting IFS to empty value.)
30473 IFS=" "" $as_nl"
30474
30475 # Find who we are. Look in the path if we contain no directory separator.
30476 as_myself=
30477 case $0 in #((
30478 *[\\/]* ) as_myself=$0 ;;
30479 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30480 for as_dir in $PATH
30481 do
30482 IFS=$as_save_IFS
30483 test -z "$as_dir" && as_dir=.
30484 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30485 done
30486 IFS=$as_save_IFS
30487
30488 ;;
30489 esac
30490 # We did not find ourselves, most probably we were run as `sh COMMAND'
30491 # in which case we are not to be found in the path.
30492 if test "x$as_myself" = x; then
30493 as_myself=$0
30494 fi
30495 if test ! -f "$as_myself"; then
30496 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30497 exit 1
30498 fi
30499
30500 # Unset variables that we do not need and which cause bugs (e.g. in
30501 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30502 # suppresses any "Segmentation fault" message there. '((' could
30503 # trigger a bug in pdksh 5.2.14.
30504 for as_var in BASH_ENV ENV MAIL MAILPATH
30505 do eval test x\${$as_var+set} = xset \
30506 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30507 done
30508 PS1='$ '
30509 PS2='> '
30510 PS4='+ '
30511
30512 # NLS nuisances.
30513 LC_ALL=C
30514 export LC_ALL
30515 LANGUAGE=C
30516 export LANGUAGE
30517
30518 # CDPATH.
30519 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30520
30521
30522 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30523 # ----------------------------------------
30524 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30525 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30526 # script with STATUS, using 1 if that was 0.
30527 as_fn_error ()
30528 {
30529 as_status=$1; test $as_status -eq 0 && as_status=1
30530 if test "$4"; then
30531 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30532 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30533 fi
30534 $as_echo "$as_me: error: $2" >&2
30535 as_fn_exit $as_status
30536 } # as_fn_error
30537
30538
30539 # as_fn_set_status STATUS
30540 # -----------------------
30541 # Set $? to STATUS, without forking.
30542 as_fn_set_status ()
30543 {
30544 return $1
30545 } # as_fn_set_status
30546
30547 # as_fn_exit STATUS
30548 # -----------------
30549 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30550 as_fn_exit ()
30551 {
30552 set +e
30553 as_fn_set_status $1
30554 exit $1
30555 } # as_fn_exit
30556
30557 # as_fn_unset VAR
30558 # ---------------
30559 # Portably unset VAR.
30560 as_fn_unset ()
30561 {
30562 { eval $1=; unset $1;}
30563 }
30564 as_unset=as_fn_unset
30565 # as_fn_append VAR VALUE
30566 # ----------------------
30567 # Append the text in VALUE to the end of the definition contained in VAR. Take
30568 # advantage of any shell optimizations that allow amortized linear growth over
30569 # repeated appends, instead of the typical quadratic growth present in naive
30570 # implementations.
30571 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30572 eval 'as_fn_append ()
30573 {
30574 eval $1+=\$2
30575 }'
30576 else
30577 as_fn_append ()
30578 {
30579 eval $1=\$$1\$2
30580 }
30581 fi # as_fn_append
30582
30583 # as_fn_arith ARG...
30584 # ------------------
30585 # Perform arithmetic evaluation on the ARGs, and store the result in the
30586 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30587 # must be portable across $(()) and expr.
30588 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30589 eval 'as_fn_arith ()
30590 {
30591 as_val=$(( $* ))
30592 }'
30593 else
30594 as_fn_arith ()
30595 {
30596 as_val=`expr "$@" || test $? -eq 1`
30597 }
30598 fi # as_fn_arith
30599
30600
30601 if expr a : '\(a\)' >/dev/null 2>&1 &&
30602 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30603 as_expr=expr
30604 else
30605 as_expr=false
30606 fi
30607
30608 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30609 as_basename=basename
30610 else
30611 as_basename=false
30612 fi
30613
30614 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30615 as_dirname=dirname
30616 else
30617 as_dirname=false
30618 fi
30619
30620 as_me=`$as_basename -- "$0" ||
30621 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30622 X"$0" : 'X\(//\)$' \| \
30623 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30624 $as_echo X/"$0" |
30625 sed '/^.*\/\([^/][^/]*\)\/*$/{
30626 s//\1/
30627 q
30628 }
30629 /^X\/\(\/\/\)$/{
30630 s//\1/
30631 q
30632 }
30633 /^X\/\(\/\).*/{
30634 s//\1/
30635 q
30636 }
30637 s/.*/./; q'`
30638
30639 # Avoid depending upon Character Ranges.
30640 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30641 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30642 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30643 as_cr_digits='0123456789'
30644 as_cr_alnum=$as_cr_Letters$as_cr_digits
30645
30646 ECHO_C= ECHO_N= ECHO_T=
30647 case `echo -n x` in #(((((
30648 -n*)
30649 case `echo 'xy\c'` in
30650 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30651 xy) ECHO_C='\c';;
30652 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30653 ECHO_T=' ';;
30654 esac;;
30655 *)
30656 ECHO_N='-n';;
30657 esac
30658
30659 rm -f conf$$ conf$$.exe conf$$.file
30660 if test -d conf$$.dir; then
30661 rm -f conf$$.dir/conf$$.file
30662 else
30663 rm -f conf$$.dir
30664 mkdir conf$$.dir 2>/dev/null
30665 fi
30666 if (echo >conf$$.file) 2>/dev/null; then
30667 if ln -s conf$$.file conf$$ 2>/dev/null; then
30668 as_ln_s='ln -s'
30669 # ... but there are two gotchas:
30670 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30671 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30672 # In both cases, we have to default to `cp -pR'.
30673 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30674 as_ln_s='cp -pR'
30675 elif ln conf$$.file conf$$ 2>/dev/null; then
30676 as_ln_s=ln
30677 else
30678 as_ln_s='cp -pR'
30679 fi
30680 else
30681 as_ln_s='cp -pR'
30682 fi
30683 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30684 rmdir conf$$.dir 2>/dev/null
30685
30686
30687 # as_fn_mkdir_p
30688 # -------------
30689 # Create "$as_dir" as a directory, including parents if necessary.
30690 as_fn_mkdir_p ()
30691 {
30692
30693 case $as_dir in #(
30694 -*) as_dir=./$as_dir;;
30695 esac
30696 test -d "$as_dir" || eval $as_mkdir_p || {
30697 as_dirs=
30698 while :; do
30699 case $as_dir in #(
30700 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30701 *) as_qdir=$as_dir;;
30702 esac
30703 as_dirs="'$as_qdir' $as_dirs"
30704 as_dir=`$as_dirname -- "$as_dir" ||
30705 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30706 X"$as_dir" : 'X\(//\)[^/]' \| \
30707 X"$as_dir" : 'X\(//\)$' \| \
30708 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30709 $as_echo X"$as_dir" |
30710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30711 s//\1/
30712 q
30713 }
30714 /^X\(\/\/\)[^/].*/{
30715 s//\1/
30716 q
30717 }
30718 /^X\(\/\/\)$/{
30719 s//\1/
30720 q
30721 }
30722 /^X\(\/\).*/{
30723 s//\1/
30724 q
30725 }
30726 s/.*/./; q'`
30727 test -d "$as_dir" && break
30728 done
30729 test -z "$as_dirs" || eval "mkdir $as_dirs"
30730 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30731
30732
30733 } # as_fn_mkdir_p
30734 if mkdir -p . 2>/dev/null; then
30735 as_mkdir_p='mkdir -p "$as_dir"'
30736 else
30737 test -d ./-p && rmdir ./-p
30738 as_mkdir_p=false
30739 fi
30740
30741
30742 # as_fn_executable_p FILE
30743 # -----------------------
30744 # Test if FILE is an executable regular file.
30745 as_fn_executable_p ()
30746 {
30747 test -f "$1" && test -x "$1"
30748 } # as_fn_executable_p
30749 as_test_x='test -x'
30750 as_executable_p=as_fn_executable_p
30751
30752 # Sed expression to map a string onto a valid CPP name.
30753 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30754
30755 # Sed expression to map a string onto a valid variable name.
30756 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30757
30758
30759 exec 6>&1
30760 ## ----------------------------------- ##
30761 ## Main body of $CONFIG_STATUS script. ##
30762 ## ----------------------------------- ##
30763 _ASEOF
30764 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30765
30766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30767 # Save the log message, to keep $0 and so on meaningful, and to
30768 # report actual input values of CONFIG_FILES etc. instead of their
30769 # values after options handling.
30770 ac_log="
30771 This file was extended by $as_me, which was
30772 generated by GNU Autoconf 2.69. Invocation command line was
30773
30774 CONFIG_FILES = $CONFIG_FILES
30775 CONFIG_HEADERS = $CONFIG_HEADERS
30776 CONFIG_LINKS = $CONFIG_LINKS
30777 CONFIG_COMMANDS = $CONFIG_COMMANDS
30778 $ $0 $@
30779
30780 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30781 "
30782
30783 _ACEOF
30784
30785 case $ac_config_files in *"
30786 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30787 esac
30788
30789 case $ac_config_headers in *"
30790 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30791 esac
30792
30793
30794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30795 # Files that config.status was made for.
30796 config_files="$ac_config_files"
30797 config_headers="$ac_config_headers"
30798 config_links="$ac_config_links"
30799 config_commands="$ac_config_commands"
30800
30801 _ACEOF
30802
30803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30804 ac_cs_usage="\
30805 \`$as_me' instantiates files and other configuration actions
30806 from templates according to the current configuration. Unless the files
30807 and actions are specified as TAGs, all are instantiated by default.
30808
30809 Usage: $0 [OPTION]... [TAG]...
30810
30811 -h, --help print this help, then exit
30812 -V, --version print version number and configuration settings, then exit
30813 --config print configuration, then exit
30814 -q, --quiet, --silent
30815 do not print progress messages
30816 -d, --debug don't remove temporary files
30817 --recheck update $as_me by reconfiguring in the same conditions
30818 --file=FILE[:TEMPLATE]
30819 instantiate the configuration file FILE
30820 --header=FILE[:TEMPLATE]
30821 instantiate the configuration header FILE
30822
30823 Configuration files:
30824 $config_files
30825
30826 Configuration headers:
30827 $config_headers
30828
30829 Configuration links:
30830 $config_links
30831
30832 Configuration commands:
30833 $config_commands
30834
30835 Report bugs to the package provider."
30836
30837 _ACEOF
30838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30839 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30840 ac_cs_version="\\
30841 config.status
30842 configured by $0, generated by GNU Autoconf 2.69,
30843 with options \\"\$ac_cs_config\\"
30844
30845 Copyright (C) 2012 Free Software Foundation, Inc.
30846 This config.status script is free software; the Free Software Foundation
30847 gives unlimited permission to copy, distribute and modify it."
30848
30849 ac_pwd='$ac_pwd'
30850 srcdir='$srcdir'
30851 AWK='$AWK'
30852 test -n "\$AWK" || AWK=awk
30853 _ACEOF
30854
30855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30856 # The default lists apply if the user does not specify any file.
30857 ac_need_defaults=:
30858 while test $# != 0
30859 do
30860 case $1 in
30861 --*=?*)
30862 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30863 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30864 ac_shift=:
30865 ;;
30866 --*=)
30867 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30868 ac_optarg=
30869 ac_shift=:
30870 ;;
30871 *)
30872 ac_option=$1
30873 ac_optarg=$2
30874 ac_shift=shift
30875 ;;
30876 esac
30877
30878 case $ac_option in
30879 # Handling of the options.
30880 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30881 ac_cs_recheck=: ;;
30882 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30883 $as_echo "$ac_cs_version"; exit ;;
30884 --config | --confi | --conf | --con | --co | --c )
30885 $as_echo "$ac_cs_config"; exit ;;
30886 --debug | --debu | --deb | --de | --d | -d )
30887 debug=: ;;
30888 --file | --fil | --fi | --f )
30889 $ac_shift
30890 case $ac_optarg in
30891 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30892 '') as_fn_error $? "missing file argument" ;;
30893 esac
30894 as_fn_append CONFIG_FILES " '$ac_optarg'"
30895 ac_need_defaults=false;;
30896 --header | --heade | --head | --hea )
30897 $ac_shift
30898 case $ac_optarg in
30899 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30900 esac
30901 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30902 ac_need_defaults=false;;
30903 --he | --h)
30904 # Conflict between --help and --header
30905 as_fn_error $? "ambiguous option: \`$1'
30906 Try \`$0 --help' for more information.";;
30907 --help | --hel | -h )
30908 $as_echo "$ac_cs_usage"; exit ;;
30909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30910 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30911 ac_cs_silent=: ;;
30912
30913 # This is an error.
30914 -*) as_fn_error $? "unrecognized option: \`$1'
30915 Try \`$0 --help' for more information." ;;
30916
30917 *) as_fn_append ac_config_targets " $1"
30918 ac_need_defaults=false ;;
30919
30920 esac
30921 shift
30922 done
30923
30924 ac_configure_extra_args=
30925
30926 if $ac_cs_silent; then
30927 exec 6>/dev/null
30928 ac_configure_extra_args="$ac_configure_extra_args --silent"
30929 fi
30930
30931 _ACEOF
30932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30933 if \$ac_cs_recheck; then
30934 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30935 shift
30936 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30937 CONFIG_SHELL='$SHELL'
30938 export CONFIG_SHELL
30939 exec "\$@"
30940 fi
30941
30942 _ACEOF
30943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30944 exec 5>>config.log
30945 {
30946 echo
30947 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30948 ## Running $as_me. ##
30949 _ASBOX
30950 $as_echo "$ac_log"
30951 } >&5
30952
30953 _ACEOF
30954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30955 #
30956 # INIT-COMMANDS
30957 #
30958 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30959 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30960 subdirs='$subdirs'
30961
30962 _ACEOF
30963
30964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30965
30966 # Handling of arguments.
30967 for ac_config_target in $ac_config_targets
30968 do
30969 case $ac_config_target in
30970 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30971 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30972 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30973 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30974 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30975 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30976 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30977 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30978 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30979
30980 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30981 esac
30982 done
30983
30984
30985 # If the user did not use the arguments to specify the items to instantiate,
30986 # then the envvar interface is used. Set only those that are not.
30987 # We use the long form for the default assignment because of an extremely
30988 # bizarre bug on SunOS 4.1.3.
30989 if $ac_need_defaults; then
30990 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30991 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30992 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30994 fi
30995
30996 # Have a temporary directory for convenience. Make it in the build tree
30997 # simply because there is no reason against having it here, and in addition,
30998 # creating and moving files from /tmp can sometimes cause problems.
30999 # Hook for its removal unless debugging.
31000 # Note that there is a small window in which the directory will not be cleaned:
31001 # after its creation but before its name has been assigned to `$tmp'.
31002 $debug ||
31003 {
31004 tmp= ac_tmp=
31005 trap 'exit_status=$?
31006 : "${ac_tmp:=$tmp}"
31007 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31008 ' 0
31009 trap 'as_fn_exit 1' 1 2 13 15
31010 }
31011 # Create a (secure) tmp directory for tmp files.
31012
31013 {
31014 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31015 test -d "$tmp"
31016 } ||
31017 {
31018 tmp=./conf$$-$RANDOM
31019 (umask 077 && mkdir "$tmp")
31020 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31021 ac_tmp=$tmp
31022
31023 # Set up the scripts for CONFIG_FILES section.
31024 # No need to generate them if there are no CONFIG_FILES.
31025 # This happens for instance with `./config.status config.h'.
31026 if test -n "$CONFIG_FILES"; then
31027
31028 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31029 ac_cs_awk_getline=:
31030 ac_cs_awk_pipe_init=
31031 ac_cs_awk_read_file='
31032 while ((getline aline < (F[key])) > 0)
31033 print(aline)
31034 close(F[key])'
31035 ac_cs_awk_pipe_fini=
31036 else
31037 ac_cs_awk_getline=false
31038 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31039 ac_cs_awk_read_file='
31040 print "|#_!!_#|"
31041 print "cat " F[key] " &&"
31042 '$ac_cs_awk_pipe_init
31043 # The final `:' finishes the AND list.
31044 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31045 fi
31046 ac_cr=`echo X | tr X '\015'`
31047 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31048 # But we know of no other shell where ac_cr would be empty at this
31049 # point, so we can use a bashism as a fallback.
31050 if test "x$ac_cr" = x; then
31051 eval ac_cr=\$\'\\r\'
31052 fi
31053 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31054 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31055 ac_cs_awk_cr='\\r'
31056 else
31057 ac_cs_awk_cr=$ac_cr
31058 fi
31059
31060 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31061 _ACEOF
31062
31063 # Create commands to substitute file output variables.
31064 {
31065 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31066 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31067 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31068 echo "_ACAWK" &&
31069 echo "_ACEOF"
31070 } >conf$$files.sh &&
31071 . ./conf$$files.sh ||
31072 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31073 rm -f conf$$files.sh
31074
31075 {
31076 echo "cat >conf$$subs.awk <<_ACEOF" &&
31077 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31078 echo "_ACEOF"
31079 } >conf$$subs.sh ||
31080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31081 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31082 ac_delim='%!_!# '
31083 for ac_last_try in false false false false false :; do
31084 . ./conf$$subs.sh ||
31085 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31086
31087 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31088 if test $ac_delim_n = $ac_delim_num; then
31089 break
31090 elif $ac_last_try; then
31091 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31092 else
31093 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31094 fi
31095 done
31096 rm -f conf$$subs.sh
31097
31098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31099 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31100 _ACEOF
31101 sed -n '
31102 h
31103 s/^/S["/; s/!.*/"]=/
31104 p
31105 g
31106 s/^[^!]*!//
31107 :repl
31108 t repl
31109 s/'"$ac_delim"'$//
31110 t delim
31111 :nl
31112 h
31113 s/\(.\{148\}\)..*/\1/
31114 t more1
31115 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31116 p
31117 n
31118 b repl
31119 :more1
31120 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31121 p
31122 g
31123 s/.\{148\}//
31124 t nl
31125 :delim
31126 h
31127 s/\(.\{148\}\)..*/\1/
31128 t more2
31129 s/["\\]/\\&/g; s/^/"/; s/$/"/
31130 p
31131 b
31132 :more2
31133 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31134 p
31135 g
31136 s/.\{148\}//
31137 t delim
31138 ' <conf$$subs.awk | sed '
31139 /^[^""]/{
31140 N
31141 s/\n//
31142 }
31143 ' >>$CONFIG_STATUS || ac_write_fail=1
31144 rm -f conf$$subs.awk
31145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31146 _ACAWK
31147 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31148 for (key in S) S_is_set[key] = 1
31149 FS = "\a"
31150 \$ac_cs_awk_pipe_init
31151 }
31152 {
31153 line = $ 0
31154 nfields = split(line, field, "@")
31155 substed = 0
31156 len = length(field[1])
31157 for (i = 2; i < nfields; i++) {
31158 key = field[i]
31159 keylen = length(key)
31160 if (S_is_set[key]) {
31161 value = S[key]
31162 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31163 len += length(value) + length(field[++i])
31164 substed = 1
31165 } else
31166 len += 1 + keylen
31167 }
31168 if (nfields == 3 && !substed) {
31169 key = field[2]
31170 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31171 \$ac_cs_awk_read_file
31172 next
31173 }
31174 }
31175 print line
31176 }
31177 \$ac_cs_awk_pipe_fini
31178 _ACAWK
31179 _ACEOF
31180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31181 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31182 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31183 else
31184 cat
31185 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31186 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31187 _ACEOF
31188
31189 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31190 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31191 # trailing colons and then remove the whole line if VPATH becomes empty
31192 # (actually we leave an empty line to preserve line numbers).
31193 if test "x$srcdir" = x.; then
31194 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31195 h
31196 s///
31197 s/^/:/
31198 s/[ ]*$/:/
31199 s/:\$(srcdir):/:/g
31200 s/:\${srcdir}:/:/g
31201 s/:@srcdir@:/:/g
31202 s/^:*//
31203 s/:*$//
31204 x
31205 s/\(=[ ]*\).*/\1/
31206 G
31207 s/\n//
31208 s/^[^=]*=[ ]*$//
31209 }'
31210 fi
31211
31212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31213 fi # test -n "$CONFIG_FILES"
31214
31215 # Set up the scripts for CONFIG_HEADERS section.
31216 # No need to generate them if there are no CONFIG_HEADERS.
31217 # This happens for instance with `./config.status Makefile'.
31218 if test -n "$CONFIG_HEADERS"; then
31219 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31220 BEGIN {
31221 _ACEOF
31222
31223 # Transform confdefs.h into an awk script `defines.awk', embedded as
31224 # here-document in config.status, that substitutes the proper values into
31225 # config.h.in to produce config.h.
31226
31227 # Create a delimiter string that does not exist in confdefs.h, to ease
31228 # handling of long lines.
31229 ac_delim='%!_!# '
31230 for ac_last_try in false false :; do
31231 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31232 if test -z "$ac_tt"; then
31233 break
31234 elif $ac_last_try; then
31235 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31236 else
31237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31238 fi
31239 done
31240
31241 # For the awk script, D is an array of macro values keyed by name,
31242 # likewise P contains macro parameters if any. Preserve backslash
31243 # newline sequences.
31244
31245 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31246 sed -n '
31247 s/.\{148\}/&'"$ac_delim"'/g
31248 t rset
31249 :rset
31250 s/^[ ]*#[ ]*define[ ][ ]*/ /
31251 t def
31252 d
31253 :def
31254 s/\\$//
31255 t bsnl
31256 s/["\\]/\\&/g
31257 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31258 D["\1"]=" \3"/p
31259 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31260 d
31261 :bsnl
31262 s/["\\]/\\&/g
31263 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31264 D["\1"]=" \3\\\\\\n"\\/p
31265 t cont
31266 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31267 t cont
31268 d
31269 :cont
31270 n
31271 s/.\{148\}/&'"$ac_delim"'/g
31272 t clear
31273 :clear
31274 s/\\$//
31275 t bsnlc
31276 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31277 d
31278 :bsnlc
31279 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31280 b cont
31281 ' <confdefs.h | sed '
31282 s/'"$ac_delim"'/"\\\
31283 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31284
31285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31286 for (key in D) D_is_set[key] = 1
31287 FS = "\a"
31288 }
31289 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31290 line = \$ 0
31291 split(line, arg, " ")
31292 if (arg[1] == "#") {
31293 defundef = arg[2]
31294 mac1 = arg[3]
31295 } else {
31296 defundef = substr(arg[1], 2)
31297 mac1 = arg[2]
31298 }
31299 split(mac1, mac2, "(") #)
31300 macro = mac2[1]
31301 prefix = substr(line, 1, index(line, defundef) - 1)
31302 if (D_is_set[macro]) {
31303 # Preserve the white space surrounding the "#".
31304 print prefix "define", macro P[macro] D[macro]
31305 next
31306 } else {
31307 # Replace #undef with comments. This is necessary, for example,
31308 # in the case of _POSIX_SOURCE, which is predefined and required
31309 # on some systems where configure will not decide to define it.
31310 if (defundef == "undef") {
31311 print "/*", prefix defundef, macro, "*/"
31312 next
31313 }
31314 }
31315 }
31316 { print }
31317 _ACAWK
31318 _ACEOF
31319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31320 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31321 fi # test -n "$CONFIG_HEADERS"
31322
31323
31324 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31325 shift
31326 for ac_tag
31327 do
31328 case $ac_tag in
31329 :[FHLC]) ac_mode=$ac_tag; continue;;
31330 esac
31331 case $ac_mode$ac_tag in
31332 :[FHL]*:*);;
31333 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31334 :[FH]-) ac_tag=-:-;;
31335 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31336 esac
31337 ac_save_IFS=$IFS
31338 IFS=:
31339 set x $ac_tag
31340 IFS=$ac_save_IFS
31341 shift
31342 ac_file=$1
31343 shift
31344
31345 case $ac_mode in
31346 :L) ac_source=$1;;
31347 :[FH])
31348 ac_file_inputs=
31349 for ac_f
31350 do
31351 case $ac_f in
31352 -) ac_f="$ac_tmp/stdin";;
31353 *) # Look for the file first in the build tree, then in the source tree
31354 # (if the path is not absolute). The absolute path cannot be DOS-style,
31355 # because $ac_f cannot contain `:'.
31356 test -f "$ac_f" ||
31357 case $ac_f in
31358 [\\/$]*) false;;
31359 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31360 esac ||
31361 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31362 esac
31363 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31364 as_fn_append ac_file_inputs " '$ac_f'"
31365 done
31366
31367 # Let's still pretend it is `configure' which instantiates (i.e., don't
31368 # use $as_me), people would be surprised to read:
31369 # /* config.h. Generated by config.status. */
31370 configure_input='Generated from '`
31371 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31372 `' by configure.'
31373 if test x"$ac_file" != x-; then
31374 configure_input="$ac_file. $configure_input"
31375 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31376 $as_echo "$as_me: creating $ac_file" >&6;}
31377 fi
31378 # Neutralize special characters interpreted by sed in replacement strings.
31379 case $configure_input in #(
31380 *\&* | *\|* | *\\* )
31381 ac_sed_conf_input=`$as_echo "$configure_input" |
31382 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31383 *) ac_sed_conf_input=$configure_input;;
31384 esac
31385
31386 case $ac_tag in
31387 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31388 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31389 esac
31390 ;;
31391 esac
31392
31393 ac_dir=`$as_dirname -- "$ac_file" ||
31394 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31395 X"$ac_file" : 'X\(//\)[^/]' \| \
31396 X"$ac_file" : 'X\(//\)$' \| \
31397 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31398 $as_echo X"$ac_file" |
31399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31400 s//\1/
31401 q
31402 }
31403 /^X\(\/\/\)[^/].*/{
31404 s//\1/
31405 q
31406 }
31407 /^X\(\/\/\)$/{
31408 s//\1/
31409 q
31410 }
31411 /^X\(\/\).*/{
31412 s//\1/
31413 q
31414 }
31415 s/.*/./; q'`
31416 as_dir="$ac_dir"; as_fn_mkdir_p
31417 ac_builddir=.
31418
31419 case "$ac_dir" in
31420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31421 *)
31422 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31423 # A ".." for each directory in $ac_dir_suffix.
31424 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31425 case $ac_top_builddir_sub in
31426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31428 esac ;;
31429 esac
31430 ac_abs_top_builddir=$ac_pwd
31431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31432 # for backward compatibility:
31433 ac_top_builddir=$ac_top_build_prefix
31434
31435 case $srcdir in
31436 .) # We are building in place.
31437 ac_srcdir=.
31438 ac_top_srcdir=$ac_top_builddir_sub
31439 ac_abs_top_srcdir=$ac_pwd ;;
31440 [\\/]* | ?:[\\/]* ) # Absolute name.
31441 ac_srcdir=$srcdir$ac_dir_suffix;
31442 ac_top_srcdir=$srcdir
31443 ac_abs_top_srcdir=$srcdir ;;
31444 *) # Relative name.
31445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31446 ac_top_srcdir=$ac_top_build_prefix$srcdir
31447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31448 esac
31449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31450
31451
31452 case $ac_mode in
31453 :F)
31454 #
31455 # CONFIG_FILE
31456 #
31457
31458 _ACEOF
31459
31460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31461 # If the template does not know about datarootdir, expand it.
31462 # FIXME: This hack should be removed a few years after 2.60.
31463 ac_datarootdir_hack=; ac_datarootdir_seen=
31464 ac_sed_dataroot='
31465 /datarootdir/ {
31466 p
31467 q
31468 }
31469 /@datadir@/p
31470 /@docdir@/p
31471 /@infodir@/p
31472 /@localedir@/p
31473 /@mandir@/p'
31474 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31475 *datarootdir*) ac_datarootdir_seen=yes;;
31476 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31478 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31479 _ACEOF
31480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31481 ac_datarootdir_hack='
31482 s&@datadir@&$datadir&g
31483 s&@docdir@&$docdir&g
31484 s&@infodir@&$infodir&g
31485 s&@localedir@&$localedir&g
31486 s&@mandir@&$mandir&g
31487 s&\\\${datarootdir}&$datarootdir&g' ;;
31488 esac
31489 _ACEOF
31490
31491 # Neutralize VPATH when `$srcdir' = `.'.
31492 # Shell code in configure.ac might set extrasub.
31493 # FIXME: do we really want to maintain this feature?
31494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31495 ac_sed_extra="$ac_vpsub
31496 $extrasub
31497 _ACEOF
31498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31499 :t
31500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31501 s|@configure_input@|$ac_sed_conf_input|;t t
31502 s&@top_builddir@&$ac_top_builddir_sub&;t t
31503 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31504 s&@srcdir@&$ac_srcdir&;t t
31505 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31506 s&@top_srcdir@&$ac_top_srcdir&;t t
31507 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31508 s&@builddir@&$ac_builddir&;t t
31509 s&@abs_builddir@&$ac_abs_builddir&;t t
31510 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31511 $ac_datarootdir_hack
31512 "
31513 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31514 if $ac_cs_awk_getline; then
31515 $AWK -f "$ac_tmp/subs.awk"
31516 else
31517 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31518 fi \
31519 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31520
31521 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31522 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31523 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31524 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31526 which seems to be undefined. Please make sure it is defined" >&5
31527 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31528 which seems to be undefined. Please make sure it is defined" >&2;}
31529
31530 rm -f "$ac_tmp/stdin"
31531 case $ac_file in
31532 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31533 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31534 esac \
31535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31536 ;;
31537 :H)
31538 #
31539 # CONFIG_HEADER
31540 #
31541 if test x"$ac_file" != x-; then
31542 {
31543 $as_echo "/* $configure_input */" \
31544 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31545 } >"$ac_tmp/config.h" \
31546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31547 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31548 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31549 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31550 else
31551 rm -f "$ac_file"
31552 mv "$ac_tmp/config.h" "$ac_file" \
31553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31554 fi
31555 else
31556 $as_echo "/* $configure_input */" \
31557 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31558 || as_fn_error $? "could not create -" "$LINENO" 5
31559 fi
31560 ;;
31561 :L)
31562 #
31563 # CONFIG_LINK
31564 #
31565
31566 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31567 :
31568 else
31569 # Prefer the file from the source tree if names are identical.
31570 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31571 ac_source=$srcdir/$ac_source
31572 fi
31573
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31575 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31576
31577 if test ! -r "$ac_source"; then
31578 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31579 fi
31580 rm -f "$ac_file"
31581
31582 # Try a relative symlink, then a hard link, then a copy.
31583 case $ac_source in
31584 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31585 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31586 esac
31587 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31588 ln "$ac_source" "$ac_file" 2>/dev/null ||
31589 cp -p "$ac_source" "$ac_file" ||
31590 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31591 fi
31592 ;;
31593 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31594 $as_echo "$as_me: executing $ac_file commands" >&6;}
31595 ;;
31596 esac
31597
31598
31599 case $ac_file$ac_mode in
31600 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31601 "gccdepdir":C)
31602 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31603 for lang in $subdirs c-family common
31604 do
31605 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31606 done ;;
31607 "as":F) chmod +x as ;;
31608 "collect-ld":F) chmod +x collect-ld ;;
31609 "nm":F) chmod +x nm ;;
31610 "default":C)
31611 case ${CONFIG_HEADERS} in
31612 *auto-host.h:config.in*)
31613 echo > cstamp-h ;;
31614 esac
31615 # Make sure all the subdirs exist.
31616 for d in $subdirs doc build common c-family
31617 do
31618 test -d $d || mkdir $d
31619 done
31620 ;;
31621
31622 esac
31623 done # for ac_tag
31624
31625
31626 as_fn_exit 0
31627 _ACEOF
31628 ac_clean_files=$ac_clean_files_save
31629
31630 test $ac_write_fail = 0 ||
31631 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31632
31633
31634 # configure is writing to config.log, and then calls config.status.
31635 # config.status does its own redirection, appending to config.log.
31636 # Unfortunately, on DOS this fails, as config.log is still kept open
31637 # by configure, so config.status won't be able to write to it; its
31638 # output is simply discarded. So we exec the FD to /dev/null,
31639 # effectively closing config.log, so it can be properly (re)opened and
31640 # appended to by config.status. When coming back to configure, we
31641 # need to make the FD available again.
31642 if test "$no_create" != yes; then
31643 ac_cs_success=:
31644 ac_config_status_args=
31645 test "$silent" = yes &&
31646 ac_config_status_args="$ac_config_status_args --quiet"
31647 exec 5>/dev/null
31648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31649 exec 5>>config.log
31650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31651 # would make configure fail if this is the last instruction.
31652 $ac_cs_success || as_fn_exit 1
31653 fi
31654 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31656 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31657 fi
31658
31659