]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Remove SPARC HAVE_AS_REGISTER_PSEUDO_OP
[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_readelf
722 gcc_cv_objdump
723 ORIGINAL_NM_FOR_TARGET
724 gcc_cv_nm
725 ORIGINAL_LD_GOLD_FOR_TARGET
726 ORIGINAL_LD_BFD_FOR_TARGET
727 ORIGINAL_LD_FOR_TARGET
728 ORIGINAL_PLUGIN_LD_FOR_TARGET
729 gcc_cv_ld
730 ORIGINAL_AS_FOR_TARGET
731 gcc_cv_as
732 enable_fast_install
733 objdir
734 OTOOL64
735 OTOOL
736 LIPO
737 NMEDIT
738 DSYMUTIL
739 STRIP
740 OBJDUMP
741 ac_ct_DUMPBIN
742 DUMPBIN
743 LD
744 FGREP
745 SED
746 LIBTOOL
747 collect2
748 NO_PIE_FLAG_FOR_BUILD
749 NO_PIE_CFLAGS_FOR_BUILD
750 BUILD_NO_PIE_FLAG
751 BUILD_NO_PIE_CFLAGS
752 STMP_FIXINC
753 BUILD_LDFLAGS
754 BUILD_CXXFLAGS
755 BUILD_CFLAGS
756 CXX_FOR_BUILD
757 CC_FOR_BUILD
758 inhibit_libc
759 BUILD_SYSTEM_HEADER_DIR
760 SYSTEM_HEADER_DIR
761 ALL
762 CROSS
763 CATOBJEXT
764 GENCAT
765 INSTOBJEXT
766 DATADIRNAME
767 CATALOGS
768 POSUB
769 GMSGFMT
770 XGETTEXT
771 INCINTL
772 LIBINTL_DEP
773 LIBINTL
774 USE_NLS
775 get_gcc_base_ver
776 extra_opt_files
777 extra_modes_file
778 NATIVE_SYSTEM_HEADER_DIR
779 objext
780 manext
781 LIBICONV_DEP
782 LTLIBICONV
783 LIBICONV
784 LDEXP_LIB
785 EXTRA_GCC_LIBS
786 GNAT_LIBEXC
787 COLLECT2_LIBS
788 CXXDEPMODE
789 DEPDIR
790 am__leading_dot
791 doc_build_sys
792 AR
793 NM
794 BISON
795 FLEX
796 GENERATED_MANPAGES
797 BUILD_INFO
798 MAKEINFO
799 have_mktemp_command
800 make_compare_target
801 INSTALL_DATA
802 INSTALL_PROGRAM
803 INSTALL
804 ranlib_flags
805 RANLIB
806 LN
807 LN_S
808 AWK
809 SET_MAKE
810 accel_dir_suffix
811 real_target_noncanonical
812 enable_as_accelerator
813 REPORT_BUGS_TEXI
814 REPORT_BUGS_TO
815 PKGVERSION
816 CONFIGURE_SPECS
817 enable_gcov
818 enable_shared
819 enable_fixed_point
820 enable_decimal_float
821 with_float
822 with_cpu
823 enable_multiarch
824 enable_multilib
825 coverage_flags
826 valgrind_command
827 valgrind_path_defines
828 valgrind_path
829 TREECHECKING
830 nocommon_flag
831 noexception_flags
832 warn_cxxflags
833 warn_cflags
834 c_strict_warn
835 strict_warn
836 c_loose_warn
837 loose_warn
838 aliasing_flags
839 CPP
840 EGREP
841 GREP
842 CXXCPP
843 PICFLAG_FOR_TARGET
844 GNATMAKE
845 GNATBIND
846 ac_ct_CXX
847 CXXFLAGS
848 CXX
849 OBJEXT
850 EXEEXT
851 ac_ct_CC
852 CPPFLAGS
853 LDFLAGS
854 CFLAGS
855 CC
856 GENINSRC
857 CROSS_SYSTEM_HEADER_DIR
858 TARGET_SYSTEM_ROOT_DEFINE
859 TARGET_SYSTEM_ROOT
860 SYSROOT_CFLAGS_FOR_TARGET
861 target_subdir
862 host_subdir
863 build_subdir
864 build_libsubdir
865 target_noncanonical
866 host_noncanonical
867 target_os
868 target_vendor
869 target_cpu
870 target
871 host_os
872 host_vendor
873 host_cpu
874 host
875 build_os
876 build_vendor
877 build_cpu
878 build
879 target_alias
880 host_alias
881 build_alias
882 LIBS
883 ECHO_T
884 ECHO_N
885 ECHO_C
886 DEFS
887 mandir
888 localedir
889 libdir
890 psdir
891 pdfdir
892 dvidir
893 htmldir
894 infodir
895 docdir
896 oldincludedir
897 includedir
898 localstatedir
899 sharedstatedir
900 sysconfdir
901 datadir
902 datarootdir
903 libexecdir
904 sbindir
905 bindir
906 program_transform_name
907 prefix
908 exec_prefix
909 PACKAGE_URL
910 PACKAGE_BUGREPORT
911 PACKAGE_STRING
912 PACKAGE_VERSION
913 PACKAGE_TARNAME
914 PACKAGE_NAME
915 PATH_SEPARATOR
916 SHELL'
917 ac_subst_files='option_includes
918 language_hooks'
919 ac_user_opts='
920 enable_option_checking
921 with_build_libsubdir
922 with_local_prefix
923 with_native_system_header_dir
924 with_build_sysroot
925 with_sysroot
926 with_gxx_include_dir
927 with_cpp_install_dir
928 enable_generated_files_in_srcdir
929 with_gnu_ld
930 with_ld
931 with_demangler_in_ld
932 with_gnu_as
933 with_as
934 enable_largefile
935 enable_build_format_warnings
936 enable_werror_always
937 enable_checking
938 enable_coverage
939 enable_gather_detailed_mem_stats
940 enable_valgrind_annotations
941 with_stabs
942 enable_multilib
943 enable_multiarch
944 with_stack_clash_protection_guard_size
945 enable___cxa_atexit
946 enable_decimal_float
947 enable_fixed_point
948 enable_threads
949 enable_tls
950 enable_vtable_verify
951 enable_objc_gc
952 with_dwarf2
953 enable_shared
954 enable_gcov
955 with_specs
956 with_pkgversion
957 with_bugurl
958 enable_languages
959 with_multilib_list
960 enable_rpath
961 with_libiconv_prefix
962 enable_sjlj_exceptions
963 with_gcc_major_version_only
964 enable_secureplt
965 enable_mingw_wildcard
966 enable_large_address_aware
967 enable_leading_mingw64_underscores
968 enable_cld
969 enable_frame_pointer
970 enable_win32_registry
971 enable_static
972 with_pic
973 enable_fast_install
974 enable_libtool_lock
975 enable_ld
976 enable_gold
977 with_plugin_ld
978 enable_gnu_indirect_function
979 enable_initfini_array
980 enable_comdat
981 enable_fix_cortex_a53_835769
982 enable_fix_cortex_a53_843419
983 with_glibc_version
984 enable_gnu_unique_object
985 enable_linker_build_id
986 enable_libssp
987 enable_default_ssp
988 with_long_double_128
989 with_long_double_format
990 with_gc
991 with_system_zlib
992 enable_maintainer_mode
993 enable_link_mutex
994 enable_version_specific_runtime_libs
995 enable_plugin
996 enable_host_shared
997 enable_libquadmath_support
998 with_linker_hash_style
999 with_diagnostics_color
1000 enable_default_pie
1001 '
1002 ac_precious_vars='build_alias
1003 host_alias
1004 target_alias
1005 CC
1006 CFLAGS
1007 LDFLAGS
1008 LIBS
1009 CPPFLAGS
1010 CXX
1011 CXXFLAGS
1012 CCC
1013 CXXCPP
1014 CPP
1015 GMPLIBS
1016 GMPINC
1017 ISLLIBS
1018 ISLINC'
1019
1020
1021 # Initialize some variables set by options.
1022 ac_init_help=
1023 ac_init_version=false
1024 ac_unrecognized_opts=
1025 ac_unrecognized_sep=
1026 # The variables have the same names as the options, with
1027 # dashes changed to underlines.
1028 cache_file=/dev/null
1029 exec_prefix=NONE
1030 no_create=
1031 no_recursion=
1032 prefix=NONE
1033 program_prefix=NONE
1034 program_suffix=NONE
1035 program_transform_name=s,x,x,
1036 silent=
1037 site=
1038 srcdir=
1039 verbose=
1040 x_includes=NONE
1041 x_libraries=NONE
1042
1043 # Installation directory options.
1044 # These are left unexpanded so users can "make install exec_prefix=/foo"
1045 # and all the variables that are supposed to be based on exec_prefix
1046 # by default will actually change.
1047 # Use braces instead of parens because sh, perl, etc. also accept them.
1048 # (The list follows the same order as the GNU Coding Standards.)
1049 bindir='${exec_prefix}/bin'
1050 sbindir='${exec_prefix}/sbin'
1051 libexecdir='${exec_prefix}/libexec'
1052 datarootdir='${prefix}/share'
1053 datadir='${datarootdir}'
1054 sysconfdir='${prefix}/etc'
1055 sharedstatedir='${prefix}/com'
1056 localstatedir='${prefix}/var'
1057 includedir='${prefix}/include'
1058 oldincludedir='/usr/include'
1059 docdir='${datarootdir}/doc/${PACKAGE}'
1060 infodir='${datarootdir}/info'
1061 htmldir='${docdir}'
1062 dvidir='${docdir}'
1063 pdfdir='${docdir}'
1064 psdir='${docdir}'
1065 libdir='${exec_prefix}/lib'
1066 localedir='${datarootdir}/locale'
1067 mandir='${datarootdir}/man'
1068
1069 ac_prev=
1070 ac_dashdash=
1071 for ac_option
1072 do
1073 # If the previous option needs an argument, assign it.
1074 if test -n "$ac_prev"; then
1075 eval $ac_prev=\$ac_option
1076 ac_prev=
1077 continue
1078 fi
1079
1080 case $ac_option in
1081 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1082 *=) ac_optarg= ;;
1083 *) ac_optarg=yes ;;
1084 esac
1085
1086 # Accept the important Cygnus configure options, so we can diagnose typos.
1087
1088 case $ac_dashdash$ac_option in
1089 --)
1090 ac_dashdash=yes ;;
1091
1092 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1093 ac_prev=bindir ;;
1094 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1095 bindir=$ac_optarg ;;
1096
1097 -build | --build | --buil | --bui | --bu)
1098 ac_prev=build_alias ;;
1099 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1100 build_alias=$ac_optarg ;;
1101
1102 -cache-file | --cache-file | --cache-fil | --cache-fi \
1103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1104 ac_prev=cache_file ;;
1105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1107 cache_file=$ac_optarg ;;
1108
1109 --config-cache | -C)
1110 cache_file=config.cache ;;
1111
1112 -datadir | --datadir | --datadi | --datad)
1113 ac_prev=datadir ;;
1114 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1115 datadir=$ac_optarg ;;
1116
1117 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1118 | --dataroo | --dataro | --datar)
1119 ac_prev=datarootdir ;;
1120 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1121 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1122 datarootdir=$ac_optarg ;;
1123
1124 -disable-* | --disable-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid feature name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "enable_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval enable_$ac_useropt=no ;;
1139
1140 -docdir | --docdir | --docdi | --doc | --do)
1141 ac_prev=docdir ;;
1142 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1143 docdir=$ac_optarg ;;
1144
1145 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1146 ac_prev=dvidir ;;
1147 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1148 dvidir=$ac_optarg ;;
1149
1150 -enable-* | --enable-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid feature name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159 "enable_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval enable_$ac_useropt=\$ac_optarg ;;
1165
1166 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1167 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1168 | --exec | --exe | --ex)
1169 ac_prev=exec_prefix ;;
1170 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1171 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1172 | --exec=* | --exe=* | --ex=*)
1173 exec_prefix=$ac_optarg ;;
1174
1175 -gas | --gas | --ga | --g)
1176 # Obsolete; use --with-gas.
1177 with_gas=yes ;;
1178
1179 -help | --help | --hel | --he | -h)
1180 ac_init_help=long ;;
1181 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1182 ac_init_help=recursive ;;
1183 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1184 ac_init_help=short ;;
1185
1186 -host | --host | --hos | --ho)
1187 ac_prev=host_alias ;;
1188 -host=* | --host=* | --hos=* | --ho=*)
1189 host_alias=$ac_optarg ;;
1190
1191 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1192 ac_prev=htmldir ;;
1193 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1194 | --ht=*)
1195 htmldir=$ac_optarg ;;
1196
1197 -includedir | --includedir | --includedi | --included | --include \
1198 | --includ | --inclu | --incl | --inc)
1199 ac_prev=includedir ;;
1200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1201 | --includ=* | --inclu=* | --incl=* | --inc=*)
1202 includedir=$ac_optarg ;;
1203
1204 -infodir | --infodir | --infodi | --infod | --info | --inf)
1205 ac_prev=infodir ;;
1206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1207 infodir=$ac_optarg ;;
1208
1209 -libdir | --libdir | --libdi | --libd)
1210 ac_prev=libdir ;;
1211 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1212 libdir=$ac_optarg ;;
1213
1214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1215 | --libexe | --libex | --libe)
1216 ac_prev=libexecdir ;;
1217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1218 | --libexe=* | --libex=* | --libe=*)
1219 libexecdir=$ac_optarg ;;
1220
1221 -localedir | --localedir | --localedi | --localed | --locale)
1222 ac_prev=localedir ;;
1223 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1224 localedir=$ac_optarg ;;
1225
1226 -localstatedir | --localstatedir | --localstatedi | --localstated \
1227 | --localstate | --localstat | --localsta | --localst | --locals)
1228 ac_prev=localstatedir ;;
1229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1230 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1231 localstatedir=$ac_optarg ;;
1232
1233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1234 ac_prev=mandir ;;
1235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1236 mandir=$ac_optarg ;;
1237
1238 -nfp | --nfp | --nf)
1239 # Obsolete; use --without-fp.
1240 with_fp=no ;;
1241
1242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1243 | --no-cr | --no-c | -n)
1244 no_create=yes ;;
1245
1246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1248 no_recursion=yes ;;
1249
1250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1252 | --oldin | --oldi | --old | --ol | --o)
1253 ac_prev=oldincludedir ;;
1254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1257 oldincludedir=$ac_optarg ;;
1258
1259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1260 ac_prev=prefix ;;
1261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1262 prefix=$ac_optarg ;;
1263
1264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1265 | --program-pre | --program-pr | --program-p)
1266 ac_prev=program_prefix ;;
1267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1269 program_prefix=$ac_optarg ;;
1270
1271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1272 | --program-suf | --program-su | --program-s)
1273 ac_prev=program_suffix ;;
1274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1276 program_suffix=$ac_optarg ;;
1277
1278 -program-transform-name | --program-transform-name \
1279 | --program-transform-nam | --program-transform-na \
1280 | --program-transform-n | --program-transform- \
1281 | --program-transform | --program-transfor \
1282 | --program-transfo | --program-transf \
1283 | --program-trans | --program-tran \
1284 | --progr-tra | --program-tr | --program-t)
1285 ac_prev=program_transform_name ;;
1286 -program-transform-name=* | --program-transform-name=* \
1287 | --program-transform-nam=* | --program-transform-na=* \
1288 | --program-transform-n=* | --program-transform-=* \
1289 | --program-transform=* | --program-transfor=* \
1290 | --program-transfo=* | --program-transf=* \
1291 | --program-trans=* | --program-tran=* \
1292 | --progr-tra=* | --program-tr=* | --program-t=*)
1293 program_transform_name=$ac_optarg ;;
1294
1295 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1296 ac_prev=pdfdir ;;
1297 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1298 pdfdir=$ac_optarg ;;
1299
1300 -psdir | --psdir | --psdi | --psd | --ps)
1301 ac_prev=psdir ;;
1302 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1303 psdir=$ac_optarg ;;
1304
1305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1306 | -silent | --silent | --silen | --sile | --sil)
1307 silent=yes ;;
1308
1309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1310 ac_prev=sbindir ;;
1311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1312 | --sbi=* | --sb=*)
1313 sbindir=$ac_optarg ;;
1314
1315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1317 | --sharedst | --shareds | --shared | --share | --shar \
1318 | --sha | --sh)
1319 ac_prev=sharedstatedir ;;
1320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1323 | --sha=* | --sh=*)
1324 sharedstatedir=$ac_optarg ;;
1325
1326 -site | --site | --sit)
1327 ac_prev=site ;;
1328 -site=* | --site=* | --sit=*)
1329 site=$ac_optarg ;;
1330
1331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1332 ac_prev=srcdir ;;
1333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1334 srcdir=$ac_optarg ;;
1335
1336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1337 | --syscon | --sysco | --sysc | --sys | --sy)
1338 ac_prev=sysconfdir ;;
1339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1341 sysconfdir=$ac_optarg ;;
1342
1343 -target | --target | --targe | --targ | --tar | --ta | --t)
1344 ac_prev=target_alias ;;
1345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1346 target_alias=$ac_optarg ;;
1347
1348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1349 verbose=yes ;;
1350
1351 -version | --version | --versio | --versi | --vers | -V)
1352 ac_init_version=: ;;
1353
1354 -with-* | --with-*)
1355 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358 as_fn_error $? "invalid package name: $ac_useropt"
1359 ac_useropt_orig=$ac_useropt
1360 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361 case $ac_user_opts in
1362 *"
1363 "with_$ac_useropt"
1364 "*) ;;
1365 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1366 ac_unrecognized_sep=', ';;
1367 esac
1368 eval with_$ac_useropt=\$ac_optarg ;;
1369
1370 -without-* | --without-*)
1371 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1372 # Reject names that are not valid shell variable names.
1373 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1374 as_fn_error $? "invalid package name: $ac_useropt"
1375 ac_useropt_orig=$ac_useropt
1376 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1377 case $ac_user_opts in
1378 *"
1379 "with_$ac_useropt"
1380 "*) ;;
1381 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1382 ac_unrecognized_sep=', ';;
1383 esac
1384 eval with_$ac_useropt=no ;;
1385
1386 --x)
1387 # Obsolete; use --with-x.
1388 with_x=yes ;;
1389
1390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1391 | --x-incl | --x-inc | --x-in | --x-i)
1392 ac_prev=x_includes ;;
1393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1395 x_includes=$ac_optarg ;;
1396
1397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1399 ac_prev=x_libraries ;;
1400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1402 x_libraries=$ac_optarg ;;
1403
1404 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1405 Try \`$0 --help' for more information"
1406 ;;
1407
1408 *=*)
1409 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1410 # Reject names that are not valid shell variable names.
1411 case $ac_envvar in #(
1412 '' | [0-9]* | *[!_$as_cr_alnum]* )
1413 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1414 esac
1415 eval $ac_envvar=\$ac_optarg
1416 export $ac_envvar ;;
1417
1418 *)
1419 # FIXME: should be removed in autoconf 3.0.
1420 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1421 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1422 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1423 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1424 ;;
1425
1426 esac
1427 done
1428
1429 if test -n "$ac_prev"; then
1430 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1431 as_fn_error $? "missing argument to $ac_option"
1432 fi
1433
1434 if test -n "$ac_unrecognized_opts"; then
1435 case $enable_option_checking in
1436 no) ;;
1437 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1438 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1439 esac
1440 fi
1441
1442 # Check all directory arguments for consistency.
1443 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1444 datadir sysconfdir sharedstatedir localstatedir includedir \
1445 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1446 libdir localedir mandir
1447 do
1448 eval ac_val=\$$ac_var
1449 # Remove trailing slashes.
1450 case $ac_val in
1451 */ )
1452 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1453 eval $ac_var=\$ac_val;;
1454 esac
1455 # Be sure to have absolute directory names.
1456 case $ac_val in
1457 [\\/$]* | ?:[\\/]* ) continue;;
1458 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1459 esac
1460 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1461 done
1462
1463 # There might be people who depend on the old broken behavior: `$host'
1464 # used to hold the argument of --host etc.
1465 # FIXME: To remove some day.
1466 build=$build_alias
1467 host=$host_alias
1468 target=$target_alias
1469
1470 # FIXME: To remove some day.
1471 if test "x$host_alias" != x; then
1472 if test "x$build_alias" = x; then
1473 cross_compiling=maybe
1474 elif test "x$build_alias" != "x$host_alias"; then
1475 cross_compiling=yes
1476 fi
1477 fi
1478
1479 ac_tool_prefix=
1480 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1481
1482 test "$silent" = yes && exec 6>/dev/null
1483
1484
1485 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1486 ac_ls_di=`ls -di .` &&
1487 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1488 as_fn_error $? "working directory cannot be determined"
1489 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1490 as_fn_error $? "pwd does not report name of working directory"
1491
1492
1493 # Find the source files, if location was not specified.
1494 if test -z "$srcdir"; then
1495 ac_srcdir_defaulted=yes
1496 # Try the directory containing this script, then the parent directory.
1497 ac_confdir=`$as_dirname -- "$as_myself" ||
1498 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1499 X"$as_myself" : 'X\(//\)[^/]' \| \
1500 X"$as_myself" : 'X\(//\)$' \| \
1501 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1502 $as_echo X"$as_myself" |
1503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1504 s//\1/
1505 q
1506 }
1507 /^X\(\/\/\)[^/].*/{
1508 s//\1/
1509 q
1510 }
1511 /^X\(\/\/\)$/{
1512 s//\1/
1513 q
1514 }
1515 /^X\(\/\).*/{
1516 s//\1/
1517 q
1518 }
1519 s/.*/./; q'`
1520 srcdir=$ac_confdir
1521 if test ! -r "$srcdir/$ac_unique_file"; then
1522 srcdir=..
1523 fi
1524 else
1525 ac_srcdir_defaulted=no
1526 fi
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1528 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1529 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1530 fi
1531 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1532 ac_abs_confdir=`(
1533 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1534 pwd)`
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1537 srcdir=.
1538 fi
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1542 case $srcdir in
1543 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 esac
1545 for ac_var in $ac_precious_vars; do
1546 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1547 eval ac_env_${ac_var}_value=\$${ac_var}
1548 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1549 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1550 done
1551
1552 #
1553 # Report the --help message.
1554 #
1555 if test "$ac_init_help" = "long"; then
1556 # Omit some internal or obsolete options to make the list less imposing.
1557 # This message is too long to be a string in the A/UX 3.1 sh.
1558 cat <<_ACEOF
1559 \`configure' configures this package to adapt to many kinds of systems.
1560
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1562
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE. See below for descriptions of some of the useful variables.
1565
1566 Defaults for the options are specified in brackets.
1567
1568 Configuration:
1569 -h, --help display this help and exit
1570 --help=short display options specific to this package
1571 --help=recursive display the short help of all the included packages
1572 -V, --version display version information and exit
1573 -q, --quiet, --silent do not print \`checking ...' messages
1574 --cache-file=FILE cache test results in FILE [disabled]
1575 -C, --config-cache alias for \`--cache-file=config.cache'
1576 -n, --no-create do not create output files
1577 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1578
1579 Installation directories:
1580 --prefix=PREFIX install architecture-independent files in PREFIX
1581 [$ac_default_prefix]
1582 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1583 [PREFIX]
1584
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1589
1590 For better control, use the options below.
1591
1592 Fine tuning of the installation directories:
1593 --bindir=DIR user executables [EPREFIX/bin]
1594 --sbindir=DIR system admin executables [EPREFIX/sbin]
1595 --libexecdir=DIR program executables [EPREFIX/libexec]
1596 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1597 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1598 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1599 --libdir=DIR object code libraries [EPREFIX/lib]
1600 --includedir=DIR C header files [PREFIX/include]
1601 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1602 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1603 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1604 --infodir=DIR info documentation [DATAROOTDIR/info]
1605 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1606 --mandir=DIR man documentation [DATAROOTDIR/man]
1607 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1608 --htmldir=DIR html documentation [DOCDIR]
1609 --dvidir=DIR dvi documentation [DOCDIR]
1610 --pdfdir=DIR pdf documentation [DOCDIR]
1611 --psdir=DIR ps documentation [DOCDIR]
1612 _ACEOF
1613
1614 cat <<\_ACEOF
1615
1616 Program names:
1617 --program-prefix=PREFIX prepend PREFIX to installed program names
1618 --program-suffix=SUFFIX append SUFFIX to installed program names
1619 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1620
1621 System types:
1622 --build=BUILD configure for building on BUILD [guessed]
1623 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1624 --target=TARGET configure for building compilers for TARGET [HOST]
1625 _ACEOF
1626 fi
1627
1628 if test -n "$ac_init_help"; then
1629
1630 cat <<\_ACEOF
1631
1632 Optional Features:
1633 --disable-option-checking ignore unrecognized --enable/--with options
1634 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1635 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1636 --enable-generated-files-in-srcdir
1637 put copies of generated files in source dir intended
1638 for creating source tarballs for users without
1639 texinfo bison or flex
1640 --disable-largefile omit support for large files
1641 --disable-build-format-warnings
1642 don't use -Wformat while building GCC
1643 --enable-werror-always enable -Werror despite compiler version
1644 --enable-checking[=LIST]
1645 enable expensive run-time checks. With LIST, enable
1646 only specific categories of checks. Categories are:
1647 yes,no,all,none,release. Flags are:
1648 assert,df,extra,fold,gc,gcac,gimple,misc,
1649 rtlflag,rtl,runtime,tree,valgrind,types
1650 --enable-coverage[=LEVEL]
1651 enable compiler's code coverage collection. Use to
1652 measure compiler performance and locate unused parts
1653 of the compiler. With LEVEL, specify optimization.
1654 Values are opt, noopt, default is noopt
1655 --enable-gather-detailed-mem-stats
1656 enable detailed memory allocation stats gathering
1657 --enable-valgrind-annotations
1658 enable valgrind runtime interaction
1659 --enable-multilib enable library support for multiple ABIs
1660 --enable-multiarch enable support for multiarch paths
1661 --enable-__cxa_atexit enable __cxa_atexit for C++
1662 --enable-decimal-float={no,yes,bid,dpd}
1663 enable decimal float extension to C. Selecting 'bid'
1664 or 'dpd' choses which decimal floating point format
1665 to use
1666 --enable-fixed-point enable fixed-point arithmetic extension to C
1667 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1668 package
1669 --enable-tls enable or disable generation of tls code overriding
1670 the assembler check for tls support
1671 --enable-vtable-verify enable vtable verification feature
1672 --enable-objc-gc enable the use of Boehm's garbage collector with the
1673 GNU Objective-C runtime
1674 --disable-shared don't provide a shared libgcc
1675 --disable-gcov don't provide libgcov and related host tools
1676 --enable-languages=LIST specify which front-ends to build
1677 --disable-rpath do not hardcode runtime library paths
1678 --enable-sjlj-exceptions
1679 arrange to use setjmp/longjmp exception handling
1680 --enable-secureplt enable -msecure-plt by default for PowerPC
1681 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1682 Default to platform configuration
1683 --enable-large-address-aware
1684 Link mingw executables with --large-address-aware
1685 --enable-leading-mingw64-underscores
1686 enable leading underscores on 64 bit mingw targets
1687 --enable-cld enable -mcld by default for 32bit x86
1688 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1689 x86
1690 --disable-win32-registry
1691 disable lookup of installation paths in the Registry
1692 on Windows hosts
1693 --enable-win32-registry enable registry lookup (default)
1694 --enable-win32-registry=KEY
1695 use KEY instead of GCC version as the last portion
1696 of the registry key
1697 --enable-shared[=PKGS] build shared libraries [default=yes]
1698 --enable-static[=PKGS] build static libraries [default=yes]
1699 --enable-fast-install[=PKGS]
1700 optimize for fast installation [default=yes]
1701 --disable-libtool-lock avoid locking (might break parallel builds)
1702 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1703 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1704 --enable-gnu-indirect-function
1705 enable the use of the @gnu_indirect_function to
1706 glibc systems
1707 --enable-initfini-array use .init_array/.fini_array sections
1708 --enable-comdat enable COMDAT group support
1709
1710 --enable-fix-cortex-a53-835769
1711 enable workaround for AArch64 Cortex-A53 erratum
1712 835769 by default
1713 --disable-fix-cortex-a53-835769
1714 disable workaround for AArch64 Cortex-A53 erratum
1715 835769 by default
1716
1717
1718 --enable-fix-cortex-a53-843419
1719 enable workaround for AArch64 Cortex-A53 erratum
1720 843419 by default
1721 --disable-fix-cortex-a53-843419
1722 disable workaround for AArch64 Cortex-A53 erratum
1723 843419 by default
1724
1725 --enable-gnu-unique-object
1726 enable the use of the @gnu_unique_object ELF
1727 extension on glibc systems
1728 --enable-linker-build-id
1729 compiler will always pass --build-id to linker
1730 --enable-libssp enable linking against libssp
1731 --enable-default-ssp enable Stack Smashing Protection as default
1732 --enable-maintainer-mode
1733 enable make rules and dependencies not useful (and
1734 sometimes confusing) to the casual installer
1735 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1736 thrashing on the build machine
1737 --enable-version-specific-runtime-libs
1738 specify that runtime libraries should be installed
1739 in a compiler-specific directory
1740 --enable-plugin enable plugin support
1741 --enable-host-shared build host code as shared libraries
1742 --disable-libquadmath-support
1743 disable libquadmath support for Fortran
1744 --enable-default-pie enable Position Independent Executable as default
1745
1746 Optional Packages:
1747 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1748 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1749 --with-build-libsubdir=DIR Directory where to find libraries for build system
1750 --with-local-prefix=DIR specifies directory to put local include
1751 --with-native-system-header-dir=dir
1752 use dir as the directory to look for standard
1753 system header files in. Defaults to /usr/include.
1754 --with-build-sysroot=sysroot
1755 use sysroot as the system root during the build
1756 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1757 --with-gxx-include-dir=DIR
1758 specifies directory to put g++ header files
1759 --with-cpp-install-dir=DIR
1760 install the user visible C preprocessor in DIR
1761 (relative to PREFIX) as well as PREFIX/bin
1762 --with-gnu-ld arrange to work with GNU ld
1763 --with-ld arrange to use the specified ld (full pathname)
1764 --with-demangler-in-ld try to use demangler in GNU ld
1765 --with-gnu-as arrange to work with GNU as
1766 --with-as arrange to use the specified as (full pathname)
1767 --with-stabs arrange to use stabs instead of host debug format
1768 --with-stack-clash-protection-guard-size=size
1769 Set the default stack clash protection guard size
1770 for specific targets as a power of two in bytes.
1771 --with-dwarf2 force the default debug format to be DWARF 2
1772 --with-specs=SPECS add SPECS to driver command-line processing
1773 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1774 --with-bugurl=URL Direct users to URL to report a bug
1775 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1776 --with-gnu-ld assume the C compiler uses GNU ld default=no
1777 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1778 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1779 --with-gcc-major-version-only
1780 use only GCC major number in filesystem paths
1781 --with-pic try to use only PIC/non-PIC objects [default=use
1782 both]
1783 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1784 --with-plugin-ld=[ARG] specify the plugin linker
1785 --with-glibc-version=M.N
1786 assume GCC used with glibc version M.N or later
1787 --with-long-double-128 use 128-bit long double by default
1788 --with-long-double-format={ieee,ibm}
1789 Specify whether PowerPC long double uses IEEE or IBM format
1790
1791 --with-gc={page,zone} this option is not supported anymore. It used to
1792 choose the garbage collection mechanism to use with
1793 the compiler
1794 --with-system-zlib use installed libz
1795 --with-linker-hash-style={sysv,gnu,both}
1796 specify the linker hash style
1797 --with-diagnostics-color={never,auto,auto-if-env,always}
1798 specify the default of -fdiagnostics-color option
1799 auto-if-env stands for -fdiagnostics-color=auto if
1800 GCC_COLOR environment variable is present and
1801 -fdiagnostics-color=never otherwise
1802
1803 Some influential environment variables:
1804 CC C compiler command
1805 CFLAGS C compiler flags
1806 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1807 nonstandard directory <lib dir>
1808 LIBS libraries to pass to the linker, e.g. -l<library>
1809 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1810 you have headers in a nonstandard directory <include dir>
1811 CXX C++ compiler command
1812 CXXFLAGS C++ compiler flags
1813 CXXCPP C++ preprocessor
1814 CPP C preprocessor
1815 GMPLIBS How to link GMP
1816 GMPINC How to find GMP include files
1817 ISLLIBS How to link isl
1818 ISLINC How to find isl include files
1819
1820 Use these variables to override the choices made by `configure' or to help
1821 it to find libraries and programs with nonstandard names/locations.
1822
1823 Report bugs to the package provider.
1824 _ACEOF
1825 ac_status=$?
1826 fi
1827
1828 if test "$ac_init_help" = "recursive"; then
1829 # If there are subdirs, report their specific --help.
1830 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1831 test -d "$ac_dir" ||
1832 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1833 continue
1834 ac_builddir=.
1835
1836 case "$ac_dir" in
1837 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1838 *)
1839 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1840 # A ".." for each directory in $ac_dir_suffix.
1841 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1842 case $ac_top_builddir_sub in
1843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1845 esac ;;
1846 esac
1847 ac_abs_top_builddir=$ac_pwd
1848 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1849 # for backward compatibility:
1850 ac_top_builddir=$ac_top_build_prefix
1851
1852 case $srcdir in
1853 .) # We are building in place.
1854 ac_srcdir=.
1855 ac_top_srcdir=$ac_top_builddir_sub
1856 ac_abs_top_srcdir=$ac_pwd ;;
1857 [\\/]* | ?:[\\/]* ) # Absolute name.
1858 ac_srcdir=$srcdir$ac_dir_suffix;
1859 ac_top_srcdir=$srcdir
1860 ac_abs_top_srcdir=$srcdir ;;
1861 *) # Relative name.
1862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1863 ac_top_srcdir=$ac_top_build_prefix$srcdir
1864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1865 esac
1866 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1867
1868 cd "$ac_dir" || { ac_status=$?; continue; }
1869 # Check for guested configure.
1870 if test -f "$ac_srcdir/configure.gnu"; then
1871 echo &&
1872 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1873 elif test -f "$ac_srcdir/configure"; then
1874 echo &&
1875 $SHELL "$ac_srcdir/configure" --help=recursive
1876 else
1877 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1878 fi || ac_status=$?
1879 cd "$ac_pwd" || { ac_status=$?; break; }
1880 done
1881 fi
1882
1883 test -n "$ac_init_help" && exit $ac_status
1884 if $ac_init_version; then
1885 cat <<\_ACEOF
1886 configure
1887 generated by GNU Autoconf 2.69
1888
1889 Copyright (C) 2012 Free Software Foundation, Inc.
1890 This configure script is free software; the Free Software Foundation
1891 gives unlimited permission to copy, distribute and modify it.
1892 _ACEOF
1893 exit
1894 fi
1895
1896 ## ------------------------ ##
1897 ## Autoconf initialization. ##
1898 ## ------------------------ ##
1899
1900 # ac_fn_c_try_compile LINENO
1901 # --------------------------
1902 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_c_try_compile ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 rm -f conftest.$ac_objext
1907 if { { ac_try="$ac_compile"
1908 case "(($ac_try" in
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_compile") 2>conftest.err
1915 ac_status=$?
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1920 fi
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } && {
1923 test -z "$ac_c_werror_flag" ||
1924 test ! -s conftest.err
1925 } && test -s conftest.$ac_objext; then :
1926 ac_retval=0
1927 else
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 ac_retval=1
1932 fi
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1935
1936 } # ac_fn_c_try_compile
1937
1938 # ac_fn_cxx_try_compile LINENO
1939 # ----------------------------
1940 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_compile ()
1942 {
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 rm -f conftest.$ac_objext
1945 if { { ac_try="$ac_compile"
1946 case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_compile") 2>conftest.err
1953 ac_status=$?
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1958 fi
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && {
1961 test -z "$ac_cxx_werror_flag" ||
1962 test ! -s conftest.err
1963 } && test -s conftest.$ac_objext; then :
1964 ac_retval=0
1965 else
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=1
1970 fi
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1973
1974 } # ac_fn_cxx_try_compile
1975
1976 # ac_fn_cxx_try_cpp LINENO
1977 # ------------------------
1978 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1979 ac_fn_cxx_try_cpp ()
1980 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if { { ac_try="$ac_cpp conftest.$ac_ext"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1995 fi
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } > conftest.i && {
1998 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1999 test ! -s conftest.err
2000 }; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 ac_retval=1
2007 fi
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status $ac_retval
2010
2011 } # ac_fn_cxx_try_cpp
2012
2013 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2014 # ---------------------------------------------------------
2015 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2016 # the include files in INCLUDES and setting the cache variable VAR
2017 # accordingly.
2018 ac_fn_cxx_check_header_mongrel ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 if eval \${$3+:} false; then :
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025 $as_echo_n "(cached) " >&6
2026 fi
2027 eval ac_res=\$$3
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 else
2031 # Is the header compilable?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2033 $as_echo_n "checking $2 usability... " >&6; }
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 $4
2037 #include <$2>
2038 _ACEOF
2039 if ac_fn_cxx_try_compile "$LINENO"; then :
2040 ac_header_compiler=yes
2041 else
2042 ac_header_compiler=no
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2046 $as_echo "$ac_header_compiler" >&6; }
2047
2048 # Is the header present?
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2050 $as_echo_n "checking $2 presence... " >&6; }
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2053 #include <$2>
2054 _ACEOF
2055 if ac_fn_cxx_try_cpp "$LINENO"; then :
2056 ac_header_preproc=yes
2057 else
2058 ac_header_preproc=no
2059 fi
2060 rm -f conftest.err conftest.i conftest.$ac_ext
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2062 $as_echo "$ac_header_preproc" >&6; }
2063
2064 # So? What about this header?
2065 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2066 yes:no: )
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2068 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2070 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2071 ;;
2072 no:yes:* )
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2074 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2076 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2078 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2080 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2082 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083 ;;
2084 esac
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 eval "$3=\$ac_header_compiler"
2091 fi
2092 eval ac_res=\$$3
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 fi
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097
2098 } # ac_fn_cxx_check_header_mongrel
2099
2100 # ac_fn_cxx_try_run LINENO
2101 # ------------------------
2102 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2103 # that executables *can* be run.
2104 ac_fn_cxx_try_run ()
2105 {
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 if { { ac_try="$ac_link"
2108 case "(($ac_try" in
2109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110 *) ac_try_echo=$ac_try;;
2111 esac
2112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113 $as_echo "$ac_try_echo"; } >&5
2114 (eval "$ac_link") 2>&5
2115 ac_status=$?
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
2125 ac_status=$?
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; }; }; then :
2128 ac_retval=0
2129 else
2130 $as_echo "$as_me: program exited with status $ac_status" >&5
2131 $as_echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2133
2134 ac_retval=$ac_status
2135 fi
2136 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 as_fn_set_status $ac_retval
2139
2140 } # ac_fn_cxx_try_run
2141
2142 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2143 # ---------------------------------------------------------
2144 # Tests whether HEADER exists and can be compiled using the include files in
2145 # INCLUDES, setting the cache variable VAR accordingly.
2146 ac_fn_cxx_check_header_compile ()
2147 {
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2153 else
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2156 $4
2157 #include <$2>
2158 _ACEOF
2159 if ac_fn_cxx_try_compile "$LINENO"; then :
2160 eval "$3=yes"
2161 else
2162 eval "$3=no"
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 fi
2166 eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170
2171 } # ac_fn_cxx_check_header_compile
2172
2173 # ac_fn_c_try_cpp LINENO
2174 # ----------------------
2175 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2176 ac_fn_c_try_cpp ()
2177 {
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if { { ac_try="$ac_cpp conftest.$ac_ext"
2180 case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183 esac
2184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185 $as_echo "$ac_try_echo"; } >&5
2186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2187 ac_status=$?
2188 if test -s conftest.err; then
2189 grep -v '^ *+' conftest.err >conftest.er1
2190 cat conftest.er1 >&5
2191 mv -f conftest.er1 conftest.err
2192 fi
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } > conftest.i && {
2195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2196 test ! -s conftest.err
2197 }; then :
2198 ac_retval=0
2199 else
2200 $as_echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2202
2203 ac_retval=1
2204 fi
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 as_fn_set_status $ac_retval
2207
2208 } # ac_fn_c_try_cpp
2209
2210 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2211 # ----------------------------------------------
2212 # Tries to find the compile-time value of EXPR in a program that includes
2213 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2214 # computed
2215 ac_fn_cxx_compute_int ()
2216 {
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 if test "$cross_compiling" = yes; then
2219 # Depending upon the size, compute the lo and hi bounds.
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2222 $4
2223 int
2224 main ()
2225 {
2226 static int test_array [1 - 2 * !(($2) >= 0)];
2227 test_array [0] = 0;
2228 return test_array [0];
2229
2230 ;
2231 return 0;
2232 }
2233 _ACEOF
2234 if ac_fn_cxx_try_compile "$LINENO"; then :
2235 ac_lo=0 ac_mid=0
2236 while :; do
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 $4
2240 int
2241 main ()
2242 {
2243 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2244 test_array [0] = 0;
2245 return test_array [0];
2246
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_cxx_try_compile "$LINENO"; then :
2252 ac_hi=$ac_mid; break
2253 else
2254 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2255 if test $ac_lo -le $ac_mid; then
2256 ac_lo= ac_hi=
2257 break
2258 fi
2259 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2260 fi
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 done
2263 else
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2266 $4
2267 int
2268 main ()
2269 {
2270 static int test_array [1 - 2 * !(($2) < 0)];
2271 test_array [0] = 0;
2272 return test_array [0];
2273
2274 ;
2275 return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_cxx_try_compile "$LINENO"; then :
2279 ac_hi=-1 ac_mid=-1
2280 while :; do
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2283 $4
2284 int
2285 main ()
2286 {
2287 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2288 test_array [0] = 0;
2289 return test_array [0];
2290
2291 ;
2292 return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_cxx_try_compile "$LINENO"; then :
2296 ac_lo=$ac_mid; break
2297 else
2298 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2299 if test $ac_mid -le $ac_hi; then
2300 ac_lo= ac_hi=
2301 break
2302 fi
2303 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 done
2307 else
2308 ac_lo= ac_hi=
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 fi
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 # Binary search between lo and hi bounds.
2314 while test "x$ac_lo" != "x$ac_hi"; do
2315 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 $4
2319 int
2320 main ()
2321 {
2322 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2323 test_array [0] = 0;
2324 return test_array [0];
2325
2326 ;
2327 return 0;
2328 }
2329 _ACEOF
2330 if ac_fn_cxx_try_compile "$LINENO"; then :
2331 ac_hi=$ac_mid
2332 else
2333 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2334 fi
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 done
2337 case $ac_lo in #((
2338 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2339 '') ac_retval=1 ;;
2340 esac
2341 else
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2344 $4
2345 static long int longval () { return $2; }
2346 static unsigned long int ulongval () { return $2; }
2347 #include <stdio.h>
2348 #include <stdlib.h>
2349 int
2350 main ()
2351 {
2352
2353 FILE *f = fopen ("conftest.val", "w");
2354 if (! f)
2355 return 1;
2356 if (($2) < 0)
2357 {
2358 long int i = longval ();
2359 if (i != ($2))
2360 return 1;
2361 fprintf (f, "%ld", i);
2362 }
2363 else
2364 {
2365 unsigned long int i = ulongval ();
2366 if (i != ($2))
2367 return 1;
2368 fprintf (f, "%lu", i);
2369 }
2370 /* Do not output a trailing newline, as this causes \r\n confusion
2371 on some platforms. */
2372 return ferror (f) || fclose (f) != 0;
2373
2374 ;
2375 return 0;
2376 }
2377 _ACEOF
2378 if ac_fn_cxx_try_run "$LINENO"; then :
2379 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2380 else
2381 ac_retval=1
2382 fi
2383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2384 conftest.$ac_objext conftest.beam conftest.$ac_ext
2385 rm -f conftest.val
2386
2387 fi
2388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2389 as_fn_set_status $ac_retval
2390
2391 } # ac_fn_cxx_compute_int
2392
2393 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2394 # ---------------------------------------------
2395 # Tests whether TYPE exists after having included INCLUDES, setting cache
2396 # variable VAR accordingly.
2397 ac_fn_cxx_check_type ()
2398 {
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2401 $as_echo_n "checking for $2... " >&6; }
2402 if eval \${$3+:} false; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 eval "$3=no"
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2408 $4
2409 int
2410 main ()
2411 {
2412 if (sizeof ($2))
2413 return 0;
2414 ;
2415 return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_cxx_try_compile "$LINENO"; then :
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $4
2422 int
2423 main ()
2424 {
2425 if (sizeof (($2)))
2426 return 0;
2427 ;
2428 return 0;
2429 }
2430 _ACEOF
2431 if ac_fn_cxx_try_compile "$LINENO"; then :
2432
2433 else
2434 eval "$3=yes"
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 fi
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 fi
2440 eval ac_res=\$$3
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2444
2445 } # ac_fn_cxx_check_type
2446
2447 # ac_fn_c_find_intX_t LINENO BITS VAR
2448 # -----------------------------------
2449 # Finds a signed integer type with width BITS, setting cache variable VAR
2450 # accordingly.
2451 ac_fn_c_find_intX_t ()
2452 {
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2455 $as_echo_n "checking for int$2_t... " >&6; }
2456 if eval \${$3+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 eval "$3=no"
2460 # Order is important - never check a type that is potentially smaller
2461 # than half of the expected target width.
2462 for ac_type in int$2_t 'int' 'long int' \
2463 'long long int' 'short int' 'signed char'; do
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2466 $ac_includes_default
2467 enum { N = $2 / 2 - 1 };
2468 int
2469 main ()
2470 {
2471 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2472 test_array [0] = 0;
2473 return test_array [0];
2474
2475 ;
2476 return 0;
2477 }
2478 _ACEOF
2479 if ac_fn_cxx_try_compile "$LINENO"; then :
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2482 $ac_includes_default
2483 enum { N = $2 / 2 - 1 };
2484 int
2485 main ()
2486 {
2487 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2488 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2489 test_array [0] = 0;
2490 return test_array [0];
2491
2492 ;
2493 return 0;
2494 }
2495 _ACEOF
2496 if ac_fn_cxx_try_compile "$LINENO"; then :
2497
2498 else
2499 case $ac_type in #(
2500 int$2_t) :
2501 eval "$3=yes" ;; #(
2502 *) :
2503 eval "$3=\$ac_type" ;;
2504 esac
2505 fi
2506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507 fi
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 if eval test \"x\$"$3"\" = x"no"; then :
2510
2511 else
2512 break
2513 fi
2514 done
2515 fi
2516 eval ac_res=\$$3
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2518 $as_echo "$ac_res" >&6; }
2519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520
2521 } # ac_fn_c_find_intX_t
2522
2523 # ac_fn_cxx_try_link LINENO
2524 # -------------------------
2525 # Try to link conftest.$ac_ext, and return whether this succeeded.
2526 ac_fn_cxx_try_link ()
2527 {
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 rm -f conftest.$ac_objext conftest$ac_exeext
2530 if { { ac_try="$ac_link"
2531 case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534 esac
2535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2536 $as_echo "$ac_try_echo"; } >&5
2537 (eval "$ac_link") 2>conftest.err
2538 ac_status=$?
2539 if test -s conftest.err; then
2540 grep -v '^ *+' conftest.err >conftest.er1
2541 cat conftest.er1 >&5
2542 mv -f conftest.er1 conftest.err
2543 fi
2544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2545 test $ac_status = 0; } && {
2546 test -z "$ac_cxx_werror_flag" ||
2547 test ! -s conftest.err
2548 } && test -s conftest$ac_exeext && {
2549 test "$cross_compiling" = yes ||
2550 test -x conftest$ac_exeext
2551 }; then :
2552 ac_retval=0
2553 else
2554 $as_echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557 ac_retval=1
2558 fi
2559 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2560 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2561 # interfere with the next link command; also delete a directory that is
2562 # left behind by Apple's compiler. We do this before executing the actions.
2563 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2565 as_fn_set_status $ac_retval
2566
2567 } # ac_fn_cxx_try_link
2568
2569 # ac_fn_c_find_uintX_t LINENO BITS VAR
2570 # ------------------------------------
2571 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2572 # accordingly.
2573 ac_fn_c_find_uintX_t ()
2574 {
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2577 $as_echo_n "checking for uint$2_t... " >&6; }
2578 if eval \${$3+:} false; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 eval "$3=no"
2582 # Order is important - never check a type that is potentially smaller
2583 # than half of the expected target width.
2584 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2585 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2588 $ac_includes_default
2589 int
2590 main ()
2591 {
2592 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2593 test_array [0] = 0;
2594 return test_array [0];
2595
2596 ;
2597 return 0;
2598 }
2599 _ACEOF
2600 if ac_fn_cxx_try_compile "$LINENO"; then :
2601 case $ac_type in #(
2602 uint$2_t) :
2603 eval "$3=yes" ;; #(
2604 *) :
2605 eval "$3=\$ac_type" ;;
2606 esac
2607 fi
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 if eval test \"x\$"$3"\" = x"no"; then :
2610
2611 else
2612 break
2613 fi
2614 done
2615 fi
2616 eval ac_res=\$$3
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2620
2621 } # ac_fn_c_find_uintX_t
2622
2623 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2624 # ------------------------------------------------
2625 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2626 ac_fn_cxx_check_header_preproc ()
2627 {
2628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2630 $as_echo_n "checking for $2... " >&6; }
2631 if eval \${$3+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2636 #include <$2>
2637 _ACEOF
2638 if ac_fn_cxx_try_cpp "$LINENO"; then :
2639 eval "$3=yes"
2640 else
2641 eval "$3=no"
2642 fi
2643 rm -f conftest.err conftest.i conftest.$ac_ext
2644 fi
2645 eval ac_res=\$$3
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2647 $as_echo "$ac_res" >&6; }
2648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2649
2650 } # ac_fn_cxx_check_header_preproc
2651
2652 # ac_fn_cxx_check_func LINENO FUNC VAR
2653 # ------------------------------------
2654 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2655 ac_fn_cxx_check_func ()
2656 {
2657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2659 $as_echo_n "checking for $2... " >&6; }
2660 if eval \${$3+:} false; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h. */
2665 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2667 #define $2 innocuous_$2
2668
2669 /* System header to define __stub macros and hopefully few prototypes,
2670 which can conflict with char $2 (); below.
2671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2672 <limits.h> exists even on freestanding compilers. */
2673
2674 #ifdef __STDC__
2675 # include <limits.h>
2676 #else
2677 # include <assert.h>
2678 #endif
2679
2680 #undef $2
2681
2682 /* Override any GCC internal prototype to avoid an error.
2683 Use char because int might match the return type of a GCC
2684 builtin and then its argument prototype would still apply. */
2685 #ifdef __cplusplus
2686 extern "C"
2687 #endif
2688 char $2 ();
2689 /* The GNU C library defines this for functions which it implements
2690 to always fail with ENOSYS. Some functions are actually named
2691 something starting with __ and the normal name is an alias. */
2692 #if defined __stub_$2 || defined __stub___$2
2693 choke me
2694 #endif
2695
2696 int
2697 main ()
2698 {
2699 return $2 ();
2700 ;
2701 return 0;
2702 }
2703 _ACEOF
2704 if ac_fn_cxx_try_link "$LINENO"; then :
2705 eval "$3=yes"
2706 else
2707 eval "$3=no"
2708 fi
2709 rm -f core conftest.err conftest.$ac_objext \
2710 conftest$ac_exeext conftest.$ac_ext
2711 fi
2712 eval ac_res=\$$3
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2714 $as_echo "$ac_res" >&6; }
2715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2716
2717 } # ac_fn_cxx_check_func
2718
2719 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2720 # -----------------------------------------------
2721 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2722 # accordingly.
2723 ac_fn_cxx_check_decl ()
2724 {
2725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2726 as_decl_name=`echo $2|sed 's/ *(.*//'`
2727 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2729 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2730 if eval \${$3+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2735 $4
2736 int
2737 main ()
2738 {
2739 #ifndef $as_decl_name
2740 #ifdef __cplusplus
2741 (void) $as_decl_use;
2742 #else
2743 (void) $as_decl_name;
2744 #endif
2745 #endif
2746
2747 ;
2748 return 0;
2749 }
2750 _ACEOF
2751 if ac_fn_cxx_try_compile "$LINENO"; then :
2752 eval "$3=yes"
2753 else
2754 eval "$3=no"
2755 fi
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757 fi
2758 eval ac_res=\$$3
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2760 $as_echo "$ac_res" >&6; }
2761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2762
2763 } # ac_fn_cxx_check_decl
2764
2765 # ac_fn_c_try_link LINENO
2766 # -----------------------
2767 # Try to link conftest.$ac_ext, and return whether this succeeded.
2768 ac_fn_c_try_link ()
2769 {
2770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771 rm -f conftest.$ac_objext conftest$ac_exeext
2772 if { { ac_try="$ac_link"
2773 case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2778 $as_echo "$ac_try_echo"; } >&5
2779 (eval "$ac_link") 2>conftest.err
2780 ac_status=$?
2781 if test -s conftest.err; then
2782 grep -v '^ *+' conftest.err >conftest.er1
2783 cat conftest.er1 >&5
2784 mv -f conftest.er1 conftest.err
2785 fi
2786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787 test $ac_status = 0; } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest$ac_exeext && {
2791 test "$cross_compiling" = yes ||
2792 test -x conftest$ac_exeext
2793 }; then :
2794 ac_retval=0
2795 else
2796 $as_echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 ac_retval=1
2800 fi
2801 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2802 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2803 # interfere with the next link command; also delete a directory that is
2804 # left behind by Apple's compiler. We do this before executing the actions.
2805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2807 as_fn_set_status $ac_retval
2808
2809 } # ac_fn_c_try_link
2810
2811 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2812 # ----------------------------------------------
2813 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2814 ac_fn_c_check_header_preproc ()
2815 {
2816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2818 $as_echo_n "checking for $2... " >&6; }
2819 if eval \${$3+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h. */
2824 #include <$2>
2825 _ACEOF
2826 if ac_fn_c_try_cpp "$LINENO"; then :
2827 eval "$3=yes"
2828 else
2829 eval "$3=no"
2830 fi
2831 rm -f conftest.err conftest.i conftest.$ac_ext
2832 fi
2833 eval ac_res=\$$3
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2835 $as_echo "$ac_res" >&6; }
2836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837
2838 } # ac_fn_c_check_header_preproc
2839
2840 # ac_fn_c_check_func LINENO FUNC VAR
2841 # ----------------------------------
2842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2843 ac_fn_c_check_func ()
2844 {
2845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2847 $as_echo_n "checking for $2... " >&6; }
2848 if eval \${$3+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2855 #define $2 innocuous_$2
2856
2857 /* System header to define __stub macros and hopefully few prototypes,
2858 which can conflict with char $2 (); below.
2859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2860 <limits.h> exists even on freestanding compilers. */
2861
2862 #ifdef __STDC__
2863 # include <limits.h>
2864 #else
2865 # include <assert.h>
2866 #endif
2867
2868 #undef $2
2869
2870 /* Override any GCC internal prototype to avoid an error.
2871 Use char because int might match the return type of a GCC
2872 builtin and then its argument prototype would still apply. */
2873 #ifdef __cplusplus
2874 extern "C"
2875 #endif
2876 char $2 ();
2877 /* The GNU C library defines this for functions which it implements
2878 to always fail with ENOSYS. Some functions are actually named
2879 something starting with __ and the normal name is an alias. */
2880 #if defined __stub_$2 || defined __stub___$2
2881 choke me
2882 #endif
2883
2884 int
2885 main ()
2886 {
2887 return $2 ();
2888 ;
2889 return 0;
2890 }
2891 _ACEOF
2892 if ac_fn_c_try_link "$LINENO"; then :
2893 eval "$3=yes"
2894 else
2895 eval "$3=no"
2896 fi
2897 rm -f core conftest.err conftest.$ac_objext \
2898 conftest$ac_exeext conftest.$ac_ext
2899 fi
2900 eval ac_res=\$$3
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2902 $as_echo "$ac_res" >&6; }
2903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2904
2905 } # ac_fn_c_check_func
2906 cat >config.log <<_ACEOF
2907 This file contains any messages produced by compilers while
2908 running configure, to aid debugging if configure makes a mistake.
2909
2910 It was created by $as_me, which was
2911 generated by GNU Autoconf 2.69. Invocation command line was
2912
2913 $ $0 $@
2914
2915 _ACEOF
2916 exec 5>>config.log
2917 {
2918 cat <<_ASUNAME
2919 ## --------- ##
2920 ## Platform. ##
2921 ## --------- ##
2922
2923 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2924 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2925 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2926 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2927 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2928
2929 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2930 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2931
2932 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2933 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2934 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2935 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2936 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2937 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2938 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2939
2940 _ASUNAME
2941
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 $as_echo "PATH: $as_dir"
2948 done
2949 IFS=$as_save_IFS
2950
2951 } >&5
2952
2953 cat >&5 <<_ACEOF
2954
2955
2956 ## ----------- ##
2957 ## Core tests. ##
2958 ## ----------- ##
2959
2960 _ACEOF
2961
2962
2963 # Keep a trace of the command line.
2964 # Strip out --no-create and --no-recursion so they do not pile up.
2965 # Strip out --silent because we don't want to record it for future runs.
2966 # Also quote any args containing shell meta-characters.
2967 # Make two passes to allow for proper duplicate-argument suppression.
2968 ac_configure_args=
2969 ac_configure_args0=
2970 ac_configure_args1=
2971 ac_must_keep_next=false
2972 for ac_pass in 1 2
2973 do
2974 for ac_arg
2975 do
2976 case $ac_arg in
2977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2979 | -silent | --silent | --silen | --sile | --sil)
2980 continue ;;
2981 *\'*)
2982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2983 esac
2984 case $ac_pass in
2985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2986 2)
2987 as_fn_append ac_configure_args1 " '$ac_arg'"
2988 if test $ac_must_keep_next = true; then
2989 ac_must_keep_next=false # Got value, back to normal.
2990 else
2991 case $ac_arg in
2992 *=* | --config-cache | -C | -disable-* | --disable-* \
2993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2995 | -with-* | --with-* | -without-* | --without-* | --x)
2996 case "$ac_configure_args0 " in
2997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2998 esac
2999 ;;
3000 -* ) ac_must_keep_next=true ;;
3001 esac
3002 fi
3003 as_fn_append ac_configure_args " '$ac_arg'"
3004 ;;
3005 esac
3006 done
3007 done
3008 { ac_configure_args0=; unset ac_configure_args0;}
3009 { ac_configure_args1=; unset ac_configure_args1;}
3010
3011 # When interrupted or exit'd, cleanup temporary files, and complete
3012 # config.log. We remove comments because anyway the quotes in there
3013 # would cause problems or look ugly.
3014 # WARNING: Use '\'' to represent an apostrophe within the trap.
3015 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3016 trap 'exit_status=$?
3017 # Save into config.log some information that might help in debugging.
3018 {
3019 echo
3020
3021 $as_echo "## ---------------- ##
3022 ## Cache variables. ##
3023 ## ---------------- ##"
3024 echo
3025 # The following way of writing the cache mishandles newlines in values,
3026 (
3027 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3028 eval ac_val=\$$ac_var
3029 case $ac_val in #(
3030 *${as_nl}*)
3031 case $ac_var in #(
3032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3033 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3034 esac
3035 case $ac_var in #(
3036 _ | IFS | as_nl) ;; #(
3037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3038 *) { eval $ac_var=; unset $ac_var;} ;;
3039 esac ;;
3040 esac
3041 done
3042 (set) 2>&1 |
3043 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3044 *${as_nl}ac_space=\ *)
3045 sed -n \
3046 "s/'\''/'\''\\\\'\'''\''/g;
3047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3048 ;; #(
3049 *)
3050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3051 ;;
3052 esac |
3053 sort
3054 )
3055 echo
3056
3057 $as_echo "## ----------------- ##
3058 ## Output variables. ##
3059 ## ----------------- ##"
3060 echo
3061 for ac_var in $ac_subst_vars
3062 do
3063 eval ac_val=\$$ac_var
3064 case $ac_val in
3065 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3066 esac
3067 $as_echo "$ac_var='\''$ac_val'\''"
3068 done | sort
3069 echo
3070
3071 if test -n "$ac_subst_files"; then
3072 $as_echo "## ------------------- ##
3073 ## File substitutions. ##
3074 ## ------------------- ##"
3075 echo
3076 for ac_var in $ac_subst_files
3077 do
3078 eval ac_val=\$$ac_var
3079 case $ac_val in
3080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3081 esac
3082 $as_echo "$ac_var='\''$ac_val'\''"
3083 done | sort
3084 echo
3085 fi
3086
3087 if test -s confdefs.h; then
3088 $as_echo "## ----------- ##
3089 ## confdefs.h. ##
3090 ## ----------- ##"
3091 echo
3092 cat confdefs.h
3093 echo
3094 fi
3095 test "$ac_signal" != 0 &&
3096 $as_echo "$as_me: caught signal $ac_signal"
3097 $as_echo "$as_me: exit $exit_status"
3098 } >&5
3099 rm -f core *.core core.conftest.* &&
3100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3101 exit $exit_status
3102 ' 0
3103 for ac_signal in 1 2 13 15; do
3104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3105 done
3106 ac_signal=0
3107
3108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3109 rm -f -r conftest* confdefs.h
3110
3111 $as_echo "/* confdefs.h */" > confdefs.h
3112
3113 # Predefined preprocessor variables.
3114
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_NAME "$PACKAGE_NAME"
3117 _ACEOF
3118
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3121 _ACEOF
3122
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3125 _ACEOF
3126
3127 cat >>confdefs.h <<_ACEOF
3128 #define PACKAGE_STRING "$PACKAGE_STRING"
3129 _ACEOF
3130
3131 cat >>confdefs.h <<_ACEOF
3132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3133 _ACEOF
3134
3135 cat >>confdefs.h <<_ACEOF
3136 #define PACKAGE_URL "$PACKAGE_URL"
3137 _ACEOF
3138
3139
3140 # Let the site file select an alternate cache file if it wants to.
3141 # Prefer an explicitly selected file to automatically selected ones.
3142 ac_site_file1=NONE
3143 ac_site_file2=NONE
3144 if test -n "$CONFIG_SITE"; then
3145 # We do not want a PATH search for config.site.
3146 case $CONFIG_SITE in #((
3147 -*) ac_site_file1=./$CONFIG_SITE;;
3148 */*) ac_site_file1=$CONFIG_SITE;;
3149 *) ac_site_file1=./$CONFIG_SITE;;
3150 esac
3151 elif test "x$prefix" != xNONE; then
3152 ac_site_file1=$prefix/share/config.site
3153 ac_site_file2=$prefix/etc/config.site
3154 else
3155 ac_site_file1=$ac_default_prefix/share/config.site
3156 ac_site_file2=$ac_default_prefix/etc/config.site
3157 fi
3158 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3159 do
3160 test "x$ac_site_file" = xNONE && continue
3161 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3163 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3164 sed 's/^/| /' "$ac_site_file" >&5
3165 . "$ac_site_file" \
3166 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error $? "failed to load site script $ac_site_file
3169 See \`config.log' for more details" "$LINENO" 5; }
3170 fi
3171 done
3172
3173 if test -r "$cache_file"; then
3174 # Some versions of bash will fail to source /dev/null (special files
3175 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3176 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3178 $as_echo "$as_me: loading cache $cache_file" >&6;}
3179 case $cache_file in
3180 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3181 *) . "./$cache_file";;
3182 esac
3183 fi
3184 else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3186 $as_echo "$as_me: creating cache $cache_file" >&6;}
3187 >$cache_file
3188 fi
3189
3190 # Check that the precious variables saved in the cache have kept the same
3191 # value.
3192 ac_cache_corrupted=false
3193 for ac_var in $ac_precious_vars; do
3194 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3195 eval ac_new_set=\$ac_env_${ac_var}_set
3196 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3197 eval ac_new_val=\$ac_env_${ac_var}_value
3198 case $ac_old_set,$ac_new_set in
3199 set,)
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3201 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3202 ac_cache_corrupted=: ;;
3203 ,set)
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3205 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3206 ac_cache_corrupted=: ;;
3207 ,);;
3208 *)
3209 if test "x$ac_old_val" != "x$ac_new_val"; then
3210 # differences in whitespace do not lead to failure.
3211 ac_old_val_w=`echo x $ac_old_val`
3212 ac_new_val_w=`echo x $ac_new_val`
3213 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3215 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3216 ac_cache_corrupted=:
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3219 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3220 eval $ac_var=\$ac_old_val
3221 fi
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3223 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3225 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3226 fi;;
3227 esac
3228 # Pass precious variables to config.status.
3229 if test "$ac_new_set" = set; then
3230 case $ac_new_val in
3231 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3232 *) ac_arg=$ac_var=$ac_new_val ;;
3233 esac
3234 case " $ac_configure_args " in
3235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3236 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3237 esac
3238 fi
3239 done
3240 if $ac_cache_corrupted; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3244 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3245 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3246 fi
3247 ## -------------------- ##
3248 ## Main body of script. ##
3249 ## -------------------- ##
3250
3251 ac_ext=c
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256
3257
3258
3259
3260
3261
3262 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3263
3264
3265 gcc_version=`cat $srcdir/BASE-VER`
3266
3267 # Determine the host, build, and target systems
3268 ac_aux_dir=
3269 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3270 if test -f "$ac_dir/install-sh"; then
3271 ac_aux_dir=$ac_dir
3272 ac_install_sh="$ac_aux_dir/install-sh -c"
3273 break
3274 elif test -f "$ac_dir/install.sh"; then
3275 ac_aux_dir=$ac_dir
3276 ac_install_sh="$ac_aux_dir/install.sh -c"
3277 break
3278 elif test -f "$ac_dir/shtool"; then
3279 ac_aux_dir=$ac_dir
3280 ac_install_sh="$ac_aux_dir/shtool install -c"
3281 break
3282 fi
3283 done
3284 if test -z "$ac_aux_dir"; then
3285 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3286 fi
3287
3288 # These three variables are undocumented and unsupported,
3289 # and are intended to be withdrawn in a future Autoconf release.
3290 # They can cause serious problems if a builder's source tree is in a directory
3291 # whose full name contains unusual characters.
3292 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3293 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3294 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3295
3296
3297 # Make sure we can run config.sub.
3298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3299 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3300
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3302 $as_echo_n "checking build system type... " >&6; }
3303 if ${ac_cv_build+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 ac_build_alias=$build_alias
3307 test "x$ac_build_alias" = x &&
3308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3309 test "x$ac_build_alias" = x &&
3310 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3312 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3313
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3316 $as_echo "$ac_cv_build" >&6; }
3317 case $ac_cv_build in
3318 *-*-*) ;;
3319 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3320 esac
3321 build=$ac_cv_build
3322 ac_save_IFS=$IFS; IFS='-'
3323 set x $ac_cv_build
3324 shift
3325 build_cpu=$1
3326 build_vendor=$2
3327 shift; shift
3328 # Remember, the first character of IFS is used to create $*,
3329 # except with old shells:
3330 build_os=$*
3331 IFS=$ac_save_IFS
3332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3333
3334
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3336 $as_echo_n "checking host system type... " >&6; }
3337 if ${ac_cv_host+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 if test "x$host_alias" = x; then
3341 ac_cv_host=$ac_cv_build
3342 else
3343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3345 fi
3346
3347 fi
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3349 $as_echo "$ac_cv_host" >&6; }
3350 case $ac_cv_host in
3351 *-*-*) ;;
3352 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3353 esac
3354 host=$ac_cv_host
3355 ac_save_IFS=$IFS; IFS='-'
3356 set x $ac_cv_host
3357 shift
3358 host_cpu=$1
3359 host_vendor=$2
3360 shift; shift
3361 # Remember, the first character of IFS is used to create $*,
3362 # except with old shells:
3363 host_os=$*
3364 IFS=$ac_save_IFS
3365 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3366
3367
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3369 $as_echo_n "checking target system type... " >&6; }
3370 if ${ac_cv_target+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if test "x$target_alias" = x; then
3374 ac_cv_target=$ac_cv_host
3375 else
3376 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3378 fi
3379
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3382 $as_echo "$ac_cv_target" >&6; }
3383 case $ac_cv_target in
3384 *-*-*) ;;
3385 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3386 esac
3387 target=$ac_cv_target
3388 ac_save_IFS=$IFS; IFS='-'
3389 set x $ac_cv_target
3390 shift
3391 target_cpu=$1
3392 target_vendor=$2
3393 shift; shift
3394 # Remember, the first character of IFS is used to create $*,
3395 # except with old shells:
3396 target_os=$*
3397 IFS=$ac_save_IFS
3398 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3399
3400
3401 # The aliases save the names the user supplied, while $host etc.
3402 # will get canonicalized.
3403 test -n "$target_alias" &&
3404 test "$program_prefix$program_suffix$program_transform_name" = \
3405 NONENONEs,x,x, &&
3406 program_prefix=${target_alias}-
3407
3408 # Determine the noncanonical host name, for Ada.
3409 case ${build_alias} in
3410 "") build_noncanonical=${build} ;;
3411 *) build_noncanonical=${build_alias} ;;
3412 esac
3413
3414 case ${host_alias} in
3415 "") host_noncanonical=${build_noncanonical} ;;
3416 *) host_noncanonical=${host_alias} ;;
3417 esac
3418
3419
3420
3421
3422 # Determine the noncanonical target name, for directory use.
3423 case ${target_alias} in
3424 "") target_noncanonical=${host_noncanonical} ;;
3425 *) target_noncanonical=${target_alias} ;;
3426 esac
3427
3428
3429
3430
3431 # Used for constructing correct paths for offload compilers.
3432 real_target_noncanonical=${target_noncanonical}
3433 accel_dir_suffix=
3434
3435 # Determine the target- and build-specific subdirectories
3436
3437 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3438 # have matching libraries, they should use host libraries: Makefile.tpl
3439 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3440 # However, they still use the build modules, because the corresponding
3441 # host modules (e.g. bison) are only built for the host when bootstrap
3442 # finishes. So:
3443 # - build_subdir is where we find build modules, and never changes.
3444 # - build_libsubdir is where we find build libraries, and can be overridden.
3445
3446 # Prefix 'build-' so this never conflicts with target_subdir.
3447 build_subdir="build-${build_noncanonical}"
3448
3449 # Check whether --with-build-libsubdir was given.
3450 if test "${with_build_libsubdir+set}" = set; then :
3451 withval=$with_build_libsubdir; build_libsubdir="$withval"
3452 else
3453 build_libsubdir="$build_subdir"
3454 fi
3455
3456 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3457 if ( test $srcdir = . && test -d gcc ) \
3458 || test -d $srcdir/../host-${host_noncanonical}; then
3459 host_subdir="host-${host_noncanonical}"
3460 else
3461 host_subdir=.
3462 fi
3463 # No prefix.
3464 target_subdir=${target_noncanonical}
3465
3466
3467 # Set program_transform_name
3468 test "$program_prefix" != NONE &&
3469 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3470 # Use a double $ so make ignores it.
3471 test "$program_suffix" != NONE &&
3472 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3473 # Double any \ or $.
3474 # By default was `s,x,x', remove it if useless.
3475 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3476 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3477
3478
3479 # Check for bogus environment variables.
3480 # Test if LIBRARY_PATH contains the notation for the current directory
3481 # since this would lead to problems installing/building glibc.
3482 # LIBRARY_PATH contains the current directory if one of the following
3483 # is true:
3484 # - one of the terminals (":" and ";") is the first or last sign
3485 # - two terminals occur directly after each other
3486 # - the path contains an element with a dot in it
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3488 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3489 case ${LIBRARY_PATH} in
3490 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3491 library_path_setting="contains current directory"
3492 ;;
3493 *)
3494 library_path_setting="ok"
3495 ;;
3496 esac
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3498 $as_echo "$library_path_setting" >&6; }
3499 if test "$library_path_setting" != "ok"; then
3500 as_fn_error $? "
3501 *** LIBRARY_PATH shouldn't contain the current directory when
3502 *** building gcc. Please change the environment variable
3503 *** and run configure again." "$LINENO" 5
3504 fi
3505
3506 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3507 # since this would lead to problems installing/building glibc.
3508 # GCC_EXEC_PREFIX contains the current directory if one of the following
3509 # is true:
3510 # - one of the terminals (":" and ";") is the first or last sign
3511 # - two terminals occur directly after each other
3512 # - the path contains an element with a dot in it
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3514 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3515 case ${GCC_EXEC_PREFIX} in
3516 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3517 gcc_exec_prefix_setting="contains current directory"
3518 ;;
3519 *)
3520 gcc_exec_prefix_setting="ok"
3521 ;;
3522 esac
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3524 $as_echo "$gcc_exec_prefix_setting" >&6; }
3525 if test "$gcc_exec_prefix_setting" != "ok"; then
3526 as_fn_error $? "
3527 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3528 *** building gcc. Please change the environment variable
3529 *** and run configure again." "$LINENO" 5
3530 fi
3531
3532 # -----------
3533 # Directories
3534 # -----------
3535
3536 # Specify the local prefix
3537 local_prefix=
3538
3539 # Check whether --with-local-prefix was given.
3540 if test "${with_local_prefix+set}" = set; then :
3541 withval=$with_local_prefix; case "${withval}" in
3542 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3543 no) ;;
3544 *) local_prefix=$with_local_prefix ;;
3545 esac
3546 fi
3547
3548
3549 # Default local prefix if it is empty
3550 if test x$local_prefix = x; then
3551 local_prefix=/usr/local
3552 fi
3553
3554
3555 # Check whether --with-native-system-header-dir was given.
3556 if test "${with_native_system_header_dir+set}" = set; then :
3557 withval=$with_native_system_header_dir;
3558 case ${with_native_system_header_dir} in
3559 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3560 /* | [A-Za-z]:[\\/]*) ;;
3561 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3562 esac
3563 configured_native_system_header_dir="${withval}"
3564
3565 else
3566 configured_native_system_header_dir=
3567 fi
3568
3569
3570
3571 # Check whether --with-build-sysroot was given.
3572 if test "${with_build_sysroot+set}" = set; then :
3573 withval=$with_build_sysroot; if test x"$withval" != x ; then
3574 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3575 fi
3576 else
3577 SYSROOT_CFLAGS_FOR_TARGET=
3578 fi
3579
3580
3581
3582 if test "x$prefix" = xNONE; then
3583 test_prefix=/usr/local
3584 else
3585 test_prefix=$prefix
3586 fi
3587 if test "x$exec_prefix" = xNONE; then
3588 test_exec_prefix=$test_prefix
3589 else
3590 test_exec_prefix=$exec_prefix
3591 fi
3592
3593
3594 # Check whether --with-sysroot was given.
3595 if test "${with_sysroot+set}" = set; then :
3596 withval=$with_sysroot;
3597 case ${with_sysroot} in
3598 /) ;;
3599 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3600 esac
3601 case ${with_sysroot} in
3602 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3603 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3604 esac
3605
3606 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3607 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3608
3609 case ${TARGET_SYSTEM_ROOT} in
3610 "${test_prefix}"|"${test_prefix}/"*|\
3611 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3612 '${prefix}'|'${prefix}/'*|\
3613 '${exec_prefix}'|'${exec_prefix}/'*)
3614 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3615 TARGET_SYSTEM_ROOT_DEFINE="$t"
3616 ;;
3617 esac
3618
3619 else
3620
3621 TARGET_SYSTEM_ROOT=
3622 TARGET_SYSTEM_ROOT_DEFINE=
3623 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3624
3625 fi
3626
3627
3628
3629
3630
3631 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3632 # passed in by the toplevel make and thus we'd get different behavior
3633 # depending on where we built the sources.
3634 gcc_gxx_include_dir=
3635 # Specify the g++ header file directory
3636
3637 # Check whether --with-gxx-include-dir was given.
3638 if test "${with_gxx_include_dir+set}" = set; then :
3639 withval=$with_gxx_include_dir; case "${withval}" in
3640 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3641 no) ;;
3642 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3643 esac
3644 fi
3645
3646
3647 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3648 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3649 # relative to the sysroot.
3650 gcc_gxx_include_dir_add_sysroot=0
3651
3652 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3653 if test x${gcc_gxx_include_dir} = x; then
3654 if test x${enable_version_specific_runtime_libs} = xyes; then
3655 gcc_gxx_include_dir='${libsubdir}/include/c++'
3656 else
3657 libstdcxx_incdir='include/c++/$(version)'
3658 if test x$host != x$target; then
3659 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3660 fi
3661 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3662 fi
3663 elif test "${with_sysroot+set}" = set; then
3664 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3665 if test "${gcc_gxx_without_sysroot}"; then
3666 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3667 gcc_gxx_include_dir_add_sysroot=1
3668 fi
3669 fi
3670
3671
3672 # Check whether --with-cpp_install_dir was given.
3673 if test "${with_cpp_install_dir+set}" = set; then :
3674 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3675 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3676 elif test x$withval != xno; then
3677 cpp_install_dir=$withval
3678 fi
3679 fi
3680
3681
3682 # We would like to our source tree to be readonly. However when releases or
3683 # pre-releases are generated, the flex/bison generated files as well as the
3684 # various formats of manuals need to be included along with the rest of the
3685 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3686 # just that.
3687
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3689 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3690 # Check whether --enable-generated-files-in-srcdir was given.
3691 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3692 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3693 else
3694 generated_files_in_srcdir=no
3695 fi
3696
3697
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3699 $as_echo "$generated_files_in_srcdir" >&6; }
3700
3701 if test "$generated_files_in_srcdir" = "yes"; then
3702 GENINSRC=''
3703 else
3704 GENINSRC='#'
3705 fi
3706
3707
3708 # -------------------
3709 # Find default linker
3710 # -------------------
3711
3712 # With GNU ld
3713
3714 # Check whether --with-gnu-ld was given.
3715 if test "${with_gnu_ld+set}" = set; then :
3716 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3717 else
3718 gnu_ld_flag=no
3719 fi
3720
3721
3722 case $target in
3723 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3724 *) ld64_flag=no;;
3725 esac
3726
3727 # With pre-defined ld
3728
3729 # Check whether --with-ld was given.
3730 if test "${with_ld+set}" = set; then :
3731 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3732 fi
3733
3734 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3735 if test ! -x "$DEFAULT_LINKER"; then
3736 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3737 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3738 gnu_ld_flag=yes
3739 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3740 ld64_flag=yes
3741 fi
3742
3743 cat >>confdefs.h <<_ACEOF
3744 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3745 _ACEOF
3746
3747 fi
3748
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3750 $as_echo_n "checking whether a default linker was specified... " >&6; }
3751 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3752 if test x"$gnu_ld_flag" = x"no"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3754 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3757 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3758 fi
3759 else
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3762 fi
3763
3764 # With demangler in GNU ld
3765
3766 # Check whether --with-demangler-in-ld was given.
3767 if test "${with_demangler_in_ld+set}" = set; then :
3768 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3769 else
3770 demangler_in_ld=yes
3771 fi
3772
3773
3774 # ----------------------
3775 # Find default assembler
3776 # ----------------------
3777
3778 # With GNU as
3779
3780 # Check whether --with-gnu-as was given.
3781 if test "${with_gnu_as+set}" = set; then :
3782 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3783 else
3784 gas_flag=no
3785 fi
3786
3787
3788
3789 # Check whether --with-as was given.
3790 if test "${with_as+set}" = set; then :
3791 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3792 fi
3793
3794 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3795 if test ! -x "$DEFAULT_ASSEMBLER"; then
3796 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3797 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3798 gas_flag=yes
3799 fi
3800
3801 cat >>confdefs.h <<_ACEOF
3802 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3803 _ACEOF
3804
3805 fi
3806
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3808 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3809 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3810 if test x"$gas_flag" = x"no"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3812 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3813 else
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3815 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3816 fi
3817 else
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 $as_echo "no" >&6; }
3820 fi
3821
3822 # ---------------
3823 # Find C compiler
3824 # ---------------
3825
3826 # If a non-executable a.out is present (e.g. created by GNU as above even if
3827 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3828 # file, even when creating an executable, so an execution test fails.
3829 # Remove possible default executable files to avoid this.
3830 #
3831 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3832 # Autoconf includes it.
3833 rm -f a.out a.exe b.out
3834
3835 # Find the native compiler
3836 ac_ext=c
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if ${ac_cv_prog_CC+:} false; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849 if test -n "$CC"; then
3850 ac_cv_prog_CC="$CC" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863 done
3864 done
3865 IFS=$as_save_IFS
3866
3867 fi
3868 fi
3869 CC=$ac_cv_prog_CC
3870 if test -n "$CC"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3872 $as_echo "$CC" >&6; }
3873 else
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 fi
3877
3878
3879 fi
3880 if test -z "$ac_cv_prog_CC"; then
3881 ac_ct_CC=$CC
3882 # Extract the first word of "gcc", so it can be a program name with args.
3883 set dummy gcc; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 if test -n "$ac_ct_CC"; then
3890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_ac_ct_CC="gcc"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903 done
3904 done
3905 IFS=$as_save_IFS
3906
3907 fi
3908 fi
3909 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3910 if test -n "$ac_ct_CC"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3912 $as_echo "$ac_ct_CC" >&6; }
3913 else
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3916 fi
3917
3918 if test "x$ac_ct_CC" = x; then
3919 CC=""
3920 else
3921 case $cross_compiling:$ac_tool_warned in
3922 yes:)
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925 ac_tool_warned=yes ;;
3926 esac
3927 CC=$ac_ct_CC
3928 fi
3929 else
3930 CC="$ac_cv_prog_CC"
3931 fi
3932
3933 if test -z "$CC"; then
3934 if test -n "$ac_tool_prefix"; then
3935 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3936 set dummy ${ac_tool_prefix}cc; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_CC+:} false; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC="$CC" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_CC="${ac_tool_prefix}cc"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956 done
3957 done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 CC=$ac_cv_prog_CC
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971
3972 fi
3973 fi
3974 if test -z "$CC"; then
3975 # Extract the first word of "cc", so it can be a program name with args.
3976 set dummy cc; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if ${ac_cv_prog_CC+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3984 else
3985 ac_prog_rejected=no
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3994 ac_prog_rejected=yes
3995 continue
3996 fi
3997 ac_cv_prog_CC="cc"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4000 fi
4001 done
4002 done
4003 IFS=$as_save_IFS
4004
4005 if test $ac_prog_rejected = yes; then
4006 # We found a bogon in the path, so make sure we never use it.
4007 set dummy $ac_cv_prog_CC
4008 shift
4009 if test $# != 0; then
4010 # We chose a different compiler from the bogus one.
4011 # However, it has the same basename, so the bogon will be chosen
4012 # first if we set CC to just the basename; use the full file name.
4013 shift
4014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4015 fi
4016 fi
4017 fi
4018 fi
4019 CC=$ac_cv_prog_CC
4020 if test -n "$CC"; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4022 $as_echo "$CC" >&6; }
4023 else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4026 fi
4027
4028
4029 fi
4030 if test -z "$CC"; then
4031 if test -n "$ac_tool_prefix"; then
4032 for ac_prog in cl.exe
4033 do
4034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if ${ac_cv_prog_CC+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 if test -n "$CC"; then
4042 ac_cv_prog_CC="$CC" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4054 fi
4055 done
4056 done
4057 IFS=$as_save_IFS
4058
4059 fi
4060 fi
4061 CC=$ac_cv_prog_CC
4062 if test -n "$CC"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4064 $as_echo "$CC" >&6; }
4065 else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4068 fi
4069
4070
4071 test -n "$CC" && break
4072 done
4073 fi
4074 if test -z "$CC"; then
4075 ac_ct_CC=$CC
4076 for ac_prog in cl.exe
4077 do
4078 # Extract the first word of "$ac_prog", so it can be a program name with args.
4079 set dummy $ac_prog; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -n "$ac_ct_CC"; then
4086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4090 do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_prog_ac_ct_CC="$ac_prog"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4098 fi
4099 done
4100 done
4101 IFS=$as_save_IFS
4102
4103 fi
4104 fi
4105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4106 if test -n "$ac_ct_CC"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4108 $as_echo "$ac_ct_CC" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4112 fi
4113
4114
4115 test -n "$ac_ct_CC" && break
4116 done
4117
4118 if test "x$ac_ct_CC" = x; then
4119 CC=""
4120 else
4121 case $cross_compiling:$ac_tool_warned in
4122 yes:)
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4125 ac_tool_warned=yes ;;
4126 esac
4127 CC=$ac_ct_CC
4128 fi
4129 fi
4130
4131 fi
4132
4133
4134 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4136 as_fn_error $? "no acceptable C compiler found in \$PATH
4137 See \`config.log' for more details" "$LINENO" 5; }
4138
4139 # Provide some information about the compiler.
4140 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4141 set X $ac_compile
4142 ac_compiler=$2
4143 for ac_option in --version -v -V -qversion; do
4144 { { ac_try="$ac_compiler $ac_option >&5"
4145 case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148 esac
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4152 ac_status=$?
4153 if test -s conftest.err; then
4154 sed '10a\
4155 ... rest of stderr output deleted ...
4156 10q' conftest.err >conftest.er1
4157 cat conftest.er1 >&5
4158 fi
4159 rm -f conftest.er1 conftest.err
4160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }
4162 done
4163
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166
4167 int
4168 main ()
4169 {
4170
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 ac_clean_files_save=$ac_clean_files
4176 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4177 # Try to create an executable without -o first, disregard a.out.
4178 # It will help us diagnose broken compilers, and finding out an intuition
4179 # of exeext.
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4181 $as_echo_n "checking whether the C compiler works... " >&6; }
4182 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4183
4184 # The possible output files:
4185 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4186
4187 ac_rmfiles=
4188 for ac_file in $ac_files
4189 do
4190 case $ac_file in
4191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4193 esac
4194 done
4195 rm -f $ac_rmfiles
4196
4197 if { { ac_try="$ac_link_default"
4198 case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_link_default") 2>&5
4205 ac_status=$?
4206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207 test $ac_status = 0; }; then :
4208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4209 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4210 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4211 # so that the user can short-circuit this test for compilers unknown to
4212 # Autoconf.
4213 for ac_file in $ac_files ''
4214 do
4215 test -f "$ac_file" || continue
4216 case $ac_file in
4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4218 ;;
4219 [ab].out )
4220 # We found the default executable, but exeext='' is most
4221 # certainly right.
4222 break;;
4223 *.* )
4224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4225 then :; else
4226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4227 fi
4228 # We set ac_cv_exeext here because the later test for it is not
4229 # safe: cross compilers may not add the suffix if given an `-o'
4230 # argument, so we may need to know it at that point already.
4231 # Even if this section looks crufty: it has the advantage of
4232 # actually working.
4233 break;;
4234 * )
4235 break;;
4236 esac
4237 done
4238 test "$ac_cv_exeext" = no && ac_cv_exeext=
4239
4240 else
4241 ac_file=''
4242 fi
4243 if test -z "$ac_file"; then :
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4246 $as_echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4251 as_fn_error 77 "C compiler cannot create executables
4252 See \`config.log' for more details" "$LINENO" 5; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4255 $as_echo "yes" >&6; }
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4258 $as_echo_n "checking for C compiler default output file name... " >&6; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4260 $as_echo "$ac_file" >&6; }
4261 ac_exeext=$ac_cv_exeext
4262
4263 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4264 ac_clean_files=$ac_clean_files_save
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4266 $as_echo_n "checking for suffix of executables... " >&6; }
4267 if { { ac_try="$ac_link"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_link") 2>&5
4275 ac_status=$?
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }; then :
4278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4280 # work properly (i.e., refer to `conftest.exe'), while it won't with
4281 # `rm'.
4282 for ac_file in conftest.exe conftest conftest.*; do
4283 test -f "$ac_file" || continue
4284 case $ac_file in
4285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4287 break;;
4288 * ) break;;
4289 esac
4290 done
4291 else
4292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4294 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4295 See \`config.log' for more details" "$LINENO" 5; }
4296 fi
4297 rm -f conftest conftest$ac_cv_exeext
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4299 $as_echo "$ac_cv_exeext" >&6; }
4300
4301 rm -f conftest.$ac_ext
4302 EXEEXT=$ac_cv_exeext
4303 ac_exeext=$EXEEXT
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 #include <stdio.h>
4307 int
4308 main ()
4309 {
4310 FILE *f = fopen ("conftest.out", "w");
4311 return ferror (f) || fclose (f) != 0;
4312
4313 ;
4314 return 0;
4315 }
4316 _ACEOF
4317 ac_clean_files="$ac_clean_files conftest.out"
4318 # Check that the compiler produces executables we can run. If not, either
4319 # the compiler is broken, or we cross compile.
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4321 $as_echo_n "checking whether we are cross compiling... " >&6; }
4322 if test "$cross_compiling" != yes; then
4323 { { ac_try="$ac_link"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4329 $as_echo "$ac_try_echo"; } >&5
4330 (eval "$ac_link") 2>&5
4331 ac_status=$?
4332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4333 test $ac_status = 0; }
4334 if { ac_try='./conftest$ac_cv_exeext'
4335 { { case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_try") 2>&5
4342 ac_status=$?
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; }; }; then
4345 cross_compiling=no
4346 else
4347 if test "$cross_compiling" = maybe; then
4348 cross_compiling=yes
4349 else
4350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352 as_fn_error $? "cannot run C compiled programs.
4353 If you meant to cross compile, use \`--host'.
4354 See \`config.log' for more details" "$LINENO" 5; }
4355 fi
4356 fi
4357 fi
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4359 $as_echo "$cross_compiling" >&6; }
4360
4361 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4362 ac_clean_files=$ac_clean_files_save
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4364 $as_echo_n "checking for suffix of object files... " >&6; }
4365 if ${ac_cv_objext+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370
4371 int
4372 main ()
4373 {
4374
4375 ;
4376 return 0;
4377 }
4378 _ACEOF
4379 rm -f conftest.o conftest.obj
4380 if { { ac_try="$ac_compile"
4381 case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 $as_echo "$ac_try_echo"; } >&5
4387 (eval "$ac_compile") 2>&5
4388 ac_status=$?
4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }; then :
4391 for ac_file in conftest.o conftest.obj conftest.*; do
4392 test -f "$ac_file" || continue;
4393 case $ac_file in
4394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4396 break;;
4397 esac
4398 done
4399 else
4400 $as_echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405 as_fn_error $? "cannot compute suffix of object files: cannot compile
4406 See \`config.log' for more details" "$LINENO" 5; }
4407 fi
4408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4411 $as_echo "$ac_cv_objext" >&6; }
4412 OBJEXT=$ac_cv_objext
4413 ac_objext=$OBJEXT
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4415 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4416 if ${ac_cv_c_compiler_gnu+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421
4422 int
4423 main ()
4424 {
4425 #ifndef __GNUC__
4426 choke me
4427 #endif
4428
4429 ;
4430 return 0;
4431 }
4432 _ACEOF
4433 if ac_fn_c_try_compile "$LINENO"; then :
4434 ac_compiler_gnu=yes
4435 else
4436 ac_compiler_gnu=no
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4440
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4443 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4444 if test $ac_compiler_gnu = yes; then
4445 GCC=yes
4446 else
4447 GCC=
4448 fi
4449 ac_test_CFLAGS=${CFLAGS+set}
4450 ac_save_CFLAGS=$CFLAGS
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4452 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4453 if ${ac_cv_prog_cc_g+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 ac_save_c_werror_flag=$ac_c_werror_flag
4457 ac_c_werror_flag=yes
4458 ac_cv_prog_cc_g=no
4459 CFLAGS="-g"
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462
4463 int
4464 main ()
4465 {
4466
4467 ;
4468 return 0;
4469 }
4470 _ACEOF
4471 if ac_fn_c_try_compile "$LINENO"; then :
4472 ac_cv_prog_cc_g=yes
4473 else
4474 CFLAGS=""
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4477
4478 int
4479 main ()
4480 {
4481
4482 ;
4483 return 0;
4484 }
4485 _ACEOF
4486 if ac_fn_c_try_compile "$LINENO"; then :
4487
4488 else
4489 ac_c_werror_flag=$ac_save_c_werror_flag
4490 CFLAGS="-g"
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493
4494 int
4495 main ()
4496 {
4497
4498 ;
4499 return 0;
4500 }
4501 _ACEOF
4502 if ac_fn_c_try_compile "$LINENO"; then :
4503 ac_cv_prog_cc_g=yes
4504 fi
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 ac_c_werror_flag=$ac_save_c_werror_flag
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4513 $as_echo "$ac_cv_prog_cc_g" >&6; }
4514 if test "$ac_test_CFLAGS" = set; then
4515 CFLAGS=$ac_save_CFLAGS
4516 elif test $ac_cv_prog_cc_g = yes; then
4517 if test "$GCC" = yes; then
4518 CFLAGS="-g -O2"
4519 else
4520 CFLAGS="-g"
4521 fi
4522 else
4523 if test "$GCC" = yes; then
4524 CFLAGS="-O2"
4525 else
4526 CFLAGS=
4527 fi
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4530 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4531 if ${ac_cv_prog_cc_c89+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 ac_cv_prog_cc_c89=no
4535 ac_save_CC=$CC
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 #include <stdarg.h>
4539 #include <stdio.h>
4540 struct stat;
4541 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4542 struct buf { int x; };
4543 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4544 static char *e (p, i)
4545 char **p;
4546 int i;
4547 {
4548 return p[i];
4549 }
4550 static char *f (char * (*g) (char **, int), char **p, ...)
4551 {
4552 char *s;
4553 va_list v;
4554 va_start (v,p);
4555 s = g (p, va_arg (v,int));
4556 va_end (v);
4557 return s;
4558 }
4559
4560 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4561 function prototypes and stuff, but not '\xHH' hex character constants.
4562 These don't provoke an error unfortunately, instead are silently treated
4563 as 'x'. The following induces an error, until -std is added to get
4564 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4565 array size at least. It's necessary to write '\x00'==0 to get something
4566 that's true only with -std. */
4567 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4568
4569 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4570 inside strings and character constants. */
4571 #define FOO(x) 'x'
4572 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4573
4574 int test (int i, double x);
4575 struct s1 {int (*f) (int a);};
4576 struct s2 {int (*f) (double a);};
4577 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4578 int argc;
4579 char **argv;
4580 int
4581 main ()
4582 {
4583 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4584 ;
4585 return 0;
4586 }
4587 _ACEOF
4588 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4589 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4590 do
4591 CC="$ac_save_CC $ac_arg"
4592 if ac_fn_c_try_compile "$LINENO"; then :
4593 ac_cv_prog_cc_c89=$ac_arg
4594 fi
4595 rm -f core conftest.err conftest.$ac_objext
4596 test "x$ac_cv_prog_cc_c89" != "xno" && break
4597 done
4598 rm -f conftest.$ac_ext
4599 CC=$ac_save_CC
4600
4601 fi
4602 # AC_CACHE_VAL
4603 case "x$ac_cv_prog_cc_c89" in
4604 x)
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4606 $as_echo "none needed" >&6; } ;;
4607 xno)
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4609 $as_echo "unsupported" >&6; } ;;
4610 *)
4611 CC="$CC $ac_cv_prog_cc_c89"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4613 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4614 esac
4615 if test "x$ac_cv_prog_cc_c89" != xno; then :
4616
4617 fi
4618
4619 ac_ext=c
4620 ac_cpp='$CPP $CPPFLAGS'
4621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624
4625 ac_ext=cpp
4626 ac_cpp='$CXXCPP $CPPFLAGS'
4627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4630 if test -z "$CXX"; then
4631 if test -n "$CCC"; then
4632 CXX=$CCC
4633 else
4634 if test -n "$ac_tool_prefix"; then
4635 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4636 do
4637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_CXX+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$CXX"; then
4645 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 CXX=$ac_cv_prog_CXX
4665 if test -n "$CXX"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4667 $as_echo "$CXX" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673
4674 test -n "$CXX" && break
4675 done
4676 fi
4677 if test -z "$CXX"; then
4678 ac_ct_CXX=$CXX
4679 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4680 do
4681 # Extract the first word of "$ac_prog", so it can be a program name with args.
4682 set dummy $ac_prog; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -n "$ac_ct_CXX"; then
4689 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698 ac_cv_prog_ac_ct_CXX="$ac_prog"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4701 fi
4702 done
4703 done
4704 IFS=$as_save_IFS
4705
4706 fi
4707 fi
4708 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4709 if test -n "$ac_ct_CXX"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4711 $as_echo "$ac_ct_CXX" >&6; }
4712 else
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4715 fi
4716
4717
4718 test -n "$ac_ct_CXX" && break
4719 done
4720
4721 if test "x$ac_ct_CXX" = x; then
4722 CXX="g++"
4723 else
4724 case $cross_compiling:$ac_tool_warned in
4725 yes:)
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728 ac_tool_warned=yes ;;
4729 esac
4730 CXX=$ac_ct_CXX
4731 fi
4732 fi
4733
4734 fi
4735 fi
4736 # Provide some information about the compiler.
4737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4738 set X $ac_compile
4739 ac_compiler=$2
4740 for ac_option in --version -v -V -qversion; do
4741 { { ac_try="$ac_compiler $ac_option >&5"
4742 case "(($ac_try" in
4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744 *) ac_try_echo=$ac_try;;
4745 esac
4746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4747 $as_echo "$ac_try_echo"; } >&5
4748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4749 ac_status=$?
4750 if test -s conftest.err; then
4751 sed '10a\
4752 ... rest of stderr output deleted ...
4753 10q' conftest.err >conftest.er1
4754 cat conftest.er1 >&5
4755 fi
4756 rm -f conftest.er1 conftest.err
4757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4758 test $ac_status = 0; }
4759 done
4760
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4762 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4763 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768
4769 int
4770 main ()
4771 {
4772 #ifndef __GNUC__
4773 choke me
4774 #endif
4775
4776 ;
4777 return 0;
4778 }
4779 _ACEOF
4780 if ac_fn_cxx_try_compile "$LINENO"; then :
4781 ac_compiler_gnu=yes
4782 else
4783 ac_compiler_gnu=no
4784 fi
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4787
4788 fi
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4790 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4791 if test $ac_compiler_gnu = yes; then
4792 GXX=yes
4793 else
4794 GXX=
4795 fi
4796 ac_test_CXXFLAGS=${CXXFLAGS+set}
4797 ac_save_CXXFLAGS=$CXXFLAGS
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4799 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4800 if ${ac_cv_prog_cxx_g+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4804 ac_cxx_werror_flag=yes
4805 ac_cv_prog_cxx_g=no
4806 CXXFLAGS="-g"
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809
4810 int
4811 main ()
4812 {
4813
4814 ;
4815 return 0;
4816 }
4817 _ACEOF
4818 if ac_fn_cxx_try_compile "$LINENO"; then :
4819 ac_cv_prog_cxx_g=yes
4820 else
4821 CXXFLAGS=""
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4824
4825 int
4826 main ()
4827 {
4828
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 if ac_fn_cxx_try_compile "$LINENO"; then :
4834
4835 else
4836 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4837 CXXFLAGS="-g"
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840
4841 int
4842 main ()
4843 {
4844
4845 ;
4846 return 0;
4847 }
4848 _ACEOF
4849 if ac_fn_cxx_try_compile "$LINENO"; then :
4850 ac_cv_prog_cxx_g=yes
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 fi
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4860 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4861 if test "$ac_test_CXXFLAGS" = set; then
4862 CXXFLAGS=$ac_save_CXXFLAGS
4863 elif test $ac_cv_prog_cxx_g = yes; then
4864 if test "$GXX" = yes; then
4865 CXXFLAGS="-g -O2"
4866 else
4867 CXXFLAGS="-g"
4868 fi
4869 else
4870 if test "$GXX" = yes; then
4871 CXXFLAGS="-O2"
4872 else
4873 CXXFLAGS=
4874 fi
4875 fi
4876 ac_ext=c
4877 ac_cpp='$CPP $CPPFLAGS'
4878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881
4882
4883
4884
4885 if test -n "$ac_tool_prefix"; then
4886 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4887 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if ${ac_cv_prog_GNATBIND+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 if test -n "$GNATBIND"; then
4894 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4906 fi
4907 done
4908 done
4909 IFS=$as_save_IFS
4910
4911 fi
4912 fi
4913 GNATBIND=$ac_cv_prog_GNATBIND
4914 if test -n "$GNATBIND"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4916 $as_echo "$GNATBIND" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921
4922
4923 fi
4924 if test -z "$ac_cv_prog_GNATBIND"; then
4925 ac_ct_GNATBIND=$GNATBIND
4926 # Extract the first word of "gnatbind", so it can be a program name with args.
4927 set dummy gnatbind; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$ac_ct_GNATBIND"; then
4934 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4954 if test -n "$ac_ct_GNATBIND"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4956 $as_echo "$ac_ct_GNATBIND" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961
4962 if test "x$ac_ct_GNATBIND" = x; then
4963 GNATBIND="no"
4964 else
4965 case $cross_compiling:$ac_tool_warned in
4966 yes:)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4969 ac_tool_warned=yes ;;
4970 esac
4971 GNATBIND=$ac_ct_GNATBIND
4972 fi
4973 else
4974 GNATBIND="$ac_cv_prog_GNATBIND"
4975 fi
4976
4977 if test -n "$ac_tool_prefix"; then
4978 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4979 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if ${ac_cv_prog_GNATMAKE+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 if test -n "$GNATMAKE"; then
4986 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4987 else
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5002
5003 fi
5004 fi
5005 GNATMAKE=$ac_cv_prog_GNATMAKE
5006 if test -n "$GNATMAKE"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5008 $as_echo "$GNATMAKE" >&6; }
5009 else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013
5014
5015 fi
5016 if test -z "$ac_cv_prog_GNATMAKE"; then
5017 ac_ct_GNATMAKE=$GNATMAKE
5018 # Extract the first word of "gnatmake", so it can be a program name with args.
5019 set dummy gnatmake; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 if test -n "$ac_ct_GNATMAKE"; then
5026 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5038 fi
5039 done
5040 done
5041 IFS=$as_save_IFS
5042
5043 fi
5044 fi
5045 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5046 if test -n "$ac_ct_GNATMAKE"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5048 $as_echo "$ac_ct_GNATMAKE" >&6; }
5049 else
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053
5054 if test "x$ac_ct_GNATMAKE" = x; then
5055 GNATMAKE="no"
5056 else
5057 case $cross_compiling:$ac_tool_warned in
5058 yes:)
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5061 ac_tool_warned=yes ;;
5062 esac
5063 GNATMAKE=$ac_ct_GNATMAKE
5064 fi
5065 else
5066 GNATMAKE="$ac_cv_prog_GNATMAKE"
5067 fi
5068
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5070 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5071 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 cat >conftest.adb <<EOF
5075 procedure conftest is begin null; end conftest;
5076 EOF
5077 acx_cv_cc_gcc_supports_ada=no
5078 # There is a bug in old released versions of GCC which causes the
5079 # driver to exit successfully when the appropriate language module
5080 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5081 # Therefore we must check for the error message as well as an
5082 # unsuccessful exit.
5083 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5084 # given a .adb file, but produce no object file. So we must check
5085 # if an object file was really produced to guard against this.
5086 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5087 if test x"$errors" = x && test -f conftest.$ac_objext; then
5088 acx_cv_cc_gcc_supports_ada=yes
5089 fi
5090 rm -f conftest.*
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5093 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5094
5095 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5096 have_gnat=yes
5097 else
5098 have_gnat=no
5099 fi
5100
5101
5102 # Do configure tests with the C++ compiler, since that's what we build with.
5103 ac_ext=cpp
5104 ac_cpp='$CXXCPP $CPPFLAGS'
5105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5108
5109
5110 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5111 # optimizations to be activated explicitly by the toplevel.
5112 case "$CC" in
5113 */prev-gcc/xgcc*) ;;
5114 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5115 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5116 esac
5117
5118
5119
5120 # Determine PICFLAG for target gnatlib.
5121
5122
5123
5124
5125 case "${target}" in
5126 # PIC is the default on some targets or must not be used.
5127 *-*-darwin*)
5128 # For darwin, common symbols are not allowed in MH_DYLIB files
5129 case "${CFLAGS}" in
5130 # If we are using a compiler supporting mdynamic-no-pic
5131 # and the option has been tested as safe to add, then cancel
5132 # it here, since the code generated is incompatible with shared
5133 # libs.
5134 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5135 *) PICFLAG_FOR_TARGET=-fno-common ;;
5136 esac
5137 ;;
5138 alpha*-dec-osf5*)
5139 # PIC is the default.
5140 ;;
5141 hppa*64*-*-hpux*)
5142 # PIC is the default for 64-bit PA HP-UX.
5143 ;;
5144 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5145 ;;
5146 i[34567]86-*-mingw* | x86_64-*-mingw*)
5147 ;;
5148 i[34567]86-*-interix[3-9]*)
5149 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5150 # Instead, we relocate shared libraries at runtime.
5151 ;;
5152 i[34567]86-*-nto-qnx*)
5153 # QNX uses GNU C++, but need to define -shared option too, otherwise
5154 # it will coredump.
5155 PICFLAG_FOR_TARGET='-fPIC -shared'
5156 ;;
5157 i[34567]86-pc-msdosdjgpp*)
5158 # DJGPP does not support shared libraries at all.
5159 ;;
5160 ia64*-*-hpux*)
5161 # On IA64 HP-UX, PIC is the default but the pic flag
5162 # sets the default TLS model and affects inlining.
5163 PICFLAG_FOR_TARGET=-fPIC
5164 ;;
5165 mips-sgi-irix6*)
5166 # PIC is the default.
5167 ;;
5168 rs6000-ibm-aix* | powerpc-ibm-aix*)
5169 # All AIX code is PIC.
5170 ;;
5171
5172 # Some targets support both -fPIC and -fpic, but prefer the latter.
5173 # FIXME: Why?
5174 i[34567]86-*-* | x86_64-*-*)
5175 PICFLAG_FOR_TARGET=-fpic
5176 ;;
5177 # FIXME: Override -fPIC default in libgcc only?
5178 sh-*-linux* | sh[2346lbe]*-*-linux*)
5179 PICFLAG_FOR_TARGET=-fpic
5180 ;;
5181 # FIXME: Simplify to sh*-*-netbsd*?
5182 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5183 sh64-*-netbsd* | sh64l*-*-netbsd*)
5184 PICFLAG_FOR_TARGET=-fpic
5185 ;;
5186 # Default to -fPIC unless specified otherwise.
5187 *)
5188 PICFLAG_FOR_TARGET=-fPIC
5189 ;;
5190 esac
5191
5192 # If the user explicitly uses -fpic/-fPIC, keep that.
5193 case "${CFLAGS_FOR_TARGET}" in
5194 *-fpic*)
5195 PICFLAG_FOR_TARGET=-fpic
5196 ;;
5197 *-fPIC*)
5198 PICFLAG_FOR_TARGET=-fPIC
5199 ;;
5200 esac
5201
5202
5203
5204 # -------------------------
5205 # Check C compiler features
5206 # -------------------------
5207
5208
5209 ac_ext=cpp
5210 ac_cpp='$CXXCPP $CPPFLAGS'
5211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5215 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5216 if test -z "$CXXCPP"; then
5217 if ${ac_cv_prog_CXXCPP+:} false; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 # Double quotes because CXXCPP needs to be expanded
5221 for CXXCPP in "$CXX -E" "/lib/cpp"
5222 do
5223 ac_preproc_ok=false
5224 for ac_cxx_preproc_warn_flag in '' yes
5225 do
5226 # Use a header file that comes with gcc, so configuring glibc
5227 # with a fresh cross-compiler works.
5228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5229 # <limits.h> exists even on freestanding compilers.
5230 # On the NeXT, cc -E runs the code through the compiler's parser,
5231 # not just through cpp. "Syntax error" is here to catch this case.
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234 #ifdef __STDC__
5235 # include <limits.h>
5236 #else
5237 # include <assert.h>
5238 #endif
5239 Syntax error
5240 _ACEOF
5241 if ac_fn_cxx_try_cpp "$LINENO"; then :
5242
5243 else
5244 # Broken: fails on valid input.
5245 continue
5246 fi
5247 rm -f conftest.err conftest.i conftest.$ac_ext
5248
5249 # OK, works on sane cases. Now check whether nonexistent headers
5250 # can be detected and how.
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 #include <ac_nonexistent.h>
5254 _ACEOF
5255 if ac_fn_cxx_try_cpp "$LINENO"; then :
5256 # Broken: success on invalid input.
5257 continue
5258 else
5259 # Passes both tests.
5260 ac_preproc_ok=:
5261 break
5262 fi
5263 rm -f conftest.err conftest.i conftest.$ac_ext
5264
5265 done
5266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5267 rm -f conftest.i conftest.err conftest.$ac_ext
5268 if $ac_preproc_ok; then :
5269 break
5270 fi
5271
5272 done
5273 ac_cv_prog_CXXCPP=$CXXCPP
5274
5275 fi
5276 CXXCPP=$ac_cv_prog_CXXCPP
5277 else
5278 ac_cv_prog_CXXCPP=$CXXCPP
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5281 $as_echo "$CXXCPP" >&6; }
5282 ac_preproc_ok=false
5283 for ac_cxx_preproc_warn_flag in '' yes
5284 do
5285 # Use a header file that comes with gcc, so configuring glibc
5286 # with a fresh cross-compiler works.
5287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5288 # <limits.h> exists even on freestanding compilers.
5289 # On the NeXT, cc -E runs the code through the compiler's parser,
5290 # not just through cpp. "Syntax error" is here to catch this case.
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #ifdef __STDC__
5294 # include <limits.h>
5295 #else
5296 # include <assert.h>
5297 #endif
5298 Syntax error
5299 _ACEOF
5300 if ac_fn_cxx_try_cpp "$LINENO"; then :
5301
5302 else
5303 # Broken: fails on valid input.
5304 continue
5305 fi
5306 rm -f conftest.err conftest.i conftest.$ac_ext
5307
5308 # OK, works on sane cases. Now check whether nonexistent headers
5309 # can be detected and how.
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5312 #include <ac_nonexistent.h>
5313 _ACEOF
5314 if ac_fn_cxx_try_cpp "$LINENO"; then :
5315 # Broken: success on invalid input.
5316 continue
5317 else
5318 # Passes both tests.
5319 ac_preproc_ok=:
5320 break
5321 fi
5322 rm -f conftest.err conftest.i conftest.$ac_ext
5323
5324 done
5325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5326 rm -f conftest.i conftest.err conftest.$ac_ext
5327 if $ac_preproc_ok; then :
5328
5329 else
5330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5332 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5333 See \`config.log' for more details" "$LINENO" 5; }
5334 fi
5335
5336 ac_ext=cpp
5337 ac_cpp='$CXXCPP $CPPFLAGS'
5338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5341
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5344 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5345 if ${ac_cv_path_GREP+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 if test -z "$GREP"; then
5349 ac_path_GREP_found=false
5350 # Loop through the user's path and test for each of PROGNAME-LIST
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5353 do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_prog in grep ggrep; do
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5359 as_fn_executable_p "$ac_path_GREP" || continue
5360 # Check for GNU ac_path_GREP and select it if it is found.
5361 # Check for GNU $ac_path_GREP
5362 case `"$ac_path_GREP" --version 2>&1` in
5363 *GNU*)
5364 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5365 *)
5366 ac_count=0
5367 $as_echo_n 0123456789 >"conftest.in"
5368 while :
5369 do
5370 cat "conftest.in" "conftest.in" >"conftest.tmp"
5371 mv "conftest.tmp" "conftest.in"
5372 cp "conftest.in" "conftest.nl"
5373 $as_echo 'GREP' >> "conftest.nl"
5374 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5376 as_fn_arith $ac_count + 1 && ac_count=$as_val
5377 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5378 # Best one so far, save it but keep looking for a better one
5379 ac_cv_path_GREP="$ac_path_GREP"
5380 ac_path_GREP_max=$ac_count
5381 fi
5382 # 10*(2^10) chars as input seems more than enough
5383 test $ac_count -gt 10 && break
5384 done
5385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5386 esac
5387
5388 $ac_path_GREP_found && break 3
5389 done
5390 done
5391 done
5392 IFS=$as_save_IFS
5393 if test -z "$ac_cv_path_GREP"; then
5394 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5395 fi
5396 else
5397 ac_cv_path_GREP=$GREP
5398 fi
5399
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5402 $as_echo "$ac_cv_path_GREP" >&6; }
5403 GREP="$ac_cv_path_GREP"
5404
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5407 $as_echo_n "checking for egrep... " >&6; }
5408 if ${ac_cv_path_EGREP+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5412 then ac_cv_path_EGREP="$GREP -E"
5413 else
5414 if test -z "$EGREP"; then
5415 ac_path_EGREP_found=false
5416 # Loop through the user's path and test for each of PROGNAME-LIST
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5419 do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_prog in egrep; do
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5425 as_fn_executable_p "$ac_path_EGREP" || continue
5426 # Check for GNU ac_path_EGREP and select it if it is found.
5427 # Check for GNU $ac_path_EGREP
5428 case `"$ac_path_EGREP" --version 2>&1` in
5429 *GNU*)
5430 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5431 *)
5432 ac_count=0
5433 $as_echo_n 0123456789 >"conftest.in"
5434 while :
5435 do
5436 cat "conftest.in" "conftest.in" >"conftest.tmp"
5437 mv "conftest.tmp" "conftest.in"
5438 cp "conftest.in" "conftest.nl"
5439 $as_echo 'EGREP' >> "conftest.nl"
5440 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5442 as_fn_arith $ac_count + 1 && ac_count=$as_val
5443 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5444 # Best one so far, save it but keep looking for a better one
5445 ac_cv_path_EGREP="$ac_path_EGREP"
5446 ac_path_EGREP_max=$ac_count
5447 fi
5448 # 10*(2^10) chars as input seems more than enough
5449 test $ac_count -gt 10 && break
5450 done
5451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5452 esac
5453
5454 $ac_path_EGREP_found && break 3
5455 done
5456 done
5457 done
5458 IFS=$as_save_IFS
5459 if test -z "$ac_cv_path_EGREP"; then
5460 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5461 fi
5462 else
5463 ac_cv_path_EGREP=$EGREP
5464 fi
5465
5466 fi
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5469 $as_echo "$ac_cv_path_EGREP" >&6; }
5470 EGREP="$ac_cv_path_EGREP"
5471
5472
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5474 $as_echo_n "checking for ANSI C header files... " >&6; }
5475 if ${ac_cv_header_stdc+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 #include <stdlib.h>
5481 #include <stdarg.h>
5482 #include <string.h>
5483 #include <float.h>
5484
5485 int
5486 main ()
5487 {
5488
5489 ;
5490 return 0;
5491 }
5492 _ACEOF
5493 if ac_fn_cxx_try_compile "$LINENO"; then :
5494 ac_cv_header_stdc=yes
5495 else
5496 ac_cv_header_stdc=no
5497 fi
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499
5500 if test $ac_cv_header_stdc = yes; then
5501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5504 #include <string.h>
5505
5506 _ACEOF
5507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5508 $EGREP "memchr" >/dev/null 2>&1; then :
5509
5510 else
5511 ac_cv_header_stdc=no
5512 fi
5513 rm -f conftest*
5514
5515 fi
5516
5517 if test $ac_cv_header_stdc = yes; then
5518 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #include <stdlib.h>
5522
5523 _ACEOF
5524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5525 $EGREP "free" >/dev/null 2>&1; then :
5526
5527 else
5528 ac_cv_header_stdc=no
5529 fi
5530 rm -f conftest*
5531
5532 fi
5533
5534 if test $ac_cv_header_stdc = yes; then
5535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5536 if test "$cross_compiling" = yes; then :
5537 :
5538 else
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <ctype.h>
5542 #include <stdlib.h>
5543 #if ((' ' & 0x0FF) == 0x020)
5544 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5545 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5546 #else
5547 # define ISLOWER(c) \
5548 (('a' <= (c) && (c) <= 'i') \
5549 || ('j' <= (c) && (c) <= 'r') \
5550 || ('s' <= (c) && (c) <= 'z'))
5551 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5552 #endif
5553
5554 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5555 int
5556 main ()
5557 {
5558 int i;
5559 for (i = 0; i < 256; i++)
5560 if (XOR (islower (i), ISLOWER (i))
5561 || toupper (i) != TOUPPER (i))
5562 return 2;
5563 return 0;
5564 }
5565 _ACEOF
5566 if ac_fn_cxx_try_run "$LINENO"; then :
5567
5568 else
5569 ac_cv_header_stdc=no
5570 fi
5571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5572 conftest.$ac_objext conftest.beam conftest.$ac_ext
5573 fi
5574
5575 fi
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5578 $as_echo "$ac_cv_header_stdc" >&6; }
5579 if test $ac_cv_header_stdc = yes; then
5580
5581 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5582
5583 fi
5584
5585 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5586 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5587 inttypes.h stdint.h unistd.h
5588 do :
5589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5590 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5591 "
5592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5593 cat >>confdefs.h <<_ACEOF
5594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5595 _ACEOF
5596
5597 fi
5598
5599 done
5600
5601
5602
5603 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5604 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5605 MINIX=yes
5606 else
5607 MINIX=
5608 fi
5609
5610
5611 if test "$MINIX" = yes; then
5612
5613 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5614
5615
5616 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5617
5618
5619 $as_echo "#define _MINIX 1" >>confdefs.h
5620
5621 fi
5622
5623
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5625 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5626 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631
5632 # define __EXTENSIONS__ 1
5633 $ac_includes_default
5634 int
5635 main ()
5636 {
5637
5638 ;
5639 return 0;
5640 }
5641 _ACEOF
5642 if ac_fn_cxx_try_compile "$LINENO"; then :
5643 ac_cv_safe_to_define___extensions__=yes
5644 else
5645 ac_cv_safe_to_define___extensions__=no
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5650 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5651 test $ac_cv_safe_to_define___extensions__ = yes &&
5652 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5653
5654 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5655
5656 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5657
5658 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5659
5660 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5661
5662
5663 ac_ext=c
5664 ac_cpp='$CPP $CPPFLAGS'
5665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5669 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5670 # On Suns, sometimes $CPP names a directory.
5671 if test -n "$CPP" && test -d "$CPP"; then
5672 CPP=
5673 fi
5674 if test -z "$CPP"; then
5675 if ${ac_cv_prog_CPP+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 # Double quotes because CPP needs to be expanded
5679 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5680 do
5681 ac_preproc_ok=false
5682 for ac_c_preproc_warn_flag in '' yes
5683 do
5684 # Use a header file that comes with gcc, so configuring glibc
5685 # with a fresh cross-compiler works.
5686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687 # <limits.h> exists even on freestanding compilers.
5688 # On the NeXT, cc -E runs the code through the compiler's parser,
5689 # not just through cpp. "Syntax error" is here to catch this case.
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #ifdef __STDC__
5693 # include <limits.h>
5694 #else
5695 # include <assert.h>
5696 #endif
5697 Syntax error
5698 _ACEOF
5699 if ac_fn_c_try_cpp "$LINENO"; then :
5700
5701 else
5702 # Broken: fails on valid input.
5703 continue
5704 fi
5705 rm -f conftest.err conftest.i conftest.$ac_ext
5706
5707 # OK, works on sane cases. Now check whether nonexistent headers
5708 # can be detected and how.
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 #include <ac_nonexistent.h>
5712 _ACEOF
5713 if ac_fn_c_try_cpp "$LINENO"; then :
5714 # Broken: success on invalid input.
5715 continue
5716 else
5717 # Passes both tests.
5718 ac_preproc_ok=:
5719 break
5720 fi
5721 rm -f conftest.err conftest.i conftest.$ac_ext
5722
5723 done
5724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5725 rm -f conftest.i conftest.err conftest.$ac_ext
5726 if $ac_preproc_ok; then :
5727 break
5728 fi
5729
5730 done
5731 ac_cv_prog_CPP=$CPP
5732
5733 fi
5734 CPP=$ac_cv_prog_CPP
5735 else
5736 ac_cv_prog_CPP=$CPP
5737 fi
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5739 $as_echo "$CPP" >&6; }
5740 ac_preproc_ok=false
5741 for ac_c_preproc_warn_flag in '' yes
5742 do
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #ifdef __STDC__
5752 # include <limits.h>
5753 #else
5754 # include <assert.h>
5755 #endif
5756 Syntax error
5757 _ACEOF
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5759
5760 else
5761 # Broken: fails on valid input.
5762 continue
5763 fi
5764 rm -f conftest.err conftest.i conftest.$ac_ext
5765
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <ac_nonexistent.h>
5771 _ACEOF
5772 if ac_fn_c_try_cpp "$LINENO"; then :
5773 # Broken: success on invalid input.
5774 continue
5775 else
5776 # Passes both tests.
5777 ac_preproc_ok=:
5778 break
5779 fi
5780 rm -f conftest.err conftest.i conftest.$ac_ext
5781
5782 done
5783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784 rm -f conftest.i conftest.err conftest.$ac_ext
5785 if $ac_preproc_ok; then :
5786
5787 else
5788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5790 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5791 See \`config.log' for more details" "$LINENO" 5; }
5792 fi
5793
5794 ac_ext=cpp
5795 ac_cpp='$CXXCPP $CPPFLAGS'
5796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5799
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5801 $as_echo_n "checking for inline... " >&6; }
5802 if ${ac_cv_c_inline+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 ac_cv_c_inline=no
5806 for ac_kw in inline __inline__ __inline; do
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 #ifndef __cplusplus
5810 typedef int foo_t;
5811 static $ac_kw foo_t static_foo () {return 0; }
5812 $ac_kw foo_t foo () {return 0; }
5813 #endif
5814
5815 _ACEOF
5816 if ac_fn_cxx_try_compile "$LINENO"; then :
5817 ac_cv_c_inline=$ac_kw
5818 fi
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 test "$ac_cv_c_inline" != no && break
5821 done
5822
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5825 $as_echo "$ac_cv_c_inline" >&6; }
5826
5827 case $ac_cv_c_inline in
5828 inline | yes) ;;
5829 *)
5830 case $ac_cv_c_inline in
5831 no) ac_val=;;
5832 *) ac_val=$ac_cv_c_inline;;
5833 esac
5834 cat >>confdefs.h <<_ACEOF
5835 #ifndef __cplusplus
5836 #define inline $ac_val
5837 #endif
5838 _ACEOF
5839 ;;
5840 esac
5841
5842
5843 # Check whether --enable-largefile was given.
5844 if test "${enable_largefile+set}" = set; then :
5845 enableval=$enable_largefile;
5846 fi
5847
5848 if test "$enable_largefile" != no; then
5849
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5851 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5852 if ${ac_cv_sys_largefile_CC+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 ac_cv_sys_largefile_CC=no
5856 if test "$GCC" != yes; then
5857 ac_save_CC=$CC
5858 while :; do
5859 # IRIX 6.2 and later do not support large files by default,
5860 # so use the C compiler's -n32 option if that helps.
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 /* Check that off_t can represent 2**63 - 1 correctly.
5865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5866 since some C++ compilers masquerading as C compilers
5867 incorrectly reject 9223372036854775807. */
5868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5870 && LARGE_OFF_T % 2147483647 == 1)
5871 ? 1 : -1];
5872 int
5873 main ()
5874 {
5875
5876 ;
5877 return 0;
5878 }
5879 _ACEOF
5880 if ac_fn_cxx_try_compile "$LINENO"; then :
5881 break
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext
5884 CC="$CC -n32"
5885 if ac_fn_cxx_try_compile "$LINENO"; then :
5886 ac_cv_sys_largefile_CC=' -n32'; break
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext
5889 break
5890 done
5891 CC=$ac_save_CC
5892 rm -f conftest.$ac_ext
5893 fi
5894 fi
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5896 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5897 if test "$ac_cv_sys_largefile_CC" != no; then
5898 CC=$CC$ac_cv_sys_largefile_CC
5899 fi
5900
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5902 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5903 if ${ac_cv_sys_file_offset_bits+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 while :; do
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 #include <sys/types.h>
5910 /* Check that off_t can represent 2**63 - 1 correctly.
5911 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5912 since some C++ compilers masquerading as C compilers
5913 incorrectly reject 9223372036854775807. */
5914 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5915 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5916 && LARGE_OFF_T % 2147483647 == 1)
5917 ? 1 : -1];
5918 int
5919 main ()
5920 {
5921
5922 ;
5923 return 0;
5924 }
5925 _ACEOF
5926 if ac_fn_cxx_try_compile "$LINENO"; then :
5927 ac_cv_sys_file_offset_bits=no; break
5928 fi
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932 #define _FILE_OFFSET_BITS 64
5933 #include <sys/types.h>
5934 /* Check that off_t can represent 2**63 - 1 correctly.
5935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5936 since some C++ compilers masquerading as C compilers
5937 incorrectly reject 9223372036854775807. */
5938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5940 && LARGE_OFF_T % 2147483647 == 1)
5941 ? 1 : -1];
5942 int
5943 main ()
5944 {
5945
5946 ;
5947 return 0;
5948 }
5949 _ACEOF
5950 if ac_fn_cxx_try_compile "$LINENO"; then :
5951 ac_cv_sys_file_offset_bits=64; break
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 ac_cv_sys_file_offset_bits=unknown
5955 break
5956 done
5957 fi
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5959 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5960 case $ac_cv_sys_file_offset_bits in #(
5961 no | unknown) ;;
5962 *)
5963 cat >>confdefs.h <<_ACEOF
5964 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5965 _ACEOF
5966 ;;
5967 esac
5968 rm -rf conftest*
5969 if test $ac_cv_sys_file_offset_bits = unknown; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5971 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5972 if ${ac_cv_sys_large_files+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 while :; do
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978 #include <sys/types.h>
5979 /* Check that off_t can represent 2**63 - 1 correctly.
5980 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5981 since some C++ compilers masquerading as C compilers
5982 incorrectly reject 9223372036854775807. */
5983 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5984 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5985 && LARGE_OFF_T % 2147483647 == 1)
5986 ? 1 : -1];
5987 int
5988 main ()
5989 {
5990
5991 ;
5992 return 0;
5993 }
5994 _ACEOF
5995 if ac_fn_cxx_try_compile "$LINENO"; then :
5996 ac_cv_sys_large_files=no; break
5997 fi
5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001 #define _LARGE_FILES 1
6002 #include <sys/types.h>
6003 /* Check that off_t can represent 2**63 - 1 correctly.
6004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6005 since some C++ compilers masquerading as C compilers
6006 incorrectly reject 9223372036854775807. */
6007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6009 && LARGE_OFF_T % 2147483647 == 1)
6010 ? 1 : -1];
6011 int
6012 main ()
6013 {
6014
6015 ;
6016 return 0;
6017 }
6018 _ACEOF
6019 if ac_fn_cxx_try_compile "$LINENO"; then :
6020 ac_cv_sys_large_files=1; break
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 ac_cv_sys_large_files=unknown
6024 break
6025 done
6026 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6028 $as_echo "$ac_cv_sys_large_files" >&6; }
6029 case $ac_cv_sys_large_files in #(
6030 no | unknown) ;;
6031 *)
6032 cat >>confdefs.h <<_ACEOF
6033 #define _LARGE_FILES $ac_cv_sys_large_files
6034 _ACEOF
6035 ;;
6036 esac
6037 rm -rf conftest*
6038 fi
6039
6040
6041 fi
6042
6043
6044 # sizeof(char) is 1 by definition.
6045 # The cast to long int works around a bug in the HP C Compiler
6046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6048 # This bug is HP SR number 8606223364.
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6050 $as_echo_n "checking size of void *... " >&6; }
6051 if ${ac_cv_sizeof_void_p+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6055
6056 else
6057 if test "$ac_cv_type_void_p" = yes; then
6058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6060 as_fn_error 77 "cannot compute sizeof (void *)
6061 See \`config.log' for more details" "$LINENO" 5; }
6062 else
6063 ac_cv_sizeof_void_p=0
6064 fi
6065 fi
6066
6067 fi
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6069 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6070
6071
6072
6073 cat >>confdefs.h <<_ACEOF
6074 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6075 _ACEOF
6076
6077
6078 # The cast to long int works around a bug in the HP C Compiler
6079 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6080 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6081 # This bug is HP SR number 8606223364.
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6083 $as_echo_n "checking size of short... " >&6; }
6084 if ${ac_cv_sizeof_short+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6088
6089 else
6090 if test "$ac_cv_type_short" = yes; then
6091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6093 as_fn_error 77 "cannot compute sizeof (short)
6094 See \`config.log' for more details" "$LINENO" 5; }
6095 else
6096 ac_cv_sizeof_short=0
6097 fi
6098 fi
6099
6100 fi
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6102 $as_echo "$ac_cv_sizeof_short" >&6; }
6103
6104
6105
6106 cat >>confdefs.h <<_ACEOF
6107 #define SIZEOF_SHORT $ac_cv_sizeof_short
6108 _ACEOF
6109
6110
6111 # The cast to long int works around a bug in the HP C Compiler
6112 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6113 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6114 # This bug is HP SR number 8606223364.
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6116 $as_echo_n "checking size of int... " >&6; }
6117 if ${ac_cv_sizeof_int+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6121
6122 else
6123 if test "$ac_cv_type_int" = yes; then
6124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6126 as_fn_error 77 "cannot compute sizeof (int)
6127 See \`config.log' for more details" "$LINENO" 5; }
6128 else
6129 ac_cv_sizeof_int=0
6130 fi
6131 fi
6132
6133 fi
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6135 $as_echo "$ac_cv_sizeof_int" >&6; }
6136
6137
6138
6139 cat >>confdefs.h <<_ACEOF
6140 #define SIZEOF_INT $ac_cv_sizeof_int
6141 _ACEOF
6142
6143
6144 # The cast to long int works around a bug in the HP C Compiler
6145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6147 # This bug is HP SR number 8606223364.
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6149 $as_echo_n "checking size of long... " >&6; }
6150 if ${ac_cv_sizeof_long+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6154
6155 else
6156 if test "$ac_cv_type_long" = yes; then
6157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6159 as_fn_error 77 "cannot compute sizeof (long)
6160 See \`config.log' for more details" "$LINENO" 5; }
6161 else
6162 ac_cv_sizeof_long=0
6163 fi
6164 fi
6165
6166 fi
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6168 $as_echo "$ac_cv_sizeof_long" >&6; }
6169
6170
6171
6172 cat >>confdefs.h <<_ACEOF
6173 #define SIZEOF_LONG $ac_cv_sizeof_long
6174 _ACEOF
6175
6176
6177 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6178 if test "x$ac_cv_type_long_long" = xyes; then :
6179
6180 cat >>confdefs.h <<_ACEOF
6181 #define HAVE_LONG_LONG 1
6182 _ACEOF
6183
6184 # The cast to long int works around a bug in the HP C Compiler
6185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6187 # This bug is HP SR number 8606223364.
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6189 $as_echo_n "checking size of long long... " >&6; }
6190 if ${ac_cv_sizeof_long_long+:} false; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6194
6195 else
6196 if test "$ac_cv_type_long_long" = yes; then
6197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6199 as_fn_error 77 "cannot compute sizeof (long long)
6200 See \`config.log' for more details" "$LINENO" 5; }
6201 else
6202 ac_cv_sizeof_long_long=0
6203 fi
6204 fi
6205
6206 fi
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6208 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6209
6210
6211
6212 cat >>confdefs.h <<_ACEOF
6213 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6214 _ACEOF
6215
6216
6217 fi
6218
6219 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6220 case $ac_cv_c_int8_t in #(
6221 no|yes) ;; #(
6222 *)
6223
6224 cat >>confdefs.h <<_ACEOF
6225 #define int8_t $ac_cv_c_int8_t
6226 _ACEOF
6227 ;;
6228 esac
6229
6230 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6231 case $ac_cv_c_int16_t in #(
6232 no|yes) ;; #(
6233 *)
6234
6235 cat >>confdefs.h <<_ACEOF
6236 #define int16_t $ac_cv_c_int16_t
6237 _ACEOF
6238 ;;
6239 esac
6240
6241 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6242 case $ac_cv_c_int32_t in #(
6243 no|yes) ;; #(
6244 *)
6245
6246 cat >>confdefs.h <<_ACEOF
6247 #define int32_t $ac_cv_c_int32_t
6248 _ACEOF
6249 ;;
6250 esac
6251
6252 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6253 case $ac_cv_c_int64_t in #(
6254 no|yes) ;; #(
6255 *)
6256
6257 cat >>confdefs.h <<_ACEOF
6258 #define int64_t $ac_cv_c_int64_t
6259 _ACEOF
6260 ;;
6261 esac
6262
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6265 $as_echo_n "checking for unsigned long long int... " >&6; }
6266 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 ac_cv_type_unsigned_long_long_int=yes
6270 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273
6274 /* For now, do not test the preprocessor; as of 2007 there are too many
6275 implementations with broken preprocessors. Perhaps this can
6276 be revisited in 2012. In the meantime, code should not expect
6277 #if to work with literals wider than 32 bits. */
6278 /* Test literals. */
6279 long long int ll = 9223372036854775807ll;
6280 long long int nll = -9223372036854775807LL;
6281 unsigned long long int ull = 18446744073709551615ULL;
6282 /* Test constant expressions. */
6283 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6284 ? 1 : -1)];
6285 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6286 ? 1 : -1)];
6287 int i = 63;
6288 int
6289 main ()
6290 {
6291 /* Test availability of runtime routines for shift and division. */
6292 long long int llmax = 9223372036854775807ll;
6293 unsigned long long int ullmax = 18446744073709551615ull;
6294 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6295 | (llmax / ll) | (llmax % ll)
6296 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6297 | (ullmax / ull) | (ullmax % ull));
6298 ;
6299 return 0;
6300 }
6301
6302 _ACEOF
6303 if ac_fn_cxx_try_link "$LINENO"; then :
6304
6305 else
6306 ac_cv_type_unsigned_long_long_int=no
6307 fi
6308 rm -f core conftest.err conftest.$ac_objext \
6309 conftest$ac_exeext conftest.$ac_ext
6310 fi
6311 fi
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6313 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6314 if test $ac_cv_type_unsigned_long_long_int = yes; then
6315
6316 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6317
6318 fi
6319
6320
6321
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6323 $as_echo_n "checking for long long int... " >&6; }
6324 if ${ac_cv_type_long_long_int+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 ac_cv_type_long_long_int=yes
6328 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6329 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6330 if test $ac_cv_type_long_long_int = yes; then
6331 if test "$cross_compiling" = yes; then :
6332 :
6333 else
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6336 #include <limits.h>
6337 #ifndef LLONG_MAX
6338 # define HALF \
6339 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6340 # define LLONG_MAX (HALF - 1 + HALF)
6341 #endif
6342 int
6343 main ()
6344 {
6345 long long int n = 1;
6346 int i;
6347 for (i = 0; ; i++)
6348 {
6349 long long int m = n << i;
6350 if (m >> i != n)
6351 return 1;
6352 if (LLONG_MAX / 2 < m)
6353 break;
6354 }
6355 return 0;
6356 ;
6357 return 0;
6358 }
6359 _ACEOF
6360 if ac_fn_cxx_try_run "$LINENO"; then :
6361
6362 else
6363 ac_cv_type_long_long_int=no
6364 fi
6365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6366 conftest.$ac_objext conftest.beam conftest.$ac_ext
6367 fi
6368
6369 fi
6370 fi
6371 fi
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6373 $as_echo "$ac_cv_type_long_long_int" >&6; }
6374 if test $ac_cv_type_long_long_int = yes; then
6375
6376 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6377
6378 fi
6379
6380
6381
6382 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6383 if test "x$ac_cv_type_intmax_t" = xyes; then :
6384
6385 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6386
6387 else
6388 test $ac_cv_type_long_long_int = yes \
6389 && ac_type='long long int' \
6390 || ac_type='long int'
6391
6392 cat >>confdefs.h <<_ACEOF
6393 #define intmax_t $ac_type
6394 _ACEOF
6395
6396 fi
6397
6398
6399
6400 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6401 if test "x$ac_cv_type_intptr_t" = xyes; then :
6402
6403 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6404
6405 else
6406 for ac_type in 'int' 'long int' 'long long int'; do
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409 $ac_includes_default
6410 int
6411 main ()
6412 {
6413 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6414 test_array [0] = 0;
6415 return test_array [0];
6416
6417 ;
6418 return 0;
6419 }
6420 _ACEOF
6421 if ac_fn_cxx_try_compile "$LINENO"; then :
6422
6423 cat >>confdefs.h <<_ACEOF
6424 #define intptr_t $ac_type
6425 _ACEOF
6426
6427 ac_type=
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 test -z "$ac_type" && break
6431 done
6432 fi
6433
6434
6435 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6436 case $ac_cv_c_uint8_t in #(
6437 no|yes) ;; #(
6438 *)
6439
6440 $as_echo "#define _UINT8_T 1" >>confdefs.h
6441
6442
6443 cat >>confdefs.h <<_ACEOF
6444 #define uint8_t $ac_cv_c_uint8_t
6445 _ACEOF
6446 ;;
6447 esac
6448
6449 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6450 case $ac_cv_c_uint16_t in #(
6451 no|yes) ;; #(
6452 *)
6453
6454
6455 cat >>confdefs.h <<_ACEOF
6456 #define uint16_t $ac_cv_c_uint16_t
6457 _ACEOF
6458 ;;
6459 esac
6460
6461 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6462 case $ac_cv_c_uint32_t in #(
6463 no|yes) ;; #(
6464 *)
6465
6466 $as_echo "#define _UINT32_T 1" >>confdefs.h
6467
6468
6469 cat >>confdefs.h <<_ACEOF
6470 #define uint32_t $ac_cv_c_uint32_t
6471 _ACEOF
6472 ;;
6473 esac
6474
6475 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6476 case $ac_cv_c_uint64_t in #(
6477 no|yes) ;; #(
6478 *)
6479
6480 $as_echo "#define _UINT64_T 1" >>confdefs.h
6481
6482
6483 cat >>confdefs.h <<_ACEOF
6484 #define uint64_t $ac_cv_c_uint64_t
6485 _ACEOF
6486 ;;
6487 esac
6488
6489
6490
6491 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6492 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6493
6494 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6495
6496 else
6497 test $ac_cv_type_unsigned_long_long_int = yes \
6498 && ac_type='unsigned long long int' \
6499 || ac_type='unsigned long int'
6500
6501 cat >>confdefs.h <<_ACEOF
6502 #define uintmax_t $ac_type
6503 _ACEOF
6504
6505 fi
6506
6507
6508
6509 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6510 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6511
6512 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6513
6514 else
6515 for ac_type in 'unsigned int' 'unsigned long int' \
6516 'unsigned long long int'; do
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 $ac_includes_default
6520 int
6521 main ()
6522 {
6523 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6524 test_array [0] = 0;
6525 return test_array [0];
6526
6527 ;
6528 return 0;
6529 }
6530 _ACEOF
6531 if ac_fn_cxx_try_compile "$LINENO"; then :
6532
6533 cat >>confdefs.h <<_ACEOF
6534 #define uintptr_t $ac_type
6535 _ACEOF
6536
6537 ac_type=
6538 fi
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 test -z "$ac_type" && break
6541 done
6542 fi
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6558 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6559 fi
6560
6561 # check what underlying integer type int64_t uses
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6563 $as_echo_n "checking for int64_t underlying type... " >&6; }
6564 if ${ac_cv_int64_t_type+:} false; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570
6571 #ifdef HAVE_STDINT_H
6572 #include <stdint.h>
6573 #endif
6574 template <typename T> struct X { };
6575 template <>
6576 struct X<long> { typedef long t; };
6577
6578 int
6579 main ()
6580 {
6581 X<int64_t>::t x;
6582 ;
6583 return 0;
6584 }
6585 _ACEOF
6586 if ac_fn_cxx_try_compile "$LINENO"; then :
6587 ac_cv_int64_t_type=long
6588 else
6589 ac_cv_int64_t_type="long long"
6590 fi
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 fi
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6594 $as_echo "$ac_cv_int64_t_type" >&6; }
6595 if test "$ac_cv_int64_t_type" = "long"; then
6596
6597 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6598
6599 else
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602
6603 #ifdef HAVE_STDINT_H
6604 #include <stdint.h>
6605 #endif
6606 template <typename T> struct X { };
6607 template <>
6608 struct X<long long> { typedef long long t; };
6609
6610 int
6611 main ()
6612 {
6613 X<int64_t>::t x;
6614 ;
6615 return 0;
6616 }
6617 _ACEOF
6618 if ac_fn_cxx_try_compile "$LINENO"; then :
6619
6620 else
6621 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6622 fi
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 fi
6625
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6627 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6628 if ${ac_cv_std_swap_in_utility+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6634
6635 #include <utility>
6636
6637 int
6638 main ()
6639 {
6640 int a, b; std::swap(a,b);
6641 ;
6642 return 0;
6643 }
6644 _ACEOF
6645 if ac_fn_cxx_try_compile "$LINENO"; then :
6646 ac_cv_std_swap_in_utility=yes
6647 else
6648 ac_cv_std_swap_in_utility=no
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6651 fi
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6653 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6654 if test $ac_cv_std_swap_in_utility = yes; then
6655
6656 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6657
6658 fi
6659
6660 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6661 # If the host compiler is affected by the bug, and we build with optimization
6662 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6663 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6664 # Since there is no reliable feature check for the presence of this bug,
6665 # we simply use a GCC version number check. (This should never trigger for
6666 # stages 2 or 3 of a native bootstrap.)
6667 aliasing_flags=
6668 if test "$GCC" = yes; then
6669 saved_CXXFLAGS="$CXXFLAGS"
6670
6671 # The following test compilation will succeed if and only if $CXX accepts
6672 # -fno-strict-aliasing *and* is older than GCC 4.3.
6673 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6675 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6678
6679 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6680 #error compiler not affected by placement new aliasing bug
6681 #endif
6682
6683 _ACEOF
6684 if ac_fn_cxx_try_compile "$LINENO"; then :
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6686 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692
6693 CXXFLAGS="$saved_CXXFLAGS"
6694 fi
6695
6696
6697
6698
6699 # ---------------------
6700 # Warnings and checking
6701 # ---------------------
6702
6703 # Check $CC warning features (if it's GCC).
6704 # We want to use -pedantic, but we don't want warnings about
6705 # * 'long long'
6706 # * variadic macros
6707 # * overlong strings
6708 # * C++11 narrowing conversions in { }
6709 # So, we only use -pedantic if we can disable those warnings.
6710
6711 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6712 # Check whether --enable-build-format-warnings was given.
6713 if test "${enable_build_format_warnings+set}" = set; then :
6714 enableval=$enable_build_format_warnings;
6715 else
6716 enable_build_format_warnings=yes
6717 fi
6718
6719 if test $enable_build_format_warnings = no; then :
6720 wf_opt=-Wno-format
6721 else
6722 wf_opt=
6723 fi
6724 ac_ext=cpp
6725 ac_cpp='$CXXCPP $CPPFLAGS'
6726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6729
6730 loose_warn=
6731 save_CXXFLAGS="$CXXFLAGS"
6732 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6733 # Do the check with the no- prefix removed since gcc silently
6734 # accepts any -Wno-* option on purpose
6735 case $real_option in
6736 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6737 *) option=$real_option ;;
6738 esac
6739 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6740
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6742 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6743 if eval \${$as_acx_Woption+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 CXXFLAGS="$option"
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749
6750 int
6751 main ()
6752 {
6753
6754 ;
6755 return 0;
6756 }
6757 _ACEOF
6758 if ac_fn_cxx_try_compile "$LINENO"; then :
6759 eval "$as_acx_Woption=yes"
6760 else
6761 eval "$as_acx_Woption=no"
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764
6765 fi
6766 eval ac_res=\$$as_acx_Woption
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6768 $as_echo "$ac_res" >&6; }
6769 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6770 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6771 fi
6772 done
6773 CXXFLAGS="$save_CXXFLAGS"
6774 ac_ext=cpp
6775 ac_cpp='$CXXCPP $CPPFLAGS'
6776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6779
6780
6781
6782 ac_ext=c
6783 ac_cpp='$CPP $CPPFLAGS'
6784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6787
6788 c_loose_warn=
6789 save_CFLAGS="$CFLAGS"
6790 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6791 # Do the check with the no- prefix removed since gcc silently
6792 # accepts any -Wno-* option on purpose
6793 case $real_option in
6794 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6795 *) option=$real_option ;;
6796 esac
6797 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6798
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6800 $as_echo_n "checking whether $CC supports $option... " >&6; }
6801 if eval \${$as_acx_Woption+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 CFLAGS="$option"
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807
6808 int
6809 main ()
6810 {
6811
6812 ;
6813 return 0;
6814 }
6815 _ACEOF
6816 if ac_fn_c_try_compile "$LINENO"; then :
6817 eval "$as_acx_Woption=yes"
6818 else
6819 eval "$as_acx_Woption=no"
6820 fi
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822
6823 fi
6824 eval ac_res=\$$as_acx_Woption
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6826 $as_echo "$ac_res" >&6; }
6827 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6828 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6829 fi
6830 done
6831 CFLAGS="$save_CFLAGS"
6832 ac_ext=cpp
6833 ac_cpp='$CXXCPP $CPPFLAGS'
6834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6837
6838
6839 ac_ext=cpp
6840 ac_cpp='$CXXCPP $CPPFLAGS'
6841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6844
6845 strict_warn=
6846 save_CXXFLAGS="$CXXFLAGS"
6847 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6848 # Do the check with the no- prefix removed since gcc silently
6849 # accepts any -Wno-* option on purpose
6850 case $real_option in
6851 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6852 *) option=$real_option ;;
6853 esac
6854 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6855
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6857 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6858 if eval \${$as_acx_Woption+:} false; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 CXXFLAGS="$option"
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864
6865 int
6866 main ()
6867 {
6868
6869 ;
6870 return 0;
6871 }
6872 _ACEOF
6873 if ac_fn_cxx_try_compile "$LINENO"; then :
6874 eval "$as_acx_Woption=yes"
6875 else
6876 eval "$as_acx_Woption=no"
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879
6880 fi
6881 eval ac_res=\$$as_acx_Woption
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6883 $as_echo "$ac_res" >&6; }
6884 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6885 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6886 fi
6887 done
6888 CXXFLAGS="$save_CXXFLAGS"
6889 ac_ext=cpp
6890 ac_cpp='$CXXCPP $CPPFLAGS'
6891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6894
6895
6896 ac_ext=c
6897 ac_cpp='$CPP $CPPFLAGS'
6898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6901
6902 c_strict_warn=
6903 save_CFLAGS="$CFLAGS"
6904 for real_option in -Wold-style-definition -Wc++-compat; do
6905 # Do the check with the no- prefix removed since gcc silently
6906 # accepts any -Wno-* option on purpose
6907 case $real_option in
6908 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6909 *) option=$real_option ;;
6910 esac
6911 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6912
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6914 $as_echo_n "checking whether $CC supports $option... " >&6; }
6915 if eval \${$as_acx_Woption+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 CFLAGS="$option"
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921
6922 int
6923 main ()
6924 {
6925
6926 ;
6927 return 0;
6928 }
6929 _ACEOF
6930 if ac_fn_c_try_compile "$LINENO"; then :
6931 eval "$as_acx_Woption=yes"
6932 else
6933 eval "$as_acx_Woption=no"
6934 fi
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936
6937 fi
6938 eval ac_res=\$$as_acx_Woption
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6940 $as_echo "$ac_res" >&6; }
6941 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6942 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6943 fi
6944 done
6945 CFLAGS="$save_CFLAGS"
6946 ac_ext=cpp
6947 ac_cpp='$CXXCPP $CPPFLAGS'
6948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6951
6952
6953 ac_ext=cpp
6954 ac_cpp='$CXXCPP $CPPFLAGS'
6955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6958
6959 # Do the check with the no- prefix removed from the warning options
6960 # since gcc silently accepts any -Wno-* option on purpose
6961 if test "$GXX" = yes; then :
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6963 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6964 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 save_CXXFLAGS="$CXXFLAGS"
6968 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971
6972 int
6973 main ()
6974 {
6975
6976 ;
6977 return 0;
6978 }
6979 _ACEOF
6980 if ac_fn_cxx_try_compile "$LINENO"; then :
6981 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6982 else
6983 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6984 fi
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 CXXFLAGS="$save_CXXFLAGS"
6987 fi
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6989 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6990 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6991 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6992 fi
6993
6994 fi
6995 ac_ext=cpp
6996 ac_cpp='$CXXCPP $CPPFLAGS'
6997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7000
7001
7002 ac_ext=cpp
7003 ac_cpp='$CXXCPP $CPPFLAGS'
7004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7007
7008 # Check whether --enable-werror-always was given.
7009 if test "${enable_werror_always+set}" = set; then :
7010 enableval=$enable_werror_always;
7011 else
7012 enable_werror_always=no
7013 fi
7014
7015 if test $enable_werror_always = yes; then :
7016 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7017 fi
7018
7019 ac_ext=cpp
7020 ac_cpp='$CXXCPP $CPPFLAGS'
7021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7024
7025
7026
7027 # The above macros do nothing if the compiler is not GCC. However, the
7028 # Makefile has more goo to add other flags, so these variables are used
7029 # to enable warnings only for GCC.
7030 warn_cflags=
7031 warn_cxxflags=
7032 if test "x$GCC" = "xyes"; then
7033 warn_cflags='$(GCC_WARN_CFLAGS)'
7034 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7035 fi
7036
7037
7038
7039 # Disable exceptions and RTTI if building with g++
7040 ac_ext=c
7041 ac_cpp='$CPP $CPPFLAGS'
7042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7045
7046 noexception_flags=
7047 save_CFLAGS="$CFLAGS"
7048 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7049 # Do the check with the no- prefix removed since gcc silently
7050 # accepts any -Wno-* option on purpose
7051 case $real_option in
7052 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7053 *) option=$real_option ;;
7054 esac
7055 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7056
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7058 $as_echo_n "checking whether $CC supports $option... " >&6; }
7059 if eval \${$as_acx_Woption+:} false; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 CFLAGS="$option"
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065
7066 int
7067 main ()
7068 {
7069
7070 ;
7071 return 0;
7072 }
7073 _ACEOF
7074 if ac_fn_c_try_compile "$LINENO"; then :
7075 eval "$as_acx_Woption=yes"
7076 else
7077 eval "$as_acx_Woption=no"
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080
7081 fi
7082 eval ac_res=\$$as_acx_Woption
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7084 $as_echo "$ac_res" >&6; }
7085 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7086 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7087 fi
7088 done
7089 CFLAGS="$save_CFLAGS"
7090 ac_ext=cpp
7091 ac_cpp='$CXXCPP $CPPFLAGS'
7092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7095
7096
7097
7098 # Enable expensive internal checks
7099 is_release=
7100 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7101 is_release=yes
7102 fi
7103
7104 # Check whether --enable-checking was given.
7105 if test "${enable_checking+set}" = set; then :
7106 enableval=$enable_checking; ac_checking_flags="${enableval}"
7107 else
7108
7109 # Determine the default checks.
7110 if test x$is_release = x ; then
7111 ac_checking_flags=yes,extra
7112 else
7113 ac_checking_flags=release
7114 fi
7115 fi
7116
7117 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7118 for check in release $ac_checking_flags
7119 do
7120 case $check in
7121 # these set all the flags to specific states
7122 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7123 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7124 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7125 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7126 ac_tree_checking=1 ; ac_valgrind_checking= ;
7127 ac_types_checking=1 ;;
7128 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7129 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7130 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7131 ac_rtlflag_checking= ; ac_runtime_checking= ;
7132 ac_tree_checking= ; ac_valgrind_checking= ;
7133 ac_types_checking= ;;
7134 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7135 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7136 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7137 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7138 ac_tree_checking=1 ; ac_valgrind_checking= ;
7139 ac_types_checking=1 ;;
7140 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7141 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7142 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7143 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7144 ac_tree_checking= ; ac_valgrind_checking= ;
7145 ac_types_checking= ;;
7146 # these enable particular checks
7147 assert) ac_assert_checking=1 ;;
7148 df) ac_df_checking=1 ;;
7149 extra) ac_extra_checking=1 ;;
7150 fold) ac_fold_checking=1 ;;
7151 gc) ac_gc_checking=1 ;;
7152 gcac) ac_gc_always_collect=1 ;;
7153 gimple) ac_gimple_checking=1 ;;
7154 misc) ac_checking=1 ;;
7155 rtl) ac_rtl_checking=1 ;;
7156 rtlflag) ac_rtlflag_checking=1 ;;
7157 runtime) ac_runtime_checking=1 ;;
7158 tree) ac_tree_checking=1 ;;
7159 types) ac_types_checking=1 ;;
7160 valgrind) ac_valgrind_checking=1 ;;
7161 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7162 esac
7163 done
7164 IFS="$ac_save_IFS"
7165
7166 nocommon_flag=""
7167 if test x$ac_checking != x ; then
7168
7169 $as_echo "#define CHECKING_P 1" >>confdefs.h
7170
7171 nocommon_flag=-fno-common
7172 else
7173 $as_echo "#define CHECKING_P 0" >>confdefs.h
7174
7175 fi
7176
7177 if test x$ac_extra_checking != x ; then
7178
7179 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7180
7181 else
7182 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7183
7184 fi
7185 if test x$ac_df_checking != x ; then
7186
7187 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7188
7189 fi
7190 if test x$ac_assert_checking != x ; then
7191
7192 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7193
7194 fi
7195 if test x$ac_gimple_checking != x ; then
7196
7197 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7198
7199 fi
7200
7201 if test x$ac_runtime_checking != x ; then
7202
7203 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7204
7205 fi
7206 if test x$ac_tree_checking != x ; then
7207
7208 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7209
7210 TREECHECKING=yes
7211 fi
7212 if test x$ac_types_checking != x ; then
7213
7214 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7215
7216 fi
7217
7218 if test x$ac_rtl_checking != x ; then
7219
7220 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7221
7222 fi
7223 if test x$ac_rtlflag_checking != x ; then
7224
7225 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7226
7227 fi
7228 if test x$ac_gc_checking != x ; then
7229
7230 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7231
7232 fi
7233 if test x$ac_gc_always_collect != x ; then
7234
7235 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7236
7237 fi
7238 if test x$ac_fold_checking != x ; then
7239
7240 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7241
7242 fi
7243 valgrind_path_defines=
7244 valgrind_command=
7245
7246 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7247 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7248 have_valgrind_h=yes
7249 else
7250 have_valgrind_h=no
7251 fi
7252
7253
7254
7255 # It is certainly possible that there's valgrind but no valgrind.h.
7256 # GCC relies on making annotations so we must have both.
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7258 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 #include <valgrind/memcheck.h>
7262 #ifndef VALGRIND_DISCARD
7263 #error VALGRIND_DISCARD not defined
7264 #endif
7265 _ACEOF
7266 if ac_fn_cxx_try_cpp "$LINENO"; then :
7267 gcc_cv_header_valgrind_memcheck_h=yes
7268 else
7269 gcc_cv_header_valgrind_memcheck_h=no
7270 fi
7271 rm -f conftest.err conftest.i conftest.$ac_ext
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7273 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7275 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7278 #include <memcheck.h>
7279 #ifndef VALGRIND_DISCARD
7280 #error VALGRIND_DISCARD not defined
7281 #endif
7282 _ACEOF
7283 if ac_fn_cxx_try_cpp "$LINENO"; then :
7284 gcc_cv_header_memcheck_h=yes
7285 else
7286 gcc_cv_header_memcheck_h=no
7287 fi
7288 rm -f conftest.err conftest.i conftest.$ac_ext
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7290 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7291 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7292
7293 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7294
7295 fi
7296 if test $gcc_cv_header_memcheck_h = yes; then
7297
7298 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7299
7300 fi
7301
7302 if test x$ac_valgrind_checking != x ; then
7303
7304 # Prepare PATH_SEPARATOR.
7305 # The user is always right.
7306 if test "${PATH_SEPARATOR+set}" != set; then
7307 echo "#! /bin/sh" >conf$$.sh
7308 echo "exit 0" >>conf$$.sh
7309 chmod +x conf$$.sh
7310 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7311 PATH_SEPARATOR=';'
7312 else
7313 PATH_SEPARATOR=:
7314 fi
7315 rm -f conf$$.sh
7316 fi
7317
7318 # Find out how to test for executable files. Don't use a zero-byte file,
7319 # as systems may use methods other than mode bits to determine executability.
7320 cat >conf$$.file <<_ASEOF
7321 #! /bin/sh
7322 exit 0
7323 _ASEOF
7324 chmod +x conf$$.file
7325 if test -x conf$$.file >/dev/null 2>&1; then
7326 ac_executable_p="test -x"
7327 else
7328 ac_executable_p="test -f"
7329 fi
7330 rm -f conf$$.file
7331
7332 # Extract the first word of "valgrind", so it can be a program name with args.
7333 set dummy valgrind; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if ${ac_cv_path_valgrind_path+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 case "$valgrind_path" in
7340 [\\/]* | ?:[\\/]*)
7341 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7342 ;;
7343 *)
7344 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7345 for ac_dir in $PATH; do
7346 IFS="$ac_save_IFS"
7347 test -z "$ac_dir" && ac_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7350 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7351 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7352 break 2
7353 fi
7354 fi
7355 done
7356 done
7357 IFS="$ac_save_IFS"
7358 ;;
7359 esac
7360 fi
7361 valgrind_path="$ac_cv_path_valgrind_path"
7362 if test -n "$valgrind_path"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7364 $as_echo "$valgrind_path" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370 if test "x$valgrind_path" = "x" \
7371 || (test $have_valgrind_h = no \
7372 && test $gcc_cv_header_memcheck_h = no \
7373 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7374 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7375 fi
7376 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7377 valgrind_command="$valgrind_path -q"
7378
7379 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7380
7381 fi
7382
7383
7384
7385 # Enable code coverage collection
7386 # Check whether --enable-coverage was given.
7387 if test "${enable_coverage+set}" = set; then :
7388 enableval=$enable_coverage; case "${enableval}" in
7389 yes|noopt)
7390 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7391 ;;
7392 opt)
7393 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7394 ;;
7395 no)
7396 # a.k.a. --disable-coverage
7397 coverage_flags=""
7398 ;;
7399 *)
7400 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7401 ;;
7402 esac
7403 else
7404 coverage_flags=""
7405 fi
7406
7407
7408
7409 # Check whether --enable-gather-detailed-mem-stats was given.
7410 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7411 enableval=$enable_gather_detailed_mem_stats;
7412 else
7413 enable_gather_detailed_mem_stats=no
7414 fi
7415
7416 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7417
7418 cat >>confdefs.h <<_ACEOF
7419 #define GATHER_STATISTICS $gather_stats
7420 _ACEOF
7421
7422
7423 # Check whether --enable-valgrind-annotations was given.
7424 if test "${enable_valgrind_annotations+set}" = set; then :
7425 enableval=$enable_valgrind_annotations;
7426 else
7427 enable_valgrind_annotations=no
7428 fi
7429
7430 if test x$enable_valgrind_annotations != xno \
7431 || test x$ac_valgrind_checking != x; then
7432 if (test $have_valgrind_h = no \
7433 && test $gcc_cv_header_memcheck_h = no \
7434 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7435 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7436 fi
7437
7438 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7439
7440 fi
7441
7442 # -------------------------------
7443 # Miscenalleous configure options
7444 # -------------------------------
7445
7446 # With stabs
7447
7448 # Check whether --with-stabs was given.
7449 if test "${with_stabs+set}" = set; then :
7450 withval=$with_stabs; stabs="$with_stabs"
7451 else
7452 stabs=no
7453 fi
7454
7455
7456 # Determine whether or not multilibs are enabled.
7457 # Check whether --enable-multilib was given.
7458 if test "${enable_multilib+set}" = set; then :
7459 enableval=$enable_multilib;
7460 else
7461 enable_multilib=yes
7462 fi
7463
7464
7465
7466 # Determine whether or not multiarch is enabled.
7467 # Check whether --enable-multiarch was given.
7468 if test "${enable_multiarch+set}" = set; then :
7469 enableval=$enable_multiarch; case "${enableval}" in
7470 yes|no|auto) enable_multiarch=$enableval;;
7471 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7472 esac
7473 else
7474 enable_multiarch=auto
7475 fi
7476
7477 if test x${enable_multiarch} = xauto; then
7478 if test x${with_native_system_header_dir} != x; then
7479 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7480 enable_multiarch=no
7481 fi
7482 if test x$host != x$target && test "x$with_sysroot" = x; then
7483 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7484 enable_multiarch=no
7485 fi
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7488 $as_echo_n "checking for multiarch configuration... " >&6; }
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7491 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7492
7493 # needed for setting the multiarch name for soft-float/hard-float ABIs
7494
7495
7496
7497 # default stack clash protection guard size as power of twos in bytes.
7498 # Please keep these in sync with params.def.
7499 stk_clash_min=12
7500 stk_clash_max=30
7501
7502 # Keep the default value when the option is not used to 0, this allows us to
7503 # distinguish between the cases where the user specifially set a value via
7504 # configure and when the normal default value is used.
7505
7506 # Check whether --with-stack-clash-protection-guard-size was given.
7507 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7508 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7509 else
7510 DEFAULT_STK_CLASH_GUARD_SIZE=0
7511 fi
7512
7513 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7514 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7515 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7516 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
7517 fi
7518
7519
7520 cat >>confdefs.h <<_ACEOF
7521 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7522 _ACEOF
7523
7524
7525 # Enable __cxa_atexit for C++.
7526 # Check whether --enable-__cxa_atexit was given.
7527 if test "${enable___cxa_atexit+set}" = set; then :
7528 enableval=$enable___cxa_atexit;
7529 fi
7530
7531
7532 # Enable C extension for decimal float if target supports it.
7533
7534 # Check whether --enable-decimal-float was given.
7535 if test "${enable_decimal_float+set}" = set; then :
7536 enableval=$enable_decimal_float;
7537 case $enable_decimal_float in
7538 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7539 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7540 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7541 esac
7542
7543 else
7544
7545 case $target in
7546 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7547 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7548 i?86*-*-mingw* | x86_64*-*-mingw* | \
7549 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7550 enable_decimal_float=yes
7551 ;;
7552 *)
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7554 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7555 enable_decimal_float=no
7556 ;;
7557 esac
7558
7559 fi
7560
7561
7562 # x86's use BID format instead of DPD
7563 case x$enable_decimal_float in
7564 xyes)
7565 case $target in
7566 i?86*-*-* | x86_64*-*-*)
7567 enable_decimal_float=bid
7568 ;;
7569 *)
7570 enable_decimal_float=dpd
7571 ;;
7572 esac
7573 default_decimal_float=$enable_decimal_float
7574 ;;
7575 xno)
7576 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7577 # dependency on libdecnumber.
7578 default_decimal_float=dpd
7579 ;;
7580 esac
7581
7582
7583
7584
7585 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7586
7587 cat >>confdefs.h <<_ACEOF
7588 #define ENABLE_DECIMAL_FLOAT $dfp
7589 _ACEOF
7590
7591
7592 # Use default_decimal_float for dependency.
7593 enable_decimal_float=$default_decimal_float
7594
7595 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7596
7597 cat >>confdefs.h <<_ACEOF
7598 #define ENABLE_DECIMAL_BID_FORMAT $bid
7599 _ACEOF
7600
7601
7602 # Enable C extension for fixed-point arithmetic.
7603 # Check whether --enable-fixed-point was given.
7604 if test "${enable_fixed_point+set}" = set; then :
7605 enableval=$enable_fixed_point;
7606 else
7607
7608 case $target in
7609 arm*)
7610 enable_fixed_point=yes
7611 ;;
7612
7613 mips*-*-*)
7614 enable_fixed_point=yes
7615 ;;
7616 *)
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7618 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7619 enable_fixed_point=no
7620 ;;
7621 esac
7622
7623 fi
7624
7625
7626
7627 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7628
7629 cat >>confdefs.h <<_ACEOF
7630 #define ENABLE_FIXED_POINT $fixedpoint
7631 _ACEOF
7632
7633
7634 # Enable threads
7635 # Pass with no value to take the default
7636 # Pass with a value to specify a thread package
7637 # Check whether --enable-threads was given.
7638 if test "${enable_threads+set}" = set; then :
7639 enableval=$enable_threads;
7640 else
7641 enable_threads=''
7642 fi
7643
7644
7645 # Check whether --enable-tls was given.
7646 if test "${enable_tls+set}" = set; then :
7647 enableval=$enable_tls;
7648 case $enable_tls in
7649 yes | no) ;;
7650 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7651 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7652 esac
7653
7654 else
7655 enable_tls=''
7656 fi
7657
7658
7659 # Check whether --enable-vtable-verify was given.
7660 if test "${enable_vtable_verify+set}" = set; then :
7661 enableval=$enable_vtable_verify;
7662 else
7663 enable_vtable_verify=no
7664 fi
7665
7666 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7667
7668 cat >>confdefs.h <<_ACEOF
7669 #define ENABLE_VTABLE_VERIFY $vtable_verify
7670 _ACEOF
7671
7672
7673 # Check whether --enable-objc-gc was given.
7674 if test "${enable_objc_gc+set}" = set; then :
7675 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7676 objc_boehm_gc=''
7677 else
7678 objc_boehm_gc=1
7679 fi
7680 else
7681 objc_boehm_gc=''
7682 fi
7683
7684
7685
7686 # Check whether --with-dwarf2 was given.
7687 if test "${with_dwarf2+set}" = set; then :
7688 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7689 else
7690 dwarf2=no
7691 fi
7692
7693
7694 # Check whether --enable-shared was given.
7695 if test "${enable_shared+set}" = set; then :
7696 enableval=$enable_shared;
7697 case $enable_shared in
7698 yes | no) ;;
7699 *)
7700 enable_shared=no
7701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7702 for pkg in $enableval; do
7703 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7704 enable_shared=yes
7705 fi
7706 done
7707 IFS="$ac_save_ifs"
7708 ;;
7709 esac
7710
7711 else
7712 enable_shared=yes
7713 fi
7714
7715
7716
7717 # Check whether --enable-gcov was given.
7718 if test "${enable_gcov+set}" = set; then :
7719 enableval=$enable_gcov;
7720 else
7721 enable_gcov=yes
7722 fi
7723
7724
7725
7726
7727 # Check whether --with-specs was given.
7728 if test "${with_specs+set}" = set; then :
7729 withval=$with_specs; CONFIGURE_SPECS=$withval
7730 else
7731 CONFIGURE_SPECS=
7732
7733 fi
7734
7735
7736
7737
7738
7739 # Check whether --with-pkgversion was given.
7740 if test "${with_pkgversion+set}" = set; then :
7741 withval=$with_pkgversion; case "$withval" in
7742 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7743 no) PKGVERSION= ;;
7744 *) PKGVERSION="($withval) " ;;
7745 esac
7746 else
7747 PKGVERSION="(GCC) "
7748
7749 fi
7750
7751
7752
7753
7754
7755 # Check whether --with-bugurl was given.
7756 if test "${with_bugurl+set}" = set; then :
7757 withval=$with_bugurl; case "$withval" in
7758 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7759 no) BUGURL=
7760 ;;
7761 *) BUGURL="$withval"
7762 ;;
7763 esac
7764 else
7765 BUGURL="https://gcc.gnu.org/bugs/"
7766
7767 fi
7768
7769 case ${BUGURL} in
7770 "")
7771 REPORT_BUGS_TO=
7772 REPORT_BUGS_TEXI=
7773 ;;
7774 *)
7775 REPORT_BUGS_TO="<$BUGURL>"
7776 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7777 ;;
7778 esac;
7779
7780
7781
7782
7783 # Sanity check enable_languages in case someone does not run the toplevel
7784 # configure # script.
7785 # Check whether --enable-languages was given.
7786 if test "${enable_languages+set}" = set; then :
7787 enableval=$enable_languages; case ,${enable_languages}, in
7788 ,,|,yes,)
7789 # go safe -- we cannot be much sure without the toplevel
7790 # configure's
7791 # analysis of which target libs are present and usable
7792 enable_languages=c
7793 ;;
7794 *,all,*)
7795 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7796 ;;
7797 *,c,*)
7798 ;;
7799 *)
7800 enable_languages=c,${enable_languages}
7801 ;;
7802 esac
7803 else
7804 enable_languages=c
7805 fi
7806
7807
7808 if test x"$enable_as_accelerator_for" != x; then
7809
7810 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7811
7812 enable_as_accelerator=yes
7813 case "${target}" in
7814 *-intelmicemul-*)
7815 # In this case we expect offload compiler to be built as native, so we
7816 # need to rename the driver to avoid clashes with host's drivers.
7817 program_transform_name="s&^&${target}-&" ;;
7818 esac
7819 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7820 program_transform_name=`echo $program_transform_name | sed $sedscript`
7821 accel_dir_suffix=/accel/${target_noncanonical}
7822 real_target_noncanonical=${enable_as_accelerator_for}
7823 fi
7824
7825
7826
7827
7828 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7829 tgt=`echo $tgt | sed 's/=.*//'`
7830
7831 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7832 enable_hsa=1
7833 else
7834 enable_offloading=1
7835 fi
7836
7837 if test x"$offload_targets" = x; then
7838 offload_targets=$tgt
7839 else
7840 offload_targets="$offload_targets,$tgt"
7841 fi
7842 done
7843
7844 cat >>confdefs.h <<_ACEOF
7845 #define OFFLOAD_TARGETS "$offload_targets"
7846 _ACEOF
7847
7848 if test x"$enable_offloading" != x; then
7849
7850 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7851
7852 else
7853
7854 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7855
7856 fi
7857
7858 if test x"$enable_hsa" = x1 ; then
7859
7860 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7861
7862 fi
7863
7864
7865 # Check whether --with-multilib-list was given.
7866 if test "${with_multilib_list+set}" = set; then :
7867 withval=$with_multilib_list; :
7868 else
7869 with_multilib_list=default
7870 fi
7871
7872
7873 # -------------------------
7874 # Checks for other programs
7875 # -------------------------
7876
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7878 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7879 set x ${MAKE-make}
7880 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7881 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 cat >conftest.make <<\_ACEOF
7885 SHELL = /bin/sh
7886 all:
7887 @echo '@@@%%%=$(MAKE)=@@@%%%'
7888 _ACEOF
7889 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7890 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7891 *@@@%%%=?*=@@@%%%*)
7892 eval ac_cv_prog_make_${ac_make}_set=yes;;
7893 *)
7894 eval ac_cv_prog_make_${ac_make}_set=no;;
7895 esac
7896 rm -f conftest.make
7897 fi
7898 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900 $as_echo "yes" >&6; }
7901 SET_MAKE=
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905 SET_MAKE="MAKE=${MAKE-make}"
7906 fi
7907
7908
7909 # Find some useful tools
7910 for ac_prog in gawk mawk nawk awk
7911 do
7912 # Extract the first word of "$ac_prog", so it can be a program name with args.
7913 set dummy $ac_prog; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if ${ac_cv_prog_AWK+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$AWK"; then
7920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_AWK="$ac_prog"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937 fi
7938 fi
7939 AWK=$ac_cv_prog_AWK
7940 if test -n "$AWK"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7942 $as_echo "$AWK" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946 fi
7947
7948
7949 test -n "$AWK" && break
7950 done
7951
7952 # We need awk to create options.c and options.h.
7953 # Bail out if it's missing.
7954 case ${AWK} in
7955 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
7956 esac
7957
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7959 $as_echo_n "checking whether ln -s works... " >&6; }
7960 if ${gcc_cv_prog_LN_S+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 rm -f conftestdata_t
7964 echo >conftestdata_f
7965 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7966 then
7967 gcc_cv_prog_LN_S="ln -s"
7968 else
7969 if ln conftestdata_f conftestdata_t 2>/dev/null
7970 then
7971 gcc_cv_prog_LN_S=ln
7972 else
7973 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7974 then
7975 gcc_cv_prog_LN_S="cp -p"
7976 else
7977 gcc_cv_prog_LN_S=cp
7978 fi
7979 fi
7980 fi
7981 rm -f conftestdata_f conftestdata_t
7982
7983 fi
7984 LN_S="$gcc_cv_prog_LN_S"
7985 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7987 $as_echo "yes" >&6; }
7988 else
7989 if test "$gcc_cv_prog_LN_S" = "ln"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7991 $as_echo "no, using ln" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7994 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7995 fi
7996 fi
7997
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7999 $as_echo_n "checking whether ln works... " >&6; }
8000 if ${acx_cv_prog_LN+:} false; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003 rm -f conftestdata_t
8004 echo >conftestdata_f
8005 if ln conftestdata_f conftestdata_t 2>/dev/null
8006 then
8007 acx_cv_prog_LN=ln
8008 else
8009 acx_cv_prog_LN=no
8010 fi
8011 rm -f conftestdata_f conftestdata_t
8012
8013 fi
8014 if test $acx_cv_prog_LN = no; then
8015 LN="$LN_S"
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8017 $as_echo "no, using $LN" >&6; }
8018 else
8019 LN="$acx_cv_prog_LN"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8021 $as_echo "yes" >&6; }
8022 fi
8023
8024 if test -n "$ac_tool_prefix"; then
8025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if ${ac_cv_prog_RANLIB+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$RANLIB"; then
8033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 fi
8051 fi
8052 RANLIB=$ac_cv_prog_RANLIB
8053 if test -n "$RANLIB"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8055 $as_echo "$RANLIB" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8059 fi
8060
8061
8062 fi
8063 if test -z "$ac_cv_prog_RANLIB"; then
8064 ac_ct_RANLIB=$RANLIB
8065 # Extract the first word of "ranlib", so it can be a program name with args.
8066 set dummy ranlib; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$ac_ct_RANLIB"; then
8073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_RANLIB="ranlib"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 fi
8091 fi
8092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8093 if test -n "$ac_ct_RANLIB"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8095 $as_echo "$ac_ct_RANLIB" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8099 fi
8100
8101 if test "x$ac_ct_RANLIB" = x; then
8102 RANLIB=":"
8103 else
8104 case $cross_compiling:$ac_tool_warned in
8105 yes:)
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108 ac_tool_warned=yes ;;
8109 esac
8110 RANLIB=$ac_ct_RANLIB
8111 fi
8112 else
8113 RANLIB="$ac_cv_prog_RANLIB"
8114 fi
8115
8116 ranlib_flags=""
8117
8118
8119 # Find a good install program. We prefer a C program (faster),
8120 # so one script is as good as another. But avoid the broken or
8121 # incompatible versions:
8122 # SysV /etc/install, /usr/sbin/install
8123 # SunOS /usr/etc/install
8124 # IRIX /sbin/install
8125 # AIX /bin/install
8126 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8127 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8128 # ./install, which can be erroneously created by make from ./install.sh.
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8130 $as_echo_n "checking for a BSD compatible install... " >&6; }
8131 if test -z "$INSTALL"; then
8132 if ${ac_cv_path_install+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8136 for ac_dir in $PATH; do
8137 # Account for people who put trailing slashes in PATH elements.
8138 case "$ac_dir/" in
8139 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8140 *)
8141 # OSF1 and SCO ODT 3.0 have their own names for install.
8142 for ac_prog in ginstall scoinst install; do
8143 if test -f $ac_dir/$ac_prog; then
8144 if test $ac_prog = install &&
8145 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8146 # AIX install. It has an incompatible calling convention.
8147 # OSF/1 installbsd also uses dspmsg, but is usable.
8148 :
8149 else
8150 ac_cv_path_install="$ac_dir/$ac_prog -c"
8151 break 2
8152 fi
8153 fi
8154 done
8155 ;;
8156 esac
8157 done
8158 IFS="$ac_save_IFS"
8159
8160 fi
8161 if test "${ac_cv_path_install+set}" = set; then
8162 INSTALL="$ac_cv_path_install"
8163 else
8164 # As a last resort, use the slow shell script. We don't cache a
8165 # path for INSTALL within a source directory, because that will
8166 # break other packages using the cache if that directory is
8167 # removed, or if the path is relative.
8168 INSTALL="$ac_install_sh"
8169 fi
8170 fi
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8172 $as_echo "$INSTALL" >&6; }
8173
8174 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8175 # It thinks the first close brace ends the variable substitution.
8176 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8177
8178 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8179
8180
8181 # See if cmp has --ignore-initial.
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8183 $as_echo_n "checking for cmp's capabilities... " >&6; }
8184 if ${gcc_cv_prog_cmp_skip+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 echo abfoo >t1
8188 echo cdfoo >t2
8189 gcc_cv_prog_cmp_skip=slowcompare
8190 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8191 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8192 :
8193 else
8194 gcc_cv_prog_cmp_skip=gnucompare
8195 fi
8196 fi
8197 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8198 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8199 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8200 :
8201 else
8202 gcc_cv_prog_cmp_skip=fastcompare
8203 fi
8204 fi
8205 fi
8206 rm t1 t2
8207
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8210 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8211 make_compare_target=$gcc_cv_prog_cmp_skip
8212
8213
8214
8215 # See if we have the mktemp command.
8216 # Extract the first word of "mktemp", so it can be a program name with args.
8217 set dummy mktemp; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 if test -n "$have_mktemp_command"; then
8224 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8233 ac_cv_prog_have_mktemp_command="yes"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237 done
8238 done
8239 IFS=$as_save_IFS
8240
8241 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8242 fi
8243 fi
8244 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8245 if test -n "$have_mktemp_command"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8247 $as_echo "$have_mktemp_command" >&6; }
8248 else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8251 fi
8252
8253
8254
8255 # See if makeinfo has been installed and is modern enough
8256 # that we can use it.
8257
8258 # Extract the first word of "makeinfo", so it can be a program name with args.
8259 set dummy makeinfo; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if ${ac_cv_prog_MAKEINFO+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 if test -n "$MAKEINFO"; then
8266 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8267 else
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271 IFS=$as_save_IFS
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8275 ac_cv_prog_MAKEINFO="makeinfo"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 break 2
8278 fi
8279 done
8280 done
8281 IFS=$as_save_IFS
8282
8283 fi
8284 fi
8285 MAKEINFO=$ac_cv_prog_MAKEINFO
8286 if test -n "$MAKEINFO"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8288 $as_echo "$MAKEINFO" >&6; }
8289 else
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8292 fi
8293
8294
8295 if test -n "$MAKEINFO"; then
8296 # Found it, now check the version.
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8298 $as_echo_n "checking for modern makeinfo... " >&6; }
8299 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8303 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8304
8305 case $ac_prog_version in
8306 '') gcc_cv_prog_makeinfo_modern=no;;
8307 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8308 *) gcc_cv_prog_makeinfo_modern=no;;
8309 esac
8310
8311 fi
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8313 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8314 else
8315 gcc_cv_prog_makeinfo_modern=no
8316 fi
8317 if test $gcc_cv_prog_makeinfo_modern = no; then
8318 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8319 fi
8320
8321 if test $gcc_cv_prog_makeinfo_modern = no; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8323 *** Makeinfo is missing or too old.
8324 *** Info documentation will not be built." >&5
8325 $as_echo "$as_me: WARNING:
8326 *** Makeinfo is missing or too old.
8327 *** Info documentation will not be built." >&2;}
8328 BUILD_INFO=
8329 else
8330 BUILD_INFO=info
8331 fi
8332
8333
8334 # Is pod2man recent enough to regenerate manpages?
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8336 $as_echo_n "checking for recent Pod::Man... " >&6; }
8337 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8339 $as_echo "yes" >&6; }
8340 GENERATED_MANPAGES=generated-manpages
8341 else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8344 GENERATED_MANPAGES=
8345 fi
8346
8347
8348 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8349
8350 # How about lex?
8351 for ac_prog in flex
8352 do
8353 # Extract the first word of "$ac_prog", so it can be a program name with args.
8354 set dummy $ac_prog; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if ${ac_cv_prog_FLEX+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 if test -n "$FLEX"; then
8361 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_FLEX="$ac_prog"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8373 fi
8374 done
8375 done
8376 IFS=$as_save_IFS
8377
8378 fi
8379 fi
8380 FLEX=$ac_cv_prog_FLEX
8381 if test -n "$FLEX"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8383 $as_echo "$FLEX" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8387 fi
8388
8389
8390 test -n "$FLEX" && break
8391 done
8392 test -n "$FLEX" || FLEX="$MISSING flex"
8393
8394
8395 # Bison?
8396 for ac_prog in bison
8397 do
8398 # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401 $as_echo_n "checking for $ac_word... " >&6; }
8402 if ${ac_cv_prog_BISON+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 if test -n "$BISON"; then
8406 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8407 else
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH
8410 do
8411 IFS=$as_save_IFS
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8415 ac_cv_prog_BISON="$ac_prog"
8416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 break 2
8418 fi
8419 done
8420 done
8421 IFS=$as_save_IFS
8422
8423 fi
8424 fi
8425 BISON=$ac_cv_prog_BISON
8426 if test -n "$BISON"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8428 $as_echo "$BISON" >&6; }
8429 else
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8432 fi
8433
8434
8435 test -n "$BISON" && break
8436 done
8437 test -n "$BISON" || BISON="$MISSING bison"
8438
8439
8440 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8441 # check for build == host before using them.
8442
8443 # NM
8444 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8445 && test -d ../binutils ; then
8446 NM='${objdir}/../binutils/nm-new'
8447 else
8448 # Extract the first word of "nm", so it can be a program name with args.
8449 set dummy nm; ac_word=$2
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451 $as_echo_n "checking for $ac_word... " >&6; }
8452 if ${ac_cv_prog_NM+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 if test -n "$NM"; then
8456 ac_cv_prog_NM="$NM" # Let the user override the test.
8457 else
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8460 do
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8465 ac_cv_prog_NM="nm"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8468 fi
8469 done
8470 done
8471 IFS=$as_save_IFS
8472
8473 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8474 fi
8475 fi
8476 NM=$ac_cv_prog_NM
8477 if test -n "$NM"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8479 $as_echo "$NM" >&6; }
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8483 fi
8484
8485
8486 fi
8487
8488 # AR
8489 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8490 && test -d ../binutils ; then
8491 AR='${objdir}/../binutils/ar'
8492 else
8493 # Extract the first word of "ar", so it can be a program name with args.
8494 set dummy ar; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if ${ac_cv_prog_AR+:} false; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 if test -n "$AR"; then
8501 ac_cv_prog_AR="$AR" # Let the user override the test.
8502 else
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 for as_dir in $PATH
8505 do
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8510 ac_cv_prog_AR="ar"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8513 fi
8514 done
8515 done
8516 IFS=$as_save_IFS
8517
8518 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8519 fi
8520 fi
8521 AR=$ac_cv_prog_AR
8522 if test -n "$AR"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8524 $as_echo "$AR" >&6; }
8525 else
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527 $as_echo "no" >&6; }
8528 fi
8529
8530
8531 fi
8532
8533 # The jit documentation looks better if built with sphinx, but can be
8534 # built with texinfo if sphinx is not available.
8535 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8536 # Extract the first word of "sphinx-build", so it can be a program name with args.
8537 set dummy sphinx-build; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if ${ac_cv_prog_doc_build_sys+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 if test -n "$doc_build_sys"; then
8544 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8545 else
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8548 do
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553 ac_cv_prog_doc_build_sys="sphinx"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 break 2
8556 fi
8557 done
8558 done
8559 IFS=$as_save_IFS
8560
8561 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8562 fi
8563 fi
8564 doc_build_sys=$ac_cv_prog_doc_build_sys
8565 if test -n "$doc_build_sys"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8567 $as_echo "$doc_build_sys" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8571 fi
8572
8573
8574
8575 # --------------------
8576 # Checks for C headers
8577 # --------------------
8578
8579 # Need to reject headers which give warnings, so that the -Werror bootstrap
8580 # works later. *sigh* This needs to come before all header checks.
8581
8582 ac_c_preproc_warn_flag=yes
8583
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8585 $as_echo_n "checking for ANSI C header files... " >&6; }
8586 if ${ac_cv_header_stdc+:} false; then :
8587 $as_echo_n "(cached) " >&6
8588 else
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591 #include <stdlib.h>
8592 #include <stdarg.h>
8593 #include <string.h>
8594 #include <float.h>
8595
8596 int
8597 main ()
8598 {
8599
8600 ;
8601 return 0;
8602 }
8603 _ACEOF
8604 if ac_fn_cxx_try_compile "$LINENO"; then :
8605 ac_cv_header_stdc=yes
8606 else
8607 ac_cv_header_stdc=no
8608 fi
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610
8611 if test $ac_cv_header_stdc = yes; then
8612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 #include <string.h>
8616
8617 _ACEOF
8618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8619 $EGREP "memchr" >/dev/null 2>&1; then :
8620
8621 else
8622 ac_cv_header_stdc=no
8623 fi
8624 rm -f conftest*
8625
8626 fi
8627
8628 if test $ac_cv_header_stdc = yes; then
8629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 #include <stdlib.h>
8633
8634 _ACEOF
8635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8636 $EGREP "free" >/dev/null 2>&1; then :
8637
8638 else
8639 ac_cv_header_stdc=no
8640 fi
8641 rm -f conftest*
8642
8643 fi
8644
8645 if test $ac_cv_header_stdc = yes; then
8646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8647 if test "$cross_compiling" = yes; then :
8648 :
8649 else
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652 #include <ctype.h>
8653 #include <stdlib.h>
8654 #if ((' ' & 0x0FF) == 0x020)
8655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8657 #else
8658 # define ISLOWER(c) \
8659 (('a' <= (c) && (c) <= 'i') \
8660 || ('j' <= (c) && (c) <= 'r') \
8661 || ('s' <= (c) && (c) <= 'z'))
8662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8663 #endif
8664
8665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8666 int
8667 main ()
8668 {
8669 int i;
8670 for (i = 0; i < 256; i++)
8671 if (XOR (islower (i), ISLOWER (i))
8672 || toupper (i) != TOUPPER (i))
8673 return 2;
8674 return 0;
8675 }
8676 _ACEOF
8677 if ac_fn_cxx_try_run "$LINENO"; then :
8678
8679 else
8680 ac_cv_header_stdc=no
8681 fi
8682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8683 conftest.$ac_objext conftest.beam conftest.$ac_ext
8684 fi
8685
8686 fi
8687 fi
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8689 $as_echo "$ac_cv_header_stdc" >&6; }
8690 if test $ac_cv_header_stdc = yes; then
8691
8692 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8693
8694 fi
8695
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8697 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8698 if ${ac_cv_header_time+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 #include <sys/types.h>
8704 #include <sys/time.h>
8705 #include <time.h>
8706
8707 int
8708 main ()
8709 {
8710 if ((struct tm *) 0)
8711 return 0;
8712 ;
8713 return 0;
8714 }
8715 _ACEOF
8716 if ac_fn_cxx_try_compile "$LINENO"; then :
8717 ac_cv_header_time=yes
8718 else
8719 ac_cv_header_time=no
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8724 $as_echo "$ac_cv_header_time" >&6; }
8725 if test $ac_cv_header_time = yes; then
8726
8727 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8728
8729 fi
8730
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8732 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8733 if ${gcc_cv_header_string+:} false; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737 /* end confdefs.h. */
8738 #include <string.h>
8739 #include <strings.h>
8740 int
8741 main ()
8742 {
8743
8744 ;
8745 return 0;
8746 }
8747 _ACEOF
8748 if ac_fn_cxx_try_compile "$LINENO"; then :
8749 gcc_cv_header_string=yes
8750 else
8751 gcc_cv_header_string=no
8752 fi
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8756 $as_echo "$gcc_cv_header_string" >&6; }
8757 if test $gcc_cv_header_string = yes; then
8758
8759 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8760
8761 fi
8762
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8764 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8765 if ${ac_cv_header_sys_wait_h+:} false; then :
8766 $as_echo_n "(cached) " >&6
8767 else
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8770 #include <sys/types.h>
8771 #include <sys/wait.h>
8772 #ifndef WEXITSTATUS
8773 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8774 #endif
8775 #ifndef WIFEXITED
8776 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8777 #endif
8778
8779 int
8780 main ()
8781 {
8782 int s;
8783 wait (&s);
8784 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8785 ;
8786 return 0;
8787 }
8788 _ACEOF
8789 if ac_fn_cxx_try_compile "$LINENO"; then :
8790 ac_cv_header_sys_wait_h=yes
8791 else
8792 ac_cv_header_sys_wait_h=no
8793 fi
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795 fi
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8797 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8798 if test $ac_cv_header_sys_wait_h = yes; then
8799
8800 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8801
8802 fi
8803
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8805 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8806 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8811 #include <sys/types.h>
8812 #include <termios.h>
8813 #ifdef TIOCGWINSZ
8814 yes
8815 #endif
8816
8817 _ACEOF
8818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8819 $EGREP "yes" >/dev/null 2>&1; then :
8820 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8821 else
8822 ac_cv_sys_tiocgwinsz_in_termios_h=no
8823 fi
8824 rm -f conftest*
8825
8826 fi
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8828 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8829
8830 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8832 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8833 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 #include <sys/types.h>
8839 #include <sys/ioctl.h>
8840 #ifdef TIOCGWINSZ
8841 yes
8842 #endif
8843
8844 _ACEOF
8845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8846 $EGREP "yes" >/dev/null 2>&1; then :
8847 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8848 else
8849 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8850 fi
8851 rm -f conftest*
8852
8853 fi
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8855 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8856
8857 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8858
8859 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8860
8861 fi
8862 fi
8863
8864 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8865 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8866 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8867 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8868 do :
8869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8870 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8872 cat >>confdefs.h <<_ACEOF
8873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8874 _ACEOF
8875
8876 fi
8877 done
8878
8879
8880 # Check for thread headers.
8881 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8882 if test "x$ac_cv_header_thread_h" = xyes; then :
8883 have_thread_h=yes
8884 else
8885 have_thread_h=
8886 fi
8887
8888 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8889 if test "x$ac_cv_header_pthread_h" = xyes; then :
8890 have_pthread_h=yes
8891 else
8892 have_pthread_h=
8893 fi
8894
8895
8896 # These tests can't be done till we know if we have limits.h.
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8898 $as_echo_n "checking for CHAR_BIT... " >&6; }
8899 if ${gcc_cv_decl_char_bit+:} false; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8904 #ifdef HAVE_LIMITS_H
8905 #include <limits.h>
8906 #endif
8907 #ifdef CHAR_BIT
8908 found
8909 #endif
8910 _ACEOF
8911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8912 $EGREP "found" >/dev/null 2>&1; then :
8913 gcc_cv_decl_char_bit=yes
8914 else
8915 gcc_cv_decl_char_bit=no
8916 fi
8917 rm -f conftest*
8918
8919
8920 fi
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8922 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8923 if test $gcc_cv_decl_char_bit = no; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8925 $as_echo_n "checking number of bits in a byte... " >&6; }
8926 if ${gcc_cv_c_nbby+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 i=8
8930 gcc_cv_c_nbby=
8931 while test $i -lt 65; do
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8934
8935 int
8936 main ()
8937 {
8938 switch(0) {
8939 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8940 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8941 ; }
8942 ;
8943 return 0;
8944 }
8945 _ACEOF
8946 if ac_fn_cxx_try_compile "$LINENO"; then :
8947 gcc_cv_c_nbby=$i; break
8948 fi
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 i=`expr $i + 1`
8951 done
8952 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8953
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8956 $as_echo "$gcc_cv_c_nbby" >&6; }
8957 if test $gcc_cv_c_nbby = failed; then
8958 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
8959 else
8960
8961 cat >>confdefs.h <<_ACEOF
8962 #define CHAR_BIT $gcc_cv_c_nbby
8963 _ACEOF
8964
8965 fi
8966 fi
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8968 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8969 if ${ac_cv_c_bigendian+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 ac_cv_c_bigendian=unknown
8973 # See if we're dealing with a universal compiler.
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8976 #ifndef __APPLE_CC__
8977 not a universal capable compiler
8978 #endif
8979 typedef int dummy;
8980
8981 _ACEOF
8982 if ac_fn_cxx_try_compile "$LINENO"; then :
8983
8984 # Check for potential -arch flags. It is not universal unless
8985 # there are at least two -arch flags with different values.
8986 ac_arch=
8987 ac_prev=
8988 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8989 if test -n "$ac_prev"; then
8990 case $ac_word in
8991 i?86 | x86_64 | ppc | ppc64)
8992 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8993 ac_arch=$ac_word
8994 else
8995 ac_cv_c_bigendian=universal
8996 break
8997 fi
8998 ;;
8999 esac
9000 ac_prev=
9001 elif test "x$ac_word" = "x-arch"; then
9002 ac_prev=arch
9003 fi
9004 done
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 if test $ac_cv_c_bigendian = unknown; then
9008 # See if sys/param.h defines the BYTE_ORDER macro.
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011 #include <sys/types.h>
9012 #include <sys/param.h>
9013
9014 int
9015 main ()
9016 {
9017 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9018 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9019 && LITTLE_ENDIAN)
9020 bogus endian macros
9021 #endif
9022
9023 ;
9024 return 0;
9025 }
9026 _ACEOF
9027 if ac_fn_cxx_try_compile "$LINENO"; then :
9028 # It does; now see whether it defined to BIG_ENDIAN or not.
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9031 #include <sys/types.h>
9032 #include <sys/param.h>
9033
9034 int
9035 main ()
9036 {
9037 #if BYTE_ORDER != BIG_ENDIAN
9038 not big endian
9039 #endif
9040
9041 ;
9042 return 0;
9043 }
9044 _ACEOF
9045 if ac_fn_cxx_try_compile "$LINENO"; then :
9046 ac_cv_c_bigendian=yes
9047 else
9048 ac_cv_c_bigendian=no
9049 fi
9050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051 fi
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 fi
9054 if test $ac_cv_c_bigendian = unknown; then
9055 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058 #include <limits.h>
9059
9060 int
9061 main ()
9062 {
9063 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9064 bogus endian macros
9065 #endif
9066
9067 ;
9068 return 0;
9069 }
9070 _ACEOF
9071 if ac_fn_cxx_try_compile "$LINENO"; then :
9072 # It does; now see whether it defined to _BIG_ENDIAN or not.
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075 #include <limits.h>
9076
9077 int
9078 main ()
9079 {
9080 #ifndef _BIG_ENDIAN
9081 not big endian
9082 #endif
9083
9084 ;
9085 return 0;
9086 }
9087 _ACEOF
9088 if ac_fn_cxx_try_compile "$LINENO"; then :
9089 ac_cv_c_bigendian=yes
9090 else
9091 ac_cv_c_bigendian=no
9092 fi
9093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094 fi
9095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 fi
9097 if test $ac_cv_c_bigendian = unknown; then
9098 # Compile a test program.
9099 if test "$cross_compiling" = yes; then :
9100 # Try to guess by grepping values from an object file.
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9103 short int ascii_mm[] =
9104 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9105 short int ascii_ii[] =
9106 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9107 int use_ascii (int i) {
9108 return ascii_mm[i] + ascii_ii[i];
9109 }
9110 short int ebcdic_ii[] =
9111 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9112 short int ebcdic_mm[] =
9113 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9114 int use_ebcdic (int i) {
9115 return ebcdic_mm[i] + ebcdic_ii[i];
9116 }
9117 extern int foo;
9118
9119 int
9120 main ()
9121 {
9122 return use_ascii (foo) == use_ebcdic (foo);
9123 ;
9124 return 0;
9125 }
9126 _ACEOF
9127 if ac_fn_cxx_try_compile "$LINENO"; then :
9128 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9129 ac_cv_c_bigendian=yes
9130 fi
9131 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9132 if test "$ac_cv_c_bigendian" = unknown; then
9133 ac_cv_c_bigendian=no
9134 else
9135 # finding both strings is unlikely to happen, but who knows?
9136 ac_cv_c_bigendian=unknown
9137 fi
9138 fi
9139 fi
9140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9141 else
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 $ac_includes_default
9145 int
9146 main ()
9147 {
9148
9149 /* Are we little or big endian? From Harbison&Steele. */
9150 union
9151 {
9152 long int l;
9153 char c[sizeof (long int)];
9154 } u;
9155 u.l = 1;
9156 return u.c[sizeof (long int) - 1] == 1;
9157
9158 ;
9159 return 0;
9160 }
9161 _ACEOF
9162 if ac_fn_cxx_try_run "$LINENO"; then :
9163 ac_cv_c_bigendian=no
9164 else
9165 ac_cv_c_bigendian=yes
9166 fi
9167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9168 conftest.$ac_objext conftest.beam conftest.$ac_ext
9169 fi
9170
9171 fi
9172 fi
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9174 $as_echo "$ac_cv_c_bigendian" >&6; }
9175 case $ac_cv_c_bigendian in #(
9176 yes)
9177 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9178 ;; #(
9179 no)
9180 ;; #(
9181 universal)
9182
9183 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9184
9185 ;; #(
9186 *)
9187 as_fn_error $? "unknown endianness
9188 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9189 esac
9190
9191
9192 # ----------------------
9193 # Checks for C++ headers
9194 # ----------------------
9195
9196 ac_ext=cpp
9197 ac_cpp='$CXXCPP $CPPFLAGS'
9198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9202 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9203 if test -z "$CXXCPP"; then
9204 if ${ac_cv_prog_CXXCPP+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 # Double quotes because CXXCPP needs to be expanded
9208 for CXXCPP in "$CXX -E" "/lib/cpp"
9209 do
9210 ac_preproc_ok=false
9211 for ac_cxx_preproc_warn_flag in '' yes
9212 do
9213 # Use a header file that comes with gcc, so configuring glibc
9214 # with a fresh cross-compiler works.
9215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9216 # <limits.h> exists even on freestanding compilers.
9217 # On the NeXT, cc -E runs the code through the compiler's parser,
9218 # not just through cpp. "Syntax error" is here to catch this case.
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221 #ifdef __STDC__
9222 # include <limits.h>
9223 #else
9224 # include <assert.h>
9225 #endif
9226 Syntax error
9227 _ACEOF
9228 if ac_fn_cxx_try_cpp "$LINENO"; then :
9229
9230 else
9231 # Broken: fails on valid input.
9232 continue
9233 fi
9234 rm -f conftest.err conftest.i conftest.$ac_ext
9235
9236 # OK, works on sane cases. Now check whether nonexistent headers
9237 # can be detected and how.
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 #include <ac_nonexistent.h>
9241 _ACEOF
9242 if ac_fn_cxx_try_cpp "$LINENO"; then :
9243 # Broken: success on invalid input.
9244 continue
9245 else
9246 # Passes both tests.
9247 ac_preproc_ok=:
9248 break
9249 fi
9250 rm -f conftest.err conftest.i conftest.$ac_ext
9251
9252 done
9253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9254 rm -f conftest.i conftest.err conftest.$ac_ext
9255 if $ac_preproc_ok; then :
9256 break
9257 fi
9258
9259 done
9260 ac_cv_prog_CXXCPP=$CXXCPP
9261
9262 fi
9263 CXXCPP=$ac_cv_prog_CXXCPP
9264 else
9265 ac_cv_prog_CXXCPP=$CXXCPP
9266 fi
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9268 $as_echo "$CXXCPP" >&6; }
9269 ac_preproc_ok=false
9270 for ac_cxx_preproc_warn_flag in '' yes
9271 do
9272 # Use a header file that comes with gcc, so configuring glibc
9273 # with a fresh cross-compiler works.
9274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9275 # <limits.h> exists even on freestanding compilers.
9276 # On the NeXT, cc -E runs the code through the compiler's parser,
9277 # not just through cpp. "Syntax error" is here to catch this case.
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280 #ifdef __STDC__
9281 # include <limits.h>
9282 #else
9283 # include <assert.h>
9284 #endif
9285 Syntax error
9286 _ACEOF
9287 if ac_fn_cxx_try_cpp "$LINENO"; then :
9288
9289 else
9290 # Broken: fails on valid input.
9291 continue
9292 fi
9293 rm -f conftest.err conftest.i conftest.$ac_ext
9294
9295 # OK, works on sane cases. Now check whether nonexistent headers
9296 # can be detected and how.
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <ac_nonexistent.h>
9300 _ACEOF
9301 if ac_fn_cxx_try_cpp "$LINENO"; then :
9302 # Broken: success on invalid input.
9303 continue
9304 else
9305 # Passes both tests.
9306 ac_preproc_ok=:
9307 break
9308 fi
9309 rm -f conftest.err conftest.i conftest.$ac_ext
9310
9311 done
9312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9313 rm -f conftest.i conftest.err conftest.$ac_ext
9314 if $ac_preproc_ok; then :
9315
9316 else
9317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9320 See \`config.log' for more details" >&5
9321 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9322 See \`config.log' for more details" >&2;}; }
9323 fi
9324
9325 ac_ext=cpp
9326 ac_cpp='$CXXCPP $CPPFLAGS'
9327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9330
9331
9332 for ac_header in unordered_map
9333 do :
9334 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9335 if test "x$ac_cv_header_unordered_map" = xyes; then :
9336 cat >>confdefs.h <<_ACEOF
9337 #define HAVE_UNORDERED_MAP 1
9338 _ACEOF
9339
9340 fi
9341 done
9342
9343 for ac_header in tr1/unordered_map
9344 do :
9345 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9346 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9347 cat >>confdefs.h <<_ACEOF
9348 #define HAVE_TR1_UNORDERED_MAP 1
9349 _ACEOF
9350
9351 fi
9352 done
9353
9354 for ac_header in ext/hash_map
9355 do :
9356 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9357 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9358 cat >>confdefs.h <<_ACEOF
9359 #define HAVE_EXT_HASH_MAP 1
9360 _ACEOF
9361
9362 fi
9363 done
9364
9365
9366 # --------
9367 # Dependency checking.
9368 # --------
9369
9370 rm -rf .tst 2>/dev/null
9371 mkdir .tst 2>/dev/null
9372 if test -d .tst; then
9373 am__leading_dot=.
9374 else
9375 am__leading_dot=_
9376 fi
9377 rmdir .tst 2>/dev/null
9378
9379 DEPDIR="${am__leading_dot}deps"
9380
9381 ac_config_commands="$ac_config_commands depdir"
9382
9383
9384 ac_config_commands="$ac_config_commands gccdepdir"
9385
9386
9387 depcc="$CXX" am_compiler_list=
9388
9389 am_depcomp=$ac_aux_dir/depcomp
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9391 $as_echo_n "checking dependency style of $depcc... " >&6; }
9392 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 if test -f "$am_depcomp"; then
9396 # We make a subdir and do the tests there. Otherwise we can end up
9397 # making bogus files that we don't know about and never remove. For
9398 # instance it was reported that on HP-UX the gcc test will end up
9399 # making a dummy file named `D' -- because `-MD' means `put the output
9400 # in D'.
9401 mkdir conftest.dir
9402 # Copy depcomp to subdir because otherwise we won't find it if we're
9403 # using a relative directory.
9404 cp "$am_depcomp" conftest.dir
9405 cd conftest.dir
9406 # We will build objects and dependencies in a subdirectory because
9407 # it helps to detect inapplicable dependency modes. For instance
9408 # both Tru64's cc and ICC support -MD to output dependencies as a
9409 # side effect of compilation, but ICC will put the dependencies in
9410 # the current directory while Tru64 will put them in the object
9411 # directory.
9412 mkdir sub
9413
9414 am_cv_CXX_dependencies_compiler_type=none
9415 if test "$am_compiler_list" = ""; then
9416 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9417 fi
9418 for depmode in $am_compiler_list; do
9419 if test $depmode = none; then break; fi
9420
9421 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9422 # Setup a source with many dependencies, because some compilers
9423 # like to wrap large dependency lists on column 80 (with \), and
9424 # we should not choose a depcomp mode which is confused by this.
9425 #
9426 # We need to recreate these files for each test, as the compiler may
9427 # overwrite some of them when testing with obscure command lines.
9428 # This happens at least with the AIX C compiler.
9429 : > sub/conftest.c
9430 for i in 1 2 3 4 5 6; do
9431 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9432 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9433 # Solaris 8's {/usr,}/bin/sh.
9434 touch sub/conftst$i.h
9435 done
9436 echo "include sub/conftest.Po" > confmf
9437
9438 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9439 # mode. It turns out that the SunPro C++ compiler does not properly
9440 # handle `-M -o', and we need to detect this.
9441 depcmd="depmode=$depmode \
9442 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9443 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9444 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9445 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9446 if env $depcmd > conftest.err 2>&1 &&
9447 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9448 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9449 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9450 # icc doesn't choke on unknown options, it will just issue warnings
9451 # or remarks (even with -Werror). So we grep stderr for any message
9452 # that says an option was ignored or not supported.
9453 # When given -MP, icc 7.0 and 7.1 complain thusly:
9454 # icc: Command line warning: ignoring option '-M'; no argument required
9455 # The diagnosis changed in icc 8.0:
9456 # icc: Command line remark: option '-MP' not supported
9457 if (grep 'ignoring option' conftest.err ||
9458 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9459 am_cv_CXX_dependencies_compiler_type=$depmode
9460 $as_echo "$as_me:$LINENO: success" >&5
9461 break
9462 fi
9463 fi
9464 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9465 sed -e 's/^/| /' < conftest.err >&5
9466 done
9467
9468 cd ..
9469 rm -rf conftest.dir
9470 else
9471 am_cv_CXX_dependencies_compiler_type=none
9472 fi
9473
9474 fi
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9476 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9477 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9478 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9479 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9480
9481 fi
9482
9483
9484 # --------
9485 # UNSORTED
9486 # --------
9487
9488
9489 # These libraries may be used by collect2.
9490 # We may need a special search path to get them linked.
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9492 $as_echo_n "checking for collect2 libraries... " >&6; }
9493 if ${gcc_cv_collect2_libs+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 save_LIBS="$LIBS"
9497 for libs in '' -lld -lmld \
9498 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9499 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9500 do
9501 LIBS="$libs"
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504
9505 /* Override any GCC internal prototype to avoid an error.
9506 Use char because int might match the return type of a GCC
9507 builtin and then its argument prototype would still apply. */
9508 #ifdef __cplusplus
9509 extern "C"
9510 #endif
9511 char ldopen ();
9512 int
9513 main ()
9514 {
9515 return ldopen ();
9516 ;
9517 return 0;
9518 }
9519 _ACEOF
9520 if ac_fn_cxx_try_link "$LINENO"; then :
9521 gcc_cv_collect2_libs="$libs"; break
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
9525 done
9526 LIBS="$save_LIBS"
9527 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9528 fi
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9530 $as_echo "$gcc_cv_collect2_libs" >&6; }
9531 case $gcc_cv_collect2_libs in
9532 "none required") ;;
9533 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9534 esac
9535
9536
9537 # When building Ada code on Alpha, we need exc_resume which is usually in
9538 # -lexc. So test for it.
9539 save_LIBS="$LIBS"
9540 LIBS=
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9542 $as_echo_n "checking for library containing exc_resume... " >&6; }
9543 if ${ac_cv_search_exc_resume+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 ac_func_search_save_LIBS=$LIBS
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549
9550 /* Override any GCC internal prototype to avoid an error.
9551 Use char because int might match the return type of a GCC
9552 builtin and then its argument prototype would still apply. */
9553 #ifdef __cplusplus
9554 extern "C"
9555 #endif
9556 char exc_resume ();
9557 int
9558 main ()
9559 {
9560 return exc_resume ();
9561 ;
9562 return 0;
9563 }
9564 _ACEOF
9565 for ac_lib in '' exc; do
9566 if test -z "$ac_lib"; then
9567 ac_res="none required"
9568 else
9569 ac_res=-l$ac_lib
9570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9571 fi
9572 if ac_fn_cxx_try_link "$LINENO"; then :
9573 ac_cv_search_exc_resume=$ac_res
9574 fi
9575 rm -f core conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext
9577 if ${ac_cv_search_exc_resume+:} false; then :
9578 break
9579 fi
9580 done
9581 if ${ac_cv_search_exc_resume+:} false; then :
9582
9583 else
9584 ac_cv_search_exc_resume=no
9585 fi
9586 rm conftest.$ac_ext
9587 LIBS=$ac_func_search_save_LIBS
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9590 $as_echo "$ac_cv_search_exc_resume" >&6; }
9591 ac_res=$ac_cv_search_exc_resume
9592 if test "$ac_res" != no; then :
9593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9594
9595 fi
9596
9597 GNAT_LIBEXC="$LIBS"
9598 LIBS="$save_LIBS"
9599
9600
9601 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9602 save_LIBS="$LIBS"
9603 LIBS=
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9605 $as_echo_n "checking for library containing kstat_open... " >&6; }
9606 if ${ac_cv_search_kstat_open+:} false; then :
9607 $as_echo_n "(cached) " >&6
9608 else
9609 ac_func_search_save_LIBS=$LIBS
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612
9613 /* Override any GCC internal prototype to avoid an error.
9614 Use char because int might match the return type of a GCC
9615 builtin and then its argument prototype would still apply. */
9616 #ifdef __cplusplus
9617 extern "C"
9618 #endif
9619 char kstat_open ();
9620 int
9621 main ()
9622 {
9623 return kstat_open ();
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 for ac_lib in '' kstat; do
9629 if test -z "$ac_lib"; then
9630 ac_res="none required"
9631 else
9632 ac_res=-l$ac_lib
9633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9634 fi
9635 if ac_fn_cxx_try_link "$LINENO"; then :
9636 ac_cv_search_kstat_open=$ac_res
9637 fi
9638 rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext
9640 if ${ac_cv_search_kstat_open+:} false; then :
9641 break
9642 fi
9643 done
9644 if ${ac_cv_search_kstat_open+:} false; then :
9645
9646 else
9647 ac_cv_search_kstat_open=no
9648 fi
9649 rm conftest.$ac_ext
9650 LIBS=$ac_func_search_save_LIBS
9651 fi
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9653 $as_echo "$ac_cv_search_kstat_open" >&6; }
9654 ac_res=$ac_cv_search_kstat_open
9655 if test "$ac_res" != no; then :
9656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9657
9658 fi
9659
9660 EXTRA_GCC_LIBS="$LIBS"
9661 LIBS="$save_LIBS"
9662
9663
9664 # Some systems put ldexp and frexp in libm instead of libc; assume
9665 # they're both in the same place. jcf-dump needs them.
9666 save_LIBS="$LIBS"
9667 LIBS=
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9669 $as_echo_n "checking for library containing ldexp... " >&6; }
9670 if ${ac_cv_search_ldexp+:} false; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 ac_func_search_save_LIBS=$LIBS
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 char ldexp ();
9684 int
9685 main ()
9686 {
9687 return ldexp ();
9688 ;
9689 return 0;
9690 }
9691 _ACEOF
9692 for ac_lib in '' m; do
9693 if test -z "$ac_lib"; then
9694 ac_res="none required"
9695 else
9696 ac_res=-l$ac_lib
9697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9698 fi
9699 if ac_fn_cxx_try_link "$LINENO"; then :
9700 ac_cv_search_ldexp=$ac_res
9701 fi
9702 rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext
9704 if ${ac_cv_search_ldexp+:} false; then :
9705 break
9706 fi
9707 done
9708 if ${ac_cv_search_ldexp+:} false; then :
9709
9710 else
9711 ac_cv_search_ldexp=no
9712 fi
9713 rm conftest.$ac_ext
9714 LIBS=$ac_func_search_save_LIBS
9715 fi
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9717 $as_echo "$ac_cv_search_ldexp" >&6; }
9718 ac_res=$ac_cv_search_ldexp
9719 if test "$ac_res" != no; then :
9720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9721
9722 fi
9723
9724 LDEXP_LIB="$LIBS"
9725 LIBS="$save_LIBS"
9726
9727
9728 # Use <inttypes.h> only if it exists,
9729 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9730 # PRId64
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9732 $as_echo_n "checking for inttypes.h... " >&6; }
9733 if ${gcc_cv_header_inttypes_h+:} false; then :
9734 $as_echo_n "(cached) " >&6
9735 else
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 #define __STDC_FORMAT_MACROS
9739 #include <sys/types.h>
9740 #include <inttypes.h>
9741 int
9742 main ()
9743 {
9744 intmax_t i = -1;
9745 #ifndef PRId64
9746 choke me
9747 #endif
9748 ;
9749 return 0;
9750 }
9751 _ACEOF
9752 if ac_fn_cxx_try_compile "$LINENO"; then :
9753 gcc_cv_header_inttypes_h=yes
9754 else
9755 gcc_cv_header_inttypes_h=no
9756 fi
9757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9758 fi
9759
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9761 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9762 if test $gcc_cv_header_inttypes_h = yes; then
9763
9764 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9765
9766 fi
9767
9768
9769
9770 for ac_func in times clock kill getrlimit setrlimit atoq \
9771 popen sysconf strsignal getrusage nl_langinfo \
9772 gettimeofday mbstowcs wcswidth mmap setlocale \
9773 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
9774 do :
9775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9776 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9777 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9778 cat >>confdefs.h <<_ACEOF
9779 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9780 _ACEOF
9781
9782 fi
9783 done
9784
9785
9786 if test x$ac_cv_func_mbstowcs = xyes; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9788 $as_echo_n "checking whether mbstowcs works... " >&6; }
9789 if ${gcc_cv_func_mbstowcs_works+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 if test "$cross_compiling" = yes; then :
9793 gcc_cv_func_mbstowcs_works=yes
9794 else
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9797 #include <stdlib.h>
9798 int main()
9799 {
9800 mbstowcs(0, "", 0);
9801 return 0;
9802 }
9803 _ACEOF
9804 if ac_fn_cxx_try_run "$LINENO"; then :
9805 gcc_cv_func_mbstowcs_works=yes
9806 else
9807 gcc_cv_func_mbstowcs_works=no
9808 fi
9809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9810 conftest.$ac_objext conftest.beam conftest.$ac_ext
9811 fi
9812
9813 fi
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9815 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9816 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9817
9818 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9819
9820 fi
9821 fi
9822
9823 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9824 if test "x$ac_cv_type_ssize_t" = xyes; then :
9825
9826 else
9827
9828 cat >>confdefs.h <<_ACEOF
9829 #define ssize_t int
9830 _ACEOF
9831
9832 fi
9833
9834 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9835 if test "x$ac_cv_type_caddr_t" = xyes; then :
9836
9837 else
9838
9839 cat >>confdefs.h <<_ACEOF
9840 #define caddr_t char *
9841 _ACEOF
9842
9843 fi
9844
9845
9846
9847 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9848 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
9849 gcc_header_sys_mman_h=yes
9850 else
9851 gcc_header_sys_mman_h=no
9852 fi
9853
9854 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9855 if test "x$ac_cv_func_mmap" = xyes; then :
9856 gcc_func_mmap=yes
9857 else
9858 gcc_func_mmap=no
9859 fi
9860
9861 if test "$gcc_header_sys_mman_h" != yes \
9862 || test "$gcc_func_mmap" != yes; then
9863 gcc_cv_func_mmap_file=no
9864 gcc_cv_func_mmap_dev_zero=no
9865 gcc_cv_func_mmap_anon=no
9866 else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9868 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9869 if ${gcc_cv_func_mmap_file+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 # Add a system to this blacklist if
9873 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9874 # memory area containing the same data that you'd get if you applied
9875 # read() to the same fd. The only system known to have a problem here
9876 # is VMS, where text files have record structure.
9877 case "$host_os" in
9878 *vms* | ultrix*)
9879 gcc_cv_func_mmap_file=no ;;
9880 *)
9881 gcc_cv_func_mmap_file=yes;;
9882 esac
9883 fi
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9885 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9887 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9888 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 # Add a system to this blacklist if it has mmap() but /dev/zero
9892 # does not exist, or if mmapping /dev/zero does not give anonymous
9893 # zeroed pages with both the following properties:
9894 # 1. If you map N consecutive pages in with one call, and then
9895 # unmap any subset of those pages, the pages that were not
9896 # explicitly unmapped remain accessible.
9897 # 2. If you map two adjacent blocks of memory and then unmap them
9898 # both at once, they must both go away.
9899 # Systems known to be in this category are Windows (all variants),
9900 # VMS, and Darwin.
9901 case "$host_os" in
9902 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9903 gcc_cv_func_mmap_dev_zero=no ;;
9904 *)
9905 gcc_cv_func_mmap_dev_zero=yes;;
9906 esac
9907 fi
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9909 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9910
9911 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9913 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9914 if ${gcc_cv_decl_map_anon+:} false; then :
9915 $as_echo_n "(cached) " >&6
9916 else
9917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918 /* end confdefs.h. */
9919 #include <sys/types.h>
9920 #include <sys/mman.h>
9921 #include <unistd.h>
9922
9923 #ifndef MAP_ANONYMOUS
9924 #define MAP_ANONYMOUS MAP_ANON
9925 #endif
9926
9927 int
9928 main ()
9929 {
9930 int n = MAP_ANONYMOUS;
9931 ;
9932 return 0;
9933 }
9934 _ACEOF
9935 if ac_fn_cxx_try_compile "$LINENO"; then :
9936 gcc_cv_decl_map_anon=yes
9937 else
9938 gcc_cv_decl_map_anon=no
9939 fi
9940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9941 fi
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9943 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9944
9945 if test $gcc_cv_decl_map_anon = no; then
9946 gcc_cv_func_mmap_anon=no
9947 else
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9949 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9950 if ${gcc_cv_func_mmap_anon+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9954 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9955 # doesn't give anonymous zeroed pages with the same properties listed
9956 # above for use of /dev/zero.
9957 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9958 case "$host_os" in
9959 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9960 gcc_cv_func_mmap_anon=no ;;
9961 *)
9962 gcc_cv_func_mmap_anon=yes;;
9963 esac
9964 fi
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9966 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9967 fi
9968 fi
9969
9970 if test $gcc_cv_func_mmap_file = yes; then
9971
9972 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9973
9974 fi
9975 if test $gcc_cv_func_mmap_dev_zero = yes; then
9976
9977 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9978
9979 fi
9980 if test $gcc_cv_func_mmap_anon = yes; then
9981
9982 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9983
9984 fi
9985
9986
9987 case "${host}" in
9988 *-*-*vms*)
9989 # Under VMS, vfork works very differently than on Unix. The standard test
9990 # won't work, and it isn't easily adaptable. It makes more sense to
9991 # just force it.
9992 ac_cv_func_vfork_works=yes
9993 ;;
9994 esac
9995 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9996 if test "x$ac_cv_type_pid_t" = xyes; then :
9997
9998 else
9999
10000 cat >>confdefs.h <<_ACEOF
10001 #define pid_t int
10002 _ACEOF
10003
10004 fi
10005
10006 for ac_header in vfork.h
10007 do :
10008 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10009 if test "x$ac_cv_header_vfork_h" = xyes; then :
10010 cat >>confdefs.h <<_ACEOF
10011 #define HAVE_VFORK_H 1
10012 _ACEOF
10013
10014 fi
10015 done
10016
10017 for ac_func in fork vfork
10018 do :
10019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10020 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10021 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10022 cat >>confdefs.h <<_ACEOF
10023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10024 _ACEOF
10025
10026 fi
10027 done
10028
10029 if test "x$ac_cv_func_fork" = xyes; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10031 $as_echo_n "checking for working fork... " >&6; }
10032 if ${ac_cv_func_fork_works+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 if test "$cross_compiling" = yes; then :
10036 ac_cv_func_fork_works=cross
10037 else
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040 $ac_includes_default
10041 int
10042 main ()
10043 {
10044
10045 /* By Ruediger Kuhlmann. */
10046 return fork () < 0;
10047
10048 ;
10049 return 0;
10050 }
10051 _ACEOF
10052 if ac_fn_cxx_try_run "$LINENO"; then :
10053 ac_cv_func_fork_works=yes
10054 else
10055 ac_cv_func_fork_works=no
10056 fi
10057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10058 conftest.$ac_objext conftest.beam conftest.$ac_ext
10059 fi
10060
10061 fi
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10063 $as_echo "$ac_cv_func_fork_works" >&6; }
10064
10065 else
10066 ac_cv_func_fork_works=$ac_cv_func_fork
10067 fi
10068 if test "x$ac_cv_func_fork_works" = xcross; then
10069 case $host in
10070 *-*-amigaos* | *-*-msdosdjgpp*)
10071 # Override, as these systems have only a dummy fork() stub
10072 ac_cv_func_fork_works=no
10073 ;;
10074 *)
10075 ac_cv_func_fork_works=yes
10076 ;;
10077 esac
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10079 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10080 fi
10081 ac_cv_func_vfork_works=$ac_cv_func_vfork
10082 if test "x$ac_cv_func_vfork" = xyes; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10084 $as_echo_n "checking for working vfork... " >&6; }
10085 if ${ac_cv_func_vfork_works+:} false; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 if test "$cross_compiling" = yes; then :
10089 ac_cv_func_vfork_works=cross
10090 else
10091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h. */
10093 /* Thanks to Paul Eggert for this test. */
10094 $ac_includes_default
10095 #include <sys/wait.h>
10096 #ifdef HAVE_VFORK_H
10097 # include <vfork.h>
10098 #endif
10099 /* On some sparc systems, changes by the child to local and incoming
10100 argument registers are propagated back to the parent. The compiler
10101 is told about this with #include <vfork.h>, but some compilers
10102 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10103 static variable whose address is put into a register that is
10104 clobbered by the vfork. */
10105 static void
10106 #ifdef __cplusplus
10107 sparc_address_test (int arg)
10108 # else
10109 sparc_address_test (arg) int arg;
10110 #endif
10111 {
10112 static pid_t child;
10113 if (!child) {
10114 child = vfork ();
10115 if (child < 0) {
10116 perror ("vfork");
10117 _exit(2);
10118 }
10119 if (!child) {
10120 arg = getpid();
10121 write(-1, "", 0);
10122 _exit (arg);
10123 }
10124 }
10125 }
10126
10127 int
10128 main ()
10129 {
10130 pid_t parent = getpid ();
10131 pid_t child;
10132
10133 sparc_address_test (0);
10134
10135 child = vfork ();
10136
10137 if (child == 0) {
10138 /* Here is another test for sparc vfork register problems. This
10139 test uses lots of local variables, at least as many local
10140 variables as main has allocated so far including compiler
10141 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10142 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10143 reuse the register of parent for one of the local variables,
10144 since it will think that parent can't possibly be used any more
10145 in this routine. Assigning to the local variable will thus
10146 munge parent in the parent process. */
10147 pid_t
10148 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10149 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10150 /* Convince the compiler that p..p7 are live; otherwise, it might
10151 use the same hardware register for all 8 local variables. */
10152 if (p != p1 || p != p2 || p != p3 || p != p4
10153 || p != p5 || p != p6 || p != p7)
10154 _exit(1);
10155
10156 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10157 from child file descriptors. If the child closes a descriptor
10158 before it execs or exits, this munges the parent's descriptor
10159 as well. Test for this by closing stdout in the child. */
10160 _exit(close(fileno(stdout)) != 0);
10161 } else {
10162 int status;
10163 struct stat st;
10164
10165 while (wait(&status) != child)
10166 ;
10167 return (
10168 /* Was there some problem with vforking? */
10169 child < 0
10170
10171 /* Did the child fail? (This shouldn't happen.) */
10172 || status
10173
10174 /* Did the vfork/compiler bug occur? */
10175 || parent != getpid()
10176
10177 /* Did the file descriptor bug occur? */
10178 || fstat(fileno(stdout), &st) != 0
10179 );
10180 }
10181 }
10182 _ACEOF
10183 if ac_fn_cxx_try_run "$LINENO"; then :
10184 ac_cv_func_vfork_works=yes
10185 else
10186 ac_cv_func_vfork_works=no
10187 fi
10188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10189 conftest.$ac_objext conftest.beam conftest.$ac_ext
10190 fi
10191
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10194 $as_echo "$ac_cv_func_vfork_works" >&6; }
10195
10196 fi;
10197 if test "x$ac_cv_func_fork_works" = xcross; then
10198 ac_cv_func_vfork_works=$ac_cv_func_vfork
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10200 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10201 fi
10202
10203 if test "x$ac_cv_func_vfork_works" = xyes; then
10204
10205 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10206
10207 else
10208
10209 $as_echo "#define vfork fork" >>confdefs.h
10210
10211 fi
10212 if test "x$ac_cv_func_fork_works" = xyes; then
10213
10214 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10215
10216 fi
10217
10218
10219
10220 if test "X$prefix" = "XNONE"; then
10221 acl_final_prefix="$ac_default_prefix"
10222 else
10223 acl_final_prefix="$prefix"
10224 fi
10225 if test "X$exec_prefix" = "XNONE"; then
10226 acl_final_exec_prefix='${prefix}'
10227 else
10228 acl_final_exec_prefix="$exec_prefix"
10229 fi
10230 acl_save_prefix="$prefix"
10231 prefix="$acl_final_prefix"
10232 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10233 prefix="$acl_save_prefix"
10234
10235
10236 # Check whether --with-gnu-ld was given.
10237 if test "${with_gnu_ld+set}" = set; then :
10238 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10239 else
10240 with_gnu_ld=no
10241 fi
10242
10243 # Prepare PATH_SEPARATOR.
10244 # The user is always right.
10245 if test "${PATH_SEPARATOR+set}" != set; then
10246 echo "#! /bin/sh" >conf$$.sh
10247 echo "exit 0" >>conf$$.sh
10248 chmod +x conf$$.sh
10249 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10250 PATH_SEPARATOR=';'
10251 else
10252 PATH_SEPARATOR=:
10253 fi
10254 rm -f conf$$.sh
10255 fi
10256 ac_prog=ld
10257 if test "$GCC" = yes; then
10258 # Check if gcc -print-prog-name=ld gives a path.
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10260 $as_echo_n "checking for ld used by GCC... " >&6; }
10261 case $host in
10262 *-*-mingw*)
10263 # gcc leaves a trailing carriage return which upsets mingw
10264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10265 *)
10266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10267 esac
10268 case $ac_prog in
10269 # Accept absolute paths.
10270 [\\/]* | [A-Za-z]:[\\/]*)
10271 re_direlt='/[^/][^/]*/\.\./'
10272 # Canonicalize the path of ld
10273 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10274 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10275 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10276 done
10277 test -z "$LD" && LD="$ac_prog"
10278 ;;
10279 "")
10280 # If it fails, then pretend we aren't using GCC.
10281 ac_prog=ld
10282 ;;
10283 *)
10284 # If it is relative, then search for the first ld in PATH.
10285 with_gnu_ld=unknown
10286 ;;
10287 esac
10288 elif test "$with_gnu_ld" = yes; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10290 $as_echo_n "checking for GNU ld... " >&6; }
10291 else
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10293 $as_echo_n "checking for non-GNU ld... " >&6; }
10294 fi
10295 if ${acl_cv_path_LD+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 if test -z "$LD"; then
10299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10300 for ac_dir in $PATH; do
10301 test -z "$ac_dir" && ac_dir=.
10302 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10303 acl_cv_path_LD="$ac_dir/$ac_prog"
10304 # Check to see if the program is GNU ld. I'd rather use --version,
10305 # but apparently some GNU ld's only accept -v.
10306 # Break only if it was the GNU/non-GNU ld that we prefer.
10307 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10308 test "$with_gnu_ld" != no && break
10309 else
10310 test "$with_gnu_ld" != yes && break
10311 fi
10312 fi
10313 done
10314 IFS="$ac_save_ifs"
10315 else
10316 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10317 fi
10318 fi
10319
10320 LD="$acl_cv_path_LD"
10321 if test -n "$LD"; then
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10323 $as_echo "$LD" >&6; }
10324 else
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326 $as_echo "no" >&6; }
10327 fi
10328 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10330 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10331 if ${acl_cv_prog_gnu_ld+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10335 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10336 acl_cv_prog_gnu_ld=yes
10337 else
10338 acl_cv_prog_gnu_ld=no
10339 fi
10340 fi
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10342 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10343 with_gnu_ld=$acl_cv_prog_gnu_ld
10344
10345
10346
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10348 $as_echo_n "checking for shared library run path origin... " >&6; }
10349 if ${acl_cv_rpath+:} false; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352
10353 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10354 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10355 . ./conftest.sh
10356 rm -f ./conftest.sh
10357 acl_cv_rpath=done
10358
10359 fi
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10361 $as_echo "$acl_cv_rpath" >&6; }
10362 wl="$acl_cv_wl"
10363 libext="$acl_cv_libext"
10364 shlibext="$acl_cv_shlibext"
10365 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10366 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10367 hardcode_direct="$acl_cv_hardcode_direct"
10368 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10369 # Check whether --enable-rpath was given.
10370 if test "${enable_rpath+set}" = set; then :
10371 enableval=$enable_rpath; :
10372 else
10373 enable_rpath=yes
10374 fi
10375
10376
10377
10378
10379
10380
10381
10382
10383 use_additional=yes
10384
10385 acl_save_prefix="$prefix"
10386 prefix="$acl_final_prefix"
10387 acl_save_exec_prefix="$exec_prefix"
10388 exec_prefix="$acl_final_exec_prefix"
10389
10390 eval additional_includedir=\"$includedir\"
10391 eval additional_libdir=\"$libdir\"
10392
10393 exec_prefix="$acl_save_exec_prefix"
10394 prefix="$acl_save_prefix"
10395
10396
10397 # Check whether --with-libiconv-prefix was given.
10398 if test "${with_libiconv_prefix+set}" = set; then :
10399 withval=$with_libiconv_prefix;
10400 if test "X$withval" = "Xno"; then
10401 use_additional=no
10402 else
10403 if test "X$withval" = "X"; then
10404
10405 acl_save_prefix="$prefix"
10406 prefix="$acl_final_prefix"
10407 acl_save_exec_prefix="$exec_prefix"
10408 exec_prefix="$acl_final_exec_prefix"
10409
10410 eval additional_includedir=\"$includedir\"
10411 eval additional_libdir=\"$libdir\"
10412
10413 exec_prefix="$acl_save_exec_prefix"
10414 prefix="$acl_save_prefix"
10415
10416 else
10417 additional_includedir="$withval/include"
10418 additional_libdir="$withval/lib"
10419 fi
10420 fi
10421
10422 fi
10423
10424 LIBICONV=
10425 LTLIBICONV=
10426 INCICONV=
10427 rpathdirs=
10428 ltrpathdirs=
10429 names_already_handled=
10430 names_next_round='iconv '
10431 while test -n "$names_next_round"; do
10432 names_this_round="$names_next_round"
10433 names_next_round=
10434 for name in $names_this_round; do
10435 already_handled=
10436 for n in $names_already_handled; do
10437 if test "$n" = "$name"; then
10438 already_handled=yes
10439 break
10440 fi
10441 done
10442 if test -z "$already_handled"; then
10443 names_already_handled="$names_already_handled $name"
10444 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10445 eval value=\"\$HAVE_LIB$uppername\"
10446 if test -n "$value"; then
10447 if test "$value" = yes; then
10448 eval value=\"\$LIB$uppername\"
10449 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10450 eval value=\"\$LTLIB$uppername\"
10451 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10452 else
10453 :
10454 fi
10455 else
10456 found_dir=
10457 found_la=
10458 found_so=
10459 found_a=
10460 if test $use_additional = yes; then
10461 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10462 found_dir="$additional_libdir"
10463 found_so="$additional_libdir/lib$name.$shlibext"
10464 if test -f "$additional_libdir/lib$name.la"; then
10465 found_la="$additional_libdir/lib$name.la"
10466 fi
10467 else
10468 if test -f "$additional_libdir/lib$name.$libext"; then
10469 found_dir="$additional_libdir"
10470 found_a="$additional_libdir/lib$name.$libext"
10471 if test -f "$additional_libdir/lib$name.la"; then
10472 found_la="$additional_libdir/lib$name.la"
10473 fi
10474 fi
10475 fi
10476 fi
10477 if test "X$found_dir" = "X"; then
10478 for x in $LDFLAGS $LTLIBICONV; do
10479
10480 acl_save_prefix="$prefix"
10481 prefix="$acl_final_prefix"
10482 acl_save_exec_prefix="$exec_prefix"
10483 exec_prefix="$acl_final_exec_prefix"
10484 eval x=\"$x\"
10485 exec_prefix="$acl_save_exec_prefix"
10486 prefix="$acl_save_prefix"
10487
10488 case "$x" in
10489 -L*)
10490 dir=`echo "X$x" | sed -e 's/^X-L//'`
10491 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10492 found_dir="$dir"
10493 found_so="$dir/lib$name.$shlibext"
10494 if test -f "$dir/lib$name.la"; then
10495 found_la="$dir/lib$name.la"
10496 fi
10497 else
10498 if test -f "$dir/lib$name.$libext"; then
10499 found_dir="$dir"
10500 found_a="$dir/lib$name.$libext"
10501 if test -f "$dir/lib$name.la"; then
10502 found_la="$dir/lib$name.la"
10503 fi
10504 fi
10505 fi
10506 ;;
10507 esac
10508 if test "X$found_dir" != "X"; then
10509 break
10510 fi
10511 done
10512 fi
10513 if test "X$found_dir" != "X"; then
10514 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10515 if test "X$found_so" != "X"; then
10516 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10517 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10518 else
10519 haveit=
10520 for x in $ltrpathdirs; do
10521 if test "X$x" = "X$found_dir"; then
10522 haveit=yes
10523 break
10524 fi
10525 done
10526 if test -z "$haveit"; then
10527 ltrpathdirs="$ltrpathdirs $found_dir"
10528 fi
10529 if test "$hardcode_direct" = yes; then
10530 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10531 else
10532 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10533 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10534 haveit=
10535 for x in $rpathdirs; do
10536 if test "X$x" = "X$found_dir"; then
10537 haveit=yes
10538 break
10539 fi
10540 done
10541 if test -z "$haveit"; then
10542 rpathdirs="$rpathdirs $found_dir"
10543 fi
10544 else
10545 haveit=
10546 for x in $LDFLAGS $LIBICONV; do
10547
10548 acl_save_prefix="$prefix"
10549 prefix="$acl_final_prefix"
10550 acl_save_exec_prefix="$exec_prefix"
10551 exec_prefix="$acl_final_exec_prefix"
10552 eval x=\"$x\"
10553 exec_prefix="$acl_save_exec_prefix"
10554 prefix="$acl_save_prefix"
10555
10556 if test "X$x" = "X-L$found_dir"; then
10557 haveit=yes
10558 break
10559 fi
10560 done
10561 if test -z "$haveit"; then
10562 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10563 fi
10564 if test "$hardcode_minus_L" != no; then
10565 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10566 else
10567 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10568 fi
10569 fi
10570 fi
10571 fi
10572 else
10573 if test "X$found_a" != "X"; then
10574 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10575 else
10576 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10577 fi
10578 fi
10579 additional_includedir=
10580 case "$found_dir" in
10581 */lib | */lib/)
10582 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10583 additional_includedir="$basedir/include"
10584 ;;
10585 esac
10586 if test "X$additional_includedir" != "X"; then
10587 if test "X$additional_includedir" != "X/usr/include"; then
10588 haveit=
10589 if test "X$additional_includedir" = "X/usr/local/include"; then
10590 if test -n "$GCC"; then
10591 case $host_os in
10592 linux*) haveit=yes;;
10593 esac
10594 fi
10595 fi
10596 if test -z "$haveit"; then
10597 for x in $CPPFLAGS $INCICONV; do
10598
10599 acl_save_prefix="$prefix"
10600 prefix="$acl_final_prefix"
10601 acl_save_exec_prefix="$exec_prefix"
10602 exec_prefix="$acl_final_exec_prefix"
10603 eval x=\"$x\"
10604 exec_prefix="$acl_save_exec_prefix"
10605 prefix="$acl_save_prefix"
10606
10607 if test "X$x" = "X-I$additional_includedir"; then
10608 haveit=yes
10609 break
10610 fi
10611 done
10612 if test -z "$haveit"; then
10613 if test -d "$additional_includedir"; then
10614 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10615 fi
10616 fi
10617 fi
10618 fi
10619 fi
10620 if test -n "$found_la"; then
10621 save_libdir="$libdir"
10622 case "$found_la" in
10623 */* | *\\*) . "$found_la" ;;
10624 *) . "./$found_la" ;;
10625 esac
10626 libdir="$save_libdir"
10627 for dep in $dependency_libs; do
10628 case "$dep" in
10629 -L*)
10630 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10631 if test "X$additional_libdir" != "X/usr/lib"; then
10632 haveit=
10633 if test "X$additional_libdir" = "X/usr/local/lib"; then
10634 if test -n "$GCC"; then
10635 case $host_os in
10636 linux*) haveit=yes;;
10637 esac
10638 fi
10639 fi
10640 if test -z "$haveit"; then
10641 haveit=
10642 for x in $LDFLAGS $LIBICONV; do
10643
10644 acl_save_prefix="$prefix"
10645 prefix="$acl_final_prefix"
10646 acl_save_exec_prefix="$exec_prefix"
10647 exec_prefix="$acl_final_exec_prefix"
10648 eval x=\"$x\"
10649 exec_prefix="$acl_save_exec_prefix"
10650 prefix="$acl_save_prefix"
10651
10652 if test "X$x" = "X-L$additional_libdir"; then
10653 haveit=yes
10654 break
10655 fi
10656 done
10657 if test -z "$haveit"; then
10658 if test -d "$additional_libdir"; then
10659 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10660 fi
10661 fi
10662 haveit=
10663 for x in $LDFLAGS $LTLIBICONV; do
10664
10665 acl_save_prefix="$prefix"
10666 prefix="$acl_final_prefix"
10667 acl_save_exec_prefix="$exec_prefix"
10668 exec_prefix="$acl_final_exec_prefix"
10669 eval x=\"$x\"
10670 exec_prefix="$acl_save_exec_prefix"
10671 prefix="$acl_save_prefix"
10672
10673 if test "X$x" = "X-L$additional_libdir"; then
10674 haveit=yes
10675 break
10676 fi
10677 done
10678 if test -z "$haveit"; then
10679 if test -d "$additional_libdir"; then
10680 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10681 fi
10682 fi
10683 fi
10684 fi
10685 ;;
10686 -R*)
10687 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10688 if test "$enable_rpath" != no; then
10689 haveit=
10690 for x in $rpathdirs; do
10691 if test "X$x" = "X$dir"; then
10692 haveit=yes
10693 break
10694 fi
10695 done
10696 if test -z "$haveit"; then
10697 rpathdirs="$rpathdirs $dir"
10698 fi
10699 haveit=
10700 for x in $ltrpathdirs; do
10701 if test "X$x" = "X$dir"; then
10702 haveit=yes
10703 break
10704 fi
10705 done
10706 if test -z "$haveit"; then
10707 ltrpathdirs="$ltrpathdirs $dir"
10708 fi
10709 fi
10710 ;;
10711 -l*)
10712 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10713 ;;
10714 *.la)
10715 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10716 ;;
10717 *)
10718 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10719 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10720 ;;
10721 esac
10722 done
10723 fi
10724 else
10725 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10726 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10727 fi
10728 fi
10729 fi
10730 done
10731 done
10732 if test "X$rpathdirs" != "X"; then
10733 if test -n "$hardcode_libdir_separator"; then
10734 alldirs=
10735 for found_dir in $rpathdirs; do
10736 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10737 done
10738 acl_save_libdir="$libdir"
10739 libdir="$alldirs"
10740 eval flag=\"$hardcode_libdir_flag_spec\"
10741 libdir="$acl_save_libdir"
10742 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10743 else
10744 for found_dir in $rpathdirs; do
10745 acl_save_libdir="$libdir"
10746 libdir="$found_dir"
10747 eval flag=\"$hardcode_libdir_flag_spec\"
10748 libdir="$acl_save_libdir"
10749 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10750 done
10751 fi
10752 fi
10753 if test "X$ltrpathdirs" != "X"; then
10754 for found_dir in $ltrpathdirs; do
10755 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10756 done
10757 fi
10758
10759
10760
10761
10762
10763
10764
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10766 $as_echo_n "checking for iconv... " >&6; }
10767 if ${am_cv_func_iconv+:} false; then :
10768 $as_echo_n "(cached) " >&6
10769 else
10770
10771 am_cv_func_iconv="no, consider installing GNU libiconv"
10772 am_cv_lib_iconv=no
10773 am_save_CPPFLAGS="$CPPFLAGS"
10774 CPPFLAGS="$CPPFLAGS $INCICONV"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10777 #include <stdlib.h>
10778 #include <iconv.h>
10779 int
10780 main ()
10781 {
10782 iconv_t cd = iconv_open("","");
10783 iconv(cd,NULL,NULL,NULL,NULL);
10784 iconv_close(cd);
10785 ;
10786 return 0;
10787 }
10788 _ACEOF
10789 if ac_fn_cxx_try_link "$LINENO"; then :
10790 am_cv_func_iconv=yes
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 CPPFLAGS="$am_save_CPPFLAGS"
10795
10796 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10797 for _libs in .libs _libs; do
10798 am_save_CPPFLAGS="$CPPFLAGS"
10799 am_save_LIBS="$LIBS"
10800 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10801 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 #include <stdlib.h>
10805 #include <iconv.h>
10806 int
10807 main ()
10808 {
10809 iconv_t cd = iconv_open("","");
10810 iconv(cd,NULL,NULL,NULL,NULL);
10811 iconv_close(cd);
10812 ;
10813 return 0;
10814 }
10815 _ACEOF
10816 if ac_fn_cxx_try_link "$LINENO"; then :
10817 INCICONV="-I../libiconv/include"
10818 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10819 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10820 am_cv_lib_iconv=yes
10821 am_cv_func_iconv=yes
10822 fi
10823 rm -f core conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10825 CPPFLAGS="$am_save_CPPFLAGS"
10826 LIBS="$am_save_LIBS"
10827 if test "$am_cv_func_iconv" = "yes"; then
10828 break
10829 fi
10830 done
10831 fi
10832
10833 if test "$am_cv_func_iconv" != yes; then
10834 am_save_CPPFLAGS="$CPPFLAGS"
10835 am_save_LIBS="$LIBS"
10836 CPPFLAGS="$LIBS $INCICONV"
10837 LIBS="$LIBS $LIBICONV"
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10840 #include <stdlib.h>
10841 #include <iconv.h>
10842 int
10843 main ()
10844 {
10845 iconv_t cd = iconv_open("","");
10846 iconv(cd,NULL,NULL,NULL,NULL);
10847 iconv_close(cd);
10848 ;
10849 return 0;
10850 }
10851 _ACEOF
10852 if ac_fn_cxx_try_link "$LINENO"; then :
10853 am_cv_lib_iconv=yes
10854 am_cv_func_iconv=yes
10855 fi
10856 rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
10858 CPPFLAGS="$am_save_CPPFLAGS"
10859 LIBS="$am_save_LIBS"
10860 fi
10861
10862 fi
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10864 $as_echo "$am_cv_func_iconv" >&6; }
10865 if test "$am_cv_func_iconv" = yes; then
10866
10867 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10868
10869 fi
10870 if test "$am_cv_lib_iconv" = yes; then
10871
10872 for element in $INCICONV; do
10873 haveit=
10874 for x in $CPPFLAGS; do
10875
10876 acl_save_prefix="$prefix"
10877 prefix="$acl_final_prefix"
10878 acl_save_exec_prefix="$exec_prefix"
10879 exec_prefix="$acl_final_exec_prefix"
10880 eval x=\"$x\"
10881 exec_prefix="$acl_save_exec_prefix"
10882 prefix="$acl_save_prefix"
10883
10884 if test "X$x" = "X$element"; then
10885 haveit=yes
10886 break
10887 fi
10888 done
10889 if test -z "$haveit"; then
10890 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10891 fi
10892 done
10893
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10895 $as_echo_n "checking how to link with libiconv... " >&6; }
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10897 $as_echo "$LIBICONV" >&6; }
10898 else
10899 LIBICONV=
10900 LTLIBICONV=
10901 fi
10902
10903
10904
10905 if test "$am_cv_func_iconv" = yes; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10907 $as_echo_n "checking for iconv declaration... " >&6; }
10908 if ${am_cv_proto_iconv+:} false; then :
10909 $as_echo_n "(cached) " >&6
10910 else
10911
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914
10915 #include <stdlib.h>
10916 #include <iconv.h>
10917 extern
10918 #ifdef __cplusplus
10919 "C"
10920 #endif
10921 #if defined(__STDC__) || defined(__cplusplus)
10922 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10923 #else
10924 size_t iconv();
10925 #endif
10926
10927 int
10928 main ()
10929 {
10930
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 if ac_fn_cxx_try_compile "$LINENO"; then :
10936 am_cv_proto_iconv_arg1=""
10937 else
10938 am_cv_proto_iconv_arg1="const"
10939 fi
10940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10941 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);"
10942 fi
10943
10944 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10946 }$am_cv_proto_iconv" >&5
10947 $as_echo "${ac_t:-
10948 }$am_cv_proto_iconv" >&6; }
10949
10950 cat >>confdefs.h <<_ACEOF
10951 #define ICONV_CONST $am_cv_proto_iconv_arg1
10952 _ACEOF
10953
10954 fi
10955
10956
10957 # Until we have in-tree GNU iconv:
10958 LIBICONV_DEP=
10959 if test -f "$LTLIBICONV"; then
10960 LIBICONV_DEP=$LTLIBICONV
10961 fi
10962
10963
10964
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10966 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10967 if ${am_cv_val_LC_MESSAGES+:} false; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10972 #include <locale.h>
10973 int
10974 main ()
10975 {
10976 return LC_MESSAGES
10977 ;
10978 return 0;
10979 }
10980 _ACEOF
10981 if ac_fn_cxx_try_link "$LINENO"; then :
10982 am_cv_val_LC_MESSAGES=yes
10983 else
10984 am_cv_val_LC_MESSAGES=no
10985 fi
10986 rm -f core conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
10988 fi
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10990 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10991 if test $am_cv_val_LC_MESSAGES = yes; then
10992
10993 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10994
10995 fi
10996
10997
10998
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11000 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11001 if ${am_cv_langinfo_codeset+:} false; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006 #include <langinfo.h>
11007 int
11008 main ()
11009 {
11010 char* cs = nl_langinfo(CODESET);
11011 ;
11012 return 0;
11013 }
11014 _ACEOF
11015 if ac_fn_cxx_try_link "$LINENO"; then :
11016 am_cv_langinfo_codeset=yes
11017 else
11018 am_cv_langinfo_codeset=no
11019 fi
11020 rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022
11023 fi
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11025 $as_echo "$am_cv_langinfo_codeset" >&6; }
11026 if test $am_cv_langinfo_codeset = yes; then
11027
11028 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11029
11030 fi
11031
11032
11033 # We will need to find libiberty.h and ansidecl.h
11034 saved_CFLAGS="$CFLAGS"
11035 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11036 saved_CXXFLAGS="$CXXFLAGS"
11037 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11038
11039 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11040 # normal autoconf function for these. But force definition of
11041 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11042 # basename handling in libiberty.h.
11043 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11044 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11045 #undef HAVE_DECL_BASENAME
11046 #define HAVE_DECL_BASENAME 1
11047 #include \"ansidecl.h\"
11048 #include \"system.h\"
11049 "
11050 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11051 ac_have_decl=1
11052 else
11053 ac_have_decl=0
11054 fi
11055
11056 cat >>confdefs.h <<_ACEOF
11057 #define HAVE_DECL_BASENAME $ac_have_decl
11058 _ACEOF
11059 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11060 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11061 #undef HAVE_DECL_BASENAME
11062 #define HAVE_DECL_BASENAME 1
11063 #include \"ansidecl.h\"
11064 #include \"system.h\"
11065 "
11066 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11067 ac_have_decl=1
11068 else
11069 ac_have_decl=0
11070 fi
11071
11072 cat >>confdefs.h <<_ACEOF
11073 #define HAVE_DECL_STRSTR $ac_have_decl
11074 _ACEOF
11075
11076
11077 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11078 madvise stpcpy strnlen strsignal strverscmp \
11079 strtol strtoul strtoll strtoull setenv unsetenv \
11080 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11081 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
11082 do
11083 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11085 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11086 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11091 #undef $ac_tr_decl
11092 #define $ac_tr_decl 1
11093
11094 #include "ansidecl.h"
11095 #include "system.h"
11096
11097 int
11098 main ()
11099 {
11100 #ifndef $ac_func
11101 char *(*pfn) = (char *(*)) $ac_func ;
11102 #endif
11103 ;
11104 return 0;
11105 }
11106 _ACEOF
11107 if ac_fn_cxx_try_compile "$LINENO"; then :
11108 eval "gcc_cv_have_decl_$ac_func=yes"
11109 else
11110 eval "gcc_cv_have_decl_$ac_func=no"
11111 fi
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 fi
11114
11115 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11117 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11118 #define $ac_tr_decl 1
11119 _ACEOF
11120
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11124 #define $ac_tr_decl 0
11125 _ACEOF
11126
11127 fi
11128
11129 done
11130
11131
11132 for ac_func in getrlimit setrlimit getrusage
11133 do
11134 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11136 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11137 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11142 #undef $ac_tr_decl
11143 #define $ac_tr_decl 1
11144
11145 #include "ansidecl.h"
11146 #include "system.h"
11147 #ifdef HAVE_SYS_RESOURCE_H
11148 #include <sys/resource.h>
11149 #endif
11150
11151
11152 int
11153 main ()
11154 {
11155 #ifndef $ac_func
11156 char *(*pfn) = (char *(*)) $ac_func ;
11157 #endif
11158 ;
11159 return 0;
11160 }
11161 _ACEOF
11162 if ac_fn_cxx_try_compile "$LINENO"; then :
11163 eval "gcc_cv_have_decl_$ac_func=yes"
11164 else
11165 eval "gcc_cv_have_decl_$ac_func=no"
11166 fi
11167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11168 fi
11169
11170 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11172 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11173 #define $ac_tr_decl 1
11174 _ACEOF
11175
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11179 #define $ac_tr_decl 0
11180 _ACEOF
11181
11182 fi
11183
11184 done
11185
11186
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11189
11190 #include "ansidecl.h"
11191 #include "system.h"
11192 #ifdef HAVE_SYS_RESOURCE_H
11193 #include <sys/resource.h>
11194 #endif
11195
11196 int
11197 main ()
11198 {
11199 rlim_t l = 0;
11200 ;
11201 return 0;
11202 }
11203 _ACEOF
11204 if ac_fn_cxx_try_compile "$LINENO"; then :
11205
11206 else
11207
11208 $as_echo "#define rlim_t long" >>confdefs.h
11209
11210 fi
11211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11212
11213 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11214 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11215 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11216 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11217 for ac_func in ldgetname
11218 do
11219 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11221 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11222 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227 #undef $ac_tr_decl
11228 #define $ac_tr_decl 1
11229
11230 #include "ansidecl.h"
11231 #include "system.h"
11232 #ifdef HAVE_LDFCN_H
11233 #undef FREAD
11234 #undef FWRITE
11235 #include <ldfcn.h>
11236 #endif
11237
11238
11239 int
11240 main ()
11241 {
11242 #ifndef $ac_func
11243 char *(*pfn) = (char *(*)) $ac_func ;
11244 #endif
11245 ;
11246 return 0;
11247 }
11248 _ACEOF
11249 if ac_fn_cxx_try_compile "$LINENO"; then :
11250 eval "gcc_cv_have_decl_$ac_func=yes"
11251 else
11252 eval "gcc_cv_have_decl_$ac_func=no"
11253 fi
11254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11255 fi
11256
11257 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11259 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11260 #define $ac_tr_decl 1
11261 _ACEOF
11262
11263 else
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11266 #define $ac_tr_decl 0
11267 _ACEOF
11268
11269 fi
11270
11271 done
11272
11273
11274 for ac_func in times
11275 do
11276 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11278 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11279 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11280 $as_echo_n "(cached) " >&6
11281 else
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11284 #undef $ac_tr_decl
11285 #define $ac_tr_decl 1
11286
11287 #include "ansidecl.h"
11288 #include "system.h"
11289 #ifdef HAVE_SYS_TIMES_H
11290 #include <sys/times.h>
11291 #endif
11292
11293
11294 int
11295 main ()
11296 {
11297 #ifndef $ac_func
11298 char *(*pfn) = (char *(*)) $ac_func ;
11299 #endif
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 if ac_fn_cxx_try_compile "$LINENO"; then :
11305 eval "gcc_cv_have_decl_$ac_func=yes"
11306 else
11307 eval "gcc_cv_have_decl_$ac_func=no"
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 fi
11311
11312 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11314 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11315 #define $ac_tr_decl 1
11316 _ACEOF
11317
11318 else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11321 #define $ac_tr_decl 0
11322 _ACEOF
11323
11324 fi
11325
11326 done
11327
11328
11329 for ac_func in sigaltstack
11330 do
11331 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11333 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11334 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h. */
11339 #undef $ac_tr_decl
11340 #define $ac_tr_decl 1
11341
11342 #include "ansidecl.h"
11343 #include "system.h"
11344 #include <signal.h>
11345
11346
11347 int
11348 main ()
11349 {
11350 #ifndef $ac_func
11351 char *(*pfn) = (char *(*)) $ac_func ;
11352 #endif
11353 ;
11354 return 0;
11355 }
11356 _ACEOF
11357 if ac_fn_cxx_try_compile "$LINENO"; then :
11358 eval "gcc_cv_have_decl_$ac_func=yes"
11359 else
11360 eval "gcc_cv_have_decl_$ac_func=no"
11361 fi
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 fi
11364
11365 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11367 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11368 #define $ac_tr_decl 1
11369 _ACEOF
11370
11371 else
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11374 #define $ac_tr_decl 0
11375 _ACEOF
11376
11377 fi
11378
11379 done
11380
11381
11382 # More time-related stuff.
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11384 $as_echo_n "checking for struct tms... " >&6; }
11385 if ${ac_cv_struct_tms+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11391
11392 #include "ansidecl.h"
11393 #include "system.h"
11394 #ifdef HAVE_SYS_TIMES_H
11395 #include <sys/times.h>
11396 #endif
11397
11398 int
11399 main ()
11400 {
11401 struct tms tms;
11402 ;
11403 return 0;
11404 }
11405 _ACEOF
11406 if ac_fn_cxx_try_compile "$LINENO"; then :
11407 ac_cv_struct_tms=yes
11408 else
11409 ac_cv_struct_tms=no
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11412 fi
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11414 $as_echo "$ac_cv_struct_tms" >&6; }
11415 if test $ac_cv_struct_tms = yes; then
11416
11417 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11418
11419 fi
11420
11421 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11422 # revisit after autoconf 2.50.
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11424 $as_echo_n "checking for clock_t... " >&6; }
11425 if ${gcc_cv_type_clock_t+:} false; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11431
11432 #include "ansidecl.h"
11433 #include "system.h"
11434
11435 int
11436 main ()
11437 {
11438 clock_t x;
11439 ;
11440 return 0;
11441 }
11442 _ACEOF
11443 if ac_fn_cxx_try_compile "$LINENO"; then :
11444 gcc_cv_type_clock_t=yes
11445 else
11446 gcc_cv_type_clock_t=no
11447 fi
11448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11451 $as_echo "$gcc_cv_type_clock_t" >&6; }
11452 if test $gcc_cv_type_clock_t = yes; then
11453
11454 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11455
11456 fi
11457
11458 # Check if F_SETLKW is supported by fcntl.
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11460 $as_echo_n "checking for F_SETLKW... " >&6; }
11461 if ${ac_cv_f_setlkw+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11467
11468 #include <fcntl.h>
11469 int
11470 main ()
11471 {
11472
11473 struct flock fl;
11474 fl.l_whence = 0;
11475 fl.l_start = 0;
11476 fl.l_len = 0;
11477 fl.l_pid = 0;
11478 return fcntl (1, F_SETLKW, &fl);
11479 ;
11480 return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_cxx_try_compile "$LINENO"; then :
11484 ac_cv_f_setlkw=yes
11485 else
11486 ac_cv_f_setlkw=no
11487 fi
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 fi
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11491 $as_echo "$ac_cv_f_setlkw" >&6; }
11492 if test $ac_cv_f_setlkw = yes; then
11493
11494 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11495
11496 fi
11497
11498 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11499 CFLAGS="$saved_CFLAGS"
11500 CXXFLAGS="$saved_CXXFLAGS"
11501
11502 # mkdir takes a single argument on some systems.
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11504 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11505 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510
11511 #include <sys/types.h>
11512 #ifdef HAVE_SYS_STAT_H
11513 # include <sys/stat.h>
11514 #endif
11515 #ifdef HAVE_UNISTD_H
11516 # include <unistd.h>
11517 #endif
11518 #ifdef HAVE_DIRECT_H
11519 # include <direct.h>
11520 #endif
11521 int
11522 main ()
11523 {
11524 mkdir ("foo", 0);
11525 ;
11526 return 0;
11527 }
11528 _ACEOF
11529 if ac_fn_cxx_try_compile "$LINENO"; then :
11530 gcc_cv_mkdir_takes_one_arg=no
11531 else
11532 gcc_cv_mkdir_takes_one_arg=yes
11533 fi
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535 fi
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11537 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11538 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11539
11540 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11541
11542 fi
11543
11544
11545 # File extensions
11546 manext='.1'
11547 objext='.o'
11548
11549
11550
11551 # With Setjmp/Longjmp based exception handling.
11552 # Check whether --enable-sjlj-exceptions was given.
11553 if test "${enable_sjlj_exceptions+set}" = set; then :
11554 enableval=$enable_sjlj_exceptions; case $target in
11555 *-*-hpux10*)
11556 if test $enableval != yes; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11558 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11559 enableval=yes
11560 fi
11561 ;;
11562 esac
11563 force_sjlj_exceptions=yes
11564 else
11565 case $target in
11566 *-*-hpux10*)
11567 force_sjlj_exceptions=yes
11568 enableval=yes
11569 ;;
11570 lm32*-*-*)
11571 force_sjlj_exceptions=yes
11572 enableval=yes
11573 ;;
11574 *)
11575 force_sjlj_exceptions=no
11576 ;;
11577 esac
11578 fi
11579
11580 if test $force_sjlj_exceptions = yes; then
11581 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11582
11583 cat >>confdefs.h <<_ACEOF
11584 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11585 _ACEOF
11586
11587 fi
11588
11589 # --------------------------------------------------------
11590 # Build, host, and target specific configuration fragments
11591 # --------------------------------------------------------
11592
11593 # Collect build-machine-specific information.
11594 . ${srcdir}/config.build || exit 1
11595
11596 # Collect host-machine-specific information.
11597 . ${srcdir}/config.host || exit 1
11598
11599 target_gtfiles=
11600
11601 # Collect target-machine-specific information.
11602 . ${srcdir}/config.gcc || exit 1
11603
11604 extra_objs="${host_extra_objs} ${extra_objs}"
11605 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11606
11607 # Default the target-machine variables that were not explicitly set.
11608 if test x"$tm_file" = x
11609 then tm_file=$cpu_type/$cpu_type.h; fi
11610
11611 if test x"$extra_headers" = x
11612 then extra_headers=; fi
11613
11614 if test x$md_file = x
11615 then md_file=$cpu_type/$cpu_type.md; fi
11616
11617 if test x$out_file = x
11618 then out_file=$cpu_type/$cpu_type.c; fi
11619
11620 if test x"$tmake_file" = x
11621 then tmake_file=$cpu_type/t-$cpu_type
11622 fi
11623
11624 # Support --enable-initfini-array.
11625 if test x$enable_initfini_array != xno; then
11626 tm_file="${tm_file} initfini-array.h"
11627 fi
11628
11629 if test x"$dwarf2" = xyes
11630 then tm_file="$tm_file tm-dwarf2.h"
11631 fi
11632
11633 # Say what files are being used for the output code and MD file.
11634 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11635 echo "Using \`$srcdir/config/$md_file' as machine description file."
11636
11637 # If any of the xm_file variables contain nonexistent files, warn
11638 # about them and drop them.
11639
11640 bx=
11641 for x in $build_xm_file; do
11642 if test -f $srcdir/config/$x
11643 then bx="$bx $x"
11644 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11645 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11646 fi
11647 done
11648 build_xm_file="$bx"
11649
11650 hx=
11651 for x in $host_xm_file; do
11652 if test -f $srcdir/config/$x
11653 then hx="$hx $x"
11654 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11655 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11656 fi
11657 done
11658 host_xm_file="$hx"
11659
11660 tx=
11661 for x in $xm_file; do
11662 if test -f $srcdir/config/$x
11663 then tx="$tx $x"
11664 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11665 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11666 fi
11667 done
11668 xm_file="$tx"
11669
11670 count=a
11671 for f in $tm_file; do
11672 count=${count}x
11673 done
11674 if test $count = ax; then
11675 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11676 else
11677 echo "Using the following target machine macro files:"
11678 for f in $tm_file; do
11679 echo " $srcdir/config/$f"
11680 done
11681 fi
11682
11683 if test x$use_long_long_for_widest_fast_int = xyes; then
11684
11685 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11686
11687 fi
11688
11689 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11690
11691 cat >>confdefs.h <<_ACEOF
11692 #define HAVE_GNU_LD $gnu_ld_bool
11693 _ACEOF
11694
11695
11696 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11697
11698 cat >>confdefs.h <<_ACEOF
11699 #define HAVE_GNU_AS $gnu_as_bool
11700 _ACEOF
11701
11702
11703 count=a
11704 for f in $host_xm_file; do
11705 count=${count}x
11706 done
11707 if test $count = a; then
11708 :
11709 elif test $count = ax; then
11710 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11711 else
11712 echo "Using the following host machine macro files:"
11713 for f in $host_xm_file; do
11714 echo " $srcdir/config/$f"
11715 done
11716 fi
11717 echo "Using ${out_host_hook_obj} for host machine hooks."
11718
11719 if test "$host_xm_file" != "$build_xm_file"; then
11720 count=a
11721 for f in $build_xm_file; do
11722 count=${count}x
11723 done
11724 if test $count = a; then
11725 :
11726 elif test $count = ax; then
11727 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11728 else
11729 echo "Using the following build machine macro files:"
11730 for f in $build_xm_file; do
11731 echo " $srcdir/config/$f"
11732 done
11733 fi
11734 fi
11735
11736 if test -n "$configured_native_system_header_dir"; then
11737 native_system_header_dir=$configured_native_system_header_dir
11738 fi
11739 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11740
11741
11742 case ${host} in
11743 powerpc*-*-darwin*)
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11745 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11746 if ${gcc_cv_mcontext_underscores+:} false; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11751
11752 #include <sys/cdefs.h>
11753 #include <sys/signal.h>
11754 #include <ucontext.h>
11755 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11756
11757 _ACEOF
11758 if ac_fn_cxx_try_compile "$LINENO"; then :
11759 gcc_cv_mcontext_underscores=no
11760 else
11761 gcc_cv_mcontext_underscores=yes
11762 fi
11763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11764 fi
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11766 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11767 if test $gcc_cv_mcontext_underscores = yes; then
11768
11769 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11770
11771 fi
11772 ;;
11773 esac
11774
11775 # ---------
11776 # Threading
11777 # ---------
11778
11779 # Check if a valid thread package
11780 case ${enable_threads} in
11781 "" | no)
11782 # No threads
11783 target_thread_file='single'
11784 ;;
11785 yes)
11786 # default
11787 target_thread_file='single'
11788 ;;
11789 aix | dce | lynx | mipssde | posix | rtems | \
11790 single | tpf | vxworks | win32)
11791 target_thread_file=${enable_threads}
11792 ;;
11793 *)
11794 echo "${enable_threads} is an unknown thread package" 1>&2
11795 exit 1
11796 ;;
11797 esac
11798
11799 if test x${thread_file} = x; then
11800 # No thread file set by target-specific clauses in config.gcc,
11801 # so use file chosen by default logic above
11802 thread_file=${target_thread_file}
11803 fi
11804
11805 # --------
11806 # UNSORTED
11807 # --------
11808
11809 use_cxa_atexit=no
11810 if test x$enable___cxa_atexit = xyes || \
11811 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11812 if test x$host = x$target; then
11813 case $host in
11814 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11815 # keyed to flag_use_cxa_atexit
11816 *-*-mingw32*)
11817 use_cxa_atexit=yes
11818 ;;
11819 powerpc-ibm-aix*)
11820 use_cxa_atexit=yes
11821 ;;
11822 *)
11823 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11824 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
11825 use_cxa_atexit=yes
11826 else
11827 echo "__cxa_atexit can't be enabled on this target"
11828 fi
11829
11830 ;;
11831 esac
11832 else
11833 # We can't check for __cxa_atexit when building a cross, so assume
11834 # it is available
11835 use_cxa_atexit=yes
11836 fi
11837 if test x$use_cxa_atexit = xyes; then
11838
11839 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11840
11841 fi
11842 fi
11843
11844 # Look for a file containing extra machine modes.
11845 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11846 extra_modes_file='$(srcdir)'/config/${extra_modes}
11847
11848
11849 cat >>confdefs.h <<_ACEOF
11850 #define EXTRA_MODES_FILE "config/$extra_modes"
11851 _ACEOF
11852
11853 fi
11854
11855 # Convert extra_options into a form suitable for Makefile use.
11856 extra_opt_files=
11857 all_opt_files=
11858 for f in $extra_options; do
11859 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11860 all_opt_files="$all_opt_files $srcdir/config/$f"
11861 done
11862
11863
11864 # auto-host.h is the file containing items generated by autoconf and is
11865 # the first file included by config.h.
11866 # If host=build, it is correct to have bconfig include auto-host.h
11867 # as well. If host!=build, we are in error and need to do more
11868 # work to find out the build config parameters.
11869 if test x$host = x$build
11870 then
11871 build_auto=auto-host.h
11872 else
11873 # We create a subdir, then run autoconf in the subdir.
11874 # To prevent recursion we set host and build for the new
11875 # invocation of configure to the build for this invocation
11876 # of configure.
11877 tempdir=build.$$
11878 rm -rf $tempdir
11879 mkdir $tempdir
11880 cd $tempdir
11881 case ${srcdir} in
11882 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11883 *) realsrcdir=../${srcdir};;
11884 esac
11885 # Clearing GMPINC is necessary to prevent host headers being
11886 # used by the build compiler. Defining GENERATOR_FILE stops
11887 # system.h from including gmp.h.
11888 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11889 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11890 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11891 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11892 ${realsrcdir}/configure \
11893 --enable-languages=${enable_languages-all} \
11894 --target=$target_alias --host=$build_alias --build=$build_alias
11895
11896 # We just finished tests for the build machine, so rename
11897 # the file auto-build.h in the gcc directory.
11898 mv auto-host.h ../auto-build.h
11899 cd ..
11900 rm -rf $tempdir
11901 build_auto=auto-build.h
11902 fi
11903
11904
11905 tm_file="${tm_file} defaults.h"
11906 tm_p_file="${tm_p_file} tm-preds.h"
11907 tm_d_file="${tm_d_file} defaults.h"
11908 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11909 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11910 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11911 # put this back in temporarily.
11912 xm_file="auto-host.h ansidecl.h ${xm_file}"
11913
11914 # --------
11915 # UNSORTED
11916 # --------
11917
11918 # Compile in configure arguments.
11919 if test -f configargs.h ; then
11920 # Being re-configured.
11921 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11922 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11923 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11924 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11925 fi
11926 else
11927 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11928 fi
11929
11930 # Double all backslashes and backslash all quotes to turn
11931 # gcc_config_arguments into a C string.
11932 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11933 $gcc_config_arguments
11934 EOF
11935 gcc_config_arguments_str=`cat conftest.out`
11936 rm -f conftest.out
11937
11938 cat > configargs.h <<EOF
11939 /* Generated automatically. */
11940 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11941 static const char thread_model[] = "$thread_file";
11942
11943 static const struct {
11944 const char *name, *value;
11945 } configure_default_options[] = $configure_default_options;
11946 EOF
11947
11948 gcc_BASEVER=`cat $srcdir/BASE-VER`
11949 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11950 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11951 if test -f $srcdir/REVISION ; then
11952 gcc_REVISION=`cat $srcdir/REVISION`
11953 else
11954 gcc_REVISION=""
11955 fi
11956 cat > plugin-version.h <<EOF
11957 #include "configargs.h"
11958
11959 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11960 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11961 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11962 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11963
11964 static char basever[] = "$gcc_BASEVER";
11965 static char datestamp[] = "$gcc_DATESTAMP";
11966 static char devphase[] = "$gcc_DEVPHASE";
11967 static char revision[] = "$gcc_REVISION";
11968
11969 /* FIXME plugins: We should make the version information more precise.
11970 One way to do is to add a checksum. */
11971
11972 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11973 devphase, revision,
11974 configuration_arguments};
11975 EOF
11976
11977 # Determine what GCC version number to use in filesystem paths.
11978
11979 get_gcc_base_ver="cat"
11980
11981 # Check whether --with-gcc-major-version-only was given.
11982 if test "${with_gcc_major_version_only+set}" = set; then :
11983 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11984 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11985 fi
11986
11987 fi
11988
11989
11990
11991
11992 # Internationalization
11993 # If we haven't got the data from the intl directory,
11994 # assume NLS is disabled.
11995 USE_NLS=no
11996 LIBINTL=
11997 LIBINTL_DEP=
11998 INCINTL=
11999 XGETTEXT=
12000 GMSGFMT=
12001 POSUB=
12002
12003 if test -f ../intl/config.intl; then
12004 . ../intl/config.intl
12005 fi
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12007 $as_echo_n "checking whether NLS is requested... " >&6; }
12008 if test x"$USE_NLS" != xyes; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010 $as_echo "no" >&6; }
12011 else
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12013 $as_echo "yes" >&6; }
12014
12015 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12016
12017
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12019 $as_echo_n "checking for catalogs to be installed... " >&6; }
12020 # Look for .po and .gmo files in the source directory.
12021 CATALOGS=
12022 XLINGUAS=
12023 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12024 # If there aren't any .gmo files the shell will give us the
12025 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12026 # weeded out.
12027 case "$cat" in *\**)
12028 continue;;
12029 esac
12030 # The quadruple backslash is collapsed to a double backslash
12031 # by the backticks, then collapsed again by the double quotes,
12032 # leaving us with one backslash in the sed expression (right
12033 # before the dot that mustn't act as a wildcard).
12034 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12035 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12036 # The user is allowed to set LINGUAS to a list of languages to
12037 # install catalogs for. If it's empty that means "all of them."
12038 if test "x$LINGUAS" = x; then
12039 CATALOGS="$CATALOGS $cat"
12040 XLINGUAS="$XLINGUAS $lang"
12041 else
12042 case "$LINGUAS" in *$lang*)
12043 CATALOGS="$CATALOGS $cat"
12044 XLINGUAS="$XLINGUAS $lang"
12045 ;;
12046 esac
12047 fi
12048 done
12049 LINGUAS="$XLINGUAS"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12051 $as_echo "$LINGUAS" >&6; }
12052
12053
12054 DATADIRNAME=share
12055
12056 INSTOBJEXT=.mo
12057
12058 GENCAT=gencat
12059
12060 CATOBJEXT=.gmo
12061
12062 fi
12063
12064 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12065 # -liconv on the link line twice.
12066 case "$LIBINTL" in *$LIBICONV*)
12067 LIBICONV= ;;
12068 esac
12069
12070 # Check whether --enable-secureplt was given.
12071 if test "${enable_secureplt+set}" = set; then :
12072 enableval=$enable_secureplt;
12073 fi
12074
12075
12076 # Check whether --enable-mingw-wildcard was given.
12077 if test "${enable_mingw_wildcard+set}" = set; then :
12078 enableval=$enable_mingw_wildcard;
12079 else
12080 enable_mingw_wildcard=platform
12081 fi
12082
12083 if test x"$enable_mingw_wildcard" != xplatform ; then :
12084
12085 cat >>confdefs.h <<_ACEOF
12086 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12087 _ACEOF
12088
12089 fi
12090
12091 # Check whether --enable-large-address-aware was given.
12092 if test "${enable_large_address_aware+set}" = set; then :
12093 enableval=$enable_large_address_aware;
12094 fi
12095
12096 if test x"$enable_large_address_aware" = xyes; then :
12097
12098 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12099
12100 fi
12101
12102 # Check whether --enable-leading-mingw64-underscores was given.
12103 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12104 enableval=$enable_leading_mingw64_underscores;
12105 fi
12106
12107 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12108
12109 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12110
12111 fi
12112
12113 # Check whether --enable-cld was given.
12114 if test "${enable_cld+set}" = set; then :
12115 enableval=$enable_cld;
12116 else
12117 enable_cld=no
12118 fi
12119
12120
12121 # Check whether --enable-frame-pointer was given.
12122 if test "${enable_frame_pointer+set}" = set; then :
12123 enableval=$enable_frame_pointer;
12124 else
12125
12126 case $target_os in
12127 linux* | darwin[8912]*)
12128 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12129 # DWARF2.
12130 enable_frame_pointer=no
12131 ;;
12132 *)
12133 enable_frame_pointer=yes
12134 ;;
12135 esac
12136
12137 fi
12138
12139
12140 # Windows32 Registry support for specifying GCC installation paths.
12141 # Check whether --enable-win32-registry was given.
12142 if test "${enable_win32_registry+set}" = set; then :
12143 enableval=$enable_win32_registry;
12144 fi
12145
12146
12147 case $host_os in
12148 win32 | pe | cygwin* | mingw32*)
12149 if test "x$enable_win32_registry" != xno; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12151 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12152 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 ac_func_search_save_LIBS=$LIBS
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 char RegOpenKeyExA ();
12166 int
12167 main ()
12168 {
12169 return RegOpenKeyExA ();
12170 ;
12171 return 0;
12172 }
12173 _ACEOF
12174 for ac_lib in '' advapi32; do
12175 if test -z "$ac_lib"; then
12176 ac_res="none required"
12177 else
12178 ac_res=-l$ac_lib
12179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12180 fi
12181 if ac_fn_cxx_try_link "$LINENO"; then :
12182 ac_cv_search_RegOpenKeyExA=$ac_res
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext
12186 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12187 break
12188 fi
12189 done
12190 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12191
12192 else
12193 ac_cv_search_RegOpenKeyExA=no
12194 fi
12195 rm conftest.$ac_ext
12196 LIBS=$ac_func_search_save_LIBS
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12199 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12200 ac_res=$ac_cv_search_RegOpenKeyExA
12201 if test "$ac_res" != no; then :
12202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12203
12204 else
12205 enable_win32_registry=no
12206 fi
12207
12208 fi
12209
12210 if test "x$enable_win32_registry" != xno; then
12211
12212 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12213
12214
12215 if test "x$enable_win32_registry" != xyes \
12216 && test "x$enable_win32_registry" != x; then
12217
12218 cat >>confdefs.h <<_ACEOF
12219 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12220 _ACEOF
12221
12222 fi
12223 fi
12224 ;;
12225 esac
12226
12227 # Get an absolute path to the GCC top-level source directory
12228 holddir=`${PWDCMD-pwd}`
12229 cd $srcdir
12230 topdir=`${PWDCMD-pwd}`
12231 cd $holddir
12232
12233 # Conditionalize the makefile for this host machine.
12234 xmake_file=
12235 for f in ${host_xmake_file}
12236 do
12237 if test -f ${srcdir}/config/$f
12238 then
12239 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12240 fi
12241 done
12242
12243 # Conditionalize the makefile for this target machine.
12244 tmake_file_=
12245 for f in ${tmake_file}
12246 do
12247 if test -f ${srcdir}/config/$f
12248 then
12249 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12250 fi
12251 done
12252 tmake_file="${tmake_file_}"
12253
12254 out_object_file=`basename $out_file .c`.o
12255 common_out_object_file=`basename $common_out_file .c`.o
12256
12257 tm_file_list="options.h"
12258 tm_include_list="options.h insn-constants.h"
12259 for f in $tm_file; do
12260 case $f in
12261 ./* )
12262 f=`echo $f | sed 's/^..//'`
12263 tm_file_list="${tm_file_list} $f"
12264 tm_include_list="${tm_include_list} $f"
12265 ;;
12266 defaults.h )
12267 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12268 tm_include_list="${tm_include_list} $f"
12269 ;;
12270 * )
12271 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12272 tm_include_list="${tm_include_list} config/$f"
12273 ;;
12274 esac
12275 done
12276
12277 tm_p_file_list=
12278 tm_p_include_list=
12279 for f in $tm_p_file; do
12280 case $f in
12281 tm-preds.h )
12282 tm_p_file_list="${tm_p_file_list} $f"
12283 tm_p_include_list="${tm_p_include_list} $f"
12284 ;;
12285 * )
12286 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12287 tm_p_include_list="${tm_p_include_list} config/$f"
12288 esac
12289 done
12290
12291 tm_d_file_list=
12292 tm_d_include_list="options.h insn-constants.h"
12293 for f in $tm_d_file; do
12294 case $f in
12295 defaults.h )
12296 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12297 tm_d_include_list="${tm_d_include_list} $f"
12298 ;;
12299 * )
12300 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12301 tm_d_include_list="${tm_d_include_list} config/$f"
12302 ;;
12303 esac
12304 done
12305
12306 xm_file_list=
12307 xm_include_list=
12308 for f in $xm_file; do
12309 case $f in
12310 ansidecl.h )
12311 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12312 xm_include_list="${xm_include_list} $f"
12313 ;;
12314 auto-host.h )
12315 xm_file_list="${xm_file_list} $f"
12316 xm_include_list="${xm_include_list} $f"
12317 ;;
12318 * )
12319 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12320 xm_include_list="${xm_include_list} config/$f"
12321 ;;
12322 esac
12323 done
12324
12325 host_xm_file_list=
12326 host_xm_include_list=
12327 for f in $host_xm_file; do
12328 case $f in
12329 ansidecl.h )
12330 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12331 host_xm_include_list="${host_xm_include_list} $f"
12332 ;;
12333 auto-host.h )
12334 host_xm_file_list="${host_xm_file_list} $f"
12335 host_xm_include_list="${host_xm_include_list} $f"
12336 ;;
12337 * )
12338 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12339 host_xm_include_list="${host_xm_include_list} config/$f"
12340 ;;
12341 esac
12342 done
12343
12344 build_xm_file_list=
12345 for f in $build_xm_file; do
12346 case $f in
12347 ansidecl.h )
12348 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12349 build_xm_include_list="${build_xm_include_list} $f"
12350 ;;
12351 auto-build.h | auto-host.h )
12352 build_xm_file_list="${build_xm_file_list} $f"
12353 build_xm_include_list="${build_xm_include_list} $f"
12354 ;;
12355 * )
12356 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12357 build_xm_include_list="${build_xm_include_list} config/$f"
12358 ;;
12359 esac
12360 done
12361
12362 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12363 # cross-compiler which does not use the native headers and libraries.
12364 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12365 CROSS=
12366 ALL=all.internal
12367 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12368 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12369
12370 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12371 test x$build != x$host || test "x$with_build_sysroot" != x; then
12372 if test "x$with_build_sysroot" != x; then
12373 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12374 else
12375 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12376 fi
12377
12378 if test x$host != x$target
12379 then
12380 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12381 ALL=all.cross
12382 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12383 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12384 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12385 fi
12386
12387 if test "x$with_build_sysroot" != "x"; then
12388 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12389 elif test "x$with_sysroot" = x; then
12390 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12391 elif test "x$with_sysroot" = xyes; then
12392 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12393 else
12394 target_header_dir="${with_sysroot}${native_system_header_dir}"
12395 fi
12396 else
12397 target_header_dir=${native_system_header_dir}
12398 fi
12399
12400 # If this is a cross-compiler that does not
12401 # have its own set of headers then define
12402 # inhibit_libc
12403
12404 # If this is using newlib, without having the headers available now,
12405 # then define inhibit_libc in LIBGCC2_CFLAGS.
12406 # This prevents libgcc2 from containing any code which requires libc
12407 # support.
12408 : ${inhibit_libc=false}
12409 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12410 test x$with_newlib = xyes ; } &&
12411 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12412 inhibit_libc=true
12413 fi
12414
12415
12416 # When building gcc with a cross-compiler, we need to adjust things so
12417 # that the generator programs are still built with the native compiler.
12418 # Also, we cannot run fixincludes.
12419
12420 # These are the normal (build=host) settings:
12421 CC_FOR_BUILD='$(CC)'
12422 CXX_FOR_BUILD='$(CXX)'
12423 BUILD_CFLAGS='$(ALL_CFLAGS)'
12424 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12425 BUILD_LDFLAGS='$(LDFLAGS)'
12426 STMP_FIXINC=stmp-fixinc
12427
12428 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12429 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12430
12431 # And these apply if build != host, or we are generating coverage data
12432 if test x$build != x$host || test "x$coverage_flags" != x
12433 then
12434 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12435 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12436 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12437
12438 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12439 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12440 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12441 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12442 fi
12443
12444
12445
12446 # Expand extra_headers to include complete path.
12447 # This substitutes for lots of t-* files.
12448 extra_headers_list=
12449 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12450 for file in ${extra_headers} ; do
12451 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12452 done
12453
12454 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12455 if test x"$use_gcc_tgmath" = xyes
12456 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12457 fi
12458
12459 # Define collect2 in Makefile.
12460 case $host_can_use_collect2 in
12461 no) collect2= ;;
12462 *) collect2='collect2$(exeext)' ;;
12463 esac
12464
12465
12466 # Add a definition of USE_COLLECT2 if system wants one.
12467 case $use_collect2 in
12468 no) use_collect2= ;;
12469 "") ;;
12470 *)
12471 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12472 xm_defines="${xm_defines} USE_COLLECT2"
12473 case $host_can_use_collect2 in
12474 no)
12475 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12476 ;;
12477 esac
12478 ;;
12479 esac
12480
12481
12482 cat >>confdefs.h <<_ACEOF
12483 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12484 _ACEOF
12485
12486
12487 # ---------------------------
12488 # Assembler & linker features
12489 # ---------------------------
12490
12491 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12492 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12493 # However when ld-new is first executed from the build tree, libtool will
12494 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12495 # to the build tree. While doing this we need to use the previous-stage
12496 # linker, or we have an infinite loop. The presence of a shell script as
12497 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12498 # the gcc/collect-ld script. So we need to know how libtool works, or
12499 # exec-tool will fail.
12500
12501
12502 case `pwd` in
12503 *\ * | *\ *)
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12505 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12506 esac
12507
12508
12509
12510 macro_version='2.2.7a'
12511 macro_revision='1.3134'
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525 ltmain="$ac_aux_dir/ltmain.sh"
12526
12527 # Backslashify metacharacters that are still active within
12528 # double-quoted strings.
12529 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12530
12531 # Same as above, but do not quote variable references.
12532 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12533
12534 # Sed substitution to delay expansion of an escaped shell variable in a
12535 # double_quote_subst'ed string.
12536 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12537
12538 # Sed substitution to delay expansion of an escaped single quote.
12539 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12540
12541 # Sed substitution to avoid accidental globbing in evaled expressions
12542 no_glob_subst='s/\*/\\\*/g'
12543
12544 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12545 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12546 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12547
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12549 $as_echo_n "checking how to print strings... " >&6; }
12550 # Test print first, because it will be a builtin if present.
12551 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12552 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12553 ECHO='print -r --'
12554 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12555 ECHO='printf %s\n'
12556 else
12557 # Use this function as a fallback that always works.
12558 func_fallback_echo ()
12559 {
12560 eval 'cat <<_LTECHO_EOF
12561 $1
12562 _LTECHO_EOF'
12563 }
12564 ECHO='func_fallback_echo'
12565 fi
12566
12567 # func_echo_all arg...
12568 # Invoke $ECHO with all args, space-separated.
12569 func_echo_all ()
12570 {
12571 $ECHO ""
12572 }
12573
12574 case "$ECHO" in
12575 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12576 $as_echo "printf" >&6; } ;;
12577 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12578 $as_echo "print -r" >&6; } ;;
12579 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12580 $as_echo "cat" >&6; } ;;
12581 esac
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12597 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12598 if ${ac_cv_path_SED+:} false; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12602 for ac_i in 1 2 3 4 5 6 7; do
12603 ac_script="$ac_script$as_nl$ac_script"
12604 done
12605 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12606 { ac_script=; unset ac_script;}
12607 if test -z "$SED"; then
12608 ac_path_SED_found=false
12609 # Loop through the user's path and test for each of PROGNAME-LIST
12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611 for as_dir in $PATH
12612 do
12613 IFS=$as_save_IFS
12614 test -z "$as_dir" && as_dir=.
12615 for ac_prog in sed gsed; do
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12618 as_fn_executable_p "$ac_path_SED" || continue
12619 # Check for GNU ac_path_SED and select it if it is found.
12620 # Check for GNU $ac_path_SED
12621 case `"$ac_path_SED" --version 2>&1` in
12622 *GNU*)
12623 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12624 *)
12625 ac_count=0
12626 $as_echo_n 0123456789 >"conftest.in"
12627 while :
12628 do
12629 cat "conftest.in" "conftest.in" >"conftest.tmp"
12630 mv "conftest.tmp" "conftest.in"
12631 cp "conftest.in" "conftest.nl"
12632 $as_echo '' >> "conftest.nl"
12633 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12635 as_fn_arith $ac_count + 1 && ac_count=$as_val
12636 if test $ac_count -gt ${ac_path_SED_max-0}; then
12637 # Best one so far, save it but keep looking for a better one
12638 ac_cv_path_SED="$ac_path_SED"
12639 ac_path_SED_max=$ac_count
12640 fi
12641 # 10*(2^10) chars as input seems more than enough
12642 test $ac_count -gt 10 && break
12643 done
12644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12645 esac
12646
12647 $ac_path_SED_found && break 3
12648 done
12649 done
12650 done
12651 IFS=$as_save_IFS
12652 if test -z "$ac_cv_path_SED"; then
12653 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12654 fi
12655 else
12656 ac_cv_path_SED=$SED
12657 fi
12658
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12661 $as_echo "$ac_cv_path_SED" >&6; }
12662 SED="$ac_cv_path_SED"
12663 rm -f conftest.sed
12664
12665 test -z "$SED" && SED=sed
12666 Xsed="$SED -e 1s/^X//"
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12679 $as_echo_n "checking for fgrep... " >&6; }
12680 if ${ac_cv_path_FGREP+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12684 then ac_cv_path_FGREP="$GREP -F"
12685 else
12686 if test -z "$FGREP"; then
12687 ac_path_FGREP_found=false
12688 # Loop through the user's path and test for each of PROGNAME-LIST
12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12691 do
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
12694 for ac_prog in fgrep; do
12695 for ac_exec_ext in '' $ac_executable_extensions; do
12696 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12697 as_fn_executable_p "$ac_path_FGREP" || continue
12698 # Check for GNU ac_path_FGREP and select it if it is found.
12699 # Check for GNU $ac_path_FGREP
12700 case `"$ac_path_FGREP" --version 2>&1` in
12701 *GNU*)
12702 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12703 *)
12704 ac_count=0
12705 $as_echo_n 0123456789 >"conftest.in"
12706 while :
12707 do
12708 cat "conftest.in" "conftest.in" >"conftest.tmp"
12709 mv "conftest.tmp" "conftest.in"
12710 cp "conftest.in" "conftest.nl"
12711 $as_echo 'FGREP' >> "conftest.nl"
12712 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12714 as_fn_arith $ac_count + 1 && ac_count=$as_val
12715 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12716 # Best one so far, save it but keep looking for a better one
12717 ac_cv_path_FGREP="$ac_path_FGREP"
12718 ac_path_FGREP_max=$ac_count
12719 fi
12720 # 10*(2^10) chars as input seems more than enough
12721 test $ac_count -gt 10 && break
12722 done
12723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12724 esac
12725
12726 $ac_path_FGREP_found && break 3
12727 done
12728 done
12729 done
12730 IFS=$as_save_IFS
12731 if test -z "$ac_cv_path_FGREP"; then
12732 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12733 fi
12734 else
12735 ac_cv_path_FGREP=$FGREP
12736 fi
12737
12738 fi
12739 fi
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12741 $as_echo "$ac_cv_path_FGREP" >&6; }
12742 FGREP="$ac_cv_path_FGREP"
12743
12744
12745 test -z "$GREP" && GREP=grep
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765 # Check whether --with-gnu-ld was given.
12766 if test "${with_gnu_ld+set}" = set; then :
12767 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12768 else
12769 with_gnu_ld=no
12770 fi
12771
12772 ac_prog=ld
12773 if test "$GCC" = yes; then
12774 # Check if gcc -print-prog-name=ld gives a path.
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12776 $as_echo_n "checking for ld used by $CC... " >&6; }
12777 case $host in
12778 *-*-mingw*)
12779 # gcc leaves a trailing carriage return which upsets mingw
12780 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12781 *)
12782 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12783 esac
12784 case $ac_prog in
12785 # Accept absolute paths.
12786 [\\/]* | ?:[\\/]*)
12787 re_direlt='/[^/][^/]*/\.\./'
12788 # Canonicalize the pathname of ld
12789 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12790 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12791 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12792 done
12793 test -z "$LD" && LD="$ac_prog"
12794 ;;
12795 "")
12796 # If it fails, then pretend we aren't using GCC.
12797 ac_prog=ld
12798 ;;
12799 *)
12800 # If it is relative, then search for the first ld in PATH.
12801 with_gnu_ld=unknown
12802 ;;
12803 esac
12804 elif test "$with_gnu_ld" = yes; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12806 $as_echo_n "checking for GNU ld... " >&6; }
12807 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12809 $as_echo_n "checking for non-GNU ld... " >&6; }
12810 fi
12811 if ${lt_cv_path_LD+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 if test -z "$LD"; then
12815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12816 for ac_dir in $PATH; do
12817 IFS="$lt_save_ifs"
12818 test -z "$ac_dir" && ac_dir=.
12819 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12820 lt_cv_path_LD="$ac_dir/$ac_prog"
12821 # Check to see if the program is GNU ld. I'd rather use --version,
12822 # but apparently some variants of GNU ld only accept -v.
12823 # Break only if it was the GNU/non-GNU ld that we prefer.
12824 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12825 *GNU* | *'with BFD'*)
12826 test "$with_gnu_ld" != no && break
12827 ;;
12828 *)
12829 test "$with_gnu_ld" != yes && break
12830 ;;
12831 esac
12832 fi
12833 done
12834 IFS="$lt_save_ifs"
12835 else
12836 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12837 fi
12838 fi
12839
12840 LD="$lt_cv_path_LD"
12841 if test -n "$LD"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12843 $as_echo "$LD" >&6; }
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12847 fi
12848 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12850 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12851 if ${lt_cv_prog_gnu_ld+:} false; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12855 case `$LD -v 2>&1 </dev/null` in
12856 *GNU* | *'with BFD'*)
12857 lt_cv_prog_gnu_ld=yes
12858 ;;
12859 *)
12860 lt_cv_prog_gnu_ld=no
12861 ;;
12862 esac
12863 fi
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12865 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12866 with_gnu_ld=$lt_cv_prog_gnu_ld
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12877 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12878 if ${lt_cv_path_NM+:} false; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 if test -n "$NM"; then
12882 # Let the user override the test.
12883 lt_cv_path_NM="$NM"
12884 else
12885 lt_nm_to_check="${ac_tool_prefix}nm"
12886 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12887 lt_nm_to_check="$lt_nm_to_check nm"
12888 fi
12889 for lt_tmp_nm in $lt_nm_to_check; do
12890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12891 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12892 IFS="$lt_save_ifs"
12893 test -z "$ac_dir" && ac_dir=.
12894 tmp_nm="$ac_dir/$lt_tmp_nm"
12895 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12896 # Check to see if the nm accepts a BSD-compat flag.
12897 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12898 # nm: unknown option "B" ignored
12899 # Tru64's nm complains that /dev/null is an invalid object file
12900 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12901 */dev/null* | *'Invalid file or object type'*)
12902 lt_cv_path_NM="$tmp_nm -B"
12903 break
12904 ;;
12905 *)
12906 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12907 */dev/null*)
12908 lt_cv_path_NM="$tmp_nm -p"
12909 break
12910 ;;
12911 *)
12912 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12913 continue # so that we can try to find one that supports BSD flags
12914 ;;
12915 esac
12916 ;;
12917 esac
12918 fi
12919 done
12920 IFS="$lt_save_ifs"
12921 done
12922 : ${lt_cv_path_NM=no}
12923 fi
12924 fi
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12926 $as_echo "$lt_cv_path_NM" >&6; }
12927 if test "$lt_cv_path_NM" != "no"; then
12928 NM="$lt_cv_path_NM"
12929 else
12930 # Didn't find any BSD compatible name lister, look for dumpbin.
12931 if test -n "$DUMPBIN"; then :
12932 # Let the user override the test.
12933 else
12934 if test -n "$ac_tool_prefix"; then
12935 for ac_prog in dumpbin "link -dump"
12936 do
12937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12940 $as_echo_n "checking for $ac_word... " >&6; }
12941 if ${ac_cv_prog_DUMPBIN+:} false; then :
12942 $as_echo_n "(cached) " >&6
12943 else
12944 if test -n "$DUMPBIN"; then
12945 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12946 else
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12949 do
12950 IFS=$as_save_IFS
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12954 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 break 2
12957 fi
12958 done
12959 done
12960 IFS=$as_save_IFS
12961
12962 fi
12963 fi
12964 DUMPBIN=$ac_cv_prog_DUMPBIN
12965 if test -n "$DUMPBIN"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12967 $as_echo "$DUMPBIN" >&6; }
12968 else
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 $as_echo "no" >&6; }
12971 fi
12972
12973
12974 test -n "$DUMPBIN" && break
12975 done
12976 fi
12977 if test -z "$DUMPBIN"; then
12978 ac_ct_DUMPBIN=$DUMPBIN
12979 for ac_prog in dumpbin "link -dump"
12980 do
12981 # Extract the first word of "$ac_prog", so it can be a program name with args.
12982 set dummy $ac_prog; ac_word=$2
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984 $as_echo_n "checking for $ac_word... " >&6; }
12985 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
12986 $as_echo_n "(cached) " >&6
12987 else
12988 if test -n "$ac_ct_DUMPBIN"; then
12989 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12990 else
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992 for as_dir in $PATH
12993 do
12994 IFS=$as_save_IFS
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12998 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 break 2
13001 fi
13002 done
13003 done
13004 IFS=$as_save_IFS
13005
13006 fi
13007 fi
13008 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13009 if test -n "$ac_ct_DUMPBIN"; then
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13011 $as_echo "$ac_ct_DUMPBIN" >&6; }
13012 else
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13015 fi
13016
13017
13018 test -n "$ac_ct_DUMPBIN" && break
13019 done
13020
13021 if test "x$ac_ct_DUMPBIN" = x; then
13022 DUMPBIN=":"
13023 else
13024 case $cross_compiling:$ac_tool_warned in
13025 yes:)
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13028 ac_tool_warned=yes ;;
13029 esac
13030 DUMPBIN=$ac_ct_DUMPBIN
13031 fi
13032 fi
13033
13034 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13035 *COFF*)
13036 DUMPBIN="$DUMPBIN -symbols"
13037 ;;
13038 *)
13039 DUMPBIN=:
13040 ;;
13041 esac
13042 fi
13043
13044 if test "$DUMPBIN" != ":"; then
13045 NM="$DUMPBIN"
13046 fi
13047 fi
13048 test -z "$NM" && NM=nm
13049
13050
13051
13052
13053
13054
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13056 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13057 if ${lt_cv_nm_interface+:} false; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 lt_cv_nm_interface="BSD nm"
13061 echo "int some_variable = 0;" > conftest.$ac_ext
13062 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13063 (eval "$ac_compile" 2>conftest.err)
13064 cat conftest.err >&5
13065 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13066 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13067 cat conftest.err >&5
13068 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13069 cat conftest.out >&5
13070 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13071 lt_cv_nm_interface="MS dumpbin"
13072 fi
13073 rm -f conftest*
13074 fi
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13076 $as_echo "$lt_cv_nm_interface" >&6; }
13077
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13079 $as_echo_n "checking whether ln -s works... " >&6; }
13080 LN_S=$as_ln_s
13081 if test "$LN_S" = "ln -s"; then
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13083 $as_echo "yes" >&6; }
13084 else
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13086 $as_echo "no, using $LN_S" >&6; }
13087 fi
13088
13089 # find the maximum length of command line arguments
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13091 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13092 if ${lt_cv_sys_max_cmd_len+:} false; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 i=0
13096 teststring="ABCD"
13097
13098 case $build_os in
13099 msdosdjgpp*)
13100 # On DJGPP, this test can blow up pretty badly due to problems in libc
13101 # (any single argument exceeding 2000 bytes causes a buffer overrun
13102 # during glob expansion). Even if it were fixed, the result of this
13103 # check would be larger than it should be.
13104 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13105 ;;
13106
13107 gnu*)
13108 # Under GNU Hurd, this test is not required because there is
13109 # no limit to the length of command line arguments.
13110 # Libtool will interpret -1 as no limit whatsoever
13111 lt_cv_sys_max_cmd_len=-1;
13112 ;;
13113
13114 cygwin* | mingw* | cegcc*)
13115 # On Win9x/ME, this test blows up -- it succeeds, but takes
13116 # about 5 minutes as the teststring grows exponentially.
13117 # Worse, since 9x/ME are not pre-emptively multitasking,
13118 # you end up with a "frozen" computer, even though with patience
13119 # the test eventually succeeds (with a max line length of 256k).
13120 # Instead, let's just punt: use the minimum linelength reported by
13121 # all of the supported platforms: 8192 (on NT/2K/XP).
13122 lt_cv_sys_max_cmd_len=8192;
13123 ;;
13124
13125 mint*)
13126 # On MiNT this can take a long time and run out of memory.
13127 lt_cv_sys_max_cmd_len=8192;
13128 ;;
13129
13130 amigaos*)
13131 # On AmigaOS with pdksh, this test takes hours, literally.
13132 # So we just punt and use a minimum line length of 8192.
13133 lt_cv_sys_max_cmd_len=8192;
13134 ;;
13135
13136 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13137 # This has been around since 386BSD, at least. Likely further.
13138 if test -x /sbin/sysctl; then
13139 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13140 elif test -x /usr/sbin/sysctl; then
13141 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13142 else
13143 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13144 fi
13145 # And add a safety zone
13146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13148 ;;
13149
13150 interix*)
13151 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13152 lt_cv_sys_max_cmd_len=196608
13153 ;;
13154
13155 osf*)
13156 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13157 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13158 # nice to cause kernel panics so lets avoid the loop below.
13159 # First set a reasonable default.
13160 lt_cv_sys_max_cmd_len=16384
13161 #
13162 if test -x /sbin/sysconfig; then
13163 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13164 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13165 esac
13166 fi
13167 ;;
13168 sco3.2v5*)
13169 lt_cv_sys_max_cmd_len=102400
13170 ;;
13171 sysv5* | sco5v6* | sysv4.2uw2*)
13172 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13173 if test -n "$kargmax"; then
13174 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13175 else
13176 lt_cv_sys_max_cmd_len=32768
13177 fi
13178 ;;
13179 *)
13180 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13181 if test -n "$lt_cv_sys_max_cmd_len"; then
13182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13184 else
13185 # Make teststring a little bigger before we do anything with it.
13186 # a 1K string should be a reasonable start.
13187 for i in 1 2 3 4 5 6 7 8 ; do
13188 teststring=$teststring$teststring
13189 done
13190 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13191 # If test is not a shell built-in, we'll probably end up computing a
13192 # maximum length that is only half of the actual maximum length, but
13193 # we can't tell.
13194 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13195 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13196 test $i != 17 # 1/2 MB should be enough
13197 do
13198 i=`expr $i + 1`
13199 teststring=$teststring$teststring
13200 done
13201 # Only check the string length outside the loop.
13202 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13203 teststring=
13204 # Add a significant safety factor because C++ compilers can tack on
13205 # massive amounts of additional arguments before passing them to the
13206 # linker. It appears as though 1/2 is a usable value.
13207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13208 fi
13209 ;;
13210 esac
13211
13212 fi
13213
13214 if test -n $lt_cv_sys_max_cmd_len ; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13216 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13217 else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13219 $as_echo "none" >&6; }
13220 fi
13221 max_cmd_len=$lt_cv_sys_max_cmd_len
13222
13223
13224
13225
13226
13227
13228 : ${CP="cp -f"}
13229 : ${MV="mv -f"}
13230 : ${RM="rm -f"}
13231
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13233 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13234 # Try some XSI features
13235 xsi_shell=no
13236 ( _lt_dummy="a/b/c"
13237 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13238 = c,a/b,, \
13239 && eval 'test $(( 1 + 1 )) -eq 2 \
13240 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13241 && xsi_shell=yes
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13243 $as_echo "$xsi_shell" >&6; }
13244
13245
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13247 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13248 lt_shell_append=no
13249 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13250 >/dev/null 2>&1 \
13251 && lt_shell_append=yes
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13253 $as_echo "$lt_shell_append" >&6; }
13254
13255
13256 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13257 lt_unset=unset
13258 else
13259 lt_unset=false
13260 fi
13261
13262
13263
13264
13265
13266 # test EBCDIC or ASCII
13267 case `echo X|tr X '\101'` in
13268 A) # ASCII based system
13269 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13270 lt_SP2NL='tr \040 \012'
13271 lt_NL2SP='tr \015\012 \040\040'
13272 ;;
13273 *) # EBCDIC based system
13274 lt_SP2NL='tr \100 \n'
13275 lt_NL2SP='tr \r\n \100\100'
13276 ;;
13277 esac
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13288 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13289 if ${lt_cv_ld_reload_flag+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 lt_cv_ld_reload_flag='-r'
13293 fi
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13295 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13296 reload_flag=$lt_cv_ld_reload_flag
13297 case $reload_flag in
13298 "" | " "*) ;;
13299 *) reload_flag=" $reload_flag" ;;
13300 esac
13301 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13302 case $host_os in
13303 darwin*)
13304 if test "$GCC" = yes; then
13305 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13306 else
13307 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13308 fi
13309 ;;
13310 esac
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320 if test -n "$ac_tool_prefix"; then
13321 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13322 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13324 $as_echo_n "checking for $ac_word... " >&6; }
13325 if ${ac_cv_prog_OBJDUMP+:} false; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 if test -n "$OBJDUMP"; then
13329 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13330 else
13331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332 for as_dir in $PATH
13333 do
13334 IFS=$as_save_IFS
13335 test -z "$as_dir" && as_dir=.
13336 for ac_exec_ext in '' $ac_executable_extensions; do
13337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13338 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13340 break 2
13341 fi
13342 done
13343 done
13344 IFS=$as_save_IFS
13345
13346 fi
13347 fi
13348 OBJDUMP=$ac_cv_prog_OBJDUMP
13349 if test -n "$OBJDUMP"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13351 $as_echo "$OBJDUMP" >&6; }
13352 else
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13355 fi
13356
13357
13358 fi
13359 if test -z "$ac_cv_prog_OBJDUMP"; then
13360 ac_ct_OBJDUMP=$OBJDUMP
13361 # Extract the first word of "objdump", so it can be a program name with args.
13362 set dummy objdump; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 if test -n "$ac_ct_OBJDUMP"; then
13369 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13373 do
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13378 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13381 fi
13382 done
13383 done
13384 IFS=$as_save_IFS
13385
13386 fi
13387 fi
13388 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13389 if test -n "$ac_ct_OBJDUMP"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13391 $as_echo "$ac_ct_OBJDUMP" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395 fi
13396
13397 if test "x$ac_ct_OBJDUMP" = x; then
13398 OBJDUMP="false"
13399 else
13400 case $cross_compiling:$ac_tool_warned in
13401 yes:)
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13404 ac_tool_warned=yes ;;
13405 esac
13406 OBJDUMP=$ac_ct_OBJDUMP
13407 fi
13408 else
13409 OBJDUMP="$ac_cv_prog_OBJDUMP"
13410 fi
13411
13412 test -z "$OBJDUMP" && OBJDUMP=objdump
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13423 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13424 if ${lt_cv_deplibs_check_method+:} false; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 lt_cv_file_magic_cmd='$MAGIC_CMD'
13428 lt_cv_file_magic_test_file=
13429 lt_cv_deplibs_check_method='unknown'
13430 # Need to set the preceding variable on all platforms that support
13431 # interlibrary dependencies.
13432 # 'none' -- dependencies not supported.
13433 # `unknown' -- same as none, but documents that we really don't know.
13434 # 'pass_all' -- all dependencies passed with no checks.
13435 # 'test_compile' -- check by making test program.
13436 # 'file_magic [[regex]]' -- check by looking for files in library path
13437 # which responds to the $file_magic_cmd with a given extended regex.
13438 # If you have `file' or equivalent on your system and you're not sure
13439 # whether `pass_all' will *always* work, you probably want this one.
13440
13441 case $host_os in
13442 aix[4-9]*)
13443 lt_cv_deplibs_check_method=pass_all
13444 ;;
13445
13446 beos*)
13447 lt_cv_deplibs_check_method=pass_all
13448 ;;
13449
13450 bsdi[45]*)
13451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13452 lt_cv_file_magic_cmd='/usr/bin/file -L'
13453 lt_cv_file_magic_test_file=/shlib/libc.so
13454 ;;
13455
13456 cygwin*)
13457 # func_win32_libid is a shell function defined in ltmain.sh
13458 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13459 lt_cv_file_magic_cmd='func_win32_libid'
13460 ;;
13461
13462 mingw* | pw32*)
13463 # Base MSYS/MinGW do not provide the 'file' command needed by
13464 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13465 # unless we find 'file', for example because we are cross-compiling.
13466 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13467 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13468 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13469 lt_cv_file_magic_cmd='func_win32_libid'
13470 else
13471 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13472 lt_cv_file_magic_cmd='$OBJDUMP -f'
13473 fi
13474 ;;
13475
13476 cegcc*)
13477 # use the weaker test based on 'objdump'. See mingw*.
13478 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13479 lt_cv_file_magic_cmd='$OBJDUMP -f'
13480 ;;
13481
13482 darwin* | rhapsody*)
13483 lt_cv_deplibs_check_method=pass_all
13484 ;;
13485
13486 freebsd* | dragonfly*)
13487 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13488 case $host_cpu in
13489 i*86 )
13490 # Not sure whether the presence of OpenBSD here was a mistake.
13491 # Let's accept both of them until this is cleared up.
13492 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13493 lt_cv_file_magic_cmd=/usr/bin/file
13494 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13495 ;;
13496 esac
13497 else
13498 lt_cv_deplibs_check_method=pass_all
13499 fi
13500 ;;
13501
13502 gnu*)
13503 lt_cv_deplibs_check_method=pass_all
13504 ;;
13505
13506 haiku*)
13507 lt_cv_deplibs_check_method=pass_all
13508 ;;
13509
13510 hpux10.20* | hpux11*)
13511 lt_cv_file_magic_cmd=/usr/bin/file
13512 case $host_cpu in
13513 ia64*)
13514 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13515 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13516 ;;
13517 hppa*64*)
13518 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]'
13519 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13520 ;;
13521 *)
13522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13523 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13524 ;;
13525 esac
13526 ;;
13527
13528 interix[3-9]*)
13529 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13531 ;;
13532
13533 irix5* | irix6* | nonstopux*)
13534 case $LD in
13535 *-32|*"-32 ") libmagic=32-bit;;
13536 *-n32|*"-n32 ") libmagic=N32;;
13537 *-64|*"-64 ") libmagic=64-bit;;
13538 *) libmagic=never-match;;
13539 esac
13540 lt_cv_deplibs_check_method=pass_all
13541 ;;
13542
13543 # This must be Linux ELF.
13544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13545 lt_cv_deplibs_check_method=pass_all
13546 ;;
13547
13548 netbsd*)
13549 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13551 else
13552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13553 fi
13554 ;;
13555
13556 newos6*)
13557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13558 lt_cv_file_magic_cmd=/usr/bin/file
13559 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13560 ;;
13561
13562 *nto* | *qnx*)
13563 lt_cv_deplibs_check_method=pass_all
13564 ;;
13565
13566 openbsd*)
13567 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13569 else
13570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13571 fi
13572 ;;
13573
13574 osf3* | osf4* | osf5*)
13575 lt_cv_deplibs_check_method=pass_all
13576 ;;
13577
13578 rdos*)
13579 lt_cv_deplibs_check_method=pass_all
13580 ;;
13581
13582 solaris*)
13583 lt_cv_deplibs_check_method=pass_all
13584 ;;
13585
13586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13587 lt_cv_deplibs_check_method=pass_all
13588 ;;
13589
13590 sysv4 | sysv4.3*)
13591 case $host_vendor in
13592 motorola)
13593 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]'
13594 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13595 ;;
13596 ncr)
13597 lt_cv_deplibs_check_method=pass_all
13598 ;;
13599 sequent)
13600 lt_cv_file_magic_cmd='/bin/file'
13601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13602 ;;
13603 sni)
13604 lt_cv_file_magic_cmd='/bin/file'
13605 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13606 lt_cv_file_magic_test_file=/lib/libc.so
13607 ;;
13608 siemens)
13609 lt_cv_deplibs_check_method=pass_all
13610 ;;
13611 pc)
13612 lt_cv_deplibs_check_method=pass_all
13613 ;;
13614 esac
13615 ;;
13616
13617 tpf*)
13618 lt_cv_deplibs_check_method=pass_all
13619 ;;
13620 esac
13621
13622 fi
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13624 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13625 file_magic_cmd=$lt_cv_file_magic_cmd
13626 deplibs_check_method=$lt_cv_deplibs_check_method
13627 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640 if test -n "$ac_tool_prefix"; then
13641 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13642 set dummy ${ac_tool_prefix}ar; ac_word=$2
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13644 $as_echo_n "checking for $ac_word... " >&6; }
13645 if ${ac_cv_prog_AR+:} false; then :
13646 $as_echo_n "(cached) " >&6
13647 else
13648 if test -n "$AR"; then
13649 ac_cv_prog_AR="$AR" # Let the user override the test.
13650 else
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13653 do
13654 IFS=$as_save_IFS
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658 ac_cv_prog_AR="${ac_tool_prefix}ar"
13659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13660 break 2
13661 fi
13662 done
13663 done
13664 IFS=$as_save_IFS
13665
13666 fi
13667 fi
13668 AR=$ac_cv_prog_AR
13669 if test -n "$AR"; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13671 $as_echo "$AR" >&6; }
13672 else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13675 fi
13676
13677
13678 fi
13679 if test -z "$ac_cv_prog_AR"; then
13680 ac_ct_AR=$AR
13681 # Extract the first word of "ar", so it can be a program name with args.
13682 set dummy ar; ac_word=$2
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13684 $as_echo_n "checking for $ac_word... " >&6; }
13685 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 if test -n "$ac_ct_AR"; then
13689 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13690 else
13691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13692 for as_dir in $PATH
13693 do
13694 IFS=$as_save_IFS
13695 test -z "$as_dir" && as_dir=.
13696 for ac_exec_ext in '' $ac_executable_extensions; do
13697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13698 ac_cv_prog_ac_ct_AR="ar"
13699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13700 break 2
13701 fi
13702 done
13703 done
13704 IFS=$as_save_IFS
13705
13706 fi
13707 fi
13708 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13709 if test -n "$ac_ct_AR"; then
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13711 $as_echo "$ac_ct_AR" >&6; }
13712 else
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714 $as_echo "no" >&6; }
13715 fi
13716
13717 if test "x$ac_ct_AR" = x; then
13718 AR="false"
13719 else
13720 case $cross_compiling:$ac_tool_warned in
13721 yes:)
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13724 ac_tool_warned=yes ;;
13725 esac
13726 AR=$ac_ct_AR
13727 fi
13728 else
13729 AR="$ac_cv_prog_AR"
13730 fi
13731
13732 test -z "$AR" && AR=ar
13733 test -z "$AR_FLAGS" && AR_FLAGS=cru
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745 if test -n "$ac_tool_prefix"; then
13746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13747 set dummy ${ac_tool_prefix}strip; ac_word=$2
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13749 $as_echo_n "checking for $ac_word... " >&6; }
13750 if ${ac_cv_prog_STRIP+:} false; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 if test -n "$STRIP"; then
13754 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13755 else
13756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13757 for as_dir in $PATH
13758 do
13759 IFS=$as_save_IFS
13760 test -z "$as_dir" && as_dir=.
13761 for ac_exec_ext in '' $ac_executable_extensions; do
13762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13763 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13765 break 2
13766 fi
13767 done
13768 done
13769 IFS=$as_save_IFS
13770
13771 fi
13772 fi
13773 STRIP=$ac_cv_prog_STRIP
13774 if test -n "$STRIP"; then
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13776 $as_echo "$STRIP" >&6; }
13777 else
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13780 fi
13781
13782
13783 fi
13784 if test -z "$ac_cv_prog_STRIP"; then
13785 ac_ct_STRIP=$STRIP
13786 # Extract the first word of "strip", so it can be a program name with args.
13787 set dummy strip; ac_word=$2
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13789 $as_echo_n "checking for $ac_word... " >&6; }
13790 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13791 $as_echo_n "(cached) " >&6
13792 else
13793 if test -n "$ac_ct_STRIP"; then
13794 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13795 else
13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797 for as_dir in $PATH
13798 do
13799 IFS=$as_save_IFS
13800 test -z "$as_dir" && as_dir=.
13801 for ac_exec_ext in '' $ac_executable_extensions; do
13802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13803 ac_cv_prog_ac_ct_STRIP="strip"
13804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13805 break 2
13806 fi
13807 done
13808 done
13809 IFS=$as_save_IFS
13810
13811 fi
13812 fi
13813 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13814 if test -n "$ac_ct_STRIP"; then
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13816 $as_echo "$ac_ct_STRIP" >&6; }
13817 else
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13819 $as_echo "no" >&6; }
13820 fi
13821
13822 if test "x$ac_ct_STRIP" = x; then
13823 STRIP=":"
13824 else
13825 case $cross_compiling:$ac_tool_warned in
13826 yes:)
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13829 ac_tool_warned=yes ;;
13830 esac
13831 STRIP=$ac_ct_STRIP
13832 fi
13833 else
13834 STRIP="$ac_cv_prog_STRIP"
13835 fi
13836
13837 test -z "$STRIP" && STRIP=:
13838
13839
13840
13841
13842
13843
13844 if test -n "$ac_tool_prefix"; then
13845 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13846 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13848 $as_echo_n "checking for $ac_word... " >&6; }
13849 if ${ac_cv_prog_RANLIB+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 if test -n "$RANLIB"; then
13853 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13854 else
13855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856 for as_dir in $PATH
13857 do
13858 IFS=$as_save_IFS
13859 test -z "$as_dir" && as_dir=.
13860 for ac_exec_ext in '' $ac_executable_extensions; do
13861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13862 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13864 break 2
13865 fi
13866 done
13867 done
13868 IFS=$as_save_IFS
13869
13870 fi
13871 fi
13872 RANLIB=$ac_cv_prog_RANLIB
13873 if test -n "$RANLIB"; then
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13875 $as_echo "$RANLIB" >&6; }
13876 else
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13878 $as_echo "no" >&6; }
13879 fi
13880
13881
13882 fi
13883 if test -z "$ac_cv_prog_RANLIB"; then
13884 ac_ct_RANLIB=$RANLIB
13885 # Extract the first word of "ranlib", so it can be a program name with args.
13886 set dummy ranlib; ac_word=$2
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13888 $as_echo_n "checking for $ac_word... " >&6; }
13889 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 if test -n "$ac_ct_RANLIB"; then
13893 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13894 else
13895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896 for as_dir in $PATH
13897 do
13898 IFS=$as_save_IFS
13899 test -z "$as_dir" && as_dir=.
13900 for ac_exec_ext in '' $ac_executable_extensions; do
13901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13902 ac_cv_prog_ac_ct_RANLIB="ranlib"
13903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 break 2
13905 fi
13906 done
13907 done
13908 IFS=$as_save_IFS
13909
13910 fi
13911 fi
13912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13913 if test -n "$ac_ct_RANLIB"; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13915 $as_echo "$ac_ct_RANLIB" >&6; }
13916 else
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 $as_echo "no" >&6; }
13919 fi
13920
13921 if test "x$ac_ct_RANLIB" = x; then
13922 RANLIB=":"
13923 else
13924 case $cross_compiling:$ac_tool_warned in
13925 yes:)
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13928 ac_tool_warned=yes ;;
13929 esac
13930 RANLIB=$ac_ct_RANLIB
13931 fi
13932 else
13933 RANLIB="$ac_cv_prog_RANLIB"
13934 fi
13935
13936 test -z "$RANLIB" && RANLIB=:
13937
13938
13939
13940
13941
13942
13943 # Determine commands to create old-style static archives.
13944 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13945 old_postinstall_cmds='chmod 644 $oldlib'
13946 old_postuninstall_cmds=
13947
13948 if test -n "$RANLIB"; then
13949 case $host_os in
13950 openbsd*)
13951 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13952 ;;
13953 *)
13954 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13955 ;;
13956 esac
13957 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13958 fi
13959
13960 case $host_os in
13961 darwin*)
13962 lock_old_archive_extraction=yes ;;
13963 *)
13964 lock_old_archive_extraction=no ;;
13965 esac
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005 # If no C compiler was specified, use CC.
14006 LTCC=${LTCC-"$CC"}
14007
14008 # If no C compiler flags were specified, use CFLAGS.
14009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14010
14011 # Allow CC to be a program name with arguments.
14012 compiler=$CC
14013
14014
14015 # Check for command to grab the raw symbol name followed by C symbol from nm.
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14017 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14018 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021
14022 # These are sane defaults that work on at least a few old systems.
14023 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14024
14025 # Character class describing NM global symbol codes.
14026 symcode='[BCDEGRST]'
14027
14028 # Regexp to match symbols that can be accessed directly from C.
14029 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14030
14031 # Define system-specific variables.
14032 case $host_os in
14033 aix*)
14034 symcode='[BCDT]'
14035 ;;
14036 cygwin* | mingw* | pw32* | cegcc*)
14037 symcode='[ABCDGISTW]'
14038 ;;
14039 hpux*)
14040 if test "$host_cpu" = ia64; then
14041 symcode='[ABCDEGRST]'
14042 fi
14043 ;;
14044 irix* | nonstopux*)
14045 symcode='[BCDEGRST]'
14046 ;;
14047 osf*)
14048 symcode='[BCDEGQRST]'
14049 ;;
14050 solaris*)
14051 symcode='[BDRT]'
14052 ;;
14053 sco3.2v5*)
14054 symcode='[DT]'
14055 ;;
14056 sysv4.2uw2*)
14057 symcode='[DT]'
14058 ;;
14059 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14060 symcode='[ABDT]'
14061 ;;
14062 sysv4)
14063 symcode='[DFNSTU]'
14064 ;;
14065 esac
14066
14067 # If we're using GNU nm, then use its standard symbol codes.
14068 case `$NM -V 2>&1` in
14069 *GNU* | *'with BFD'*)
14070 symcode='[ABCDGIRSTW]' ;;
14071 esac
14072
14073 # Transform an extracted symbol line into a proper C declaration.
14074 # Some systems (esp. on ia64) link data and code symbols differently,
14075 # so use this general approach.
14076 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14077
14078 # Transform an extracted symbol line into symbol name and symbol address
14079 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14080 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'"
14081
14082 # Handle CRLF in mingw tool chain
14083 opt_cr=
14084 case $build_os in
14085 mingw*)
14086 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14087 ;;
14088 esac
14089
14090 # Try without a prefix underscore, then with it.
14091 for ac_symprfx in "" "_"; do
14092
14093 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14094 symxfrm="\\1 $ac_symprfx\\2 \\2"
14095
14096 # Write the raw and C identifiers.
14097 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14098 # Fake it for dumpbin and say T for any non-static function
14099 # and D for any global variable.
14100 # Also find C++ and __fastcall symbols from MSVC++,
14101 # which start with @ or ?.
14102 lt_cv_sys_global_symbol_pipe="$AWK '"\
14103 " {last_section=section; section=\$ 3};"\
14104 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14105 " \$ 0!~/External *\|/{next};"\
14106 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14107 " {if(hide[section]) next};"\
14108 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14109 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14110 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14111 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14112 " ' prfx=^$ac_symprfx"
14113 else
14114 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14115 fi
14116
14117 # Check to see that the pipe works correctly.
14118 pipe_works=no
14119
14120 rm -f conftest*
14121 cat > conftest.$ac_ext <<_LT_EOF
14122 #ifdef __cplusplus
14123 extern "C" {
14124 #endif
14125 char nm_test_var;
14126 void nm_test_func(void);
14127 void nm_test_func(void){}
14128 #ifdef __cplusplus
14129 }
14130 #endif
14131 int main(){nm_test_var='a';nm_test_func();return(0);}
14132 _LT_EOF
14133
14134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14135 (eval $ac_compile) 2>&5
14136 ac_status=$?
14137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14138 test $ac_status = 0; }; then
14139 # Now try to grab the symbols.
14140 nlist=conftest.nm
14141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14142 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14143 ac_status=$?
14144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14145 test $ac_status = 0; } && test -s "$nlist"; then
14146 # Try sorting and uniquifying the output.
14147 if sort "$nlist" | uniq > "$nlist"T; then
14148 mv -f "$nlist"T "$nlist"
14149 else
14150 rm -f "$nlist"T
14151 fi
14152
14153 # Make sure that we snagged all the symbols we need.
14154 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14155 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14156 cat <<_LT_EOF > conftest.$ac_ext
14157 #ifdef __cplusplus
14158 extern "C" {
14159 #endif
14160
14161 _LT_EOF
14162 # Now generate the symbol file.
14163 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14164
14165 cat <<_LT_EOF >> conftest.$ac_ext
14166
14167 /* The mapping between symbol names and symbols. */
14168 const struct {
14169 const char *name;
14170 void *address;
14171 }
14172 lt__PROGRAM__LTX_preloaded_symbols[] =
14173 {
14174 { "@PROGRAM@", (void *) 0 },
14175 _LT_EOF
14176 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14177 cat <<\_LT_EOF >> conftest.$ac_ext
14178 {0, (void *) 0}
14179 };
14180
14181 /* This works around a problem in FreeBSD linker */
14182 #ifdef FREEBSD_WORKAROUND
14183 static const void *lt_preloaded_setup() {
14184 return lt__PROGRAM__LTX_preloaded_symbols;
14185 }
14186 #endif
14187
14188 #ifdef __cplusplus
14189 }
14190 #endif
14191 _LT_EOF
14192 # Now try linking the two files.
14193 mv conftest.$ac_objext conftstm.$ac_objext
14194 lt_save_LIBS="$LIBS"
14195 lt_save_CFLAGS="$CFLAGS"
14196 LIBS="conftstm.$ac_objext"
14197 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14199 (eval $ac_link) 2>&5
14200 ac_status=$?
14201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14202 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14203 pipe_works=yes
14204 fi
14205 LIBS="$lt_save_LIBS"
14206 CFLAGS="$lt_save_CFLAGS"
14207 else
14208 echo "cannot find nm_test_func in $nlist" >&5
14209 fi
14210 else
14211 echo "cannot find nm_test_var in $nlist" >&5
14212 fi
14213 else
14214 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14215 fi
14216 else
14217 echo "$progname: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14219 fi
14220 rm -rf conftest* conftst*
14221
14222 # Do not use the global_symbol_pipe unless it works.
14223 if test "$pipe_works" = yes; then
14224 break
14225 else
14226 lt_cv_sys_global_symbol_pipe=
14227 fi
14228 done
14229
14230 fi
14231
14232 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14233 lt_cv_sys_global_symbol_to_cdecl=
14234 fi
14235 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14237 $as_echo "failed" >&6; }
14238 else
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14240 $as_echo "ok" >&6; }
14241 fi
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264 # Check whether --enable-libtool-lock was given.
14265 if test "${enable_libtool_lock+set}" = set; then :
14266 enableval=$enable_libtool_lock;
14267 fi
14268
14269 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14270
14271 # Some flags need to be propagated to the compiler or linker for good
14272 # libtool support.
14273 case $host in
14274 ia64-*-hpux*)
14275 # Find out which ABI we are using.
14276 echo 'int i;' > conftest.$ac_ext
14277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14278 (eval $ac_compile) 2>&5
14279 ac_status=$?
14280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14281 test $ac_status = 0; }; then
14282 case `/usr/bin/file conftest.$ac_objext` in
14283 *ELF-32*)
14284 HPUX_IA64_MODE="32"
14285 ;;
14286 *ELF-64*)
14287 HPUX_IA64_MODE="64"
14288 ;;
14289 esac
14290 fi
14291 rm -rf conftest*
14292 ;;
14293 *-*-irix6*)
14294 # Find out which ABI we are using.
14295 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14297 (eval $ac_compile) 2>&5
14298 ac_status=$?
14299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14300 test $ac_status = 0; }; then
14301 if test "$lt_cv_prog_gnu_ld" = yes; then
14302 case `/usr/bin/file conftest.$ac_objext` in
14303 *32-bit*)
14304 LD="${LD-ld} -melf32bsmip"
14305 ;;
14306 *N32*)
14307 LD="${LD-ld} -melf32bmipn32"
14308 ;;
14309 *64-bit*)
14310 LD="${LD-ld} -melf64bmip"
14311 ;;
14312 esac
14313 else
14314 case `/usr/bin/file conftest.$ac_objext` in
14315 *32-bit*)
14316 LD="${LD-ld} -32"
14317 ;;
14318 *N32*)
14319 LD="${LD-ld} -n32"
14320 ;;
14321 *64-bit*)
14322 LD="${LD-ld} -64"
14323 ;;
14324 esac
14325 fi
14326 fi
14327 rm -rf conftest*
14328 ;;
14329
14330 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14331 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14332 # Find out which ABI we are using.
14333 echo 'int i;' > conftest.$ac_ext
14334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14335 (eval $ac_compile) 2>&5
14336 ac_status=$?
14337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14338 test $ac_status = 0; }; then
14339 case `/usr/bin/file conftest.o` in
14340 *32-bit*)
14341 case $host in
14342 x86_64-*kfreebsd*-gnu)
14343 LD="${LD-ld} -m elf_i386_fbsd"
14344 ;;
14345 x86_64-*linux*)
14346 case `/usr/bin/file conftest.o` in
14347 *x86-64*)
14348 LD="${LD-ld} -m elf32_x86_64"
14349 ;;
14350 *)
14351 LD="${LD-ld} -m elf_i386"
14352 ;;
14353 esac
14354 ;;
14355 powerpc64le-*linux*)
14356 LD="${LD-ld} -m elf32lppclinux"
14357 ;;
14358 powerpc64-*linux*)
14359 LD="${LD-ld} -m elf32ppclinux"
14360 ;;
14361 s390x-*linux*)
14362 LD="${LD-ld} -m elf_s390"
14363 ;;
14364 sparc64-*linux*)
14365 LD="${LD-ld} -m elf32_sparc"
14366 ;;
14367 esac
14368 ;;
14369 *64-bit*)
14370 case $host in
14371 x86_64-*kfreebsd*-gnu)
14372 LD="${LD-ld} -m elf_x86_64_fbsd"
14373 ;;
14374 x86_64-*linux*)
14375 LD="${LD-ld} -m elf_x86_64"
14376 ;;
14377 powerpcle-*linux*)
14378 LD="${LD-ld} -m elf64lppc"
14379 ;;
14380 powerpc-*linux*)
14381 LD="${LD-ld} -m elf64ppc"
14382 ;;
14383 s390*-*linux*|s390*-*tpf*)
14384 LD="${LD-ld} -m elf64_s390"
14385 ;;
14386 sparc*-*linux*)
14387 LD="${LD-ld} -m elf64_sparc"
14388 ;;
14389 esac
14390 ;;
14391 esac
14392 fi
14393 rm -rf conftest*
14394 ;;
14395
14396 *-*-sco3.2v5*)
14397 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14398 SAVE_CFLAGS="$CFLAGS"
14399 CFLAGS="$CFLAGS -belf"
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14401 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14402 if ${lt_cv_cc_needs_belf+:} false; then :
14403 $as_echo_n "(cached) " >&6
14404 else
14405 ac_ext=c
14406 ac_cpp='$CPP $CPPFLAGS'
14407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14410
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14413
14414 int
14415 main ()
14416 {
14417
14418 ;
14419 return 0;
14420 }
14421 _ACEOF
14422 if ac_fn_c_try_link "$LINENO"; then :
14423 lt_cv_cc_needs_belf=yes
14424 else
14425 lt_cv_cc_needs_belf=no
14426 fi
14427 rm -f core conftest.err conftest.$ac_objext \
14428 conftest$ac_exeext conftest.$ac_ext
14429 ac_ext=c
14430 ac_cpp='$CPP $CPPFLAGS'
14431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14434
14435 fi
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14437 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14438 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14439 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14440 CFLAGS="$SAVE_CFLAGS"
14441 fi
14442 ;;
14443 sparc*-*solaris*)
14444 # Find out which ABI we are using.
14445 echo 'int i;' > conftest.$ac_ext
14446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14447 (eval $ac_compile) 2>&5
14448 ac_status=$?
14449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14450 test $ac_status = 0; }; then
14451 case `/usr/bin/file conftest.o` in
14452 *64-bit*)
14453 case $lt_cv_prog_gnu_ld in
14454 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14455 *)
14456 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14457 LD="${LD-ld} -64"
14458 fi
14459 ;;
14460 esac
14461 ;;
14462 esac
14463 fi
14464 rm -rf conftest*
14465 ;;
14466 esac
14467
14468 need_locks="$enable_libtool_lock"
14469
14470
14471 case $host_os in
14472 rhapsody* | darwin*)
14473 if test -n "$ac_tool_prefix"; then
14474 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14475 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14477 $as_echo_n "checking for $ac_word... " >&6; }
14478 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 if test -n "$DSYMUTIL"; then
14482 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14483 else
14484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14485 for as_dir in $PATH
14486 do
14487 IFS=$as_save_IFS
14488 test -z "$as_dir" && as_dir=.
14489 for ac_exec_ext in '' $ac_executable_extensions; do
14490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14491 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14493 break 2
14494 fi
14495 done
14496 done
14497 IFS=$as_save_IFS
14498
14499 fi
14500 fi
14501 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14502 if test -n "$DSYMUTIL"; then
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14504 $as_echo "$DSYMUTIL" >&6; }
14505 else
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14507 $as_echo "no" >&6; }
14508 fi
14509
14510
14511 fi
14512 if test -z "$ac_cv_prog_DSYMUTIL"; then
14513 ac_ct_DSYMUTIL=$DSYMUTIL
14514 # Extract the first word of "dsymutil", so it can be a program name with args.
14515 set dummy dsymutil; ac_word=$2
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14517 $as_echo_n "checking for $ac_word... " >&6; }
14518 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14519 $as_echo_n "(cached) " >&6
14520 else
14521 if test -n "$ac_ct_DSYMUTIL"; then
14522 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14523 else
14524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14525 for as_dir in $PATH
14526 do
14527 IFS=$as_save_IFS
14528 test -z "$as_dir" && as_dir=.
14529 for ac_exec_ext in '' $ac_executable_extensions; do
14530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14531 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14533 break 2
14534 fi
14535 done
14536 done
14537 IFS=$as_save_IFS
14538
14539 fi
14540 fi
14541 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14542 if test -n "$ac_ct_DSYMUTIL"; then
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14544 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14545 else
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14547 $as_echo "no" >&6; }
14548 fi
14549
14550 if test "x$ac_ct_DSYMUTIL" = x; then
14551 DSYMUTIL=":"
14552 else
14553 case $cross_compiling:$ac_tool_warned in
14554 yes:)
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14557 ac_tool_warned=yes ;;
14558 esac
14559 DSYMUTIL=$ac_ct_DSYMUTIL
14560 fi
14561 else
14562 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14563 fi
14564
14565 if test -n "$ac_tool_prefix"; then
14566 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14567 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14569 $as_echo_n "checking for $ac_word... " >&6; }
14570 if ${ac_cv_prog_NMEDIT+:} false; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 if test -n "$NMEDIT"; then
14574 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14575 else
14576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14577 for as_dir in $PATH
14578 do
14579 IFS=$as_save_IFS
14580 test -z "$as_dir" && as_dir=.
14581 for ac_exec_ext in '' $ac_executable_extensions; do
14582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14583 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14585 break 2
14586 fi
14587 done
14588 done
14589 IFS=$as_save_IFS
14590
14591 fi
14592 fi
14593 NMEDIT=$ac_cv_prog_NMEDIT
14594 if test -n "$NMEDIT"; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14596 $as_echo "$NMEDIT" >&6; }
14597 else
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14599 $as_echo "no" >&6; }
14600 fi
14601
14602
14603 fi
14604 if test -z "$ac_cv_prog_NMEDIT"; then
14605 ac_ct_NMEDIT=$NMEDIT
14606 # Extract the first word of "nmedit", so it can be a program name with args.
14607 set dummy nmedit; ac_word=$2
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14609 $as_echo_n "checking for $ac_word... " >&6; }
14610 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14611 $as_echo_n "(cached) " >&6
14612 else
14613 if test -n "$ac_ct_NMEDIT"; then
14614 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14615 else
14616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617 for as_dir in $PATH
14618 do
14619 IFS=$as_save_IFS
14620 test -z "$as_dir" && as_dir=.
14621 for ac_exec_ext in '' $ac_executable_extensions; do
14622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14623 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14625 break 2
14626 fi
14627 done
14628 done
14629 IFS=$as_save_IFS
14630
14631 fi
14632 fi
14633 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14634 if test -n "$ac_ct_NMEDIT"; then
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14636 $as_echo "$ac_ct_NMEDIT" >&6; }
14637 else
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14639 $as_echo "no" >&6; }
14640 fi
14641
14642 if test "x$ac_ct_NMEDIT" = x; then
14643 NMEDIT=":"
14644 else
14645 case $cross_compiling:$ac_tool_warned in
14646 yes:)
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14649 ac_tool_warned=yes ;;
14650 esac
14651 NMEDIT=$ac_ct_NMEDIT
14652 fi
14653 else
14654 NMEDIT="$ac_cv_prog_NMEDIT"
14655 fi
14656
14657 if test -n "$ac_tool_prefix"; then
14658 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14659 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661 $as_echo_n "checking for $ac_word... " >&6; }
14662 if ${ac_cv_prog_LIPO+:} false; then :
14663 $as_echo_n "(cached) " >&6
14664 else
14665 if test -n "$LIPO"; then
14666 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14667 else
14668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669 for as_dir in $PATH
14670 do
14671 IFS=$as_save_IFS
14672 test -z "$as_dir" && as_dir=.
14673 for ac_exec_ext in '' $ac_executable_extensions; do
14674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14675 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14677 break 2
14678 fi
14679 done
14680 done
14681 IFS=$as_save_IFS
14682
14683 fi
14684 fi
14685 LIPO=$ac_cv_prog_LIPO
14686 if test -n "$LIPO"; then
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14688 $as_echo "$LIPO" >&6; }
14689 else
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 $as_echo "no" >&6; }
14692 fi
14693
14694
14695 fi
14696 if test -z "$ac_cv_prog_LIPO"; then
14697 ac_ct_LIPO=$LIPO
14698 # Extract the first word of "lipo", so it can be a program name with args.
14699 set dummy lipo; ac_word=$2
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14701 $as_echo_n "checking for $ac_word... " >&6; }
14702 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14703 $as_echo_n "(cached) " >&6
14704 else
14705 if test -n "$ac_ct_LIPO"; then
14706 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14707 else
14708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14709 for as_dir in $PATH
14710 do
14711 IFS=$as_save_IFS
14712 test -z "$as_dir" && as_dir=.
14713 for ac_exec_ext in '' $ac_executable_extensions; do
14714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14715 ac_cv_prog_ac_ct_LIPO="lipo"
14716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14717 break 2
14718 fi
14719 done
14720 done
14721 IFS=$as_save_IFS
14722
14723 fi
14724 fi
14725 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14726 if test -n "$ac_ct_LIPO"; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14728 $as_echo "$ac_ct_LIPO" >&6; }
14729 else
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731 $as_echo "no" >&6; }
14732 fi
14733
14734 if test "x$ac_ct_LIPO" = x; then
14735 LIPO=":"
14736 else
14737 case $cross_compiling:$ac_tool_warned in
14738 yes:)
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14741 ac_tool_warned=yes ;;
14742 esac
14743 LIPO=$ac_ct_LIPO
14744 fi
14745 else
14746 LIPO="$ac_cv_prog_LIPO"
14747 fi
14748
14749 if test -n "$ac_tool_prefix"; then
14750 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14751 set dummy ${ac_tool_prefix}otool; ac_word=$2
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14753 $as_echo_n "checking for $ac_word... " >&6; }
14754 if ${ac_cv_prog_OTOOL+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 if test -n "$OTOOL"; then
14758 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14759 else
14760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14761 for as_dir in $PATH
14762 do
14763 IFS=$as_save_IFS
14764 test -z "$as_dir" && as_dir=.
14765 for ac_exec_ext in '' $ac_executable_extensions; do
14766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14767 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14769 break 2
14770 fi
14771 done
14772 done
14773 IFS=$as_save_IFS
14774
14775 fi
14776 fi
14777 OTOOL=$ac_cv_prog_OTOOL
14778 if test -n "$OTOOL"; then
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14780 $as_echo "$OTOOL" >&6; }
14781 else
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14783 $as_echo "no" >&6; }
14784 fi
14785
14786
14787 fi
14788 if test -z "$ac_cv_prog_OTOOL"; then
14789 ac_ct_OTOOL=$OTOOL
14790 # Extract the first word of "otool", so it can be a program name with args.
14791 set dummy otool; ac_word=$2
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14793 $as_echo_n "checking for $ac_word... " >&6; }
14794 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14795 $as_echo_n "(cached) " >&6
14796 else
14797 if test -n "$ac_ct_OTOOL"; then
14798 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14799 else
14800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14801 for as_dir in $PATH
14802 do
14803 IFS=$as_save_IFS
14804 test -z "$as_dir" && as_dir=.
14805 for ac_exec_ext in '' $ac_executable_extensions; do
14806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14807 ac_cv_prog_ac_ct_OTOOL="otool"
14808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14809 break 2
14810 fi
14811 done
14812 done
14813 IFS=$as_save_IFS
14814
14815 fi
14816 fi
14817 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14818 if test -n "$ac_ct_OTOOL"; then
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14820 $as_echo "$ac_ct_OTOOL" >&6; }
14821 else
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14823 $as_echo "no" >&6; }
14824 fi
14825
14826 if test "x$ac_ct_OTOOL" = x; then
14827 OTOOL=":"
14828 else
14829 case $cross_compiling:$ac_tool_warned in
14830 yes:)
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14833 ac_tool_warned=yes ;;
14834 esac
14835 OTOOL=$ac_ct_OTOOL
14836 fi
14837 else
14838 OTOOL="$ac_cv_prog_OTOOL"
14839 fi
14840
14841 if test -n "$ac_tool_prefix"; then
14842 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14843 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14845 $as_echo_n "checking for $ac_word... " >&6; }
14846 if ${ac_cv_prog_OTOOL64+:} false; then :
14847 $as_echo_n "(cached) " >&6
14848 else
14849 if test -n "$OTOOL64"; then
14850 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14851 else
14852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14853 for as_dir in $PATH
14854 do
14855 IFS=$as_save_IFS
14856 test -z "$as_dir" && as_dir=.
14857 for ac_exec_ext in '' $ac_executable_extensions; do
14858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14859 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14861 break 2
14862 fi
14863 done
14864 done
14865 IFS=$as_save_IFS
14866
14867 fi
14868 fi
14869 OTOOL64=$ac_cv_prog_OTOOL64
14870 if test -n "$OTOOL64"; then
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14872 $as_echo "$OTOOL64" >&6; }
14873 else
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14875 $as_echo "no" >&6; }
14876 fi
14877
14878
14879 fi
14880 if test -z "$ac_cv_prog_OTOOL64"; then
14881 ac_ct_OTOOL64=$OTOOL64
14882 # Extract the first word of "otool64", so it can be a program name with args.
14883 set dummy otool64; ac_word=$2
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14885 $as_echo_n "checking for $ac_word... " >&6; }
14886 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14887 $as_echo_n "(cached) " >&6
14888 else
14889 if test -n "$ac_ct_OTOOL64"; then
14890 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14891 else
14892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14893 for as_dir in $PATH
14894 do
14895 IFS=$as_save_IFS
14896 test -z "$as_dir" && as_dir=.
14897 for ac_exec_ext in '' $ac_executable_extensions; do
14898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14899 ac_cv_prog_ac_ct_OTOOL64="otool64"
14900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14901 break 2
14902 fi
14903 done
14904 done
14905 IFS=$as_save_IFS
14906
14907 fi
14908 fi
14909 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14910 if test -n "$ac_ct_OTOOL64"; then
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14912 $as_echo "$ac_ct_OTOOL64" >&6; }
14913 else
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14915 $as_echo "no" >&6; }
14916 fi
14917
14918 if test "x$ac_ct_OTOOL64" = x; then
14919 OTOOL64=":"
14920 else
14921 case $cross_compiling:$ac_tool_warned in
14922 yes:)
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14925 ac_tool_warned=yes ;;
14926 esac
14927 OTOOL64=$ac_ct_OTOOL64
14928 fi
14929 else
14930 OTOOL64="$ac_cv_prog_OTOOL64"
14931 fi
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14960 $as_echo_n "checking for -single_module linker flag... " >&6; }
14961 if ${lt_cv_apple_cc_single_mod+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 lt_cv_apple_cc_single_mod=no
14965 if test -z "${LT_MULTI_MODULE}"; then
14966 # By default we will add the -single_module flag. You can override
14967 # by either setting the environment variable LT_MULTI_MODULE
14968 # non-empty at configure time, or by adding -multi_module to the
14969 # link flags.
14970 rm -rf libconftest.dylib*
14971 echo "int foo(void){return 1;}" > conftest.c
14972 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14973 -dynamiclib -Wl,-single_module conftest.c" >&5
14974 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14975 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14976 _lt_result=$?
14977 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14978 lt_cv_apple_cc_single_mod=yes
14979 else
14980 cat conftest.err >&5
14981 fi
14982 rm -rf libconftest.dylib*
14983 rm -f conftest.*
14984 fi
14985 fi
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14987 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14989 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14990 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 lt_cv_ld_exported_symbols_list=no
14994 save_LDFLAGS=$LDFLAGS
14995 echo "_main" > conftest.sym
14996 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999
15000 int
15001 main ()
15002 {
15003
15004 ;
15005 return 0;
15006 }
15007 _ACEOF
15008 if ac_fn_c_try_link "$LINENO"; then :
15009 lt_cv_ld_exported_symbols_list=yes
15010 else
15011 lt_cv_ld_exported_symbols_list=no
15012 fi
15013 rm -f core conftest.err conftest.$ac_objext \
15014 conftest$ac_exeext conftest.$ac_ext
15015 LDFLAGS="$save_LDFLAGS"
15016
15017 fi
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15019 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15021 $as_echo_n "checking for -force_load linker flag... " >&6; }
15022 if ${lt_cv_ld_force_load+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 lt_cv_ld_force_load=no
15026 cat > conftest.c << _LT_EOF
15027 int forced_loaded() { return 2;}
15028 _LT_EOF
15029 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15030 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15031 echo "$AR cru libconftest.a conftest.o" >&5
15032 $AR cru libconftest.a conftest.o 2>&5
15033 cat > conftest.c << _LT_EOF
15034 int main() { return 0;}
15035 _LT_EOF
15036 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15037 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15038 _lt_result=$?
15039 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15040 lt_cv_ld_force_load=yes
15041 else
15042 cat conftest.err >&5
15043 fi
15044 rm -f conftest.err libconftest.a conftest conftest.c
15045 rm -rf conftest.dSYM
15046
15047 fi
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15049 $as_echo "$lt_cv_ld_force_load" >&6; }
15050 case $host_os in
15051 rhapsody* | darwin1.[012])
15052 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15053 darwin1.*)
15054 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15055 darwin*) # darwin 5.x on
15056 # if running on 10.5 or later, the deployment target defaults
15057 # to the OS version, if on x86, and 10.4, the deployment
15058 # target defaults to 10.4. Don't you love it?
15059 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15060 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15061 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15062 10.[012][,.]*)
15063 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15064 10.*)
15065 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15066 esac
15067 ;;
15068 esac
15069 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15070 _lt_dar_single_mod='$single_module'
15071 fi
15072 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15073 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15074 else
15075 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15076 fi
15077 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15078 _lt_dsymutil='~$DSYMUTIL $lib || :'
15079 else
15080 _lt_dsymutil=
15081 fi
15082 ;;
15083 esac
15084
15085
15086 for ac_header in dlfcn.h
15087 do :
15088 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15089 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15090 cat >>confdefs.h <<_ACEOF
15091 #define HAVE_DLFCN_H 1
15092 _ACEOF
15093
15094 fi
15095 done
15096
15097
15098
15099
15100
15101 # Set options
15102
15103
15104
15105 enable_dlopen=no
15106
15107
15108 enable_win32_dll=no
15109
15110
15111 # Check whether --enable-shared was given.
15112 if test "${enable_shared+set}" = set; then :
15113 enableval=$enable_shared; p=${PACKAGE-default}
15114 case $enableval in
15115 yes) enable_shared=yes ;;
15116 no) enable_shared=no ;;
15117 *)
15118 enable_shared=no
15119 # Look at the argument we got. We use all the common list separators.
15120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15121 for pkg in $enableval; do
15122 IFS="$lt_save_ifs"
15123 if test "X$pkg" = "X$p"; then
15124 enable_shared=yes
15125 fi
15126 done
15127 IFS="$lt_save_ifs"
15128 ;;
15129 esac
15130 else
15131 enable_shared=yes
15132 fi
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142 # Check whether --enable-static was given.
15143 if test "${enable_static+set}" = set; then :
15144 enableval=$enable_static; p=${PACKAGE-default}
15145 case $enableval in
15146 yes) enable_static=yes ;;
15147 no) enable_static=no ;;
15148 *)
15149 enable_static=no
15150 # Look at the argument we got. We use all the common list separators.
15151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15152 for pkg in $enableval; do
15153 IFS="$lt_save_ifs"
15154 if test "X$pkg" = "X$p"; then
15155 enable_static=yes
15156 fi
15157 done
15158 IFS="$lt_save_ifs"
15159 ;;
15160 esac
15161 else
15162 enable_static=yes
15163 fi
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174 # Check whether --with-pic was given.
15175 if test "${with_pic+set}" = set; then :
15176 withval=$with_pic; pic_mode="$withval"
15177 else
15178 pic_mode=default
15179 fi
15180
15181
15182 test -z "$pic_mode" && pic_mode=default
15183
15184
15185
15186
15187
15188
15189
15190 # Check whether --enable-fast-install was given.
15191 if test "${enable_fast_install+set}" = set; then :
15192 enableval=$enable_fast_install; p=${PACKAGE-default}
15193 case $enableval in
15194 yes) enable_fast_install=yes ;;
15195 no) enable_fast_install=no ;;
15196 *)
15197 enable_fast_install=no
15198 # Look at the argument we got. We use all the common list separators.
15199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15200 for pkg in $enableval; do
15201 IFS="$lt_save_ifs"
15202 if test "X$pkg" = "X$p"; then
15203 enable_fast_install=yes
15204 fi
15205 done
15206 IFS="$lt_save_ifs"
15207 ;;
15208 esac
15209 else
15210 enable_fast_install=yes
15211 fi
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223 # This can be used to rebuild libtool when needed
15224 LIBTOOL_DEPS="$ltmain"
15225
15226 # Always use our own libtool.
15227 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254 test -z "$LN_S" && LN_S="ln -s"
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269 if test -n "${ZSH_VERSION+set}" ; then
15270 setopt NO_GLOB_SUBST
15271 fi
15272
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15274 $as_echo_n "checking for objdir... " >&6; }
15275 if ${lt_cv_objdir+:} false; then :
15276 $as_echo_n "(cached) " >&6
15277 else
15278 rm -f .libs 2>/dev/null
15279 mkdir .libs 2>/dev/null
15280 if test -d .libs; then
15281 lt_cv_objdir=.libs
15282 else
15283 # MS-DOS does not allow filenames that begin with a dot.
15284 lt_cv_objdir=_libs
15285 fi
15286 rmdir .libs 2>/dev/null
15287 fi
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15289 $as_echo "$lt_cv_objdir" >&6; }
15290 objdir=$lt_cv_objdir
15291
15292
15293
15294
15295
15296 cat >>confdefs.h <<_ACEOF
15297 #define LT_OBJDIR "$lt_cv_objdir/"
15298 _ACEOF
15299
15300
15301
15302
15303 case $host_os in
15304 aix3*)
15305 # AIX sometimes has problems with the GCC collect2 program. For some
15306 # reason, if we set the COLLECT_NAMES environment variable, the problems
15307 # vanish in a puff of smoke.
15308 if test "X${COLLECT_NAMES+set}" != Xset; then
15309 COLLECT_NAMES=
15310 export COLLECT_NAMES
15311 fi
15312 ;;
15313 esac
15314
15315 # Global variables:
15316 ofile=libtool
15317 can_build_shared=yes
15318
15319 # All known linkers require a `.a' archive for static linking (except MSVC,
15320 # which needs '.lib').
15321 libext=a
15322
15323 with_gnu_ld="$lt_cv_prog_gnu_ld"
15324
15325 old_CC="$CC"
15326 old_CFLAGS="$CFLAGS"
15327
15328 # Set sane defaults for various variables
15329 test -z "$CC" && CC=cc
15330 test -z "$LTCC" && LTCC=$CC
15331 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15332 test -z "$LD" && LD=ld
15333 test -z "$ac_objext" && ac_objext=o
15334
15335 for cc_temp in $compiler""; do
15336 case $cc_temp in
15337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15339 \-*) ;;
15340 *) break;;
15341 esac
15342 done
15343 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15344
15345
15346 # Only perform the check for file, if the check method requires it
15347 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15348 case $deplibs_check_method in
15349 file_magic*)
15350 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15352 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15353 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15356 case $MAGIC_CMD in
15357 [\\/*] | ?:[\\/]*)
15358 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15359 ;;
15360 *)
15361 lt_save_MAGIC_CMD="$MAGIC_CMD"
15362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15364 for ac_dir in $ac_dummy; do
15365 IFS="$lt_save_ifs"
15366 test -z "$ac_dir" && ac_dir=.
15367 if test -f $ac_dir/${ac_tool_prefix}file; then
15368 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15369 if test -n "$file_magic_test_file"; then
15370 case $deplibs_check_method in
15371 "file_magic "*)
15372 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15375 $EGREP "$file_magic_regex" > /dev/null; then
15376 :
15377 else
15378 cat <<_LT_EOF 1>&2
15379
15380 *** Warning: the command libtool uses to detect shared libraries,
15381 *** $file_magic_cmd, produces output that libtool cannot recognize.
15382 *** The result is that libtool may fail to recognize shared libraries
15383 *** as such. This will affect the creation of libtool libraries that
15384 *** depend on shared libraries, but programs linked with such libtool
15385 *** libraries will work regardless of this problem. Nevertheless, you
15386 *** may want to report the problem to your system manager and/or to
15387 *** bug-libtool@gnu.org
15388
15389 _LT_EOF
15390 fi ;;
15391 esac
15392 fi
15393 break
15394 fi
15395 done
15396 IFS="$lt_save_ifs"
15397 MAGIC_CMD="$lt_save_MAGIC_CMD"
15398 ;;
15399 esac
15400 fi
15401
15402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15403 if test -n "$MAGIC_CMD"; then
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15405 $as_echo "$MAGIC_CMD" >&6; }
15406 else
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15408 $as_echo "no" >&6; }
15409 fi
15410
15411
15412
15413
15414
15415 if test -z "$lt_cv_path_MAGIC_CMD"; then
15416 if test -n "$ac_tool_prefix"; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15418 $as_echo_n "checking for file... " >&6; }
15419 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15420 $as_echo_n "(cached) " >&6
15421 else
15422 case $MAGIC_CMD in
15423 [\\/*] | ?:[\\/]*)
15424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15425 ;;
15426 *)
15427 lt_save_MAGIC_CMD="$MAGIC_CMD"
15428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15430 for ac_dir in $ac_dummy; do
15431 IFS="$lt_save_ifs"
15432 test -z "$ac_dir" && ac_dir=.
15433 if test -f $ac_dir/file; then
15434 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15435 if test -n "$file_magic_test_file"; then
15436 case $deplibs_check_method in
15437 "file_magic "*)
15438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15441 $EGREP "$file_magic_regex" > /dev/null; then
15442 :
15443 else
15444 cat <<_LT_EOF 1>&2
15445
15446 *** Warning: the command libtool uses to detect shared libraries,
15447 *** $file_magic_cmd, produces output that libtool cannot recognize.
15448 *** The result is that libtool may fail to recognize shared libraries
15449 *** as such. This will affect the creation of libtool libraries that
15450 *** depend on shared libraries, but programs linked with such libtool
15451 *** libraries will work regardless of this problem. Nevertheless, you
15452 *** may want to report the problem to your system manager and/or to
15453 *** bug-libtool@gnu.org
15454
15455 _LT_EOF
15456 fi ;;
15457 esac
15458 fi
15459 break
15460 fi
15461 done
15462 IFS="$lt_save_ifs"
15463 MAGIC_CMD="$lt_save_MAGIC_CMD"
15464 ;;
15465 esac
15466 fi
15467
15468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15469 if test -n "$MAGIC_CMD"; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15471 $as_echo "$MAGIC_CMD" >&6; }
15472 else
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15474 $as_echo "no" >&6; }
15475 fi
15476
15477
15478 else
15479 MAGIC_CMD=:
15480 fi
15481 fi
15482
15483 fi
15484 ;;
15485 esac
15486
15487 # Use C for the default configuration in the libtool script
15488
15489 lt_save_CC="$CC"
15490 ac_ext=c
15491 ac_cpp='$CPP $CPPFLAGS'
15492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15495
15496
15497 # Source file extension for C test sources.
15498 ac_ext=c
15499
15500 # Object file extension for compiled C test sources.
15501 objext=o
15502 objext=$objext
15503
15504 # Code to be used in simple compile tests
15505 lt_simple_compile_test_code="int some_variable = 0;"
15506
15507 # Code to be used in simple link tests
15508 lt_simple_link_test_code='int main(){return(0);}'
15509
15510
15511
15512
15513
15514
15515
15516 # If no C compiler was specified, use CC.
15517 LTCC=${LTCC-"$CC"}
15518
15519 # If no C compiler flags were specified, use CFLAGS.
15520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15521
15522 # Allow CC to be a program name with arguments.
15523 compiler=$CC
15524
15525 # Save the default compiler, since it gets overwritten when the other
15526 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15527 compiler_DEFAULT=$CC
15528
15529 # save warnings/boilerplate of simple test code
15530 ac_outfile=conftest.$ac_objext
15531 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15533 _lt_compiler_boilerplate=`cat conftest.err`
15534 $RM conftest*
15535
15536 ac_outfile=conftest.$ac_objext
15537 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15539 _lt_linker_boilerplate=`cat conftest.err`
15540 $RM -r conftest*
15541
15542
15543 ## CAVEAT EMPTOR:
15544 ## There is no encapsulation within the following macros, do not change
15545 ## the running order or otherwise move them around unless you know exactly
15546 ## what you are doing...
15547 if test -n "$compiler"; then
15548
15549 lt_prog_compiler_no_builtin_flag=
15550
15551 if test "$GCC" = yes; then
15552 case $cc_basename in
15553 nvcc*)
15554 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15555 *)
15556 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15557 esac
15558
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15560 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15561 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15562 $as_echo_n "(cached) " >&6
15563 else
15564 lt_cv_prog_compiler_rtti_exceptions=no
15565 ac_outfile=conftest.$ac_objext
15566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15567 lt_compiler_flag="-fno-rtti -fno-exceptions"
15568 # Insert the option either (1) after the last *FLAGS variable, or
15569 # (2) before a word containing "conftest.", or (3) at the end.
15570 # Note that $ac_compile itself does not contain backslashes and begins
15571 # with a dollar sign (not a hyphen), so the echo should work correctly.
15572 # The option is referenced via a variable to avoid confusing sed.
15573 lt_compile=`echo "$ac_compile" | $SED \
15574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15576 -e 's:$: $lt_compiler_flag:'`
15577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15578 (eval "$lt_compile" 2>conftest.err)
15579 ac_status=$?
15580 cat conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 if (exit $ac_status) && test -s "$ac_outfile"; then
15583 # The compiler can only warn and ignore the option if not recognized
15584 # So say no if there are warnings other than the usual output.
15585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15588 lt_cv_prog_compiler_rtti_exceptions=yes
15589 fi
15590 fi
15591 $RM conftest*
15592
15593 fi
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15595 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15596
15597 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15598 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15599 else
15600 :
15601 fi
15602
15603 fi
15604
15605
15606
15607
15608
15609
15610 lt_prog_compiler_wl=
15611 lt_prog_compiler_pic=
15612 lt_prog_compiler_static=
15613
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15615 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15616
15617 if test "$GCC" = yes; then
15618 lt_prog_compiler_wl='-Wl,'
15619 lt_prog_compiler_static='-static'
15620
15621 case $host_os in
15622 aix*)
15623 # All AIX code is PIC.
15624 if test "$host_cpu" = ia64; then
15625 # AIX 5 now supports IA64 processor
15626 lt_prog_compiler_static='-Bstatic'
15627 fi
15628 lt_prog_compiler_pic='-fPIC'
15629 ;;
15630
15631 amigaos*)
15632 case $host_cpu in
15633 powerpc)
15634 # see comment about AmigaOS4 .so support
15635 lt_prog_compiler_pic='-fPIC'
15636 ;;
15637 m68k)
15638 # FIXME: we need at least 68020 code to build shared libraries, but
15639 # adding the `-m68020' flag to GCC prevents building anything better,
15640 # like `-m68040'.
15641 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15642 ;;
15643 esac
15644 ;;
15645
15646 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15647 # PIC is the default for these OSes.
15648 ;;
15649
15650 mingw* | cygwin* | pw32* | os2* | cegcc*)
15651 # This hack is so that the source file can tell whether it is being
15652 # built for inclusion in a dll (and should export symbols for example).
15653 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15654 # (--disable-auto-import) libraries
15655 lt_prog_compiler_pic='-DDLL_EXPORT'
15656 ;;
15657
15658 darwin* | rhapsody*)
15659 # PIC is the default on this platform
15660 # Common symbols not allowed in MH_DYLIB files
15661 lt_prog_compiler_pic='-fno-common'
15662 ;;
15663
15664 haiku*)
15665 # PIC is the default for Haiku.
15666 # The "-static" flag exists, but is broken.
15667 lt_prog_compiler_static=
15668 ;;
15669
15670 hpux*)
15671 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15672 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15673 # sets the default TLS model and affects inlining.
15674 case $host_cpu in
15675 hppa*64*)
15676 # +Z the default
15677 ;;
15678 *)
15679 lt_prog_compiler_pic='-fPIC'
15680 ;;
15681 esac
15682 ;;
15683
15684 interix[3-9]*)
15685 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15686 # Instead, we relocate shared libraries at runtime.
15687 ;;
15688
15689 msdosdjgpp*)
15690 # Just because we use GCC doesn't mean we suddenly get shared libraries
15691 # on systems that don't support them.
15692 lt_prog_compiler_can_build_shared=no
15693 enable_shared=no
15694 ;;
15695
15696 *nto* | *qnx*)
15697 # QNX uses GNU C++, but need to define -shared option too, otherwise
15698 # it will coredump.
15699 lt_prog_compiler_pic='-fPIC -shared'
15700 ;;
15701
15702 sysv4*MP*)
15703 if test -d /usr/nec; then
15704 lt_prog_compiler_pic=-Kconform_pic
15705 fi
15706 ;;
15707
15708 *)
15709 lt_prog_compiler_pic='-fPIC'
15710 ;;
15711 esac
15712
15713 case $cc_basename in
15714 nvcc*) # Cuda Compiler Driver 2.2
15715 lt_prog_compiler_wl='-Xlinker '
15716 lt_prog_compiler_pic='-Xcompiler -fPIC'
15717 ;;
15718 esac
15719 else
15720 # PORTME Check for flag to pass linker flags through the system compiler.
15721 case $host_os in
15722 aix*)
15723 lt_prog_compiler_wl='-Wl,'
15724 if test "$host_cpu" = ia64; then
15725 # AIX 5 now supports IA64 processor
15726 lt_prog_compiler_static='-Bstatic'
15727 else
15728 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15729 fi
15730 ;;
15731
15732 mingw* | cygwin* | pw32* | os2* | cegcc*)
15733 # This hack is so that the source file can tell whether it is being
15734 # built for inclusion in a dll (and should export symbols for example).
15735 lt_prog_compiler_pic='-DDLL_EXPORT'
15736 ;;
15737
15738 hpux9* | hpux10* | hpux11*)
15739 lt_prog_compiler_wl='-Wl,'
15740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15741 # not for PA HP-UX.
15742 case $host_cpu in
15743 hppa*64*|ia64*)
15744 # +Z the default
15745 ;;
15746 *)
15747 lt_prog_compiler_pic='+Z'
15748 ;;
15749 esac
15750 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15751 lt_prog_compiler_static='${wl}-a ${wl}archive'
15752 ;;
15753
15754 irix5* | irix6* | nonstopux*)
15755 lt_prog_compiler_wl='-Wl,'
15756 # PIC (with -KPIC) is the default.
15757 lt_prog_compiler_static='-non_shared'
15758 ;;
15759
15760 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15761 case $cc_basename in
15762 # old Intel for x86_64 which still supported -KPIC.
15763 ecc*)
15764 lt_prog_compiler_wl='-Wl,'
15765 lt_prog_compiler_pic='-KPIC'
15766 lt_prog_compiler_static='-static'
15767 ;;
15768 # icc used to be incompatible with GCC.
15769 # ICC 10 doesn't accept -KPIC any more.
15770 icc* | ifort*)
15771 lt_prog_compiler_wl='-Wl,'
15772 lt_prog_compiler_pic='-fPIC'
15773 lt_prog_compiler_static='-static'
15774 ;;
15775 # Lahey Fortran 8.1.
15776 lf95*)
15777 lt_prog_compiler_wl='-Wl,'
15778 lt_prog_compiler_pic='--shared'
15779 lt_prog_compiler_static='--static'
15780 ;;
15781 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15782 # Portland Group compilers (*not* the Pentium gcc compiler,
15783 # which looks to be a dead project)
15784 lt_prog_compiler_wl='-Wl,'
15785 lt_prog_compiler_pic='-fpic'
15786 lt_prog_compiler_static='-Bstatic'
15787 ;;
15788 ccc*)
15789 lt_prog_compiler_wl='-Wl,'
15790 # All Alpha code is PIC.
15791 lt_prog_compiler_static='-non_shared'
15792 ;;
15793 xl* | bgxl* | bgf* | mpixl*)
15794 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15795 lt_prog_compiler_wl='-Wl,'
15796 lt_prog_compiler_pic='-qpic'
15797 lt_prog_compiler_static='-qstaticlink'
15798 ;;
15799 *)
15800 case `$CC -V 2>&1 | sed 5q` in
15801 *Sun\ F* | *Sun*Fortran*)
15802 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15803 lt_prog_compiler_pic='-KPIC'
15804 lt_prog_compiler_static='-Bstatic'
15805 lt_prog_compiler_wl=''
15806 ;;
15807 *Sun\ C*)
15808 # Sun C 5.9
15809 lt_prog_compiler_pic='-KPIC'
15810 lt_prog_compiler_static='-Bstatic'
15811 lt_prog_compiler_wl='-Wl,'
15812 ;;
15813 esac
15814 ;;
15815 esac
15816 ;;
15817
15818 newsos6)
15819 lt_prog_compiler_pic='-KPIC'
15820 lt_prog_compiler_static='-Bstatic'
15821 ;;
15822
15823 *nto* | *qnx*)
15824 # QNX uses GNU C++, but need to define -shared option too, otherwise
15825 # it will coredump.
15826 lt_prog_compiler_pic='-fPIC -shared'
15827 ;;
15828
15829 osf3* | osf4* | osf5*)
15830 lt_prog_compiler_wl='-Wl,'
15831 # All OSF/1 code is PIC.
15832 lt_prog_compiler_static='-non_shared'
15833 ;;
15834
15835 rdos*)
15836 lt_prog_compiler_static='-non_shared'
15837 ;;
15838
15839 solaris*)
15840 lt_prog_compiler_pic='-KPIC'
15841 lt_prog_compiler_static='-Bstatic'
15842 case $cc_basename in
15843 f77* | f90* | f95*)
15844 lt_prog_compiler_wl='-Qoption ld ';;
15845 *)
15846 lt_prog_compiler_wl='-Wl,';;
15847 esac
15848 ;;
15849
15850 sunos4*)
15851 lt_prog_compiler_wl='-Qoption ld '
15852 lt_prog_compiler_pic='-PIC'
15853 lt_prog_compiler_static='-Bstatic'
15854 ;;
15855
15856 sysv4 | sysv4.2uw2* | sysv4.3*)
15857 lt_prog_compiler_wl='-Wl,'
15858 lt_prog_compiler_pic='-KPIC'
15859 lt_prog_compiler_static='-Bstatic'
15860 ;;
15861
15862 sysv4*MP*)
15863 if test -d /usr/nec ;then
15864 lt_prog_compiler_pic='-Kconform_pic'
15865 lt_prog_compiler_static='-Bstatic'
15866 fi
15867 ;;
15868
15869 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15870 lt_prog_compiler_wl='-Wl,'
15871 lt_prog_compiler_pic='-KPIC'
15872 lt_prog_compiler_static='-Bstatic'
15873 ;;
15874
15875 unicos*)
15876 lt_prog_compiler_wl='-Wl,'
15877 lt_prog_compiler_can_build_shared=no
15878 ;;
15879
15880 uts4*)
15881 lt_prog_compiler_pic='-pic'
15882 lt_prog_compiler_static='-Bstatic'
15883 ;;
15884
15885 *)
15886 lt_prog_compiler_can_build_shared=no
15887 ;;
15888 esac
15889 fi
15890
15891 case $host_os in
15892 # For platforms which do not support PIC, -DPIC is meaningless:
15893 *djgpp*)
15894 lt_prog_compiler_pic=
15895 ;;
15896 *)
15897 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15898 ;;
15899 esac
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15901 $as_echo "$lt_prog_compiler_pic" >&6; }
15902
15903
15904
15905
15906
15907
15908 #
15909 # Check to make sure the PIC flag actually works.
15910 #
15911 if test -n "$lt_prog_compiler_pic"; then
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15913 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15914 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15915 $as_echo_n "(cached) " >&6
15916 else
15917 lt_cv_prog_compiler_pic_works=no
15918 ac_outfile=conftest.$ac_objext
15919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15920 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15921 # Insert the option either (1) after the last *FLAGS variable, or
15922 # (2) before a word containing "conftest.", or (3) at the end.
15923 # Note that $ac_compile itself does not contain backslashes and begins
15924 # with a dollar sign (not a hyphen), so the echo should work correctly.
15925 # The option is referenced via a variable to avoid confusing sed.
15926 lt_compile=`echo "$ac_compile" | $SED \
15927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15929 -e 's:$: $lt_compiler_flag:'`
15930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15931 (eval "$lt_compile" 2>conftest.err)
15932 ac_status=$?
15933 cat conftest.err >&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 if (exit $ac_status) && test -s "$ac_outfile"; then
15936 # The compiler can only warn and ignore the option if not recognized
15937 # So say no if there are warnings other than the usual output.
15938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15941 lt_cv_prog_compiler_pic_works=yes
15942 fi
15943 fi
15944 $RM conftest*
15945
15946 fi
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15948 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15949
15950 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15951 case $lt_prog_compiler_pic in
15952 "" | " "*) ;;
15953 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15954 esac
15955 else
15956 lt_prog_compiler_pic=
15957 lt_prog_compiler_can_build_shared=no
15958 fi
15959
15960 fi
15961
15962
15963
15964
15965
15966
15967 #
15968 # Check to make sure the static flag actually works.
15969 #
15970 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15972 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15973 if ${lt_cv_prog_compiler_static_works+:} false; then :
15974 $as_echo_n "(cached) " >&6
15975 else
15976 lt_cv_prog_compiler_static_works=no
15977 save_LDFLAGS="$LDFLAGS"
15978 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15979 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15981 # The linker can only warn and ignore the option if not recognized
15982 # So say no if there are warnings
15983 if test -s conftest.err; then
15984 # Append any errors to the config.log.
15985 cat conftest.err 1>&5
15986 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15988 if diff conftest.exp conftest.er2 >/dev/null; then
15989 lt_cv_prog_compiler_static_works=yes
15990 fi
15991 else
15992 lt_cv_prog_compiler_static_works=yes
15993 fi
15994 fi
15995 $RM -r conftest*
15996 LDFLAGS="$save_LDFLAGS"
15997
15998 fi
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16000 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16001
16002 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16003 :
16004 else
16005 lt_prog_compiler_static=
16006 fi
16007
16008
16009
16010
16011
16012
16013
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16015 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16016 if ${lt_cv_prog_compiler_c_o+:} false; then :
16017 $as_echo_n "(cached) " >&6
16018 else
16019 lt_cv_prog_compiler_c_o=no
16020 $RM -r conftest 2>/dev/null
16021 mkdir conftest
16022 cd conftest
16023 mkdir out
16024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16025
16026 lt_compiler_flag="-o out/conftest2.$ac_objext"
16027 # Insert the option either (1) after the last *FLAGS variable, or
16028 # (2) before a word containing "conftest.", or (3) at the end.
16029 # Note that $ac_compile itself does not contain backslashes and begins
16030 # with a dollar sign (not a hyphen), so the echo should work correctly.
16031 lt_compile=`echo "$ac_compile" | $SED \
16032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16034 -e 's:$: $lt_compiler_flag:'`
16035 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16036 (eval "$lt_compile" 2>out/conftest.err)
16037 ac_status=$?
16038 cat out/conftest.err >&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16041 then
16042 # The compiler can only warn and ignore the option if not recognized
16043 # So say no if there are warnings
16044 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16045 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16046 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16047 lt_cv_prog_compiler_c_o=yes
16048 fi
16049 fi
16050 chmod u+w . 2>&5
16051 $RM conftest*
16052 # SGI C++ compiler will create directory out/ii_files/ for
16053 # template instantiation
16054 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16055 $RM out/* && rmdir out
16056 cd ..
16057 $RM -r conftest
16058 $RM conftest*
16059
16060 fi
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16062 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16063
16064
16065
16066
16067
16068
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16070 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16071 if ${lt_cv_prog_compiler_c_o+:} false; then :
16072 $as_echo_n "(cached) " >&6
16073 else
16074 lt_cv_prog_compiler_c_o=no
16075 $RM -r conftest 2>/dev/null
16076 mkdir conftest
16077 cd conftest
16078 mkdir out
16079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16080
16081 lt_compiler_flag="-o out/conftest2.$ac_objext"
16082 # Insert the option either (1) after the last *FLAGS variable, or
16083 # (2) before a word containing "conftest.", or (3) at the end.
16084 # Note that $ac_compile itself does not contain backslashes and begins
16085 # with a dollar sign (not a hyphen), so the echo should work correctly.
16086 lt_compile=`echo "$ac_compile" | $SED \
16087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16089 -e 's:$: $lt_compiler_flag:'`
16090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16091 (eval "$lt_compile" 2>out/conftest.err)
16092 ac_status=$?
16093 cat out/conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16096 then
16097 # The compiler can only warn and ignore the option if not recognized
16098 # So say no if there are warnings
16099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16102 lt_cv_prog_compiler_c_o=yes
16103 fi
16104 fi
16105 chmod u+w . 2>&5
16106 $RM conftest*
16107 # SGI C++ compiler will create directory out/ii_files/ for
16108 # template instantiation
16109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16110 $RM out/* && rmdir out
16111 cd ..
16112 $RM -r conftest
16113 $RM conftest*
16114
16115 fi
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16117 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16118
16119
16120
16121
16122 hard_links="nottested"
16123 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16124 # do not overwrite the value of need_locks provided by the user
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16126 $as_echo_n "checking if we can lock with hard links... " >&6; }
16127 hard_links=yes
16128 $RM conftest*
16129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16130 touch conftest.a
16131 ln conftest.a conftest.b 2>&5 || hard_links=no
16132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16134 $as_echo "$hard_links" >&6; }
16135 if test "$hard_links" = no; then
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16137 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16138 need_locks=warn
16139 fi
16140 else
16141 need_locks=no
16142 fi
16143
16144
16145
16146
16147
16148
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16151
16152 runpath_var=
16153 allow_undefined_flag=
16154 always_export_symbols=no
16155 archive_cmds=
16156 archive_expsym_cmds=
16157 compiler_needs_object=no
16158 enable_shared_with_static_runtimes=no
16159 export_dynamic_flag_spec=
16160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16161 hardcode_automatic=no
16162 hardcode_direct=no
16163 hardcode_direct_absolute=no
16164 hardcode_libdir_flag_spec=
16165 hardcode_libdir_flag_spec_ld=
16166 hardcode_libdir_separator=
16167 hardcode_minus_L=no
16168 hardcode_shlibpath_var=unsupported
16169 inherit_rpath=no
16170 link_all_deplibs=unknown
16171 module_cmds=
16172 module_expsym_cmds=
16173 old_archive_from_new_cmds=
16174 old_archive_from_expsyms_cmds=
16175 thread_safe_flag_spec=
16176 whole_archive_flag_spec=
16177 # include_expsyms should be a list of space-separated symbols to be *always*
16178 # included in the symbol list
16179 include_expsyms=
16180 # exclude_expsyms can be an extended regexp of symbols to exclude
16181 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16182 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16183 # as well as any symbol that contains `d'.
16184 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16185 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16186 # platforms (ab)use it in PIC code, but their linkers get confused if
16187 # the symbol is explicitly referenced. Since portable code cannot
16188 # rely on this symbol name, it's probably fine to never include it in
16189 # preloaded symbol tables.
16190 # Exclude shared library initialization/finalization symbols.
16191 extract_expsyms_cmds=
16192
16193 case $host_os in
16194 cygwin* | mingw* | pw32* | cegcc*)
16195 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16196 # When not using gcc, we currently assume that we are using
16197 # Microsoft Visual C++.
16198 if test "$GCC" != yes; then
16199 with_gnu_ld=no
16200 fi
16201 ;;
16202 interix*)
16203 # we just hope/assume this is gcc and not c89 (= MSVC++)
16204 with_gnu_ld=yes
16205 ;;
16206 openbsd*)
16207 with_gnu_ld=no
16208 ;;
16209 esac
16210
16211 ld_shlibs=yes
16212
16213 # On some targets, GNU ld is compatible enough with the native linker
16214 # that we're better off using the native interface for both.
16215 lt_use_gnu_ld_interface=no
16216 if test "$with_gnu_ld" = yes; then
16217 case $host_os in
16218 aix*)
16219 # The AIX port of GNU ld has always aspired to compatibility
16220 # with the native linker. However, as the warning in the GNU ld
16221 # block says, versions before 2.19.5* couldn't really create working
16222 # shared libraries, regardless of the interface used.
16223 case `$LD -v 2>&1` in
16224 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16225 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16226 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16227 *)
16228 lt_use_gnu_ld_interface=yes
16229 ;;
16230 esac
16231 ;;
16232 *)
16233 lt_use_gnu_ld_interface=yes
16234 ;;
16235 esac
16236 fi
16237
16238 if test "$lt_use_gnu_ld_interface" = yes; then
16239 # If archive_cmds runs LD, not CC, wlarc should be empty
16240 wlarc='${wl}'
16241
16242 # Set some defaults for GNU ld with shared library support. These
16243 # are reset later if shared libraries are not supported. Putting them
16244 # here allows them to be overridden if necessary.
16245 runpath_var=LD_RUN_PATH
16246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16247 export_dynamic_flag_spec='${wl}--export-dynamic'
16248 # ancient GNU ld didn't support --whole-archive et. al.
16249 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16250 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16251 else
16252 whole_archive_flag_spec=
16253 fi
16254 supports_anon_versioning=no
16255 case `$LD -v 2>&1` in
16256 *GNU\ gold*) supports_anon_versioning=yes ;;
16257 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16258 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16259 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16260 *\ 2.11.*) ;; # other 2.11 versions
16261 *) supports_anon_versioning=yes ;;
16262 esac
16263
16264 # See if GNU ld supports shared libraries.
16265 case $host_os in
16266 aix[3-9]*)
16267 # On AIX/PPC, the GNU linker is very broken
16268 if test "$host_cpu" != ia64; then
16269 ld_shlibs=no
16270 cat <<_LT_EOF 1>&2
16271
16272 *** Warning: the GNU linker, at least up to release 2.19, is reported
16273 *** to be unable to reliably create shared libraries on AIX.
16274 *** Therefore, libtool is disabling shared libraries support. If you
16275 *** really care for shared libraries, you may want to install binutils
16276 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16277 *** You will then need to restart the configuration process.
16278
16279 _LT_EOF
16280 fi
16281 ;;
16282
16283 amigaos*)
16284 case $host_cpu in
16285 powerpc)
16286 # see comment about AmigaOS4 .so support
16287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16288 archive_expsym_cmds=''
16289 ;;
16290 m68k)
16291 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)'
16292 hardcode_libdir_flag_spec='-L$libdir'
16293 hardcode_minus_L=yes
16294 ;;
16295 esac
16296 ;;
16297
16298 beos*)
16299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16300 allow_undefined_flag=unsupported
16301 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16302 # support --undefined. This deserves some investigation. FIXME
16303 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16304 else
16305 ld_shlibs=no
16306 fi
16307 ;;
16308
16309 cygwin* | mingw* | pw32* | cegcc*)
16310 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16311 # as there is no search path for DLLs.
16312 hardcode_libdir_flag_spec='-L$libdir'
16313 export_dynamic_flag_spec='${wl}--export-all-symbols'
16314 allow_undefined_flag=unsupported
16315 always_export_symbols=no
16316 enable_shared_with_static_runtimes=yes
16317 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16318
16319 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16321 # If the export-symbols file already is a .def file (1st line
16322 # is EXPORTS), use it as is; otherwise, prepend...
16323 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16324 cp $export_symbols $output_objdir/$soname.def;
16325 else
16326 echo EXPORTS > $output_objdir/$soname.def;
16327 cat $export_symbols >> $output_objdir/$soname.def;
16328 fi~
16329 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16330 else
16331 ld_shlibs=no
16332 fi
16333 ;;
16334
16335 haiku*)
16336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16337 link_all_deplibs=yes
16338 ;;
16339
16340 interix[3-9]*)
16341 hardcode_direct=no
16342 hardcode_shlibpath_var=no
16343 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16344 export_dynamic_flag_spec='${wl}-E'
16345 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16346 # Instead, shared libraries are loaded at an image base (0x10000000 by
16347 # default) and relocated if they conflict, which is a slow very memory
16348 # consuming and fragmenting process. To avoid this, we pick a random,
16349 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16350 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16351 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16352 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'
16353 ;;
16354
16355 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16356 tmp_diet=no
16357 if test "$host_os" = linux-dietlibc; then
16358 case $cc_basename in
16359 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16360 esac
16361 fi
16362 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16363 && test "$tmp_diet" = no
16364 then
16365 tmp_addflag=' $pic_flag'
16366 tmp_sharedflag='-shared'
16367 case $cc_basename,$host_cpu in
16368 pgcc*) # Portland Group C compiler
16369 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'
16370 tmp_addflag=' $pic_flag'
16371 ;;
16372 pgf77* | pgf90* | pgf95* | pgfortran*)
16373 # Portland Group f77 and f90 compilers
16374 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'
16375 tmp_addflag=' $pic_flag -Mnomain' ;;
16376 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16377 tmp_addflag=' -i_dynamic' ;;
16378 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16379 tmp_addflag=' -i_dynamic -nofor_main' ;;
16380 ifc* | ifort*) # Intel Fortran compiler
16381 tmp_addflag=' -nofor_main' ;;
16382 lf95*) # Lahey Fortran 8.1
16383 whole_archive_flag_spec=
16384 tmp_sharedflag='--shared' ;;
16385 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16386 tmp_sharedflag='-qmkshrobj'
16387 tmp_addflag= ;;
16388 nvcc*) # Cuda Compiler Driver 2.2
16389 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'
16390 compiler_needs_object=yes
16391 ;;
16392 esac
16393 case `$CC -V 2>&1 | sed 5q` in
16394 *Sun\ C*) # Sun C 5.9
16395 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'
16396 compiler_needs_object=yes
16397 tmp_sharedflag='-G' ;;
16398 *Sun\ F*) # Sun Fortran 8.3
16399 tmp_sharedflag='-G' ;;
16400 esac
16401 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16402
16403 if test "x$supports_anon_versioning" = xyes; then
16404 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16406 echo "local: *; };" >> $output_objdir/$libname.ver~
16407 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16408 fi
16409
16410 case $cc_basename in
16411 xlf* | bgf* | bgxlf* | mpixlf*)
16412 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16413 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16414 hardcode_libdir_flag_spec=
16415 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16416 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16417 if test "x$supports_anon_versioning" = xyes; then
16418 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16420 echo "local: *; };" >> $output_objdir/$libname.ver~
16421 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16422 fi
16423 ;;
16424 esac
16425 else
16426 ld_shlibs=no
16427 fi
16428 ;;
16429
16430 netbsd*)
16431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16432 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16433 wlarc=
16434 else
16435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16437 fi
16438 ;;
16439
16440 solaris*)
16441 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16442 ld_shlibs=no
16443 cat <<_LT_EOF 1>&2
16444
16445 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16446 *** create shared libraries on Solaris systems. Therefore, libtool
16447 *** is disabling shared libraries support. We urge you to upgrade GNU
16448 *** binutils to release 2.9.1 or newer. Another option is to modify
16449 *** your PATH or compiler configuration so that the native linker is
16450 *** used, and then restart.
16451
16452 _LT_EOF
16453 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16455 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16456 else
16457 ld_shlibs=no
16458 fi
16459 ;;
16460
16461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16462 case `$LD -v 2>&1` in
16463 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16464 ld_shlibs=no
16465 cat <<_LT_EOF 1>&2
16466
16467 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16468 *** reliably create shared libraries on SCO systems. Therefore, libtool
16469 *** is disabling shared libraries support. We urge you to upgrade GNU
16470 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16471 *** your PATH or compiler configuration so that the native linker is
16472 *** used, and then restart.
16473
16474 _LT_EOF
16475 ;;
16476 *)
16477 # For security reasons, it is highly recommended that you always
16478 # use absolute paths for naming shared libraries, and exclude the
16479 # DT_RUNPATH tag from executables and libraries. But doing so
16480 # requires that you compile everything twice, which is a pain.
16481 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16485 else
16486 ld_shlibs=no
16487 fi
16488 ;;
16489 esac
16490 ;;
16491
16492 sunos4*)
16493 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16494 wlarc=
16495 hardcode_direct=yes
16496 hardcode_shlibpath_var=no
16497 ;;
16498
16499 *)
16500 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16503 else
16504 ld_shlibs=no
16505 fi
16506 ;;
16507 esac
16508
16509 if test "$ld_shlibs" = no; then
16510 runpath_var=
16511 hardcode_libdir_flag_spec=
16512 export_dynamic_flag_spec=
16513 whole_archive_flag_spec=
16514 fi
16515 else
16516 # PORTME fill in a description of your system's linker (not GNU ld)
16517 case $host_os in
16518 aix3*)
16519 allow_undefined_flag=unsupported
16520 always_export_symbols=yes
16521 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'
16522 # Note: this linker hardcodes the directories in LIBPATH if there
16523 # are no directories specified by -L.
16524 hardcode_minus_L=yes
16525 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16526 # Neither direct hardcoding nor static linking is supported with a
16527 # broken collect2.
16528 hardcode_direct=unsupported
16529 fi
16530 ;;
16531
16532 aix[4-9]*)
16533 if test "$host_cpu" = ia64; then
16534 # On IA64, the linker does run time linking by default, so we don't
16535 # have to do anything special.
16536 aix_use_runtimelinking=no
16537 exp_sym_flag='-Bexport'
16538 no_entry_flag=""
16539 else
16540 # If we're using GNU nm, then we don't want the "-C" option.
16541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16542 # Also, AIX nm treats weak defined symbols like other global
16543 # defined symbols, whereas GNU nm marks them as "W".
16544 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16545 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'
16546 else
16547 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'
16548 fi
16549 aix_use_runtimelinking=no
16550
16551 # Test if we are trying to use run time linking or normal
16552 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16553 # need to do runtime linking.
16554 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16555 for ld_flag in $LDFLAGS; do
16556 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16557 aix_use_runtimelinking=yes
16558 break
16559 fi
16560 done
16561 ;;
16562 esac
16563
16564 exp_sym_flag='-bexport'
16565 no_entry_flag='-bnoentry'
16566 fi
16567
16568 # When large executables or shared objects are built, AIX ld can
16569 # have problems creating the table of contents. If linking a library
16570 # or program results in "error TOC overflow" add -mminimal-toc to
16571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16573
16574 archive_cmds=''
16575 hardcode_direct=yes
16576 hardcode_direct_absolute=yes
16577 hardcode_libdir_separator=':'
16578 link_all_deplibs=yes
16579 file_list_spec='${wl}-f,'
16580
16581 if test "$GCC" = yes; then
16582 case $host_os in aix4.[012]|aix4.[012].*)
16583 # We only want to do this on AIX 4.2 and lower, the check
16584 # below for broken collect2 doesn't work under 4.3+
16585 collect2name=`${CC} -print-prog-name=collect2`
16586 if test -f "$collect2name" &&
16587 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16588 then
16589 # We have reworked collect2
16590 :
16591 else
16592 # We have old collect2
16593 hardcode_direct=unsupported
16594 # It fails to find uninstalled libraries when the uninstalled
16595 # path is not listed in the libpath. Setting hardcode_minus_L
16596 # to unsupported forces relinking
16597 hardcode_minus_L=yes
16598 hardcode_libdir_flag_spec='-L$libdir'
16599 hardcode_libdir_separator=
16600 fi
16601 ;;
16602 esac
16603 shared_flag='-shared'
16604 if test "$aix_use_runtimelinking" = yes; then
16605 shared_flag="$shared_flag "'${wl}-G'
16606 fi
16607 else
16608 # not using gcc
16609 if test "$host_cpu" = ia64; then
16610 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16611 # chokes on -Wl,-G. The following line is correct:
16612 shared_flag='-G'
16613 else
16614 if test "$aix_use_runtimelinking" = yes; then
16615 shared_flag='${wl}-G'
16616 else
16617 shared_flag='${wl}-bM:SRE'
16618 fi
16619 fi
16620 fi
16621
16622 export_dynamic_flag_spec='${wl}-bexpall'
16623 # It seems that -bexpall does not export symbols beginning with
16624 # underscore (_), so it is better to generate a list of symbols to export.
16625 always_export_symbols=yes
16626 if test "$aix_use_runtimelinking" = yes; then
16627 # Warning - without using the other runtime loading flags (-brtl),
16628 # -berok will link without error, but may produce a broken library.
16629 allow_undefined_flag='-berok'
16630 # Determine the default libpath from the value encoded in an
16631 # empty executable.
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634
16635 int
16636 main ()
16637 {
16638
16639 ;
16640 return 0;
16641 }
16642 _ACEOF
16643 if ac_fn_c_try_link "$LINENO"; then :
16644
16645 lt_aix_libpath_sed='
16646 /Import File Strings/,/^$/ {
16647 /^0/ {
16648 s/^0 *\(.*\)$/\1/
16649 p
16650 }
16651 }'
16652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16653 # Check for a 64-bit object if we didn't find anything.
16654 if test -z "$aix_libpath"; then
16655 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16656 fi
16657 fi
16658 rm -f core conftest.err conftest.$ac_objext \
16659 conftest$ac_exeext conftest.$ac_ext
16660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16661
16662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16663 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"
16664 else
16665 if test "$host_cpu" = ia64; then
16666 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16667 allow_undefined_flag="-z nodefs"
16668 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"
16669 else
16670 # Determine the default libpath from the value encoded in an
16671 # empty executable.
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16674
16675 int
16676 main ()
16677 {
16678
16679 ;
16680 return 0;
16681 }
16682 _ACEOF
16683 if ac_fn_c_try_link "$LINENO"; then :
16684
16685 lt_aix_libpath_sed='
16686 /Import File Strings/,/^$/ {
16687 /^0/ {
16688 s/^0 *\(.*\)$/\1/
16689 p
16690 }
16691 }'
16692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16693 # Check for a 64-bit object if we didn't find anything.
16694 if test -z "$aix_libpath"; then
16695 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16696 fi
16697 fi
16698 rm -f core conftest.err conftest.$ac_objext \
16699 conftest$ac_exeext conftest.$ac_ext
16700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16701
16702 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16703 # Warning - without using the other run time loading flags,
16704 # -berok will link without error, but may produce a broken library.
16705 no_undefined_flag=' ${wl}-bernotok'
16706 allow_undefined_flag=' ${wl}-berok'
16707 if test "$with_gnu_ld" = yes; then
16708 # We only use this code for GNU lds that support --whole-archive.
16709 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16710 else
16711 # Exported symbols can be pulled into shared objects from archives
16712 whole_archive_flag_spec='$convenience'
16713 fi
16714 archive_cmds_need_lc=yes
16715 # This is similar to how AIX traditionally builds its shared libraries.
16716 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'
16717 fi
16718 fi
16719 ;;
16720
16721 amigaos*)
16722 case $host_cpu in
16723 powerpc)
16724 # see comment about AmigaOS4 .so support
16725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16726 archive_expsym_cmds=''
16727 ;;
16728 m68k)
16729 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)'
16730 hardcode_libdir_flag_spec='-L$libdir'
16731 hardcode_minus_L=yes
16732 ;;
16733 esac
16734 ;;
16735
16736 bsdi[45]*)
16737 export_dynamic_flag_spec=-rdynamic
16738 ;;
16739
16740 cygwin* | mingw* | pw32* | cegcc*)
16741 # When not using gcc, we currently assume that we are using
16742 # Microsoft Visual C++.
16743 # hardcode_libdir_flag_spec is actually meaningless, as there is
16744 # no search path for DLLs.
16745 hardcode_libdir_flag_spec=' '
16746 allow_undefined_flag=unsupported
16747 # Tell ltmain to make .lib files, not .a files.
16748 libext=lib
16749 # Tell ltmain to make .dll files, not .so files.
16750 shrext_cmds=".dll"
16751 # FIXME: Setting linknames here is a bad hack.
16752 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16753 # The linker will automatically build a .lib file if we build a DLL.
16754 old_archive_from_new_cmds='true'
16755 # FIXME: Should let the user specify the lib program.
16756 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16757 fix_srcfile_path='`cygpath -w "$srcfile"`'
16758 enable_shared_with_static_runtimes=yes
16759 ;;
16760
16761 darwin* | rhapsody*)
16762
16763
16764 archive_cmds_need_lc=no
16765 hardcode_direct=no
16766 hardcode_automatic=yes
16767 hardcode_shlibpath_var=unsupported
16768 if test "$lt_cv_ld_force_load" = "yes"; then
16769 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\"`'
16770 else
16771 whole_archive_flag_spec=''
16772 fi
16773 link_all_deplibs=yes
16774 allow_undefined_flag="$_lt_dar_allow_undefined"
16775 case $cc_basename in
16776 ifort*) _lt_dar_can_shared=yes ;;
16777 *) _lt_dar_can_shared=$GCC ;;
16778 esac
16779 if test "$_lt_dar_can_shared" = "yes"; then
16780 output_verbose_link_cmd=func_echo_all
16781 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16782 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16783 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}"
16784 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}"
16785
16786 else
16787 ld_shlibs=no
16788 fi
16789
16790 ;;
16791
16792 dgux*)
16793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794 hardcode_libdir_flag_spec='-L$libdir'
16795 hardcode_shlibpath_var=no
16796 ;;
16797
16798 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16799 # support. Future versions do this automatically, but an explicit c++rt0.o
16800 # does not break anything, and helps significantly (at the cost of a little
16801 # extra space).
16802 freebsd2.2*)
16803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16804 hardcode_libdir_flag_spec='-R$libdir'
16805 hardcode_direct=yes
16806 hardcode_shlibpath_var=no
16807 ;;
16808
16809 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16810 freebsd2.*)
16811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16812 hardcode_direct=yes
16813 hardcode_minus_L=yes
16814 hardcode_shlibpath_var=no
16815 ;;
16816
16817 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16818 freebsd* | dragonfly*)
16819 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16820 hardcode_libdir_flag_spec='-R$libdir'
16821 hardcode_direct=yes
16822 hardcode_shlibpath_var=no
16823 ;;
16824
16825 hpux9*)
16826 if test "$GCC" = yes; then
16827 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'
16828 else
16829 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'
16830 fi
16831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16832 hardcode_libdir_separator=:
16833 hardcode_direct=yes
16834
16835 # hardcode_minus_L: Not really in the search PATH,
16836 # but as the default location of the library.
16837 hardcode_minus_L=yes
16838 export_dynamic_flag_spec='${wl}-E'
16839 ;;
16840
16841 hpux10*)
16842 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16843 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16844 else
16845 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16846 fi
16847 if test "$with_gnu_ld" = no; then
16848 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16849 hardcode_libdir_flag_spec_ld='+b $libdir'
16850 hardcode_libdir_separator=:
16851 hardcode_direct=yes
16852 hardcode_direct_absolute=yes
16853 export_dynamic_flag_spec='${wl}-E'
16854 # hardcode_minus_L: Not really in the search PATH,
16855 # but as the default location of the library.
16856 hardcode_minus_L=yes
16857 fi
16858 ;;
16859
16860 hpux11*)
16861 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16862 case $host_cpu in
16863 hppa*64*)
16864 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16865 ;;
16866 ia64*)
16867 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16868 ;;
16869 *)
16870 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16871 ;;
16872 esac
16873 else
16874 case $host_cpu in
16875 hppa*64*)
16876 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16877 ;;
16878 ia64*)
16879 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16880 ;;
16881 *)
16882
16883 # Older versions of the 11.00 compiler do not understand -b yet
16884 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16886 $as_echo_n "checking if $CC understands -b... " >&6; }
16887 if ${lt_cv_prog_compiler__b+:} false; then :
16888 $as_echo_n "(cached) " >&6
16889 else
16890 lt_cv_prog_compiler__b=no
16891 save_LDFLAGS="$LDFLAGS"
16892 LDFLAGS="$LDFLAGS -b"
16893 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16895 # The linker can only warn and ignore the option if not recognized
16896 # So say no if there are warnings
16897 if test -s conftest.err; then
16898 # Append any errors to the config.log.
16899 cat conftest.err 1>&5
16900 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16902 if diff conftest.exp conftest.er2 >/dev/null; then
16903 lt_cv_prog_compiler__b=yes
16904 fi
16905 else
16906 lt_cv_prog_compiler__b=yes
16907 fi
16908 fi
16909 $RM -r conftest*
16910 LDFLAGS="$save_LDFLAGS"
16911
16912 fi
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16914 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16915
16916 if test x"$lt_cv_prog_compiler__b" = xyes; then
16917 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16918 else
16919 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16920 fi
16921
16922 ;;
16923 esac
16924 fi
16925 if test "$with_gnu_ld" = no; then
16926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16927 hardcode_libdir_separator=:
16928
16929 case $host_cpu in
16930 hppa*64*|ia64*)
16931 hardcode_direct=no
16932 hardcode_shlibpath_var=no
16933 ;;
16934 *)
16935 hardcode_direct=yes
16936 hardcode_direct_absolute=yes
16937 export_dynamic_flag_spec='${wl}-E'
16938
16939 # hardcode_minus_L: Not really in the search PATH,
16940 # but as the default location of the library.
16941 hardcode_minus_L=yes
16942 ;;
16943 esac
16944 fi
16945 ;;
16946
16947 irix5* | irix6* | nonstopux*)
16948 if test "$GCC" = yes; then
16949 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'
16950 # Try to use the -exported_symbol ld option, if it does not
16951 # work, assume that -exports_file does not work either and
16952 # implicitly export all symbols.
16953 save_LDFLAGS="$LDFLAGS"
16954 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957 int foo(void) {}
16958 _ACEOF
16959 if ac_fn_c_try_link "$LINENO"; then :
16960 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'
16961
16962 fi
16963 rm -f core conftest.err conftest.$ac_objext \
16964 conftest$ac_exeext conftest.$ac_ext
16965 LDFLAGS="$save_LDFLAGS"
16966 else
16967 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'
16968 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'
16969 fi
16970 archive_cmds_need_lc='no'
16971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16972 hardcode_libdir_separator=:
16973 inherit_rpath=yes
16974 link_all_deplibs=yes
16975 ;;
16976
16977 netbsd*)
16978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16980 else
16981 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16982 fi
16983 hardcode_libdir_flag_spec='-R$libdir'
16984 hardcode_direct=yes
16985 hardcode_shlibpath_var=no
16986 ;;
16987
16988 newsos6)
16989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16990 hardcode_direct=yes
16991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16992 hardcode_libdir_separator=:
16993 hardcode_shlibpath_var=no
16994 ;;
16995
16996 *nto* | *qnx*)
16997 ;;
16998
16999 openbsd*)
17000 if test -f /usr/libexec/ld.so; then
17001 hardcode_direct=yes
17002 hardcode_shlibpath_var=no
17003 hardcode_direct_absolute=yes
17004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17006 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17008 export_dynamic_flag_spec='${wl}-E'
17009 else
17010 case $host_os in
17011 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_libdir_flag_spec='-R$libdir'
17014 ;;
17015 *)
17016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17018 ;;
17019 esac
17020 fi
17021 else
17022 ld_shlibs=no
17023 fi
17024 ;;
17025
17026 os2*)
17027 hardcode_libdir_flag_spec='-L$libdir'
17028 hardcode_minus_L=yes
17029 allow_undefined_flag=unsupported
17030 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'
17031 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17032 ;;
17033
17034 osf3*)
17035 if test "$GCC" = yes; then
17036 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17037 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'
17038 else
17039 allow_undefined_flag=' -expect_unresolved \*'
17040 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'
17041 fi
17042 archive_cmds_need_lc='no'
17043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17044 hardcode_libdir_separator=:
17045 ;;
17046
17047 osf4* | osf5*) # as osf3* with the addition of -msym flag
17048 if test "$GCC" = yes; then
17049 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17050 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'
17051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17052 else
17053 allow_undefined_flag=' -expect_unresolved \*'
17054 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'
17055 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~
17056 $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'
17057
17058 # Both c and cxx compiler support -rpath directly
17059 hardcode_libdir_flag_spec='-rpath $libdir'
17060 fi
17061 archive_cmds_need_lc='no'
17062 hardcode_libdir_separator=:
17063 ;;
17064
17065 solaris*)
17066 no_undefined_flag=' -z defs'
17067 if test "$GCC" = yes; then
17068 wlarc='${wl}'
17069 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17071 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17072 else
17073 case `$CC -V 2>&1` in
17074 *"Compilers 5.0"*)
17075 wlarc=''
17076 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17077 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17078 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17079 ;;
17080 *)
17081 wlarc='${wl}'
17082 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17084 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17085 ;;
17086 esac
17087 fi
17088 hardcode_libdir_flag_spec='-R$libdir'
17089 hardcode_shlibpath_var=no
17090 case $host_os in
17091 solaris2.[0-5] | solaris2.[0-5].*) ;;
17092 *)
17093 # The compiler driver will combine and reorder linker options,
17094 # but understands `-z linker_flag'. GCC discards it without `$wl',
17095 # but is careful enough not to reorder.
17096 # Supported since Solaris 2.6 (maybe 2.5.1?)
17097 if test "$GCC" = yes; then
17098 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17099 else
17100 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17101 fi
17102 ;;
17103 esac
17104 link_all_deplibs=yes
17105 ;;
17106
17107 sunos4*)
17108 if test "x$host_vendor" = xsequent; then
17109 # Use $CC to link under sequent, because it throws in some extra .o
17110 # files that make .init and .fini sections work.
17111 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17112 else
17113 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17114 fi
17115 hardcode_libdir_flag_spec='-L$libdir'
17116 hardcode_direct=yes
17117 hardcode_minus_L=yes
17118 hardcode_shlibpath_var=no
17119 ;;
17120
17121 sysv4)
17122 case $host_vendor in
17123 sni)
17124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17125 hardcode_direct=yes # is this really true???
17126 ;;
17127 siemens)
17128 ## LD is ld it makes a PLAMLIB
17129 ## CC just makes a GrossModule.
17130 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17131 reload_cmds='$CC -r -o $output$reload_objs'
17132 hardcode_direct=no
17133 ;;
17134 motorola)
17135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17136 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17137 ;;
17138 esac
17139 runpath_var='LD_RUN_PATH'
17140 hardcode_shlibpath_var=no
17141 ;;
17142
17143 sysv4.3*)
17144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17145 hardcode_shlibpath_var=no
17146 export_dynamic_flag_spec='-Bexport'
17147 ;;
17148
17149 sysv4*MP*)
17150 if test -d /usr/nec; then
17151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17152 hardcode_shlibpath_var=no
17153 runpath_var=LD_RUN_PATH
17154 hardcode_runpath_var=yes
17155 ld_shlibs=yes
17156 fi
17157 ;;
17158
17159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17160 no_undefined_flag='${wl}-z,text'
17161 archive_cmds_need_lc=no
17162 hardcode_shlibpath_var=no
17163 runpath_var='LD_RUN_PATH'
17164
17165 if test "$GCC" = yes; then
17166 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17167 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17168 else
17169 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17170 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17171 fi
17172 ;;
17173
17174 sysv5* | sco3.2v5* | sco5v6*)
17175 # Note: We can NOT use -z defs as we might desire, because we do not
17176 # link with -lc, and that would cause any symbols used from libc to
17177 # always be unresolved, which means just about no library would
17178 # ever link correctly. If we're not using GNU ld we use -z text
17179 # though, which does catch some bad symbols but isn't as heavy-handed
17180 # as -z defs.
17181 no_undefined_flag='${wl}-z,text'
17182 allow_undefined_flag='${wl}-z,nodefs'
17183 archive_cmds_need_lc=no
17184 hardcode_shlibpath_var=no
17185 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17186 hardcode_libdir_separator=':'
17187 link_all_deplibs=yes
17188 export_dynamic_flag_spec='${wl}-Bexport'
17189 runpath_var='LD_RUN_PATH'
17190
17191 if test "$GCC" = yes; then
17192 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17193 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17194 else
17195 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17196 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17197 fi
17198 ;;
17199
17200 uts4*)
17201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17202 hardcode_libdir_flag_spec='-L$libdir'
17203 hardcode_shlibpath_var=no
17204 ;;
17205
17206 *)
17207 ld_shlibs=no
17208 ;;
17209 esac
17210
17211 if test x$host_vendor = xsni; then
17212 case $host in
17213 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17214 export_dynamic_flag_spec='${wl}-Blargedynsym'
17215 ;;
17216 esac
17217 fi
17218 fi
17219
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17221 $as_echo "$ld_shlibs" >&6; }
17222 test "$ld_shlibs" = no && can_build_shared=no
17223
17224 with_gnu_ld=$with_gnu_ld
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240 #
17241 # Do we need to explicitly link libc?
17242 #
17243 case "x$archive_cmds_need_lc" in
17244 x|xyes)
17245 # Assume -lc should be added
17246 archive_cmds_need_lc=yes
17247
17248 if test "$enable_shared" = yes && test "$GCC" = yes; then
17249 case $archive_cmds in
17250 *'~'*)
17251 # FIXME: we may have to deal with multi-command sequences.
17252 ;;
17253 '$CC '*)
17254 # Test whether the compiler implicitly links with -lc since on some
17255 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17256 # to ld, don't add -lc before -lgcc.
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17258 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17259 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17260 $as_echo_n "(cached) " >&6
17261 else
17262 $RM conftest*
17263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17264
17265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17266 (eval $ac_compile) 2>&5
17267 ac_status=$?
17268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17269 test $ac_status = 0; } 2>conftest.err; then
17270 soname=conftest
17271 lib=conftest
17272 libobjs=conftest.$ac_objext
17273 deplibs=
17274 wl=$lt_prog_compiler_wl
17275 pic_flag=$lt_prog_compiler_pic
17276 compiler_flags=-v
17277 linker_flags=-v
17278 verstring=
17279 output_objdir=.
17280 libname=conftest
17281 lt_save_allow_undefined_flag=$allow_undefined_flag
17282 allow_undefined_flag=
17283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17284 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17285 ac_status=$?
17286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17287 test $ac_status = 0; }
17288 then
17289 lt_cv_archive_cmds_need_lc=no
17290 else
17291 lt_cv_archive_cmds_need_lc=yes
17292 fi
17293 allow_undefined_flag=$lt_save_allow_undefined_flag
17294 else
17295 cat conftest.err 1>&5
17296 fi
17297 $RM conftest*
17298
17299 fi
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17301 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17302 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17303 ;;
17304 esac
17305 fi
17306 ;;
17307 esac
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17466 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17467
17468 if test "$GCC" = yes; then
17469 case $host_os in
17470 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17471 *) lt_awk_arg="/^libraries:/" ;;
17472 esac
17473 case $host_os in
17474 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17475 *) lt_sed_strip_eq="s,=/,/,g" ;;
17476 esac
17477 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17478 case $lt_search_path_spec in
17479 *\;*)
17480 # if the path contains ";" then we assume it to be the separator
17481 # otherwise default to the standard path separator (i.e. ":") - it is
17482 # assumed that no part of a normal pathname contains ";" but that should
17483 # okay in the real world where ";" in dirpaths is itself problematic.
17484 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17485 ;;
17486 *)
17487 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17488 ;;
17489 esac
17490 # Ok, now we have the path, separated by spaces, we can step through it
17491 # and add multilib dir if necessary.
17492 lt_tmp_lt_search_path_spec=
17493 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17494 for lt_sys_path in $lt_search_path_spec; do
17495 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17496 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17497 else
17498 test -d "$lt_sys_path" && \
17499 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17500 fi
17501 done
17502 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17503 BEGIN {RS=" "; FS="/|\n";} {
17504 lt_foo="";
17505 lt_count=0;
17506 for (lt_i = NF; lt_i > 0; lt_i--) {
17507 if ($lt_i != "" && $lt_i != ".") {
17508 if ($lt_i == "..") {
17509 lt_count++;
17510 } else {
17511 if (lt_count == 0) {
17512 lt_foo="/" $lt_i lt_foo;
17513 } else {
17514 lt_count--;
17515 }
17516 }
17517 }
17518 }
17519 if (lt_foo != "") { lt_freq[lt_foo]++; }
17520 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17521 }'`
17522 # AWK program above erroneously prepends '/' to C:/dos/paths
17523 # for these hosts.
17524 case $host_os in
17525 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17526 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17527 esac
17528 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17529 else
17530 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17531 fi
17532 library_names_spec=
17533 libname_spec='lib$name'
17534 soname_spec=
17535 shrext_cmds=".so"
17536 postinstall_cmds=
17537 postuninstall_cmds=
17538 finish_cmds=
17539 finish_eval=
17540 shlibpath_var=
17541 shlibpath_overrides_runpath=unknown
17542 version_type=none
17543 dynamic_linker="$host_os ld.so"
17544 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17545 need_lib_prefix=unknown
17546 hardcode_into_libs=no
17547
17548 # when you set need_version to no, make sure it does not cause -set_version
17549 # flags to be left without arguments
17550 need_version=unknown
17551
17552 case $host_os in
17553 aix3*)
17554 version_type=linux
17555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17556 shlibpath_var=LIBPATH
17557
17558 # AIX 3 has no versioning support, so we append a major version to the name.
17559 soname_spec='${libname}${release}${shared_ext}$major'
17560 ;;
17561
17562 aix[4-9]*)
17563 version_type=linux
17564 need_lib_prefix=no
17565 need_version=no
17566 hardcode_into_libs=yes
17567 if test "$host_cpu" = ia64; then
17568 # AIX 5 supports IA64
17569 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17570 shlibpath_var=LD_LIBRARY_PATH
17571 else
17572 # With GCC up to 2.95.x, collect2 would create an import file
17573 # for dependence libraries. The import file would start with
17574 # the line `#! .'. This would cause the generated library to
17575 # depend on `.', always an invalid library. This was fixed in
17576 # development snapshots of GCC prior to 3.0.
17577 case $host_os in
17578 aix4 | aix4.[01] | aix4.[01].*)
17579 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17580 echo ' yes '
17581 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17582 :
17583 else
17584 can_build_shared=no
17585 fi
17586 ;;
17587 esac
17588 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17589 # soname into executable. Probably we can add versioning support to
17590 # collect2, so additional links can be useful in future.
17591 if test "$aix_use_runtimelinking" = yes; then
17592 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17593 # instead of lib<name>.a to let people know that these are not
17594 # typical AIX shared libraries.
17595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596 else
17597 # We preserve .a as extension for shared libraries through AIX4.2
17598 # and later when we are not doing run time linking.
17599 library_names_spec='${libname}${release}.a $libname.a'
17600 soname_spec='${libname}${release}${shared_ext}$major'
17601 fi
17602 shlibpath_var=LIBPATH
17603 fi
17604 ;;
17605
17606 amigaos*)
17607 case $host_cpu in
17608 powerpc)
17609 # Since July 2007 AmigaOS4 officially supports .so libraries.
17610 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612 ;;
17613 m68k)
17614 library_names_spec='$libname.ixlibrary $libname.a'
17615 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17616 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'
17617 ;;
17618 esac
17619 ;;
17620
17621 beos*)
17622 library_names_spec='${libname}${shared_ext}'
17623 dynamic_linker="$host_os ld.so"
17624 shlibpath_var=LIBRARY_PATH
17625 ;;
17626
17627 bsdi[45]*)
17628 version_type=linux
17629 need_version=no
17630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17631 soname_spec='${libname}${release}${shared_ext}$major'
17632 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17633 shlibpath_var=LD_LIBRARY_PATH
17634 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17635 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17636 # the default ld.so.conf also contains /usr/contrib/lib and
17637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17638 # libtool to hard-code these into programs
17639 ;;
17640
17641 cygwin* | mingw* | pw32* | cegcc*)
17642 version_type=windows
17643 shrext_cmds=".dll"
17644 need_version=no
17645 need_lib_prefix=no
17646
17647 case $GCC,$host_os in
17648 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17649 library_names_spec='$libname.dll.a'
17650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17651 postinstall_cmds='base_file=`basename \${file}`~
17652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17653 dldir=$destdir/`dirname \$dlpath`~
17654 test -d \$dldir || mkdir -p \$dldir~
17655 $install_prog $dir/$dlname \$dldir/$dlname~
17656 chmod a+x \$dldir/$dlname~
17657 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17658 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17659 fi'
17660 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17661 dlpath=$dir/\$dldll~
17662 $RM \$dlpath'
17663 shlibpath_overrides_runpath=yes
17664
17665 case $host_os in
17666 cygwin*)
17667 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17668 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17669
17670 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17671 ;;
17672 mingw* | cegcc*)
17673 # MinGW DLLs use traditional 'lib' prefix
17674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17675 ;;
17676 pw32*)
17677 # pw32 DLLs use 'pw' prefix rather than 'lib'
17678 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17679 ;;
17680 esac
17681 ;;
17682
17683 *)
17684 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17685 ;;
17686 esac
17687 dynamic_linker='Win32 ld.exe'
17688 # FIXME: first we should search . and the directory the executable is in
17689 shlibpath_var=PATH
17690 ;;
17691
17692 darwin* | rhapsody*)
17693 dynamic_linker="$host_os dyld"
17694 version_type=darwin
17695 need_lib_prefix=no
17696 need_version=no
17697 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17698 soname_spec='${libname}${release}${major}$shared_ext'
17699 shlibpath_overrides_runpath=yes
17700 shlibpath_var=DYLD_LIBRARY_PATH
17701 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17702
17703 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17705 ;;
17706
17707 dgux*)
17708 version_type=linux
17709 need_lib_prefix=no
17710 need_version=no
17711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17712 soname_spec='${libname}${release}${shared_ext}$major'
17713 shlibpath_var=LD_LIBRARY_PATH
17714 ;;
17715
17716 freebsd* | dragonfly*)
17717 # DragonFly does not have aout. When/if they implement a new
17718 # versioning mechanism, adjust this.
17719 if test -x /usr/bin/objformat; then
17720 objformat=`/usr/bin/objformat`
17721 else
17722 case $host_os in
17723 freebsd[23].*) objformat=aout ;;
17724 *) objformat=elf ;;
17725 esac
17726 fi
17727 version_type=freebsd-$objformat
17728 case $version_type in
17729 freebsd-elf*)
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17731 need_version=no
17732 need_lib_prefix=no
17733 ;;
17734 freebsd-*)
17735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17736 need_version=yes
17737 ;;
17738 esac
17739 shlibpath_var=LD_LIBRARY_PATH
17740 case $host_os in
17741 freebsd2.*)
17742 shlibpath_overrides_runpath=yes
17743 ;;
17744 freebsd3.[01]* | freebsdelf3.[01]*)
17745 shlibpath_overrides_runpath=yes
17746 hardcode_into_libs=yes
17747 ;;
17748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17750 shlibpath_overrides_runpath=no
17751 hardcode_into_libs=yes
17752 ;;
17753 *) # from 4.6 on, and DragonFly
17754 shlibpath_overrides_runpath=yes
17755 hardcode_into_libs=yes
17756 ;;
17757 esac
17758 ;;
17759
17760 gnu*)
17761 version_type=linux
17762 need_lib_prefix=no
17763 need_version=no
17764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17765 soname_spec='${libname}${release}${shared_ext}$major'
17766 shlibpath_var=LD_LIBRARY_PATH
17767 hardcode_into_libs=yes
17768 ;;
17769
17770 haiku*)
17771 version_type=linux
17772 need_lib_prefix=no
17773 need_version=no
17774 dynamic_linker="$host_os runtime_loader"
17775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17776 soname_spec='${libname}${release}${shared_ext}$major'
17777 shlibpath_var=LIBRARY_PATH
17778 shlibpath_overrides_runpath=yes
17779 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17780 hardcode_into_libs=yes
17781 ;;
17782
17783 hpux9* | hpux10* | hpux11*)
17784 # Give a soname corresponding to the major version so that dld.sl refuses to
17785 # link against other versions.
17786 version_type=sunos
17787 need_lib_prefix=no
17788 need_version=no
17789 case $host_cpu in
17790 ia64*)
17791 shrext_cmds='.so'
17792 hardcode_into_libs=yes
17793 dynamic_linker="$host_os dld.so"
17794 shlibpath_var=LD_LIBRARY_PATH
17795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17797 soname_spec='${libname}${release}${shared_ext}$major'
17798 if test "X$HPUX_IA64_MODE" = X32; then
17799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17800 else
17801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17802 fi
17803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17804 ;;
17805 hppa*64*)
17806 shrext_cmds='.sl'
17807 hardcode_into_libs=yes
17808 dynamic_linker="$host_os dld.sl"
17809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17812 soname_spec='${libname}${release}${shared_ext}$major'
17813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17815 ;;
17816 *)
17817 shrext_cmds='.sl'
17818 dynamic_linker="$host_os dld.sl"
17819 shlibpath_var=SHLIB_PATH
17820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17822 soname_spec='${libname}${release}${shared_ext}$major'
17823 ;;
17824 esac
17825 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17826 postinstall_cmds='chmod 555 $lib'
17827 # or fails outright, so override atomically:
17828 install_override_mode=555
17829 ;;
17830
17831 interix[3-9]*)
17832 version_type=linux
17833 need_lib_prefix=no
17834 need_version=no
17835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17836 soname_spec='${libname}${release}${shared_ext}$major'
17837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17838 shlibpath_var=LD_LIBRARY_PATH
17839 shlibpath_overrides_runpath=no
17840 hardcode_into_libs=yes
17841 ;;
17842
17843 irix5* | irix6* | nonstopux*)
17844 case $host_os in
17845 nonstopux*) version_type=nonstopux ;;
17846 *)
17847 if test "$lt_cv_prog_gnu_ld" = yes; then
17848 version_type=linux
17849 else
17850 version_type=irix
17851 fi ;;
17852 esac
17853 need_lib_prefix=no
17854 need_version=no
17855 soname_spec='${libname}${release}${shared_ext}$major'
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17857 case $host_os in
17858 irix5* | nonstopux*)
17859 libsuff= shlibsuff=
17860 ;;
17861 *)
17862 case $LD in # libtool.m4 will add one of these switches to LD
17863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17864 libsuff= shlibsuff= libmagic=32-bit;;
17865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17866 libsuff=32 shlibsuff=N32 libmagic=N32;;
17867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17869 *) libsuff= shlibsuff= libmagic=never-match;;
17870 esac
17871 ;;
17872 esac
17873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17874 shlibpath_overrides_runpath=no
17875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17877 hardcode_into_libs=yes
17878 ;;
17879
17880 # No shared lib support for Linux oldld, aout, or coff.
17881 linux*oldld* | linux*aout* | linux*coff*)
17882 dynamic_linker=no
17883 ;;
17884
17885 # This must be Linux ELF.
17886 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17887 version_type=linux
17888 need_lib_prefix=no
17889 need_version=no
17890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17891 soname_spec='${libname}${release}${shared_ext}$major'
17892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17893 shlibpath_var=LD_LIBRARY_PATH
17894 shlibpath_overrides_runpath=no
17895
17896 # Some binutils ld are patched to set DT_RUNPATH
17897 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17898 $as_echo_n "(cached) " >&6
17899 else
17900 lt_cv_shlibpath_overrides_runpath=no
17901 save_LDFLAGS=$LDFLAGS
17902 save_libdir=$libdir
17903 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17904 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h. */
17907
17908 int
17909 main ()
17910 {
17911
17912 ;
17913 return 0;
17914 }
17915 _ACEOF
17916 if ac_fn_c_try_link "$LINENO"; then :
17917 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17918 lt_cv_shlibpath_overrides_runpath=yes
17919 fi
17920 fi
17921 rm -f core conftest.err conftest.$ac_objext \
17922 conftest$ac_exeext conftest.$ac_ext
17923 LDFLAGS=$save_LDFLAGS
17924 libdir=$save_libdir
17925
17926 fi
17927
17928 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17929
17930 # This implies no fast_install, which is unacceptable.
17931 # Some rework will be needed to allow for fast_install
17932 # before this can be enabled.
17933 hardcode_into_libs=yes
17934
17935 # Append ld.so.conf contents to the search path
17936 if test -f /etc/ld.so.conf; then
17937 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' ' '`
17938 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17939 fi
17940
17941 # We used to test for /lib/ld.so.1 and disable shared libraries on
17942 # powerpc, because MkLinux only supported shared libraries with the
17943 # GNU dynamic linker. Since this was broken with cross compilers,
17944 # most powerpc-linux boxes support dynamic linking these days and
17945 # people can always --disable-shared, the test was removed, and we
17946 # assume the GNU/Linux dynamic linker is in use.
17947 dynamic_linker='GNU/Linux ld.so'
17948 ;;
17949
17950 netbsd*)
17951 version_type=sunos
17952 need_lib_prefix=no
17953 need_version=no
17954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17957 dynamic_linker='NetBSD (a.out) ld.so'
17958 else
17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17960 soname_spec='${libname}${release}${shared_ext}$major'
17961 dynamic_linker='NetBSD ld.elf_so'
17962 fi
17963 shlibpath_var=LD_LIBRARY_PATH
17964 shlibpath_overrides_runpath=yes
17965 hardcode_into_libs=yes
17966 ;;
17967
17968 newsos6)
17969 version_type=linux
17970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17971 shlibpath_var=LD_LIBRARY_PATH
17972 shlibpath_overrides_runpath=yes
17973 ;;
17974
17975 *nto* | *qnx*)
17976 version_type=qnx
17977 need_lib_prefix=no
17978 need_version=no
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980 soname_spec='${libname}${release}${shared_ext}$major'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=no
17983 hardcode_into_libs=yes
17984 dynamic_linker='ldqnx.so'
17985 ;;
17986
17987 openbsd*)
17988 version_type=sunos
17989 sys_lib_dlsearch_path_spec="/usr/lib"
17990 need_lib_prefix=no
17991 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17992 case $host_os in
17993 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17994 *) need_version=no ;;
17995 esac
17996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17998 shlibpath_var=LD_LIBRARY_PATH
17999 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18000 case $host_os in
18001 openbsd2.[89] | openbsd2.[89].*)
18002 shlibpath_overrides_runpath=no
18003 ;;
18004 *)
18005 shlibpath_overrides_runpath=yes
18006 ;;
18007 esac
18008 else
18009 shlibpath_overrides_runpath=yes
18010 fi
18011 ;;
18012
18013 os2*)
18014 libname_spec='$name'
18015 shrext_cmds=".dll"
18016 need_lib_prefix=no
18017 library_names_spec='$libname${shared_ext} $libname.a'
18018 dynamic_linker='OS/2 ld.exe'
18019 shlibpath_var=LIBPATH
18020 ;;
18021
18022 osf3* | osf4* | osf5*)
18023 version_type=osf
18024 need_lib_prefix=no
18025 need_version=no
18026 soname_spec='${libname}${release}${shared_ext}$major'
18027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18028 shlibpath_var=LD_LIBRARY_PATH
18029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18030 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18031 ;;
18032
18033 rdos*)
18034 dynamic_linker=no
18035 ;;
18036
18037 solaris*)
18038 version_type=linux
18039 need_lib_prefix=no
18040 need_version=no
18041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18042 soname_spec='${libname}${release}${shared_ext}$major'
18043 shlibpath_var=LD_LIBRARY_PATH
18044 shlibpath_overrides_runpath=yes
18045 hardcode_into_libs=yes
18046 # ldd complains unless libraries are executable
18047 postinstall_cmds='chmod +x $lib'
18048 ;;
18049
18050 sunos4*)
18051 version_type=sunos
18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18053 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18054 shlibpath_var=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath=yes
18056 if test "$with_gnu_ld" = yes; then
18057 need_lib_prefix=no
18058 fi
18059 need_version=yes
18060 ;;
18061
18062 sysv4 | sysv4.3*)
18063 version_type=linux
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18065 soname_spec='${libname}${release}${shared_ext}$major'
18066 shlibpath_var=LD_LIBRARY_PATH
18067 case $host_vendor in
18068 sni)
18069 shlibpath_overrides_runpath=no
18070 need_lib_prefix=no
18071 runpath_var=LD_RUN_PATH
18072 ;;
18073 siemens)
18074 need_lib_prefix=no
18075 ;;
18076 motorola)
18077 need_lib_prefix=no
18078 need_version=no
18079 shlibpath_overrides_runpath=no
18080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18081 ;;
18082 esac
18083 ;;
18084
18085 sysv4*MP*)
18086 if test -d /usr/nec ;then
18087 version_type=linux
18088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18089 soname_spec='$libname${shared_ext}.$major'
18090 shlibpath_var=LD_LIBRARY_PATH
18091 fi
18092 ;;
18093
18094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18095 version_type=freebsd-elf
18096 need_lib_prefix=no
18097 need_version=no
18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18099 soname_spec='${libname}${release}${shared_ext}$major'
18100 shlibpath_var=LD_LIBRARY_PATH
18101 shlibpath_overrides_runpath=yes
18102 hardcode_into_libs=yes
18103 if test "$with_gnu_ld" = yes; then
18104 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18105 else
18106 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18107 case $host_os in
18108 sco3.2v5*)
18109 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18110 ;;
18111 esac
18112 fi
18113 sys_lib_dlsearch_path_spec='/usr/lib'
18114 ;;
18115
18116 tpf*)
18117 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18118 version_type=linux
18119 need_lib_prefix=no
18120 need_version=no
18121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18122 shlibpath_var=LD_LIBRARY_PATH
18123 shlibpath_overrides_runpath=no
18124 hardcode_into_libs=yes
18125 ;;
18126
18127 uts4*)
18128 version_type=linux
18129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18130 soname_spec='${libname}${release}${shared_ext}$major'
18131 shlibpath_var=LD_LIBRARY_PATH
18132 ;;
18133
18134 *)
18135 dynamic_linker=no
18136 ;;
18137 esac
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18139 $as_echo "$dynamic_linker" >&6; }
18140 test "$dynamic_linker" = no && can_build_shared=no
18141
18142 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18143 if test "$GCC" = yes; then
18144 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18145 fi
18146
18147 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18148 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18149 fi
18150 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18151 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18152 fi
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18246 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18247 hardcode_action=
18248 if test -n "$hardcode_libdir_flag_spec" ||
18249 test -n "$runpath_var" ||
18250 test "X$hardcode_automatic" = "Xyes" ; then
18251
18252 # We can hardcode non-existent directories.
18253 if test "$hardcode_direct" != no &&
18254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18255 # have to relink, otherwise we might link with an installed library
18256 # when we should be linking with a yet-to-be-installed one
18257 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18258 test "$hardcode_minus_L" != no; then
18259 # Linking always hardcodes the temporary library directory.
18260 hardcode_action=relink
18261 else
18262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18263 hardcode_action=immediate
18264 fi
18265 else
18266 # We cannot hardcode anything, or else we can only hardcode existing
18267 # directories.
18268 hardcode_action=unsupported
18269 fi
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18271 $as_echo "$hardcode_action" >&6; }
18272
18273 if test "$hardcode_action" = relink ||
18274 test "$inherit_rpath" = yes; then
18275 # Fast installation is not supported
18276 enable_fast_install=no
18277 elif test "$shlibpath_overrides_runpath" = yes ||
18278 test "$enable_shared" = no; then
18279 # Fast installation is not necessary
18280 enable_fast_install=needless
18281 fi
18282
18283
18284
18285
18286
18287
18288 if test "x$enable_dlopen" != xyes; then
18289 enable_dlopen=unknown
18290 enable_dlopen_self=unknown
18291 enable_dlopen_self_static=unknown
18292 else
18293 lt_cv_dlopen=no
18294 lt_cv_dlopen_libs=
18295
18296 case $host_os in
18297 beos*)
18298 lt_cv_dlopen="load_add_on"
18299 lt_cv_dlopen_libs=
18300 lt_cv_dlopen_self=yes
18301 ;;
18302
18303 mingw* | pw32* | cegcc*)
18304 lt_cv_dlopen="LoadLibrary"
18305 lt_cv_dlopen_libs=
18306 ;;
18307
18308 cygwin*)
18309 lt_cv_dlopen="dlopen"
18310 lt_cv_dlopen_libs=
18311 ;;
18312
18313 darwin*)
18314 # if libdl is installed we need to link against it
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18316 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18317 if ${ac_cv_lib_dl_dlopen+:} false; then :
18318 $as_echo_n "(cached) " >&6
18319 else
18320 ac_check_lib_save_LIBS=$LIBS
18321 LIBS="-ldl $LIBS"
18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18324
18325 /* Override any GCC internal prototype to avoid an error.
18326 Use char because int might match the return type of a GCC
18327 builtin and then its argument prototype would still apply. */
18328 #ifdef __cplusplus
18329 extern "C"
18330 #endif
18331 char dlopen ();
18332 int
18333 main ()
18334 {
18335 return dlopen ();
18336 ;
18337 return 0;
18338 }
18339 _ACEOF
18340 if ac_fn_c_try_link "$LINENO"; then :
18341 ac_cv_lib_dl_dlopen=yes
18342 else
18343 ac_cv_lib_dl_dlopen=no
18344 fi
18345 rm -f core conftest.err conftest.$ac_objext \
18346 conftest$ac_exeext conftest.$ac_ext
18347 LIBS=$ac_check_lib_save_LIBS
18348 fi
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18350 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18351 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18352 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18353 else
18354
18355 lt_cv_dlopen="dyld"
18356 lt_cv_dlopen_libs=
18357 lt_cv_dlopen_self=yes
18358
18359 fi
18360
18361 ;;
18362
18363 *)
18364 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18365 if test "x$ac_cv_func_shl_load" = xyes; then :
18366 lt_cv_dlopen="shl_load"
18367 else
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18369 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18370 if ${ac_cv_lib_dld_shl_load+:} false; then :
18371 $as_echo_n "(cached) " >&6
18372 else
18373 ac_check_lib_save_LIBS=$LIBS
18374 LIBS="-ldld $LIBS"
18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h. */
18377
18378 /* Override any GCC internal prototype to avoid an error.
18379 Use char because int might match the return type of a GCC
18380 builtin and then its argument prototype would still apply. */
18381 #ifdef __cplusplus
18382 extern "C"
18383 #endif
18384 char shl_load ();
18385 int
18386 main ()
18387 {
18388 return shl_load ();
18389 ;
18390 return 0;
18391 }
18392 _ACEOF
18393 if ac_fn_c_try_link "$LINENO"; then :
18394 ac_cv_lib_dld_shl_load=yes
18395 else
18396 ac_cv_lib_dld_shl_load=no
18397 fi
18398 rm -f core conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
18400 LIBS=$ac_check_lib_save_LIBS
18401 fi
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18403 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18404 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18405 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18406 else
18407 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18408 if test "x$ac_cv_func_dlopen" = xyes; then :
18409 lt_cv_dlopen="dlopen"
18410 else
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18412 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18413 if ${ac_cv_lib_dl_dlopen+:} false; then :
18414 $as_echo_n "(cached) " >&6
18415 else
18416 ac_check_lib_save_LIBS=$LIBS
18417 LIBS="-ldl $LIBS"
18418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18420
18421 /* Override any GCC internal prototype to avoid an error.
18422 Use char because int might match the return type of a GCC
18423 builtin and then its argument prototype would still apply. */
18424 #ifdef __cplusplus
18425 extern "C"
18426 #endif
18427 char dlopen ();
18428 int
18429 main ()
18430 {
18431 return dlopen ();
18432 ;
18433 return 0;
18434 }
18435 _ACEOF
18436 if ac_fn_c_try_link "$LINENO"; then :
18437 ac_cv_lib_dl_dlopen=yes
18438 else
18439 ac_cv_lib_dl_dlopen=no
18440 fi
18441 rm -f core conftest.err conftest.$ac_objext \
18442 conftest$ac_exeext conftest.$ac_ext
18443 LIBS=$ac_check_lib_save_LIBS
18444 fi
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18446 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18447 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18449 else
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18451 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18452 if ${ac_cv_lib_svld_dlopen+:} false; then :
18453 $as_echo_n "(cached) " >&6
18454 else
18455 ac_check_lib_save_LIBS=$LIBS
18456 LIBS="-lsvld $LIBS"
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h. */
18459
18460 /* Override any GCC internal prototype to avoid an error.
18461 Use char because int might match the return type of a GCC
18462 builtin and then its argument prototype would still apply. */
18463 #ifdef __cplusplus
18464 extern "C"
18465 #endif
18466 char dlopen ();
18467 int
18468 main ()
18469 {
18470 return dlopen ();
18471 ;
18472 return 0;
18473 }
18474 _ACEOF
18475 if ac_fn_c_try_link "$LINENO"; then :
18476 ac_cv_lib_svld_dlopen=yes
18477 else
18478 ac_cv_lib_svld_dlopen=no
18479 fi
18480 rm -f core conftest.err conftest.$ac_objext \
18481 conftest$ac_exeext conftest.$ac_ext
18482 LIBS=$ac_check_lib_save_LIBS
18483 fi
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18485 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18486 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18488 else
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18490 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18491 if ${ac_cv_lib_dld_dld_link+:} false; then :
18492 $as_echo_n "(cached) " >&6
18493 else
18494 ac_check_lib_save_LIBS=$LIBS
18495 LIBS="-ldld $LIBS"
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18498
18499 /* Override any GCC internal prototype to avoid an error.
18500 Use char because int might match the return type of a GCC
18501 builtin and then its argument prototype would still apply. */
18502 #ifdef __cplusplus
18503 extern "C"
18504 #endif
18505 char dld_link ();
18506 int
18507 main ()
18508 {
18509 return dld_link ();
18510 ;
18511 return 0;
18512 }
18513 _ACEOF
18514 if ac_fn_c_try_link "$LINENO"; then :
18515 ac_cv_lib_dld_dld_link=yes
18516 else
18517 ac_cv_lib_dld_dld_link=no
18518 fi
18519 rm -f core conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18521 LIBS=$ac_check_lib_save_LIBS
18522 fi
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18524 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18525 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18526 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18527 fi
18528
18529
18530 fi
18531
18532
18533 fi
18534
18535
18536 fi
18537
18538
18539 fi
18540
18541
18542 fi
18543
18544 ;;
18545 esac
18546
18547 if test "x$lt_cv_dlopen" != xno; then
18548 enable_dlopen=yes
18549 else
18550 enable_dlopen=no
18551 fi
18552
18553 case $lt_cv_dlopen in
18554 dlopen)
18555 save_CPPFLAGS="$CPPFLAGS"
18556 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18557
18558 save_LDFLAGS="$LDFLAGS"
18559 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18560
18561 save_LIBS="$LIBS"
18562 LIBS="$lt_cv_dlopen_libs $LIBS"
18563
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18565 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18566 if ${lt_cv_dlopen_self+:} false; then :
18567 $as_echo_n "(cached) " >&6
18568 else
18569 if test "$cross_compiling" = yes; then :
18570 lt_cv_dlopen_self=cross
18571 else
18572 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18573 lt_status=$lt_dlunknown
18574 cat > conftest.$ac_ext <<_LT_EOF
18575 #line 18575 "configure"
18576 #include "confdefs.h"
18577
18578 #if HAVE_DLFCN_H
18579 #include <dlfcn.h>
18580 #endif
18581
18582 #include <stdio.h>
18583
18584 #ifdef RTLD_GLOBAL
18585 # define LT_DLGLOBAL RTLD_GLOBAL
18586 #else
18587 # ifdef DL_GLOBAL
18588 # define LT_DLGLOBAL DL_GLOBAL
18589 # else
18590 # define LT_DLGLOBAL 0
18591 # endif
18592 #endif
18593
18594 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18595 find out it does not work in some platform. */
18596 #ifndef LT_DLLAZY_OR_NOW
18597 # ifdef RTLD_LAZY
18598 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18599 # else
18600 # ifdef DL_LAZY
18601 # define LT_DLLAZY_OR_NOW DL_LAZY
18602 # else
18603 # ifdef RTLD_NOW
18604 # define LT_DLLAZY_OR_NOW RTLD_NOW
18605 # else
18606 # ifdef DL_NOW
18607 # define LT_DLLAZY_OR_NOW DL_NOW
18608 # else
18609 # define LT_DLLAZY_OR_NOW 0
18610 # endif
18611 # endif
18612 # endif
18613 # endif
18614 #endif
18615
18616 /* When -fvisbility=hidden is used, assume the code has been annotated
18617 correspondingly for the symbols needed. */
18618 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18619 void fnord () __attribute__((visibility("default")));
18620 #endif
18621
18622 void fnord () { int i=42; }
18623 int main ()
18624 {
18625 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18626 int status = $lt_dlunknown;
18627
18628 if (self)
18629 {
18630 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18631 else
18632 {
18633 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18634 else puts (dlerror ());
18635 }
18636 /* dlclose (self); */
18637 }
18638 else
18639 puts (dlerror ());
18640
18641 return status;
18642 }
18643 _LT_EOF
18644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18645 (eval $ac_link) 2>&5
18646 ac_status=$?
18647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18648 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18649 (./conftest; exit; ) >&5 2>/dev/null
18650 lt_status=$?
18651 case x$lt_status in
18652 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18653 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18654 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18655 esac
18656 else :
18657 # compilation failed
18658 lt_cv_dlopen_self=no
18659 fi
18660 fi
18661 rm -fr conftest*
18662
18663
18664 fi
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18666 $as_echo "$lt_cv_dlopen_self" >&6; }
18667
18668 if test "x$lt_cv_dlopen_self" = xyes; then
18669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18671 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18672 if ${lt_cv_dlopen_self_static+:} false; then :
18673 $as_echo_n "(cached) " >&6
18674 else
18675 if test "$cross_compiling" = yes; then :
18676 lt_cv_dlopen_self_static=cross
18677 else
18678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18679 lt_status=$lt_dlunknown
18680 cat > conftest.$ac_ext <<_LT_EOF
18681 #line 18681 "configure"
18682 #include "confdefs.h"
18683
18684 #if HAVE_DLFCN_H
18685 #include <dlfcn.h>
18686 #endif
18687
18688 #include <stdio.h>
18689
18690 #ifdef RTLD_GLOBAL
18691 # define LT_DLGLOBAL RTLD_GLOBAL
18692 #else
18693 # ifdef DL_GLOBAL
18694 # define LT_DLGLOBAL DL_GLOBAL
18695 # else
18696 # define LT_DLGLOBAL 0
18697 # endif
18698 #endif
18699
18700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18701 find out it does not work in some platform. */
18702 #ifndef LT_DLLAZY_OR_NOW
18703 # ifdef RTLD_LAZY
18704 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18705 # else
18706 # ifdef DL_LAZY
18707 # define LT_DLLAZY_OR_NOW DL_LAZY
18708 # else
18709 # ifdef RTLD_NOW
18710 # define LT_DLLAZY_OR_NOW RTLD_NOW
18711 # else
18712 # ifdef DL_NOW
18713 # define LT_DLLAZY_OR_NOW DL_NOW
18714 # else
18715 # define LT_DLLAZY_OR_NOW 0
18716 # endif
18717 # endif
18718 # endif
18719 # endif
18720 #endif
18721
18722 /* When -fvisbility=hidden is used, assume the code has been annotated
18723 correspondingly for the symbols needed. */
18724 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18725 void fnord () __attribute__((visibility("default")));
18726 #endif
18727
18728 void fnord () { int i=42; }
18729 int main ()
18730 {
18731 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18732 int status = $lt_dlunknown;
18733
18734 if (self)
18735 {
18736 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18737 else
18738 {
18739 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18740 else puts (dlerror ());
18741 }
18742 /* dlclose (self); */
18743 }
18744 else
18745 puts (dlerror ());
18746
18747 return status;
18748 }
18749 _LT_EOF
18750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18751 (eval $ac_link) 2>&5
18752 ac_status=$?
18753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18754 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18755 (./conftest; exit; ) >&5 2>/dev/null
18756 lt_status=$?
18757 case x$lt_status in
18758 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18759 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18760 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18761 esac
18762 else :
18763 # compilation failed
18764 lt_cv_dlopen_self_static=no
18765 fi
18766 fi
18767 rm -fr conftest*
18768
18769
18770 fi
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18772 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18773 fi
18774
18775 CPPFLAGS="$save_CPPFLAGS"
18776 LDFLAGS="$save_LDFLAGS"
18777 LIBS="$save_LIBS"
18778 ;;
18779 esac
18780
18781 case $lt_cv_dlopen_self in
18782 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18783 *) enable_dlopen_self=unknown ;;
18784 esac
18785
18786 case $lt_cv_dlopen_self_static in
18787 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18788 *) enable_dlopen_self_static=unknown ;;
18789 esac
18790 fi
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808 striplib=
18809 old_striplib=
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18811 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18812 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18813 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18814 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18816 $as_echo "yes" >&6; }
18817 else
18818 # FIXME - insert some real tests, host_os isn't really good enough
18819 case $host_os in
18820 darwin*)
18821 if test -n "$STRIP" ; then
18822 striplib="$STRIP -x"
18823 old_striplib="$STRIP -S"
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18825 $as_echo "yes" >&6; }
18826 else
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18828 $as_echo "no" >&6; }
18829 fi
18830 ;;
18831 *)
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18833 $as_echo "no" >&6; }
18834 ;;
18835 esac
18836 fi
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849 # Report which library types will actually be built
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18851 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18853 $as_echo "$can_build_shared" >&6; }
18854
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18856 $as_echo_n "checking whether to build shared libraries... " >&6; }
18857 test "$can_build_shared" = "no" && enable_shared=no
18858
18859 # On AIX, shared libraries and static libraries use the same namespace, and
18860 # are all built from PIC.
18861 case $host_os in
18862 aix3*)
18863 test "$enable_shared" = yes && enable_static=no
18864 if test -n "$RANLIB"; then
18865 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18866 postinstall_cmds='$RANLIB $lib'
18867 fi
18868 ;;
18869
18870 aix[4-9]*)
18871 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18872 test "$enable_shared" = yes && enable_static=no
18873 fi
18874 ;;
18875 esac
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18877 $as_echo "$enable_shared" >&6; }
18878
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18880 $as_echo_n "checking whether to build static libraries... " >&6; }
18881 # Make sure either enable_shared or enable_static is yes.
18882 test "$enable_shared" = yes || enable_static=yes
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18884 $as_echo "$enable_static" >&6; }
18885
18886
18887
18888
18889 fi
18890 ac_ext=cpp
18891 ac_cpp='$CXXCPP $CPPFLAGS'
18892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18895
18896 CC="$lt_save_CC"
18897
18898 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18899 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18900 (test "X$CXX" != "Xg++"))) ; then
18901 ac_ext=cpp
18902 ac_cpp='$CXXCPP $CPPFLAGS'
18903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18907 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18908 if test -z "$CXXCPP"; then
18909 if ${ac_cv_prog_CXXCPP+:} false; then :
18910 $as_echo_n "(cached) " >&6
18911 else
18912 # Double quotes because CXXCPP needs to be expanded
18913 for CXXCPP in "$CXX -E" "/lib/cpp"
18914 do
18915 ac_preproc_ok=false
18916 for ac_cxx_preproc_warn_flag in '' yes
18917 do
18918 # Use a header file that comes with gcc, so configuring glibc
18919 # with a fresh cross-compiler works.
18920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18921 # <limits.h> exists even on freestanding compilers.
18922 # On the NeXT, cc -E runs the code through the compiler's parser,
18923 # not just through cpp. "Syntax error" is here to catch this case.
18924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18925 /* end confdefs.h. */
18926 #ifdef __STDC__
18927 # include <limits.h>
18928 #else
18929 # include <assert.h>
18930 #endif
18931 Syntax error
18932 _ACEOF
18933 if ac_fn_cxx_try_cpp "$LINENO"; then :
18934
18935 else
18936 # Broken: fails on valid input.
18937 continue
18938 fi
18939 rm -f conftest.err conftest.i conftest.$ac_ext
18940
18941 # OK, works on sane cases. Now check whether nonexistent headers
18942 # can be detected and how.
18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944 /* end confdefs.h. */
18945 #include <ac_nonexistent.h>
18946 _ACEOF
18947 if ac_fn_cxx_try_cpp "$LINENO"; then :
18948 # Broken: success on invalid input.
18949 continue
18950 else
18951 # Passes both tests.
18952 ac_preproc_ok=:
18953 break
18954 fi
18955 rm -f conftest.err conftest.i conftest.$ac_ext
18956
18957 done
18958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18959 rm -f conftest.i conftest.err conftest.$ac_ext
18960 if $ac_preproc_ok; then :
18961 break
18962 fi
18963
18964 done
18965 ac_cv_prog_CXXCPP=$CXXCPP
18966
18967 fi
18968 CXXCPP=$ac_cv_prog_CXXCPP
18969 else
18970 ac_cv_prog_CXXCPP=$CXXCPP
18971 fi
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18973 $as_echo "$CXXCPP" >&6; }
18974 ac_preproc_ok=false
18975 for ac_cxx_preproc_warn_flag in '' yes
18976 do
18977 # Use a header file that comes with gcc, so configuring glibc
18978 # with a fresh cross-compiler works.
18979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18980 # <limits.h> exists even on freestanding compilers.
18981 # On the NeXT, cc -E runs the code through the compiler's parser,
18982 # not just through cpp. "Syntax error" is here to catch this case.
18983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18984 /* end confdefs.h. */
18985 #ifdef __STDC__
18986 # include <limits.h>
18987 #else
18988 # include <assert.h>
18989 #endif
18990 Syntax error
18991 _ACEOF
18992 if ac_fn_cxx_try_cpp "$LINENO"; then :
18993
18994 else
18995 # Broken: fails on valid input.
18996 continue
18997 fi
18998 rm -f conftest.err conftest.i conftest.$ac_ext
18999
19000 # OK, works on sane cases. Now check whether nonexistent headers
19001 # can be detected and how.
19002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19003 /* end confdefs.h. */
19004 #include <ac_nonexistent.h>
19005 _ACEOF
19006 if ac_fn_cxx_try_cpp "$LINENO"; then :
19007 # Broken: success on invalid input.
19008 continue
19009 else
19010 # Passes both tests.
19011 ac_preproc_ok=:
19012 break
19013 fi
19014 rm -f conftest.err conftest.i conftest.$ac_ext
19015
19016 done
19017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19018 rm -f conftest.i conftest.err conftest.$ac_ext
19019 if $ac_preproc_ok; then :
19020
19021 else
19022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19024 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19025 See \`config.log' for more details" "$LINENO" 5; }
19026 fi
19027
19028 ac_ext=cpp
19029 ac_cpp='$CXXCPP $CPPFLAGS'
19030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19033
19034 else
19035 _lt_caught_CXX_error=yes
19036 fi
19037
19038 ac_ext=cpp
19039 ac_cpp='$CXXCPP $CPPFLAGS'
19040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19043
19044 archive_cmds_need_lc_CXX=no
19045 allow_undefined_flag_CXX=
19046 always_export_symbols_CXX=no
19047 archive_expsym_cmds_CXX=
19048 compiler_needs_object_CXX=no
19049 export_dynamic_flag_spec_CXX=
19050 hardcode_direct_CXX=no
19051 hardcode_direct_absolute_CXX=no
19052 hardcode_libdir_flag_spec_CXX=
19053 hardcode_libdir_flag_spec_ld_CXX=
19054 hardcode_libdir_separator_CXX=
19055 hardcode_minus_L_CXX=no
19056 hardcode_shlibpath_var_CXX=unsupported
19057 hardcode_automatic_CXX=no
19058 inherit_rpath_CXX=no
19059 module_cmds_CXX=
19060 module_expsym_cmds_CXX=
19061 link_all_deplibs_CXX=unknown
19062 old_archive_cmds_CXX=$old_archive_cmds
19063 reload_flag_CXX=$reload_flag
19064 reload_cmds_CXX=$reload_cmds
19065 no_undefined_flag_CXX=
19066 whole_archive_flag_spec_CXX=
19067 enable_shared_with_static_runtimes_CXX=no
19068
19069 # Source file extension for C++ test sources.
19070 ac_ext=cpp
19071
19072 # Object file extension for compiled C++ test sources.
19073 objext=o
19074 objext_CXX=$objext
19075
19076 # No sense in running all these tests if we already determined that
19077 # the CXX compiler isn't working. Some variables (like enable_shared)
19078 # are currently assumed to apply to all compilers on this platform,
19079 # and will be corrupted by setting them based on a non-working compiler.
19080 if test "$_lt_caught_CXX_error" != yes; then
19081 # Code to be used in simple compile tests
19082 lt_simple_compile_test_code="int some_variable = 0;"
19083
19084 # Code to be used in simple link tests
19085 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19086
19087 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19088
19089
19090
19091
19092
19093
19094 # If no C compiler was specified, use CC.
19095 LTCC=${LTCC-"$CC"}
19096
19097 # If no C compiler flags were specified, use CFLAGS.
19098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19099
19100 # Allow CC to be a program name with arguments.
19101 compiler=$CC
19102
19103
19104 # save warnings/boilerplate of simple test code
19105 ac_outfile=conftest.$ac_objext
19106 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19108 _lt_compiler_boilerplate=`cat conftest.err`
19109 $RM conftest*
19110
19111 ac_outfile=conftest.$ac_objext
19112 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19114 _lt_linker_boilerplate=`cat conftest.err`
19115 $RM -r conftest*
19116
19117
19118 # Allow CC to be a program name with arguments.
19119 lt_save_CC=$CC
19120 lt_save_LD=$LD
19121 lt_save_GCC=$GCC
19122 GCC=$GXX
19123 lt_save_with_gnu_ld=$with_gnu_ld
19124 lt_save_path_LD=$lt_cv_path_LD
19125 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19126 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19127 else
19128 $as_unset lt_cv_prog_gnu_ld
19129 fi
19130 if test -n "${lt_cv_path_LDCXX+set}"; then
19131 lt_cv_path_LD=$lt_cv_path_LDCXX
19132 else
19133 $as_unset lt_cv_path_LD
19134 fi
19135 test -z "${LDCXX+set}" || LD=$LDCXX
19136 CC=${CXX-"c++"}
19137 compiler=$CC
19138 compiler_CXX=$CC
19139 for cc_temp in $compiler""; do
19140 case $cc_temp in
19141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19143 \-*) ;;
19144 *) break;;
19145 esac
19146 done
19147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19148
19149
19150 if test -n "$compiler"; then
19151 # We don't want -fno-exception when compiling C++ code, so set the
19152 # no_builtin_flag separately
19153 if test "$GXX" = yes; then
19154 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19155 else
19156 lt_prog_compiler_no_builtin_flag_CXX=
19157 fi
19158
19159 if test "$GXX" = yes; then
19160 # Set up default GNU C++ configuration
19161
19162
19163
19164 # Check whether --with-gnu-ld was given.
19165 if test "${with_gnu_ld+set}" = set; then :
19166 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19167 else
19168 with_gnu_ld=no
19169 fi
19170
19171 ac_prog=ld
19172 if test "$GCC" = yes; then
19173 # Check if gcc -print-prog-name=ld gives a path.
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19175 $as_echo_n "checking for ld used by $CC... " >&6; }
19176 case $host in
19177 *-*-mingw*)
19178 # gcc leaves a trailing carriage return which upsets mingw
19179 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19180 *)
19181 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19182 esac
19183 case $ac_prog in
19184 # Accept absolute paths.
19185 [\\/]* | ?:[\\/]*)
19186 re_direlt='/[^/][^/]*/\.\./'
19187 # Canonicalize the pathname of ld
19188 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19189 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19190 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19191 done
19192 test -z "$LD" && LD="$ac_prog"
19193 ;;
19194 "")
19195 # If it fails, then pretend we aren't using GCC.
19196 ac_prog=ld
19197 ;;
19198 *)
19199 # If it is relative, then search for the first ld in PATH.
19200 with_gnu_ld=unknown
19201 ;;
19202 esac
19203 elif test "$with_gnu_ld" = yes; then
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19205 $as_echo_n "checking for GNU ld... " >&6; }
19206 else
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19208 $as_echo_n "checking for non-GNU ld... " >&6; }
19209 fi
19210 if ${lt_cv_path_LD+:} false; then :
19211 $as_echo_n "(cached) " >&6
19212 else
19213 if test -z "$LD"; then
19214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19215 for ac_dir in $PATH; do
19216 IFS="$lt_save_ifs"
19217 test -z "$ac_dir" && ac_dir=.
19218 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19219 lt_cv_path_LD="$ac_dir/$ac_prog"
19220 # Check to see if the program is GNU ld. I'd rather use --version,
19221 # but apparently some variants of GNU ld only accept -v.
19222 # Break only if it was the GNU/non-GNU ld that we prefer.
19223 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19224 *GNU* | *'with BFD'*)
19225 test "$with_gnu_ld" != no && break
19226 ;;
19227 *)
19228 test "$with_gnu_ld" != yes && break
19229 ;;
19230 esac
19231 fi
19232 done
19233 IFS="$lt_save_ifs"
19234 else
19235 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19236 fi
19237 fi
19238
19239 LD="$lt_cv_path_LD"
19240 if test -n "$LD"; then
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19242 $as_echo "$LD" >&6; }
19243 else
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19246 fi
19247 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19249 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19250 if ${lt_cv_prog_gnu_ld+:} false; then :
19251 $as_echo_n "(cached) " >&6
19252 else
19253 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19254 case `$LD -v 2>&1 </dev/null` in
19255 *GNU* | *'with BFD'*)
19256 lt_cv_prog_gnu_ld=yes
19257 ;;
19258 *)
19259 lt_cv_prog_gnu_ld=no
19260 ;;
19261 esac
19262 fi
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19264 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19265 with_gnu_ld=$lt_cv_prog_gnu_ld
19266
19267
19268
19269
19270
19271
19272
19273 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19274 # archiving commands below assume that GNU ld is being used.
19275 if test "$with_gnu_ld" = yes; then
19276 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19277 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'
19278
19279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19281
19282 # If archive_cmds runs LD, not CC, wlarc should be empty
19283 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19284 # investigate it a little bit more. (MM)
19285 wlarc='${wl}'
19286
19287 # ancient GNU ld didn't support --whole-archive et. al.
19288 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19289 $GREP 'no-whole-archive' > /dev/null; then
19290 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19291 else
19292 whole_archive_flag_spec_CXX=
19293 fi
19294 else
19295 with_gnu_ld=no
19296 wlarc=
19297
19298 # A generic and very simple default shared library creation
19299 # command for GNU C++ for the case where it uses the native
19300 # linker, instead of GNU ld. If possible, this setting should
19301 # overridden to take advantage of the native linker features on
19302 # the platform it is being used on.
19303 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19304 fi
19305
19306 # Commands to make compiler produce verbose output that lists
19307 # what "hidden" libraries, object files and flags are used when
19308 # linking a shared library.
19309 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19310
19311 else
19312 GXX=no
19313 with_gnu_ld=no
19314 wlarc=
19315 fi
19316
19317 # PORTME: fill in a description of your system's C++ link characteristics
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19319 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19320 ld_shlibs_CXX=yes
19321 case $host_os in
19322 aix3*)
19323 # FIXME: insert proper C++ library support
19324 ld_shlibs_CXX=no
19325 ;;
19326 aix[4-9]*)
19327 if test "$host_cpu" = ia64; then
19328 # On IA64, the linker does run time linking by default, so we don't
19329 # have to do anything special.
19330 aix_use_runtimelinking=no
19331 exp_sym_flag='-Bexport'
19332 no_entry_flag=""
19333 else
19334 aix_use_runtimelinking=no
19335
19336 # Test if we are trying to use run time linking or normal
19337 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19338 # need to do runtime linking.
19339 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19340 for ld_flag in $LDFLAGS; do
19341 case $ld_flag in
19342 *-brtl*)
19343 aix_use_runtimelinking=yes
19344 break
19345 ;;
19346 esac
19347 done
19348 ;;
19349 esac
19350
19351 exp_sym_flag='-bexport'
19352 no_entry_flag='-bnoentry'
19353 fi
19354
19355 # When large executables or shared objects are built, AIX ld can
19356 # have problems creating the table of contents. If linking a library
19357 # or program results in "error TOC overflow" add -mminimal-toc to
19358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19360
19361 archive_cmds_CXX=''
19362 hardcode_direct_CXX=yes
19363 hardcode_direct_absolute_CXX=yes
19364 hardcode_libdir_separator_CXX=':'
19365 link_all_deplibs_CXX=yes
19366 file_list_spec_CXX='${wl}-f,'
19367
19368 if test "$GXX" = yes; then
19369 case $host_os in aix4.[012]|aix4.[012].*)
19370 # We only want to do this on AIX 4.2 and lower, the check
19371 # below for broken collect2 doesn't work under 4.3+
19372 collect2name=`${CC} -print-prog-name=collect2`
19373 if test -f "$collect2name" &&
19374 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19375 then
19376 # We have reworked collect2
19377 :
19378 else
19379 # We have old collect2
19380 hardcode_direct_CXX=unsupported
19381 # It fails to find uninstalled libraries when the uninstalled
19382 # path is not listed in the libpath. Setting hardcode_minus_L
19383 # to unsupported forces relinking
19384 hardcode_minus_L_CXX=yes
19385 hardcode_libdir_flag_spec_CXX='-L$libdir'
19386 hardcode_libdir_separator_CXX=
19387 fi
19388 esac
19389 shared_flag='-shared'
19390 if test "$aix_use_runtimelinking" = yes; then
19391 shared_flag="$shared_flag "'${wl}-G'
19392 fi
19393 else
19394 # not using gcc
19395 if test "$host_cpu" = ia64; then
19396 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19397 # chokes on -Wl,-G. The following line is correct:
19398 shared_flag='-G'
19399 else
19400 if test "$aix_use_runtimelinking" = yes; then
19401 shared_flag='${wl}-G'
19402 else
19403 shared_flag='${wl}-bM:SRE'
19404 fi
19405 fi
19406 fi
19407
19408 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19409 # It seems that -bexpall does not export symbols beginning with
19410 # underscore (_), so it is better to generate a list of symbols to
19411 # export.
19412 always_export_symbols_CXX=yes
19413 if test "$aix_use_runtimelinking" = yes; then
19414 # Warning - without using the other runtime loading flags (-brtl),
19415 # -berok will link without error, but may produce a broken library.
19416 allow_undefined_flag_CXX='-berok'
19417 # Determine the default libpath from the value encoded in an empty
19418 # executable.
19419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h. */
19421
19422 int
19423 main ()
19424 {
19425
19426 ;
19427 return 0;
19428 }
19429 _ACEOF
19430 if ac_fn_cxx_try_link "$LINENO"; then :
19431
19432 lt_aix_libpath_sed='
19433 /Import File Strings/,/^$/ {
19434 /^0/ {
19435 s/^0 *\(.*\)$/\1/
19436 p
19437 }
19438 }'
19439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19440 # Check for a 64-bit object if we didn't find anything.
19441 if test -z "$aix_libpath"; then
19442 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19443 fi
19444 fi
19445 rm -f core conftest.err conftest.$ac_objext \
19446 conftest$ac_exeext conftest.$ac_ext
19447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19448
19449 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19450
19451 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"
19452 else
19453 if test "$host_cpu" = ia64; then
19454 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19455 allow_undefined_flag_CXX="-z nodefs"
19456 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"
19457 else
19458 # Determine the default libpath from the value encoded in an
19459 # empty executable.
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19462
19463 int
19464 main ()
19465 {
19466
19467 ;
19468 return 0;
19469 }
19470 _ACEOF
19471 if ac_fn_cxx_try_link "$LINENO"; then :
19472
19473 lt_aix_libpath_sed='
19474 /Import File Strings/,/^$/ {
19475 /^0/ {
19476 s/^0 *\(.*\)$/\1/
19477 p
19478 }
19479 }'
19480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19481 # Check for a 64-bit object if we didn't find anything.
19482 if test -z "$aix_libpath"; then
19483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19484 fi
19485 fi
19486 rm -f core conftest.err conftest.$ac_objext \
19487 conftest$ac_exeext conftest.$ac_ext
19488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19489
19490 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19491 # Warning - without using the other run time loading flags,
19492 # -berok will link without error, but may produce a broken library.
19493 no_undefined_flag_CXX=' ${wl}-bernotok'
19494 allow_undefined_flag_CXX=' ${wl}-berok'
19495 if test "$with_gnu_ld" = yes; then
19496 # We only use this code for GNU lds that support --whole-archive.
19497 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19498 else
19499 # Exported symbols can be pulled into shared objects from archives
19500 whole_archive_flag_spec_CXX='$convenience'
19501 fi
19502 archive_cmds_need_lc_CXX=yes
19503 # This is similar to how AIX traditionally builds its shared
19504 # libraries.
19505 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'
19506 fi
19507 fi
19508 ;;
19509
19510 beos*)
19511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19512 allow_undefined_flag_CXX=unsupported
19513 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19514 # support --undefined. This deserves some investigation. FIXME
19515 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19516 else
19517 ld_shlibs_CXX=no
19518 fi
19519 ;;
19520
19521 chorus*)
19522 case $cc_basename in
19523 *)
19524 # FIXME: insert proper C++ library support
19525 ld_shlibs_CXX=no
19526 ;;
19527 esac
19528 ;;
19529
19530 cygwin* | mingw* | pw32* | cegcc*)
19531 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19532 # as there is no search path for DLLs.
19533 hardcode_libdir_flag_spec_CXX='-L$libdir'
19534 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19535 allow_undefined_flag_CXX=unsupported
19536 always_export_symbols_CXX=no
19537 enable_shared_with_static_runtimes_CXX=yes
19538
19539 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19540 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'
19541 # If the export-symbols file already is a .def file (1st line
19542 # is EXPORTS), use it as is; otherwise, prepend...
19543 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19544 cp $export_symbols $output_objdir/$soname.def;
19545 else
19546 echo EXPORTS > $output_objdir/$soname.def;
19547 cat $export_symbols >> $output_objdir/$soname.def;
19548 fi~
19549 $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'
19550 else
19551 ld_shlibs_CXX=no
19552 fi
19553 ;;
19554 darwin* | rhapsody*)
19555
19556
19557 archive_cmds_need_lc_CXX=no
19558 hardcode_direct_CXX=no
19559 hardcode_automatic_CXX=yes
19560 hardcode_shlibpath_var_CXX=unsupported
19561 if test "$lt_cv_ld_force_load" = "yes"; then
19562 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\"`'
19563 else
19564 whole_archive_flag_spec_CXX=''
19565 fi
19566 link_all_deplibs_CXX=yes
19567 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19568 case $cc_basename in
19569 ifort*) _lt_dar_can_shared=yes ;;
19570 *) _lt_dar_can_shared=$GCC ;;
19571 esac
19572 if test "$_lt_dar_can_shared" = "yes"; then
19573 output_verbose_link_cmd=func_echo_all
19574 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}"
19575 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19576 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}"
19577 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}"
19578 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19579 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}"
19580 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}"
19581 fi
19582
19583 else
19584 ld_shlibs_CXX=no
19585 fi
19586
19587 ;;
19588
19589 dgux*)
19590 case $cc_basename in
19591 ec++*)
19592 # FIXME: insert proper C++ library support
19593 ld_shlibs_CXX=no
19594 ;;
19595 ghcx*)
19596 # Green Hills C++ Compiler
19597 # FIXME: insert proper C++ library support
19598 ld_shlibs_CXX=no
19599 ;;
19600 *)
19601 # FIXME: insert proper C++ library support
19602 ld_shlibs_CXX=no
19603 ;;
19604 esac
19605 ;;
19606
19607 freebsd2.*)
19608 # C++ shared libraries reported to be fairly broken before
19609 # switch to ELF
19610 ld_shlibs_CXX=no
19611 ;;
19612
19613 freebsd-elf*)
19614 archive_cmds_need_lc_CXX=no
19615 ;;
19616
19617 freebsd* | dragonfly*)
19618 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19619 # conventions
19620 ld_shlibs_CXX=yes
19621 ;;
19622
19623 gnu*)
19624 ;;
19625
19626 haiku*)
19627 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19628 link_all_deplibs_CXX=yes
19629 ;;
19630
19631 hpux9*)
19632 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19633 hardcode_libdir_separator_CXX=:
19634 export_dynamic_flag_spec_CXX='${wl}-E'
19635 hardcode_direct_CXX=yes
19636 hardcode_minus_L_CXX=yes # Not in the search PATH,
19637 # but as the default
19638 # location of the library.
19639
19640 case $cc_basename in
19641 CC*)
19642 # FIXME: insert proper C++ library support
19643 ld_shlibs_CXX=no
19644 ;;
19645 aCC*)
19646 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'
19647 # Commands to make compiler produce verbose output that lists
19648 # what "hidden" libraries, object files and flags are used when
19649 # linking a shared library.
19650 #
19651 # There doesn't appear to be a way to prevent this compiler from
19652 # explicitly linking system object files so we need to strip them
19653 # from the output so that they don't get included in the library
19654 # dependencies.
19655 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"'
19656 ;;
19657 *)
19658 if test "$GXX" = yes; then
19659 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'
19660 else
19661 # FIXME: insert proper C++ library support
19662 ld_shlibs_CXX=no
19663 fi
19664 ;;
19665 esac
19666 ;;
19667
19668 hpux10*|hpux11*)
19669 if test $with_gnu_ld = no; then
19670 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19671 hardcode_libdir_separator_CXX=:
19672
19673 case $host_cpu in
19674 hppa*64*|ia64*)
19675 ;;
19676 *)
19677 export_dynamic_flag_spec_CXX='${wl}-E'
19678 ;;
19679 esac
19680 fi
19681 case $host_cpu in
19682 hppa*64*|ia64*)
19683 hardcode_direct_CXX=no
19684 hardcode_shlibpath_var_CXX=no
19685 ;;
19686 *)
19687 hardcode_direct_CXX=yes
19688 hardcode_direct_absolute_CXX=yes
19689 hardcode_minus_L_CXX=yes # Not in the search PATH,
19690 # but as the default
19691 # location of the library.
19692 ;;
19693 esac
19694
19695 case $cc_basename in
19696 CC*)
19697 # FIXME: insert proper C++ library support
19698 ld_shlibs_CXX=no
19699 ;;
19700 aCC*)
19701 case $host_cpu in
19702 hppa*64*)
19703 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19704 ;;
19705 ia64*)
19706 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19707 ;;
19708 *)
19709 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19710 ;;
19711 esac
19712 # Commands to make compiler produce verbose output that lists
19713 # what "hidden" libraries, object files and flags are used when
19714 # linking a shared library.
19715 #
19716 # There doesn't appear to be a way to prevent this compiler from
19717 # explicitly linking system object files so we need to strip them
19718 # from the output so that they don't get included in the library
19719 # dependencies.
19720 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"'
19721 ;;
19722 *)
19723 if test "$GXX" = yes; then
19724 if test $with_gnu_ld = no; then
19725 case $host_cpu in
19726 hppa*64*)
19727 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19728 ;;
19729 ia64*)
19730 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19731 ;;
19732 *)
19733 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'
19734 ;;
19735 esac
19736 fi
19737 else
19738 # FIXME: insert proper C++ library support
19739 ld_shlibs_CXX=no
19740 fi
19741 ;;
19742 esac
19743 ;;
19744
19745 interix[3-9]*)
19746 hardcode_direct_CXX=no
19747 hardcode_shlibpath_var_CXX=no
19748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19749 export_dynamic_flag_spec_CXX='${wl}-E'
19750 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19751 # Instead, shared libraries are loaded at an image base (0x10000000 by
19752 # default) and relocated if they conflict, which is a slow very memory
19753 # consuming and fragmenting process. To avoid this, we pick a random,
19754 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19755 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19756 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'
19757 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'
19758 ;;
19759 irix5* | irix6*)
19760 case $cc_basename in
19761 CC*)
19762 # SGI C++
19763 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'
19764
19765 # Archives containing C++ object files must be created using
19766 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19767 # necessary to make sure instantiated templates are included
19768 # in the archive.
19769 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19770 ;;
19771 *)
19772 if test "$GXX" = yes; then
19773 if test "$with_gnu_ld" = no; then
19774 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'
19775 else
19776 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'
19777 fi
19778 fi
19779 link_all_deplibs_CXX=yes
19780 ;;
19781 esac
19782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19783 hardcode_libdir_separator_CXX=:
19784 inherit_rpath_CXX=yes
19785 ;;
19786
19787 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19788 case $cc_basename in
19789 KCC*)
19790 # Kuck and Associates, Inc. (KAI) C++ Compiler
19791
19792 # KCC will only create a shared library if the output file
19793 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19794 # to its proper name (with version) after linking.
19795 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'
19796 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'
19797 # Commands to make compiler produce verbose output that lists
19798 # what "hidden" libraries, object files and flags are used when
19799 # linking a shared library.
19800 #
19801 # There doesn't appear to be a way to prevent this compiler from
19802 # explicitly linking system object files so we need to strip them
19803 # from the output so that they don't get included in the library
19804 # dependencies.
19805 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"'
19806
19807 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19809
19810 # Archives containing C++ object files must be created using
19811 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19812 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19813 ;;
19814 icpc* | ecpc* )
19815 # Intel C++
19816 with_gnu_ld=yes
19817 # version 8.0 and above of icpc choke on multiply defined symbols
19818 # if we add $predep_objects and $postdep_objects, however 7.1 and
19819 # earlier do not add the objects themselves.
19820 case `$CC -V 2>&1` in
19821 *"Version 7."*)
19822 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19823 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'
19824 ;;
19825 *) # Version 8.0 or newer
19826 tmp_idyn=
19827 case $host_cpu in
19828 ia64*) tmp_idyn=' -i_dynamic';;
19829 esac
19830 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19831 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'
19832 ;;
19833 esac
19834 archive_cmds_need_lc_CXX=no
19835 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19836 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19837 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19838 ;;
19839 pgCC* | pgcpp*)
19840 # Portland Group C++ compiler
19841 case `$CC -V` in
19842 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19843 prelink_cmds_CXX='tpldir=Template.dir~
19844 rm -rf $tpldir~
19845 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19846 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19847 old_archive_cmds_CXX='tpldir=Template.dir~
19848 rm -rf $tpldir~
19849 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19850 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19851 $RANLIB $oldlib'
19852 archive_cmds_CXX='tpldir=Template.dir~
19853 rm -rf $tpldir~
19854 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19855 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19856 archive_expsym_cmds_CXX='tpldir=Template.dir~
19857 rm -rf $tpldir~
19858 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19859 $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'
19860 ;;
19861 *) # Version 6 and above use weak symbols
19862 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19863 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'
19864 ;;
19865 esac
19866
19867 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19868 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19869 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'
19870 ;;
19871 cxx*)
19872 # Compaq C++
19873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19874 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'
19875
19876 runpath_var=LD_RUN_PATH
19877 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19878 hardcode_libdir_separator_CXX=:
19879
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 -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'
19889 ;;
19890 xl* | mpixl* | bgxl*)
19891 # IBM XL 8.0 on PPC, with GNU ld
19892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19894 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19895 if test "x$supports_anon_versioning" = xyes; then
19896 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19897 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19898 echo "local: *; };" >> $output_objdir/$libname.ver~
19899 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19900 fi
19901 ;;
19902 *)
19903 case `$CC -V 2>&1 | sed 5q` in
19904 *Sun\ C*)
19905 # Sun C++ 5.9
19906 no_undefined_flag_CXX=' -zdefs'
19907 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19908 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'
19909 hardcode_libdir_flag_spec_CXX='-R$libdir'
19910 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'
19911 compiler_needs_object_CXX=yes
19912
19913 # Not sure whether something based on
19914 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19915 # would be better.
19916 output_verbose_link_cmd='func_echo_all'
19917
19918 # Archives containing C++ object files must be created using
19919 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19920 # necessary to make sure instantiated templates are included
19921 # in the archive.
19922 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19923 ;;
19924 esac
19925 ;;
19926 esac
19927 ;;
19928
19929 lynxos*)
19930 # FIXME: insert proper C++ library support
19931 ld_shlibs_CXX=no
19932 ;;
19933
19934 m88k*)
19935 # FIXME: insert proper C++ library support
19936 ld_shlibs_CXX=no
19937 ;;
19938
19939 mvs*)
19940 case $cc_basename in
19941 cxx*)
19942 # FIXME: insert proper C++ library support
19943 ld_shlibs_CXX=no
19944 ;;
19945 *)
19946 # FIXME: insert proper C++ library support
19947 ld_shlibs_CXX=no
19948 ;;
19949 esac
19950 ;;
19951
19952 netbsd*)
19953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19954 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19955 wlarc=
19956 hardcode_libdir_flag_spec_CXX='-R$libdir'
19957 hardcode_direct_CXX=yes
19958 hardcode_shlibpath_var_CXX=no
19959 fi
19960 # Workaround some broken pre-1.5 toolchains
19961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19962 ;;
19963
19964 *nto* | *qnx*)
19965 ld_shlibs_CXX=yes
19966 ;;
19967
19968 openbsd2*)
19969 # C++ shared libraries are fairly broken
19970 ld_shlibs_CXX=no
19971 ;;
19972
19973 openbsd*)
19974 if test -f /usr/libexec/ld.so; then
19975 hardcode_direct_CXX=yes
19976 hardcode_shlibpath_var_CXX=no
19977 hardcode_direct_absolute_CXX=yes
19978 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19979 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19981 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19982 export_dynamic_flag_spec_CXX='${wl}-E'
19983 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19984 fi
19985 output_verbose_link_cmd=func_echo_all
19986 else
19987 ld_shlibs_CXX=no
19988 fi
19989 ;;
19990
19991 osf3* | osf4* | osf5*)
19992 case $cc_basename in
19993 KCC*)
19994 # Kuck and Associates, Inc. (KAI) C++ Compiler
19995
19996 # KCC will only create a shared library if the output file
19997 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19998 # to its proper name (with version) after linking.
19999 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'
20000
20001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20002 hardcode_libdir_separator_CXX=:
20003
20004 # Archives containing C++ object files must be created using
20005 # the KAI C++ compiler.
20006 case $host in
20007 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20008 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20009 esac
20010 ;;
20011 RCC*)
20012 # Rational C++ 2.4.1
20013 # FIXME: insert proper C++ library support
20014 ld_shlibs_CXX=no
20015 ;;
20016 cxx*)
20017 case $host in
20018 osf3*)
20019 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20020 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'
20021 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20022 ;;
20023 *)
20024 allow_undefined_flag_CXX=' -expect_unresolved \*'
20025 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'
20026 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20027 echo "-hidden">> $lib.exp~
20028 $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~
20029 $RM $lib.exp'
20030 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20031 ;;
20032 esac
20033
20034 hardcode_libdir_separator_CXX=:
20035
20036 # Commands to make compiler produce verbose output that lists
20037 # what "hidden" libraries, object files and flags are used when
20038 # linking a shared library.
20039 #
20040 # There doesn't appear to be a way to prevent this compiler from
20041 # explicitly linking system object files so we need to strip them
20042 # from the output so that they don't get included in the library
20043 # dependencies.
20044 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"'
20045 ;;
20046 *)
20047 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20049 case $host in
20050 osf3*)
20051 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'
20052 ;;
20053 *)
20054 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'
20055 ;;
20056 esac
20057
20058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20059 hardcode_libdir_separator_CXX=:
20060
20061 # Commands to make compiler produce verbose output that lists
20062 # what "hidden" libraries, object files and flags are used when
20063 # linking a shared library.
20064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20065
20066 else
20067 # FIXME: insert proper C++ library support
20068 ld_shlibs_CXX=no
20069 fi
20070 ;;
20071 esac
20072 ;;
20073
20074 psos*)
20075 # FIXME: insert proper C++ library support
20076 ld_shlibs_CXX=no
20077 ;;
20078
20079 sunos4*)
20080 case $cc_basename in
20081 CC*)
20082 # Sun C++ 4.x
20083 # FIXME: insert proper C++ library support
20084 ld_shlibs_CXX=no
20085 ;;
20086 lcc*)
20087 # Lucid
20088 # FIXME: insert proper C++ library support
20089 ld_shlibs_CXX=no
20090 ;;
20091 *)
20092 # FIXME: insert proper C++ library support
20093 ld_shlibs_CXX=no
20094 ;;
20095 esac
20096 ;;
20097
20098 solaris*)
20099 case $cc_basename in
20100 CC*)
20101 # Sun C++ 4.2, 5.x and Centerline C++
20102 archive_cmds_need_lc_CXX=yes
20103 no_undefined_flag_CXX=' -zdefs'
20104 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20105 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20106 $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'
20107
20108 hardcode_libdir_flag_spec_CXX='-R$libdir'
20109 hardcode_shlibpath_var_CXX=no
20110 case $host_os in
20111 solaris2.[0-5] | solaris2.[0-5].*) ;;
20112 *)
20113 # The compiler driver will combine and reorder linker options,
20114 # but understands `-z linker_flag'.
20115 # Supported since Solaris 2.6 (maybe 2.5.1?)
20116 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20117 ;;
20118 esac
20119 link_all_deplibs_CXX=yes
20120
20121 output_verbose_link_cmd='func_echo_all'
20122
20123 # Archives containing C++ object files must be created using
20124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20125 # necessary to make sure instantiated templates are included
20126 # in the archive.
20127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20128 ;;
20129 gcx*)
20130 # Green Hills C++ Compiler
20131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20132
20133 # The C++ compiler must be used to create the archive.
20134 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20135 ;;
20136 *)
20137 # GNU C++ compiler with Solaris linker
20138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20139 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20140 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20141 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20142 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20143 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20144
20145 # Commands to make compiler produce verbose output that lists
20146 # what "hidden" libraries, object files and flags are used when
20147 # linking a shared library.
20148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20149 else
20150 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20151 # platform.
20152 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20153 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20154 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20155
20156 # Commands to make compiler produce verbose output that lists
20157 # what "hidden" libraries, object files and flags are used when
20158 # linking a shared library.
20159 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20160 fi
20161
20162 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20163 case $host_os in
20164 solaris2.[0-5] | solaris2.[0-5].*) ;;
20165 *)
20166 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20167 ;;
20168 esac
20169 fi
20170 ;;
20171 esac
20172 ;;
20173
20174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20175 no_undefined_flag_CXX='${wl}-z,text'
20176 archive_cmds_need_lc_CXX=no
20177 hardcode_shlibpath_var_CXX=no
20178 runpath_var='LD_RUN_PATH'
20179
20180 case $cc_basename in
20181 CC*)
20182 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20183 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20184 ;;
20185 *)
20186 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20187 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20188 ;;
20189 esac
20190 ;;
20191
20192 sysv5* | sco3.2v5* | sco5v6*)
20193 # Note: We can NOT use -z defs as we might desire, because we do not
20194 # link with -lc, and that would cause any symbols used from libc to
20195 # always be unresolved, which means just about no library would
20196 # ever link correctly. If we're not using GNU ld we use -z text
20197 # though, which does catch some bad symbols but isn't as heavy-handed
20198 # as -z defs.
20199 no_undefined_flag_CXX='${wl}-z,text'
20200 allow_undefined_flag_CXX='${wl}-z,nodefs'
20201 archive_cmds_need_lc_CXX=no
20202 hardcode_shlibpath_var_CXX=no
20203 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20204 hardcode_libdir_separator_CXX=':'
20205 link_all_deplibs_CXX=yes
20206 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20207 runpath_var='LD_RUN_PATH'
20208
20209 case $cc_basename in
20210 CC*)
20211 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20212 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20213 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20214 '"$old_archive_cmds_CXX"
20215 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20216 '"$reload_cmds_CXX"
20217 ;;
20218 *)
20219 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20220 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20221 ;;
20222 esac
20223 ;;
20224
20225 tandem*)
20226 case $cc_basename in
20227 NCC*)
20228 # NonStop-UX NCC 3.20
20229 # FIXME: insert proper C++ library support
20230 ld_shlibs_CXX=no
20231 ;;
20232 *)
20233 # FIXME: insert proper C++ library support
20234 ld_shlibs_CXX=no
20235 ;;
20236 esac
20237 ;;
20238
20239 vxworks*)
20240 # FIXME: insert proper C++ library support
20241 ld_shlibs_CXX=no
20242 ;;
20243
20244 *)
20245 # FIXME: insert proper C++ library support
20246 ld_shlibs_CXX=no
20247 ;;
20248 esac
20249
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20251 $as_echo "$ld_shlibs_CXX" >&6; }
20252 test "$ld_shlibs_CXX" = no && can_build_shared=no
20253
20254 GCC_CXX="$GXX"
20255 LD_CXX="$LD"
20256
20257 ## CAVEAT EMPTOR:
20258 ## There is no encapsulation within the following macros, do not change
20259 ## the running order or otherwise move them around unless you know exactly
20260 ## what you are doing...
20261 # Dependencies to place before and after the object being linked:
20262 predep_objects_CXX=
20263 postdep_objects_CXX=
20264 predeps_CXX=
20265 postdeps_CXX=
20266 compiler_lib_search_path_CXX=
20267
20268 cat > conftest.$ac_ext <<_LT_EOF
20269 class Foo
20270 {
20271 public:
20272 Foo (void) { a = 0; }
20273 private:
20274 int a;
20275 };
20276 _LT_EOF
20277
20278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20279 (eval $ac_compile) 2>&5
20280 ac_status=$?
20281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20282 test $ac_status = 0; }; then
20283 # Parse the compiler output and extract the necessary
20284 # objects, libraries and library flags.
20285
20286 # Sentinel used to keep track of whether or not we are before
20287 # the conftest object file.
20288 pre_test_object_deps_done=no
20289
20290 for p in `eval "$output_verbose_link_cmd"`; do
20291 case $p in
20292
20293 -L* | -R* | -l*)
20294 # Some compilers place space between "-{L,R}" and the path.
20295 # Remove the space.
20296 if test $p = "-L" ||
20297 test $p = "-R"; then
20298 prev=$p
20299 continue
20300 else
20301 prev=
20302 fi
20303
20304 if test "$pre_test_object_deps_done" = no; then
20305 case $p in
20306 -L* | -R*)
20307 # Internal compiler library paths should come after those
20308 # provided the user. The postdeps already come after the
20309 # user supplied libs so there is no need to process them.
20310 if test -z "$compiler_lib_search_path_CXX"; then
20311 compiler_lib_search_path_CXX="${prev}${p}"
20312 else
20313 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20314 fi
20315 ;;
20316 # The "-l" case would never come before the object being
20317 # linked, so don't bother handling this case.
20318 esac
20319 else
20320 if test -z "$postdeps_CXX"; then
20321 postdeps_CXX="${prev}${p}"
20322 else
20323 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20324 fi
20325 fi
20326 ;;
20327
20328 *.$objext)
20329 # This assumes that the test object file only shows up
20330 # once in the compiler output.
20331 if test "$p" = "conftest.$objext"; then
20332 pre_test_object_deps_done=yes
20333 continue
20334 fi
20335
20336 if test "$pre_test_object_deps_done" = no; then
20337 if test -z "$predep_objects_CXX"; then
20338 predep_objects_CXX="$p"
20339 else
20340 predep_objects_CXX="$predep_objects_CXX $p"
20341 fi
20342 else
20343 if test -z "$postdep_objects_CXX"; then
20344 postdep_objects_CXX="$p"
20345 else
20346 postdep_objects_CXX="$postdep_objects_CXX $p"
20347 fi
20348 fi
20349 ;;
20350
20351 *) ;; # Ignore the rest.
20352
20353 esac
20354 done
20355
20356 # Clean up.
20357 rm -f a.out a.exe
20358 else
20359 echo "libtool.m4: error: problem compiling CXX test program"
20360 fi
20361
20362 $RM -f confest.$objext
20363
20364 # PORTME: override above test on systems where it is broken
20365 case $host_os in
20366 interix[3-9]*)
20367 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20368 # hack all around it, let's just trust "g++" to DTRT.
20369 predep_objects_CXX=
20370 postdep_objects_CXX=
20371 postdeps_CXX=
20372 ;;
20373
20374 linux*)
20375 case `$CC -V 2>&1 | sed 5q` in
20376 *Sun\ C*)
20377 # Sun C++ 5.9
20378
20379 # The more standards-conforming stlport4 library is
20380 # incompatible with the Cstd library. Avoid specifying
20381 # it if it's in CXXFLAGS. Ignore libCrun as
20382 # -library=stlport4 depends on it.
20383 case " $CXX $CXXFLAGS " in
20384 *" -library=stlport4 "*)
20385 solaris_use_stlport4=yes
20386 ;;
20387 esac
20388
20389 if test "$solaris_use_stlport4" != yes; then
20390 postdeps_CXX='-library=Cstd -library=Crun'
20391 fi
20392 ;;
20393 esac
20394 ;;
20395
20396 solaris*)
20397 case $cc_basename in
20398 CC*)
20399 # The more standards-conforming stlport4 library is
20400 # incompatible with the Cstd library. Avoid specifying
20401 # it if it's in CXXFLAGS. Ignore libCrun as
20402 # -library=stlport4 depends on it.
20403 case " $CXX $CXXFLAGS " in
20404 *" -library=stlport4 "*)
20405 solaris_use_stlport4=yes
20406 ;;
20407 esac
20408
20409 # Adding this requires a known-good setup of shared libraries for
20410 # Sun compiler versions before 5.6, else PIC objects from an old
20411 # archive will be linked into the output, leading to subtle bugs.
20412 if test "$solaris_use_stlport4" != yes; then
20413 postdeps_CXX='-library=Cstd -library=Crun'
20414 fi
20415 ;;
20416 esac
20417 ;;
20418 esac
20419
20420
20421 case " $postdeps_CXX " in
20422 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20423 esac
20424 compiler_lib_search_dirs_CXX=
20425 if test -n "${compiler_lib_search_path_CXX}"; then
20426 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20427 fi
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459 lt_prog_compiler_wl_CXX=
20460 lt_prog_compiler_pic_CXX=
20461 lt_prog_compiler_static_CXX=
20462
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20464 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20465
20466 # C++ specific cases for pic, static, wl, etc.
20467 if test "$GXX" = yes; then
20468 lt_prog_compiler_wl_CXX='-Wl,'
20469 lt_prog_compiler_static_CXX='-static'
20470
20471 case $host_os in
20472 aix*)
20473 # All AIX code is PIC.
20474 if test "$host_cpu" = ia64; then
20475 # AIX 5 now supports IA64 processor
20476 lt_prog_compiler_static_CXX='-Bstatic'
20477 fi
20478 lt_prog_compiler_pic_CXX='-fPIC'
20479 ;;
20480
20481 amigaos*)
20482 case $host_cpu in
20483 powerpc)
20484 # see comment about AmigaOS4 .so support
20485 lt_prog_compiler_pic_CXX='-fPIC'
20486 ;;
20487 m68k)
20488 # FIXME: we need at least 68020 code to build shared libraries, but
20489 # adding the `-m68020' flag to GCC prevents building anything better,
20490 # like `-m68040'.
20491 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20492 ;;
20493 esac
20494 ;;
20495
20496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20497 # PIC is the default for these OSes.
20498 ;;
20499 mingw* | cygwin* | os2* | pw32* | cegcc*)
20500 # This hack is so that the source file can tell whether it is being
20501 # built for inclusion in a dll (and should export symbols for example).
20502 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20503 # (--disable-auto-import) libraries
20504 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20505 ;;
20506 darwin* | rhapsody*)
20507 # PIC is the default on this platform
20508 # Common symbols not allowed in MH_DYLIB files
20509 lt_prog_compiler_pic_CXX='-fno-common'
20510 ;;
20511 *djgpp*)
20512 # DJGPP does not support shared libraries at all
20513 lt_prog_compiler_pic_CXX=
20514 ;;
20515 haiku*)
20516 # PIC is the default for Haiku.
20517 # The "-static" flag exists, but is broken.
20518 lt_prog_compiler_static_CXX=
20519 ;;
20520 interix[3-9]*)
20521 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20522 # Instead, we relocate shared libraries at runtime.
20523 ;;
20524 sysv4*MP*)
20525 if test -d /usr/nec; then
20526 lt_prog_compiler_pic_CXX=-Kconform_pic
20527 fi
20528 ;;
20529 hpux*)
20530 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20531 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20532 # sets the default TLS model and affects inlining.
20533 case $host_cpu in
20534 hppa*64*)
20535 ;;
20536 *)
20537 lt_prog_compiler_pic_CXX='-fPIC'
20538 ;;
20539 esac
20540 ;;
20541 *qnx* | *nto*)
20542 # QNX uses GNU C++, but need to define -shared option too, otherwise
20543 # it will coredump.
20544 lt_prog_compiler_pic_CXX='-fPIC -shared'
20545 ;;
20546 *)
20547 lt_prog_compiler_pic_CXX='-fPIC'
20548 ;;
20549 esac
20550 else
20551 case $host_os in
20552 aix[4-9]*)
20553 # All AIX code is PIC.
20554 if test "$host_cpu" = ia64; then
20555 # AIX 5 now supports IA64 processor
20556 lt_prog_compiler_static_CXX='-Bstatic'
20557 else
20558 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20559 fi
20560 ;;
20561 chorus*)
20562 case $cc_basename in
20563 cxch68*)
20564 # Green Hills C++ Compiler
20565 # _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"
20566 ;;
20567 esac
20568 ;;
20569 dgux*)
20570 case $cc_basename in
20571 ec++*)
20572 lt_prog_compiler_pic_CXX='-KPIC'
20573 ;;
20574 ghcx*)
20575 # Green Hills C++ Compiler
20576 lt_prog_compiler_pic_CXX='-pic'
20577 ;;
20578 *)
20579 ;;
20580 esac
20581 ;;
20582 freebsd* | dragonfly*)
20583 # FreeBSD uses GNU C++
20584 ;;
20585 hpux9* | hpux10* | hpux11*)
20586 case $cc_basename in
20587 CC*)
20588 lt_prog_compiler_wl_CXX='-Wl,'
20589 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20590 if test "$host_cpu" != ia64; then
20591 lt_prog_compiler_pic_CXX='+Z'
20592 fi
20593 ;;
20594 aCC*)
20595 lt_prog_compiler_wl_CXX='-Wl,'
20596 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20597 case $host_cpu in
20598 hppa*64*|ia64*)
20599 # +Z the default
20600 ;;
20601 *)
20602 lt_prog_compiler_pic_CXX='+Z'
20603 ;;
20604 esac
20605 ;;
20606 *)
20607 ;;
20608 esac
20609 ;;
20610 interix*)
20611 # This is c89, which is MS Visual C++ (no shared libs)
20612 # Anyone wants to do a port?
20613 ;;
20614 irix5* | irix6* | nonstopux*)
20615 case $cc_basename in
20616 CC*)
20617 lt_prog_compiler_wl_CXX='-Wl,'
20618 lt_prog_compiler_static_CXX='-non_shared'
20619 # CC pic flag -KPIC is the default.
20620 ;;
20621 *)
20622 ;;
20623 esac
20624 ;;
20625 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20626 case $cc_basename in
20627 KCC*)
20628 # KAI C++ Compiler
20629 lt_prog_compiler_wl_CXX='--backend -Wl,'
20630 lt_prog_compiler_pic_CXX='-fPIC'
20631 ;;
20632 ecpc* )
20633 # old Intel C++ for x86_64 which still supported -KPIC.
20634 lt_prog_compiler_wl_CXX='-Wl,'
20635 lt_prog_compiler_pic_CXX='-KPIC'
20636 lt_prog_compiler_static_CXX='-static'
20637 ;;
20638 icpc* )
20639 # Intel C++, used to be incompatible with GCC.
20640 # ICC 10 doesn't accept -KPIC any more.
20641 lt_prog_compiler_wl_CXX='-Wl,'
20642 lt_prog_compiler_pic_CXX='-fPIC'
20643 lt_prog_compiler_static_CXX='-static'
20644 ;;
20645 pgCC* | pgcpp*)
20646 # Portland Group C++ compiler
20647 lt_prog_compiler_wl_CXX='-Wl,'
20648 lt_prog_compiler_pic_CXX='-fpic'
20649 lt_prog_compiler_static_CXX='-Bstatic'
20650 ;;
20651 cxx*)
20652 # Compaq C++
20653 # Make sure the PIC flag is empty. It appears that all Alpha
20654 # Linux and Compaq Tru64 Unix objects are PIC.
20655 lt_prog_compiler_pic_CXX=
20656 lt_prog_compiler_static_CXX='-non_shared'
20657 ;;
20658 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20659 # IBM XL 8.0, 9.0 on PPC and BlueGene
20660 lt_prog_compiler_wl_CXX='-Wl,'
20661 lt_prog_compiler_pic_CXX='-qpic'
20662 lt_prog_compiler_static_CXX='-qstaticlink'
20663 ;;
20664 *)
20665 case `$CC -V 2>&1 | sed 5q` in
20666 *Sun\ C*)
20667 # Sun C++ 5.9
20668 lt_prog_compiler_pic_CXX='-KPIC'
20669 lt_prog_compiler_static_CXX='-Bstatic'
20670 lt_prog_compiler_wl_CXX='-Qoption ld '
20671 ;;
20672 esac
20673 ;;
20674 esac
20675 ;;
20676 lynxos*)
20677 ;;
20678 m88k*)
20679 ;;
20680 mvs*)
20681 case $cc_basename in
20682 cxx*)
20683 lt_prog_compiler_pic_CXX='-W c,exportall'
20684 ;;
20685 *)
20686 ;;
20687 esac
20688 ;;
20689 netbsd*)
20690 ;;
20691 *qnx* | *nto*)
20692 # QNX uses GNU C++, but need to define -shared option too, otherwise
20693 # it will coredump.
20694 lt_prog_compiler_pic_CXX='-fPIC -shared'
20695 ;;
20696 osf3* | osf4* | osf5*)
20697 case $cc_basename in
20698 KCC*)
20699 lt_prog_compiler_wl_CXX='--backend -Wl,'
20700 ;;
20701 RCC*)
20702 # Rational C++ 2.4.1
20703 lt_prog_compiler_pic_CXX='-pic'
20704 ;;
20705 cxx*)
20706 # Digital/Compaq C++
20707 lt_prog_compiler_wl_CXX='-Wl,'
20708 # Make sure the PIC flag is empty. It appears that all Alpha
20709 # Linux and Compaq Tru64 Unix objects are PIC.
20710 lt_prog_compiler_pic_CXX=
20711 lt_prog_compiler_static_CXX='-non_shared'
20712 ;;
20713 *)
20714 ;;
20715 esac
20716 ;;
20717 psos*)
20718 ;;
20719 solaris*)
20720 case $cc_basename in
20721 CC*)
20722 # Sun C++ 4.2, 5.x and Centerline C++
20723 lt_prog_compiler_pic_CXX='-KPIC'
20724 lt_prog_compiler_static_CXX='-Bstatic'
20725 lt_prog_compiler_wl_CXX='-Qoption ld '
20726 ;;
20727 gcx*)
20728 # Green Hills C++ Compiler
20729 lt_prog_compiler_pic_CXX='-PIC'
20730 ;;
20731 *)
20732 ;;
20733 esac
20734 ;;
20735 sunos4*)
20736 case $cc_basename in
20737 CC*)
20738 # Sun C++ 4.x
20739 lt_prog_compiler_pic_CXX='-pic'
20740 lt_prog_compiler_static_CXX='-Bstatic'
20741 ;;
20742 lcc*)
20743 # Lucid
20744 lt_prog_compiler_pic_CXX='-pic'
20745 ;;
20746 *)
20747 ;;
20748 esac
20749 ;;
20750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20751 case $cc_basename in
20752 CC*)
20753 lt_prog_compiler_wl_CXX='-Wl,'
20754 lt_prog_compiler_pic_CXX='-KPIC'
20755 lt_prog_compiler_static_CXX='-Bstatic'
20756 ;;
20757 esac
20758 ;;
20759 tandem*)
20760 case $cc_basename in
20761 NCC*)
20762 # NonStop-UX NCC 3.20
20763 lt_prog_compiler_pic_CXX='-KPIC'
20764 ;;
20765 *)
20766 ;;
20767 esac
20768 ;;
20769 vxworks*)
20770 ;;
20771 *)
20772 lt_prog_compiler_can_build_shared_CXX=no
20773 ;;
20774 esac
20775 fi
20776
20777 case $host_os in
20778 # For platforms which do not support PIC, -DPIC is meaningless:
20779 *djgpp*)
20780 lt_prog_compiler_pic_CXX=
20781 ;;
20782 *)
20783 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20784 ;;
20785 esac
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20787 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20788
20789
20790
20791 #
20792 # Check to make sure the PIC flag actually works.
20793 #
20794 if test -n "$lt_prog_compiler_pic_CXX"; then
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20796 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20797 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20798 $as_echo_n "(cached) " >&6
20799 else
20800 lt_cv_prog_compiler_pic_works_CXX=no
20801 ac_outfile=conftest.$ac_objext
20802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20803 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20804 # Insert the option either (1) after the last *FLAGS variable, or
20805 # (2) before a word containing "conftest.", or (3) at the end.
20806 # Note that $ac_compile itself does not contain backslashes and begins
20807 # with a dollar sign (not a hyphen), so the echo should work correctly.
20808 # The option is referenced via a variable to avoid confusing sed.
20809 lt_compile=`echo "$ac_compile" | $SED \
20810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20812 -e 's:$: $lt_compiler_flag:'`
20813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20814 (eval "$lt_compile" 2>conftest.err)
20815 ac_status=$?
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 if (exit $ac_status) && test -s "$ac_outfile"; then
20819 # The compiler can only warn and ignore the option if not recognized
20820 # So say no if there are warnings other than the usual output.
20821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20824 lt_cv_prog_compiler_pic_works_CXX=yes
20825 fi
20826 fi
20827 $RM conftest*
20828
20829 fi
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20831 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20832
20833 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20834 case $lt_prog_compiler_pic_CXX in
20835 "" | " "*) ;;
20836 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20837 esac
20838 else
20839 lt_prog_compiler_pic_CXX=
20840 lt_prog_compiler_can_build_shared_CXX=no
20841 fi
20842
20843 fi
20844
20845
20846
20847 #
20848 # Check to make sure the static flag actually works.
20849 #
20850 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20852 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20853 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20854 $as_echo_n "(cached) " >&6
20855 else
20856 lt_cv_prog_compiler_static_works_CXX=no
20857 save_LDFLAGS="$LDFLAGS"
20858 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20859 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20860 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20861 # The linker can only warn and ignore the option if not recognized
20862 # So say no if there are warnings
20863 if test -s conftest.err; then
20864 # Append any errors to the config.log.
20865 cat conftest.err 1>&5
20866 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20868 if diff conftest.exp conftest.er2 >/dev/null; then
20869 lt_cv_prog_compiler_static_works_CXX=yes
20870 fi
20871 else
20872 lt_cv_prog_compiler_static_works_CXX=yes
20873 fi
20874 fi
20875 $RM -r conftest*
20876 LDFLAGS="$save_LDFLAGS"
20877
20878 fi
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20880 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20881
20882 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20883 :
20884 else
20885 lt_prog_compiler_static_CXX=
20886 fi
20887
20888
20889
20890
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20893 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20894 $as_echo_n "(cached) " >&6
20895 else
20896 lt_cv_prog_compiler_c_o_CXX=no
20897 $RM -r conftest 2>/dev/null
20898 mkdir conftest
20899 cd conftest
20900 mkdir out
20901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20902
20903 lt_compiler_flag="-o out/conftest2.$ac_objext"
20904 # Insert the option either (1) after the last *FLAGS variable, or
20905 # (2) before a word containing "conftest.", or (3) at the end.
20906 # Note that $ac_compile itself does not contain backslashes and begins
20907 # with a dollar sign (not a hyphen), so the echo should work correctly.
20908 lt_compile=`echo "$ac_compile" | $SED \
20909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20911 -e 's:$: $lt_compiler_flag:'`
20912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20913 (eval "$lt_compile" 2>out/conftest.err)
20914 ac_status=$?
20915 cat out/conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20918 then
20919 # The compiler can only warn and ignore the option if not recognized
20920 # So say no if there are warnings
20921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20924 lt_cv_prog_compiler_c_o_CXX=yes
20925 fi
20926 fi
20927 chmod u+w . 2>&5
20928 $RM conftest*
20929 # SGI C++ compiler will create directory out/ii_files/ for
20930 # template instantiation
20931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20932 $RM out/* && rmdir out
20933 cd ..
20934 $RM -r conftest
20935 $RM conftest*
20936
20937 fi
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20939 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20940
20941
20942
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20945 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20946 $as_echo_n "(cached) " >&6
20947 else
20948 lt_cv_prog_compiler_c_o_CXX=no
20949 $RM -r conftest 2>/dev/null
20950 mkdir conftest
20951 cd conftest
20952 mkdir out
20953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20954
20955 lt_compiler_flag="-o out/conftest2.$ac_objext"
20956 # Insert the option either (1) after the last *FLAGS variable, or
20957 # (2) before a word containing "conftest.", or (3) at the end.
20958 # Note that $ac_compile itself does not contain backslashes and begins
20959 # with a dollar sign (not a hyphen), so the echo should work correctly.
20960 lt_compile=`echo "$ac_compile" | $SED \
20961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20963 -e 's:$: $lt_compiler_flag:'`
20964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20965 (eval "$lt_compile" 2>out/conftest.err)
20966 ac_status=$?
20967 cat out/conftest.err >&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20970 then
20971 # The compiler can only warn and ignore the option if not recognized
20972 # So say no if there are warnings
20973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20976 lt_cv_prog_compiler_c_o_CXX=yes
20977 fi
20978 fi
20979 chmod u+w . 2>&5
20980 $RM conftest*
20981 # SGI C++ compiler will create directory out/ii_files/ for
20982 # template instantiation
20983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20984 $RM out/* && rmdir out
20985 cd ..
20986 $RM -r conftest
20987 $RM conftest*
20988
20989 fi
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20991 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20992
20993
20994
20995
20996 hard_links="nottested"
20997 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20998 # do not overwrite the value of need_locks provided by the user
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21000 $as_echo_n "checking if we can lock with hard links... " >&6; }
21001 hard_links=yes
21002 $RM conftest*
21003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21004 touch conftest.a
21005 ln conftest.a conftest.b 2>&5 || hard_links=no
21006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21008 $as_echo "$hard_links" >&6; }
21009 if test "$hard_links" = no; then
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21011 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21012 need_locks=warn
21013 fi
21014 else
21015 need_locks=no
21016 fi
21017
21018
21019
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21022
21023 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21024 case $host_os in
21025 aix[4-9]*)
21026 # If we're using GNU nm, then we don't want the "-C" option.
21027 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21028 # Also, AIX nm treats weak defined symbols like other global defined
21029 # symbols, whereas GNU nm marks them as "W".
21030 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21031 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'
21032 else
21033 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'
21034 fi
21035 ;;
21036 pw32*)
21037 export_symbols_cmds_CXX="$ltdll_cmds"
21038 ;;
21039 cygwin* | mingw* | cegcc*)
21040 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'
21041 ;;
21042 *)
21043 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21044 ;;
21045 esac
21046 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21047
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21049 $as_echo "$ld_shlibs_CXX" >&6; }
21050 test "$ld_shlibs_CXX" = no && can_build_shared=no
21051
21052 with_gnu_ld_CXX=$with_gnu_ld
21053
21054
21055
21056
21057
21058
21059 #
21060 # Do we need to explicitly link libc?
21061 #
21062 case "x$archive_cmds_need_lc_CXX" in
21063 x|xyes)
21064 # Assume -lc should be added
21065 archive_cmds_need_lc_CXX=yes
21066
21067 if test "$enable_shared" = yes && test "$GCC" = yes; then
21068 case $archive_cmds_CXX in
21069 *'~'*)
21070 # FIXME: we may have to deal with multi-command sequences.
21071 ;;
21072 '$CC '*)
21073 # Test whether the compiler implicitly links with -lc since on some
21074 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21075 # to ld, don't add -lc before -lgcc.
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21077 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21078 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21079 $as_echo_n "(cached) " >&6
21080 else
21081 $RM conftest*
21082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21083
21084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21085 (eval $ac_compile) 2>&5
21086 ac_status=$?
21087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21088 test $ac_status = 0; } 2>conftest.err; then
21089 soname=conftest
21090 lib=conftest
21091 libobjs=conftest.$ac_objext
21092 deplibs=
21093 wl=$lt_prog_compiler_wl_CXX
21094 pic_flag=$lt_prog_compiler_pic_CXX
21095 compiler_flags=-v
21096 linker_flags=-v
21097 verstring=
21098 output_objdir=.
21099 libname=conftest
21100 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21101 allow_undefined_flag_CXX=
21102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21103 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21104 ac_status=$?
21105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21106 test $ac_status = 0; }
21107 then
21108 lt_cv_archive_cmds_need_lc_CXX=no
21109 else
21110 lt_cv_archive_cmds_need_lc_CXX=yes
21111 fi
21112 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21113 else
21114 cat conftest.err 1>&5
21115 fi
21116 $RM conftest*
21117
21118 fi
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21120 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21121 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21122 ;;
21123 esac
21124 fi
21125 ;;
21126 esac
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21192 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21193
21194 library_names_spec=
21195 libname_spec='lib$name'
21196 soname_spec=
21197 shrext_cmds=".so"
21198 postinstall_cmds=
21199 postuninstall_cmds=
21200 finish_cmds=
21201 finish_eval=
21202 shlibpath_var=
21203 shlibpath_overrides_runpath=unknown
21204 version_type=none
21205 dynamic_linker="$host_os ld.so"
21206 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21207 need_lib_prefix=unknown
21208 hardcode_into_libs=no
21209
21210 # when you set need_version to no, make sure it does not cause -set_version
21211 # flags to be left without arguments
21212 need_version=unknown
21213
21214 case $host_os in
21215 aix3*)
21216 version_type=linux
21217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21218 shlibpath_var=LIBPATH
21219
21220 # AIX 3 has no versioning support, so we append a major version to the name.
21221 soname_spec='${libname}${release}${shared_ext}$major'
21222 ;;
21223
21224 aix[4-9]*)
21225 version_type=linux
21226 need_lib_prefix=no
21227 need_version=no
21228 hardcode_into_libs=yes
21229 if test "$host_cpu" = ia64; then
21230 # AIX 5 supports IA64
21231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21232 shlibpath_var=LD_LIBRARY_PATH
21233 else
21234 # With GCC up to 2.95.x, collect2 would create an import file
21235 # for dependence libraries. The import file would start with
21236 # the line `#! .'. This would cause the generated library to
21237 # depend on `.', always an invalid library. This was fixed in
21238 # development snapshots of GCC prior to 3.0.
21239 case $host_os in
21240 aix4 | aix4.[01] | aix4.[01].*)
21241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21242 echo ' yes '
21243 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21244 :
21245 else
21246 can_build_shared=no
21247 fi
21248 ;;
21249 esac
21250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21251 # soname into executable. Probably we can add versioning support to
21252 # collect2, so additional links can be useful in future.
21253 if test "$aix_use_runtimelinking" = yes; then
21254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21255 # instead of lib<name>.a to let people know that these are not
21256 # typical AIX shared libraries.
21257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21258 else
21259 # We preserve .a as extension for shared libraries through AIX4.2
21260 # and later when we are not doing run time linking.
21261 library_names_spec='${libname}${release}.a $libname.a'
21262 soname_spec='${libname}${release}${shared_ext}$major'
21263 fi
21264 shlibpath_var=LIBPATH
21265 fi
21266 ;;
21267
21268 amigaos*)
21269 case $host_cpu in
21270 powerpc)
21271 # Since July 2007 AmigaOS4 officially supports .so libraries.
21272 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21274 ;;
21275 m68k)
21276 library_names_spec='$libname.ixlibrary $libname.a'
21277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21278 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'
21279 ;;
21280 esac
21281 ;;
21282
21283 beos*)
21284 library_names_spec='${libname}${shared_ext}'
21285 dynamic_linker="$host_os ld.so"
21286 shlibpath_var=LIBRARY_PATH
21287 ;;
21288
21289 bsdi[45]*)
21290 version_type=linux
21291 need_version=no
21292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21293 soname_spec='${libname}${release}${shared_ext}$major'
21294 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21295 shlibpath_var=LD_LIBRARY_PATH
21296 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21297 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21298 # the default ld.so.conf also contains /usr/contrib/lib and
21299 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21300 # libtool to hard-code these into programs
21301 ;;
21302
21303 cygwin* | mingw* | pw32* | cegcc*)
21304 version_type=windows
21305 shrext_cmds=".dll"
21306 need_version=no
21307 need_lib_prefix=no
21308
21309 case $GCC,$host_os in
21310 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21311 library_names_spec='$libname.dll.a'
21312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21313 postinstall_cmds='base_file=`basename \${file}`~
21314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21315 dldir=$destdir/`dirname \$dlpath`~
21316 test -d \$dldir || mkdir -p \$dldir~
21317 $install_prog $dir/$dlname \$dldir/$dlname~
21318 chmod a+x \$dldir/$dlname~
21319 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21320 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21321 fi'
21322 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21323 dlpath=$dir/\$dldll~
21324 $RM \$dlpath'
21325 shlibpath_overrides_runpath=yes
21326
21327 case $host_os in
21328 cygwin*)
21329 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21330 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21331
21332 ;;
21333 mingw* | cegcc*)
21334 # MinGW DLLs use traditional 'lib' prefix
21335 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21336 ;;
21337 pw32*)
21338 # pw32 DLLs use 'pw' prefix rather than 'lib'
21339 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21340 ;;
21341 esac
21342 ;;
21343
21344 *)
21345 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21346 ;;
21347 esac
21348 dynamic_linker='Win32 ld.exe'
21349 # FIXME: first we should search . and the directory the executable is in
21350 shlibpath_var=PATH
21351 ;;
21352
21353 darwin* | rhapsody*)
21354 dynamic_linker="$host_os dyld"
21355 version_type=darwin
21356 need_lib_prefix=no
21357 need_version=no
21358 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21359 soname_spec='${libname}${release}${major}$shared_ext'
21360 shlibpath_overrides_runpath=yes
21361 shlibpath_var=DYLD_LIBRARY_PATH
21362 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21363
21364 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21365 ;;
21366
21367 dgux*)
21368 version_type=linux
21369 need_lib_prefix=no
21370 need_version=no
21371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21372 soname_spec='${libname}${release}${shared_ext}$major'
21373 shlibpath_var=LD_LIBRARY_PATH
21374 ;;
21375
21376 freebsd* | dragonfly*)
21377 # DragonFly does not have aout. When/if they implement a new
21378 # versioning mechanism, adjust this.
21379 if test -x /usr/bin/objformat; then
21380 objformat=`/usr/bin/objformat`
21381 else
21382 case $host_os in
21383 freebsd[23].*) objformat=aout ;;
21384 *) objformat=elf ;;
21385 esac
21386 fi
21387 version_type=freebsd-$objformat
21388 case $version_type in
21389 freebsd-elf*)
21390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21391 need_version=no
21392 need_lib_prefix=no
21393 ;;
21394 freebsd-*)
21395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21396 need_version=yes
21397 ;;
21398 esac
21399 shlibpath_var=LD_LIBRARY_PATH
21400 case $host_os in
21401 freebsd2.*)
21402 shlibpath_overrides_runpath=yes
21403 ;;
21404 freebsd3.[01]* | freebsdelf3.[01]*)
21405 shlibpath_overrides_runpath=yes
21406 hardcode_into_libs=yes
21407 ;;
21408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21410 shlibpath_overrides_runpath=no
21411 hardcode_into_libs=yes
21412 ;;
21413 *) # from 4.6 on, and DragonFly
21414 shlibpath_overrides_runpath=yes
21415 hardcode_into_libs=yes
21416 ;;
21417 esac
21418 ;;
21419
21420 gnu*)
21421 version_type=linux
21422 need_lib_prefix=no
21423 need_version=no
21424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21425 soname_spec='${libname}${release}${shared_ext}$major'
21426 shlibpath_var=LD_LIBRARY_PATH
21427 hardcode_into_libs=yes
21428 ;;
21429
21430 haiku*)
21431 version_type=linux
21432 need_lib_prefix=no
21433 need_version=no
21434 dynamic_linker="$host_os runtime_loader"
21435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21436 soname_spec='${libname}${release}${shared_ext}$major'
21437 shlibpath_var=LIBRARY_PATH
21438 shlibpath_overrides_runpath=yes
21439 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21440 hardcode_into_libs=yes
21441 ;;
21442
21443 hpux9* | hpux10* | hpux11*)
21444 # Give a soname corresponding to the major version so that dld.sl refuses to
21445 # link against other versions.
21446 version_type=sunos
21447 need_lib_prefix=no
21448 need_version=no
21449 case $host_cpu in
21450 ia64*)
21451 shrext_cmds='.so'
21452 hardcode_into_libs=yes
21453 dynamic_linker="$host_os dld.so"
21454 shlibpath_var=LD_LIBRARY_PATH
21455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21457 soname_spec='${libname}${release}${shared_ext}$major'
21458 if test "X$HPUX_IA64_MODE" = X32; then
21459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21460 else
21461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21462 fi
21463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21464 ;;
21465 hppa*64*)
21466 shrext_cmds='.sl'
21467 hardcode_into_libs=yes
21468 dynamic_linker="$host_os dld.sl"
21469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21472 soname_spec='${libname}${release}${shared_ext}$major'
21473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21475 ;;
21476 *)
21477 shrext_cmds='.sl'
21478 dynamic_linker="$host_os dld.sl"
21479 shlibpath_var=SHLIB_PATH
21480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21482 soname_spec='${libname}${release}${shared_ext}$major'
21483 ;;
21484 esac
21485 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21486 postinstall_cmds='chmod 555 $lib'
21487 # or fails outright, so override atomically:
21488 install_override_mode=555
21489 ;;
21490
21491 interix[3-9]*)
21492 version_type=linux
21493 need_lib_prefix=no
21494 need_version=no
21495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21496 soname_spec='${libname}${release}${shared_ext}$major'
21497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21498 shlibpath_var=LD_LIBRARY_PATH
21499 shlibpath_overrides_runpath=no
21500 hardcode_into_libs=yes
21501 ;;
21502
21503 irix5* | irix6* | nonstopux*)
21504 case $host_os in
21505 nonstopux*) version_type=nonstopux ;;
21506 *)
21507 if test "$lt_cv_prog_gnu_ld" = yes; then
21508 version_type=linux
21509 else
21510 version_type=irix
21511 fi ;;
21512 esac
21513 need_lib_prefix=no
21514 need_version=no
21515 soname_spec='${libname}${release}${shared_ext}$major'
21516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21517 case $host_os in
21518 irix5* | nonstopux*)
21519 libsuff= shlibsuff=
21520 ;;
21521 *)
21522 case $LD in # libtool.m4 will add one of these switches to LD
21523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21524 libsuff= shlibsuff= libmagic=32-bit;;
21525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21526 libsuff=32 shlibsuff=N32 libmagic=N32;;
21527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21528 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21529 *) libsuff= shlibsuff= libmagic=never-match;;
21530 esac
21531 ;;
21532 esac
21533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21534 shlibpath_overrides_runpath=no
21535 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21536 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21537 hardcode_into_libs=yes
21538 ;;
21539
21540 # No shared lib support for Linux oldld, aout, or coff.
21541 linux*oldld* | linux*aout* | linux*coff*)
21542 dynamic_linker=no
21543 ;;
21544
21545 # This must be Linux ELF.
21546 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21547 version_type=linux
21548 need_lib_prefix=no
21549 need_version=no
21550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21551 soname_spec='${libname}${release}${shared_ext}$major'
21552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21553 shlibpath_var=LD_LIBRARY_PATH
21554 shlibpath_overrides_runpath=no
21555
21556 # Some binutils ld are patched to set DT_RUNPATH
21557 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21558 $as_echo_n "(cached) " >&6
21559 else
21560 lt_cv_shlibpath_overrides_runpath=no
21561 save_LDFLAGS=$LDFLAGS
21562 save_libdir=$libdir
21563 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21564 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21566 /* end confdefs.h. */
21567
21568 int
21569 main ()
21570 {
21571
21572 ;
21573 return 0;
21574 }
21575 _ACEOF
21576 if ac_fn_cxx_try_link "$LINENO"; then :
21577 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21578 lt_cv_shlibpath_overrides_runpath=yes
21579 fi
21580 fi
21581 rm -f core conftest.err conftest.$ac_objext \
21582 conftest$ac_exeext conftest.$ac_ext
21583 LDFLAGS=$save_LDFLAGS
21584 libdir=$save_libdir
21585
21586 fi
21587
21588 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21589
21590 # This implies no fast_install, which is unacceptable.
21591 # Some rework will be needed to allow for fast_install
21592 # before this can be enabled.
21593 hardcode_into_libs=yes
21594
21595 # Append ld.so.conf contents to the search path
21596 if test -f /etc/ld.so.conf; then
21597 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' ' '`
21598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21599 fi
21600
21601 # We used to test for /lib/ld.so.1 and disable shared libraries on
21602 # powerpc, because MkLinux only supported shared libraries with the
21603 # GNU dynamic linker. Since this was broken with cross compilers,
21604 # most powerpc-linux boxes support dynamic linking these days and
21605 # people can always --disable-shared, the test was removed, and we
21606 # assume the GNU/Linux dynamic linker is in use.
21607 dynamic_linker='GNU/Linux ld.so'
21608 ;;
21609
21610 netbsd*)
21611 version_type=sunos
21612 need_lib_prefix=no
21613 need_version=no
21614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21617 dynamic_linker='NetBSD (a.out) ld.so'
21618 else
21619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21620 soname_spec='${libname}${release}${shared_ext}$major'
21621 dynamic_linker='NetBSD ld.elf_so'
21622 fi
21623 shlibpath_var=LD_LIBRARY_PATH
21624 shlibpath_overrides_runpath=yes
21625 hardcode_into_libs=yes
21626 ;;
21627
21628 newsos6)
21629 version_type=linux
21630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21631 shlibpath_var=LD_LIBRARY_PATH
21632 shlibpath_overrides_runpath=yes
21633 ;;
21634
21635 *nto* | *qnx*)
21636 version_type=qnx
21637 need_lib_prefix=no
21638 need_version=no
21639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21640 soname_spec='${libname}${release}${shared_ext}$major'
21641 shlibpath_var=LD_LIBRARY_PATH
21642 shlibpath_overrides_runpath=no
21643 hardcode_into_libs=yes
21644 dynamic_linker='ldqnx.so'
21645 ;;
21646
21647 openbsd*)
21648 version_type=sunos
21649 sys_lib_dlsearch_path_spec="/usr/lib"
21650 need_lib_prefix=no
21651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21652 case $host_os in
21653 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21654 *) need_version=no ;;
21655 esac
21656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21658 shlibpath_var=LD_LIBRARY_PATH
21659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21660 case $host_os in
21661 openbsd2.[89] | openbsd2.[89].*)
21662 shlibpath_overrides_runpath=no
21663 ;;
21664 *)
21665 shlibpath_overrides_runpath=yes
21666 ;;
21667 esac
21668 else
21669 shlibpath_overrides_runpath=yes
21670 fi
21671 ;;
21672
21673 os2*)
21674 libname_spec='$name'
21675 shrext_cmds=".dll"
21676 need_lib_prefix=no
21677 library_names_spec='$libname${shared_ext} $libname.a'
21678 dynamic_linker='OS/2 ld.exe'
21679 shlibpath_var=LIBPATH
21680 ;;
21681
21682 osf3* | osf4* | osf5*)
21683 version_type=osf
21684 need_lib_prefix=no
21685 need_version=no
21686 soname_spec='${libname}${release}${shared_ext}$major'
21687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21688 shlibpath_var=LD_LIBRARY_PATH
21689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21691 ;;
21692
21693 rdos*)
21694 dynamic_linker=no
21695 ;;
21696
21697 solaris*)
21698 version_type=linux
21699 need_lib_prefix=no
21700 need_version=no
21701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21702 soname_spec='${libname}${release}${shared_ext}$major'
21703 shlibpath_var=LD_LIBRARY_PATH
21704 shlibpath_overrides_runpath=yes
21705 hardcode_into_libs=yes
21706 # ldd complains unless libraries are executable
21707 postinstall_cmds='chmod +x $lib'
21708 ;;
21709
21710 sunos4*)
21711 version_type=sunos
21712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21714 shlibpath_var=LD_LIBRARY_PATH
21715 shlibpath_overrides_runpath=yes
21716 if test "$with_gnu_ld" = yes; then
21717 need_lib_prefix=no
21718 fi
21719 need_version=yes
21720 ;;
21721
21722 sysv4 | sysv4.3*)
21723 version_type=linux
21724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21725 soname_spec='${libname}${release}${shared_ext}$major'
21726 shlibpath_var=LD_LIBRARY_PATH
21727 case $host_vendor in
21728 sni)
21729 shlibpath_overrides_runpath=no
21730 need_lib_prefix=no
21731 runpath_var=LD_RUN_PATH
21732 ;;
21733 siemens)
21734 need_lib_prefix=no
21735 ;;
21736 motorola)
21737 need_lib_prefix=no
21738 need_version=no
21739 shlibpath_overrides_runpath=no
21740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21741 ;;
21742 esac
21743 ;;
21744
21745 sysv4*MP*)
21746 if test -d /usr/nec ;then
21747 version_type=linux
21748 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21749 soname_spec='$libname${shared_ext}.$major'
21750 shlibpath_var=LD_LIBRARY_PATH
21751 fi
21752 ;;
21753
21754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21755 version_type=freebsd-elf
21756 need_lib_prefix=no
21757 need_version=no
21758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21759 soname_spec='${libname}${release}${shared_ext}$major'
21760 shlibpath_var=LD_LIBRARY_PATH
21761 shlibpath_overrides_runpath=yes
21762 hardcode_into_libs=yes
21763 if test "$with_gnu_ld" = yes; then
21764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21765 else
21766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21767 case $host_os in
21768 sco3.2v5*)
21769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21770 ;;
21771 esac
21772 fi
21773 sys_lib_dlsearch_path_spec='/usr/lib'
21774 ;;
21775
21776 tpf*)
21777 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21778 version_type=linux
21779 need_lib_prefix=no
21780 need_version=no
21781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21782 shlibpath_var=LD_LIBRARY_PATH
21783 shlibpath_overrides_runpath=no
21784 hardcode_into_libs=yes
21785 ;;
21786
21787 uts4*)
21788 version_type=linux
21789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21790 soname_spec='${libname}${release}${shared_ext}$major'
21791 shlibpath_var=LD_LIBRARY_PATH
21792 ;;
21793
21794 *)
21795 dynamic_linker=no
21796 ;;
21797 esac
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21799 $as_echo "$dynamic_linker" >&6; }
21800 test "$dynamic_linker" = no && can_build_shared=no
21801
21802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21803 if test "$GCC" = yes; then
21804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21805 fi
21806
21807 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21808 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21809 fi
21810 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21811 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21812 fi
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21852 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21853 hardcode_action_CXX=
21854 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21855 test -n "$runpath_var_CXX" ||
21856 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21857
21858 # We can hardcode non-existent directories.
21859 if test "$hardcode_direct_CXX" != no &&
21860 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21861 # have to relink, otherwise we might link with an installed library
21862 # when we should be linking with a yet-to-be-installed one
21863 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21864 test "$hardcode_minus_L_CXX" != no; then
21865 # Linking always hardcodes the temporary library directory.
21866 hardcode_action_CXX=relink
21867 else
21868 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21869 hardcode_action_CXX=immediate
21870 fi
21871 else
21872 # We cannot hardcode anything, or else we can only hardcode existing
21873 # directories.
21874 hardcode_action_CXX=unsupported
21875 fi
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21877 $as_echo "$hardcode_action_CXX" >&6; }
21878
21879 if test "$hardcode_action_CXX" = relink ||
21880 test "$inherit_rpath_CXX" = yes; then
21881 # Fast installation is not supported
21882 enable_fast_install=no
21883 elif test "$shlibpath_overrides_runpath" = yes ||
21884 test "$enable_shared" = no; then
21885 # Fast installation is not necessary
21886 enable_fast_install=needless
21887 fi
21888
21889
21890
21891
21892
21893
21894
21895 fi # test -n "$compiler"
21896
21897 CC=$lt_save_CC
21898 LDCXX=$LD
21899 LD=$lt_save_LD
21900 GCC=$lt_save_GCC
21901 with_gnu_ld=$lt_save_with_gnu_ld
21902 lt_cv_path_LDCXX=$lt_cv_path_LD
21903 lt_cv_path_LD=$lt_save_path_LD
21904 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21905 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21906 fi # test "$_lt_caught_CXX_error" != yes
21907
21908 ac_ext=cpp
21909 ac_cpp='$CXXCPP $CPPFLAGS'
21910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929 # Only expand once:
21930
21931
21932
21933
21934
21935 # Identify the assembler which will work hand-in-glove with the newly
21936 # built GCC, so that we can examine its features. This is the assembler
21937 # which will be driven by the driver program.
21938 #
21939 # If build != host, and we aren't building gas in-tree, we identify a
21940 # build->target assembler and hope that it will have the same features
21941 # as the host->target assembler we'll be using.
21942 gcc_cv_gas_major_version=
21943 gcc_cv_gas_minor_version=
21944 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21945
21946 if ${gcc_cv_as+:} false; then :
21947
21948 else
21949
21950 if test -x "$DEFAULT_ASSEMBLER"; then
21951 gcc_cv_as="$DEFAULT_ASSEMBLER"
21952 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21953 && test -f ../gas/Makefile \
21954 && test x$build = x$host; then
21955 gcc_cv_as=../gas/as-new$build_exeext
21956 elif test -x as$build_exeext; then
21957 # Build using assembler in the current directory.
21958 gcc_cv_as=./as$build_exeext
21959 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21960 gcc_cv_as="$AS_FOR_TARGET"
21961 else
21962 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21963 set dummy $AS_FOR_TARGET; ac_word=$2
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21965 $as_echo_n "checking for $ac_word... " >&6; }
21966 if ${ac_cv_path_gcc_cv_as+:} false; then :
21967 $as_echo_n "(cached) " >&6
21968 else
21969 case $gcc_cv_as in
21970 [\\/]* | ?:[\\/]*)
21971 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21972 ;;
21973 *)
21974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21975 for as_dir in $PATH
21976 do
21977 IFS=$as_save_IFS
21978 test -z "$as_dir" && as_dir=.
21979 for ac_exec_ext in '' $ac_executable_extensions; do
21980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21981 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21983 break 2
21984 fi
21985 done
21986 done
21987 IFS=$as_save_IFS
21988
21989 ;;
21990 esac
21991 fi
21992 gcc_cv_as=$ac_cv_path_gcc_cv_as
21993 if test -n "$gcc_cv_as"; then
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21995 $as_echo "$gcc_cv_as" >&6; }
21996 else
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21998 $as_echo "no" >&6; }
21999 fi
22000
22001
22002 fi
22003 fi
22004
22005 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22006
22007 case "$ORIGINAL_AS_FOR_TARGET" in
22008 ./as | ./as$build_exeext) ;;
22009 *) ac_config_files="$ac_config_files as:exec-tool.in"
22010 ;;
22011 esac
22012
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22014 $as_echo_n "checking what assembler to use... " >&6; }
22015 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22016 # Single tree build which includes gas. We want to prefer it
22017 # over whatever linker top-level may have detected, since
22018 # we'll use what we're building after installation anyway.
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22020 $as_echo "newly built gas" >&6; }
22021 in_tree_gas=yes
22022 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22023 for f in $gcc_cv_as_bfd_srcdir/configure \
22024 $gcc_cv_as_gas_srcdir/configure \
22025 $gcc_cv_as_gas_srcdir/configure.ac \
22026 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22027 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22028 if test x$gcc_cv_gas_version != x; then
22029 break
22030 fi
22031 done
22032 case $gcc_cv_gas_version in
22033 VERSION=[0-9]*) ;;
22034 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22035 esac
22036 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22037 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22038 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22039 case $gcc_cv_gas_patch_version in
22040 "") gcc_cv_gas_patch_version="0" ;;
22041 esac
22042 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22043 + $gcc_cv_gas_minor_version \) \* 1000 \
22044 + $gcc_cv_gas_patch_version`
22045
22046 in_tree_gas_is_elf=no
22047 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22048 || (grep 'obj_format = multi' ../gas/Makefile \
22049 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22050 then
22051 in_tree_gas_is_elf=yes
22052 fi
22053 else
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22055 $as_echo "$gcc_cv_as" >&6; }
22056 in_tree_gas=no
22057 fi
22058
22059 default_ld=
22060 # Check whether --enable-ld was given.
22061 if test "${enable_ld+set}" = set; then :
22062 enableval=$enable_ld; case "${enableval}" in
22063 no)
22064 default_ld=ld.gold
22065 ;;
22066 esac
22067 fi
22068
22069
22070 install_gold_as_default=no
22071 # Check whether --enable-gold was given.
22072 if test "${enable_gold+set}" = set; then :
22073 enableval=$enable_gold; case "${enableval}" in
22074 default)
22075 install_gold_as_default=yes
22076 ;;
22077 yes)
22078 if test x${default_ld} != x; then
22079 install_gold_as_default=yes
22080 fi
22081 ;;
22082 no)
22083 ;;
22084 *)
22085 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22086 ;;
22087 esac
22088 fi
22089
22090
22091 # Identify the linker which will work hand-in-glove with the newly
22092 # built GCC, so that we can examine its features. This is the linker
22093 # which will be driven by the driver program.
22094 #
22095 # If build != host, and we aren't building gas in-tree, we identify a
22096 # build->target linker and hope that it will have the same features
22097 # as the host->target linker we'll be using.
22098 gcc_cv_gld_major_version=
22099 gcc_cv_gld_minor_version=
22100 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22101 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22102 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22103
22104 if ${gcc_cv_ld+:} false; then :
22105
22106 else
22107
22108 if test -x "$DEFAULT_LINKER"; then
22109 gcc_cv_ld="$DEFAULT_LINKER"
22110 elif test $install_gold_as_default = yes \
22111 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22112 && test -f ../gold/Makefile \
22113 && test x$build = x$host; then
22114 gcc_cv_ld=../gold/ld-new$build_exeext
22115 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22116 && test -f ../ld/Makefile \
22117 && test x$build = x$host; then
22118 gcc_cv_ld=../ld/ld-new$build_exeext
22119 elif test -x collect-ld$build_exeext; then
22120 # Build using linker in the current directory.
22121 gcc_cv_ld=./collect-ld$build_exeext
22122 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22123 gcc_cv_ld="$LD_FOR_TARGET"
22124 else
22125 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22126 set dummy $LD_FOR_TARGET; ac_word=$2
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22128 $as_echo_n "checking for $ac_word... " >&6; }
22129 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22130 $as_echo_n "(cached) " >&6
22131 else
22132 case $gcc_cv_ld in
22133 [\\/]* | ?:[\\/]*)
22134 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22135 ;;
22136 *)
22137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22138 for as_dir in $PATH
22139 do
22140 IFS=$as_save_IFS
22141 test -z "$as_dir" && as_dir=.
22142 for ac_exec_ext in '' $ac_executable_extensions; do
22143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22144 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22146 break 2
22147 fi
22148 done
22149 done
22150 IFS=$as_save_IFS
22151
22152 ;;
22153 esac
22154 fi
22155 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22156 if test -n "$gcc_cv_ld"; then
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22158 $as_echo "$gcc_cv_ld" >&6; }
22159 else
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22161 $as_echo "no" >&6; }
22162 fi
22163
22164
22165 fi
22166 fi
22167
22168 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22169 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22170 # if the PLUGIN_LD is set ld-new, just have it as ld
22171 # as that is the installed named.
22172 if test x$PLUGIN_LD_SUFFIX = xld-new \
22173 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22174 PLUGIN_LD_SUFFIX=ld
22175 fi
22176
22177 # Check whether --with-plugin-ld was given.
22178 if test "${with_plugin_ld+set}" = set; then :
22179 withval=$with_plugin_ld; if test x"$withval" != x; then
22180 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22181 PLUGIN_LD_SUFFIX="$withval"
22182 fi
22183 fi
22184
22185
22186
22187 cat >>confdefs.h <<_ACEOF
22188 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22189 _ACEOF
22190
22191
22192 # Check to see if we are using gold instead of ld
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22194 $as_echo_n "checking whether we are using gold... " >&6; }
22195 ld_is_gold=no
22196 if test x$gcc_cv_ld != x; then
22197 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22198 | grep "GNU gold" > /dev/null; then
22199 ld_is_gold=yes
22200 fi
22201 fi
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22203 $as_echo "$ld_is_gold" >&6; }
22204
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22206 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22207 # Check to see if default ld is not gold, but gold is
22208 # available and has support for split stack. If gcc was configured
22209 # with gold then no checking is done.
22210 #
22211 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22212
22213 # For platforms other than powerpc64*, enable as appropriate.
22214
22215 gold_non_default=no
22216 ld_gold=`which ${gcc_cv_ld}.gold`
22217 # Make sure this gold has minimal split stack support
22218 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22219 ld_vers=`$ld_gold --version | sed 1q`
22220 gold_vers=`echo $ld_vers | sed -n \
22221 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22222 case $target in
22223 # check that the gold version contains the complete split stack support
22224 # on powerpc64 big and little endian
22225 powerpc64*-*-*)
22226 case "$gold_vers" in
22227 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22228 ;;
22229 *) gold_non_default=no
22230 ;;
22231 esac
22232 ;;
22233 esac
22234 fi
22235 if test $gold_non_default = yes; then
22236
22237 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22238
22239 fi
22240 fi
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22242 $as_echo "$gold_non_default" >&6; }
22243
22244 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22245
22246 case "$ORIGINAL_LD_FOR_TARGET" in
22247 ./collect-ld | ./collect-ld$build_exeext) ;;
22248 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22249 ;;
22250 esac
22251
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22253 $as_echo_n "checking what linker to use... " >&6; }
22254 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22255 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22256 # Single tree build which includes ld. We want to prefer it
22257 # over whatever linker top-level may have detected, since
22258 # we'll use what we're building after installation anyway.
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22260 $as_echo "newly built ld" >&6; }
22261 in_tree_ld=yes
22262 in_tree_ld_is_elf=no
22263 if (grep 'EMUL = .*elf' ../ld/Makefile \
22264 || grep 'EMUL = .*linux' ../ld/Makefile \
22265 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22266 in_tree_ld_is_elf=yes
22267 elif test "$ld_is_gold" = yes; then
22268 in_tree_ld_is_elf=yes
22269 fi
22270 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
22271 do
22272 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22273 if test x$gcc_cv_gld_version != x; then
22274 break
22275 fi
22276 done
22277 case $gcc_cv_gld_version in
22278 VERSION=[0-9]*) ;;
22279 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22280 esac
22281 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22282 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22283 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22284 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22285 else
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22287 $as_echo "$gcc_cv_ld" >&6; }
22288 in_tree_ld=no
22289 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22290 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22291 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22292 fi
22293
22294
22295
22296
22297 # Figure out what nm we will be using.
22298 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22299 if ${gcc_cv_nm+:} false; then :
22300
22301 else
22302
22303 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22304 && test -f ../binutils/Makefile \
22305 && test x$build = x$host; then
22306 gcc_cv_nm=../binutils/nm-new$build_exeext
22307 elif test -x nm$build_exeext; then
22308 gcc_cv_nm=./nm$build_exeext
22309 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22310 gcc_cv_nm="$NM_FOR_TARGET"
22311 else
22312 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22313 set dummy $NM_FOR_TARGET; ac_word=$2
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22315 $as_echo_n "checking for $ac_word... " >&6; }
22316 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22317 $as_echo_n "(cached) " >&6
22318 else
22319 case $gcc_cv_nm in
22320 [\\/]* | ?:[\\/]*)
22321 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22322 ;;
22323 *)
22324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22325 for as_dir in $PATH
22326 do
22327 IFS=$as_save_IFS
22328 test -z "$as_dir" && as_dir=.
22329 for ac_exec_ext in '' $ac_executable_extensions; do
22330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22331 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22333 break 2
22334 fi
22335 done
22336 done
22337 IFS=$as_save_IFS
22338
22339 ;;
22340 esac
22341 fi
22342 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22343 if test -n "$gcc_cv_nm"; then
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22345 $as_echo "$gcc_cv_nm" >&6; }
22346 else
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22348 $as_echo "no" >&6; }
22349 fi
22350
22351
22352 fi
22353 fi
22354
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22356 $as_echo_n "checking what nm to use... " >&6; }
22357 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22358 # Single tree build which includes binutils.
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22360 $as_echo "newly built nm" >&6; }
22361 in_tree_nm=yes
22362 else
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22364 $as_echo "$gcc_cv_nm" >&6; }
22365 in_tree_nm=no
22366 fi
22367
22368 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22369
22370 case "$ORIGINAL_NM_FOR_TARGET" in
22371 ./nm | ./nm$build_exeext) ;;
22372 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22373 ;;
22374 esac
22375
22376
22377 # Figure out what objdump we will be using.
22378 if ${gcc_cv_objdump+:} false; then :
22379
22380 else
22381
22382 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22383 && test -f ../binutils/Makefile \
22384 && test x$build = x$host; then
22385 # Single tree build which includes binutils.
22386 gcc_cv_objdump=../binutils/objdump$build_exeext
22387 elif test -x objdump$build_exeext; then
22388 gcc_cv_objdump=./objdump$build_exeext
22389 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22390 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22391 else
22392 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22393 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22395 $as_echo_n "checking for $ac_word... " >&6; }
22396 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22397 $as_echo_n "(cached) " >&6
22398 else
22399 case $gcc_cv_objdump in
22400 [\\/]* | ?:[\\/]*)
22401 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22402 ;;
22403 *)
22404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22405 for as_dir in $PATH
22406 do
22407 IFS=$as_save_IFS
22408 test -z "$as_dir" && as_dir=.
22409 for ac_exec_ext in '' $ac_executable_extensions; do
22410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22411 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22413 break 2
22414 fi
22415 done
22416 done
22417 IFS=$as_save_IFS
22418
22419 ;;
22420 esac
22421 fi
22422 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22423 if test -n "$gcc_cv_objdump"; then
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22425 $as_echo "$gcc_cv_objdump" >&6; }
22426 else
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22428 $as_echo "no" >&6; }
22429 fi
22430
22431
22432 fi
22433 fi
22434
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22436 $as_echo_n "checking what objdump to use... " >&6; }
22437 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22438 # Single tree build which includes binutils.
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22440 $as_echo "newly built objdump" >&6; }
22441 elif test x$gcc_cv_objdump = x; then
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22443 $as_echo "not found" >&6; }
22444 else
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22446 $as_echo "$gcc_cv_objdump" >&6; }
22447 fi
22448
22449 # Figure out what readelf we will be using.
22450 if ${gcc_cv_readelf+:} false; then :
22451
22452 else
22453
22454 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22455 && test -f ../binutils/Makefile \
22456 && test x$build = x$host; then
22457 # Single tree build which includes binutils.
22458 gcc_cv_readelf=../binutils/readelf$build_exeext
22459 elif test -x readelf$build_exeext; then
22460 gcc_cv_readelf=./readelf$build_exeext
22461 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22462 gcc_cv_readelf="$READELF_FOR_TARGET"
22463 else
22464 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22465 set dummy $READELF_FOR_TARGET; ac_word=$2
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22467 $as_echo_n "checking for $ac_word... " >&6; }
22468 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22469 $as_echo_n "(cached) " >&6
22470 else
22471 case $gcc_cv_readelf in
22472 [\\/]* | ?:[\\/]*)
22473 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22474 ;;
22475 *)
22476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22477 for as_dir in $PATH
22478 do
22479 IFS=$as_save_IFS
22480 test -z "$as_dir" && as_dir=.
22481 for ac_exec_ext in '' $ac_executable_extensions; do
22482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22483 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22485 break 2
22486 fi
22487 done
22488 done
22489 IFS=$as_save_IFS
22490
22491 ;;
22492 esac
22493 fi
22494 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22495 if test -n "$gcc_cv_readelf"; then
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22497 $as_echo "$gcc_cv_readelf" >&6; }
22498 else
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22500 $as_echo "no" >&6; }
22501 fi
22502
22503
22504 fi
22505 fi
22506
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22508 $as_echo_n "checking what readelf to use... " >&6; }
22509 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22510 # Single tree build which includes binutils.
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22512 $as_echo "newly built readelf" >&6; }
22513 elif test x$gcc_cv_readelf = x; then
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22515 $as_echo "not found" >&6; }
22516 else
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22518 $as_echo "$gcc_cv_readelf" >&6; }
22519 fi
22520
22521 # Figure out what assembler alignment features are present.
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22523 $as_echo_n "checking assembler flags... " >&6; }
22524 if ${gcc_cv_as_flags+:} false; then :
22525 $as_echo_n "(cached) " >&6
22526 else
22527 case "$target" in
22528 i[34567]86-*-linux*)
22529 gcc_cv_as_flags=--32
22530 ;;
22531 x86_64-*-linux-gnux32)
22532 gcc_cv_as_flags=--x32
22533 ;;
22534 x86_64-*-linux*)
22535 gcc_cv_as_flags=--64
22536 ;;
22537 powerpc*-*-darwin*)
22538 gcc_cv_as_flags="-arch ppc"
22539 ;;
22540 *)
22541 gcc_cv_as_flags=" "
22542 ;;
22543 esac
22544 fi
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22546 $as_echo "$gcc_cv_as_flags" >&6; }
22547
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22549 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22550 if ${gcc_cv_as_balign_and_p2align+:} false; then :
22551 $as_echo_n "(cached) " >&6
22552 else
22553 gcc_cv_as_balign_and_p2align=no
22554 if test $in_tree_gas = yes; then
22555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22556 then gcc_cv_as_balign_and_p2align=yes
22557 fi
22558 elif test x$gcc_cv_as != x; then
22559 $as_echo '.balign 4
22560 .p2align 2' > conftest.s
22561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22563 (eval $ac_try) 2>&5
22564 ac_status=$?
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }; }
22567 then
22568 gcc_cv_as_balign_and_p2align=yes
22569 else
22570 echo "configure: failed program was" >&5
22571 cat conftest.s >&5
22572 fi
22573 rm -f conftest.o conftest.s
22574 fi
22575 fi
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22577 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22578 if test $gcc_cv_as_balign_and_p2align = yes; then
22579
22580 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22581
22582 fi
22583
22584
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22586 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22587 if ${gcc_cv_as_max_skip_p2align+:} false; then :
22588 $as_echo_n "(cached) " >&6
22589 else
22590 gcc_cv_as_max_skip_p2align=no
22591 if test $in_tree_gas = yes; then
22592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22593 then gcc_cv_as_max_skip_p2align=yes
22594 fi
22595 elif test x$gcc_cv_as != x; then
22596 $as_echo '.p2align 4,,7' > conftest.s
22597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22599 (eval $ac_try) 2>&5
22600 ac_status=$?
22601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22602 test $ac_status = 0; }; }
22603 then
22604 gcc_cv_as_max_skip_p2align=yes
22605 else
22606 echo "configure: failed program was" >&5
22607 cat conftest.s >&5
22608 fi
22609 rm -f conftest.o conftest.s
22610 fi
22611 fi
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22613 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22614 if test $gcc_cv_as_max_skip_p2align = yes; then
22615
22616 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22617
22618 fi
22619
22620
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22622 $as_echo_n "checking assembler for .literal16... " >&6; }
22623 if ${gcc_cv_as_literal16+:} false; then :
22624 $as_echo_n "(cached) " >&6
22625 else
22626 gcc_cv_as_literal16=no
22627 if test $in_tree_gas = yes; then
22628 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22629 then gcc_cv_as_literal16=yes
22630 fi
22631 elif test x$gcc_cv_as != x; then
22632 $as_echo '.literal16' > conftest.s
22633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22635 (eval $ac_try) 2>&5
22636 ac_status=$?
22637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22638 test $ac_status = 0; }; }
22639 then
22640 gcc_cv_as_literal16=yes
22641 else
22642 echo "configure: failed program was" >&5
22643 cat conftest.s >&5
22644 fi
22645 rm -f conftest.o conftest.s
22646 fi
22647 fi
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22649 $as_echo "$gcc_cv_as_literal16" >&6; }
22650 if test $gcc_cv_as_literal16 = yes; then
22651
22652 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22653
22654 fi
22655
22656
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22658 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22659 if ${gcc_cv_as_subsection_m1+:} false; then :
22660 $as_echo_n "(cached) " >&6
22661 else
22662 gcc_cv_as_subsection_m1=no
22663 if test $in_tree_gas = yes; then
22664 if test $in_tree_gas_is_elf = yes \
22665 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22666 then gcc_cv_as_subsection_m1=yes
22667 fi
22668 elif test x$gcc_cv_as != x; then
22669 $as_echo 'conftest_label1: .word 0
22670 .subsection -1
22671 conftest_label2: .word 0
22672 .previous' > conftest.s
22673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22675 (eval $ac_try) 2>&5
22676 ac_status=$?
22677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22678 test $ac_status = 0; }; }
22679 then
22680 if test x$gcc_cv_nm != x; then
22681 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22682 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22683 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22684 then :
22685 else gcc_cv_as_subsection_m1=yes
22686 fi
22687 rm -f conftest.nm1 conftest.nm2
22688 fi
22689 else
22690 echo "configure: failed program was" >&5
22691 cat conftest.s >&5
22692 fi
22693 rm -f conftest.o conftest.s
22694 fi
22695 fi
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22697 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22698 if test $gcc_cv_as_subsection_m1 = yes; then
22699
22700 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22701
22702 fi
22703
22704
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22706 $as_echo_n "checking assembler for .weak... " >&6; }
22707 if ${gcc_cv_as_weak+:} false; then :
22708 $as_echo_n "(cached) " >&6
22709 else
22710 gcc_cv_as_weak=no
22711 if test $in_tree_gas = yes; then
22712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22713 then gcc_cv_as_weak=yes
22714 fi
22715 elif test x$gcc_cv_as != x; then
22716 $as_echo ' .weak foobar' > conftest.s
22717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22719 (eval $ac_try) 2>&5
22720 ac_status=$?
22721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22722 test $ac_status = 0; }; }
22723 then
22724 gcc_cv_as_weak=yes
22725 else
22726 echo "configure: failed program was" >&5
22727 cat conftest.s >&5
22728 fi
22729 rm -f conftest.o conftest.s
22730 fi
22731 fi
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22733 $as_echo "$gcc_cv_as_weak" >&6; }
22734 if test $gcc_cv_as_weak = yes; then
22735
22736 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22737
22738 fi
22739
22740
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22742 $as_echo_n "checking assembler for .weakref... " >&6; }
22743 if ${gcc_cv_as_weakref+:} false; then :
22744 $as_echo_n "(cached) " >&6
22745 else
22746 gcc_cv_as_weakref=no
22747 if test $in_tree_gas = yes; then
22748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22749 then gcc_cv_as_weakref=yes
22750 fi
22751 elif test x$gcc_cv_as != x; then
22752 $as_echo ' .weakref foobar, barfnot' > conftest.s
22753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22755 (eval $ac_try) 2>&5
22756 ac_status=$?
22757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22758 test $ac_status = 0; }; }
22759 then
22760 gcc_cv_as_weakref=yes
22761 else
22762 echo "configure: failed program was" >&5
22763 cat conftest.s >&5
22764 fi
22765 rm -f conftest.o conftest.s
22766 fi
22767 fi
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22769 $as_echo "$gcc_cv_as_weakref" >&6; }
22770 if test $gcc_cv_as_weakref = yes; then
22771
22772 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22773
22774 fi
22775
22776
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22778 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22779 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
22780 $as_echo_n "(cached) " >&6
22781 else
22782 gcc_cv_as_nsubspa_comdat=no
22783 if test $in_tree_gas = yes; then
22784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22785 then gcc_cv_as_nsubspa_comdat=yes
22786 fi
22787 elif test x$gcc_cv_as != x; then
22788 $as_echo ' .SPACE $TEXT$
22789 .NSUBSPA $CODE$,COMDAT' > conftest.s
22790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22792 (eval $ac_try) 2>&5
22793 ac_status=$?
22794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22795 test $ac_status = 0; }; }
22796 then
22797 gcc_cv_as_nsubspa_comdat=yes
22798 else
22799 echo "configure: failed program was" >&5
22800 cat conftest.s >&5
22801 fi
22802 rm -f conftest.o conftest.s
22803 fi
22804 fi
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22806 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22807 if test $gcc_cv_as_nsubspa_comdat = yes; then
22808
22809 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22810
22811 fi
22812
22813
22814 # .hidden needs to be supported in both the assembler and the linker,
22815 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22816 # This is irritatingly difficult to feature test for; we have to check the
22817 # date string after the version number. If we've got an in-tree
22818 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22819 # to be safe.
22820 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22821 case "${target}" in
22822 *-*-aix*)
22823 conftest_s=' .globl foobar,hidden'
22824 ;;
22825 *)
22826 conftest_s=' .hidden foobar
22827 foobar:'
22828 ;;
22829 esac
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22831 $as_echo_n "checking assembler for .hidden... " >&6; }
22832 if ${gcc_cv_as_hidden+:} false; then :
22833 $as_echo_n "(cached) " >&6
22834 else
22835 gcc_cv_as_hidden=no
22836 if test $in_tree_gas = yes; then
22837 if test $in_tree_gas_is_elf = yes \
22838 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22839 then gcc_cv_as_hidden=yes
22840 fi
22841 elif test x$gcc_cv_as != x; then
22842 $as_echo "$conftest_s" > conftest.s
22843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22845 (eval $ac_try) 2>&5
22846 ac_status=$?
22847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22848 test $ac_status = 0; }; }
22849 then
22850 gcc_cv_as_hidden=yes
22851 else
22852 echo "configure: failed program was" >&5
22853 cat conftest.s >&5
22854 fi
22855 rm -f conftest.o conftest.s
22856 fi
22857 fi
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22859 $as_echo "$gcc_cv_as_hidden" >&6; }
22860
22861
22862 case "${target}" in
22863 *-*-darwin*)
22864 # Darwin as has some visibility support, though with a different syntax.
22865 gcc_cv_as_hidden=yes
22866 ;;
22867 esac
22868
22869 # gnu_indirect_function type is an extension proposed at
22870 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22871 # selection of function implementation
22872 # Check whether --enable-gnu-indirect-function was given.
22873 if test "${enable_gnu_indirect_function+set}" = set; then :
22874 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22875 yes | no) ;;
22876 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22877 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22878 esac
22879 else
22880 enable_gnu_indirect_function="$default_gnu_indirect_function"
22881 fi
22882
22883
22884 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22885
22886 cat >>confdefs.h <<_ACEOF
22887 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22888 _ACEOF
22889
22890
22891
22892 if test $in_tree_ld != yes ; then
22893 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22894 if echo "$ld_ver" | grep GNU > /dev/null; then
22895 if test x"$ld_is_gold" = xyes; then
22896 # GNU gold --version looks like this:
22897 #
22898 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22899 #
22900 # We extract the binutils version which is more familiar and specific
22901 # than the gold version.
22902 ld_vers=`echo $ld_ver | sed -n \
22903 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22904 else
22905 # GNU ld --version looks like this:
22906 #
22907 # GNU ld (GNU Binutils) 2.21.51.20110225
22908 ld_vers=`echo $ld_ver | sed -n \
22909 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22910 fi
22911 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'`
22912 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22913 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22914 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22915 else
22916 case "${target}" in
22917 *-*-solaris2*)
22918 # Solaris 2 ld -V output looks like this for a regular version:
22919 #
22920 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22921 #
22922 # but test versions add stuff at the end:
22923 #
22924 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22925 #
22926 # In Solaris 11.4, this was changed to
22927 #
22928 # ld: Solaris ELF Utilities: 11.4-1.3123
22929 #
22930 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22931 # numbers can be used in ld.so.1 feature checks even if a different
22932 # linker is configured.
22933 ld_ver=`$gcc_cv_ld -V 2>&1`
22934 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
22935 ld_vers=`echo $ld_ver | sed -n \
22936 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22937 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22938 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22939 fi
22940 ;;
22941 esac
22942 fi
22943 fi
22944
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22946 $as_echo_n "checking linker for .hidden support... " >&6; }
22947 if ${gcc_cv_ld_hidden+:} false; then :
22948 $as_echo_n "(cached) " >&6
22949 else
22950 if test $in_tree_ld = yes ; then
22951 gcc_cv_ld_hidden=no
22952 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 \
22953 && test $in_tree_ld_is_elf = yes; then
22954 gcc_cv_ld_hidden=yes
22955 fi
22956 else
22957 gcc_cv_ld_hidden=yes
22958 if test x"$ld_is_gold" = xyes; then
22959 :
22960 elif echo "$ld_ver" | grep GNU > /dev/null; then
22961 case "${target}" in
22962 mmix-knuth-mmixware)
22963 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22964 gcc_cv_ld_hidden=no
22965 ;;
22966 esac
22967 if test 0"$ld_date" -lt 20020404; then
22968 if test -n "$ld_date"; then
22969 # If there was date string, but was earlier than 2002-04-04, fail
22970 gcc_cv_ld_hidden=no
22971 elif test -z "$ld_vers"; then
22972 # If there was no date string nor ld version number, something is wrong
22973 gcc_cv_ld_hidden=no
22974 else
22975 test -z "$ld_vers_patch" && ld_vers_patch=0
22976 if test "$ld_vers_major" -lt 2; then
22977 gcc_cv_ld_hidden=no
22978 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22979 gcc_cv_ld_hidden="no"
22980 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22981 gcc_cv_ld_hidden=no
22982 fi
22983 fi
22984 fi
22985 else
22986 case "${target}" in
22987 *-*-aix[789]*)
22988 gcc_cv_ld_hidden=yes
22989 ;;
22990 *-*-darwin*)
22991 # Darwin ld has some visibility support.
22992 gcc_cv_ld_hidden=yes
22993 ;;
22994 hppa64*-*-hpux* | ia64*-*-hpux*)
22995 gcc_cv_ld_hidden=yes
22996 ;;
22997 *-*-solaris2.1[0-9]*)
22998 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22999 # .symbolic was only added in Solaris 9 12/02.
23000 gcc_cv_ld_hidden=yes
23001 ;;
23002 *)
23003 gcc_cv_ld_hidden=no
23004 ;;
23005 esac
23006 fi
23007 fi
23008 fi
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23010 $as_echo "$gcc_cv_ld_hidden" >&6; }
23011 libgcc_visibility=no
23012
23013
23014 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23015 libgcc_visibility=yes
23016
23017 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23018
23019 fi
23020
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23022 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23023 gcc_cv_ld_ro_rw_mix=unknown
23024 if test $in_tree_ld = yes ; then
23025 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 \
23026 && test $in_tree_ld_is_elf = yes; then
23027 gcc_cv_ld_ro_rw_mix=read-write
23028 fi
23029 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23030 echo '.section myfoosect, "a"' > conftest1.s
23031 echo '.section myfoosect, "aw"' > conftest2.s
23032 echo '.byte 1' >> conftest2.s
23033 echo '.section myfoosect, "a"' > conftest3.s
23034 echo '.byte 0' >> conftest3.s
23035 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23036 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23037 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23038 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23039 conftest2.o conftest3.o > /dev/null 2>&1; then
23040 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23041 | sed -e '/myfoosect/!d' -e N`
23042 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23043 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23044 gcc_cv_ld_ro_rw_mix=read-only
23045 else
23046 gcc_cv_ld_ro_rw_mix=read-write
23047 fi
23048 fi
23049 fi
23050 rm -f conftest.* conftest[123].*
23051 fi
23052 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23053
23054 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23055
23056 fi
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23058 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23059
23060 # Check whether --enable-initfini-array was given.
23061 if test "${enable_initfini_array+set}" = set; then :
23062 enableval=$enable_initfini_array;
23063 else
23064
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23066 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23067 if ${gcc_cv_initfini_array+:} false; then :
23068 $as_echo_n "(cached) " >&6
23069 else
23070 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23071 case "${target}" in
23072 ia64-*)
23073 if test "$cross_compiling" = yes; then :
23074 gcc_cv_initfini_array=no
23075 else
23076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23077 /* end confdefs.h. */
23078
23079 #ifndef __ELF__
23080 #error Not an ELF OS
23081 #endif
23082 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23083 if it can be used. */
23084 static int x = -1;
23085 int main (void) { return x; }
23086 int foo (void) { x = 0; }
23087 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23088
23089 _ACEOF
23090 if ac_fn_cxx_try_run "$LINENO"; then :
23091 gcc_cv_initfini_array=yes
23092 else
23093 gcc_cv_initfini_array=no
23094 fi
23095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23096 conftest.$ac_objext conftest.beam conftest.$ac_ext
23097 fi
23098 ;;
23099 *)
23100 gcc_cv_initfini_array=no
23101 if test $in_tree_ld = yes ; then
23102 if test "$gcc_cv_gld_major_version" -eq 2 \
23103 -a "$gcc_cv_gld_minor_version" -ge 22 \
23104 -o "$gcc_cv_gld_major_version" -gt 2 \
23105 && test $in_tree_ld_is_elf = yes; then
23106 gcc_cv_initfini_array=yes
23107 fi
23108 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23109 case $target:$gas in
23110 *:yes)
23111 sh_flags='"a"'
23112 sh_type='%progbits'
23113 ;;
23114 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23115 sh_flags='"a"'
23116 sh_type='@progbits'
23117 ;;
23118 sparc*-*-solaris2*:no)
23119 sh_flags='#alloc'
23120 sh_type='#progbits'
23121 sh_quote='"'
23122 ;;
23123 esac
23124 case "$target:$gnu_ld" in
23125 *:yes)
23126 cat > conftest.s <<EOF
23127 .section .dtors,$sh_flags,$sh_type
23128 .balign 4
23129 .byte 'A', 'A', 'A', 'A'
23130 .section .ctors,$sh_flags,$sh_type
23131 .balign 4
23132 .byte 'B', 'B', 'B', 'B'
23133 .section .fini_array.65530,$sh_flags,$sh_type
23134 .balign 4
23135 .byte 'C', 'C', 'C', 'C'
23136 .section .init_array.65530,$sh_flags,$sh_type
23137 .balign 4
23138 .byte 'D', 'D', 'D', 'D'
23139 .section .dtors.64528,$sh_flags,$sh_type
23140 .balign 4
23141 .byte 'E', 'E', 'E', 'E'
23142 .section .ctors.64528,$sh_flags,$sh_type
23143 .balign 4
23144 .byte 'F', 'F', 'F', 'F'
23145 .section .fini_array.01005,$sh_flags,$sh_type
23146 .balign 4
23147 .byte 'G', 'G', 'G', 'G'
23148 .section .init_array.01005,$sh_flags,$sh_type
23149 .balign 4
23150 .byte 'H', 'H', 'H', 'H'
23151 .text
23152 .globl _start
23153 _start:
23154 EOF
23155 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23156 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23157 && $gcc_cv_objdump -s -j .init_array conftest \
23158 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23159 && $gcc_cv_objdump -s -j .fini_array conftest \
23160 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23161 gcc_cv_initfini_array=yes
23162 fi
23163 ;;
23164 *-*-solaris2*:no)
23165 # When Solaris ld added constructor priority support, it was
23166 # decided to only handle .init_array.N/.fini_array.N since
23167 # there was no need for backwards compatibility with
23168 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23169 # sections with correct execution order resp. to
23170 # .init_array/.fini_array, while gld merges them into
23171 # .init_array/.fini_array.
23172 cat > conftest.s <<EOF
23173 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23174 .align 4
23175 .byte 'C', 'C', 'C', 'C'
23176 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23177 .align 4
23178 .byte 'D', 'D', 'D', 'D'
23179 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23180 .align 4
23181 .byte 'G', 'G', 'G', 'G'
23182 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23183 .align 4
23184 .byte 'H', 'H', 'H', 'H'
23185 .text
23186 .globl _start
23187 _start:
23188 EOF
23189 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23190 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23191 && $gcc_cv_objdump -s -j .init_array conftest \
23192 | grep HHHHDDDD > /dev/null 2>&1 \
23193 && $gcc_cv_objdump -s -j .fini_array conftest \
23194 | grep GGGGCCCC > /dev/null 2>&1; then
23195 gcc_cv_initfini_array=yes
23196 fi
23197 ;;
23198 esac
23199 rm -f conftest conftest.*
23200 fi
23201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23202 /* end confdefs.h. */
23203
23204 #ifndef __ELF__
23205 # error Not an ELF OS
23206 #endif
23207 #include <stdlib.h>
23208 #if defined __GLIBC_PREREQ
23209 # if __GLIBC_PREREQ (2, 4)
23210 # else
23211 # error GLIBC 2.4 required
23212 # endif
23213 #else
23214 # if defined __sun__ && defined __svr4__
23215 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23216 # else
23217 # error The C library not known to support .init_array/.fini_array
23218 # endif
23219 #endif
23220
23221 _ACEOF
23222 if ac_fn_cxx_try_cpp "$LINENO"; then :
23223
23224 else
23225 gcc_cv_initfini_array=no
23226 fi
23227 rm -f conftest.err conftest.i conftest.$ac_ext;;
23228 esac
23229 else
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23231 $as_echo_n "checking cross compile... guessing... " >&6; }
23232 gcc_cv_initfini_array=no
23233 fi
23234 fi
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23236 $as_echo "$gcc_cv_initfini_array" >&6; }
23237 enable_initfini_array=$gcc_cv_initfini_array
23238
23239 fi
23240
23241
23242 cat >>confdefs.h <<_ACEOF
23243 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23244 _ACEOF
23245
23246
23247
23248 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23250 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23251 if ${gcc_cv_as_leb128+:} false; then :
23252 $as_echo_n "(cached) " >&6
23253 else
23254 gcc_cv_as_leb128=no
23255 if test $in_tree_gas = yes; then
23256 if test $in_tree_gas_is_elf = yes \
23257 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23258 then gcc_cv_as_leb128=yes
23259 fi
23260 elif test x$gcc_cv_as != x; then
23261 $as_echo ' .data
23262 .uleb128 L2 - L1
23263 L1:
23264 .uleb128 1280
23265 .sleb128 -1010
23266 L2:' > conftest.s
23267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23269 (eval $ac_try) 2>&5
23270 ac_status=$?
23271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272 test $ac_status = 0; }; }
23273 then
23274 # GAS versions before 2.11 do not support uleb128,
23275 # despite appearing to.
23276 # ??? There exists an elf-specific test that will crash
23277 # the assembler. Perhaps it's better to figure out whether
23278 # arbitrary sections are supported and try the test.
23279 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23280 if echo "$as_ver" | grep GNU > /dev/null; then
23281 as_vers=`echo $as_ver | sed -n \
23282 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23283 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23284 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23285 if test $as_major -eq 2 && test $as_minor -lt 11
23286 then :
23287 else gcc_cv_as_leb128=yes
23288 fi
23289 fi
23290 else
23291 echo "configure: failed program was" >&5
23292 cat conftest.s >&5
23293 fi
23294 rm -f conftest.o conftest.s
23295 fi
23296 fi
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23298 $as_echo "$gcc_cv_as_leb128" >&6; }
23299 if test $gcc_cv_as_leb128 = yes; then
23300
23301 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23302
23303 fi
23304 if test $gcc_cv_as_leb128 != yes; then
23305
23306 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23307
23308 fi
23309
23310 # Determine if an .eh_frame section is read-only.
23311 gcc_fn_eh_frame_ro () {
23312 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23313 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23314 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23315 }
23316
23317 # Check if we have assembler support for unwind directives.
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23319 $as_echo_n "checking assembler for cfi directives... " >&6; }
23320 if ${gcc_cv_as_cfi_directive+:} false; then :
23321 $as_echo_n "(cached) " >&6
23322 else
23323 gcc_cv_as_cfi_directive=no
23324 if test x$gcc_cv_as != x; then
23325 $as_echo ' .text
23326 .cfi_startproc
23327 .cfi_offset 0, 0
23328 .cfi_same_value 1
23329 .cfi_def_cfa 1, 2
23330 .cfi_escape 1, 2, 3, 4, 5
23331 .cfi_endproc' > conftest.s
23332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23337 test $ac_status = 0; }; }
23338 then
23339 case "$target" in
23340 *-*-solaris*)
23341 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23342 # read-only and read-write sections, we need to make sure that the
23343 # assembler used emits read-write .eh_frame sections.
23344 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23345 gcc_cv_as_cfi_directive=yes
23346 elif test "x$gcc_cv_objdump" = x; then
23347 # No objdump, err on the side of caution.
23348 gcc_cv_as_cfi_directive=no
23349 else
23350 if test x$gas = xyes; then
23351 as_32_opt="--32"
23352 as_64_opt="--64"
23353 else
23354 as_32_opt="-m32"
23355 as_64_opt="-m64"
23356 fi
23357 case "$target" in
23358 sparc*-*-solaris2.*)
23359 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23360 if gcc_fn_eh_frame_ro $as_32_opt \
23361 || gcc_fn_eh_frame_ro $as_64_opt; then
23362 gcc_cv_as_cfi_directive=no
23363 else
23364 gcc_cv_as_cfi_directive=yes
23365 fi
23366 ;;
23367 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23368 # On Solaris/x86, make sure that GCC and assembler agree on using
23369 # read-only .eh_frame sections for 64-bit.
23370 if gcc_fn_eh_frame_ro $as_32_opt; then
23371 gcc_cv_as_cfi_directive=no
23372 elif gcc_fn_eh_frame_ro $as_64_opt; then
23373 gcc_cv_as_cfi_directive=yes
23374 else
23375 gcc_cv_as_cfi_directive=no
23376 fi
23377 ;;
23378 esac
23379 fi
23380 ;;
23381 *-*-*)
23382 gcc_cv_as_cfi_directive=yes
23383 ;;
23384 esac
23385 else
23386 echo "configure: failed program was" >&5
23387 cat conftest.s >&5
23388 fi
23389 rm -f conftest.o conftest.s
23390 fi
23391 fi
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23393 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23394
23395
23396 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23398 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23399 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23400 $as_echo_n "(cached) " >&6
23401 else
23402 gcc_cv_as_cfi_advance_working=no
23403 if test x$gcc_cv_as != x; then
23404 $as_echo ' .text
23405 .cfi_startproc
23406 .cfi_adjust_cfa_offset 64
23407 .skip 75040, 0
23408 .cfi_adjust_cfa_offset 128
23409 .cfi_endproc' > conftest.s
23410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23412 (eval $ac_try) 2>&5
23413 ac_status=$?
23414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23415 test $ac_status = 0; }; }
23416 then
23417
23418 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23419 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23420 gcc_cv_as_cfi_advance_working=yes
23421 fi
23422
23423 else
23424 echo "configure: failed program was" >&5
23425 cat conftest.s >&5
23426 fi
23427 rm -f conftest.o conftest.s
23428 fi
23429 fi
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23431 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23432
23433
23434 else
23435 # no objdump, err on the side of caution
23436 gcc_cv_as_cfi_advance_working=no
23437 fi
23438
23439
23440 cat >>confdefs.h <<_ACEOF
23441 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23442 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23443 _ACEOF
23444
23445
23446
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23448 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23449 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23450 $as_echo_n "(cached) " >&6
23451 else
23452 gcc_cv_as_cfi_personality_directive=no
23453 if test x$gcc_cv_as != x; then
23454 $as_echo ' .text
23455 .cfi_startproc
23456 .cfi_personality 0, symbol
23457 .cfi_endproc' > conftest.s
23458 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23460 (eval $ac_try) 2>&5
23461 ac_status=$?
23462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23463 test $ac_status = 0; }; }
23464 then
23465 gcc_cv_as_cfi_personality_directive=yes
23466 else
23467 echo "configure: failed program was" >&5
23468 cat conftest.s >&5
23469 fi
23470 rm -f conftest.o conftest.s
23471 fi
23472 fi
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23474 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23475
23476
23477
23478 cat >>confdefs.h <<_ACEOF
23479 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23480 _ACEOF
23481
23482
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23484 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23485 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23486 $as_echo_n "(cached) " >&6
23487 else
23488 gcc_cv_as_cfi_sections_directive=no
23489 if test x$gcc_cv_as != x; then
23490 $as_echo ' .text
23491 .cfi_sections .debug_frame, .eh_frame
23492 .cfi_startproc
23493 .cfi_endproc' > conftest.s
23494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23496 (eval $ac_try) 2>&5
23497 ac_status=$?
23498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23499 test $ac_status = 0; }; }
23500 then
23501 case $target_os in
23502 win32 | pe | cygwin* | mingw32*)
23503 # Need to check that we generated the correct relocation for the
23504 # .debug_frame section. This was fixed for binutils 2.21.
23505 gcc_cv_as_cfi_sections_directive=no
23506 if test "x$gcc_cv_objdump" != x; then
23507 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23508 grep secrel > /dev/null; then
23509 gcc_cv_as_cfi_sections_directive=yes
23510 fi
23511 fi
23512 ;;
23513 *)
23514 gcc_cv_as_cfi_sections_directive=yes
23515 ;;
23516 esac
23517 else
23518 echo "configure: failed program was" >&5
23519 cat conftest.s >&5
23520 fi
23521 rm -f conftest.o conftest.s
23522 fi
23523 fi
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23525 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23526
23527
23528
23529
23530 cat >>confdefs.h <<_ACEOF
23531 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23532 _ACEOF
23533
23534
23535 # GAS versions up to and including 2.11.0 may mis-optimize
23536 # .eh_frame data.
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23538 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23539 if ${gcc_cv_as_eh_frame+:} false; then :
23540 $as_echo_n "(cached) " >&6
23541 else
23542 gcc_cv_as_eh_frame=no
23543 if test $in_tree_gas = yes; then
23544 if test $in_tree_gas_is_elf = yes \
23545 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23546 then gcc_cv_as_eh_frame=yes
23547 fi
23548 elif test x$gcc_cv_as != x; then
23549 $as_echo ' .text
23550 .LFB1:
23551 .4byte 0
23552 .L1:
23553 .4byte 0
23554 .LFE1:
23555 .section .eh_frame,"aw",@progbits
23556 __FRAME_BEGIN__:
23557 .4byte .LECIE1-.LSCIE1
23558 .LSCIE1:
23559 .4byte 0x0
23560 .byte 0x1
23561 .ascii "z\0"
23562 .byte 0x1
23563 .byte 0x78
23564 .byte 0x1a
23565 .byte 0x0
23566 .byte 0x4
23567 .4byte 1
23568 .p2align 1
23569 .LECIE1:
23570 .LSFDE1:
23571 .4byte .LEFDE1-.LASFDE1
23572 .LASFDE1:
23573 .4byte .LASFDE1-__FRAME_BEGIN__
23574 .4byte .LFB1
23575 .4byte .LFE1-.LFB1
23576 .byte 0x4
23577 .4byte .LFE1-.LFB1
23578 .byte 0x4
23579 .4byte .L1-.LFB1
23580 .LEFDE1:' > conftest.s
23581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23583 (eval $ac_try) 2>&5
23584 ac_status=$?
23585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23586 test $ac_status = 0; }; }
23587 then
23588 cat > conftest.lit <<EOF
23589 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23590 0010 01000000 12000000 18000000 00000000 ................
23591 0020 08000000 04080000 0044 .........D
23592 EOF
23593 cat > conftest.big <<EOF
23594 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23595 0010 00000001 00000012 00000018 00000000 ................
23596 0020 00000008 04000000 0844 .........D
23597 EOF
23598 # If the assembler didn't choke, and we can objdump,
23599 # and we got the correct data, then succeed.
23600 # The text in the here-document typically retains its unix-style line
23601 # endings, while the output of objdump will use host line endings.
23602 # Therefore, use diff -b for the comparisons.
23603 if test x$gcc_cv_objdump != x \
23604 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23605 | tail -3 > conftest.got \
23606 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23607 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23608 then
23609 gcc_cv_as_eh_frame=yes
23610 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23612 (eval $ac_try) 2>&5
23613 ac_status=$?
23614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23615 test $ac_status = 0; }; }; then
23616 gcc_cv_as_eh_frame=buggy
23617 else
23618 # Uh oh, what do we do now?
23619 gcc_cv_as_eh_frame=no
23620 fi
23621 else
23622 echo "configure: failed program was" >&5
23623 cat conftest.s >&5
23624 fi
23625 rm -f conftest.o conftest.s
23626 fi
23627 fi
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23629 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23630
23631
23632
23633 if test $gcc_cv_as_eh_frame = buggy; then
23634
23635 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23636
23637 fi
23638
23639 # Test if the assembler supports the section flag 'e' or #exclude for
23640 # specifying an excluded section.
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23642 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23643 if ${gcc_cv_as_section_exclude_e+:} false; then :
23644 $as_echo_n "(cached) " >&6
23645 else
23646 gcc_cv_as_section_exclude_e=no
23647 if test $in_tree_gas = yes; then
23648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23649 then gcc_cv_as_section_exclude_e=yes
23650 fi
23651 elif test x$gcc_cv_as != x; then
23652 $as_echo '.section foo1,"e"
23653 .byte 0,0,0,0' > conftest.s
23654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23656 (eval $ac_try) 2>&5
23657 ac_status=$?
23658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23659 test $ac_status = 0; }; }
23660 then
23661 gcc_cv_as_section_exclude_e=yes
23662 else
23663 echo "configure: failed program was" >&5
23664 cat conftest.s >&5
23665 fi
23666 rm -f conftest.o conftest.s
23667 fi
23668 fi
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23670 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23671
23672
23673 if test $gcc_cv_as_section_exclude_e = no; then
23674 case "${target}" in
23675 # Solaris as uses #exclude instead.
23676 *-*-solaris2*)
23677 case "${target}" in
23678 sparc*-*-solaris2*)
23679 conftest_s='.section "foo1", #exclude'
23680 ;;
23681 i?86-*-solaris2* | x86_64-*-solaris2*)
23682 conftest_s='.section foo1, #exclude'
23683 ;;
23684 esac
23685 ;;
23686 esac
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23688 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23689 if ${gcc_cv_as_section_exclude_hash+:} false; then :
23690 $as_echo_n "(cached) " >&6
23691 else
23692 gcc_cv_as_section_exclude_hash=no
23693 if test x$gcc_cv_as != x; then
23694 $as_echo "$conftest_s
23695 .byte 0,0,0,0" > conftest.s
23696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23698 (eval $ac_try) 2>&5
23699 ac_status=$?
23700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23701 test $ac_status = 0; }; }
23702 then
23703 gcc_cv_as_section_exclude_hash=yes
23704 else
23705 echo "configure: failed program was" >&5
23706 cat conftest.s >&5
23707 fi
23708 rm -f conftest.o conftest.s
23709 fi
23710 fi
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23712 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23713
23714
23715 fi
23716
23717 cat >>confdefs.h <<_ACEOF
23718 #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`
23719 _ACEOF
23720
23721
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23723 $as_echo_n "checking assembler for section merging support... " >&6; }
23724 if ${gcc_cv_as_shf_merge+:} false; then :
23725 $as_echo_n "(cached) " >&6
23726 else
23727 gcc_cv_as_shf_merge=no
23728 if test $in_tree_gas = yes; then
23729 if test $in_tree_gas_is_elf = yes \
23730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23731 then gcc_cv_as_shf_merge=yes
23732 fi
23733 elif test x$gcc_cv_as != x; then
23734 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23737 (eval $ac_try) 2>&5
23738 ac_status=$?
23739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23740 test $ac_status = 0; }; }
23741 then
23742 gcc_cv_as_shf_merge=yes
23743 else
23744 echo "configure: failed program was" >&5
23745 cat conftest.s >&5
23746 fi
23747 rm -f conftest.o conftest.s
23748 fi
23749 fi
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23751 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23752
23753
23754 if test $gcc_cv_as_shf_merge = no; then
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23756 $as_echo_n "checking assembler for section merging support... " >&6; }
23757 if ${gcc_cv_as_shf_merge+:} false; then :
23758 $as_echo_n "(cached) " >&6
23759 else
23760 gcc_cv_as_shf_merge=no
23761 if test $in_tree_gas = yes; then
23762 if test $in_tree_gas_is_elf = yes \
23763 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23764 then gcc_cv_as_shf_merge=yes
23765 fi
23766 elif test x$gcc_cv_as != x; then
23767 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23770 (eval $ac_try) 2>&5
23771 ac_status=$?
23772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23773 test $ac_status = 0; }; }
23774 then
23775 gcc_cv_as_shf_merge=yes
23776 else
23777 echo "configure: failed program was" >&5
23778 cat conftest.s >&5
23779 fi
23780 rm -f conftest.o conftest.s
23781 fi
23782 fi
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23784 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23785
23786
23787 fi
23788 case "$target" in
23789 i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23790 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23791 if test x"$gnu_ld" = xno; then
23792 gcc_cv_as_shf_merge=no
23793 fi
23794 ;;
23795 esac
23796
23797 cat >>confdefs.h <<_ACEOF
23798 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23799 _ACEOF
23800
23801
23802 gcc_cv_ld_aligned_shf_merge=yes
23803 case "$target" in
23804 # While Solaris 10/SPARC ld isn't affected, disable to avoid problems
23805 # relinking on Solaris 11 < 11.4.
23806 sparc*-*-solaris2.10*)
23807 if test x"$gnu_ld" = xno; then
23808 gcc_cv_ld_aligned_shf_merge=no
23809 fi
23810 ;;
23811 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23812 # alignment > 1.
23813 sparc*-*-solaris2.11*)
23814 if test x"$gnu_ld" = xno \
23815 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23816 gcc_cv_ld_aligned_shf_merge=no
23817 fi
23818 ;;
23819 esac
23820
23821 cat >>confdefs.h <<_ACEOF
23822 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23823 _ACEOF
23824
23825
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23827 $as_echo_n "checking assembler for stabs directive... " >&6; }
23828 if ${gcc_cv_as_stabs_directive+:} false; then :
23829 $as_echo_n "(cached) " >&6
23830 else
23831 gcc_cv_as_stabs_directive=no
23832 if test x$gcc_cv_as != x; then
23833 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23836 (eval $ac_try) 2>&5
23837 ac_status=$?
23838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23839 test $ac_status = 0; }; }
23840 then
23841 gcc_cv_as_stabs_directive=yes
23842 else
23843 echo "configure: failed program was" >&5
23844 cat conftest.s >&5
23845 fi
23846 rm -f conftest.o conftest.s
23847 fi
23848 fi
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23850 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23851 if test $gcc_cv_as_stabs_directive = yes; then
23852
23853 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23854
23855 fi
23856
23857
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23859 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23860 if ${gcc_cv_as_comdat_group+:} false; then :
23861 $as_echo_n "(cached) " >&6
23862 else
23863 gcc_cv_as_comdat_group=no
23864 if test $in_tree_gas = yes; then
23865 if test $in_tree_gas_is_elf = yes \
23866 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23867 then gcc_cv_as_comdat_group=yes
23868 fi
23869 elif test x$gcc_cv_as != x; then
23870 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23873 (eval $ac_try) 2>&5
23874 ac_status=$?
23875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23876 test $ac_status = 0; }; }
23877 then
23878 gcc_cv_as_comdat_group=yes
23879 else
23880 echo "configure: failed program was" >&5
23881 cat conftest.s >&5
23882 fi
23883 rm -f conftest.o conftest.s
23884 fi
23885 fi
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23887 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23888
23889
23890 if test $gcc_cv_as_comdat_group = yes; then
23891 gcc_cv_as_comdat_group_percent=no
23892 gcc_cv_as_comdat_group_group=no
23893 else
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23895 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23896 if ${gcc_cv_as_comdat_group_percent+:} false; then :
23897 $as_echo_n "(cached) " >&6
23898 else
23899 gcc_cv_as_comdat_group_percent=no
23900 if test $in_tree_gas = yes; then
23901 if test $in_tree_gas_is_elf = yes \
23902 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23903 then gcc_cv_as_comdat_group_percent=yes
23904 fi
23905 elif test x$gcc_cv_as != x; then
23906 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23912 test $ac_status = 0; }; }
23913 then
23914 gcc_cv_as_comdat_group_percent=yes
23915 else
23916 echo "configure: failed program was" >&5
23917 cat conftest.s >&5
23918 fi
23919 rm -f conftest.o conftest.s
23920 fi
23921 fi
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23923 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23924
23925
23926 if test $gcc_cv_as_comdat_group_percent = yes; then
23927 gcc_cv_as_comdat_group_group=no
23928 else
23929 case "${target}" in
23930 # Sun as uses a completely different syntax.
23931 *-*-solaris2*)
23932 case "${target}" in
23933 sparc*-*-solaris2*)
23934 conftest_s='
23935 .group foo,".text%foo",#comdat
23936 .section ".text%foo", #alloc,#execinstr,#progbits
23937 .globl foo
23938 foo:
23939 '
23940 ;;
23941 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23942 conftest_s='
23943 .group foo,.text%foo,#comdat
23944 .section .text%foo, "ax", @progbits
23945 .globl foo
23946 foo:
23947 '
23948 ;;
23949 esac
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23951 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23952 if ${gcc_cv_as_comdat_group_group+:} false; then :
23953 $as_echo_n "(cached) " >&6
23954 else
23955 gcc_cv_as_comdat_group_group=no
23956 if test x$gcc_cv_as != x; then
23957 $as_echo "$conftest_s" > conftest.s
23958 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23960 (eval $ac_try) 2>&5
23961 ac_status=$?
23962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23963 test $ac_status = 0; }; }
23964 then
23965 gcc_cv_as_comdat_group_group=yes
23966 else
23967 echo "configure: failed program was" >&5
23968 cat conftest.s >&5
23969 fi
23970 rm -f conftest.o conftest.s
23971 fi
23972 fi
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23974 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23975
23976
23977 ;;
23978 esac
23979 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23980 gcc_cv_as_comdat_group_group=no
23981 fi
23982 fi
23983 fi
23984 if test x"$ld_is_gold" = xyes; then
23985 comdat_group=yes
23986 elif test $in_tree_ld = yes ; then
23987 comdat_group=no
23988 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 \
23989 && test $in_tree_ld_is_elf = yes; then
23990 comdat_group=yes
23991 fi
23992 elif echo "$ld_ver" | grep GNU > /dev/null; then
23993 comdat_group=yes
23994 if test 0"$ld_date" -lt 20050308; then
23995 if test -n "$ld_date"; then
23996 # If there was date string, but was earlier than 2005-03-08, fail
23997 comdat_group=no
23998 elif test "$ld_vers_major" -lt 2; then
23999 comdat_group=no
24000 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24001 comdat_group=no
24002 fi
24003 fi
24004 else
24005 case "${target}" in
24006 *-*-solaris2.1[1-9]*)
24007 comdat_group=no
24008 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24009 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24010 # version 1.688.
24011 #
24012 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24013 # least ld version 1.2267.
24014 if test "$ld_vers_major" -gt 1; then
24015 comdat_group=yes
24016 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24017 comdat_group=yes
24018 elif test "$ld_vers_minor" -ge 2267; then
24019 comdat_group=yes
24020 fi
24021 ;;
24022 *)
24023 # Assume linkers other than GNU ld don't support COMDAT group.
24024 comdat_group=no
24025 ;;
24026 esac
24027 fi
24028 # Allow overriding the automatic COMDAT group tests above.
24029 # Check whether --enable-comdat was given.
24030 if test "${enable_comdat+set}" = set; then :
24031 enableval=$enable_comdat; comdat_group="$enable_comdat"
24032 fi
24033
24034 if test $comdat_group = no; then
24035 gcc_cv_as_comdat_group=no
24036 gcc_cv_as_comdat_group_percent=no
24037 gcc_cv_as_comdat_group_group=no
24038 fi
24039
24040 cat >>confdefs.h <<_ACEOF
24041 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24042 || test $gcc_cv_as_comdat_group_percent = yes \
24043 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24044 _ACEOF
24045
24046
24047 # Restrict this test to Solaris/x86: other targets define this statically.
24048 case "${target}" in
24049 i?86-*-solaris2* | x86_64-*-solaris2*)
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24051 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24052 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24053 hidden_linkonce=yes
24054 else
24055 case "${target}" in
24056 # Full support for hidden thunks in linkonce sections only appeared in
24057 # Solaris 11/OpenSolaris.
24058 *-*-solaris2.1[1-9]*)
24059 hidden_linkonce=yes
24060 ;;
24061 *)
24062 hidden_linkonce=no
24063 ;;
24064 esac
24065 fi
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24067 $as_echo "$hidden_linkonce" >&6; }
24068
24069 cat >>confdefs.h <<_ACEOF
24070 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24071 _ACEOF
24072
24073 ;;
24074 esac
24075
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24077 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24078 if ${gcc_cv_as_is_stmt+:} false; then :
24079 $as_echo_n "(cached) " >&6
24080 else
24081 gcc_cv_as_is_stmt=no
24082 if test $in_tree_gas = yes; then
24083 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24084 then gcc_cv_as_is_stmt=yes
24085 fi
24086 elif test x$gcc_cv_as != x; then
24087 $as_echo ' .text
24088 .file 1 "conf.c"
24089 .loc 1 1 0 is_stmt 1' > conftest.s
24090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24092 (eval $ac_try) 2>&5
24093 ac_status=$?
24094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24095 test $ac_status = 0; }; }
24096 then
24097 gcc_cv_as_is_stmt=yes
24098 else
24099 echo "configure: failed program was" >&5
24100 cat conftest.s >&5
24101 fi
24102 rm -f conftest.o conftest.s
24103 fi
24104 fi
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24106 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24107 if test $gcc_cv_as_is_stmt = yes; then
24108
24109 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24110
24111 fi
24112
24113
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24115 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24116 if ${gcc_cv_as_discriminator+:} false; then :
24117 $as_echo_n "(cached) " >&6
24118 else
24119 gcc_cv_as_discriminator=no
24120 if test $in_tree_gas = yes; then
24121 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24122 then gcc_cv_as_discriminator=yes
24123 fi
24124 elif test x$gcc_cv_as != x; then
24125 $as_echo ' .text
24126 .file 1 "conf.c"
24127 .loc 1 1 0 discriminator 1' > conftest.s
24128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133 test $ac_status = 0; }; }
24134 then
24135 gcc_cv_as_discriminator=yes
24136 else
24137 echo "configure: failed program was" >&5
24138 cat conftest.s >&5
24139 fi
24140 rm -f conftest.o conftest.s
24141 fi
24142 fi
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24144 $as_echo "$gcc_cv_as_discriminator" >&6; }
24145 if test $gcc_cv_as_discriminator = yes; then
24146
24147 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24148
24149 fi
24150
24151
24152 # Thread-local storage - the check is heavily parameterized.
24153 conftest_s=
24154 tls_first_major=
24155 tls_first_minor=
24156 tls_as_opt=
24157 case "$target" in
24158 alpha*-*-*)
24159 conftest_s='
24160 .section ".tdata","awT",@progbits
24161 foo: .long 25
24162 .text
24163 ldq $27,__tls_get_addr($29) !literal!1
24164 lda $16,foo($29) !tlsgd!1
24165 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24166 ldq $27,__tls_get_addr($29) !literal!2
24167 lda $16,foo($29) !tlsldm!2
24168 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24169 ldq $1,foo($29) !gotdtprel
24170 ldah $2,foo($29) !dtprelhi
24171 lda $3,foo($2) !dtprello
24172 lda $4,foo($29) !dtprel
24173 ldq $1,foo($29) !gottprel
24174 ldah $2,foo($29) !tprelhi
24175 lda $3,foo($2) !tprello
24176 lda $4,foo($29) !tprel'
24177 tls_first_major=2
24178 tls_first_minor=13
24179 tls_as_opt=--fatal-warnings
24180 ;;
24181 arc*-*-*)
24182 conftest_s='
24183 add_s r0,r0, @foo@tpoff'
24184 tls_first_major=2
24185 tls_first_minor=23
24186 ;;
24187 cris-*-*|crisv32-*-*)
24188 conftest_s='
24189 .section ".tdata","awT",@progbits
24190 x: .long 25
24191 .text
24192 move.d x:IE,$r10
24193 nop'
24194 tls_first_major=2
24195 tls_first_minor=20
24196 tls_as_opt=--fatal-warnings
24197 ;;
24198 frv*-*-*)
24199 conftest_s='
24200 .section ".tdata","awT",@progbits
24201 x: .long 25
24202 .text
24203 call #gettlsoff(x)'
24204 tls_first_major=2
24205 tls_first_minor=14
24206 ;;
24207 hppa*-*-linux*)
24208 conftest_s='
24209 t1: .reg %r20
24210 t2: .reg %r21
24211 gp: .reg %r19
24212 .section ".tdata","awT",@progbits
24213 foo: .long 25
24214 .text
24215 .align 4
24216 addil LT%foo-$tls_gdidx$,gp
24217 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24218 b __tls_get_addr
24219 nop
24220 addil LT%foo-$tls_ldidx$,gp
24221 b __tls_get_addr
24222 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24223 addil LR%foo-$tls_dtpoff$,%ret0
24224 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24225 mfctl %cr27,%t1
24226 addil LT%foo-$tls_ieoff$,gp
24227 ldw RT%foo-$tls_ieoff$(%r1),%t2
24228 add %t1,%t2,%t3
24229 mfctl %cr27,%t1
24230 addil LR%foo-$tls_leoff$,%t1
24231 ldo RR%foo-$tls_leoff$(%r1),%t2'
24232 tls_first_major=2
24233 tls_first_minor=15
24234 tls_as_opt=--fatal-warnings
24235 ;;
24236 arm*-*-*)
24237 conftest_s='
24238 .section ".tdata","awT",%progbits
24239 foo: .long 25
24240 .text
24241 .word foo(gottpoff)
24242 .word foo(tpoff)
24243 .word foo(tlsgd)
24244 .word foo(tlsldm)
24245 .word foo(tlsldo)'
24246 tls_first_major=2
24247 tls_first_minor=17
24248 ;;
24249 i[34567]86-*-* | x86_64-*-*)
24250 case "$target" in
24251 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24252 on_solaris=yes
24253 ;;
24254 *)
24255 on_solaris=no
24256 ;;
24257 esac
24258 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24259 conftest_s='
24260 .section .tdata,"awt",@progbits'
24261 tls_first_major=0
24262 tls_first_minor=0
24263 tls_section_flag=t
24264
24265 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24266
24267 else
24268 conftest_s='
24269 .section ".tdata","awT",@progbits'
24270 tls_first_major=2
24271 tls_first_minor=14
24272 tls_section_flag=T
24273 tls_as_opt="--fatal-warnings"
24274 fi
24275 case "$target" in
24276 i[34567]86-*-*)
24277 conftest_s="$conftest_s
24278 foo: .long 25
24279 .text
24280 movl %gs:0, %eax
24281 leal foo@tlsgd(,%ebx,1), %eax
24282 leal foo@tlsldm(%ebx), %eax
24283 leal foo@dtpoff(%eax), %edx
24284 movl foo@gottpoff(%ebx), %eax
24285 subl foo@gottpoff(%ebx), %eax
24286 addl foo@gotntpoff(%ebx), %eax
24287 movl foo@indntpoff, %eax
24288 movl \$foo@tpoff, %eax
24289 subl \$foo@tpoff, %eax
24290 leal foo@ntpoff(%ecx), %eax"
24291 ;;
24292 x86_64-*-*)
24293 if test x$on_solaris = xyes; then
24294 case $gas_flag in
24295 yes) tls_as_opt="$tls_as_opt --64" ;;
24296 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24297 esac
24298 fi
24299 conftest_s="$conftest_s
24300 foo: .long 25
24301 .text
24302 movq %fs:0, %rax
24303 leaq foo@tlsgd(%rip), %rdi
24304 leaq foo@tlsld(%rip), %rdi
24305 leaq foo@dtpoff(%rax), %rdx
24306 movq foo@gottpoff(%rip), %rax
24307 movq \$foo@tpoff, %rax"
24308 ;;
24309 esac
24310 ;;
24311 ia64-*-*)
24312 conftest_s='
24313 .section ".tdata","awT",@progbits
24314 foo: data8 25
24315 .text
24316 addl r16 = @ltoff(@dtpmod(foo#)), gp
24317 addl r17 = @ltoff(@dtprel(foo#)), gp
24318 addl r18 = @ltoff(@tprel(foo#)), gp
24319 addl r19 = @dtprel(foo#), gp
24320 adds r21 = @dtprel(foo#), r13
24321 movl r23 = @dtprel(foo#)
24322 addl r20 = @tprel(foo#), gp
24323 adds r22 = @tprel(foo#), r13
24324 movl r24 = @tprel(foo#)'
24325 tls_first_major=2
24326 tls_first_minor=13
24327 tls_as_opt=--fatal-warnings
24328 ;;
24329 microblaze*-*-*)
24330 conftest_s='
24331 .section .tdata,"awT",@progbits
24332 x:
24333 .word 2
24334 .text
24335 addik r5,r20,x@TLSGD
24336 addik r5,r20,x@TLSLDM'
24337 tls_first_major=2
24338 tls_first_minor=20
24339 tls_as_opt='--fatal-warnings'
24340 ;;
24341 mips*-*-*)
24342 conftest_s='
24343 .section .tdata,"awT",@progbits
24344 x:
24345 .word 2
24346 .text
24347 addiu $4, $28, %tlsgd(x)
24348 addiu $4, $28, %tlsldm(x)
24349 lui $4, %dtprel_hi(x)
24350 addiu $4, $4, %dtprel_lo(x)
24351 lw $4, %gottprel(x)($28)
24352 lui $4, %tprel_hi(x)
24353 addiu $4, $4, %tprel_lo(x)'
24354 tls_first_major=2
24355 tls_first_minor=16
24356 tls_as_opt='-32 --fatal-warnings'
24357 ;;
24358 m68k-*-*)
24359 conftest_s='
24360 .section .tdata,"awT",@progbits
24361 x:
24362 .word 2
24363 .text
24364 foo:
24365 move.l x@TLSGD(%a5),%a0
24366 move.l x@TLSLDM(%a5),%a0
24367 move.l x@TLSLDO(%a5),%a0
24368 move.l x@TLSIE(%a5),%a0
24369 move.l x@TLSLE(%a5),%a0'
24370 tls_first_major=2
24371 tls_first_minor=19
24372 tls_as_opt='--fatal-warnings'
24373 ;;
24374 nios2-*-*)
24375 conftest_s='
24376 .section ".tdata","awT",@progbits'
24377 tls_first_major=2
24378 tls_first_minor=23
24379 tls_as_opt="--fatal-warnings"
24380 ;;
24381 aarch64*-*-*)
24382 conftest_s='
24383 .section ".tdata","awT",%progbits
24384 foo: .long 25
24385 .text
24386 adrp x0, :tlsgd:x
24387 add x0, x0, #:tlsgd_lo12:x
24388 bl __tls_get_addr
24389 nop'
24390 tls_first_major=2
24391 tls_first_minor=20
24392 tls_as_opt='--fatal-warnings'
24393 ;;
24394 powerpc-ibm-aix*)
24395 conftest_s='
24396 .extern __get_tpointer
24397 .toc
24398 LC..1:
24399 .tc a[TC],a[TL]@le
24400 .csect .text[PR]
24401 .tlstest:
24402 lwz 9,LC..1(2)
24403 bla __get_tpointer
24404 lwzx 3,9,3
24405 .globl a
24406 .csect a[TL],4
24407 a:
24408 .space 4'
24409 tls_first_major=0
24410 tls_first_minor=0
24411 ;;
24412 powerpc64*-*-*)
24413 conftest_s='
24414 .section ".tdata","awT",@progbits
24415 .align 3
24416 ld0: .space 8
24417 ld1: .space 8
24418 x1: .space 8
24419 x2: .space 8
24420 x3: .space 8
24421 .text
24422 addi 3,2,ld0@got@tlsgd
24423 bl .__tls_get_addr
24424 nop
24425 addi 3,2,ld1@toc
24426 bl .__tls_get_addr
24427 nop
24428 addi 3,2,x1@got@tlsld
24429 bl .__tls_get_addr
24430 nop
24431 addi 9,3,x1@dtprel
24432 bl .__tls_get_addr
24433 nop
24434 addis 9,3,x2@dtprel@ha
24435 addi 9,9,x2@dtprel@l
24436 bl .__tls_get_addr
24437 nop
24438 ld 9,x3@got@dtprel(2)
24439 add 9,9,3
24440 bl .__tls_get_addr
24441 nop'
24442 tls_first_major=2
24443 tls_first_minor=14
24444 tls_as_opt="-a64 --fatal-warnings"
24445 ;;
24446 powerpc*-*-*)
24447 conftest_s='
24448 .section ".tdata","awT",@progbits
24449 .align 2
24450 ld0: .space 4
24451 ld1: .space 4
24452 x1: .space 4
24453 x2: .space 4
24454 x3: .space 4
24455 .text
24456 addi 3,31,ld0@got@tlsgd
24457 bl __tls_get_addr
24458 addi 3,31,x1@got@tlsld
24459 bl __tls_get_addr
24460 addi 9,3,x1@dtprel
24461 addis 9,3,x2@dtprel@ha
24462 addi 9,9,x2@dtprel@l
24463 lwz 9,x3@got@tprel(31)
24464 add 9,9,x@tls
24465 addi 9,2,x1@tprel
24466 addis 9,2,x2@tprel@ha
24467 addi 9,9,x2@tprel@l'
24468 tls_first_major=2
24469 tls_first_minor=14
24470 tls_as_opt="-a32 --fatal-warnings"
24471 ;;
24472 riscv*-*-*)
24473 conftest_s='
24474 .section .tdata,"awT",@progbits
24475 x: .word 2
24476 .text
24477 la.tls.gd a0,x
24478 call __tls_get_addr'
24479 tls_first_major=2
24480 tls_first_minor=21
24481 tls_as_opt='--fatal-warnings'
24482 ;;
24483 s390-*-*)
24484 conftest_s='
24485 .section ".tdata","awT",@progbits
24486 foo: .long 25
24487 .text
24488 .long foo@TLSGD
24489 .long foo@TLSLDM
24490 .long foo@DTPOFF
24491 .long foo@NTPOFF
24492 .long foo@GOTNTPOFF
24493 .long foo@INDNTPOFF
24494 l %r1,foo@GOTNTPOFF(%r12)
24495 l %r1,0(%r1):tls_load:foo
24496 bas %r14,0(%r1,%r13):tls_gdcall:foo
24497 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24498 tls_first_major=2
24499 tls_first_minor=14
24500 tls_as_opt="-m31 --fatal-warnings"
24501 ;;
24502 s390x-*-*)
24503 conftest_s='
24504 .section ".tdata","awT",@progbits
24505 foo: .long 25
24506 .text
24507 .quad foo@TLSGD
24508 .quad foo@TLSLDM
24509 .quad foo@DTPOFF
24510 .quad foo@NTPOFF
24511 .quad foo@GOTNTPOFF
24512 lg %r1,foo@GOTNTPOFF(%r12)
24513 larl %r1,foo@INDNTPOFF
24514 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24515 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24516 tls_first_major=2
24517 tls_first_minor=14
24518 tls_as_opt="-m64 -Aesame --fatal-warnings"
24519 ;;
24520 sh-*-* | sh[123456789lbe]*-*-*)
24521 conftest_s='
24522 .section ".tdata","awT",@progbits
24523 foo: .long 25
24524 .text
24525 .long foo@TLSGD
24526 .long foo@TLSLDM
24527 .long foo@DTPOFF
24528 .long foo@GOTTPOFF
24529 .long foo@TPOFF'
24530 tls_first_major=2
24531 tls_first_minor=13
24532 tls_as_opt=--fatal-warnings
24533 ;;
24534 sparc*-*-*)
24535 case "$target" in
24536 sparc*-sun-solaris2.*)
24537 on_solaris=yes
24538 ;;
24539 *)
24540 on_solaris=no
24541 ;;
24542 esac
24543 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24544 conftest_s='
24545 .section ".tdata",#alloc,#write,#tls'
24546 tls_first_major=0
24547 tls_first_minor=0
24548 else
24549 conftest_s='
24550 .section ".tdata","awT",@progbits'
24551 tls_first_major=2
24552 tls_first_minor=14
24553 tls_as_opt="-32 --fatal-warnings"
24554 fi
24555 conftest_s="$conftest_s
24556 foo: .long 25
24557 .text
24558 sethi %tgd_hi22(foo), %o0
24559 add %o0, %tgd_lo10(foo), %o1
24560 add %l7, %o1, %o0, %tgd_add(foo)
24561 call __tls_get_addr, %tgd_call(foo)
24562 sethi %tldm_hi22(foo), %l1
24563 add %l1, %tldm_lo10(foo), %l2
24564 add %l7, %l2, %o0, %tldm_add(foo)
24565 call __tls_get_addr, %tldm_call(foo)
24566 sethi %tldo_hix22(foo), %l3
24567 xor %l3, %tldo_lox10(foo), %l4
24568 add %o0, %l4, %l5, %tldo_add(foo)
24569 sethi %tie_hi22(foo), %o3
24570 add %o3, %tie_lo10(foo), %o3
24571 ld [%l7 + %o3], %o2, %tie_ld(foo)
24572 add %g7, %o2, %o4, %tie_add(foo)
24573 sethi %tle_hix22(foo), %l1
24574 xor %l1, %tle_lox10(foo), %o5
24575 ld [%g7 + %o5], %o1"
24576 ;;
24577 tilepro*-*-*)
24578 conftest_s='
24579 .section ".tdata","awT",@progbits
24580 foo: .long 25
24581 .text
24582 addli r0, zero, tls_gd(foo)
24583 auli r0, zero, tls_gd_ha16(foo)
24584 addli r0, r0, tls_gd_lo16(foo)
24585 jal __tls_get_addr
24586 addli r0, zero, tls_ie(foo)
24587 auli r0, r0, tls_ie_ha16(foo)
24588 addli r0, r0, tls_ie_lo16(foo)'
24589 tls_first_major=2
24590 tls_first_minor=22
24591 tls_as_opt="--fatal-warnings"
24592 ;;
24593 tilegx*-*-*)
24594 conftest_s='
24595 .section ".tdata","awT",@progbits
24596 foo: .long 25
24597 .text
24598 shl16insli r0, zero, hw0_last_tls_gd(foo)
24599 shl16insli r0, zero, hw1_last_tls_gd(foo)
24600 shl16insli r0, r0, hw0_tls_gd(foo)
24601 jal __tls_get_addr
24602 shl16insli r0, zero, hw1_last_tls_ie(foo)
24603 shl16insli r0, r0, hw0_tls_ie(foo)'
24604 tls_first_major=2
24605 tls_first_minor=22
24606 tls_as_opt="--fatal-warnings"
24607 ;;
24608 xtensa*-*-*)
24609 conftest_s='
24610 .section ".tdata","awT",@progbits
24611 foo: .long 25
24612 .text
24613 movi a8, foo@TLSFUNC
24614 movi a10, foo@TLSARG
24615 callx8.tls a8, foo@TLSCALL'
24616 tls_first_major=2
24617 tls_first_minor=19
24618 ;;
24619 esac
24620 set_have_as_tls=no
24621 if test "x$enable_tls" = xno ; then
24622 : # TLS explicitly disabled.
24623 elif test "x$enable_tls" = xyes ; then
24624 set_have_as_tls=yes # TLS explicitly enabled.
24625 elif test -z "$tls_first_major"; then
24626 : # If we don't have a check, assume no support.
24627 else
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24629 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24630 if ${gcc_cv_as_tls+:} false; then :
24631 $as_echo_n "(cached) " >&6
24632 else
24633 gcc_cv_as_tls=no
24634 if test $in_tree_gas = yes; then
24635 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24636 then gcc_cv_as_tls=yes
24637 fi
24638 elif test x$gcc_cv_as != x; then
24639 $as_echo "$conftest_s" > conftest.s
24640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24642 (eval $ac_try) 2>&5
24643 ac_status=$?
24644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24645 test $ac_status = 0; }; }
24646 then
24647 gcc_cv_as_tls=yes
24648 else
24649 echo "configure: failed program was" >&5
24650 cat conftest.s >&5
24651 fi
24652 rm -f conftest.o conftest.s
24653 fi
24654 fi
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24656 $as_echo "$gcc_cv_as_tls" >&6; }
24657 if test $gcc_cv_as_tls = yes; then
24658 set_have_as_tls=yes
24659 fi
24660
24661 fi
24662 if test $set_have_as_tls = yes ; then
24663
24664 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24665
24666 fi
24667
24668 # Target-specific assembler checks.
24669
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24671 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24672 gcc_cv_ld_static_dynamic=no
24673 gcc_cv_ld_static_option='-Bstatic'
24674 gcc_cv_ld_dynamic_option='-Bdynamic'
24675 if test $in_tree_ld = yes ; then
24676 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
24677 gcc_cv_ld_static_dynamic=yes
24678 fi
24679 elif test x$gcc_cv_ld != x; then
24680 # Check if linker supports -Bstatic/-Bdynamic option
24681 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24682 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24683 gcc_cv_ld_static_dynamic=yes
24684 else
24685 case "$target" in
24686 # AIX ld uses -b flags
24687 *-*-aix4.[23]* | *-*-aix[5-9]*)
24688 gcc_cv_ld_static_dynamic=yes
24689 gcc_cv_ld_static_option="-bstatic"
24690 gcc_cv_ld_dynamic_option="-bdynamic"
24691 ;;
24692 # HP-UX ld uses -a flags to select between shared and archive.
24693 *-*-hpux*)
24694 if test x"$gnu_ld" = xno; then
24695 gcc_cv_ld_static_dynamic=yes
24696 gcc_cv_ld_static_option="-aarchive_shared"
24697 gcc_cv_ld_dynamic_option="-adefault"
24698 fi
24699 ;;
24700 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24701 *-*-solaris2*)
24702 gcc_cv_ld_static_dynamic=yes
24703 ;;
24704 esac
24705 fi
24706 fi
24707 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24708
24709 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24710
24711
24712 cat >>confdefs.h <<_ACEOF
24713 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24714 _ACEOF
24715
24716
24717 cat >>confdefs.h <<_ACEOF
24718 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24719 _ACEOF
24720
24721 fi
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24723 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24724
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24726 $as_echo_n "checking linker --version-script option... " >&6; }
24727 gcc_cv_ld_version_script=no
24728 ld_version_script_option=''
24729 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24730 gcc_cv_ld_version_script=yes
24731 ld_version_script_option='--version-script'
24732 elif test x$gcc_cv_ld != x; then
24733 case "$target" in
24734 # Solaris 2 ld always supports -M. It also supports a subset of
24735 # --version-script since Solaris 11.4, but requires
24736 # -z gnu-version-script-compat to activate.
24737 *-*-solaris2*)
24738 gcc_cv_ld_version_script=yes
24739 ld_version_script_option='-M'
24740 ;;
24741 esac
24742 fi
24743 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24745 $as_echo "$gcc_cv_ld_version_script" >&6; }
24746
24747
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24749 $as_echo_n "checking linker soname option... " >&6; }
24750 gcc_cv_ld_soname=no
24751 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24752 gcc_cv_ld_soname=yes
24753 ld_soname_option='-soname'
24754 elif test x$gcc_cv_ld != x; then
24755 case "$target" in
24756 *-*-darwin*)
24757 gcc_cv_ld_soname=yes
24758 ld_soname_option='-install_name'
24759 ;;
24760 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24761 # ld compatiblity since some Solaris 10 update.
24762 *-*-solaris2*)
24763 gcc_cv_ld_soname=yes
24764 ld_soname_option='-h'
24765 ;;
24766 esac
24767 fi
24768 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24770 $as_echo "$gcc_cv_ld_soname" >&6; }
24771
24772
24773 if test x"$demangler_in_ld" = xyes; then
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24775 $as_echo_n "checking linker --demangle support... " >&6; }
24776 gcc_cv_ld_demangle=no
24777 if test $in_tree_ld = yes; then
24778 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 \
24779 gcc_cv_ld_demangle=yes
24780 fi
24781 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24782 # Check if the GNU linker supports --demangle option
24783 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24784 gcc_cv_ld_demangle=yes
24785 fi
24786 fi
24787 if test x"$gcc_cv_ld_demangle" = xyes; then
24788
24789 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24790
24791 fi
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24793 $as_echo "$gcc_cv_ld_demangle" >&6; }
24794 fi
24795
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24797 $as_echo_n "checking linker plugin support... " >&6; }
24798 gcc_cv_lto_plugin=0
24799 if test -f liblto_plugin.la; then
24800 save_ld_ver="$ld_ver"
24801 save_ld_vers_major="$ld_vers_major"
24802 save_ld_vers_minor="$ld_vers_minor"
24803 save_ld_is_gold="$ld_is_gold"
24804
24805 ld_is_gold=no
24806
24807 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24808 ld_ver="GNU ld"
24809 # FIXME: ld_is_gold?
24810 ld_vers_major="$gcc_cv_gld_major_version"
24811 ld_vers_minor="$gcc_cv_gld_minor_version"
24812 else
24813 # Determine plugin linker version.
24814 # FIXME: Partial duplicate from above, generalize.
24815 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24816 if echo "$ld_ver" | grep GNU > /dev/null; then
24817 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24818 ld_is_gold=yes
24819 ld_vers=`echo $ld_ver | sed -n \
24820 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24821 else
24822 ld_vers=`echo $ld_ver | sed -n \
24823 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24824 fi
24825 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24826 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24827 fi
24828 fi
24829
24830 # Determine plugin support.
24831 if echo "$ld_ver" | grep GNU > /dev/null; then
24832 # Require GNU ld or gold 2.21+ for plugin support by default.
24833 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24834 gcc_cv_lto_plugin=2
24835 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24836 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24837 gcc_cv_lto_plugin=1
24838 fi
24839 fi
24840
24841 ld_ver="$save_ld_ver"
24842 ld_vers_major="$save_ld_vers_major"
24843 ld_vers_minor="$save_ld_vers_minor"
24844 ld_is_gold="$save_ld_is_gold"
24845 fi
24846
24847 cat >>confdefs.h <<_ACEOF
24848 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24849 _ACEOF
24850
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24852 $as_echo "$gcc_cv_lto_plugin" >&6; }
24853
24854 # Target OS-specific assembler checks.
24855
24856 case "$target_os" in
24857 darwin*)
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24859 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24860 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
24861 $as_echo_n "(cached) " >&6
24862 else
24863 gcc_cv_as_mmacosx_version_min=no
24864 if test x$gcc_cv_as != x; then
24865 $as_echo '.text' > conftest.s
24866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24869 ac_status=$?
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; }
24872 then
24873 gcc_cv_as_mmacosx_version_min=yes
24874 else
24875 echo "configure: failed program was" >&5
24876 cat conftest.s >&5
24877 fi
24878 rm -f conftest.o conftest.s
24879 fi
24880 fi
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24882 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24883 if test $gcc_cv_as_mmacosx_version_min = yes; then
24884
24885 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24886
24887 fi
24888
24889 ;;
24890 esac
24891
24892 # Target CPU-specific assembler checks.
24893
24894 case "$target" in
24895 aarch64*-*-*)
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24897 $as_echo_n "checking assembler for -mabi option... " >&6; }
24898 if ${gcc_cv_as_aarch64_mabi+:} false; then :
24899 $as_echo_n "(cached) " >&6
24900 else
24901 gcc_cv_as_aarch64_mabi=no
24902 if test x$gcc_cv_as != x; then
24903 $as_echo '.text' > conftest.s
24904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24906 (eval $ac_try) 2>&5
24907 ac_status=$?
24908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24909 test $ac_status = 0; }; }
24910 then
24911 gcc_cv_as_aarch64_mabi=yes
24912 else
24913 echo "configure: failed program was" >&5
24914 cat conftest.s >&5
24915 fi
24916 rm -f conftest.o conftest.s
24917 fi
24918 fi
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24920 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24921
24922
24923 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24924
24925 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24926
24927 else
24928 if test x$with_abi = xilp32; then
24929 as_fn_error $? "Assembler does not support -mabi=ilp32.\
24930 Upgrade the Assembler." "$LINENO" 5
24931 fi
24932 if test x"$with_multilib_list" = xdefault; then
24933 TM_MULTILIB_CONFIG=lp64
24934 else
24935 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24936 for aarch64_multilib in ${aarch64_multilibs}; do
24937 case ${aarch64_multilib} in
24938 ilp32)
24939 as_fn_error $? "Assembler does not support -mabi=ilp32.\
24940 Upgrade the Assembler." "$LINENO" 5
24941 ;;
24942 *)
24943 ;;
24944 esac
24945 done
24946 fi
24947 fi
24948 # Check if we have binutils support for relocations types needed by -fpic
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24950 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24951 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
24952 $as_echo_n "(cached) " >&6
24953 else
24954 gcc_cv_as_aarch64_picreloc=no
24955 if test x$gcc_cv_as != x; then
24956 $as_echo '
24957 .text
24958 ldr x0, [x2, #:gotpage_lo15:globalsym]
24959 ' > conftest.s
24960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24962 (eval $ac_try) 2>&5
24963 ac_status=$?
24964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24965 test $ac_status = 0; }; }
24966 then
24967 gcc_cv_as_aarch64_picreloc=yes
24968 else
24969 echo "configure: failed program was" >&5
24970 cat conftest.s >&5
24971 fi
24972 rm -f conftest.o conftest.s
24973 fi
24974 fi
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24976 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24977 if test $gcc_cv_as_aarch64_picreloc = yes; then
24978
24979 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24980
24981 fi
24982
24983 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24984 # Check whether --enable-fix-cortex-a53-835769 was given.
24985 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24986 enableval=$enable_fix_cortex_a53_835769;
24987 case $enableval in
24988 yes)
24989 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24990 ;;
24991 no)
24992 ;;
24993 *)
24994 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24995 Valid choices are 'yes' and 'no'." "$LINENO" 5
24996 ;;
24997
24998 esac
24999
25000 fi
25001
25002 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25003 # Check whether --enable-fix-cortex-a53-843419 was given.
25004 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25005 enableval=$enable_fix_cortex_a53_843419;
25006 case $enableval in
25007 yes)
25008 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25009 ;;
25010 no)
25011 ;;
25012 *)
25013 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25014 Valid choices are 'yes' and 'no'." "$LINENO" 5
25015 ;;
25016
25017 esac
25018
25019 fi
25020
25021 ;;
25022
25023 # All TARGET_ABI_OSF targets.
25024 alpha*-*-linux* | alpha*-*-*bsd*)
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25026 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25027 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25028 $as_echo_n "(cached) " >&6
25029 else
25030 gcc_cv_as_alpha_explicit_relocs=no
25031 if test $in_tree_gas = yes; then
25032 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25033 then gcc_cv_as_alpha_explicit_relocs=yes
25034 fi
25035 elif test x$gcc_cv_as != x; then
25036 $as_echo ' .set nomacro
25037 .text
25038 extbl $3, $2, $3 !lituse_bytoff!1
25039 ldq $2, a($29) !literal!1
25040 ldq $4, b($29) !literal!2
25041 ldq_u $3, 0($2) !lituse_base!1
25042 ldq $27, f($29) !literal!5
25043 jsr $26, ($27), f !lituse_jsr!5
25044 ldah $29, 0($26) !gpdisp!3
25045 lda $0, c($29) !gprel
25046 ldah $1, d($29) !gprelhigh
25047 lda $1, d($1) !gprellow
25048 lda $29, 0($29) !gpdisp!3' > conftest.s
25049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25051 (eval $ac_try) 2>&5
25052 ac_status=$?
25053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25054 test $ac_status = 0; }; }
25055 then
25056 gcc_cv_as_alpha_explicit_relocs=yes
25057 else
25058 echo "configure: failed program was" >&5
25059 cat conftest.s >&5
25060 fi
25061 rm -f conftest.o conftest.s
25062 fi
25063 fi
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25065 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25066 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25067
25068 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25069
25070 fi
25071
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25073 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25074 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25075 $as_echo_n "(cached) " >&6
25076 else
25077 gcc_cv_as_alpha_jsrdirect_relocs=no
25078 if test $in_tree_gas = yes; then
25079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25080 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25081 fi
25082 elif test x$gcc_cv_as != x; then
25083 $as_echo ' .set nomacro
25084 .text
25085 ldq $27, a($29) !literal!1
25086 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25089 (eval $ac_try) 2>&5
25090 ac_status=$?
25091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25092 test $ac_status = 0; }; }
25093 then
25094 gcc_cv_as_alpha_jsrdirect_relocs=yes
25095 else
25096 echo "configure: failed program was" >&5
25097 cat conftest.s >&5
25098 fi
25099 rm -f conftest.o conftest.s
25100 fi
25101 fi
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25103 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25104 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25105
25106 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25107
25108 fi
25109
25110 ;;
25111
25112 avr-*-*)
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25114 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25115 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25116 $as_echo_n "(cached) " >&6
25117 else
25118 gcc_cv_as_avr_mlink_relax=no
25119 if test x$gcc_cv_as != x; then
25120 $as_echo '.text' > conftest.s
25121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25123 (eval $ac_try) 2>&5
25124 ac_status=$?
25125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25126 test $ac_status = 0; }; }
25127 then
25128 gcc_cv_as_avr_mlink_relax=yes
25129 else
25130 echo "configure: failed program was" >&5
25131 cat conftest.s >&5
25132 fi
25133 rm -f conftest.o conftest.s
25134 fi
25135 fi
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25137 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25138 if test $gcc_cv_as_avr_mlink_relax = yes; then
25139
25140 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25141
25142 fi
25143
25144
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25146 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25147 if ${gcc_cv_as_avr_mrmw+:} false; then :
25148 $as_echo_n "(cached) " >&6
25149 else
25150 gcc_cv_as_avr_mrmw=no
25151 if test x$gcc_cv_as != x; then
25152 $as_echo '.text' > conftest.s
25153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25155 (eval $ac_try) 2>&5
25156 ac_status=$?
25157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25158 test $ac_status = 0; }; }
25159 then
25160 gcc_cv_as_avr_mrmw=yes
25161 else
25162 echo "configure: failed program was" >&5
25163 cat conftest.s >&5
25164 fi
25165 rm -f conftest.o conftest.s
25166 fi
25167 fi
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25169 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25170 if test $gcc_cv_as_avr_mrmw = yes; then
25171
25172 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25173
25174 fi
25175
25176
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25178 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25179 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25180 $as_echo_n "(cached) " >&6
25181 else
25182 gcc_cv_as_avr_mgccisr=no
25183 if test x$gcc_cv_as != x; then
25184 $as_echo '.text
25185 __gcc_isr 1
25186 __gcc_isr 2
25187 __gcc_isr 0,r24
25188 ' > conftest.s
25189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25191 (eval $ac_try) 2>&5
25192 ac_status=$?
25193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25194 test $ac_status = 0; }; }
25195 then
25196 gcc_cv_as_avr_mgccisr=yes
25197 else
25198 echo "configure: failed program was" >&5
25199 cat conftest.s >&5
25200 fi
25201 rm -f conftest.o conftest.s
25202 fi
25203 fi
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25205 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25206 if test $gcc_cv_as_avr_mgccisr = yes; then
25207
25208 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25209
25210 fi
25211
25212
25213 # Check how default linker description file implements .rodata for
25214 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25215 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25217 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25218 cat > conftest.s <<EOF
25219 .section .rodata,"a",@progbits
25220 .global xxvaryy
25221 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25222 xxvaryy:
25223 .word 1
25224 EOF
25225 rm -f conftest.nm
25226 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25228 (eval $ac_try) 2>&5
25229 ac_status=$?
25230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25231 test $ac_status = 0; }; }
25232 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25234 (eval $ac_try) 2>&5
25235 ac_status=$?
25236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25237 test $ac_status = 0; }; }
25238 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25240 (eval $ac_try) 2>&5
25241 ac_status=$?
25242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25243 test $ac_status = 0; }; }
25244 if test -s conftest.nm
25245 then
25246 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25248 $as_echo "yes" >&6; }
25249
25250 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25251
25252 else
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25254 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25255 echo "$as_me: nm output was" >&5
25256 cat conftest.nm >&5
25257 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25258 { $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
25259 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25260 fi
25261 else
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25263 $as_echo "test failed" >&6; }
25264 echo "$as_me: failed program was" >&5
25265 cat conftest.s >&5
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25267 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25268 fi
25269 rm -f conftest.s conftest.o conftest.elf conftest.nm
25270 ;;
25271
25272 cris-*-*)
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25274 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25275 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25276 $as_echo_n "(cached) " >&6
25277 else
25278 gcc_cv_as_cris_no_mul_bug=no
25279 if test $in_tree_gas = yes; then
25280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25281 then gcc_cv_as_cris_no_mul_bug=yes
25282 fi
25283 elif test x$gcc_cv_as != x; then
25284 $as_echo '.text' > conftest.s
25285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25287 (eval $ac_try) 2>&5
25288 ac_status=$?
25289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25290 test $ac_status = 0; }; }
25291 then
25292 gcc_cv_as_cris_no_mul_bug=yes
25293 else
25294 echo "configure: failed program was" >&5
25295 cat conftest.s >&5
25296 fi
25297 rm -f conftest.o conftest.s
25298 fi
25299 fi
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25301 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25302 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25303
25304 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25305
25306 fi
25307
25308 ;;
25309
25310 sparc*-*-*)
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25312 $as_echo_n "checking assembler for -relax option... " >&6; }
25313 if ${gcc_cv_as_sparc_relax+:} false; then :
25314 $as_echo_n "(cached) " >&6
25315 else
25316 gcc_cv_as_sparc_relax=no
25317 if test x$gcc_cv_as != x; then
25318 $as_echo '.text' > conftest.s
25319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25321 (eval $ac_try) 2>&5
25322 ac_status=$?
25323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25324 test $ac_status = 0; }; }
25325 then
25326 gcc_cv_as_sparc_relax=yes
25327 else
25328 echo "configure: failed program was" >&5
25329 cat conftest.s >&5
25330 fi
25331 rm -f conftest.o conftest.s
25332 fi
25333 fi
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25335 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25336 if test $gcc_cv_as_sparc_relax = yes; then
25337
25338 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25339
25340 fi
25341
25342
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25344 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25345 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25346 $as_echo_n "(cached) " >&6
25347 else
25348 gcc_cv_as_sparc_gotdata_op=no
25349 if test x$gcc_cv_as != x; then
25350 $as_echo '.text
25351 .align 4
25352 foo:
25353 nop
25354 bar:
25355 sethi %gdop_hix22(foo), %g1
25356 xor %g1, %gdop_lox10(foo), %g1
25357 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25360 (eval $ac_try) 2>&5
25361 ac_status=$?
25362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25363 test $ac_status = 0; }; }
25364 then
25365 if test x$gcc_cv_ld != x \
25366 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25367 if test x$gcc_cv_objdump != x; then
25368 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25369 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25370 gcc_cv_as_sparc_gotdata_op=no
25371 else
25372 gcc_cv_as_sparc_gotdata_op=yes
25373 fi
25374 fi
25375 fi
25376 rm -f conftest
25377 else
25378 echo "configure: failed program was" >&5
25379 cat conftest.s >&5
25380 fi
25381 rm -f conftest.o conftest.s
25382 fi
25383 fi
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25385 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25386 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25387
25388 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25389
25390 fi
25391
25392
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25394 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25395 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25396 $as_echo_n "(cached) " >&6
25397 else
25398 gcc_cv_as_sparc_ua_pcrel=no
25399 if test x$gcc_cv_as != x; then
25400 $as_echo '.text
25401 foo:
25402 nop
25403 .data
25404 .align 4
25405 .byte 0
25406 .uaword %r_disp32(foo)' > conftest.s
25407 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25409 (eval $ac_try) 2>&5
25410 ac_status=$?
25411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25412 test $ac_status = 0; }; }
25413 then
25414 if test x$gcc_cv_ld != x \
25415 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25416 gcc_cv_as_sparc_ua_pcrel=yes
25417 fi
25418 rm -f conftest
25419 else
25420 echo "configure: failed program was" >&5
25421 cat conftest.s >&5
25422 fi
25423 rm -f conftest.o conftest.s
25424 fi
25425 fi
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25427 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25428 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25429
25430 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25431
25432
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25434 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25435 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25436 $as_echo_n "(cached) " >&6
25437 else
25438 gcc_cv_as_sparc_ua_pcrel_hidden=no
25439 if test x$gcc_cv_as != x; then
25440 $as_echo '.data
25441 .align 4
25442 .byte 0x31
25443 .uaword %r_disp32(foo)
25444 .byte 0x32, 0x33, 0x34
25445 .global foo
25446 .hidden foo
25447 foo:
25448 .skip 4' > conftest.s
25449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25451 (eval $ac_try) 2>&5
25452 ac_status=$?
25453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25454 test $ac_status = 0; }; }
25455 then
25456 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25457 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25458 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25459 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25460 if $gcc_cv_objdump -R conftest 2> /dev/null \
25461 | grep 'DISP32' > /dev/null 2>&1; then
25462 :
25463 else
25464 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25465 fi
25466 fi
25467 rm -f conftest
25468 else
25469 echo "configure: failed program was" >&5
25470 cat conftest.s >&5
25471 fi
25472 rm -f conftest.o conftest.s
25473 fi
25474 fi
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25476 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25477 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25478
25479 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25480
25481 fi
25482
25483
25484 fi
25485 # unaligned pcrel relocs
25486
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25488 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25489 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25490 $as_echo_n "(cached) " >&6
25491 else
25492 gcc_cv_as_sparc_offsetable_lo10=no
25493 if test x$gcc_cv_as != x; then
25494 $as_echo '.text
25495 or %g1, %lo(ab) + 12, %g1
25496 or %g1, %lo(ab + 12), %g1' > conftest.s
25497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25499 (eval $ac_try) 2>&5
25500 ac_status=$?
25501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25502 test $ac_status = 0; }; }
25503 then
25504 if test x$gcc_cv_objdump != x \
25505 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25506 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25507 gcc_cv_as_sparc_offsetable_lo10=yes
25508 fi
25509 else
25510 echo "configure: failed program was" >&5
25511 cat conftest.s >&5
25512 fi
25513 rm -f conftest.o conftest.s
25514 fi
25515 fi
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25517 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25518 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25519
25520 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25521
25522 fi
25523
25524
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25526 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25527 if ${gcc_cv_as_sparc_fmaf+:} false; then :
25528 $as_echo_n "(cached) " >&6
25529 else
25530 gcc_cv_as_sparc_fmaf=no
25531 if test x$gcc_cv_as != x; then
25532 $as_echo '.text
25533 .register %g2, #scratch
25534 .register %g3, #scratch
25535 .align 4
25536 fmaddd %f0, %f2, %f4, %f6
25537 addxccc %g1, %g2, %g3
25538 fsrl32 %f2, %f4, %f8
25539 fnaddd %f10, %f12, %f14' > conftest.s
25540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25542 (eval $ac_try) 2>&5
25543 ac_status=$?
25544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25545 test $ac_status = 0; }; }
25546 then
25547 gcc_cv_as_sparc_fmaf=yes
25548 else
25549 echo "configure: failed program was" >&5
25550 cat conftest.s >&5
25551 fi
25552 rm -f conftest.o conftest.s
25553 fi
25554 fi
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25556 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25557 if test $gcc_cv_as_sparc_fmaf = yes; then
25558
25559 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25560
25561 fi
25562
25563
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25565 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25566 if ${gcc_cv_as_sparc_sparc4+:} false; then :
25567 $as_echo_n "(cached) " >&6
25568 else
25569 gcc_cv_as_sparc_sparc4=no
25570 if test x$gcc_cv_as != x; then
25571 $as_echo '.text
25572 .register %g2, #scratch
25573 .register %g3, #scratch
25574 .align 4
25575 cxbe %g2, %g3, 1f
25576 1: cwbneg %g2, %g3, 1f
25577 1: sha1
25578 md5
25579 aes_kexpand0 %f4, %f6, %f8
25580 des_round %f38, %f40, %f42, %f44
25581 camellia_f %f54, %f56, %f58, %f60
25582 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25585 (eval $ac_try) 2>&5
25586 ac_status=$?
25587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25588 test $ac_status = 0; }; }
25589 then
25590 gcc_cv_as_sparc_sparc4=yes
25591 else
25592 echo "configure: failed program was" >&5
25593 cat conftest.s >&5
25594 fi
25595 rm -f conftest.o conftest.s
25596 fi
25597 fi
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25599 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25600 if test $gcc_cv_as_sparc_sparc4 = yes; then
25601
25602 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25603
25604 fi
25605
25606
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25608 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25609 if ${gcc_cv_as_sparc_sparc5+:} false; then :
25610 $as_echo_n "(cached) " >&6
25611 else
25612 gcc_cv_as_sparc_sparc5=no
25613 if test x$gcc_cv_as != x; then
25614 $as_echo '.text
25615 .register %g2, #scratch
25616 .register %g3, #scratch
25617 .align 4
25618 subxc %g1, %g2, %g3
25619 fpadd8 %f0, %f2, %f4' > conftest.s
25620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25622 (eval $ac_try) 2>&5
25623 ac_status=$?
25624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25625 test $ac_status = 0; }; }
25626 then
25627 gcc_cv_as_sparc_sparc5=yes
25628 else
25629 echo "configure: failed program was" >&5
25630 cat conftest.s >&5
25631 fi
25632 rm -f conftest.o conftest.s
25633 fi
25634 fi
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25636 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25637 if test $gcc_cv_as_sparc_sparc5 = yes; then
25638
25639 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25640
25641 fi
25642
25643
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25645 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25646 if ${gcc_cv_as_sparc_sparc6+:} false; then :
25647 $as_echo_n "(cached) " >&6
25648 else
25649 gcc_cv_as_sparc_sparc6=no
25650 if test x$gcc_cv_as != x; then
25651 $as_echo '.text
25652 .register %g2, #scratch
25653 .register %g3, #scratch
25654 .align 4
25655 rd %entropy, %g1
25656 fpsll64x %f0, %f2, %f4' > conftest.s
25657 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25659 (eval $ac_try) 2>&5
25660 ac_status=$?
25661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25662 test $ac_status = 0; }; }
25663 then
25664 gcc_cv_as_sparc_sparc6=yes
25665 else
25666 echo "configure: failed program was" >&5
25667 cat conftest.s >&5
25668 fi
25669 rm -f conftest.o conftest.s
25670 fi
25671 fi
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25673 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25674 if test $gcc_cv_as_sparc_sparc6 = yes; then
25675
25676 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25677
25678 fi
25679
25680
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25682 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25683 if ${gcc_cv_as_sparc_leon+:} false; then :
25684 $as_echo_n "(cached) " >&6
25685 else
25686 gcc_cv_as_sparc_leon=no
25687 if test x$gcc_cv_as != x; then
25688 $as_echo '.text
25689 .register %g2, #scratch
25690 .register %g3, #scratch
25691 .align 4
25692 smac %g2, %g3, %g1
25693 umac %g2, %g3, %g1
25694 casa [%g2] 0xb, %g3, %g1' > conftest.s
25695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25700 test $ac_status = 0; }; }
25701 then
25702 gcc_cv_as_sparc_leon=yes
25703 else
25704 echo "configure: failed program was" >&5
25705 cat conftest.s >&5
25706 fi
25707 rm -f conftest.o conftest.s
25708 fi
25709 fi
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25711 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25712 if test $gcc_cv_as_sparc_leon = yes; then
25713
25714 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25715
25716 fi
25717
25718 ;;
25719
25720 i[34567]86-*-* | x86_64-*-*)
25721 case $target_os in
25722 cygwin*)
25723 # Full C++ conformance when using a shared libstdc++-v3 requires some
25724 # support from the Cygwin DLL, which in more recent versions exports
25725 # wrappers to aid in interposing and redirecting operators new, delete,
25726 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25727 # are configuring for a version of Cygwin that exports the wrappers.
25728 if test x$host = x$target && test x$host_cpu = xi686; then
25729 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25730 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
25731 gcc_ac_cygwin_dll_wrappers=yes
25732 else
25733 gcc_ac_cygwin_dll_wrappers=no
25734 fi
25735
25736 else
25737 # Can't check presence of libc functions during cross-compile, so
25738 # we just have to assume we're building for an up-to-date target.
25739 gcc_ac_cygwin_dll_wrappers=yes
25740 fi
25741
25742 cat >>confdefs.h <<_ACEOF
25743 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25744 _ACEOF
25745
25746 esac
25747 case $target_os in
25748 cygwin* | pe | mingw32*)
25749 # Recent binutils allows the three-operand form of ".comm" on PE. This
25750 # definition is used unconditionally to initialise the default state of
25751 # the target option variable that governs usage of the feature.
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25753 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25754 if ${gcc_cv_as_comm_has_align+:} false; then :
25755 $as_echo_n "(cached) " >&6
25756 else
25757 gcc_cv_as_comm_has_align=no
25758 if test $in_tree_gas = yes; then
25759 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25760 then gcc_cv_as_comm_has_align=yes
25761 fi
25762 elif test x$gcc_cv_as != x; then
25763 $as_echo '.comm foo,1,32' > conftest.s
25764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25766 (eval $ac_try) 2>&5
25767 ac_status=$?
25768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25769 test $ac_status = 0; }; }
25770 then
25771 gcc_cv_as_comm_has_align=yes
25772 else
25773 echo "configure: failed program was" >&5
25774 cat conftest.s >&5
25775 fi
25776 rm -f conftest.o conftest.s
25777 fi
25778 fi
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25780 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25781
25782
25783
25784 cat >>confdefs.h <<_ACEOF
25785 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25786 _ACEOF
25787
25788 # Used for DWARF 2 in PE
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25790 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25791 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
25792 $as_echo_n "(cached) " >&6
25793 else
25794 gcc_cv_as_ix86_pe_secrel32=no
25795 if test $in_tree_gas = yes; then
25796 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25797 then gcc_cv_as_ix86_pe_secrel32=yes
25798 fi
25799 elif test x$gcc_cv_as != x; then
25800 $as_echo '.text
25801 foo: nop
25802 .data
25803 .secrel32 foo' > conftest.s
25804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25806 (eval $ac_try) 2>&5
25807 ac_status=$?
25808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25809 test $ac_status = 0; }; }
25810 then
25811 if test x$gcc_cv_ld != x \
25812 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25813 gcc_cv_as_ix86_pe_secrel32=yes
25814 fi
25815 rm -f conftest
25816 else
25817 echo "configure: failed program was" >&5
25818 cat conftest.s >&5
25819 fi
25820 rm -f conftest.o conftest.s
25821 fi
25822 fi
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25824 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25825 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25826
25827 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25828
25829 fi
25830
25831 # Test if the assembler supports the extended form of the .section
25832 # directive that specifies section alignment. LTO support uses this,
25833 # but normally only after installation, so we warn but don't fail the
25834 # configure if LTO is enabled but the assembler does not support it.
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25836 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25837 if ${gcc_cv_as_section_has_align+:} false; then :
25838 $as_echo_n "(cached) " >&6
25839 else
25840 gcc_cv_as_section_has_align=no
25841 if test $in_tree_gas = yes; then
25842 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25843 then gcc_cv_as_section_has_align=yes
25844 fi
25845 elif test x$gcc_cv_as != x; then
25846 $as_echo '.section lto_test,"dr0"' > conftest.s
25847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25849 (eval $ac_try) 2>&5
25850 ac_status=$?
25851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25852 test $ac_status = 0; }; }
25853 then
25854 gcc_cv_as_section_has_align=yes
25855 else
25856 echo "configure: failed program was" >&5
25857 cat conftest.s >&5
25858 fi
25859 rm -f conftest.o conftest.s
25860 fi
25861 fi
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25863 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25864
25865
25866 if test x$gcc_cv_as_section_has_align != xyes; then
25867 case ",$enable_languages," in
25868 *,lto,*)
25869 { $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
25870 $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;}
25871 ;;
25872 esac
25873 fi
25874 ;;
25875 esac
25876
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25878 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25879 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
25880 $as_echo_n "(cached) " >&6
25881 else
25882 gcc_cv_as_ix86_xbrace_comment=no
25883 if test x$gcc_cv_as != x; then
25884 $as_echo '.text' > conftest.s
25885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25887 (eval $ac_try) 2>&5
25888 ac_status=$?
25889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25890 test $ac_status = 0; }; }
25891 then
25892 gcc_cv_as_ix86_xbrace_comment=yes
25893 else
25894 echo "configure: failed program was" >&5
25895 cat conftest.s >&5
25896 fi
25897 rm -f conftest.o conftest.s
25898 fi
25899 fi
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25901 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25902 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25903
25904 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25905
25906 fi
25907
25908
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25910 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25911 if ${gcc_cv_as_ix86_filds+:} false; then :
25912 $as_echo_n "(cached) " >&6
25913 else
25914 gcc_cv_as_ix86_filds=no
25915 if test x$gcc_cv_as != x; then
25916 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25919 (eval $ac_try) 2>&5
25920 ac_status=$?
25921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25922 test $ac_status = 0; }; }
25923 then
25924 gcc_cv_as_ix86_filds=yes
25925 else
25926 echo "configure: failed program was" >&5
25927 cat conftest.s >&5
25928 fi
25929 rm -f conftest.o conftest.s
25930 fi
25931 fi
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25933 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25934 if test $gcc_cv_as_ix86_filds = yes; then
25935
25936 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25937
25938 fi
25939
25940
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25942 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25943 if ${gcc_cv_as_ix86_fildq+:} false; then :
25944 $as_echo_n "(cached) " >&6
25945 else
25946 gcc_cv_as_ix86_fildq=no
25947 if test x$gcc_cv_as != x; then
25948 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25951 (eval $ac_try) 2>&5
25952 ac_status=$?
25953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25954 test $ac_status = 0; }; }
25955 then
25956 gcc_cv_as_ix86_fildq=yes
25957 else
25958 echo "configure: failed program was" >&5
25959 cat conftest.s >&5
25960 fi
25961 rm -f conftest.o conftest.s
25962 fi
25963 fi
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25965 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25966 if test $gcc_cv_as_ix86_fildq = yes; then
25967
25968 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25969
25970 fi
25971
25972
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25974 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25975 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
25976 $as_echo_n "(cached) " >&6
25977 else
25978 gcc_cv_as_ix86_cmov_sun_syntax=no
25979 if test x$gcc_cv_as != x; then
25980 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25983 (eval $ac_try) 2>&5
25984 ac_status=$?
25985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986 test $ac_status = 0; }; }
25987 then
25988 gcc_cv_as_ix86_cmov_sun_syntax=yes
25989 else
25990 echo "configure: failed program was" >&5
25991 cat conftest.s >&5
25992 fi
25993 rm -f conftest.o conftest.s
25994 fi
25995 fi
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25997 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25998 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25999
26000 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26001
26002 fi
26003
26004
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26006 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26007 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26008 $as_echo_n "(cached) " >&6
26009 else
26010 gcc_cv_as_ix86_ffreep=no
26011 if test x$gcc_cv_as != x; then
26012 $as_echo 'ffreep %st(1)' > conftest.s
26013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26018 test $ac_status = 0; }; }
26019 then
26020 gcc_cv_as_ix86_ffreep=yes
26021 else
26022 echo "configure: failed program was" >&5
26023 cat conftest.s >&5
26024 fi
26025 rm -f conftest.o conftest.s
26026 fi
26027 fi
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26029 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26030 if test $gcc_cv_as_ix86_ffreep = yes; then
26031
26032 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26033
26034 fi
26035
26036
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26038 $as_echo_n "checking assembler for .quad directive... " >&6; }
26039 if ${gcc_cv_as_ix86_quad+:} false; then :
26040 $as_echo_n "(cached) " >&6
26041 else
26042 gcc_cv_as_ix86_quad=no
26043 if test x$gcc_cv_as != x; then
26044 $as_echo '.quad 0' > conftest.s
26045 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26047 (eval $ac_try) 2>&5
26048 ac_status=$?
26049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26050 test $ac_status = 0; }; }
26051 then
26052 gcc_cv_as_ix86_quad=yes
26053 else
26054 echo "configure: failed program was" >&5
26055 cat conftest.s >&5
26056 fi
26057 rm -f conftest.o conftest.s
26058 fi
26059 fi
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26061 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26062 if test $gcc_cv_as_ix86_quad = yes; then
26063
26064 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26065
26066 fi
26067
26068
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26070 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26071 if ${gcc_cv_as_ix86_sahf+:} false; then :
26072 $as_echo_n "(cached) " >&6
26073 else
26074 gcc_cv_as_ix86_sahf=no
26075 if test x$gcc_cv_as != x; then
26076 $as_echo '.code64
26077 sahf' > conftest.s
26078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
26082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26083 test $ac_status = 0; }; }
26084 then
26085 gcc_cv_as_ix86_sahf=yes
26086 else
26087 echo "configure: failed program was" >&5
26088 cat conftest.s >&5
26089 fi
26090 rm -f conftest.o conftest.s
26091 fi
26092 fi
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26094 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26095 if test $gcc_cv_as_ix86_sahf = yes; then
26096
26097 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26098
26099 fi
26100
26101
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26103 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26104 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26105 $as_echo_n "(cached) " >&6
26106 else
26107 gcc_cv_as_ix86_interunit_movq=no
26108 if test x$gcc_cv_as != x; then
26109 $as_echo '.code64
26110 movq %mm0, %rax
26111 movq %rax, %xmm0' > conftest.s
26112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26117 test $ac_status = 0; }; }
26118 then
26119 gcc_cv_as_ix86_interunit_movq=yes
26120 else
26121 echo "configure: failed program was" >&5
26122 cat conftest.s >&5
26123 fi
26124 rm -f conftest.o conftest.s
26125 fi
26126 fi
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26128 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26129
26130
26131
26132 cat >>confdefs.h <<_ACEOF
26133 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26134 _ACEOF
26135
26136
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26138 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26139 if ${gcc_cv_as_ix86_hle+:} false; then :
26140 $as_echo_n "(cached) " >&6
26141 else
26142 gcc_cv_as_ix86_hle=no
26143 if test x$gcc_cv_as != x; then
26144 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26147 (eval $ac_try) 2>&5
26148 ac_status=$?
26149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26150 test $ac_status = 0; }; }
26151 then
26152 gcc_cv_as_ix86_hle=yes
26153 else
26154 echo "configure: failed program was" >&5
26155 cat conftest.s >&5
26156 fi
26157 rm -f conftest.o conftest.s
26158 fi
26159 fi
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26161 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26162 if test $gcc_cv_as_ix86_hle = yes; then
26163
26164 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26165
26166 fi
26167
26168
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26170 $as_echo_n "checking assembler for swap suffix... " >&6; }
26171 if ${gcc_cv_as_ix86_swap+:} false; then :
26172 $as_echo_n "(cached) " >&6
26173 else
26174 gcc_cv_as_ix86_swap=no
26175 if test x$gcc_cv_as != x; then
26176 $as_echo 'movl.s %esp, %ebp' > conftest.s
26177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26179 (eval $ac_try) 2>&5
26180 ac_status=$?
26181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26182 test $ac_status = 0; }; }
26183 then
26184 gcc_cv_as_ix86_swap=yes
26185 else
26186 echo "configure: failed program was" >&5
26187 cat conftest.s >&5
26188 fi
26189 rm -f conftest.o conftest.s
26190 fi
26191 fi
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26193 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26194 if test $gcc_cv_as_ix86_swap = yes; then
26195
26196 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26197
26198 fi
26199
26200
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26202 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26203 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26204 $as_echo_n "(cached) " >&6
26205 else
26206 gcc_cv_as_ix86_diff_sect_delta=no
26207 if test x$gcc_cv_as != x; then
26208 $as_echo '.section .rodata
26209 .L1:
26210 .long .L2-.L1
26211 .long .L3-.L1
26212 .text
26213 .L3: nop
26214 .L2: nop' > conftest.s
26215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26217 (eval $ac_try) 2>&5
26218 ac_status=$?
26219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26220 test $ac_status = 0; }; }
26221 then
26222 gcc_cv_as_ix86_diff_sect_delta=yes
26223 else
26224 echo "configure: failed program was" >&5
26225 cat conftest.s >&5
26226 fi
26227 rm -f conftest.o conftest.s
26228 fi
26229 fi
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26231 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26232 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26233
26234 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26235
26236 fi
26237
26238
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26240 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26241 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26242 $as_echo_n "(cached) " >&6
26243 else
26244 gcc_cv_as_ix86_rep_lock_prefix=no
26245 if test x$gcc_cv_as != x; then
26246 $as_echo 'rep movsl
26247 rep ret
26248 rep nop
26249 rep bsf %ecx, %eax
26250 rep bsr %ecx, %eax
26251 lock addl %edi, (%eax,%esi)
26252 lock orl $0, (%esp)' > conftest.s
26253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26255 (eval $ac_try) 2>&5
26256 ac_status=$?
26257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26258 test $ac_status = 0; }; }
26259 then
26260 gcc_cv_as_ix86_rep_lock_prefix=yes
26261 else
26262 echo "configure: failed program was" >&5
26263 cat conftest.s >&5
26264 fi
26265 rm -f conftest.o conftest.s
26266 fi
26267 fi
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26269 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26270 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26271
26272 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26273
26274 fi
26275
26276
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26278 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26279 if ${gcc_cv_as_ix86_ud2+:} false; then :
26280 $as_echo_n "(cached) " >&6
26281 else
26282 gcc_cv_as_ix86_ud2=no
26283 if test x$gcc_cv_as != x; then
26284 $as_echo 'ud2' > conftest.s
26285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26287 (eval $ac_try) 2>&5
26288 ac_status=$?
26289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26290 test $ac_status = 0; }; }
26291 then
26292 gcc_cv_as_ix86_ud2=yes
26293 else
26294 echo "configure: failed program was" >&5
26295 cat conftest.s >&5
26296 fi
26297 rm -f conftest.o conftest.s
26298 fi
26299 fi
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26301 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26302 if test $gcc_cv_as_ix86_ud2 = yes; then
26303
26304 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26305
26306 fi
26307
26308
26309 # Enforce 32-bit output with gas and gld.
26310 if test x$gas = xyes; then
26311 as_ix86_gas_32_opt="--32"
26312 fi
26313 if echo "$ld_ver" | grep GNU > /dev/null; then
26314 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26315 ld_ix86_gld_32_opt="-melf_i386_sol2"
26316 else
26317 ld_ix86_gld_32_opt="-melf_i386"
26318 fi
26319 fi
26320
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26322 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26323 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26324 $as_echo_n "(cached) " >&6
26325 else
26326 gcc_cv_as_ix86_tlsgdplt=no
26327 if test x$gcc_cv_as != x; then
26328 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26329 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26331 (eval $ac_try) 2>&5
26332 ac_status=$?
26333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26334 test $ac_status = 0; }; }
26335 then
26336 if test x$gcc_cv_ld != x \
26337 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26338 gcc_cv_as_ix86_tlsgdplt=yes
26339 fi
26340 rm -f conftest
26341 else
26342 echo "configure: failed program was" >&5
26343 cat conftest.s >&5
26344 fi
26345 rm -f conftest.o conftest.s
26346 fi
26347 fi
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26349 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26350 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26351
26352 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26353
26354 fi
26355
26356
26357 conftest_s='
26358 .section .tdata,"aw'$tls_section_flag'",@progbits
26359 tls_ld:
26360 .section .text,"ax",@progbits
26361 call tls_ld@tlsldmplt'
26362
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26364 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26365 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26366 $as_echo_n "(cached) " >&6
26367 else
26368 gcc_cv_as_ix86_tlsldmplt=no
26369 if test x$gcc_cv_as != x; then
26370 $as_echo "$conftest_s" > conftest.s
26371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26373 (eval $ac_try) 2>&5
26374 ac_status=$?
26375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26376 test $ac_status = 0; }; }
26377 then
26378 if test x$gcc_cv_ld != x \
26379 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26380 gcc_cv_as_ix86_tlsldmplt=yes
26381 fi
26382 rm -f conftest
26383 else
26384 echo "configure: failed program was" >&5
26385 cat conftest.s >&5
26386 fi
26387 rm -f conftest.o conftest.s
26388 fi
26389 fi
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26391 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26392
26393
26394
26395 cat >>confdefs.h <<_ACEOF
26396 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26397 _ACEOF
26398
26399
26400 conftest_s='
26401 .section .text,"ax",@progbits
26402 .globl _start
26403 .type _start, @function
26404 _start:
26405 leal value@tlsldm(%ebx), %eax
26406 call ___tls_get_addr@plt
26407
26408 .section .tdata,"aw'$tls_section_flag'",@progbits
26409 .type value, @object
26410 value:'
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26412 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26413 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26414 $as_echo_n "(cached) " >&6
26415 else
26416 gcc_cv_as_ix86_tlsldm=no
26417 if test x$gcc_cv_as != x; then
26418 $as_echo "$conftest_s" > conftest.s
26419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26421 (eval $ac_try) 2>&5
26422 ac_status=$?
26423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26424 test $ac_status = 0; }; }
26425 then
26426 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26427 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26428 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26429 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26430 gcc_cv_as_ix86_tlsldm=yes
26431 fi
26432 fi
26433 rm -f conftest
26434 else
26435 echo "configure: failed program was" >&5
26436 cat conftest.s >&5
26437 fi
26438 rm -f conftest.o conftest.s
26439 fi
26440 fi
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26442 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26443
26444
26445
26446 cat >>confdefs.h <<_ACEOF
26447 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26448 _ACEOF
26449
26450
26451 conftest_s='
26452 .data
26453 bar:
26454 .byte 1
26455 .text
26456 .global _start
26457 _start:
26458 cmpl $0, bar@GOT
26459 jmp *_start@GOT'
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26461 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26462 if ${gcc_cv_as_ix86_got32x+:} false; then :
26463 $as_echo_n "(cached) " >&6
26464 else
26465 gcc_cv_as_ix86_got32x=no
26466 if test x$gcc_cv_as != x; then
26467 $as_echo "$conftest_s" > conftest.s
26468 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26470 (eval $ac_try) 2>&5
26471 ac_status=$?
26472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26473 test $ac_status = 0; }; }
26474 then
26475 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26476 && test x$gcc_cv_readelf != x \
26477 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26478 | grep R_386_GOT32X > /dev/null 2>&1 \
26479 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26480 if $gcc_cv_objdump -dw conftest 2>&1 \
26481 | grep 0xffffff > /dev/null 2>&1; then
26482 gcc_cv_as_ix86_got32x=no
26483 else
26484 gcc_cv_as_ix86_got32x=yes
26485 fi
26486 fi
26487 rm -f conftest
26488 else
26489 echo "configure: failed program was" >&5
26490 cat conftest.s >&5
26491 fi
26492 rm -f conftest.o conftest.s
26493 fi
26494 fi
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26496 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26497
26498
26499
26500 cat >>confdefs.h <<_ACEOF
26501 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26502 _ACEOF
26503
26504
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26506 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26507 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
26508 $as_echo_n "(cached) " >&6
26509 else
26510 gcc_cv_as_ix86_gotoff_in_data=no
26511 if test $in_tree_gas = yes; then
26512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26513 then gcc_cv_as_ix86_gotoff_in_data=yes
26514 fi
26515 elif test x$gcc_cv_as != x; then
26516 $as_echo ' .text
26517 .L0:
26518 nop
26519 .data
26520 .long .L0@GOTOFF' > conftest.s
26521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26523 (eval $ac_try) 2>&5
26524 ac_status=$?
26525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26526 test $ac_status = 0; }; }
26527 then
26528 gcc_cv_as_ix86_gotoff_in_data=yes
26529 else
26530 echo "configure: failed program was" >&5
26531 cat conftest.s >&5
26532 fi
26533 rm -f conftest.o conftest.s
26534 fi
26535 fi
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26537 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26538
26539
26540
26541 cat >>confdefs.h <<_ACEOF
26542 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26543 _ACEOF
26544
26545
26546 conftest_s='
26547 .section .text,"ax",@progbits
26548 .globl _start
26549 .type _start, @function
26550 _start:
26551 leal ld@tlsldm(%ecx), %eax
26552 call *___tls_get_addr@GOT(%ecx)
26553 leal gd@tlsgd(%ecx), %eax
26554 call *___tls_get_addr@GOT(%ecx)
26555
26556 .section .tdata,"aw'$tls_section_flag'",@progbits
26557 .type ld, @object
26558 ld:
26559 .byte 0
26560 .globl gd
26561 .type gd, @object
26562 gd:
26563 .byte 0'
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26565 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26566 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
26567 $as_echo_n "(cached) " >&6
26568 else
26569 gcc_cv_as_ix86_tls_get_addr_via_got=no
26570 if test x$gcc_cv_as != x; then
26571 $as_echo "$conftest_s" > conftest.s
26572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26574 (eval $ac_try) 2>&5
26575 ac_status=$?
26576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26577 test $ac_status = 0; }; }
26578 then
26579 if test x$gcc_cv_ld != x \
26580 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26581 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26582 fi
26583 rm -f conftest
26584 else
26585 echo "configure: failed program was" >&5
26586 cat conftest.s >&5
26587 fi
26588 rm -f conftest.o conftest.s
26589 fi
26590 fi
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26592 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26593
26594
26595
26596 cat >>confdefs.h <<_ACEOF
26597 #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`
26598 _ACEOF
26599
26600 ;;
26601
26602 ia64*-*-*)
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26604 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26605 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
26606 $as_echo_n "(cached) " >&6
26607 else
26608 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26609 if test $in_tree_gas = yes; then
26610 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26611 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26612 fi
26613 elif test x$gcc_cv_as != x; then
26614 $as_echo ' .text
26615 addl r15 = @ltoffx(x#), gp
26616 ;;
26617 ld8.mov r16 = [r15], x#
26618 ' > conftest.s
26619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26621 (eval $ac_try) 2>&5
26622 ac_status=$?
26623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26624 test $ac_status = 0; }; }
26625 then
26626 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26627 else
26628 echo "configure: failed program was" >&5
26629 cat conftest.s >&5
26630 fi
26631 rm -f conftest.o conftest.s
26632 fi
26633 fi
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26635 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26636 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26637
26638 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26639
26640 fi
26641
26642
26643 ;;
26644
26645 powerpc*-*-*)
26646
26647 case $target in
26648 *-*-darwin*)
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26650 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26651 if ${gcc_cv_as_machine_directive+:} false; then :
26652 $as_echo_n "(cached) " >&6
26653 else
26654 gcc_cv_as_machine_directive=no
26655 if test x$gcc_cv_as != x; then
26656 $as_echo ' .machine ppc7400' > conftest.s
26657 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26659 (eval $ac_try) 2>&5
26660 ac_status=$?
26661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26662 test $ac_status = 0; }; }
26663 then
26664 gcc_cv_as_machine_directive=yes
26665 else
26666 echo "configure: failed program was" >&5
26667 cat conftest.s >&5
26668 fi
26669 rm -f conftest.o conftest.s
26670 fi
26671 fi
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26673 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26674
26675
26676 if test x$gcc_cv_as_machine_directive != xyes; then
26677 echo "*** This target requires an assembler supporting \".machine\"" >&2
26678 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26679 test x$build = x$target && exit 1
26680 fi
26681 ;;
26682 esac
26683
26684 case $target in
26685 *-*-aix*) conftest_s=' .machine "pwr5"
26686 .csect .text[PR]
26687 mfcr 3,128';;
26688 *-*-darwin*) conftest_s=' .text
26689 mfcr r3,128';;
26690 *) conftest_s=' .machine power4
26691 .text
26692 mfcr 3,128';;
26693 esac
26694
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26696 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26697 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
26698 $as_echo_n "(cached) " >&6
26699 else
26700 gcc_cv_as_powerpc_mfcrf=no
26701 if test $in_tree_gas = yes; then
26702 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26703 then gcc_cv_as_powerpc_mfcrf=yes
26704 fi
26705 elif test x$gcc_cv_as != x; then
26706 $as_echo "$conftest_s" > conftest.s
26707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26709 (eval $ac_try) 2>&5
26710 ac_status=$?
26711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26712 test $ac_status = 0; }; }
26713 then
26714 gcc_cv_as_powerpc_mfcrf=yes
26715 else
26716 echo "configure: failed program was" >&5
26717 cat conftest.s >&5
26718 fi
26719 rm -f conftest.o conftest.s
26720 fi
26721 fi
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26723 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26724 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26725
26726 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26727
26728 fi
26729
26730
26731 case $target in
26732 *-*-aix*) conftest_s=' .csect .text[PR]
26733 LCF..0:
26734 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26735 *-*-darwin*)
26736 conftest_s=' .text
26737 LCF0:
26738 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26739 *) conftest_s=' .text
26740 .LCF0:
26741 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26742 esac
26743
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26745 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26746 if ${gcc_cv_as_powerpc_rel16+:} false; then :
26747 $as_echo_n "(cached) " >&6
26748 else
26749 gcc_cv_as_powerpc_rel16=no
26750 if test $in_tree_gas = yes; then
26751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26752 then gcc_cv_as_powerpc_rel16=yes
26753 fi
26754 elif test x$gcc_cv_as != x; then
26755 $as_echo "$conftest_s" > conftest.s
26756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26758 (eval $ac_try) 2>&5
26759 ac_status=$?
26760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26761 test $ac_status = 0; }; }
26762 then
26763 gcc_cv_as_powerpc_rel16=yes
26764 else
26765 echo "configure: failed program was" >&5
26766 cat conftest.s >&5
26767 fi
26768 rm -f conftest.o conftest.s
26769 fi
26770 fi
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26772 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26773 if test $gcc_cv_as_powerpc_rel16 = yes; then
26774
26775 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26776
26777 fi
26778
26779
26780 case $target in
26781 *-*-aix*) conftest_s=' .machine "pwr7"
26782 .csect .text[PR]
26783 lxvd2x 1,2,3';;
26784 *) conftest_s=' .machine power7
26785 .text
26786 lxvd2x 1,2,3';;
26787 esac
26788
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26790 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26791 if ${gcc_cv_as_powerpc_vsx+:} false; then :
26792 $as_echo_n "(cached) " >&6
26793 else
26794 gcc_cv_as_powerpc_vsx=no
26795 if test $in_tree_gas = yes; then
26796 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26797 then gcc_cv_as_powerpc_vsx=yes
26798 fi
26799 elif test x$gcc_cv_as != x; then
26800 $as_echo "$conftest_s" > conftest.s
26801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26803 (eval $ac_try) 2>&5
26804 ac_status=$?
26805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26806 test $ac_status = 0; }; }
26807 then
26808 gcc_cv_as_powerpc_vsx=yes
26809 else
26810 echo "configure: failed program was" >&5
26811 cat conftest.s >&5
26812 fi
26813 rm -f conftest.o conftest.s
26814 fi
26815 fi
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26817 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26818 if test $gcc_cv_as_powerpc_vsx = yes; then
26819
26820 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26821
26822 fi
26823
26824
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26826 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26827 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
26828 $as_echo_n "(cached) " >&6
26829 else
26830 gcc_cv_as_powerpc_gnu_attribute=no
26831 if test $in_tree_gas = yes; then
26832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26833 then gcc_cv_as_powerpc_gnu_attribute=yes
26834 fi
26835 elif test x$gcc_cv_as != x; then
26836 $as_echo '.gnu_attribute 4,1' > conftest.s
26837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26839 (eval $ac_try) 2>&5
26840 ac_status=$?
26841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26842 test $ac_status = 0; }; }
26843 then
26844 gcc_cv_as_powerpc_gnu_attribute=yes
26845 else
26846 echo "configure: failed program was" >&5
26847 cat conftest.s >&5
26848 fi
26849 rm -f conftest.o conftest.s
26850 fi
26851 fi
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26853 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26854 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26855
26856 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26857
26858 fi
26859
26860
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26862 $as_echo_n "checking assembler for tls marker support... " >&6; }
26863 if ${gcc_cv_as_powerpc_tls_markers+:} false; then :
26864 $as_echo_n "(cached) " >&6
26865 else
26866 gcc_cv_as_powerpc_tls_markers=no
26867 if test $in_tree_gas = yes; then
26868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26869 then gcc_cv_as_powerpc_tls_markers=yes
26870 fi
26871 elif test x$gcc_cv_as != x; then
26872 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26873 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26875 (eval $ac_try) 2>&5
26876 ac_status=$?
26877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26878 test $ac_status = 0; }; }
26879 then
26880 gcc_cv_as_powerpc_tls_markers=yes
26881 else
26882 echo "configure: failed program was" >&5
26883 cat conftest.s >&5
26884 fi
26885 rm -f conftest.o conftest.s
26886 fi
26887 fi
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26889 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26890 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26891
26892 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26893
26894 fi
26895
26896
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26898 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26899 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
26900 $as_echo_n "(cached) " >&6
26901 else
26902 gcc_cv_as_powerpc_entry_markers=no
26903 if test $in_tree_gas = yes; then
26904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26905 then gcc_cv_as_powerpc_entry_markers=yes
26906 fi
26907 elif test x$gcc_cv_as != x; then
26908 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26911 (eval $ac_try) 2>&5
26912 ac_status=$?
26913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26914 test $ac_status = 0; }; }
26915 then
26916 gcc_cv_as_powerpc_entry_markers=yes
26917 else
26918 echo "configure: failed program was" >&5
26919 cat conftest.s >&5
26920 fi
26921 rm -f conftest.o conftest.s
26922 fi
26923 fi
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26925 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26926 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26927
26928 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26929
26930 fi
26931
26932
26933 case $target in
26934 *-*-aix*)
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26936 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26937 if ${gcc_cv_as_aix_ref+:} false; then :
26938 $as_echo_n "(cached) " >&6
26939 else
26940 gcc_cv_as_aix_ref=no
26941 if test $in_tree_gas = yes; then
26942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26943 then gcc_cv_as_aix_ref=yes
26944 fi
26945 elif test x$gcc_cv_as != x; then
26946 $as_echo ' .csect stuff[rw]
26947 stuff:
26948 .long 1
26949 .extern sym
26950 .ref sym
26951 ' > conftest.s
26952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26954 (eval $ac_try) 2>&5
26955 ac_status=$?
26956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26957 test $ac_status = 0; }; }
26958 then
26959 gcc_cv_as_aix_ref=yes
26960 else
26961 echo "configure: failed program was" >&5
26962 cat conftest.s >&5
26963 fi
26964 rm -f conftest.o conftest.s
26965 fi
26966 fi
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26968 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26969 if test $gcc_cv_as_aix_ref = yes; then
26970
26971 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26972
26973 fi
26974
26975
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26977 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26978 if ${gcc_cv_as_aix_dwloc+:} false; then :
26979 $as_echo_n "(cached) " >&6
26980 else
26981 gcc_cv_as_aix_dwloc=no
26982 if test $in_tree_gas = yes; then
26983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26984 then gcc_cv_as_aix_dwloc=yes
26985 fi
26986 elif test x$gcc_cv_as != x; then
26987 $as_echo ' .dwsect 0xA0000
26988 Lframe..0:
26989 .vbyte 4,Lframe..0
26990 ' > conftest.s
26991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26993 (eval $ac_try) 2>&5
26994 ac_status=$?
26995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26996 test $ac_status = 0; }; }
26997 then
26998 gcc_cv_as_aix_dwloc=yes
26999 else
27000 echo "configure: failed program was" >&5
27001 cat conftest.s >&5
27002 fi
27003 rm -f conftest.o conftest.s
27004 fi
27005 fi
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27007 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27008 if test $gcc_cv_as_aix_dwloc = yes; then
27009
27010 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27011
27012 fi
27013
27014 ;;
27015 esac
27016 ;;
27017
27018 mips*-*-*)
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27020 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27021 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27022 $as_echo_n "(cached) " >&6
27023 else
27024 gcc_cv_as_mips_explicit_relocs=no
27025 if test $in_tree_gas = yes; then
27026 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27027 then gcc_cv_as_mips_explicit_relocs=yes
27028 fi
27029 elif test x$gcc_cv_as != x; then
27030 $as_echo ' lw $4,%gp_rel(foo)($4)' > 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_mips_explicit_relocs=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_mips_explicit_relocs" >&5
27047 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27048 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27049 if test x$target_cpu_default = x
27050 then target_cpu_default=MASK_EXPLICIT_RELOCS
27051 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27052 fi
27053 fi
27054
27055
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27057 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27058 if ${gcc_cv_as_mips_no_shared+:} false; then :
27059 $as_echo_n "(cached) " >&6
27060 else
27061 gcc_cv_as_mips_no_shared=no
27062 if test $in_tree_gas = yes; then
27063 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27064 then gcc_cv_as_mips_no_shared=yes
27065 fi
27066 elif test x$gcc_cv_as != x; then
27067 $as_echo 'nop' > conftest.s
27068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27070 (eval $ac_try) 2>&5
27071 ac_status=$?
27072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27073 test $ac_status = 0; }; }
27074 then
27075 gcc_cv_as_mips_no_shared=yes
27076 else
27077 echo "configure: failed program was" >&5
27078 cat conftest.s >&5
27079 fi
27080 rm -f conftest.o conftest.s
27081 fi
27082 fi
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27084 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27085 if test $gcc_cv_as_mips_no_shared = yes; then
27086
27087 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27088
27089 fi
27090
27091
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27093 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27094 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27095 $as_echo_n "(cached) " >&6
27096 else
27097 gcc_cv_as_mips_gnu_attribute=no
27098 if test $in_tree_gas = yes; then
27099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27100 then gcc_cv_as_mips_gnu_attribute=yes
27101 fi
27102 elif test x$gcc_cv_as != x; then
27103 $as_echo '.gnu_attribute 4,1' > conftest.s
27104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27106 (eval $ac_try) 2>&5
27107 ac_status=$?
27108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27109 test $ac_status = 0; }; }
27110 then
27111 gcc_cv_as_mips_gnu_attribute=yes
27112 else
27113 echo "configure: failed program was" >&5
27114 cat conftest.s >&5
27115 fi
27116 rm -f conftest.o conftest.s
27117 fi
27118 fi
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27120 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27121 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27122
27123 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27124
27125 fi
27126
27127
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27129 $as_echo_n "checking assembler for .module support... " >&6; }
27130 if ${gcc_cv_as_mips_dot_module+:} false; then :
27131 $as_echo_n "(cached) " >&6
27132 else
27133 gcc_cv_as_mips_dot_module=no
27134 if test x$gcc_cv_as != x; then
27135 $as_echo '.module mips2
27136 .module fp=xx' > conftest.s
27137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27139 (eval $ac_try) 2>&5
27140 ac_status=$?
27141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27142 test $ac_status = 0; }; }
27143 then
27144 gcc_cv_as_mips_dot_module=yes
27145 else
27146 echo "configure: failed program was" >&5
27147 cat conftest.s >&5
27148 fi
27149 rm -f conftest.o conftest.s
27150 fi
27151 fi
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27153 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27154 if test $gcc_cv_as_mips_dot_module = yes; then
27155
27156 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27157
27158 fi
27159
27160 if test x$gcc_cv_as_mips_dot_module = xno \
27161 && test x$with_fp_32 != x; then
27162 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27163 fi
27164
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27166 $as_echo_n "checking assembler for .micromips support... " >&6; }
27167 if ${gcc_cv_as_micromips_support+:} false; then :
27168 $as_echo_n "(cached) " >&6
27169 else
27170 gcc_cv_as_micromips_support=no
27171 if test x$gcc_cv_as != x; then
27172 $as_echo '.set micromips' > conftest.s
27173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27175 (eval $ac_try) 2>&5
27176 ac_status=$?
27177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27178 test $ac_status = 0; }; }
27179 then
27180 gcc_cv_as_micromips_support=yes
27181 else
27182 echo "configure: failed program was" >&5
27183 cat conftest.s >&5
27184 fi
27185 rm -f conftest.o conftest.s
27186 fi
27187 fi
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27189 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27190 if test $gcc_cv_as_micromips_support = yes; then
27191
27192 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27193
27194 fi
27195
27196
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27198 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27199 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27200 $as_echo_n "(cached) " >&6
27201 else
27202 gcc_cv_as_mips_dtprelword=no
27203 if test $in_tree_gas = yes; then
27204 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27205 then gcc_cv_as_mips_dtprelword=yes
27206 fi
27207 elif test x$gcc_cv_as != x; then
27208 $as_echo '.section .tdata,"awT",@progbits
27209 x:
27210 .word 2
27211 .text
27212 .dtprelword x+0x8000' > conftest.s
27213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27215 (eval $ac_try) 2>&5
27216 ac_status=$?
27217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27218 test $ac_status = 0; }; }
27219 then
27220 gcc_cv_as_mips_dtprelword=yes
27221 else
27222 echo "configure: failed program was" >&5
27223 cat conftest.s >&5
27224 fi
27225 rm -f conftest.o conftest.s
27226 fi
27227 fi
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27229 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27230 if test $gcc_cv_as_mips_dtprelword = yes; then
27231
27232 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27233
27234 fi
27235
27236
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27238 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27239 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27240 $as_echo_n "(cached) " >&6
27241 else
27242 gcc_cv_as_mips_dspr1_mult=no
27243 if test x$gcc_cv_as != x; then
27244 $as_echo ' .set mips32r2
27245 .set nodspr2
27246 .set dsp
27247 madd $ac3,$4,$5
27248 maddu $ac3,$4,$5
27249 msub $ac3,$4,$5
27250 msubu $ac3,$4,$5
27251 mult $ac3,$4,$5
27252 multu $ac3,$4,$5' > conftest.s
27253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27255 (eval $ac_try) 2>&5
27256 ac_status=$?
27257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27258 test $ac_status = 0; }; }
27259 then
27260 gcc_cv_as_mips_dspr1_mult=yes
27261 else
27262 echo "configure: failed program was" >&5
27263 cat conftest.s >&5
27264 fi
27265 rm -f conftest.o conftest.s
27266 fi
27267 fi
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27269 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27270 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27271
27272 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27273
27274 fi
27275
27276
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27278 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27279 gcc_cv_as_ld_jalr_reloc=no
27280 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27281 if test $in_tree_ld = yes ; then
27282 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 \
27283 && test $in_tree_ld_is_elf = yes; then
27284 gcc_cv_as_ld_jalr_reloc=yes
27285 fi
27286 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27287 echo ' .ent x' > conftest.s
27288 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27289 echo ' lw $25,%call16(y)($28)' >> conftest.s
27290 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27291 echo '1: jalr $25' >> conftest.s
27292 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27293 echo '1: jalr $25' >> conftest.s
27294 echo ' .end x' >> conftest.s
27295 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27296 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27297 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27298 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27299 gcc_cv_as_ld_jalr_reloc=yes
27300 fi
27301 fi
27302 rm -f conftest.*
27303 fi
27304 fi
27305 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27306 if test x$target_cpu_default = x; then
27307 target_cpu_default=MASK_RELAX_PIC_CALLS
27308 else
27309 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27310 fi
27311 fi
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27313 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27314
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27316 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27317 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27318 $as_echo_n "(cached) " >&6
27319 else
27320 gcc_cv_ld_mips_personality_relaxation=no
27321 if test $in_tree_ld = yes ; then
27322 if test "$gcc_cv_gld_major_version" -eq 2 \
27323 -a "$gcc_cv_gld_minor_version" -ge 21 \
27324 -o "$gcc_cv_gld_major_version" -gt 2; then
27325 gcc_cv_ld_mips_personality_relaxation=yes
27326 fi
27327 elif test x$gcc_cv_as != x \
27328 -a x$gcc_cv_ld != x \
27329 -a x$gcc_cv_readelf != x ; then
27330 cat > conftest.s <<EOF
27331 .cfi_startproc
27332 .cfi_personality 0x80,indirect_ptr
27333 .ent test
27334 test:
27335 nop
27336 .end test
27337 .cfi_endproc
27338
27339 .section .data,"aw",@progbits
27340 indirect_ptr:
27341 .dc.a personality
27342 EOF
27343 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27344 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27345 if $gcc_cv_readelf -d conftest 2>&1 \
27346 | grep TEXTREL > /dev/null 2>&1; then
27347 :
27348 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27349 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27350 :
27351 else
27352 gcc_cv_ld_mips_personality_relaxation=yes
27353 fi
27354 fi
27355 fi
27356 rm -f conftest.s conftest.o conftest
27357 fi
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27359 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27360 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27361
27362 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27363
27364 fi
27365
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27367 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27368 if ${gcc_cv_as_mips_nan+:} false; then :
27369 $as_echo_n "(cached) " >&6
27370 else
27371 gcc_cv_as_mips_nan=no
27372 if test x$gcc_cv_as != x; then
27373 $as_echo '' > conftest.s
27374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27376 (eval $ac_try) 2>&5
27377 ac_status=$?
27378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27379 test $ac_status = 0; }; }
27380 then
27381 gcc_cv_as_mips_nan=yes
27382 else
27383 echo "configure: failed program was" >&5
27384 cat conftest.s >&5
27385 fi
27386 rm -f conftest.o conftest.s
27387 fi
27388 fi
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27390 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27391 if test $gcc_cv_as_mips_nan = yes; then
27392
27393 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27394
27395 fi
27396
27397 if test x$gcc_cv_as_mips_nan = xno \
27398 && test x$with_nan != x; then
27399 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27400 fi
27401 ;;
27402 s390*-*-*)
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27404 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27405 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
27406 $as_echo_n "(cached) " >&6
27407 else
27408 gcc_cv_as_s390_gnu_attribute=no
27409 if test $in_tree_gas = yes; then
27410 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27411 then gcc_cv_as_s390_gnu_attribute=yes
27412 fi
27413 elif test x$gcc_cv_as != x; then
27414 $as_echo '.gnu_attribute 8,1' > conftest.s
27415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27417 (eval $ac_try) 2>&5
27418 ac_status=$?
27419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27420 test $ac_status = 0; }; }
27421 then
27422 gcc_cv_as_s390_gnu_attribute=yes
27423 else
27424 echo "configure: failed program was" >&5
27425 cat conftest.s >&5
27426 fi
27427 rm -f conftest.o conftest.s
27428 fi
27429 fi
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27431 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27432 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27433
27434 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27435
27436 fi
27437
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27439 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27440 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
27441 $as_echo_n "(cached) " >&6
27442 else
27443 gcc_cv_as_s390_machine_machinemode=no
27444 if test $in_tree_gas = yes; then
27445 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27446 then gcc_cv_as_s390_machine_machinemode=yes
27447 fi
27448 elif test x$gcc_cv_as != x; then
27449 $as_echo ' .machinemode push
27450 .machinemode pop
27451 .machine push
27452 .machine pop' > conftest.s
27453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27455 (eval $ac_try) 2>&5
27456 ac_status=$?
27457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27458 test $ac_status = 0; }; }
27459 then
27460 gcc_cv_as_s390_machine_machinemode=yes
27461 else
27462 echo "configure: failed program was" >&5
27463 cat conftest.s >&5
27464 fi
27465 rm -f conftest.o conftest.s
27466 fi
27467 fi
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27469 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27470 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27471
27472 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27473
27474 fi
27475
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27477 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27478 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
27479 $as_echo_n "(cached) " >&6
27480 else
27481 gcc_cv_as_s390_architecture_modifiers=no
27482 if test $in_tree_gas = yes; then
27483 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27484 then gcc_cv_as_s390_architecture_modifiers=yes
27485 fi
27486 elif test x$gcc_cv_as != x; then
27487 $as_echo ' .machine z13+vx ' > conftest.s
27488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27490 (eval $ac_try) 2>&5
27491 ac_status=$?
27492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27493 test $ac_status = 0; }; }
27494 then
27495 gcc_cv_as_s390_architecture_modifiers=yes
27496 else
27497 echo "configure: failed program was" >&5
27498 cat conftest.s >&5
27499 fi
27500 rm -f conftest.o conftest.s
27501 fi
27502 fi
27503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27504 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27505 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27506
27507 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27508
27509 fi
27510
27511 ;;
27512 esac
27513
27514 # Mips and HP-UX need the GNU assembler.
27515 # Linux on IA64 might be able to use the Intel assembler.
27516
27517 case "$target" in
27518 mips*-*-* | *-*-hpux* )
27519 if test x$gas_flag = xyes \
27520 || test x"$host" != x"$build" \
27521 || test ! -x "$gcc_cv_as" \
27522 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27523 :
27524 else
27525 echo "*** This configuration requires the GNU assembler" >&2
27526 exit 1
27527 fi
27528 ;;
27529 esac
27530
27531 # ??? Not all targets support dwarf2 debug_line, even within a version
27532 # of gas. Moreover, we need to emit a valid instruction to trigger any
27533 # info to the output file. So, as supported targets are added to gas 2.11,
27534 # add some instruction here to (also) show we expect this might work.
27535 # ??? Once 2.11 is released, probably need to add first known working
27536 # version to the per-target configury.
27537 case "$cpu_type" in
27538 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27539 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27540 | tilegx | tilepro | visium | xstormy16 | xtensa)
27541 insn="nop"
27542 ;;
27543 ia64 | s390)
27544 insn="nop 0"
27545 ;;
27546 mmix)
27547 insn="swym 0"
27548 ;;
27549 esac
27550 if test x"$insn" != x; then
27551 conftest_s="\
27552 .file 1 \"conftest.s\"
27553 .loc 1 3 0
27554 $insn"
27555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27556 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27557 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
27558 $as_echo_n "(cached) " >&6
27559 else
27560 gcc_cv_as_dwarf2_debug_line=no
27561 if test $in_tree_gas = yes; then
27562 if test $in_tree_gas_is_elf = yes \
27563 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27564 then gcc_cv_as_dwarf2_debug_line=yes
27565 fi
27566 elif test x$gcc_cv_as != x; then
27567 $as_echo "$conftest_s" > conftest.s
27568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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 if test x$gcc_cv_objdump != x \
27576 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27577 | grep debug_line > /dev/null 2>&1; then
27578 gcc_cv_as_dwarf2_debug_line=yes
27579 fi
27580 else
27581 echo "configure: failed program was" >&5
27582 cat conftest.s >&5
27583 fi
27584 rm -f conftest.o conftest.s
27585 fi
27586 fi
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27588 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27589
27590
27591
27592 # The .debug_line file table must be in the exact order that
27593 # we specified the files, since these indices are also used
27594 # by DW_AT_decl_file. Approximate this test by testing if
27595 # the assembler bitches if the same index is assigned twice.
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27597 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27598 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
27599 $as_echo_n "(cached) " >&6
27600 else
27601 gcc_cv_as_dwarf2_file_buggy=no
27602 if test x$gcc_cv_as != x; then
27603 $as_echo ' .file 1 "foo.s"
27604 .file 1 "bar.s"' > conftest.s
27605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27607 (eval $ac_try) 2>&5
27608 ac_status=$?
27609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27610 test $ac_status = 0; }; }
27611 then
27612 gcc_cv_as_dwarf2_file_buggy=yes
27613 else
27614 echo "configure: failed program was" >&5
27615 cat conftest.s >&5
27616 fi
27617 rm -f conftest.o conftest.s
27618 fi
27619 fi
27620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27621 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27622
27623
27624
27625 if test $gcc_cv_as_dwarf2_debug_line = yes \
27626 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27627
27628 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27629
27630
27631 if test $gcc_cv_as_leb128 = yes; then
27632 conftest_s="\
27633 .file 1 \"conftest.s\"
27634 .loc 1 3 0 view .LVU1
27635 $insn
27636 .data
27637 .uleb128 .LVU1
27638 .uleb128 .LVU1
27639 "
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27641 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27642 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
27643 $as_echo_n "(cached) " >&6
27644 else
27645 gcc_cv_as_dwarf2_debug_view=no
27646 if test $in_tree_gas = yes; then
27647 if test $in_tree_gas_is_elf = yes \
27648 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27649 then gcc_cv_as_dwarf2_debug_view=yes
27650 fi
27651 elif test x$gcc_cv_as != x; then
27652 $as_echo "$conftest_s" > conftest.s
27653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27655 (eval $ac_try) 2>&5
27656 ac_status=$?
27657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27658 test $ac_status = 0; }; }
27659 then
27660 gcc_cv_as_dwarf2_debug_view=yes
27661 else
27662 echo "configure: failed program was" >&5
27663 cat conftest.s >&5
27664 fi
27665 rm -f conftest.o conftest.s
27666 fi
27667 fi
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27669 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27670 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27671
27672 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27673
27674 fi
27675
27676 fi
27677 fi
27678
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27680 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27681 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
27682 $as_echo_n "(cached) " >&6
27683 else
27684 gcc_cv_as_gdwarf2_flag=no
27685 if test $in_tree_gas = yes; then
27686 if test $in_tree_gas_is_elf = yes \
27687 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27688 then gcc_cv_as_gdwarf2_flag=yes
27689 fi
27690 elif test x$gcc_cv_as != x; then
27691 $as_echo "$insn" > conftest.s
27692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27694 (eval $ac_try) 2>&5
27695 ac_status=$?
27696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27697 test $ac_status = 0; }; }
27698 then
27699 gcc_cv_as_gdwarf2_flag=yes
27700 else
27701 echo "configure: failed program was" >&5
27702 cat conftest.s >&5
27703 fi
27704 rm -f conftest.o conftest.s
27705 fi
27706 fi
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27708 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27709 if test $gcc_cv_as_gdwarf2_flag = yes; then
27710
27711 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27712
27713 fi
27714
27715
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27717 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27718 if ${gcc_cv_as_gstabs_flag+:} false; then :
27719 $as_echo_n "(cached) " >&6
27720 else
27721 gcc_cv_as_gstabs_flag=no
27722 if test $in_tree_gas = yes; then
27723 if test $in_tree_gas_is_elf = yes \
27724 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27725 then gcc_cv_as_gstabs_flag=yes
27726 fi
27727 elif test x$gcc_cv_as != x; then
27728 $as_echo "$insn" > conftest.s
27729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27731 (eval $ac_try) 2>&5
27732 ac_status=$?
27733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27734 test $ac_status = 0; }; }
27735 then
27736 gcc_cv_as_gstabs_flag=yes
27737 else
27738 echo "configure: failed program was" >&5
27739 cat conftest.s >&5
27740 fi
27741 rm -f conftest.o conftest.s
27742 fi
27743 fi
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27745 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27746 if test $gcc_cv_as_gstabs_flag = yes; then
27747
27748 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27749
27750 fi
27751
27752
27753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27754 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27755 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
27756 $as_echo_n "(cached) " >&6
27757 else
27758 gcc_cv_as_debug_prefix_map_flag=no
27759 if test $in_tree_gas = yes; then
27760 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27761 then gcc_cv_as_debug_prefix_map_flag=yes
27762 fi
27763 elif test x$gcc_cv_as != x; then
27764 $as_echo "$insn" > conftest.s
27765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27767 (eval $ac_try) 2>&5
27768 ac_status=$?
27769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27770 test $ac_status = 0; }; }
27771 then
27772 gcc_cv_as_debug_prefix_map_flag=yes
27773 else
27774 echo "configure: failed program was" >&5
27775 cat conftest.s >&5
27776 fi
27777 rm -f conftest.o conftest.s
27778 fi
27779 fi
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27781 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27782 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27783
27784 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27785
27786 fi
27787
27788 fi
27789
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27791 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27792 if ${gcc_cv_as_compress_debug+:} false; then :
27793 $as_echo_n "(cached) " >&6
27794 else
27795 gcc_cv_as_compress_debug=no
27796 if test x$gcc_cv_as != x; then
27797 $as_echo '' > conftest.s
27798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27800 (eval $ac_try) 2>&5
27801 ac_status=$?
27802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27803 test $ac_status = 0; }; }
27804 then
27805 # gas compiled without zlib cannot compress debug sections and warns
27806 # about it, but still exits successfully. So check for this, too.
27807 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27808 then
27809 gcc_cv_as_compress_debug=0
27810 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27811 # defaulting to the ELF gABI format.
27812 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27813 then
27814 gcc_cv_as_compress_debug=2
27815 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27816 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27817 # Before binutils 2.26, gas only supported --compress-debug-options and
27818 # emitted the traditional GNU format.
27819 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27820 then
27821 gcc_cv_as_compress_debug=1
27822 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27823 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27824 else
27825 gcc_cv_as_compress_debug=0
27826 fi
27827 else
27828 echo "configure: failed program was" >&5
27829 cat conftest.s >&5
27830 fi
27831 rm -f conftest.o conftest.s
27832 fi
27833 fi
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27835 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27836
27837
27838
27839 cat >>confdefs.h <<_ACEOF
27840 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27841 _ACEOF
27842
27843
27844 cat >>confdefs.h <<_ACEOF
27845 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27846 _ACEOF
27847
27848
27849 cat >>confdefs.h <<_ACEOF
27850 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27851 _ACEOF
27852
27853
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27855 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27856 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
27857 $as_echo_n "(cached) " >&6
27858 else
27859 gcc_cv_as_lcomm_with_alignment=no
27860 if test x$gcc_cv_as != x; then
27861 $as_echo '.lcomm bar,4,16' > conftest.s
27862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27864 (eval $ac_try) 2>&5
27865 ac_status=$?
27866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27867 test $ac_status = 0; }; }
27868 then
27869 gcc_cv_as_lcomm_with_alignment=yes
27870 else
27871 echo "configure: failed program was" >&5
27872 cat conftest.s >&5
27873 fi
27874 rm -f conftest.o conftest.s
27875 fi
27876 fi
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27878 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27879 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27880
27881 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27882
27883 fi
27884
27885
27886 if test x$with_sysroot = x && test x$host = x$target \
27887 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27888 && test "$prefix" != "NONE"; then
27889
27890 cat >>confdefs.h <<_ACEOF
27891 #define PREFIX_INCLUDE_DIR "$prefix/include"
27892 _ACEOF
27893
27894 fi
27895
27896 # Determine the version of glibc, if any, used on the target.
27897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27898 $as_echo_n "checking for target glibc version... " >&6; }
27899
27900 # Check whether --with-glibc-version was given.
27901 if test "${with_glibc_version+set}" = set; then :
27902 withval=$with_glibc_version;
27903 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27904 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27905 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27906 else
27907 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27908 fi
27909 else
27910
27911 glibc_version_major=0
27912 glibc_version_minor=0
27913 if test -f $target_header_dir/features.h \
27914 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27915 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27916 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27917 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27918 fi
27919 fi
27920
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27922 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27923
27924 cat >>confdefs.h <<_ACEOF
27925 #define TARGET_GLIBC_MAJOR $glibc_version_major
27926 _ACEOF
27927
27928
27929 cat >>confdefs.h <<_ACEOF
27930 #define TARGET_GLIBC_MINOR $glibc_version_minor
27931 _ACEOF
27932
27933
27934 # Check whether --enable-gnu-unique-object was given.
27935 if test "${enable_gnu_unique_object+set}" = set; then :
27936 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27937 yes | no) ;;
27938 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27939 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27940 esac
27941 else
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27943 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27944 if ${gcc_cv_as_gnu_unique_object+:} false; then :
27945 $as_echo_n "(cached) " >&6
27946 else
27947 gcc_cv_as_gnu_unique_object=no
27948 if test $in_tree_gas = yes; then
27949 if test $in_tree_gas_is_elf = yes \
27950 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27951 then gcc_cv_as_gnu_unique_object=yes
27952 fi
27953 elif test x$gcc_cv_as != x; then
27954 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27957 (eval $ac_try) 2>&5
27958 ac_status=$?
27959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27960 test $ac_status = 0; }; }
27961 then
27962 gcc_cv_as_gnu_unique_object=yes
27963 else
27964 echo "configure: failed program was" >&5
27965 cat conftest.s >&5
27966 fi
27967 rm -f conftest.o conftest.s
27968 fi
27969 fi
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27971 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27972 if test $gcc_cv_as_gnu_unique_object = yes; then
27973 # We need to unquote above to to use the definition from config.gcc.
27974 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27975
27976 if test $glibc_version_major -gt 2 \
27977 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27978 enable_gnu_unique_object=yes
27979 fi
27980
27981 fi
27982
27983 fi
27984
27985 if test x$enable_gnu_unique_object = xyes; then
27986
27987 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27988
27989 fi
27990
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27992 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27993 if ${gcc_cv_as_line_zero+:} false; then :
27994 $as_echo_n "(cached) " >&6
27995 else
27996 gcc_cv_as_line_zero=no
27997 if test $in_tree_gas = yes; then
27998 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27999 then gcc_cv_as_line_zero=yes
28000 fi
28001 elif test "x$gcc_cv_as" != x; then
28002 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28003 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28005 (eval $ac_try) 2>&5
28006 ac_status=$?
28007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28008 test $ac_status = 0; }; } &&
28009 test "x`cat conftest.out`" = x
28010 then
28011 gcc_cv_as_line_zero=yes
28012 else
28013 echo "configure: failed program was" >&5
28014 cat conftest.s >&5
28015 echo "configure: error output was" >&5
28016 cat conftest.out >&5
28017 fi
28018 rm -f conftest.o conftest.s conftest.out
28019 fi
28020 fi
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28022 $as_echo "$gcc_cv_as_line_zero" >&6; }
28023 if test "x$gcc_cv_as_line_zero" = xyes; then
28024
28025 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28026
28027 fi
28028
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28030 $as_echo_n "checking support for thin archives... " >&6; }
28031 thin_archive_support=no
28032 echo 'int main (void) { return 0; }' > conftest.c
28033 if ($AR --version | sed 1q | grep "GNU ar" \
28034 && $CC $CFLAGS -c conftest.c \
28035 && $AR rcT conftest.a conftest.o \
28036 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28037 thin_archive_support=yes
28038 fi
28039 rm -f conftest.c conftest.o conftest.a conftest
28040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28041 $as_echo "$thin_archive_support" >&6; }
28042
28043
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28045 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28046 gcc_cv_ld_eh_frame_hdr=no
28047 if test $in_tree_ld = yes ; then
28048 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 \
28049 && test $in_tree_ld_is_elf = yes; then
28050 gcc_cv_ld_eh_frame_hdr=yes
28051 fi
28052 elif test x$gcc_cv_ld != x; then
28053 if echo "$ld_ver" | grep GNU > /dev/null; then
28054 # Check if linker supports --eh-frame-hdr option
28055 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28056 gcc_cv_ld_eh_frame_hdr=yes
28057 fi
28058 else
28059 case "$target" in
28060 *-*-solaris2*)
28061 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28062 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28063 gcc_cv_ld_eh_frame_hdr=yes
28064 fi
28065 ;;
28066 esac
28067 fi
28068 fi
28069
28070 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28071
28072 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28073
28074 fi
28075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28076 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28077
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28079 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28080 gcc_cv_ld_eh_frame_ciev3=no
28081 if test $in_tree_ld = yes ; then
28082 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 \
28083 && test $in_tree_ld_is_elf = yes; then
28084 gcc_cv_ld_eh_frame_ciev3=yes
28085 fi
28086 elif test x$gcc_cv_ld != x; then
28087 if echo "$ld_ver" | grep GNU > /dev/null; then
28088 gcc_cv_ld_eh_frame_ciev3=yes
28089 if test 0"$ld_date" -lt 20040513; then
28090 if test -n "$ld_date"; then
28091 # If there was date string, but was earlier than 2004-05-13, fail
28092 gcc_cv_ld_eh_frame_ciev3=no
28093 elif test "$ld_vers_major" -lt 2; then
28094 gcc_cv_ld_eh_frame_ciev3=no
28095 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28096 gcc_cv_ld_eh_frame_ciev3=no
28097 fi
28098 fi
28099 else
28100 case "$target" in
28101 *-*-solaris2*)
28102 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28103 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28104 gcc_cv_ld_eh_frame_ciev3=yes
28105 fi
28106 ;;
28107 esac
28108 fi
28109 fi
28110
28111 cat >>confdefs.h <<_ACEOF
28112 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28113 _ACEOF
28114
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28116 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28117
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28119 $as_echo_n "checking linker position independent executable support... " >&6; }
28120 gcc_cv_ld_pie=no
28121 if test $in_tree_ld = yes ; then
28122 case "$target" in
28123 # Full PIE support on Solaris was only introduced in gld 2.26.
28124 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28125 *) gcc_gld_pie_min_version=15 ;;
28126 esac
28127 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 \
28128 && test $in_tree_ld_is_elf = yes; then
28129 gcc_cv_ld_pie=yes
28130 fi
28131 elif test x$gcc_cv_ld != x; then
28132 # Check if linker supports -pie option
28133 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28134 gcc_cv_ld_pie=yes
28135 case "$target" in
28136 *-*-solaris2*)
28137 if echo "$ld_ver" | grep GNU > /dev/null \
28138 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28139 gcc_cv_ld_pie=no
28140 fi
28141 ;;
28142 esac
28143 else
28144 case "$target" in
28145 *-*-solaris2.1[1-9]*)
28146 # Solaris 11.3 added PIE support.
28147 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28148 gcc_cv_ld_pie=yes
28149 fi
28150 ;;
28151 esac
28152 fi
28153 fi
28154 if test x"$gcc_cv_ld_pie" = xyes; then
28155
28156 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28157
28158 fi
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28160 $as_echo "$gcc_cv_ld_pie" >&6; }
28161
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28163 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28164 gcc_cv_ld_pie_copyreloc=no
28165 if test $gcc_cv_ld_pie = yes ; then
28166 if test $in_tree_ld = yes ; then
28167 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
28168 gcc_cv_ld_pie_copyreloc=yes
28169 fi
28170 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28171 # Check if linker supports -pie option with copy reloc
28172 case "$target" in
28173 i?86-*-linux* | x86_64-*-linux*)
28174 cat > conftest1.s <<EOF
28175 .globl a_glob
28176 .data
28177 .type a_glob, @object
28178 .size a_glob, 4
28179 a_glob:
28180 .long 2
28181 EOF
28182 cat > conftest2.s <<EOF
28183 .text
28184 .globl main
28185 .type main, @function
28186 main:
28187 movl %eax, a_glob(%rip)
28188 .size main, .-main
28189 .globl ptr
28190 .section .data.rel,"aw",@progbits
28191 .type ptr, @object
28192 ptr:
28193 .quad a_glob
28194 EOF
28195 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28196 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28197 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28198 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28199 gcc_cv_ld_pie_copyreloc=yes
28200 fi
28201 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28202 ;;
28203 esac
28204 fi
28205 fi
28206
28207 cat >>confdefs.h <<_ACEOF
28208 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28209 _ACEOF
28210
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28212 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28213
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28215 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28216 gcc_cv_ld_eh_gc_sections=no
28217 if test $in_tree_ld = yes ; then
28218 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 \
28219 && test $in_tree_ld_is_elf = yes; then
28220 gcc_cv_ld_eh_gc_sections=yes
28221 fi
28222 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28223 cat > conftest.s <<EOF
28224 .section .text
28225 .globl _start
28226 .type _start, @function
28227 _start:
28228 .long foo
28229 .size _start, .-_start
28230 .section .text.foo,"ax",@progbits
28231 .type foo, @function
28232 foo:
28233 .long 0
28234 .size foo, .-foo
28235 .section .gcc_except_table.foo,"a",@progbits
28236 .L0:
28237 .long 0
28238 .section .eh_frame,"a",@progbits
28239 .long .L0
28240 EOF
28241 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28242 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28243 | grep "gc-sections option ignored" > /dev/null; then
28244 gcc_cv_ld_eh_gc_sections=no
28245 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28246 | grep gcc_except_table > /dev/null; then
28247 gcc_cv_ld_eh_gc_sections=yes
28248 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28249 if test x$gcc_cv_as_comdat_group != xyes; then
28250 gcc_cv_ld_eh_gc_sections=no
28251 cat > conftest.s <<EOF
28252 .section .text
28253 .globl _start
28254 .type _start, @function
28255 _start:
28256 .long foo
28257 .size _start, .-_start
28258 .section .gnu.linkonce.t.foo,"ax",@progbits
28259 .type foo, @function
28260 foo:
28261 .long 0
28262 .size foo, .-foo
28263 .section .gcc_except_table.foo,"a",@progbits
28264 .L0:
28265 .long 0
28266 .section .eh_frame,"a",@progbits
28267 .long .L0
28268 EOF
28269 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28270 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28271 | grep "gc-sections option ignored" > /dev/null; then
28272 gcc_cv_ld_eh_gc_sections=no
28273 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28274 | grep gcc_except_table > /dev/null; then
28275 gcc_cv_ld_eh_gc_sections=yes
28276 fi
28277 fi
28278 fi
28279 fi
28280 fi
28281 rm -f conftest.s conftest.o conftest
28282 fi
28283 case "$target" in
28284 hppa*-*-linux*)
28285 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28286 gcc_cv_ld_eh_gc_sections=no
28287 ;;
28288 esac
28289 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28290
28291 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28292
28293 fi
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28295 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28296
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28298 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28299 gcc_cv_ld_eh_gc_sections_bug=no
28300 if test $in_tree_ld = yes ; then
28301 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 \
28302 && test $in_tree_ld_is_elf = yes; then
28303 gcc_cv_ld_eh_gc_sections_bug=yes
28304 fi
28305 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
28306 gcc_cv_ld_eh_gc_sections_bug=yes
28307 cat > conftest.s <<EOF
28308 .section .text
28309 .globl _start
28310 .type _start, @function
28311 _start:
28312 .long foo
28313 .size _start, .-_start
28314 .section .text.startup.foo,"ax",@progbits
28315 .type foo, @function
28316 foo:
28317 .long 0
28318 .size foo, .-foo
28319 .section .gcc_except_table.foo,"a",@progbits
28320 .L0:
28321 .long 0
28322 .section .eh_frame,"a",@progbits
28323 .long .L0
28324 EOF
28325 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28326 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28327 | grep "gc-sections option ignored" > /dev/null; then
28328 :
28329 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28330 | grep gcc_except_table > /dev/null; then
28331 gcc_cv_ld_eh_gc_sections_bug=no
28332 fi
28333 fi
28334 rm -f conftest.s conftest.o conftest
28335 fi
28336 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28337
28338 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28339
28340 fi
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28342 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28343
28344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28345 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28346 # gold/gld support compressed debug sections since binutils 2.19/2.21
28347 # In binutils 2.26, gld gained support for the ELF gABI format.
28348 if test $in_tree_ld = yes ; then
28349 gcc_cv_ld_compress_debug=0
28350 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 \
28351 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28352 gcc_cv_ld_compress_debug=2
28353 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28354 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 \
28355 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28356 gcc_cv_ld_compress_debug=3
28357 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28358 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 \
28359 && test $in_tree_ld_is_elf = yes; then
28360 gcc_cv_ld_compress_debug=1
28361 fi
28362 elif echo "$ld_ver" | grep GNU > /dev/null; then
28363 if test "$ld_vers_major" -lt 2 \
28364 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28365 gcc_cv_ld_compress_debug=0
28366 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28367 gcc_cv_ld_compress_debug=1
28368 else
28369 gcc_cv_ld_compress_debug=3
28370 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28371 fi
28372 if test $ld_is_gold = yes; then
28373 gcc_cv_ld_compress_debug=2
28374 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28375 fi
28376 else
28377 case "${target}" in
28378 *-*-solaris2*)
28379 # Introduced in Solaris 11.2.
28380 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28381 gcc_cv_ld_compress_debug=3
28382 gcc_cv_ld_compress_debug_option="-z compress-sections"
28383 else
28384 gcc_cv_ld_compress_debug=0
28385 fi
28386 ;;
28387 *)
28388 # Assume linkers other than GNU ld don't support compessed debug
28389 # sections.
28390 gcc_cv_ld_compress_debug=0
28391 ;;
28392 esac
28393 fi
28394
28395 cat >>confdefs.h <<_ACEOF
28396 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28397 _ACEOF
28398
28399
28400 cat >>confdefs.h <<_ACEOF
28401 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28402 _ACEOF
28403
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28405 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28406
28407 if test x"$ld64_flag" = x"yes"; then
28408
28409 # Set defaults for possibly untestable items.
28410 gcc_cv_ld64_export_dynamic=0
28411
28412 if test "$build" = "$host"; then
28413 darwin_try_test=1
28414 else
28415 darwin_try_test=0
28416 fi
28417
28418 # On Darwin, because of FAT library support, it is often possible to execute
28419 # exes from compatible archs even when the host differs from the build system.
28420 case "$build","$host" in
28421 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28422 darwin_try_test=1;;
28423 *) ;;
28424 esac
28425
28426 # If the configurer specified a minimum ld64 version to be supported, then use
28427 # that to determine feature support.
28428 if test x"${gcc_cv_ld64_version}" != x; then
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28430 $as_echo_n "checking ld64 specified version... " >&6; }
28431 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28433 $as_echo "$gcc_cv_ld64_major" >&6; }
28434 if test "$gcc_cv_ld64_major" -ge 236; then
28435 gcc_cv_ld64_export_dynamic=1
28436 fi
28437 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28438 # If the version was not specified, try to find it.
28439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28440 $as_echo_n "checking linker version... " >&6; }
28441 if test x"${gcc_cv_ld64_version}" = x; then
28442 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28443 fi
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28445 $as_echo "$gcc_cv_ld64_version" >&6; }
28446
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28448 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28449 gcc_cv_ld64_export_dynamic=1
28450 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28451 gcc_cv_ld64_export_dynamic=0
28452 fi
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28454 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28455 fi
28456
28457 if test x"${gcc_cv_ld64_version}" != x; then
28458
28459 cat >>confdefs.h <<_ACEOF
28460 #define LD64_VERSION "${gcc_cv_ld64_version}"
28461 _ACEOF
28462
28463 fi
28464
28465
28466 cat >>confdefs.h <<_ACEOF
28467 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28468 _ACEOF
28469
28470 fi
28471
28472 # --------
28473 # UNSORTED
28474 # --------
28475
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28477 $as_echo_n "checking linker --as-needed support... " >&6; }
28478 if ${gcc_cv_ld_as_needed+:} false; then :
28479 $as_echo_n "(cached) " >&6
28480 else
28481 gcc_cv_ld_as_needed=no
28482 gcc_cv_ld_as_needed_option='--as-needed'
28483 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28484 if test $in_tree_ld = yes ; then
28485 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 \
28486 && test $in_tree_ld_is_elf = yes; then
28487 gcc_cv_ld_as_needed=yes
28488 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28489 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28490 gcc_cv_ld_no_as_needed_option='--pop-state'
28491 fi
28492 fi
28493 elif test x$gcc_cv_ld != x; then
28494 # Check if linker supports --as-needed and --no-as-needed options
28495 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28496 gcc_cv_ld_as_needed=yes
28497 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28498 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28499 && echo "$ld_ver" | grep GNU > /dev/null \
28500 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28501 # Use these options only when both ld.bfd and ld.gold support
28502 # --push-state/--pop-state, which unfortunately wasn't added
28503 # at the same time.
28504 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28505 gcc_cv_ld_no_as_needed_option='--pop-state'
28506 fi
28507 fi
28508 case "$target:$gnu_ld" in
28509 *-*-solaris2*:no)
28510 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28511 # forms.
28512 gcc_cv_ld_as_needed=yes
28513 gcc_cv_ld_as_needed_option="-z ignore"
28514 gcc_cv_ld_no_as_needed_option="-z record"
28515 ;;
28516 esac
28517 fi
28518 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28519 # dl_iterate_phdr, i.e. since Solaris 11.
28520 case "$target" in
28521 *-*-solaris2.1[1-9]*)
28522 case "$target" in
28523 i?86-*-* | x86_64-*-*)
28524 if echo "$ld_ver" | grep GNU > /dev/null; then
28525 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28526 gcc_cv_ld_as_needed=no
28527 fi
28528 ;;
28529 esac
28530 ;;
28531 *-*-solaris2*)
28532 gcc_cv_ld_as_needed=no
28533 ;;
28534 esac
28535
28536 fi
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28538 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28539 if test x"$gcc_cv_ld_as_needed" = xyes; then
28540
28541 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28542
28543
28544 cat >>confdefs.h <<_ACEOF
28545 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28546 _ACEOF
28547
28548
28549 cat >>confdefs.h <<_ACEOF
28550 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28551 _ACEOF
28552
28553 fi
28554
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28556 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28557 saved_LDFLAGS="$LDFLAGS"
28558 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28559 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28561 /* end confdefs.h. */
28562 int main(void) {return 0;}
28563 _ACEOF
28564 if ac_fn_cxx_try_link "$LINENO"; then :
28565 gcc_cv_ld_clearcap=yes; break
28566 else
28567 gcc_cv_ld_clearcap=no
28568 fi
28569 rm -f core conftest.err conftest.$ac_objext \
28570 conftest$ac_exeext conftest.$ac_ext
28571 done
28572 LDFLAGS="$saved_LDFLAGS"
28573 if test "x$gcc_cv_ld_clearcap" = xyes; then
28574
28575 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28576
28577 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28578
28579 fi
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28581 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28582
28583 case "$target" in
28584 powerpc*-*-*)
28585 case "$target" in
28586 *le-*-linux*)
28587 emul_name="-melf32lppc"
28588 ;;
28589 *)
28590 emul_name="-melf32ppc"
28591 ;;
28592 esac
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28594 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28595 if ${gcc_cv_ld_ppc_attr+:} false; then :
28596 $as_echo_n "(cached) " >&6
28597 else
28598 gcc_cv_ld_ppc_attr=no
28599 if test x"$ld_is_gold" = xyes; then
28600 gcc_cv_ld_ppc_attr=yes
28601 elif test $in_tree_ld = yes ; then
28602 if test "$gcc_cv_gld_major_version" -eq 2 \
28603 -a "$gcc_cv_gld_minor_version" -ge 28 \
28604 -o "$gcc_cv_gld_major_version" -gt 2; then
28605 gcc_cv_ld_ppc_attr=yes
28606 fi
28607 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28608 # check that merging the long double .gnu_attribute doesn't warn
28609 cat > conftest1.s <<EOF
28610 .gnu_attribute 4,1
28611 EOF
28612 cat > conftest2.s <<EOF
28613 .gnu_attribute 4,9
28614 EOF
28615 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28616 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28617 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28618 && test ! -s conftest.err; then
28619 gcc_cv_ld_ppc_attr=yes
28620 fi
28621 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28622 fi
28623
28624 fi
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28626 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28627 if test x$gcc_cv_ld_ppc_attr = xyes; then
28628
28629 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28630
28631 fi
28632 ;;
28633 esac
28634
28635 case "$target:$tm_file" in
28636 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28637 case "$target" in
28638 *le-*-linux*)
28639 emul_name="-melf64lppc"
28640 ;;
28641 *-*-linux*)
28642 emul_name="-melf64ppc"
28643 ;;
28644 *-*-freebsd*)
28645 emul_name="-melf64ppc_fbsd"
28646 ;;
28647 esac
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28649 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28650 if ${gcc_cv_ld_no_dot_syms+:} false; then :
28651 $as_echo_n "(cached) " >&6
28652 else
28653 gcc_cv_ld_no_dot_syms=no
28654 if test x"$ld_is_gold" = xyes; then
28655 gcc_cv_ld_no_dot_syms=yes
28656 elif test $in_tree_ld = yes ; then
28657 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
28658 gcc_cv_ld_no_dot_syms=yes
28659 fi
28660 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28661 cat > conftest1.s <<EOF
28662 .text
28663 bl .foo
28664 EOF
28665 cat > conftest2.s <<EOF
28666 .section ".opd","aw"
28667 .align 3
28668 .globl foo
28669 .type foo,@function
28670 foo:
28671 .quad .LEfoo,.TOC.@tocbase,0
28672 .text
28673 .LEfoo:
28674 blr
28675 .size foo,.-.LEfoo
28676 EOF
28677 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28678 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28679 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28680 gcc_cv_ld_no_dot_syms=yes
28681 fi
28682 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28683 fi
28684
28685 fi
28686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28687 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28688 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28689
28690 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28691
28692 fi
28693
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28695 $as_echo_n "checking linker large toc support... " >&6; }
28696 if ${gcc_cv_ld_large_toc+:} false; then :
28697 $as_echo_n "(cached) " >&6
28698 else
28699 gcc_cv_ld_large_toc=no
28700 if test x"$ld_is_gold" = xyes; then
28701 gcc_cv_ld_large_toc=yes
28702 elif test $in_tree_ld = yes ; then
28703 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
28704 gcc_cv_ld_large_toc=yes
28705 fi
28706 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28707 cat > conftest.s <<EOF
28708 .section ".tbss","awT",@nobits
28709 .align 3
28710 ie0: .space 8
28711 .global _start
28712 .text
28713 _start:
28714 addis 9,13,ie0@got@tprel@ha
28715 ld 9,ie0@got@tprel@l(9)
28716 EOF
28717 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28718 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28719 gcc_cv_ld_large_toc=yes
28720 fi
28721 rm -f conftest conftest.o conftest.s
28722 fi
28723
28724 fi
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28726 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28727 if test x"$gcc_cv_ld_large_toc" = xyes; then
28728
28729 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28730
28731 fi
28732
28733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28734 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28735 if ${gcc_cv_ld_toc_align+:} false; then :
28736 $as_echo_n "(cached) " >&6
28737 else
28738 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28739 cat > conftest.s <<EOF
28740 .global _start
28741 .text
28742 _start:
28743 addis 9,2,x@got@ha
28744 .section .data.rel.ro,"aw",@progbits
28745 .p2align 16
28746 .space 32768
28747 x: .quad .TOC.
28748 EOF
28749 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28750 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28751 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)) }'`
28752 fi
28753 rm -f conftest conftest.o conftest.s
28754 fi
28755
28756 fi
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28758 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28759 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28760
28761 cat >>confdefs.h <<_ACEOF
28762 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28763 _ACEOF
28764
28765 fi
28766 ;;
28767 esac
28768
28769 case "$target" in
28770 *-*-aix*)
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28772 $as_echo_n "checking linker large toc support... " >&6; }
28773 if ${gcc_cv_ld_large_toc+:} false; then :
28774 $as_echo_n "(cached) " >&6
28775 else
28776 gcc_cv_ld_large_toc=no
28777 if test x$gcc_cv_as != x ; then
28778 cat > conftest.s <<EOF
28779 .toc
28780 LC..1:
28781 .tc a[TC],a[RW]
28782 .extern a[RW]
28783 .csect .text[PR]
28784 .largetoctest:
28785 addis 9,LC..1@u(2)
28786 ld 3,LC..1@l(9)
28787 EOF
28788 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28789 gcc_cv_ld_large_toc=yes
28790 fi
28791 rm -f conftest conftest.o conftest.s
28792 fi
28793
28794 fi
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28796 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28797 if test x"$gcc_cv_ld_large_toc" = xyes; then
28798
28799 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28800
28801 fi
28802 ;;
28803 esac
28804
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28806 $as_echo_n "checking linker --build-id support... " >&6; }
28807 if ${gcc_cv_ld_buildid+:} false; then :
28808 $as_echo_n "(cached) " >&6
28809 else
28810 gcc_cv_ld_buildid=no
28811 if test $in_tree_ld = yes ; then
28812 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28813 "$gcc_cv_gld_minor_version" -ge 18 -o \
28814 "$gcc_cv_gld_major_version" -gt 2 \
28815 && test $in_tree_ld_is_elf = yes; then
28816 gcc_cv_ld_buildid=yes
28817 fi
28818 elif test x$gcc_cv_ld != x; then
28819 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
28820 gcc_cv_ld_buildid=yes
28821 fi
28822 fi
28823 fi
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28825 $as_echo "$gcc_cv_ld_buildid" >&6; }
28826 if test x"$gcc_cv_ld_buildid" = xyes; then
28827
28828 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28829
28830 fi
28831
28832 # Check whether --enable-linker-build-id was given.
28833 if test "${enable_linker_build_id+set}" = set; then :
28834 enableval=$enable_linker_build_id;
28835 else
28836 enable_linker_build_id=no
28837 fi
28838
28839
28840 if test x"$enable_linker_build_id" = xyes; then
28841 if test x"$gcc_cv_ld_buildid" = xyes; then
28842
28843 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28844
28845 else
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28847 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28848 fi
28849 fi
28850
28851 # In binutils 2.21, GNU ld gained support for new emulations fully
28852 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28854 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28855 if ${gcc_cv_ld_sol2_emulation+:} false; then :
28856 $as_echo_n "(cached) " >&6
28857 else
28858 gcc_cv_ld_sol2_emulation=no
28859 if test $in_tree_ld = yes ; then
28860 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28861 "$gcc_cv_gld_minor_version" -ge 21 -o \
28862 "$gcc_cv_gld_major_version" -gt 2 \
28863 && test $in_tree_ld_is_elf = yes; then
28864 gcc_cv_ld_sol2_emulation=yes
28865 fi
28866 elif test x$gcc_cv_ld != x; then
28867 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28868 grep _sol2 > /dev/null; then
28869 gcc_cv_ld_sol2_emulation=yes
28870 fi
28871 fi
28872 fi
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28874 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28875 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28876
28877 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28878
28879 fi
28880
28881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28882 $as_echo_n "checking linker --sysroot support... " >&6; }
28883 if ${gcc_cv_ld_sysroot+:} false; then :
28884 $as_echo_n "(cached) " >&6
28885 else
28886 gcc_cv_ld_sysroot=no
28887 if test $in_tree_ld = yes ; then
28888 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
28889 gcc_cv_ld_sysroot=yes
28890 fi
28891 elif test x$gcc_cv_ld != x; then
28892 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
28893 gcc_cv_ld_sysroot=yes
28894 fi
28895 fi
28896 fi
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28898 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28899 if test x"$gcc_cv_ld_sysroot" = xyes; then
28900
28901 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28902
28903 fi
28904
28905 case $target in
28906 *-*-solaris2*)
28907 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28909 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28910 if ${gcc_cv_solaris_crts+:} false; then :
28911 $as_echo_n "(cached) " >&6
28912 else
28913 gcc_cv_solaris_crts=no
28914 if test x$host != x$target; then
28915 if test "x$with_sysroot" = xyes; then
28916 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28917 else
28918 target_sysroot="${with_sysroot}"
28919 fi
28920 fi
28921 target_libdir="$target_sysroot/usr/lib"
28922 # At the time they were added, gcrt1.o became a symlink for backwards
28923 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28924 case $target in
28925 i?86-*-solaris2* | x86_64-*-solaris2*)
28926 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28927 ;;
28928 sparc*-*-solaris2*)
28929 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28930 ;;
28931 esac
28932 fi
28933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28934 $as_echo "$gcc_cv_solaris_crts" >&6; }
28935 ;;
28936 esac
28937 if test x$gcc_cv_solaris_crts = xyes; then
28938
28939 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28940
28941 fi
28942
28943 # Check whether --enable-libssp was given.
28944 if test "${enable_libssp+set}" = set; then :
28945 enableval=$enable_libssp; case "${enableval}" in
28946 yes|no)
28947 ;;
28948 *)
28949 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
28950 ;;
28951 esac
28952 fi
28953
28954
28955 # Test for stack protector support in target C library.
28956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28957 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28958 if ${gcc_cv_libc_provides_ssp+:} false; then :
28959 $as_echo_n "(cached) " >&6
28960 else
28961 gcc_cv_libc_provides_ssp=no
28962 if test "x$enable_libssp" = "xno"; then
28963 gcc_cv_libc_provides_ssp=yes
28964 elif test "x$enable_libssp" = "xyes"; then
28965 gcc_cv_libc_provides_ssp=no
28966 else
28967 case "$target" in
28968 *-*-musl*)
28969 # All versions of musl provide stack protector
28970 gcc_cv_libc_provides_ssp=yes;;
28971 *-*-linux* | *-*-kfreebsd*-gnu)
28972 # glibc 2.4 and later provides __stack_chk_fail and
28973 # either __stack_chk_guard, or TLS access to stack guard canary.
28974
28975 if test $glibc_version_major -gt 2 \
28976 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28977 gcc_cv_libc_provides_ssp=yes
28978 else
28979
28980 if test -f $target_header_dir/features.h \
28981 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28982 $target_header_dir/features.h > /dev/null; then
28983 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28984 $target_header_dir/features.h > /dev/null && \
28985 test -f $target_header_dir/bits/uClibc_config.h && \
28986 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28987 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28988 gcc_cv_libc_provides_ssp=yes
28989 fi
28990 # all versions of Bionic support stack protector
28991 elif test -f $target_header_dir/sys/cdefs.h \
28992 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28993 $target_header_dir/sys/cdefs.h > /dev/null; then
28994 gcc_cv_libc_provides_ssp=yes
28995 fi
28996 fi
28997 ;;
28998 *-*-gnu*)
28999 # Avoid complicated tests (see
29000 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29001 # simply assert that glibc does provide this, which is true for all
29002 # realistically usable GNU/Hurd configurations.
29003 # All supported versions of musl provide it as well
29004 gcc_cv_libc_provides_ssp=yes;;
29005 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29006 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29007 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29008 gcc_cv_libc_provides_ssp=yes
29009 else
29010 echo "no __stack_chk_fail on this target"
29011 fi
29012
29013 ;;
29014 *) gcc_cv_libc_provides_ssp=no ;;
29015 esac
29016 fi
29017 fi
29018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29019 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29020
29021 if test x$gcc_cv_libc_provides_ssp = xyes; then
29022
29023 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29024
29025 fi
29026
29027 # Check whether --enable-default-ssp was given.
29028 # Check whether --enable-default-ssp was given.
29029 if test "${enable_default_ssp+set}" = set; then :
29030 enableval=$enable_default_ssp;
29031 if test x$gcc_cv_libc_provides_ssp = xyes; then
29032 case "$target" in
29033 ia64*-*-*) enable_default_ssp=no ;;
29034 *) enable_default_ssp=$enableval ;;
29035 esac
29036 else
29037 enable_default_ssp=no
29038 fi
29039 else
29040 enable_default_ssp=no
29041 fi
29042
29043 if test x$enable_default_ssp = xyes ; then
29044
29045 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29046
29047 fi
29048
29049
29050 # Test for <sys/sdt.h> on the target.
29051
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29053 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29054 have_sys_sdt_h=no
29055 if test -f $target_header_dir/sys/sdt.h; then
29056 have_sys_sdt_h=yes
29057
29058 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29059
29060 fi
29061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29062 $as_echo "$have_sys_sdt_h" >&6; }
29063
29064 # Check if TFmode long double should be used by default or not.
29065 # Some glibc targets used DFmode long double, but with glibc 2.4
29066 # and later they can use TFmode.
29067 case "$target" in
29068 powerpc*-*-linux* | \
29069 sparc*-*-linux* | \
29070 s390*-*-linux* | \
29071 alpha*-*-linux*)
29072
29073 # Check whether --with-long-double-128 was given.
29074 if test "${with_long_double_128+set}" = set; then :
29075 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29076 else
29077
29078 if test $glibc_version_major -gt 2 \
29079 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29080 gcc_cv_target_ldbl128=yes
29081 else
29082
29083 gcc_cv_target_ldbl128=no
29084 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29085 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29086 && gcc_cv_target_ldbl128=yes
29087
29088 fi
29089 fi
29090
29091 ;;
29092 esac
29093 if test x$gcc_cv_target_ldbl128 = xyes; then
29094
29095 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29096
29097 fi
29098
29099 # Check if TFmode long double target should use the IBM extended double or IEEE
29100 # 128-bit floating point formats if long doubles are 128-bits long. The long
29101 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29102 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29103 # libgcc.
29104
29105 # Check whether --with-long-double-format was given.
29106 if test "${with_long_double_format+set}" = set; then :
29107 withval=$with_long_double_format;
29108 case "$target:$with_long_double_format" in
29109 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29110 :
29111 ;;
29112 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29113 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29114 case "$with_cpu" in
29115 power7 | power8 | power9 | power1*)
29116 :
29117 ;;
29118 *)
29119 as_fn_error $? "Configuration option --with-long-double-format is only \
29120 supported if the default cpu is power7 or newer" "$LINENO" 5
29121 with_long_double_format=""
29122 ;;
29123 esac
29124 ;;
29125 xpowerpc64*-*-linux*:*)
29126 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29127 with_long_double_format=""
29128 ;;
29129 *)
29130 as_fn_error $? "Configure option --with-long-double-format is only supported \
29131 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29132 with_long_double_format=""
29133 ;;
29134 esac
29135 fi
29136
29137
29138 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29139 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29140 gcc_cv_libc_provides_hwcap_in_tcb=no
29141 case "$target" in
29142 powerpc*-*-linux*)
29143
29144 if test $glibc_version_major -gt 2 \
29145 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29146 gcc_cv_libc_provides_hwcap_in_tcb=yes
29147 fi
29148 ;;
29149 esac
29150 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29151
29152 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29153
29154 fi
29155
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29157 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29158 gcc_cv_target_dl_iterate_phdr=unknown
29159 case "$target" in
29160 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29161 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29162 # libdl there, both complicating its use and breaking compatibility
29163 # between Solaris 10 updates.
29164 *-*-solaris2.1[1-9]*)
29165 # <link.h> needs both a dl_iterate_phdr declaration and support for
29166 # compilation with largefile support.
29167 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29168 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29169 gcc_cv_target_dl_iterate_phdr=yes
29170 else
29171 gcc_cv_target_dl_iterate_phdr=no
29172 fi
29173 ;;
29174 *-*-dragonfly* | *-*-freebsd*)
29175 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29176 gcc_cv_target_dl_iterate_phdr=yes
29177 else
29178 gcc_cv_target_dl_iterate_phdr=no
29179 fi
29180 ;;
29181 *-linux-musl*)
29182 gcc_cv_target_dl_iterate_phdr=yes
29183 ;;
29184 esac
29185
29186 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29187
29188 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29189
29190 fi
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29192 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29193
29194 # We no longer support different GC mechanisms. Emit an error if
29195 # the user configures with --with-gc.
29196
29197 # Check whether --with-gc was given.
29198 if test "${with_gc+set}" = set; then :
29199 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29200 fi
29201
29202
29203 # Libraries to use on the host. This will normally be set by the top
29204 # level Makefile. Here we simply capture the value for our Makefile.
29205 if test -z "${HOST_LIBS+set}"; then
29206 HOST_LIBS=
29207 fi
29208
29209
29210 # Use the system's zlib library.
29211
29212 # Use the system's zlib library.
29213 zlibdir="-L\$(top_builddir)/../zlib"
29214 zlibinc="-I\$(top_srcdir)/../zlib"
29215
29216 # Check whether --with-system-zlib was given.
29217 if test "${with_system_zlib+set}" = set; then :
29218 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29219 zlibdir=
29220 zlibinc=
29221 fi
29222
29223 fi
29224
29225
29226
29227
29228
29229
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29231 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29232 # Check whether --enable-maintainer-mode was given.
29233 if test "${enable_maintainer_mode+set}" = set; then :
29234 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29235 else
29236 maintainer_mode=no
29237 fi
29238
29239
29240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29241 $as_echo "$maintainer_mode" >&6; }
29242
29243 if test "$maintainer_mode" = "yes"; then
29244 MAINT=''
29245 else
29246 MAINT='#'
29247 fi
29248
29249
29250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29251 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29252 # Check whether --enable-link-mutex was given.
29253 if test "${enable_link_mutex+set}" = set; then :
29254 enableval=$enable_link_mutex; do_link_mutex=$enableval
29255 else
29256 do_link_mutex=no
29257 fi
29258
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29260 $as_echo "$do_link_mutex" >&6; }
29261
29262 if test "$do_link_mutex" = "yes"; then
29263 DO_LINK_MUTEX=true
29264 else
29265 DO_LINK_MUTEX=false
29266 fi
29267
29268
29269 # --------------
29270 # Language hooks
29271 # --------------
29272
29273 # Make empty files to contain the specs and options for each language.
29274 # Then add #include lines to for a compiler that has specs and/or options.
29275
29276 subdirs=
29277 lang_opt_files=
29278 lang_specs_files=
29279 lang_tree_files=
29280 # These (without "all_") are set in each config-lang.in.
29281 # `language' must be a single word so is spelled singularly.
29282 all_languages=
29283 all_compilers=
29284 all_outputs='Makefile'
29285 # List of language makefile fragments.
29286 all_lang_makefrags=
29287 # Additional files for gengtype
29288 all_gtfiles="$target_gtfiles"
29289
29290 # These are the languages that are set in --enable-languages,
29291 # and are available in the GCC tree.
29292 all_selected_languages=
29293
29294 # Add the language fragments.
29295 # Languages are added via two mechanisms. Some information must be
29296 # recorded in makefile variables, these are defined in config-lang.in.
29297 # We accumulate them and plug them into the main Makefile.
29298 # The other mechanism is a set of hooks for each of the main targets
29299 # like `clean', `install', etc.
29300
29301 language_hooks="Make-hooks"
29302
29303 for lang in ${srcdir}/*/config-lang.in
29304 do
29305 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29306
29307 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29308 if test "x$lang_alias" = x
29309 then
29310 echo "$lang doesn't set \$language." 1>&2
29311 exit 1
29312 fi
29313 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29314 subdirs="$subdirs $subdir"
29315
29316 # $gcc_subdir is where the gcc integration files are to be found
29317 # for a language, both for internal compiler purposes (compiler
29318 # sources implementing front-end to GCC tree converters), and for
29319 # build infrastructure purposes (Make-lang.in, etc.)
29320 #
29321 # This will be <subdir> (relative to $srcdir) if a line like
29322 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29323 # is found in <langdir>/config-lang.in, and will remain <langdir>
29324 # otherwise.
29325 #
29326 # Except for the language alias (fetched above), the regular
29327 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29328 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29329 # only this and the language alias.
29330
29331 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29332 if [ "$gcc_subdir" = "" ]; then
29333 gcc_subdir="$subdir"
29334 fi
29335
29336 case ",$enable_languages," in
29337 *,$lang_alias,*)
29338 all_selected_languages="$all_selected_languages $lang_alias"
29339 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29340 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29341 fi
29342 ;;
29343 esac
29344
29345 language=
29346 boot_language=
29347 compilers=
29348 outputs=
29349 gtfiles=
29350 subdir_requires=
29351 . ${srcdir}/$gcc_subdir/config-lang.in
29352 if test "x$language" = x
29353 then
29354 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29355 exit 1
29356 fi
29357
29358 ok=:
29359 case ",$enable_languages," in
29360 *,$lang_alias,*) ;;
29361 *)
29362 for i in $subdir_requires; do
29363 test -f "${srcdir}/$i/config-lang.in" && continue
29364 ok=false
29365 break
29366 done
29367 ;;
29368 esac
29369 $ok || continue
29370
29371 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29372 if test -f $srcdir/$gcc_subdir/lang.opt; then
29373 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29374 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29375 fi
29376 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29377 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29378 fi
29379 all_languages="$all_languages $language"
29380 all_compilers="$all_compilers $compilers"
29381 all_outputs="$all_outputs $outputs"
29382 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29383 case ",$enable_languages," in
29384 *,lto,*)
29385
29386 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29387
29388 enable_lto=yes
29389
29390 ;;
29391 *) ;;
29392 esac
29393 done
29394
29395 check_languages=
29396 for language in $all_selected_languages
29397 do
29398 check_languages="$check_languages check-$language"
29399 done
29400
29401 selftest_languages=
29402 for language in $all_selected_languages
29403 do
29404 selftest_languages="$selftest_languages selftest-$language"
29405 done
29406
29407 # We link each language in with a set of hooks, reached indirectly via
29408 # lang.${target}. Only do so for selected languages.
29409
29410 rm -f Make-hooks
29411 touch Make-hooks
29412 target_list="all.cross start.encap rest.encap tags \
29413 install-common install-man install-info install-pdf install-html dvi \
29414 pdf html uninstall info man srcextra srcman srcinfo \
29415 mostlyclean clean distclean maintainer-clean install-plugin"
29416
29417 for t in $target_list
29418 do
29419 x=
29420 for lang in $all_selected_languages
29421 do
29422 x="$x $lang.$t"
29423 done
29424 echo "lang.$t: $x" >> Make-hooks
29425 done
29426
29427 # --------
29428 # Option include files
29429 # --------
29430
29431 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29432 option_includes="option-includes.mk"
29433
29434
29435 # --------
29436 # UNSORTED
29437 # --------
29438
29439 # Create .gdbinit.
29440
29441 echo "dir ." > .gdbinit
29442 echo "dir ${srcdir}" >> .gdbinit
29443 if test x$gdb_needs_out_file_path = xyes
29444 then
29445 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29446 fi
29447 if test "x$subdirs" != x; then
29448 for s in $subdirs
29449 do
29450 echo "dir ${srcdir}/$s" >> .gdbinit
29451 done
29452 fi
29453 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29454 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29455
29456 # Put a breakpoint on __asan_report_error to help with debugging buffer
29457 # overflow.
29458 case "$CFLAGS" in
29459 *-fsanitize=address*)
29460 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29461 ;;
29462 esac
29463
29464 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29465
29466
29467
29468 # Find a directory in which to install a shared libgcc.
29469
29470 # Check whether --enable-version-specific-runtime-libs was given.
29471 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29472 enableval=$enable_version_specific_runtime_libs;
29473 fi
29474
29475
29476 # Substitute configuration variables
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508
29509
29510
29511
29512
29513
29514
29515
29516
29517
29518
29519
29520
29521
29522
29523
29524
29525
29526
29527
29528
29529
29530
29531
29532
29533
29534
29535
29536
29537
29538
29539
29540
29541
29542
29543 # Echo link setup.
29544 if test x${build} = x${host} ; then
29545 if test x${host} = x${target} ; then
29546 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29547 else
29548 echo "Links are now set up to build a cross-compiler" 1>&2
29549 echo " from ${host} to ${target}." 1>&2
29550 fi
29551 else
29552 if test x${host} = x${target} ; then
29553 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29554 echo " for ${target}." 1>&2
29555 else
29556 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29557 echo " from ${host} to ${target}." 1>&2
29558 fi
29559 fi
29560
29561
29562
29563
29564
29565
29566 if test "x${ISLLIBS}" != "x" ; then
29567
29568 $as_echo "#define HAVE_isl 1" >>confdefs.h
29569
29570 fi
29571
29572 # Check for plugin support
29573 # Check whether --enable-plugin was given.
29574 if test "${enable_plugin+set}" = set; then :
29575 enableval=$enable_plugin; enable_plugin=$enableval
29576 else
29577 enable_plugin=yes; default_plugin=yes
29578 fi
29579
29580
29581 pluginlibs=
29582 plugin_check=yes
29583
29584 case "${host}" in
29585 *-*-mingw*)
29586 # Since plugin support under MinGW is not as straightforward as on
29587 # other platforms (e.g., we have to link import library, etc), we
29588 # only enable it if explicitly requested.
29589 if test x"$default_plugin" = x"yes"; then
29590 enable_plugin=no
29591 elif test x"$enable_plugin" = x"yes"; then
29592 # Use make's target variable to derive import library name.
29593 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29594 plugin_check=no
29595 fi
29596 ;;
29597 *-*-darwin*)
29598 if test x$build = x$host; then
29599 export_sym_check="nm${exeext} -g"
29600 elif test x$host = x$target; then
29601 export_sym_check="$gcc_cv_nm -g"
29602 else
29603 export_sym_check=
29604 fi
29605 ;;
29606 *)
29607 if test x$build = x$host; then
29608 export_sym_check="objdump${exeext} -T"
29609 elif test x$host = x$target; then
29610 export_sym_check="$gcc_cv_objdump -T"
29611 else
29612 export_sym_check=
29613 fi
29614 ;;
29615 esac
29616
29617 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29618
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29620 $as_echo_n "checking for exported symbols... " >&6; }
29621 if test "x$export_sym_check" != x; then
29622 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29623 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29624 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29625 : # No need to use a flag
29626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29627 $as_echo "yes" >&6; }
29628 else
29629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29630 $as_echo "yes" >&6; }
29631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29632 $as_echo_n "checking for -rdynamic... " >&6; }
29633 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29634 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29635 plugin_rdynamic=yes
29636 pluginlibs="-rdynamic"
29637 else
29638 plugin_rdynamic=no
29639 enable_plugin=no
29640 fi
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29642 $as_echo "$plugin_rdynamic" >&6; }
29643 fi
29644 else
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29646 $as_echo "unable to check" >&6; }
29647 fi
29648
29649 # Check -ldl
29650 saved_LIBS="$LIBS"
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29652 $as_echo_n "checking for library containing dlopen... " >&6; }
29653 if ${ac_cv_search_dlopen+:} false; then :
29654 $as_echo_n "(cached) " >&6
29655 else
29656 ac_func_search_save_LIBS=$LIBS
29657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29658 /* end confdefs.h. */
29659
29660 /* Override any GCC internal prototype to avoid an error.
29661 Use char because int might match the return type of a GCC
29662 builtin and then its argument prototype would still apply. */
29663 #ifdef __cplusplus
29664 extern "C"
29665 #endif
29666 char dlopen ();
29667 int
29668 main ()
29669 {
29670 return dlopen ();
29671 ;
29672 return 0;
29673 }
29674 _ACEOF
29675 for ac_lib in '' dl; do
29676 if test -z "$ac_lib"; then
29677 ac_res="none required"
29678 else
29679 ac_res=-l$ac_lib
29680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29681 fi
29682 if ac_fn_cxx_try_link "$LINENO"; then :
29683 ac_cv_search_dlopen=$ac_res
29684 fi
29685 rm -f core conftest.err conftest.$ac_objext \
29686 conftest$ac_exeext
29687 if ${ac_cv_search_dlopen+:} false; then :
29688 break
29689 fi
29690 done
29691 if ${ac_cv_search_dlopen+:} false; then :
29692
29693 else
29694 ac_cv_search_dlopen=no
29695 fi
29696 rm conftest.$ac_ext
29697 LIBS=$ac_func_search_save_LIBS
29698 fi
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29700 $as_echo "$ac_cv_search_dlopen" >&6; }
29701 ac_res=$ac_cv_search_dlopen
29702 if test "$ac_res" != no; then :
29703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29704
29705 fi
29706
29707 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29708 pluginlibs="$pluginlibs -ldl"
29709 fi
29710 LIBS="$saved_LIBS"
29711
29712 # Check that we can build shared objects with -fPIC -shared
29713 saved_LDFLAGS="$LDFLAGS"
29714 saved_CFLAGS="$CFLAGS"
29715 case "${host}" in
29716 *-*-darwin*)
29717 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29718 CFLAGS="$CFLAGS -fPIC"
29719 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29720 ;;
29721 *)
29722 CFLAGS="$CFLAGS -fPIC"
29723 LDFLAGS="$LDFLAGS -fPIC -shared"
29724 ;;
29725 esac
29726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29727 $as_echo_n "checking for -fPIC -shared... " >&6; }
29728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29729 /* end confdefs.h. */
29730 extern int X;
29731 int
29732 main ()
29733 {
29734 return X == 0;
29735 ;
29736 return 0;
29737 }
29738 _ACEOF
29739 if ac_fn_cxx_try_link "$LINENO"; then :
29740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29741 $as_echo "yes" >&6; }; have_pic_shared=yes
29742 else
29743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29744 $as_echo "no" >&6; }; have_pic_shared=no
29745 fi
29746 rm -f core conftest.err conftest.$ac_objext \
29747 conftest$ac_exeext conftest.$ac_ext
29748 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29749 pluginlibs=
29750 enable_plugin=no
29751 fi
29752 LDFLAGS="$saved_LDFLAGS"
29753 CFLAGS="$saved_CFLAGS"
29754
29755 # If plugin support had been requested but not available, fail.
29756 if test x"$enable_plugin" = x"no" ; then
29757 if test x"$default_plugin" != x"yes"; then
29758 as_fn_error $? "
29759 Building GCC with plugin support requires a host that supports
29760 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29761 fi
29762 fi
29763 fi
29764
29765
29766
29767 if test x"$enable_plugin" = x"yes"; then
29768
29769 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29770
29771 fi
29772
29773
29774 # Enable --enable-host-shared
29775 # Check whether --enable-host-shared was given.
29776 if test "${enable_host_shared+set}" = set; then :
29777 enableval=$enable_host_shared; PICFLAG=-fPIC
29778 else
29779 PICFLAG=
29780 fi
29781
29782
29783
29784
29785
29786 # Check whether --enable-libquadmath-support was given.
29787 if test "${enable_libquadmath_support+set}" = set; then :
29788 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29789 else
29790 ENABLE_LIBQUADMATH_SUPPORT=yes
29791 fi
29792
29793 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29794
29795 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29796
29797 fi
29798
29799
29800 # Specify what hash style to use by default.
29801
29802 # Check whether --with-linker-hash-style was given.
29803 if test "${with_linker_hash_style+set}" = set; then :
29804 withval=$with_linker_hash_style; case x"$withval" in
29805 xsysv)
29806 LINKER_HASH_STYLE=sysv
29807 ;;
29808 xgnu)
29809 LINKER_HASH_STYLE=gnu
29810 ;;
29811 xboth)
29812 LINKER_HASH_STYLE=both
29813 ;;
29814 *)
29815 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29816 ;;
29817 esac
29818 else
29819 LINKER_HASH_STYLE=''
29820 fi
29821
29822 if test x"${LINKER_HASH_STYLE}" != x; then
29823
29824 cat >>confdefs.h <<_ACEOF
29825 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29826 _ACEOF
29827
29828 fi
29829
29830 # Specify what should be the default of -fdiagnostics-color option.
29831
29832 # Check whether --with-diagnostics-color was given.
29833 if test "${with_diagnostics_color+set}" = set; then :
29834 withval=$with_diagnostics_color; case x"$withval" in
29835 xnever)
29836 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29837 ;;
29838 xauto)
29839 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29840 ;;
29841 xauto-if-env)
29842 DIAGNOSTICS_COLOR_DEFAULT=-1
29843 ;;
29844 xalways)
29845 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29846 ;;
29847 *)
29848 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29849 ;;
29850 esac
29851 else
29852 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29853 fi
29854
29855
29856 cat >>confdefs.h <<_ACEOF
29857 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29858 _ACEOF
29859
29860
29861 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29862 # of jit/jit-playback.c.
29863 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
29864 echo "gcc_driver_version: ${gcc_driver_version}"
29865 cat > gcc-driver-name.h <<EOF
29866 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
29867 EOF
29868
29869 # Check whether --enable-default-pie was given.
29870 # Check whether --enable-default-pie was given.
29871 if test "${enable_default_pie+set}" = set; then :
29872 enableval=$enable_default_pie; enable_default_pie=$enableval
29873 else
29874 enable_default_pie=no
29875 fi
29876
29877 if test x$enable_default_pie = xyes ; then
29878
29879 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29880
29881 fi
29882
29883
29884 # Check if -fno-PIE works.
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29886 $as_echo_n "checking for -fno-PIE option... " >&6; }
29887 if ${gcc_cv_c_no_fpie+:} false; then :
29888 $as_echo_n "(cached) " >&6
29889 else
29890 saved_CXXFLAGS="$CXXFLAGS"
29891 CXXFLAGS="$CXXFLAGS -fno-PIE"
29892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29893 /* end confdefs.h. */
29894 int main(void) {return 0;}
29895 _ACEOF
29896 if ac_fn_cxx_try_compile "$LINENO"; then :
29897 gcc_cv_c_no_fpie=yes
29898 else
29899 gcc_cv_c_no_fpie=no
29900 fi
29901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29902 CXXFLAGS="$saved_CXXFLAGS"
29903 fi
29904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29905 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29906 if test "$gcc_cv_c_no_fpie" = "yes"; then
29907 NO_PIE_CFLAGS="-fno-PIE"
29908 fi
29909
29910
29911 # Check if -no-pie works.
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29913 $as_echo_n "checking for -no-pie option... " >&6; }
29914 if ${gcc_cv_no_pie+:} false; then :
29915 $as_echo_n "(cached) " >&6
29916 else
29917 saved_LDFLAGS="$LDFLAGS"
29918 LDFLAGS="$LDFLAGS -no-pie"
29919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29920 /* end confdefs.h. */
29921 int main(void) {return 0;}
29922 _ACEOF
29923 if ac_fn_cxx_try_link "$LINENO"; then :
29924 gcc_cv_no_pie=yes
29925 else
29926 gcc_cv_no_pie=no
29927 fi
29928 rm -f core conftest.err conftest.$ac_objext \
29929 conftest$ac_exeext conftest.$ac_ext
29930 LDFLAGS="$saved_LDFLAGS"
29931 fi
29932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29933 $as_echo "$gcc_cv_no_pie" >&6; }
29934 if test "$gcc_cv_no_pie" = "yes"; then
29935 NO_PIE_FLAG="-no-pie"
29936 fi
29937
29938
29939 # Check linker supports '-z bndplt'
29940 ld_bndplt_support=no
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29942 $as_echo_n "checking linker -z bndplt option... " >&6; }
29943 if test x"$ld_is_gold" = xno; then
29944 if test $in_tree_ld = yes ; then
29945 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
29946 ld_bndplt_support=yes
29947 fi
29948 elif test x$gcc_cv_ld != x; then
29949 # Check if linker supports -a bndplt option
29950 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
29951 ld_bndplt_support=yes
29952 fi
29953 fi
29954 fi
29955 if test x"$ld_bndplt_support" = xyes; then
29956
29957 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29958
29959 fi
29960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29961 $as_echo "$ld_bndplt_support" >&6; }
29962
29963 # Check linker supports '--push-state'/'--pop-state'
29964 ld_pushpopstate_support=no
29965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29966 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29967 if test x"$ld_is_gold" = xno; then
29968 if test $in_tree_ld = yes ; then
29969 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
29970 ld_pushpopstate_support=yes
29971 fi
29972 elif test x$gcc_cv_ld != x; then
29973 # Check if linker supports --push-state/--pop-state options
29974 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
29975 ld_pushpopstate_support=yes
29976 fi
29977 fi
29978 fi
29979 if test x"$ld_pushpopstate_support" = xyes; then
29980
29981 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29982
29983 fi
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29985 $as_echo "$ld_pushpopstate_support" >&6; }
29986
29987 # Configure the subdirectories
29988 # AC_CONFIG_SUBDIRS($subdirs)
29989
29990 # Create the Makefile
29991 # and configure language subdirectories
29992 ac_config_files="$ac_config_files $all_outputs"
29993
29994
29995 ac_config_commands="$ac_config_commands default"
29996
29997 cat >confcache <<\_ACEOF
29998 # This file is a shell script that caches the results of configure
29999 # tests run on this system so they can be shared between configure
30000 # scripts and configure runs, see configure's option --config-cache.
30001 # It is not useful on other systems. If it contains results you don't
30002 # want to keep, you may remove or edit it.
30003 #
30004 # config.status only pays attention to the cache file if you give it
30005 # the --recheck option to rerun configure.
30006 #
30007 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30008 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30009 # following values.
30010
30011 _ACEOF
30012
30013 # The following way of writing the cache mishandles newlines in values,
30014 # but we know of no workaround that is simple, portable, and efficient.
30015 # So, we kill variables containing newlines.
30016 # Ultrix sh set writes to stderr and can't be redirected directly,
30017 # and sets the high bit in the cache file unless we assign to the vars.
30018 (
30019 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30020 eval ac_val=\$$ac_var
30021 case $ac_val in #(
30022 *${as_nl}*)
30023 case $ac_var in #(
30024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30026 esac
30027 case $ac_var in #(
30028 _ | IFS | as_nl) ;; #(
30029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30030 *) { eval $ac_var=; unset $ac_var;} ;;
30031 esac ;;
30032 esac
30033 done
30034
30035 (set) 2>&1 |
30036 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30037 *${as_nl}ac_space=\ *)
30038 # `set' does not quote correctly, so add quotes: double-quote
30039 # substitution turns \\\\ into \\, and sed turns \\ into \.
30040 sed -n \
30041 "s/'/'\\\\''/g;
30042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30043 ;; #(
30044 *)
30045 # `set' quotes correctly as required by POSIX, so do not add quotes.
30046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30047 ;;
30048 esac |
30049 sort
30050 ) |
30051 sed '
30052 /^ac_cv_env_/b end
30053 t clear
30054 :clear
30055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30056 t end
30057 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30058 :end' >>confcache
30059 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30060 if test -w "$cache_file"; then
30061 if test "x$cache_file" != "x/dev/null"; then
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30063 $as_echo "$as_me: updating cache $cache_file" >&6;}
30064 if test ! -f "$cache_file" || test -h "$cache_file"; then
30065 cat confcache >"$cache_file"
30066 else
30067 case $cache_file in #(
30068 */* | ?:*)
30069 mv -f confcache "$cache_file"$$ &&
30070 mv -f "$cache_file"$$ "$cache_file" ;; #(
30071 *)
30072 mv -f confcache "$cache_file" ;;
30073 esac
30074 fi
30075 fi
30076 else
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30078 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30079 fi
30080 fi
30081 rm -f confcache
30082
30083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30084 # Let make expand exec_prefix.
30085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30086
30087 DEFS=-DHAVE_CONFIG_H
30088
30089 ac_libobjs=
30090 ac_ltlibobjs=
30091 U=
30092 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30093 # 1. Remove the extension, and $U if already installed.
30094 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30095 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30096 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30097 # will be set to the directory where LIBOBJS objects are built.
30098 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30099 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30100 done
30101 LIBOBJS=$ac_libobjs
30102
30103 LTLIBOBJS=$ac_ltlibobjs
30104
30105
30106
30107
30108 : "${CONFIG_STATUS=./config.status}"
30109 ac_write_fail=0
30110 ac_clean_files_save=$ac_clean_files
30111 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30113 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30114 as_write_fail=0
30115 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30116 #! $SHELL
30117 # Generated by $as_me.
30118 # Run this file to recreate the current configuration.
30119 # Compiler output produced by configure, useful for debugging
30120 # configure, is in config.log if it exists.
30121
30122 debug=false
30123 ac_cs_recheck=false
30124 ac_cs_silent=false
30125
30126 SHELL=\${CONFIG_SHELL-$SHELL}
30127 export SHELL
30128 _ASEOF
30129 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30130 ## -------------------- ##
30131 ## M4sh Initialization. ##
30132 ## -------------------- ##
30133
30134 # Be more Bourne compatible
30135 DUALCASE=1; export DUALCASE # for MKS sh
30136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30137 emulate sh
30138 NULLCMD=:
30139 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30140 # is contrary to our usage. Disable this feature.
30141 alias -g '${1+"$@"}'='"$@"'
30142 setopt NO_GLOB_SUBST
30143 else
30144 case `(set -o) 2>/dev/null` in #(
30145 *posix*) :
30146 set -o posix ;; #(
30147 *) :
30148 ;;
30149 esac
30150 fi
30151
30152
30153 as_nl='
30154 '
30155 export as_nl
30156 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30157 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30158 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30159 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30160 # Prefer a ksh shell builtin over an external printf program on Solaris,
30161 # but without wasting forks for bash or zsh.
30162 if test -z "$BASH_VERSION$ZSH_VERSION" \
30163 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30164 as_echo='print -r --'
30165 as_echo_n='print -rn --'
30166 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30167 as_echo='printf %s\n'
30168 as_echo_n='printf %s'
30169 else
30170 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30171 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30172 as_echo_n='/usr/ucb/echo -n'
30173 else
30174 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30175 as_echo_n_body='eval
30176 arg=$1;
30177 case $arg in #(
30178 *"$as_nl"*)
30179 expr "X$arg" : "X\\(.*\\)$as_nl";
30180 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30181 esac;
30182 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30183 '
30184 export as_echo_n_body
30185 as_echo_n='sh -c $as_echo_n_body as_echo'
30186 fi
30187 export as_echo_body
30188 as_echo='sh -c $as_echo_body as_echo'
30189 fi
30190
30191 # The user is always right.
30192 if test "${PATH_SEPARATOR+set}" != set; then
30193 PATH_SEPARATOR=:
30194 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30195 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30196 PATH_SEPARATOR=';'
30197 }
30198 fi
30199
30200
30201 # IFS
30202 # We need space, tab and new line, in precisely that order. Quoting is
30203 # there to prevent editors from complaining about space-tab.
30204 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30205 # splitting by setting IFS to empty value.)
30206 IFS=" "" $as_nl"
30207
30208 # Find who we are. Look in the path if we contain no directory separator.
30209 as_myself=
30210 case $0 in #((
30211 *[\\/]* ) as_myself=$0 ;;
30212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30213 for as_dir in $PATH
30214 do
30215 IFS=$as_save_IFS
30216 test -z "$as_dir" && as_dir=.
30217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30218 done
30219 IFS=$as_save_IFS
30220
30221 ;;
30222 esac
30223 # We did not find ourselves, most probably we were run as `sh COMMAND'
30224 # in which case we are not to be found in the path.
30225 if test "x$as_myself" = x; then
30226 as_myself=$0
30227 fi
30228 if test ! -f "$as_myself"; then
30229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30230 exit 1
30231 fi
30232
30233 # Unset variables that we do not need and which cause bugs (e.g. in
30234 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30235 # suppresses any "Segmentation fault" message there. '((' could
30236 # trigger a bug in pdksh 5.2.14.
30237 for as_var in BASH_ENV ENV MAIL MAILPATH
30238 do eval test x\${$as_var+set} = xset \
30239 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30240 done
30241 PS1='$ '
30242 PS2='> '
30243 PS4='+ '
30244
30245 # NLS nuisances.
30246 LC_ALL=C
30247 export LC_ALL
30248 LANGUAGE=C
30249 export LANGUAGE
30250
30251 # CDPATH.
30252 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30253
30254
30255 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30256 # ----------------------------------------
30257 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30258 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30259 # script with STATUS, using 1 if that was 0.
30260 as_fn_error ()
30261 {
30262 as_status=$1; test $as_status -eq 0 && as_status=1
30263 if test "$4"; then
30264 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30265 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30266 fi
30267 $as_echo "$as_me: error: $2" >&2
30268 as_fn_exit $as_status
30269 } # as_fn_error
30270
30271
30272 # as_fn_set_status STATUS
30273 # -----------------------
30274 # Set $? to STATUS, without forking.
30275 as_fn_set_status ()
30276 {
30277 return $1
30278 } # as_fn_set_status
30279
30280 # as_fn_exit STATUS
30281 # -----------------
30282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30283 as_fn_exit ()
30284 {
30285 set +e
30286 as_fn_set_status $1
30287 exit $1
30288 } # as_fn_exit
30289
30290 # as_fn_unset VAR
30291 # ---------------
30292 # Portably unset VAR.
30293 as_fn_unset ()
30294 {
30295 { eval $1=; unset $1;}
30296 }
30297 as_unset=as_fn_unset
30298 # as_fn_append VAR VALUE
30299 # ----------------------
30300 # Append the text in VALUE to the end of the definition contained in VAR. Take
30301 # advantage of any shell optimizations that allow amortized linear growth over
30302 # repeated appends, instead of the typical quadratic growth present in naive
30303 # implementations.
30304 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30305 eval 'as_fn_append ()
30306 {
30307 eval $1+=\$2
30308 }'
30309 else
30310 as_fn_append ()
30311 {
30312 eval $1=\$$1\$2
30313 }
30314 fi # as_fn_append
30315
30316 # as_fn_arith ARG...
30317 # ------------------
30318 # Perform arithmetic evaluation on the ARGs, and store the result in the
30319 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30320 # must be portable across $(()) and expr.
30321 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30322 eval 'as_fn_arith ()
30323 {
30324 as_val=$(( $* ))
30325 }'
30326 else
30327 as_fn_arith ()
30328 {
30329 as_val=`expr "$@" || test $? -eq 1`
30330 }
30331 fi # as_fn_arith
30332
30333
30334 if expr a : '\(a\)' >/dev/null 2>&1 &&
30335 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30336 as_expr=expr
30337 else
30338 as_expr=false
30339 fi
30340
30341 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30342 as_basename=basename
30343 else
30344 as_basename=false
30345 fi
30346
30347 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30348 as_dirname=dirname
30349 else
30350 as_dirname=false
30351 fi
30352
30353 as_me=`$as_basename -- "$0" ||
30354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30355 X"$0" : 'X\(//\)$' \| \
30356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30357 $as_echo X/"$0" |
30358 sed '/^.*\/\([^/][^/]*\)\/*$/{
30359 s//\1/
30360 q
30361 }
30362 /^X\/\(\/\/\)$/{
30363 s//\1/
30364 q
30365 }
30366 /^X\/\(\/\).*/{
30367 s//\1/
30368 q
30369 }
30370 s/.*/./; q'`
30371
30372 # Avoid depending upon Character Ranges.
30373 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30374 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30375 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30376 as_cr_digits='0123456789'
30377 as_cr_alnum=$as_cr_Letters$as_cr_digits
30378
30379 ECHO_C= ECHO_N= ECHO_T=
30380 case `echo -n x` in #(((((
30381 -n*)
30382 case `echo 'xy\c'` in
30383 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30384 xy) ECHO_C='\c';;
30385 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30386 ECHO_T=' ';;
30387 esac;;
30388 *)
30389 ECHO_N='-n';;
30390 esac
30391
30392 rm -f conf$$ conf$$.exe conf$$.file
30393 if test -d conf$$.dir; then
30394 rm -f conf$$.dir/conf$$.file
30395 else
30396 rm -f conf$$.dir
30397 mkdir conf$$.dir 2>/dev/null
30398 fi
30399 if (echo >conf$$.file) 2>/dev/null; then
30400 if ln -s conf$$.file conf$$ 2>/dev/null; then
30401 as_ln_s='ln -s'
30402 # ... but there are two gotchas:
30403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30405 # In both cases, we have to default to `cp -pR'.
30406 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30407 as_ln_s='cp -pR'
30408 elif ln conf$$.file conf$$ 2>/dev/null; then
30409 as_ln_s=ln
30410 else
30411 as_ln_s='cp -pR'
30412 fi
30413 else
30414 as_ln_s='cp -pR'
30415 fi
30416 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30417 rmdir conf$$.dir 2>/dev/null
30418
30419
30420 # as_fn_mkdir_p
30421 # -------------
30422 # Create "$as_dir" as a directory, including parents if necessary.
30423 as_fn_mkdir_p ()
30424 {
30425
30426 case $as_dir in #(
30427 -*) as_dir=./$as_dir;;
30428 esac
30429 test -d "$as_dir" || eval $as_mkdir_p || {
30430 as_dirs=
30431 while :; do
30432 case $as_dir in #(
30433 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30434 *) as_qdir=$as_dir;;
30435 esac
30436 as_dirs="'$as_qdir' $as_dirs"
30437 as_dir=`$as_dirname -- "$as_dir" ||
30438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30439 X"$as_dir" : 'X\(//\)[^/]' \| \
30440 X"$as_dir" : 'X\(//\)$' \| \
30441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30442 $as_echo X"$as_dir" |
30443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30444 s//\1/
30445 q
30446 }
30447 /^X\(\/\/\)[^/].*/{
30448 s//\1/
30449 q
30450 }
30451 /^X\(\/\/\)$/{
30452 s//\1/
30453 q
30454 }
30455 /^X\(\/\).*/{
30456 s//\1/
30457 q
30458 }
30459 s/.*/./; q'`
30460 test -d "$as_dir" && break
30461 done
30462 test -z "$as_dirs" || eval "mkdir $as_dirs"
30463 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30464
30465
30466 } # as_fn_mkdir_p
30467 if mkdir -p . 2>/dev/null; then
30468 as_mkdir_p='mkdir -p "$as_dir"'
30469 else
30470 test -d ./-p && rmdir ./-p
30471 as_mkdir_p=false
30472 fi
30473
30474
30475 # as_fn_executable_p FILE
30476 # -----------------------
30477 # Test if FILE is an executable regular file.
30478 as_fn_executable_p ()
30479 {
30480 test -f "$1" && test -x "$1"
30481 } # as_fn_executable_p
30482 as_test_x='test -x'
30483 as_executable_p=as_fn_executable_p
30484
30485 # Sed expression to map a string onto a valid CPP name.
30486 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30487
30488 # Sed expression to map a string onto a valid variable name.
30489 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30490
30491
30492 exec 6>&1
30493 ## ----------------------------------- ##
30494 ## Main body of $CONFIG_STATUS script. ##
30495 ## ----------------------------------- ##
30496 _ASEOF
30497 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30498
30499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30500 # Save the log message, to keep $0 and so on meaningful, and to
30501 # report actual input values of CONFIG_FILES etc. instead of their
30502 # values after options handling.
30503 ac_log="
30504 This file was extended by $as_me, which was
30505 generated by GNU Autoconf 2.69. Invocation command line was
30506
30507 CONFIG_FILES = $CONFIG_FILES
30508 CONFIG_HEADERS = $CONFIG_HEADERS
30509 CONFIG_LINKS = $CONFIG_LINKS
30510 CONFIG_COMMANDS = $CONFIG_COMMANDS
30511 $ $0 $@
30512
30513 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30514 "
30515
30516 _ACEOF
30517
30518 case $ac_config_files in *"
30519 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30520 esac
30521
30522 case $ac_config_headers in *"
30523 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30524 esac
30525
30526
30527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30528 # Files that config.status was made for.
30529 config_files="$ac_config_files"
30530 config_headers="$ac_config_headers"
30531 config_links="$ac_config_links"
30532 config_commands="$ac_config_commands"
30533
30534 _ACEOF
30535
30536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30537 ac_cs_usage="\
30538 \`$as_me' instantiates files and other configuration actions
30539 from templates according to the current configuration. Unless the files
30540 and actions are specified as TAGs, all are instantiated by default.
30541
30542 Usage: $0 [OPTION]... [TAG]...
30543
30544 -h, --help print this help, then exit
30545 -V, --version print version number and configuration settings, then exit
30546 --config print configuration, then exit
30547 -q, --quiet, --silent
30548 do not print progress messages
30549 -d, --debug don't remove temporary files
30550 --recheck update $as_me by reconfiguring in the same conditions
30551 --file=FILE[:TEMPLATE]
30552 instantiate the configuration file FILE
30553 --header=FILE[:TEMPLATE]
30554 instantiate the configuration header FILE
30555
30556 Configuration files:
30557 $config_files
30558
30559 Configuration headers:
30560 $config_headers
30561
30562 Configuration links:
30563 $config_links
30564
30565 Configuration commands:
30566 $config_commands
30567
30568 Report bugs to the package provider."
30569
30570 _ACEOF
30571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30572 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30573 ac_cs_version="\\
30574 config.status
30575 configured by $0, generated by GNU Autoconf 2.69,
30576 with options \\"\$ac_cs_config\\"
30577
30578 Copyright (C) 2012 Free Software Foundation, Inc.
30579 This config.status script is free software; the Free Software Foundation
30580 gives unlimited permission to copy, distribute and modify it."
30581
30582 ac_pwd='$ac_pwd'
30583 srcdir='$srcdir'
30584 AWK='$AWK'
30585 test -n "\$AWK" || AWK=awk
30586 _ACEOF
30587
30588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30589 # The default lists apply if the user does not specify any file.
30590 ac_need_defaults=:
30591 while test $# != 0
30592 do
30593 case $1 in
30594 --*=?*)
30595 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30596 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30597 ac_shift=:
30598 ;;
30599 --*=)
30600 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30601 ac_optarg=
30602 ac_shift=:
30603 ;;
30604 *)
30605 ac_option=$1
30606 ac_optarg=$2
30607 ac_shift=shift
30608 ;;
30609 esac
30610
30611 case $ac_option in
30612 # Handling of the options.
30613 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30614 ac_cs_recheck=: ;;
30615 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30616 $as_echo "$ac_cs_version"; exit ;;
30617 --config | --confi | --conf | --con | --co | --c )
30618 $as_echo "$ac_cs_config"; exit ;;
30619 --debug | --debu | --deb | --de | --d | -d )
30620 debug=: ;;
30621 --file | --fil | --fi | --f )
30622 $ac_shift
30623 case $ac_optarg in
30624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30625 '') as_fn_error $? "missing file argument" ;;
30626 esac
30627 as_fn_append CONFIG_FILES " '$ac_optarg'"
30628 ac_need_defaults=false;;
30629 --header | --heade | --head | --hea )
30630 $ac_shift
30631 case $ac_optarg in
30632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30633 esac
30634 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30635 ac_need_defaults=false;;
30636 --he | --h)
30637 # Conflict between --help and --header
30638 as_fn_error $? "ambiguous option: \`$1'
30639 Try \`$0 --help' for more information.";;
30640 --help | --hel | -h )
30641 $as_echo "$ac_cs_usage"; exit ;;
30642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30643 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30644 ac_cs_silent=: ;;
30645
30646 # This is an error.
30647 -*) as_fn_error $? "unrecognized option: \`$1'
30648 Try \`$0 --help' for more information." ;;
30649
30650 *) as_fn_append ac_config_targets " $1"
30651 ac_need_defaults=false ;;
30652
30653 esac
30654 shift
30655 done
30656
30657 ac_configure_extra_args=
30658
30659 if $ac_cs_silent; then
30660 exec 6>/dev/null
30661 ac_configure_extra_args="$ac_configure_extra_args --silent"
30662 fi
30663
30664 _ACEOF
30665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30666 if \$ac_cs_recheck; then
30667 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30668 shift
30669 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30670 CONFIG_SHELL='$SHELL'
30671 export CONFIG_SHELL
30672 exec "\$@"
30673 fi
30674
30675 _ACEOF
30676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30677 exec 5>>config.log
30678 {
30679 echo
30680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30681 ## Running $as_me. ##
30682 _ASBOX
30683 $as_echo "$ac_log"
30684 } >&5
30685
30686 _ACEOF
30687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30688 #
30689 # INIT-COMMANDS
30690 #
30691 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30692 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30693 subdirs='$subdirs'
30694
30695 _ACEOF
30696
30697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30698
30699 # Handling of arguments.
30700 for ac_config_target in $ac_config_targets
30701 do
30702 case $ac_config_target in
30703 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30704 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30705 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30706 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30707 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30708 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30709 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30710 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30711 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30712
30713 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30714 esac
30715 done
30716
30717
30718 # If the user did not use the arguments to specify the items to instantiate,
30719 # then the envvar interface is used. Set only those that are not.
30720 # We use the long form for the default assignment because of an extremely
30721 # bizarre bug on SunOS 4.1.3.
30722 if $ac_need_defaults; then
30723 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30724 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30725 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30726 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30727 fi
30728
30729 # Have a temporary directory for convenience. Make it in the build tree
30730 # simply because there is no reason against having it here, and in addition,
30731 # creating and moving files from /tmp can sometimes cause problems.
30732 # Hook for its removal unless debugging.
30733 # Note that there is a small window in which the directory will not be cleaned:
30734 # after its creation but before its name has been assigned to `$tmp'.
30735 $debug ||
30736 {
30737 tmp= ac_tmp=
30738 trap 'exit_status=$?
30739 : "${ac_tmp:=$tmp}"
30740 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30741 ' 0
30742 trap 'as_fn_exit 1' 1 2 13 15
30743 }
30744 # Create a (secure) tmp directory for tmp files.
30745
30746 {
30747 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30748 test -d "$tmp"
30749 } ||
30750 {
30751 tmp=./conf$$-$RANDOM
30752 (umask 077 && mkdir "$tmp")
30753 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30754 ac_tmp=$tmp
30755
30756 # Set up the scripts for CONFIG_FILES section.
30757 # No need to generate them if there are no CONFIG_FILES.
30758 # This happens for instance with `./config.status config.h'.
30759 if test -n "$CONFIG_FILES"; then
30760
30761 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30762 ac_cs_awk_getline=:
30763 ac_cs_awk_pipe_init=
30764 ac_cs_awk_read_file='
30765 while ((getline aline < (F[key])) > 0)
30766 print(aline)
30767 close(F[key])'
30768 ac_cs_awk_pipe_fini=
30769 else
30770 ac_cs_awk_getline=false
30771 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30772 ac_cs_awk_read_file='
30773 print "|#_!!_#|"
30774 print "cat " F[key] " &&"
30775 '$ac_cs_awk_pipe_init
30776 # The final `:' finishes the AND list.
30777 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30778 fi
30779 ac_cr=`echo X | tr X '\015'`
30780 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30781 # But we know of no other shell where ac_cr would be empty at this
30782 # point, so we can use a bashism as a fallback.
30783 if test "x$ac_cr" = x; then
30784 eval ac_cr=\$\'\\r\'
30785 fi
30786 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30787 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30788 ac_cs_awk_cr='\\r'
30789 else
30790 ac_cs_awk_cr=$ac_cr
30791 fi
30792
30793 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30794 _ACEOF
30795
30796 # Create commands to substitute file output variables.
30797 {
30798 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30799 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
30800 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30801 echo "_ACAWK" &&
30802 echo "_ACEOF"
30803 } >conf$$files.sh &&
30804 . ./conf$$files.sh ||
30805 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30806 rm -f conf$$files.sh
30807
30808 {
30809 echo "cat >conf$$subs.awk <<_ACEOF" &&
30810 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30811 echo "_ACEOF"
30812 } >conf$$subs.sh ||
30813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30814 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30815 ac_delim='%!_!# '
30816 for ac_last_try in false false false false false :; do
30817 . ./conf$$subs.sh ||
30818 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30819
30820 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30821 if test $ac_delim_n = $ac_delim_num; then
30822 break
30823 elif $ac_last_try; then
30824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30825 else
30826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30827 fi
30828 done
30829 rm -f conf$$subs.sh
30830
30831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30832 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30833 _ACEOF
30834 sed -n '
30835 h
30836 s/^/S["/; s/!.*/"]=/
30837 p
30838 g
30839 s/^[^!]*!//
30840 :repl
30841 t repl
30842 s/'"$ac_delim"'$//
30843 t delim
30844 :nl
30845 h
30846 s/\(.\{148\}\)..*/\1/
30847 t more1
30848 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30849 p
30850 n
30851 b repl
30852 :more1
30853 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30854 p
30855 g
30856 s/.\{148\}//
30857 t nl
30858 :delim
30859 h
30860 s/\(.\{148\}\)..*/\1/
30861 t more2
30862 s/["\\]/\\&/g; s/^/"/; s/$/"/
30863 p
30864 b
30865 :more2
30866 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30867 p
30868 g
30869 s/.\{148\}//
30870 t delim
30871 ' <conf$$subs.awk | sed '
30872 /^[^""]/{
30873 N
30874 s/\n//
30875 }
30876 ' >>$CONFIG_STATUS || ac_write_fail=1
30877 rm -f conf$$subs.awk
30878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30879 _ACAWK
30880 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30881 for (key in S) S_is_set[key] = 1
30882 FS = "\a"
30883 \$ac_cs_awk_pipe_init
30884 }
30885 {
30886 line = $ 0
30887 nfields = split(line, field, "@")
30888 substed = 0
30889 len = length(field[1])
30890 for (i = 2; i < nfields; i++) {
30891 key = field[i]
30892 keylen = length(key)
30893 if (S_is_set[key]) {
30894 value = S[key]
30895 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30896 len += length(value) + length(field[++i])
30897 substed = 1
30898 } else
30899 len += 1 + keylen
30900 }
30901 if (nfields == 3 && !substed) {
30902 key = field[2]
30903 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30904 \$ac_cs_awk_read_file
30905 next
30906 }
30907 }
30908 print line
30909 }
30910 \$ac_cs_awk_pipe_fini
30911 _ACAWK
30912 _ACEOF
30913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30914 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30915 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30916 else
30917 cat
30918 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30919 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30920 _ACEOF
30921
30922 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30923 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30924 # trailing colons and then remove the whole line if VPATH becomes empty
30925 # (actually we leave an empty line to preserve line numbers).
30926 if test "x$srcdir" = x.; then
30927 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30928 h
30929 s///
30930 s/^/:/
30931 s/[ ]*$/:/
30932 s/:\$(srcdir):/:/g
30933 s/:\${srcdir}:/:/g
30934 s/:@srcdir@:/:/g
30935 s/^:*//
30936 s/:*$//
30937 x
30938 s/\(=[ ]*\).*/\1/
30939 G
30940 s/\n//
30941 s/^[^=]*=[ ]*$//
30942 }'
30943 fi
30944
30945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30946 fi # test -n "$CONFIG_FILES"
30947
30948 # Set up the scripts for CONFIG_HEADERS section.
30949 # No need to generate them if there are no CONFIG_HEADERS.
30950 # This happens for instance with `./config.status Makefile'.
30951 if test -n "$CONFIG_HEADERS"; then
30952 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30953 BEGIN {
30954 _ACEOF
30955
30956 # Transform confdefs.h into an awk script `defines.awk', embedded as
30957 # here-document in config.status, that substitutes the proper values into
30958 # config.h.in to produce config.h.
30959
30960 # Create a delimiter string that does not exist in confdefs.h, to ease
30961 # handling of long lines.
30962 ac_delim='%!_!# '
30963 for ac_last_try in false false :; do
30964 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30965 if test -z "$ac_tt"; then
30966 break
30967 elif $ac_last_try; then
30968 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30969 else
30970 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30971 fi
30972 done
30973
30974 # For the awk script, D is an array of macro values keyed by name,
30975 # likewise P contains macro parameters if any. Preserve backslash
30976 # newline sequences.
30977
30978 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30979 sed -n '
30980 s/.\{148\}/&'"$ac_delim"'/g
30981 t rset
30982 :rset
30983 s/^[ ]*#[ ]*define[ ][ ]*/ /
30984 t def
30985 d
30986 :def
30987 s/\\$//
30988 t bsnl
30989 s/["\\]/\\&/g
30990 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30991 D["\1"]=" \3"/p
30992 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30993 d
30994 :bsnl
30995 s/["\\]/\\&/g
30996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30997 D["\1"]=" \3\\\\\\n"\\/p
30998 t cont
30999 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31000 t cont
31001 d
31002 :cont
31003 n
31004 s/.\{148\}/&'"$ac_delim"'/g
31005 t clear
31006 :clear
31007 s/\\$//
31008 t bsnlc
31009 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31010 d
31011 :bsnlc
31012 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31013 b cont
31014 ' <confdefs.h | sed '
31015 s/'"$ac_delim"'/"\\\
31016 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31017
31018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31019 for (key in D) D_is_set[key] = 1
31020 FS = "\a"
31021 }
31022 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31023 line = \$ 0
31024 split(line, arg, " ")
31025 if (arg[1] == "#") {
31026 defundef = arg[2]
31027 mac1 = arg[3]
31028 } else {
31029 defundef = substr(arg[1], 2)
31030 mac1 = arg[2]
31031 }
31032 split(mac1, mac2, "(") #)
31033 macro = mac2[1]
31034 prefix = substr(line, 1, index(line, defundef) - 1)
31035 if (D_is_set[macro]) {
31036 # Preserve the white space surrounding the "#".
31037 print prefix "define", macro P[macro] D[macro]
31038 next
31039 } else {
31040 # Replace #undef with comments. This is necessary, for example,
31041 # in the case of _POSIX_SOURCE, which is predefined and required
31042 # on some systems where configure will not decide to define it.
31043 if (defundef == "undef") {
31044 print "/*", prefix defundef, macro, "*/"
31045 next
31046 }
31047 }
31048 }
31049 { print }
31050 _ACAWK
31051 _ACEOF
31052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31053 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31054 fi # test -n "$CONFIG_HEADERS"
31055
31056
31057 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31058 shift
31059 for ac_tag
31060 do
31061 case $ac_tag in
31062 :[FHLC]) ac_mode=$ac_tag; continue;;
31063 esac
31064 case $ac_mode$ac_tag in
31065 :[FHL]*:*);;
31066 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31067 :[FH]-) ac_tag=-:-;;
31068 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31069 esac
31070 ac_save_IFS=$IFS
31071 IFS=:
31072 set x $ac_tag
31073 IFS=$ac_save_IFS
31074 shift
31075 ac_file=$1
31076 shift
31077
31078 case $ac_mode in
31079 :L) ac_source=$1;;
31080 :[FH])
31081 ac_file_inputs=
31082 for ac_f
31083 do
31084 case $ac_f in
31085 -) ac_f="$ac_tmp/stdin";;
31086 *) # Look for the file first in the build tree, then in the source tree
31087 # (if the path is not absolute). The absolute path cannot be DOS-style,
31088 # because $ac_f cannot contain `:'.
31089 test -f "$ac_f" ||
31090 case $ac_f in
31091 [\\/$]*) false;;
31092 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31093 esac ||
31094 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31095 esac
31096 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31097 as_fn_append ac_file_inputs " '$ac_f'"
31098 done
31099
31100 # Let's still pretend it is `configure' which instantiates (i.e., don't
31101 # use $as_me), people would be surprised to read:
31102 # /* config.h. Generated by config.status. */
31103 configure_input='Generated from '`
31104 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31105 `' by configure.'
31106 if test x"$ac_file" != x-; then
31107 configure_input="$ac_file. $configure_input"
31108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31109 $as_echo "$as_me: creating $ac_file" >&6;}
31110 fi
31111 # Neutralize special characters interpreted by sed in replacement strings.
31112 case $configure_input in #(
31113 *\&* | *\|* | *\\* )
31114 ac_sed_conf_input=`$as_echo "$configure_input" |
31115 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31116 *) ac_sed_conf_input=$configure_input;;
31117 esac
31118
31119 case $ac_tag in
31120 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31122 esac
31123 ;;
31124 esac
31125
31126 ac_dir=`$as_dirname -- "$ac_file" ||
31127 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31128 X"$ac_file" : 'X\(//\)[^/]' \| \
31129 X"$ac_file" : 'X\(//\)$' \| \
31130 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31131 $as_echo X"$ac_file" |
31132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31133 s//\1/
31134 q
31135 }
31136 /^X\(\/\/\)[^/].*/{
31137 s//\1/
31138 q
31139 }
31140 /^X\(\/\/\)$/{
31141 s//\1/
31142 q
31143 }
31144 /^X\(\/\).*/{
31145 s//\1/
31146 q
31147 }
31148 s/.*/./; q'`
31149 as_dir="$ac_dir"; as_fn_mkdir_p
31150 ac_builddir=.
31151
31152 case "$ac_dir" in
31153 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31154 *)
31155 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31156 # A ".." for each directory in $ac_dir_suffix.
31157 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31158 case $ac_top_builddir_sub in
31159 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31160 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31161 esac ;;
31162 esac
31163 ac_abs_top_builddir=$ac_pwd
31164 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31165 # for backward compatibility:
31166 ac_top_builddir=$ac_top_build_prefix
31167
31168 case $srcdir in
31169 .) # We are building in place.
31170 ac_srcdir=.
31171 ac_top_srcdir=$ac_top_builddir_sub
31172 ac_abs_top_srcdir=$ac_pwd ;;
31173 [\\/]* | ?:[\\/]* ) # Absolute name.
31174 ac_srcdir=$srcdir$ac_dir_suffix;
31175 ac_top_srcdir=$srcdir
31176 ac_abs_top_srcdir=$srcdir ;;
31177 *) # Relative name.
31178 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31179 ac_top_srcdir=$ac_top_build_prefix$srcdir
31180 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31181 esac
31182 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31183
31184
31185 case $ac_mode in
31186 :F)
31187 #
31188 # CONFIG_FILE
31189 #
31190
31191 _ACEOF
31192
31193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31194 # If the template does not know about datarootdir, expand it.
31195 # FIXME: This hack should be removed a few years after 2.60.
31196 ac_datarootdir_hack=; ac_datarootdir_seen=
31197 ac_sed_dataroot='
31198 /datarootdir/ {
31199 p
31200 q
31201 }
31202 /@datadir@/p
31203 /@docdir@/p
31204 /@infodir@/p
31205 /@localedir@/p
31206 /@mandir@/p'
31207 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31208 *datarootdir*) ac_datarootdir_seen=yes;;
31209 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31211 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31212 _ACEOF
31213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31214 ac_datarootdir_hack='
31215 s&@datadir@&$datadir&g
31216 s&@docdir@&$docdir&g
31217 s&@infodir@&$infodir&g
31218 s&@localedir@&$localedir&g
31219 s&@mandir@&$mandir&g
31220 s&\\\${datarootdir}&$datarootdir&g' ;;
31221 esac
31222 _ACEOF
31223
31224 # Neutralize VPATH when `$srcdir' = `.'.
31225 # Shell code in configure.ac might set extrasub.
31226 # FIXME: do we really want to maintain this feature?
31227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31228 ac_sed_extra="$ac_vpsub
31229 $extrasub
31230 _ACEOF
31231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31232 :t
31233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31234 s|@configure_input@|$ac_sed_conf_input|;t t
31235 s&@top_builddir@&$ac_top_builddir_sub&;t t
31236 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31237 s&@srcdir@&$ac_srcdir&;t t
31238 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31239 s&@top_srcdir@&$ac_top_srcdir&;t t
31240 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31241 s&@builddir@&$ac_builddir&;t t
31242 s&@abs_builddir@&$ac_abs_builddir&;t t
31243 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31244 $ac_datarootdir_hack
31245 "
31246 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31247 if $ac_cs_awk_getline; then
31248 $AWK -f "$ac_tmp/subs.awk"
31249 else
31250 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31251 fi \
31252 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31253
31254 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31255 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31257 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31259 which seems to be undefined. Please make sure it is defined" >&5
31260 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31261 which seems to be undefined. Please make sure it is defined" >&2;}
31262
31263 rm -f "$ac_tmp/stdin"
31264 case $ac_file in
31265 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31266 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31267 esac \
31268 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31269 ;;
31270 :H)
31271 #
31272 # CONFIG_HEADER
31273 #
31274 if test x"$ac_file" != x-; then
31275 {
31276 $as_echo "/* $configure_input */" \
31277 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31278 } >"$ac_tmp/config.h" \
31279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31280 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31281 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31282 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31283 else
31284 rm -f "$ac_file"
31285 mv "$ac_tmp/config.h" "$ac_file" \
31286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31287 fi
31288 else
31289 $as_echo "/* $configure_input */" \
31290 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31291 || as_fn_error $? "could not create -" "$LINENO" 5
31292 fi
31293 ;;
31294 :L)
31295 #
31296 # CONFIG_LINK
31297 #
31298
31299 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31300 :
31301 else
31302 # Prefer the file from the source tree if names are identical.
31303 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31304 ac_source=$srcdir/$ac_source
31305 fi
31306
31307 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31308 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31309
31310 if test ! -r "$ac_source"; then
31311 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31312 fi
31313 rm -f "$ac_file"
31314
31315 # Try a relative symlink, then a hard link, then a copy.
31316 case $ac_source in
31317 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31318 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31319 esac
31320 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31321 ln "$ac_source" "$ac_file" 2>/dev/null ||
31322 cp -p "$ac_source" "$ac_file" ||
31323 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31324 fi
31325 ;;
31326 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31327 $as_echo "$as_me: executing $ac_file commands" >&6;}
31328 ;;
31329 esac
31330
31331
31332 case $ac_file$ac_mode in
31333 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31334 "gccdepdir":C)
31335 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31336 for lang in $subdirs c-family common
31337 do
31338 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31339 done ;;
31340 "as":F) chmod +x as ;;
31341 "collect-ld":F) chmod +x collect-ld ;;
31342 "nm":F) chmod +x nm ;;
31343 "default":C)
31344 case ${CONFIG_HEADERS} in
31345 *auto-host.h:config.in*)
31346 echo > cstamp-h ;;
31347 esac
31348 # Make sure all the subdirs exist.
31349 for d in $subdirs doc build common c-family
31350 do
31351 test -d $d || mkdir $d
31352 done
31353 ;;
31354
31355 esac
31356 done # for ac_tag
31357
31358
31359 as_fn_exit 0
31360 _ACEOF
31361 ac_clean_files=$ac_clean_files_save
31362
31363 test $ac_write_fail = 0 ||
31364 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31365
31366
31367 # configure is writing to config.log, and then calls config.status.
31368 # config.status does its own redirection, appending to config.log.
31369 # Unfortunately, on DOS this fails, as config.log is still kept open
31370 # by configure, so config.status won't be able to write to it; its
31371 # output is simply discarded. So we exec the FD to /dev/null,
31372 # effectively closing config.log, so it can be properly (re)opened and
31373 # appended to by config.status. When coming back to configure, we
31374 # need to make the FD available again.
31375 if test "$no_create" != yes; then
31376 ac_cs_success=:
31377 ac_config_status_args=
31378 test "$silent" = yes &&
31379 ac_config_status_args="$ac_config_status_args --quiet"
31380 exec 5>/dev/null
31381 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31382 exec 5>>config.log
31383 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31384 # would make configure fail if this is the last instruction.
31385 $ac_cs_success || as_fn_exit 1
31386 fi
31387 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31389 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31390 fi
31391
31392