a4d8a2177058e788ab42fe8cc8251ea36ce014f3
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 thread_file
625 out_object_file
626 out_file
627 objc_boehm_gc
628 md_file
629 local_prefix
630 lang_tree_files
631 lang_specs_files
632 lang_opt_files
633 install
634 out_host_hook_obj
635 host_xm_defines
636 host_xm_include_list
637 host_xm_file_list
638 host_exeext
639 gcc_gxx_include_dir
640 gcc_config_arguments
641 float_h_file
642 extra_programs
643 extra_passes
644 extra_parts
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 slibdir
671 dollar
672 gcc_tooldir
673 enable_lto
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 GGC
679 libgcc_visibility
680 gcc_cv_readelf
681 gcc_cv_objdump
682 ORIGINAL_NM_FOR_TARGET
683 gcc_cv_nm
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 gcc_cv_ld
687 ORIGINAL_AS_FOR_TARGET
688 gcc_cv_as
689 enable_fast_install
690 objdir
691 CXXCPP
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 STRIP
698 OBJDUMP
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 SED
704 LIBTOOL
705 collect2
706 STMP_FIXINC
707 BUILD_LDFLAGS
708 BUILD_CFLAGS
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
712 ALL
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 gthread_flags
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 GNAT_LIBEXC
736 COLLECT2_LIBS
737 AR
738 NM
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
751 LN
752 LN_S
753 AWK
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 enable_shared
763 enable_fixed_point
764 enable_decimal_float
765 enable_multilib
766 ENABLE_BUILD_WITH_CXX
767 coverage_flags
768 valgrind_command
769 valgrind_path_defines
770 valgrind_path
771 TREEBROWSER
772 nocommon_flag
773 warn_cxxflags
774 warn_cflags
775 c_strict_warn
776 strict_warn
777 c_loose_warn
778 loose_warn
779 EGREP
780 GREP
781 CPP
782 OUTPUT_OPTION
783 NO_MINUS_C_MINUS_O
784 GNATMAKE
785 GNATBIND
786 ac_ct_CXX
787 CXXFLAGS
788 CXX
789 OBJEXT
790 EXEEXT
791 ac_ct_CC
792 CPPFLAGS
793 LDFLAGS
794 CFLAGS
795 CC
796 GENINSRC
797 target_subdir
798 host_subdir
799 build_subdir
800 build_libsubdir
801 target_noncanonical
802 target_os
803 target_vendor
804 target_cpu
805 target
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files='language_hooks'
853 ac_user_opts='
854 enable_option_checking
855 with_build_libsubdir
856 with_local_prefix
857 with_gxx_include_dir
858 with_cpp_install_dir
859 enable_generated_files_in_srcdir
860 with_gnu_ld
861 with_ld
862 with_demangler_in_ld
863 with_gnu_as
864 with_as
865 enable_largefile
866 enable_werror_always
867 enable_checking
868 enable_coverage
869 enable_gather_detailed_mem_stats
870 enable_build_with_cxx
871 with_stabs
872 enable_multilib
873 enable___cxa_atexit
874 enable_decimal_float
875 enable_fixed_point
876 enable_threads
877 enable_tls
878 enable_objc_gc
879 with_dwarf2
880 enable_shared
881 with_build_sysroot
882 with_sysroot
883 with_specs
884 with_pkgversion
885 with_bugurl
886 enable_languages
887 with_multilib_list
888 enable_rpath
889 with_libiconv_prefix
890 enable_initfini_array
891 enable_sjlj_exceptions
892 with_system_libunwind
893 enable_secureplt
894 enable_leading_mingw64_underscores
895 enable_cld
896 enable_frame_pointer
897 enable_win32_registry
898 enable_static
899 with_pic
900 enable_fast_install
901 enable_libtool_lock
902 with_plugin_ld
903 enable_gnu_indirect_function
904 enable_comdat
905 enable_gnu_unique_object
906 enable_linker_build_id
907 with_long_double_128
908 with_gc
909 with_system_zlib
910 enable_maintainer_mode
911 enable_version_specific_runtime_libs
912 with_slibdir
913 enable_plugin
914 '
915 ac_precious_vars='build_alias
916 host_alias
917 target_alias
918 CC
919 CFLAGS
920 LDFLAGS
921 LIBS
922 CPPFLAGS
923 CXX
924 CXXFLAGS
925 CCC
926 CPP
927 CXXCPP
928 GMPLIBS
929 GMPINC
930 PPLLIBS
931 PPLINC
932 CLOOGLIBS
933 CLOOGINC'
934
935
936 # Initialize some variables set by options.
937 ac_init_help=
938 ac_init_version=false
939 ac_unrecognized_opts=
940 ac_unrecognized_sep=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
957
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
983
984 ac_prev=
985 ac_dashdash=
986 for ac_option
987 do
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\$ac_option
991 ac_prev=
992 continue
993 fi
994
995 case $ac_option in
996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *) ac_optarg=yes ;;
998 esac
999
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1001
1002 case $ac_dashdash$ac_option in
1003 --)
1004 ac_dashdash=yes ;;
1005
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1010
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1015
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1022
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1025
1026 -datadir | --datadir | --datadi | --datad)
1027 ac_prev=datadir ;;
1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029 datadir=$ac_optarg ;;
1030
1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1037
1038 -disable-* | --disable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error "invalid feature name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=no ;;
1053
1054 -docdir | --docdir | --docdi | --doc | --do)
1055 ac_prev=docdir ;;
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1058
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060 ac_prev=dvidir ;;
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1063
1064 -enable-* | --enable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error "invalid feature name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1072 *"
1073 "enable_$ac_useropt"
1074 "*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval enable_$ac_useropt=\$ac_optarg ;;
1079
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1088
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1091 with_gas=yes ;;
1092
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1099
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1104
1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 ac_prev=htmldir ;;
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 | --ht=*)
1109 htmldir=$ac_optarg ;;
1110
1111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1117
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 ac_prev=infodir ;;
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1122
1123 -libdir | --libdir | --libdi | --libd)
1124 ac_prev=libdir ;;
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1127
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1134
1135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1139
1140 -localstatedir | --localstatedir | --localstatedi | --localstated \
1141 | --localstate | --localstat | --localsta | --localst | --locals)
1142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145 localstatedir=$ac_optarg ;;
1146
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 ac_prev=mandir ;;
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1151
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1154 with_fp=no ;;
1155
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1158 no_create=yes ;;
1159
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 no_recursion=yes ;;
1163
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1172
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 ac_prev=prefix ;;
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1177
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1184
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1191
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1208
1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 ac_prev=pdfdir ;;
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1213
1214 -psdir | --psdir | --psdi | --psd | --ps)
1215 ac_prev=psdir ;;
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 psdir=$ac_optarg ;;
1218
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1221 silent=yes ;;
1222
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 ac_prev=sbindir ;;
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 | --sbi=* | --sb=*)
1227 sbindir=$ac_optarg ;;
1228
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1232 | --sha | --sh)
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 | --sha=* | --sh=*)
1238 sharedstatedir=$ac_optarg ;;
1239
1240 -site | --site | --sit)
1241 ac_prev=site ;;
1242 -site=* | --site=* | --sit=*)
1243 site=$ac_optarg ;;
1244
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 ac_prev=srcdir ;;
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1249
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1256
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1261
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 verbose=yes ;;
1264
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1267
1268 -with-* | --with-*)
1269 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272 as_fn_error "invalid package name: $ac_useropt"
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277 "with_$ac_useropt"
1278 "*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=\$ac_optarg ;;
1283
1284 -without-* | --without-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 as_fn_error "invalid package name: $ac_useropt"
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1292 *"
1293 "with_$ac_useropt"
1294 "*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=no ;;
1299
1300 --x)
1301 # Obsolete; use --with-x.
1302 with_x=yes ;;
1303
1304 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305 | --x-incl | --x-inc | --x-in | --x-i)
1306 ac_prev=x_includes ;;
1307 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309 x_includes=$ac_optarg ;;
1310
1311 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313 ac_prev=x_libraries ;;
1314 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316 x_libraries=$ac_optarg ;;
1317
1318 -*) as_fn_error "unrecognized option: \`$ac_option'
1319 Try \`$0 --help' for more information."
1320 ;;
1321
1322 *=*)
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 case $ac_envvar in #(
1326 '' | [0-9]* | *[!_$as_cr_alnum]* )
1327 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1328 esac
1329 eval $ac_envvar=\$ac_optarg
1330 export $ac_envvar ;;
1331
1332 *)
1333 # FIXME: should be removed in autoconf 3.0.
1334 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 ;;
1339
1340 esac
1341 done
1342
1343 if test -n "$ac_prev"; then
1344 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345 as_fn_error "missing argument to $ac_option"
1346 fi
1347
1348 if test -n "$ac_unrecognized_opts"; then
1349 case $enable_option_checking in
1350 no) ;;
1351 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1352 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1353 esac
1354 fi
1355
1356 # Check all directory arguments for consistency.
1357 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1361 do
1362 eval ac_val=\$$ac_var
1363 # Remove trailing slashes.
1364 case $ac_val in
1365 */ )
1366 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1367 eval $ac_var=\$ac_val;;
1368 esac
1369 # Be sure to have absolute directory names.
1370 case $ac_val in
1371 [\\/$]* | ?:[\\/]* ) continue;;
1372 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373 esac
1374 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1375 done
1376
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1380 build=$build_alias
1381 host=$host_alias
1382 target=$target_alias
1383
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x; then
1386 if test "x$build_alias" = x; then
1387 cross_compiling=maybe
1388 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used." >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1391 cross_compiling=yes
1392 fi
1393 fi
1394
1395 ac_tool_prefix=
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397
1398 test "$silent" = yes && exec 6>/dev/null
1399
1400
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 as_fn_error "working directory cannot be determined"
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406 as_fn_error "pwd does not report name of working directory"
1407
1408
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$as_myself" ||
1414 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$as_myself" : 'X\(//\)[^/]' \| \
1416 X"$as_myself" : 'X\(//\)$' \| \
1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1418 $as_echo X"$as_myself" |
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)[^/].*/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\).*/{
1432 s//\1/
1433 q
1434 }
1435 s/.*/./; q'`
1436 srcdir=$ac_confdir
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 srcdir=..
1439 fi
1440 else
1441 ac_srcdir_defaulted=no
1442 fi
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1446 fi
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 ac_abs_confdir=`(
1449 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1450 pwd)`
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 srcdir=.
1454 fi
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1458 case $srcdir in
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 esac
1461 for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 done
1467
1468 #
1469 # Report the --help message.
1470 #
1471 if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1474 cat <<_ACEOF
1475 \`configure' configures this package to adapt to many kinds of systems.
1476
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1478
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE. See below for descriptions of some of the useful variables.
1481
1482 Defaults for the options are specified in brackets.
1483
1484 Configuration:
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494
1495 Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
1497 [$ac_default_prefix]
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 [PREFIX]
1500
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1505
1506 For better control, use the options below.
1507
1508 Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
1528 _ACEOF
1529
1530 cat <<\_ACEOF
1531
1532 Program names:
1533 --program-prefix=PREFIX prepend PREFIX to installed program names
1534 --program-suffix=SUFFIX append SUFFIX to installed program names
1535 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536
1537 System types:
1538 --build=BUILD configure for building on BUILD [guessed]
1539 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1540 --target=TARGET configure for building compilers for TARGET [HOST]
1541 _ACEOF
1542 fi
1543
1544 if test -n "$ac_init_help"; then
1545
1546 cat <<\_ACEOF
1547
1548 Optional Features:
1549 --disable-option-checking ignore unrecognized --enable/--with options
1550 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1551 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1552 --enable-generated-files-in-srcdir
1553 put copies of generated files in source dir
1554 intended for creating source tarballs for users
1555 without texinfo bison or flex.
1556 --disable-largefile omit support for large files
1557 --enable-werror-always enable -Werror despite compiler version
1558 --enable-checking=LIST
1559 enable expensive run-time checks. With LIST,
1560 enable only specific categories of checks.
1561 Categories are: yes,no,all,none,release.
1562 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1563 rtlflag,rtl,runtime,tree,valgrind,types.
1564 --enable-coverage=LEVEL
1565 enable compiler's code coverage collection.
1566 Use to measure compiler performance and locate
1567 unused parts of the compiler. With LEVEL, specify
1568 optimization. Values are opt, noopt,
1569 default is noopt
1570 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1571 --enable-build-with-cxx build with C++ compiler instead of C compiler
1572 --enable-multilib enable library support for multiple ABIs
1573 --enable-__cxa_atexit enable __cxa_atexit for C++
1574 --enable-decimal-float={no,yes,bid,dpd}
1575 enable decimal float extension to C. Selecting 'bid'
1576 or 'dpd' choses which decimal floating point format
1577 to use
1578 --enable-fixed-point enable fixed-point arithmetic extension to C
1579 --enable-threads enable thread usage for target GCC
1580 --enable-threads=LIB use LIB thread package for target GCC
1581 --enable-tls enable or disable generation of tls code
1582 overriding the assembler check for tls support
1583 --enable-objc-gc enable the use of Boehm's garbage collector with
1584 the GNU Objective-C runtime
1585 --disable-shared don't provide a shared libgcc
1586 --enable-languages=LIST specify which front-ends to build
1587 --disable-rpath do not hardcode runtime library paths
1588 --enable-initfini-array use .init_array/.fini_array sections
1589 --enable-sjlj-exceptions
1590 arrange to use setjmp/longjmp exception handling
1591 --enable-secureplt enable -msecure-plt by default for PowerPC
1592 --enable-leading-mingw64-underscores
1593 Enable leading underscores on 64 bit mingw targets
1594 --enable-cld enable -mcld by default for 32bit x86
1595 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86
1596 --disable-win32-registry
1597 disable lookup of installation paths in the
1598 Registry on Windows hosts
1599 --enable-win32-registry enable registry lookup (default)
1600 --enable-win32-registry=KEY
1601 use KEY instead of GCC version as the last portion
1602 of the registry key
1603 --enable-shared[=PKGS] build shared libraries [default=yes]
1604 --enable-static[=PKGS] build static libraries [default=yes]
1605 --enable-fast-install[=PKGS]
1606 optimize for fast installation [default=yes]
1607 --disable-libtool-lock avoid locking (might break parallel builds)
1608 --enable-gnu-indirect-function
1609 enable the use of the @gnu_indirect_function to
1610 glibc systems
1611 --enable-comdat enable COMDAT group support
1612 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1613 glibc systems
1614 --enable-linker-build-id
1615 compiler will always pass --build-id to linker
1616 --enable-maintainer-mode
1617 enable make rules and dependencies not useful
1618 (and sometimes confusing) to the casual installer
1619 --enable-version-specific-runtime-libs
1620 specify that runtime libraries should be
1621 installed in a compiler-specific directory
1622 --enable-plugin enable plugin support
1623
1624 Optional Packages:
1625 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1626 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1627 --with-build-libsubdir=DIR Directory where to find libraries for build system
1628 --with-local-prefix=DIR specifies directory to put local include
1629 --with-gxx-include-dir=DIR
1630 specifies directory to put g++ header files
1631 --with-cpp-install-dir=DIR
1632 install the user visible C preprocessor in DIR
1633 (relative to PREFIX) as well as PREFIX/bin
1634 --with-gnu-ld arrange to work with GNU ld.
1635 --with-ld arrange to use the specified ld (full pathname)
1636 --with-demangler-in-ld try to use demangler in GNU ld.
1637 --with-gnu-as arrange to work with GNU as
1638 --with-as arrange to use the specified as (full pathname)
1639 --with-stabs arrange to use stabs instead of host debug format
1640 --with-dwarf2 force the default debug format to be DWARF 2
1641 --with-build-sysroot=sysroot
1642 use sysroot as the system root during the build
1643 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1644 --with-specs=SPECS add SPECS to driver command-line processing
1645 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1646 --with-bugurl=URL Direct users to URL to report a bug
1647 --with-multilib-list Select multilibs (SH only)
1648 --with-gnu-ld assume the C compiler uses GNU ld default=no
1649 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1650 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1651 --with-system-libunwind use installed libunwind
1652 --with-pic try to use only PIC/non-PIC objects [default=use
1653 both]
1654 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1655 --with-plugin-ld=[ARG] specify the plugin linker
1656 --with-long-double-128 Use 128-bit long double by default.
1657 --with-gc={page,zone} choose the garbage collection mechanism to use
1658 with the compiler
1659 --with-system-zlib use installed libz
1660 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1661
1662 Some influential environment variables:
1663 CC C compiler command
1664 CFLAGS C compiler flags
1665 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1666 nonstandard directory <lib dir>
1667 LIBS libraries to pass to the linker, e.g. -l<library>
1668 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1669 you have headers in a nonstandard directory <include dir>
1670 CXX C++ compiler command
1671 CXXFLAGS C++ compiler flags
1672 CPP C preprocessor
1673 CXXCPP C++ preprocessor
1674 GMPLIBS How to link GMP
1675 GMPINC How to find GMP include files
1676 PPLLIBS How to link PPL
1677 PPLINC How to find PPL include files
1678 CLOOGLIBS How to link CLOOG
1679 CLOOGINC How to find CLOOG include files
1680
1681 Use these variables to override the choices made by `configure' or to help
1682 it to find libraries and programs with nonstandard names/locations.
1683
1684 Report bugs to the package provider.
1685 _ACEOF
1686 ac_status=$?
1687 fi
1688
1689 if test "$ac_init_help" = "recursive"; then
1690 # If there are subdirs, report their specific --help.
1691 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1692 test -d "$ac_dir" ||
1693 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1694 continue
1695 ac_builddir=.
1696
1697 case "$ac_dir" in
1698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699 *)
1700 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1701 # A ".." for each directory in $ac_dir_suffix.
1702 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703 case $ac_top_builddir_sub in
1704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1706 esac ;;
1707 esac
1708 ac_abs_top_builddir=$ac_pwd
1709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir=$ac_top_build_prefix
1712
1713 case $srcdir in
1714 .) # We are building in place.
1715 ac_srcdir=.
1716 ac_top_srcdir=$ac_top_builddir_sub
1717 ac_abs_top_srcdir=$ac_pwd ;;
1718 [\\/]* | ?:[\\/]* ) # Absolute name.
1719 ac_srcdir=$srcdir$ac_dir_suffix;
1720 ac_top_srcdir=$srcdir
1721 ac_abs_top_srcdir=$srcdir ;;
1722 *) # Relative name.
1723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724 ac_top_srcdir=$ac_top_build_prefix$srcdir
1725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1726 esac
1727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1728
1729 cd "$ac_dir" || { ac_status=$?; continue; }
1730 # Check for guested configure.
1731 if test -f "$ac_srcdir/configure.gnu"; then
1732 echo &&
1733 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1734 elif test -f "$ac_srcdir/configure"; then
1735 echo &&
1736 $SHELL "$ac_srcdir/configure" --help=recursive
1737 else
1738 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1739 fi || ac_status=$?
1740 cd "$ac_pwd" || { ac_status=$?; break; }
1741 done
1742 fi
1743
1744 test -n "$ac_init_help" && exit $ac_status
1745 if $ac_init_version; then
1746 cat <<\_ACEOF
1747 configure
1748 generated by GNU Autoconf 2.64
1749
1750 Copyright (C) 2009 Free Software Foundation, Inc.
1751 This configure script is free software; the Free Software Foundation
1752 gives unlimited permission to copy, distribute and modify it.
1753 _ACEOF
1754 exit
1755 fi
1756
1757 ## ------------------------ ##
1758 ## Autoconf initialization. ##
1759 ## ------------------------ ##
1760
1761 # ac_fn_c_try_compile LINENO
1762 # --------------------------
1763 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_compile ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext
1768 if { { ac_try="$ac_compile"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_compile") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1781 fi
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest.$ac_objext; then :
1787 ac_retval=0
1788 else
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=1
1793 fi
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 return $ac_retval
1796
1797 } # ac_fn_c_try_compile
1798
1799 # ac_fn_cxx_try_compile LINENO
1800 # ----------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_cxx_try_compile ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext
1806 if { { ac_try="$ac_compile"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_cxx_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831 fi
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 return $ac_retval
1834
1835 } # ac_fn_cxx_try_compile
1836
1837 # ac_fn_c_try_cpp LINENO
1838 # ----------------------
1839 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_c_try_cpp ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_cpp conftest.$ac_ext"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1856 fi
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } >/dev/null && {
1859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1
1868 fi
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1871
1872 } # ac_fn_c_try_cpp
1873
1874 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1875 # -------------------------------------------------------
1876 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1877 # the include files in INCLUDES and setting the cache variable VAR
1878 # accordingly.
1879 ac_fn_c_check_header_mongrel ()
1880 {
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 $as_echo_n "(cached) " >&6
1887 fi
1888 eval ac_res=\$$3
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 else
1892 # Is the header compilable?
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1894 $as_echo_n "checking $2 usability... " >&6; }
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 $4
1898 #include <$2>
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901 ac_header_compiler=yes
1902 else
1903 ac_header_compiler=no
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1907 $as_echo "$ac_header_compiler" >&6; }
1908
1909 # Is the header present?
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1911 $as_echo_n "checking $2 presence... " >&6; }
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 #include <$2>
1915 _ACEOF
1916 if ac_fn_c_try_cpp "$LINENO"; then :
1917 ac_header_preproc=yes
1918 else
1919 ac_header_preproc=no
1920 fi
1921 rm -f conftest.err conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1923 $as_echo "$ac_header_preproc" >&6; }
1924
1925 # So? What about this header?
1926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1927 yes:no: )
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1929 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1931 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1932 ;;
1933 no:yes:* )
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1935 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1937 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1939 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1941 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944 ;;
1945 esac
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1950 else
1951 eval "$3=\$ac_header_compiler"
1952 fi
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 fi
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958
1959 } # ac_fn_c_check_header_mongrel
1960
1961 # ac_fn_c_try_run LINENO
1962 # ----------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1964 # that executables *can* be run.
1965 ac_fn_c_try_run ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 if { { ac_try="$ac_link"
1969 case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>&5
1976 ac_status=$?
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1979 { { case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_try") 2>&5
1986 ac_status=$?
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; }; }; then :
1989 ac_retval=0
1990 else
1991 $as_echo "$as_me: program exited with status $ac_status" >&5
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1994
1995 ac_retval=$ac_status
1996 fi
1997 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999 return $ac_retval
2000
2001 } # ac_fn_c_try_run
2002
2003 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists and can be compiled using the include files in
2006 # INCLUDES, setting the cache variable VAR accordingly.
2007 ac_fn_c_check_header_compile ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2013 $as_echo_n "(cached) " >&6
2014 else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 $4
2018 #include <$2>
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 eval "$3=yes"
2022 else
2023 eval "$3=no"
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031
2032 } # ac_fn_c_check_header_compile
2033
2034 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2035 # --------------------------------------------
2036 # Tries to find the compile-time value of EXPR in a program that includes
2037 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2038 # computed
2039 ac_fn_c_compute_int ()
2040 {
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 if test "$cross_compiling" = yes; then
2043 # Depending upon the size, compute the lo and hi bounds.
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 $4
2047 int
2048 main ()
2049 {
2050 static int test_array [1 - 2 * !(($2) >= 0)];
2051 test_array [0] = 0
2052
2053 ;
2054 return 0;
2055 }
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 ac_lo=0 ac_mid=0
2059 while :; do
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 $4
2063 int
2064 main ()
2065 {
2066 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2067 test_array [0] = 0
2068
2069 ;
2070 return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074 ac_hi=$ac_mid; break
2075 else
2076 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2077 if test $ac_lo -le $ac_mid; then
2078 ac_lo= ac_hi=
2079 break
2080 fi
2081 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 done
2085 else
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 $4
2089 int
2090 main ()
2091 {
2092 static int test_array [1 - 2 * !(($2) < 0)];
2093 test_array [0] = 0
2094
2095 ;
2096 return 0;
2097 }
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_hi=-1 ac_mid=-1
2101 while :; do
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2104 $4
2105 int
2106 main ()
2107 {
2108 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2109 test_array [0] = 0
2110
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 ac_lo=$ac_mid; break
2117 else
2118 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2119 if test $ac_mid -le $ac_hi; then
2120 ac_lo= ac_hi=
2121 break
2122 fi
2123 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 done
2127 else
2128 ac_lo= ac_hi=
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 # Binary search between lo and hi bounds.
2134 while test "x$ac_lo" != "x$ac_hi"; do
2135 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2138 $4
2139 int
2140 main ()
2141 {
2142 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2143 test_array [0] = 0
2144
2145 ;
2146 return 0;
2147 }
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=$ac_mid
2151 else
2152 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2153 fi
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 done
2156 case $ac_lo in #((
2157 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2158 '') ac_retval=1 ;;
2159 esac
2160 else
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2163 $4
2164 static long int longval () { return $2; }
2165 static unsigned long int ulongval () { return $2; }
2166 #include <stdio.h>
2167 #include <stdlib.h>
2168 int
2169 main ()
2170 {
2171
2172 FILE *f = fopen ("conftest.val", "w");
2173 if (! f)
2174 return 1;
2175 if (($2) < 0)
2176 {
2177 long int i = longval ();
2178 if (i != ($2))
2179 return 1;
2180 fprintf (f, "%ld", i);
2181 }
2182 else
2183 {
2184 unsigned long int i = ulongval ();
2185 if (i != ($2))
2186 return 1;
2187 fprintf (f, "%lu", i);
2188 }
2189 /* Do not output a trailing newline, as this causes \r\n confusion
2190 on some platforms. */
2191 return ferror (f) || fclose (f) != 0;
2192
2193 ;
2194 return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_run "$LINENO"; then :
2198 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2199 else
2200 ac_retval=1
2201 fi
2202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2203 conftest.$ac_objext conftest.beam conftest.$ac_ext
2204 rm -f conftest.val
2205
2206 fi
2207 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2208 return $ac_retval
2209
2210 } # ac_fn_c_compute_int
2211
2212 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2213 # -------------------------------------------
2214 # Tests whether TYPE exists after having included INCLUDES, setting cache
2215 # variable VAR accordingly.
2216 ac_fn_c_check_type ()
2217 {
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2220 $as_echo_n "checking for $2... " >&6; }
2221 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2222 $as_echo_n "(cached) " >&6
2223 else
2224 eval "$3=no"
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2227 $4
2228 int
2229 main ()
2230 {
2231 if (sizeof ($2))
2232 return 0;
2233 ;
2234 return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 $4
2241 int
2242 main ()
2243 {
2244 if (sizeof (($2)))
2245 return 0;
2246 ;
2247 return 0;
2248 }
2249 _ACEOF
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251
2252 else
2253 eval "$3=yes"
2254 fi
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 fi
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 fi
2259 eval ac_res=\$$3
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263
2264 } # ac_fn_c_check_type
2265
2266 # ac_fn_c_find_intX_t LINENO BITS VAR
2267 # -----------------------------------
2268 # Finds a signed integer type with width BITS, setting cache variable VAR
2269 # accordingly.
2270 ac_fn_c_find_intX_t ()
2271 {
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2274 $as_echo_n "checking for int$2_t... " >&6; }
2275 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2276 $as_echo_n "(cached) " >&6
2277 else
2278 eval "$3=no"
2279 for ac_type in int$2_t 'int' 'long int' \
2280 'long long int' 'short int' 'signed char'; do
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2283 $ac_includes_default
2284 int
2285 main ()
2286 {
2287 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2288 test_array [0] = 0
2289
2290 ;
2291 return 0;
2292 }
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 $ac_includes_default
2298 int
2299 main ()
2300 {
2301 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2302 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2303 test_array [0] = 0
2304
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310
2311 else
2312 case $ac_type in #(
2313 int$2_t) :
2314 eval "$3=yes" ;; #(
2315 *) :
2316 eval "$3=\$ac_type" ;;
2317 esac
2318 fi
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 eval as_val=\$$3
2323 if test "x$as_val" = x""no; then :
2324
2325 else
2326 break
2327 fi
2328 done
2329 fi
2330 eval ac_res=\$$3
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332 $as_echo "$ac_res" >&6; }
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334
2335 } # ac_fn_c_find_intX_t
2336
2337 # ac_fn_c_try_link LINENO
2338 # -----------------------
2339 # Try to link conftest.$ac_ext, and return whether this succeeded.
2340 ac_fn_c_try_link ()
2341 {
2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343 rm -f conftest.$ac_objext conftest$ac_exeext
2344 if { { ac_try="$ac_link"
2345 case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348 esac
2349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350 $as_echo "$ac_try_echo"; } >&5
2351 (eval "$ac_link") 2>conftest.err
2352 ac_status=$?
2353 if test -s conftest.err; then
2354 grep -v '^ *+' conftest.err >conftest.er1
2355 cat conftest.er1 >&5
2356 mv -f conftest.er1 conftest.err
2357 fi
2358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2359 test $ac_status = 0; } && {
2360 test -z "$ac_c_werror_flag" ||
2361 test ! -s conftest.err
2362 } && test -s conftest$ac_exeext && {
2363 test "$cross_compiling" = yes ||
2364 $as_test_x conftest$ac_exeext
2365 }; then :
2366 ac_retval=0
2367 else
2368 $as_echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 ac_retval=1
2372 fi
2373 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2374 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2375 # interfere with the next link command; also delete a directory that is
2376 # left behind by Apple's compiler. We do this before executing the actions.
2377 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379 return $ac_retval
2380
2381 } # ac_fn_c_try_link
2382
2383 # ac_fn_c_find_uintX_t LINENO BITS VAR
2384 # ------------------------------------
2385 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2386 # accordingly.
2387 ac_fn_c_find_uintX_t ()
2388 {
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2391 $as_echo_n "checking for uint$2_t... " >&6; }
2392 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2393 $as_echo_n "(cached) " >&6
2394 else
2395 eval "$3=no"
2396 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2397 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2400 $ac_includes_default
2401 int
2402 main ()
2403 {
2404 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2405 test_array [0] = 0
2406
2407 ;
2408 return 0;
2409 }
2410 _ACEOF
2411 if ac_fn_c_try_compile "$LINENO"; then :
2412 case $ac_type in #(
2413 uint$2_t) :
2414 eval "$3=yes" ;; #(
2415 *) :
2416 eval "$3=\$ac_type" ;;
2417 esac
2418 fi
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 eval as_val=\$$3
2421 if test "x$as_val" = x""no; then :
2422
2423 else
2424 break
2425 fi
2426 done
2427 fi
2428 eval ac_res=\$$3
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2430 $as_echo "$ac_res" >&6; }
2431 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2432
2433 } # ac_fn_c_find_uintX_t
2434
2435 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2436 # ----------------------------------------------
2437 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2438 ac_fn_c_check_header_preproc ()
2439 {
2440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2442 $as_echo_n "checking for $2... " >&6; }
2443 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2448 #include <$2>
2449 _ACEOF
2450 if ac_fn_c_try_cpp "$LINENO"; then :
2451 eval "$3=yes"
2452 else
2453 eval "$3=no"
2454 fi
2455 rm -f conftest.err conftest.$ac_ext
2456 fi
2457 eval ac_res=\$$3
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461
2462 } # ac_fn_c_check_header_preproc
2463
2464 # ac_fn_c_check_func LINENO FUNC VAR
2465 # ----------------------------------
2466 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2467 ac_fn_c_check_func ()
2468 {
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2477 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2479 #define $2 innocuous_$2
2480
2481 /* System header to define __stub macros and hopefully few prototypes,
2482 which can conflict with char $2 (); below.
2483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2484 <limits.h> exists even on freestanding compilers. */
2485
2486 #ifdef __STDC__
2487 # include <limits.h>
2488 #else
2489 # include <assert.h>
2490 #endif
2491
2492 #undef $2
2493
2494 /* Override any GCC internal prototype to avoid an error.
2495 Use char because int might match the return type of a GCC
2496 builtin and then its argument prototype would still apply. */
2497 #ifdef __cplusplus
2498 extern "C"
2499 #endif
2500 char $2 ();
2501 /* The GNU C library defines this for functions which it implements
2502 to always fail with ENOSYS. Some functions are actually named
2503 something starting with __ and the normal name is an alias. */
2504 #if defined __stub_$2 || defined __stub___$2
2505 choke me
2506 #endif
2507
2508 int
2509 main ()
2510 {
2511 return $2 ();
2512 ;
2513 return 0;
2514 }
2515 _ACEOF
2516 if ac_fn_c_try_link "$LINENO"; then :
2517 eval "$3=yes"
2518 else
2519 eval "$3=no"
2520 fi
2521 rm -f core conftest.err conftest.$ac_objext \
2522 conftest$ac_exeext conftest.$ac_ext
2523 fi
2524 eval ac_res=\$$3
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2526 $as_echo "$ac_res" >&6; }
2527 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2528
2529 } # ac_fn_c_check_func
2530
2531 # ac_fn_cxx_try_cpp LINENO
2532 # ------------------------
2533 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2534 ac_fn_cxx_try_cpp ()
2535 {
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 if { { ac_try="$ac_cpp conftest.$ac_ext"
2538 case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2541 esac
2542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2543 $as_echo "$ac_try_echo"; } >&5
2544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2545 ac_status=$?
2546 if test -s conftest.err; then
2547 grep -v '^ *+' conftest.err >conftest.er1
2548 cat conftest.er1 >&5
2549 mv -f conftest.er1 conftest.err
2550 fi
2551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2552 test $ac_status = 0; } >/dev/null && {
2553 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2554 test ! -s conftest.err
2555 }; then :
2556 ac_retval=0
2557 else
2558 $as_echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 ac_retval=1
2562 fi
2563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2564 return $ac_retval
2565
2566 } # ac_fn_cxx_try_cpp
2567
2568 # ac_fn_cxx_try_link LINENO
2569 # -------------------------
2570 # Try to link conftest.$ac_ext, and return whether this succeeded.
2571 ac_fn_cxx_try_link ()
2572 {
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 rm -f conftest.$ac_objext conftest$ac_exeext
2575 if { { ac_try="$ac_link"
2576 case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579 esac
2580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2581 $as_echo "$ac_try_echo"; } >&5
2582 (eval "$ac_link") 2>conftest.err
2583 ac_status=$?
2584 if test -s conftest.err; then
2585 grep -v '^ *+' conftest.err >conftest.er1
2586 cat conftest.er1 >&5
2587 mv -f conftest.er1 conftest.err
2588 fi
2589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2590 test $ac_status = 0; } && {
2591 test -z "$ac_cxx_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest$ac_exeext && {
2594 test "$cross_compiling" = yes ||
2595 $as_test_x conftest$ac_exeext
2596 }; then :
2597 ac_retval=0
2598 else
2599 $as_echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2601
2602 ac_retval=1
2603 fi
2604 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2605 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2606 # interfere with the next link command; also delete a directory that is
2607 # left behind by Apple's compiler. We do this before executing the actions.
2608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2610 return $ac_retval
2611
2612 } # ac_fn_cxx_try_link
2613 cat >config.log <<_ACEOF
2614 This file contains any messages produced by compilers while
2615 running configure, to aid debugging if configure makes a mistake.
2616
2617 It was created by $as_me, which was
2618 generated by GNU Autoconf 2.64. Invocation command line was
2619
2620 $ $0 $@
2621
2622 _ACEOF
2623 exec 5>>config.log
2624 {
2625 cat <<_ASUNAME
2626 ## --------- ##
2627 ## Platform. ##
2628 ## --------- ##
2629
2630 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2631 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2632 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2633 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2634 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2635
2636 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2637 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2638
2639 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2640 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2641 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2642 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2643 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2644 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2645 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2646
2647 _ASUNAME
2648
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 $as_echo "PATH: $as_dir"
2655 done
2656 IFS=$as_save_IFS
2657
2658 } >&5
2659
2660 cat >&5 <<_ACEOF
2661
2662
2663 ## ----------- ##
2664 ## Core tests. ##
2665 ## ----------- ##
2666
2667 _ACEOF
2668
2669
2670 # Keep a trace of the command line.
2671 # Strip out --no-create and --no-recursion so they do not pile up.
2672 # Strip out --silent because we don't want to record it for future runs.
2673 # Also quote any args containing shell meta-characters.
2674 # Make two passes to allow for proper duplicate-argument suppression.
2675 ac_configure_args=
2676 ac_configure_args0=
2677 ac_configure_args1=
2678 ac_must_keep_next=false
2679 for ac_pass in 1 2
2680 do
2681 for ac_arg
2682 do
2683 case $ac_arg in
2684 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2686 | -silent | --silent | --silen | --sile | --sil)
2687 continue ;;
2688 *\'*)
2689 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2690 esac
2691 case $ac_pass in
2692 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2693 2)
2694 as_fn_append ac_configure_args1 " '$ac_arg'"
2695 if test $ac_must_keep_next = true; then
2696 ac_must_keep_next=false # Got value, back to normal.
2697 else
2698 case $ac_arg in
2699 *=* | --config-cache | -C | -disable-* | --disable-* \
2700 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2701 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2702 | -with-* | --with-* | -without-* | --without-* | --x)
2703 case "$ac_configure_args0 " in
2704 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2705 esac
2706 ;;
2707 -* ) ac_must_keep_next=true ;;
2708 esac
2709 fi
2710 as_fn_append ac_configure_args " '$ac_arg'"
2711 ;;
2712 esac
2713 done
2714 done
2715 { ac_configure_args0=; unset ac_configure_args0;}
2716 { ac_configure_args1=; unset ac_configure_args1;}
2717
2718 # When interrupted or exit'd, cleanup temporary files, and complete
2719 # config.log. We remove comments because anyway the quotes in there
2720 # would cause problems or look ugly.
2721 # WARNING: Use '\'' to represent an apostrophe within the trap.
2722 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2723 trap 'exit_status=$?
2724 # Save into config.log some information that might help in debugging.
2725 {
2726 echo
2727
2728 cat <<\_ASBOX
2729 ## ---------------- ##
2730 ## Cache variables. ##
2731 ## ---------------- ##
2732 _ASBOX
2733 echo
2734 # The following way of writing the cache mishandles newlines in values,
2735 (
2736 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2737 eval ac_val=\$$ac_var
2738 case $ac_val in #(
2739 *${as_nl}*)
2740 case $ac_var in #(
2741 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2742 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2743 esac
2744 case $ac_var in #(
2745 _ | IFS | as_nl) ;; #(
2746 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2747 *) { eval $ac_var=; unset $ac_var;} ;;
2748 esac ;;
2749 esac
2750 done
2751 (set) 2>&1 |
2752 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2753 *${as_nl}ac_space=\ *)
2754 sed -n \
2755 "s/'\''/'\''\\\\'\'''\''/g;
2756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2757 ;; #(
2758 *)
2759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2760 ;;
2761 esac |
2762 sort
2763 )
2764 echo
2765
2766 cat <<\_ASBOX
2767 ## ----------------- ##
2768 ## Output variables. ##
2769 ## ----------------- ##
2770 _ASBOX
2771 echo
2772 for ac_var in $ac_subst_vars
2773 do
2774 eval ac_val=\$$ac_var
2775 case $ac_val in
2776 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2777 esac
2778 $as_echo "$ac_var='\''$ac_val'\''"
2779 done | sort
2780 echo
2781
2782 if test -n "$ac_subst_files"; then
2783 cat <<\_ASBOX
2784 ## ------------------- ##
2785 ## File substitutions. ##
2786 ## ------------------- ##
2787 _ASBOX
2788 echo
2789 for ac_var in $ac_subst_files
2790 do
2791 eval ac_val=\$$ac_var
2792 case $ac_val in
2793 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2794 esac
2795 $as_echo "$ac_var='\''$ac_val'\''"
2796 done | sort
2797 echo
2798 fi
2799
2800 if test -s confdefs.h; then
2801 cat <<\_ASBOX
2802 ## ----------- ##
2803 ## confdefs.h. ##
2804 ## ----------- ##
2805 _ASBOX
2806 echo
2807 cat confdefs.h
2808 echo
2809 fi
2810 test "$ac_signal" != 0 &&
2811 $as_echo "$as_me: caught signal $ac_signal"
2812 $as_echo "$as_me: exit $exit_status"
2813 } >&5
2814 rm -f core *.core core.conftest.* &&
2815 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2816 exit $exit_status
2817 ' 0
2818 for ac_signal in 1 2 13 15; do
2819 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2820 done
2821 ac_signal=0
2822
2823 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2824 rm -f -r conftest* confdefs.h
2825
2826 $as_echo "/* confdefs.h */" > confdefs.h
2827
2828 # Predefined preprocessor variables.
2829
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_NAME "$PACKAGE_NAME"
2832 _ACEOF
2833
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2836 _ACEOF
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2840 _ACEOF
2841
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_STRING "$PACKAGE_STRING"
2844 _ACEOF
2845
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2848 _ACEOF
2849
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_URL "$PACKAGE_URL"
2852 _ACEOF
2853
2854
2855 # Let the site file select an alternate cache file if it wants to.
2856 # Prefer an explicitly selected file to automatically selected ones.
2857 ac_site_file1=NONE
2858 ac_site_file2=NONE
2859 if test -n "$CONFIG_SITE"; then
2860 ac_site_file1=$CONFIG_SITE
2861 elif test "x$prefix" != xNONE; then
2862 ac_site_file1=$prefix/share/config.site
2863 ac_site_file2=$prefix/etc/config.site
2864 else
2865 ac_site_file1=$ac_default_prefix/share/config.site
2866 ac_site_file2=$ac_default_prefix/etc/config.site
2867 fi
2868 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2869 do
2870 test "x$ac_site_file" = xNONE && continue
2871 if test -r "$ac_site_file"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2873 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2874 sed 's/^/| /' "$ac_site_file" >&5
2875 . "$ac_site_file"
2876 fi
2877 done
2878
2879 if test -r "$cache_file"; then
2880 # Some versions of bash will fail to source /dev/null (special
2881 # files actually), so we avoid doing that.
2882 if test -f "$cache_file"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2884 $as_echo "$as_me: loading cache $cache_file" >&6;}
2885 case $cache_file in
2886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2887 *) . "./$cache_file";;
2888 esac
2889 fi
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2892 $as_echo "$as_me: creating cache $cache_file" >&6;}
2893 >$cache_file
2894 fi
2895
2896 # Check that the precious variables saved in the cache have kept the same
2897 # value.
2898 ac_cache_corrupted=false
2899 for ac_var in $ac_precious_vars; do
2900 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2901 eval ac_new_set=\$ac_env_${ac_var}_set
2902 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2903 eval ac_new_val=\$ac_env_${ac_var}_value
2904 case $ac_old_set,$ac_new_set in
2905 set,)
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2907 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2908 ac_cache_corrupted=: ;;
2909 ,set)
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2911 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2912 ac_cache_corrupted=: ;;
2913 ,);;
2914 *)
2915 if test "x$ac_old_val" != "x$ac_new_val"; then
2916 # differences in whitespace do not lead to failure.
2917 ac_old_val_w=`echo x $ac_old_val`
2918 ac_new_val_w=`echo x $ac_new_val`
2919 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2921 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2922 ac_cache_corrupted=:
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2925 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2926 eval $ac_var=\$ac_old_val
2927 fi
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2929 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2931 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2932 fi;;
2933 esac
2934 # Pass precious variables to config.status.
2935 if test "$ac_new_set" = set; then
2936 case $ac_new_val in
2937 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2938 *) ac_arg=$ac_var=$ac_new_val ;;
2939 esac
2940 case " $ac_configure_args " in
2941 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2942 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2943 esac
2944 fi
2945 done
2946 if $ac_cache_corrupted; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2950 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2951 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2952 fi
2953 ## -------------------- ##
2954 ## Main body of script. ##
2955 ## -------------------- ##
2956
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962
2963
2964
2965
2966
2967
2968 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2969
2970
2971 gcc_version=`cat $srcdir/BASE-VER`
2972
2973 # Determine the host, build, and target systems
2974 ac_aux_dir=
2975 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2976 for ac_t in install-sh install.sh shtool; do
2977 if test -f "$ac_dir/$ac_t"; then
2978 ac_aux_dir=$ac_dir
2979 ac_install_sh="$ac_aux_dir/$ac_t -c"
2980 break 2
2981 fi
2982 done
2983 done
2984 if test -z "$ac_aux_dir"; then
2985 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2986 fi
2987
2988 # These three variables are undocumented and unsupported,
2989 # and are intended to be withdrawn in a future Autoconf release.
2990 # They can cause serious problems if a builder's source tree is in a directory
2991 # whose full name contains unusual characters.
2992 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2993 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2994 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2995
2996
2997 # Make sure we can run config.sub.
2998 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2999 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3000
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3002 $as_echo_n "checking build system type... " >&6; }
3003 if test "${ac_cv_build+set}" = set; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 ac_build_alias=$build_alias
3007 test "x$ac_build_alias" = x &&
3008 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3009 test "x$ac_build_alias" = x &&
3010 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3011 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3012 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3013
3014 fi
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3016 $as_echo "$ac_cv_build" >&6; }
3017 case $ac_cv_build in
3018 *-*-*) ;;
3019 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3020 esac
3021 build=$ac_cv_build
3022 ac_save_IFS=$IFS; IFS='-'
3023 set x $ac_cv_build
3024 shift
3025 build_cpu=$1
3026 build_vendor=$2
3027 shift; shift
3028 # Remember, the first character of IFS is used to create $*,
3029 # except with old shells:
3030 build_os=$*
3031 IFS=$ac_save_IFS
3032 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3033
3034
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3036 $as_echo_n "checking host system type... " >&6; }
3037 if test "${ac_cv_host+set}" = set; then :
3038 $as_echo_n "(cached) " >&6
3039 else
3040 if test "x$host_alias" = x; then
3041 ac_cv_host=$ac_cv_build
3042 else
3043 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3044 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3045 fi
3046
3047 fi
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3049 $as_echo "$ac_cv_host" >&6; }
3050 case $ac_cv_host in
3051 *-*-*) ;;
3052 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3053 esac
3054 host=$ac_cv_host
3055 ac_save_IFS=$IFS; IFS='-'
3056 set x $ac_cv_host
3057 shift
3058 host_cpu=$1
3059 host_vendor=$2
3060 shift; shift
3061 # Remember, the first character of IFS is used to create $*,
3062 # except with old shells:
3063 host_os=$*
3064 IFS=$ac_save_IFS
3065 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3066
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3069 $as_echo_n "checking target system type... " >&6; }
3070 if test "${ac_cv_target+set}" = set; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 if test "x$target_alias" = x; then
3074 ac_cv_target=$ac_cv_host
3075 else
3076 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3077 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3078 fi
3079
3080 fi
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3082 $as_echo "$ac_cv_target" >&6; }
3083 case $ac_cv_target in
3084 *-*-*) ;;
3085 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3086 esac
3087 target=$ac_cv_target
3088 ac_save_IFS=$IFS; IFS='-'
3089 set x $ac_cv_target
3090 shift
3091 target_cpu=$1
3092 target_vendor=$2
3093 shift; shift
3094 # Remember, the first character of IFS is used to create $*,
3095 # except with old shells:
3096 target_os=$*
3097 IFS=$ac_save_IFS
3098 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3099
3100
3101 # The aliases save the names the user supplied, while $host etc.
3102 # will get canonicalized.
3103 test -n "$target_alias" &&
3104 test "$program_prefix$program_suffix$program_transform_name" = \
3105 NONENONEs,x,x, &&
3106 program_prefix=${target_alias}-
3107
3108 # Determine the noncanonical target name, for directory use.
3109 case ${build_alias} in
3110 "") build_noncanonical=${build} ;;
3111 *) build_noncanonical=${build_alias} ;;
3112 esac
3113
3114 case ${host_alias} in
3115 "") host_noncanonical=${build_noncanonical} ;;
3116 *) host_noncanonical=${host_alias} ;;
3117 esac
3118
3119 case ${target_alias} in
3120 "") target_noncanonical=${host_noncanonical} ;;
3121 *) target_noncanonical=${target_alias} ;;
3122 esac
3123
3124
3125
3126
3127 # Determine the target- and build-specific subdirectories
3128
3129 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3130 # have matching libraries, they should use host libraries: Makefile.tpl
3131 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3132 # However, they still use the build modules, because the corresponding
3133 # host modules (e.g. bison) are only built for the host when bootstrap
3134 # finishes. So:
3135 # - build_subdir is where we find build modules, and never changes.
3136 # - build_libsubdir is where we find build libraries, and can be overridden.
3137
3138 # Prefix 'build-' so this never conflicts with target_subdir.
3139 build_subdir="build-${build_noncanonical}"
3140
3141 # Check whether --with-build-libsubdir was given.
3142 if test "${with_build_libsubdir+set}" = set; then :
3143 withval=$with_build_libsubdir; build_libsubdir="$withval"
3144 else
3145 build_libsubdir="$build_subdir"
3146 fi
3147
3148 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3149 if ( test $srcdir = . && test -d gcc ) \
3150 || test -d $srcdir/../host-${host_noncanonical}; then
3151 host_subdir="host-${host_noncanonical}"
3152 else
3153 host_subdir=.
3154 fi
3155 # No prefix.
3156 target_subdir=${target_noncanonical}
3157
3158
3159 # Set program_transform_name
3160 test "$program_prefix" != NONE &&
3161 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3162 # Use a double $ so make ignores it.
3163 test "$program_suffix" != NONE &&
3164 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3165 # Double any \ or $.
3166 # By default was `s,x,x', remove it if useless.
3167 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3168 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3169
3170
3171 # Check for bogus environment variables.
3172 # Test if LIBRARY_PATH contains the notation for the current directory
3173 # since this would lead to problems installing/building glibc.
3174 # LIBRARY_PATH contains the current directory if one of the following
3175 # is true:
3176 # - one of the terminals (":" and ";") is the first or last sign
3177 # - two terminals occur directly after each other
3178 # - the path contains an element with a dot in it
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3180 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3181 case ${LIBRARY_PATH} in
3182 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3183 library_path_setting="contains current directory"
3184 ;;
3185 *)
3186 library_path_setting="ok"
3187 ;;
3188 esac
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3190 $as_echo "$library_path_setting" >&6; }
3191 if test "$library_path_setting" != "ok"; then
3192 as_fn_error "
3193 *** LIBRARY_PATH shouldn't contain the current directory when
3194 *** building gcc. Please change the environment variable
3195 *** and run configure again." "$LINENO" 5
3196 fi
3197
3198 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3199 # since this would lead to problems installing/building glibc.
3200 # GCC_EXEC_PREFIX contains the current directory if one of the following
3201 # is true:
3202 # - one of the terminals (":" and ";") is the first or last sign
3203 # - two terminals occur directly after each other
3204 # - the path contains an element with a dot in it
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3206 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3207 case ${GCC_EXEC_PREFIX} in
3208 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3209 gcc_exec_prefix_setting="contains current directory"
3210 ;;
3211 *)
3212 gcc_exec_prefix_setting="ok"
3213 ;;
3214 esac
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3216 $as_echo "$gcc_exec_prefix_setting" >&6; }
3217 if test "$gcc_exec_prefix_setting" != "ok"; then
3218 as_fn_error "
3219 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3220 *** building gcc. Please change the environment variable
3221 *** and run configure again." "$LINENO" 5
3222 fi
3223
3224 # -----------
3225 # Directories
3226 # -----------
3227
3228 # Specify the local prefix
3229 local_prefix=
3230
3231 # Check whether --with-local-prefix was given.
3232 if test "${with_local_prefix+set}" = set; then :
3233 withval=$with_local_prefix; case "${withval}" in
3234 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3235 no) ;;
3236 *) local_prefix=$with_local_prefix ;;
3237 esac
3238 fi
3239
3240
3241 # Default local prefix if it is empty
3242 if test x$local_prefix = x; then
3243 local_prefix=/usr/local
3244 fi
3245
3246 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3247 # passed in by the toplevel make and thus we'd get different behavior
3248 # depending on where we built the sources.
3249 gcc_gxx_include_dir=
3250 # Specify the g++ header file directory
3251
3252 # Check whether --with-gxx-include-dir was given.
3253 if test "${with_gxx_include_dir+set}" = set; then :
3254 withval=$with_gxx_include_dir; case "${withval}" in
3255 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3256 no) ;;
3257 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3258 esac
3259 fi
3260
3261
3262 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3263 if test x${gcc_gxx_include_dir} = x; then
3264 if test x${enable_version_specific_runtime_libs} = xyes; then
3265 gcc_gxx_include_dir='${libsubdir}/include/c++'
3266 else
3267 libstdcxx_incdir='include/c++/$(version)'
3268 if test x$host != x$target; then
3269 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3270 fi
3271 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3272 fi
3273 fi
3274
3275
3276 # Check whether --with-cpp_install_dir was given.
3277 if test "${with_cpp_install_dir+set}" = set; then :
3278 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3279 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3280 elif test x$withval != xno; then
3281 cpp_install_dir=$withval
3282 fi
3283 fi
3284
3285
3286 # We would like to our source tree to be readonly. However when releases or
3287 # pre-releases are generated, the flex/bison generated files as well as the
3288 # various formats of manuals need to be included along with the rest of the
3289 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3290 # just that.
3291
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3293 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3294 # Check whether --enable-generated-files-in-srcdir was given.
3295 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3296 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3297 else
3298 generated_files_in_srcdir=no
3299 fi
3300
3301
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3303 $as_echo "$generated_files_in_srcdir" >&6; }
3304
3305 if test "$generated_files_in_srcdir" = "yes"; then
3306 GENINSRC=''
3307 else
3308 GENINSRC='#'
3309 fi
3310
3311
3312 # -------------------
3313 # Find default linker
3314 # -------------------
3315
3316 # With GNU ld
3317
3318 # Check whether --with-gnu-ld was given.
3319 if test "${with_gnu_ld+set}" = set; then :
3320 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3321 else
3322 gnu_ld_flag=no
3323 fi
3324
3325
3326 # With pre-defined ld
3327
3328 # Check whether --with-ld was given.
3329 if test "${with_ld+set}" = set; then :
3330 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3331 fi
3332
3333 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3334 if test ! -x "$DEFAULT_LINKER"; then
3335 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3336 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3337 gnu_ld_flag=yes
3338 fi
3339
3340 cat >>confdefs.h <<_ACEOF
3341 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3342 _ACEOF
3343
3344 fi
3345
3346 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3347
3348 cat >>confdefs.h <<_ACEOF
3349 #define HAVE_GNU_LD $gnu_ld
3350 _ACEOF
3351
3352
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3354 $as_echo_n "checking whether a default linker was specified... " >&6; }
3355 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3356 if test x"$gnu_ld_flag" = x"no"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3358 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3359 else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3361 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3362 fi
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368 # With demangler in GNU ld
3369
3370 # Check whether --with-demangler-in-ld was given.
3371 if test "${with_demangler_in_ld+set}" = set; then :
3372 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3373 else
3374 demangler_in_ld=no
3375 fi
3376
3377
3378 # ----------------------
3379 # Find default assembler
3380 # ----------------------
3381
3382 # With GNU as
3383
3384 # Check whether --with-gnu-as was given.
3385 if test "${with_gnu_as+set}" = set; then :
3386 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3387 else
3388 gas_flag=no
3389 fi
3390
3391
3392
3393 # Check whether --with-as was given.
3394 if test "${with_as+set}" = set; then :
3395 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3396 fi
3397
3398 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3399 if test ! -x "$DEFAULT_ASSEMBLER"; then
3400 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3401 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3402 gas_flag=yes
3403 fi
3404
3405 cat >>confdefs.h <<_ACEOF
3406 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3407 _ACEOF
3408
3409 fi
3410
3411 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3412
3413 cat >>confdefs.h <<_ACEOF
3414 #define HAVE_GNU_AS $gnu_as
3415 _ACEOF
3416
3417
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3419 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3420 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3421 if test x"$gas_flag" = x"no"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3423 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3424 else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3426 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3427 fi
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3431 fi
3432
3433 # ---------------
3434 # Find C compiler
3435 # ---------------
3436
3437 # If a non-executable a.out is present (e.g. created by GNU as above even if
3438 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3439 # file, even when creating an executable, so an execution test fails.
3440 # Remove possible default executable files to avoid this.
3441 #
3442 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3443 # Autoconf includes it.
3444 rm -f a.out a.exe b.out
3445
3446 # Find the native compiler
3447 ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452 if test -n "$ac_tool_prefix"; then
3453 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3454 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474 done
3475 done
3476 IFS=$as_save_IFS
3477
3478 fi
3479 fi
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489
3490 fi
3491 if test -z "$ac_cv_prog_CC"; then
3492 ac_ct_CC=$CC
3493 # Extract the first word of "gcc", so it can be a program name with args.
3494 set dummy gcc; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test -n "$ac_ct_CC"; then
3501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_ac_ct_CC="gcc"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514 done
3515 done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521 if test -n "$ac_ct_CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3523 $as_echo "$ac_ct_CC" >&6; }
3524 else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529 if test "x$ac_ct_CC" = x; then
3530 CC=""
3531 else
3532 case $cross_compiling:$ac_tool_warned in
3533 yes:)
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3536 ac_tool_warned=yes ;;
3537 esac
3538 CC=$ac_ct_CC
3539 fi
3540 else
3541 CC="$ac_cv_prog_CC"
3542 fi
3543
3544 if test -z "$CC"; then
3545 if test -n "$ac_tool_prefix"; then
3546 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3547 set dummy ${ac_tool_prefix}cc; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC="$CC" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_CC="${ac_tool_prefix}cc"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3566 fi
3567 done
3568 done
3569 IFS=$as_save_IFS
3570
3571 fi
3572 fi
3573 CC=$ac_cv_prog_CC
3574 if test -n "$CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576 $as_echo "$CC" >&6; }
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580 fi
3581
3582
3583 fi
3584 fi
3585 if test -z "$CC"; then
3586 # Extract the first word of "cc", so it can be a program name with args.
3587 set dummy cc; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC="$CC" # Let the user override the test.
3595 else
3596 ac_prog_rejected=no
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3605 ac_prog_rejected=yes
3606 continue
3607 fi
3608 ac_cv_prog_CC="cc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612 done
3613 done
3614 IFS=$as_save_IFS
3615
3616 if test $ac_prog_rejected = yes; then
3617 # We found a bogon in the path, so make sure we never use it.
3618 set dummy $ac_cv_prog_CC
3619 shift
3620 if test $# != 0; then
3621 # We chose a different compiler from the bogus one.
3622 # However, it has the same basename, so the bogon will be chosen
3623 # first if we set CC to just the basename; use the full file name.
3624 shift
3625 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3626 fi
3627 fi
3628 fi
3629 fi
3630 CC=$ac_cv_prog_CC
3631 if test -n "$CC"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 $as_echo "$CC" >&6; }
3634 else
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3637 fi
3638
3639
3640 fi
3641 if test -z "$CC"; then
3642 if test -n "$ac_tool_prefix"; then
3643 for ac_prog in cl.exe
3644 do
3645 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3646 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_CC+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 if test -n "$CC"; then
3653 ac_cv_prog_CC="$CC" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3665 fi
3666 done
3667 done
3668 IFS=$as_save_IFS
3669
3670 fi
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 test -n "$CC" && break
3683 done
3684 fi
3685 if test -z "$CC"; then
3686 ac_ct_CC=$CC
3687 for ac_prog in cl.exe
3688 do
3689 # Extract the first word of "$ac_prog", so it can be a program name with args.
3690 set dummy $ac_prog; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$ac_ct_CC"; then
3697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_ac_ct_CC="$ac_prog"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710 done
3711 done
3712 IFS=$as_save_IFS
3713
3714 fi
3715 fi
3716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3717 if test -n "$ac_ct_CC"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3719 $as_echo "$ac_ct_CC" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724
3725
3726 test -n "$ac_ct_CC" && break
3727 done
3728
3729 if test "x$ac_ct_CC" = x; then
3730 CC=""
3731 else
3732 case $cross_compiling:$ac_tool_warned in
3733 yes:)
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3736 ac_tool_warned=yes ;;
3737 esac
3738 CC=$ac_ct_CC
3739 fi
3740 fi
3741
3742 fi
3743
3744
3745 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error "no acceptable C compiler found in \$PATH
3748 See \`config.log' for more details." "$LINENO" 5; }
3749
3750 # Provide some information about the compiler.
3751 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3752 set X $ac_compile
3753 ac_compiler=$2
3754 for ac_option in --version -v -V -qversion; do
3755 { { ac_try="$ac_compiler $ac_option >&5"
3756 case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759 esac
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3763 ac_status=$?
3764 if test -s conftest.err; then
3765 sed '10a\
3766 ... rest of stderr output deleted ...
3767 10q' conftest.err >conftest.er1
3768 cat conftest.er1 >&5
3769 rm -f conftest.er1 conftest.err
3770 fi
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }
3773 done
3774
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777
3778 int
3779 main ()
3780 {
3781
3782 ;
3783 return 0;
3784 }
3785 _ACEOF
3786 ac_clean_files_save=$ac_clean_files
3787 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3788 # Try to create an executable without -o first, disregard a.out.
3789 # It will help us diagnose broken compilers, and finding out an intuition
3790 # of exeext.
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3792 $as_echo_n "checking for C compiler default output file name... " >&6; }
3793 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3794
3795 # The possible output files:
3796 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3797
3798 ac_rmfiles=
3799 for ac_file in $ac_files
3800 do
3801 case $ac_file in
3802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3803 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3804 esac
3805 done
3806 rm -f $ac_rmfiles
3807
3808 if { { ac_try="$ac_link_default"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_link_default") 2>&5
3816 ac_status=$?
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }; then :
3819 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3820 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3821 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3822 # so that the user can short-circuit this test for compilers unknown to
3823 # Autoconf.
3824 for ac_file in $ac_files ''
3825 do
3826 test -f "$ac_file" || continue
3827 case $ac_file in
3828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3829 ;;
3830 [ab].out )
3831 # We found the default executable, but exeext='' is most
3832 # certainly right.
3833 break;;
3834 *.* )
3835 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3836 then :; else
3837 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838 fi
3839 # We set ac_cv_exeext here because the later test for it is not
3840 # safe: cross compilers may not add the suffix if given an `-o'
3841 # argument, so we may need to know it at that point already.
3842 # Even if this section looks crufty: it has the advantage of
3843 # actually working.
3844 break;;
3845 * )
3846 break;;
3847 esac
3848 done
3849 test "$ac_cv_exeext" = no && ac_cv_exeext=
3850
3851 else
3852 ac_file=''
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3855 $as_echo "$ac_file" >&6; }
3856 if test -z "$ac_file"; then :
3857 $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3859
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 { as_fn_set_status 77
3863 as_fn_error "C compiler cannot create executables
3864 See \`config.log' for more details." "$LINENO" 5; }; }
3865 fi
3866 ac_exeext=$ac_cv_exeext
3867
3868 # Check that the compiler produces executables we can run. If not, either
3869 # the compiler is broken, or we cross compile.
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3871 $as_echo_n "checking whether the C compiler works... " >&6; }
3872 # If not cross compiling, check that we can run a simple program.
3873 if test "$cross_compiling" != yes; then
3874 if { ac_try='./$ac_file'
3875 { { case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_try") 2>&5
3882 ac_status=$?
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; }; then
3885 cross_compiling=no
3886 else
3887 if test "$cross_compiling" = maybe; then
3888 cross_compiling=yes
3889 else
3890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892 as_fn_error "cannot run C compiled programs.
3893 If you meant to cross compile, use \`--host'.
3894 See \`config.log' for more details." "$LINENO" 5; }
3895 fi
3896 fi
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3899 $as_echo "yes" >&6; }
3900
3901 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3902 ac_clean_files=$ac_clean_files_save
3903 # Check that the compiler produces executables we can run. If not, either
3904 # the compiler is broken, or we cross compile.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3906 $as_echo_n "checking whether we are cross compiling... " >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3908 $as_echo "$cross_compiling" >&6; }
3909
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3911 $as_echo_n "checking for suffix of executables... " >&6; }
3912 if { { ac_try="$ac_link"
3913 case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_link") 2>&5
3920 ac_status=$?
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; then :
3923 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3924 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3925 # work properly (i.e., refer to `conftest.exe'), while it won't with
3926 # `rm'.
3927 for ac_file in conftest.exe conftest conftest.*; do
3928 test -f "$ac_file" || continue
3929 case $ac_file in
3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3931 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3932 break;;
3933 * ) break;;
3934 esac
3935 done
3936 else
3937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error "cannot compute suffix of executables: cannot compile and link
3940 See \`config.log' for more details." "$LINENO" 5; }
3941 fi
3942 rm -f conftest$ac_cv_exeext
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3944 $as_echo "$ac_cv_exeext" >&6; }
3945
3946 rm -f conftest.$ac_ext
3947 EXEEXT=$ac_cv_exeext
3948 ac_exeext=$EXEEXT
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3950 $as_echo_n "checking for suffix of object files... " >&6; }
3951 if test "${ac_cv_objext+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956
3957 int
3958 main ()
3959 {
3960
3961 ;
3962 return 0;
3963 }
3964 _ACEOF
3965 rm -f conftest.o conftest.obj
3966 if { { ac_try="$ac_compile"
3967 case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970 esac
3971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973 (eval "$ac_compile") 2>&5
3974 ac_status=$?
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }; then :
3977 for ac_file in conftest.o conftest.obj conftest.*; do
3978 test -f "$ac_file" || continue;
3979 case $ac_file in
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3981 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3982 break;;
3983 esac
3984 done
3985 else
3986 $as_echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3988
3989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error "cannot compute suffix of object files: cannot compile
3992 See \`config.log' for more details." "$LINENO" 5; }
3993 fi
3994 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3997 $as_echo "$ac_cv_objext" >&6; }
3998 OBJEXT=$ac_cv_objext
3999 ac_objext=$OBJEXT
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4001 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4002 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4007
4008 int
4009 main ()
4010 {
4011 #ifndef __GNUC__
4012 choke me
4013 #endif
4014
4015 ;
4016 return 0;
4017 }
4018 _ACEOF
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_compiler_gnu=yes
4021 else
4022 ac_compiler_gnu=no
4023 fi
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4026
4027 fi
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4029 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4030 if test $ac_compiler_gnu = yes; then
4031 GCC=yes
4032 else
4033 GCC=
4034 fi
4035 ac_test_CFLAGS=${CFLAGS+set}
4036 ac_save_CFLAGS=$CFLAGS
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4038 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4039 if test "${ac_cv_prog_cc_g+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 ac_save_c_werror_flag=$ac_c_werror_flag
4043 ac_c_werror_flag=yes
4044 ac_cv_prog_cc_g=no
4045 CFLAGS="-g"
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048
4049 int
4050 main ()
4051 {
4052
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_cv_prog_cc_g=yes
4059 else
4060 CFLAGS=""
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063
4064 int
4065 main ()
4066 {
4067
4068 ;
4069 return 0;
4070 }
4071 _ACEOF
4072 if ac_fn_c_try_compile "$LINENO"; then :
4073
4074 else
4075 ac_c_werror_flag=$ac_save_c_werror_flag
4076 CFLAGS="-g"
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079
4080 int
4081 main ()
4082 {
4083
4084 ;
4085 return 0;
4086 }
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_cv_prog_cc_g=yes
4090 fi
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 fi
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 ac_c_werror_flag=$ac_save_c_werror_flag
4097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4099 $as_echo "$ac_cv_prog_cc_g" >&6; }
4100 if test "$ac_test_CFLAGS" = set; then
4101 CFLAGS=$ac_save_CFLAGS
4102 elif test $ac_cv_prog_cc_g = yes; then
4103 if test "$GCC" = yes; then
4104 CFLAGS="-g -O2"
4105 else
4106 CFLAGS="-g"
4107 fi
4108 else
4109 if test "$GCC" = yes; then
4110 CFLAGS="-O2"
4111 else
4112 CFLAGS=
4113 fi
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4116 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4117 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 ac_cv_prog_cc_c89=no
4121 ac_save_CC=$CC
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #include <stdarg.h>
4125 #include <stdio.h>
4126 #include <sys/types.h>
4127 #include <sys/stat.h>
4128 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4129 struct buf { int x; };
4130 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4131 static char *e (p, i)
4132 char **p;
4133 int i;
4134 {
4135 return p[i];
4136 }
4137 static char *f (char * (*g) (char **, int), char **p, ...)
4138 {
4139 char *s;
4140 va_list v;
4141 va_start (v,p);
4142 s = g (p, va_arg (v,int));
4143 va_end (v);
4144 return s;
4145 }
4146
4147 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4148 function prototypes and stuff, but not '\xHH' hex character constants.
4149 These don't provoke an error unfortunately, instead are silently treated
4150 as 'x'. The following induces an error, until -std is added to get
4151 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4152 array size at least. It's necessary to write '\x00'==0 to get something
4153 that's true only with -std. */
4154 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4155
4156 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4157 inside strings and character constants. */
4158 #define FOO(x) 'x'
4159 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4160
4161 int test (int i, double x);
4162 struct s1 {int (*f) (int a);};
4163 struct s2 {int (*f) (double a);};
4164 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4165 int argc;
4166 char **argv;
4167 int
4168 main ()
4169 {
4170 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4176 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4177 do
4178 CC="$ac_save_CC $ac_arg"
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_prog_cc_c89=$ac_arg
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext
4183 test "x$ac_cv_prog_cc_c89" != "xno" && break
4184 done
4185 rm -f conftest.$ac_ext
4186 CC=$ac_save_CC
4187
4188 fi
4189 # AC_CACHE_VAL
4190 case "x$ac_cv_prog_cc_c89" in
4191 x)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4193 $as_echo "none needed" >&6; } ;;
4194 xno)
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4196 $as_echo "unsupported" >&6; } ;;
4197 *)
4198 CC="$CC $ac_cv_prog_cc_c89"
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4200 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4201 esac
4202 if test "x$ac_cv_prog_cc_c89" != xno; then :
4203
4204 fi
4205
4206 ac_ext=c
4207 ac_cpp='$CPP $CPPFLAGS'
4208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211
4212 if test "x$CC" != xcc; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4214 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4215 else
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4217 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4218 fi
4219 set dummy $CC; ac_cc=`$as_echo "$2" |
4220 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4221 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4226
4227 int
4228 main ()
4229 {
4230
4231 ;
4232 return 0;
4233 }
4234 _ACEOF
4235 # Make sure it works both with $CC and with simple cc.
4236 # We do the test twice because some compilers refuse to overwrite an
4237 # existing .o file with -o, though they will create one.
4238 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4239 rm -f conftest2.*
4240 if { { case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243 esac
4244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245 $as_echo "$ac_try_echo"; } >&5
4246 (eval "$ac_try") 2>&5
4247 ac_status=$?
4248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4249 test $ac_status = 0; } &&
4250 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253 esac
4254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4255 $as_echo "$ac_try_echo"; } >&5
4256 (eval "$ac_try") 2>&5
4257 ac_status=$?
4258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4259 test $ac_status = 0; };
4260 then
4261 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4262 if test "x$CC" != xcc; then
4263 # Test first that cc exists at all.
4264 if { ac_try='cc -c conftest.$ac_ext >&5'
4265 { { case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268 esac
4269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4270 $as_echo "$ac_try_echo"; } >&5
4271 (eval "$ac_try") 2>&5
4272 ac_status=$?
4273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274 test $ac_status = 0; }; }; then
4275 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4276 rm -f conftest2.*
4277 if { { case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4280 esac
4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282 $as_echo "$ac_try_echo"; } >&5
4283 (eval "$ac_try") 2>&5
4284 ac_status=$?
4285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286 test $ac_status = 0; } &&
4287 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290 esac
4291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292 $as_echo "$ac_try_echo"; } >&5
4293 (eval "$ac_try") 2>&5
4294 ac_status=$?
4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; };
4297 then
4298 # cc works too.
4299 :
4300 else
4301 # cc exists but doesn't like -o.
4302 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4303 fi
4304 fi
4305 fi
4306 else
4307 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4308 fi
4309 rm -f core conftest*
4310
4311 fi
4312 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4314 $as_echo "yes" >&6; }
4315 else
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4318
4319 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4320
4321 fi
4322
4323 # expand $ac_aux_dir to an absolute path
4324 am_aux_dir=`cd $ac_aux_dir && pwd`
4325
4326 # FIXME: we rely on the cache variable name because
4327 # there is no other way.
4328 set dummy $CC
4329 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4330 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4331 if test "$am_t" != yes; then
4332 # Losing compiler, so override with the script.
4333 # FIXME: It is wrong to rewrite CC.
4334 # But if we don't then we get into trouble of one sort or another.
4335 # A longer-term fix would be to have automake use am__CC in this case,
4336 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4337 CC="$am_aux_dir/compile $CC"
4338 fi
4339
4340
4341 ac_ext=cpp
4342 ac_cpp='$CXXCPP $CPPFLAGS'
4343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4346 if test -z "$CXX"; then
4347 if test -n "$CCC"; then
4348 CXX=$CCC
4349 else
4350 if test -n "$ac_tool_prefix"; then
4351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4352 do
4353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if test "${ac_cv_prog_CXX+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 if test -n "$CXX"; then
4361 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4373 fi
4374 done
4375 done
4376 IFS=$as_save_IFS
4377
4378 fi
4379 fi
4380 CXX=$ac_cv_prog_CXX
4381 if test -n "$CXX"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4383 $as_echo "$CXX" >&6; }
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 fi
4388
4389
4390 test -n "$CXX" && break
4391 done
4392 fi
4393 if test -z "$CXX"; then
4394 ac_ct_CXX=$CXX
4395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4396 do
4397 # Extract the first word of "$ac_prog", so it can be a program name with args.
4398 set dummy $ac_prog; ac_word=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if test -n "$ac_ct_CXX"; then
4405 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_ac_ct_CXX="$ac_prog"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418 done
4419 done
4420 IFS=$as_save_IFS
4421
4422 fi
4423 fi
4424 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4425 if test -n "$ac_ct_CXX"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4427 $as_echo "$ac_ct_CXX" >&6; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 fi
4432
4433
4434 test -n "$ac_ct_CXX" && break
4435 done
4436
4437 if test "x$ac_ct_CXX" = x; then
4438 CXX="g++"
4439 else
4440 case $cross_compiling:$ac_tool_warned in
4441 yes:)
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4444 ac_tool_warned=yes ;;
4445 esac
4446 CXX=$ac_ct_CXX
4447 fi
4448 fi
4449
4450 fi
4451 fi
4452 # Provide some information about the compiler.
4453 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4454 set X $ac_compile
4455 ac_compiler=$2
4456 for ac_option in --version -v -V -qversion; do
4457 { { ac_try="$ac_compiler $ac_option >&5"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463 $as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4465 ac_status=$?
4466 if test -s conftest.err; then
4467 sed '10a\
4468 ... rest of stderr output deleted ...
4469 10q' conftest.err >conftest.er1
4470 cat conftest.er1 >&5
4471 rm -f conftest.er1 conftest.err
4472 fi
4473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4474 test $ac_status = 0; }
4475 done
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4478 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4479 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484
4485 int
4486 main ()
4487 {
4488 #ifndef __GNUC__
4489 choke me
4490 #endif
4491
4492 ;
4493 return 0;
4494 }
4495 _ACEOF
4496 if ac_fn_cxx_try_compile "$LINENO"; then :
4497 ac_compiler_gnu=yes
4498 else
4499 ac_compiler_gnu=no
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4503
4504 fi
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4506 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4507 if test $ac_compiler_gnu = yes; then
4508 GXX=yes
4509 else
4510 GXX=
4511 fi
4512 ac_test_CXXFLAGS=${CXXFLAGS+set}
4513 ac_save_CXXFLAGS=$CXXFLAGS
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4515 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4516 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4520 ac_cxx_werror_flag=yes
4521 ac_cv_prog_cxx_g=no
4522 CXXFLAGS="-g"
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525
4526 int
4527 main ()
4528 {
4529
4530 ;
4531 return 0;
4532 }
4533 _ACEOF
4534 if ac_fn_cxx_try_compile "$LINENO"; then :
4535 ac_cv_prog_cxx_g=yes
4536 else
4537 CXXFLAGS=""
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540
4541 int
4542 main ()
4543 {
4544
4545 ;
4546 return 0;
4547 }
4548 _ACEOF
4549 if ac_fn_cxx_try_compile "$LINENO"; then :
4550
4551 else
4552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4553 CXXFLAGS="-g"
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556
4557 int
4558 main ()
4559 {
4560
4561 ;
4562 return 0;
4563 }
4564 _ACEOF
4565 if ac_fn_cxx_try_compile "$LINENO"; then :
4566 ac_cv_prog_cxx_g=yes
4567 fi
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 fi
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 fi
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4576 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4577 if test "$ac_test_CXXFLAGS" = set; then
4578 CXXFLAGS=$ac_save_CXXFLAGS
4579 elif test $ac_cv_prog_cxx_g = yes; then
4580 if test "$GXX" = yes; then
4581 CXXFLAGS="-g -O2"
4582 else
4583 CXXFLAGS="-g"
4584 fi
4585 else
4586 if test "$GXX" = yes; then
4587 CXXFLAGS="-O2"
4588 else
4589 CXXFLAGS=
4590 fi
4591 fi
4592 ac_ext=c
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597
4598
4599
4600
4601 if test -n "$ac_tool_prefix"; then
4602 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4603 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$GNATBIND"; then
4610 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623 done
4624 done
4625 IFS=$as_save_IFS
4626
4627 fi
4628 fi
4629 GNATBIND=$ac_cv_prog_GNATBIND
4630 if test -n "$GNATBIND"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4632 $as_echo "$GNATBIND" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4636 fi
4637
4638
4639 fi
4640 if test -z "$ac_cv_prog_GNATBIND"; then
4641 ac_ct_GNATBIND=$GNATBIND
4642 # Extract the first word of "gnatbind", so it can be a program name with args.
4643 set dummy gnatbind; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$ac_ct_GNATBIND"; then
4650 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4670 if test -n "$ac_ct_GNATBIND"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4672 $as_echo "$ac_ct_GNATBIND" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678 if test "x$ac_ct_GNATBIND" = x; then
4679 GNATBIND="no"
4680 else
4681 case $cross_compiling:$ac_tool_warned in
4682 yes:)
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685 ac_tool_warned=yes ;;
4686 esac
4687 GNATBIND=$ac_ct_GNATBIND
4688 fi
4689 else
4690 GNATBIND="$ac_cv_prog_GNATBIND"
4691 fi
4692
4693 if test -n "$ac_tool_prefix"; then
4694 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4695 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 if test -n "$GNATMAKE"; then
4702 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4714 fi
4715 done
4716 done
4717 IFS=$as_save_IFS
4718
4719 fi
4720 fi
4721 GNATMAKE=$ac_cv_prog_GNATMAKE
4722 if test -n "$GNATMAKE"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4724 $as_echo "$GNATMAKE" >&6; }
4725 else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4728 fi
4729
4730
4731 fi
4732 if test -z "$ac_cv_prog_GNATMAKE"; then
4733 ac_ct_GNATMAKE=$GNATMAKE
4734 # Extract the first word of "gnatmake", so it can be a program name with args.
4735 set dummy gnatmake; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if test -n "$ac_ct_GNATMAKE"; then
4742 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4762 if test -n "$ac_ct_GNATMAKE"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4764 $as_echo "$ac_ct_GNATMAKE" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770 if test "x$ac_ct_GNATMAKE" = x; then
4771 GNATMAKE="no"
4772 else
4773 case $cross_compiling:$ac_tool_warned in
4774 yes:)
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777 ac_tool_warned=yes ;;
4778 esac
4779 GNATMAKE=$ac_ct_GNATMAKE
4780 fi
4781 else
4782 GNATMAKE="$ac_cv_prog_GNATMAKE"
4783 fi
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4786 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4787 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 cat >conftest.adb <<EOF
4791 procedure conftest is begin null; end conftest;
4792 EOF
4793 acx_cv_cc_gcc_supports_ada=no
4794 # There is a bug in old released versions of GCC which causes the
4795 # driver to exit successfully when the appropriate language module
4796 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4797 # Therefore we must check for the error message as well as an
4798 # unsuccessful exit.
4799 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4800 # given a .adb file, but produce no object file. So we must check
4801 # if an object file was really produced to guard against this.
4802 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4803 if test x"$errors" = x && test -f conftest.$ac_objext; then
4804 acx_cv_cc_gcc_supports_ada=yes
4805 fi
4806 rm -f conftest.*
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4809 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4810
4811 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4812 have_gnat=yes
4813 else
4814 have_gnat=no
4815 fi
4816
4817
4818 # autoconf is lame and doesn't give us any substitution variable for this.
4819 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4820 NO_MINUS_C_MINUS_O=yes
4821 else
4822 OUTPUT_OPTION='-o $@'
4823 fi
4824
4825
4826
4827 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4828 # optimizations to be activated explicitly by the toplevel.
4829 case "$CC" in
4830 */prev-gcc/xgcc*) ;;
4831 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4832 esac
4833
4834
4835 # -------------------------
4836 # Check C compiler features
4837 # -------------------------
4838
4839
4840 ac_ext=c
4841 ac_cpp='$CPP $CPPFLAGS'
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4846 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4847 # On Suns, sometimes $CPP names a directory.
4848 if test -n "$CPP" && test -d "$CPP"; then
4849 CPP=
4850 fi
4851 if test -z "$CPP"; then
4852 if test "${ac_cv_prog_CPP+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 # Double quotes because CPP needs to be expanded
4856 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4857 do
4858 ac_preproc_ok=false
4859 for ac_c_preproc_warn_flag in '' yes
4860 do
4861 # Use a header file that comes with gcc, so configuring glibc
4862 # with a fresh cross-compiler works.
4863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4864 # <limits.h> exists even on freestanding compilers.
4865 # On the NeXT, cc -E runs the code through the compiler's parser,
4866 # not just through cpp. "Syntax error" is here to catch this case.
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869 #ifdef __STDC__
4870 # include <limits.h>
4871 #else
4872 # include <assert.h>
4873 #endif
4874 Syntax error
4875 _ACEOF
4876 if ac_fn_c_try_cpp "$LINENO"; then :
4877
4878 else
4879 # Broken: fails on valid input.
4880 continue
4881 fi
4882 rm -f conftest.err conftest.$ac_ext
4883
4884 # OK, works on sane cases. Now check whether nonexistent headers
4885 # can be detected and how.
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 #include <ac_nonexistent.h>
4889 _ACEOF
4890 if ac_fn_c_try_cpp "$LINENO"; then :
4891 # Broken: success on invalid input.
4892 continue
4893 else
4894 # Passes both tests.
4895 ac_preproc_ok=:
4896 break
4897 fi
4898 rm -f conftest.err conftest.$ac_ext
4899
4900 done
4901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4902 rm -f conftest.err conftest.$ac_ext
4903 if $ac_preproc_ok; then :
4904 break
4905 fi
4906
4907 done
4908 ac_cv_prog_CPP=$CPP
4909
4910 fi
4911 CPP=$ac_cv_prog_CPP
4912 else
4913 ac_cv_prog_CPP=$CPP
4914 fi
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4916 $as_echo "$CPP" >&6; }
4917 ac_preproc_ok=false
4918 for ac_c_preproc_warn_flag in '' yes
4919 do
4920 # Use a header file that comes with gcc, so configuring glibc
4921 # with a fresh cross-compiler works.
4922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4923 # <limits.h> exists even on freestanding compilers.
4924 # On the NeXT, cc -E runs the code through the compiler's parser,
4925 # not just through cpp. "Syntax error" is here to catch this case.
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928 #ifdef __STDC__
4929 # include <limits.h>
4930 #else
4931 # include <assert.h>
4932 #endif
4933 Syntax error
4934 _ACEOF
4935 if ac_fn_c_try_cpp "$LINENO"; then :
4936
4937 else
4938 # Broken: fails on valid input.
4939 continue
4940 fi
4941 rm -f conftest.err conftest.$ac_ext
4942
4943 # OK, works on sane cases. Now check whether nonexistent headers
4944 # can be detected and how.
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947 #include <ac_nonexistent.h>
4948 _ACEOF
4949 if ac_fn_c_try_cpp "$LINENO"; then :
4950 # Broken: success on invalid input.
4951 continue
4952 else
4953 # Passes both tests.
4954 ac_preproc_ok=:
4955 break
4956 fi
4957 rm -f conftest.err conftest.$ac_ext
4958
4959 done
4960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4961 rm -f conftest.err conftest.$ac_ext
4962 if $ac_preproc_ok; then :
4963
4964 else
4965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4967 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4968 See \`config.log' for more details." "$LINENO" 5; }
4969 fi
4970
4971 ac_ext=c
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976
4977
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4979 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4980 if test "${ac_cv_path_GREP+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -z "$GREP"; then
4984 ac_path_GREP_found=false
4985 # Loop through the user's path and test for each of PROGNAME-LIST
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4988 do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_prog in grep ggrep; do
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4994 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4995 # Check for GNU ac_path_GREP and select it if it is found.
4996 # Check for GNU $ac_path_GREP
4997 case `"$ac_path_GREP" --version 2>&1` in
4998 *GNU*)
4999 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5000 *)
5001 ac_count=0
5002 $as_echo_n 0123456789 >"conftest.in"
5003 while :
5004 do
5005 cat "conftest.in" "conftest.in" >"conftest.tmp"
5006 mv "conftest.tmp" "conftest.in"
5007 cp "conftest.in" "conftest.nl"
5008 $as_echo 'GREP' >> "conftest.nl"
5009 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5011 as_fn_arith $ac_count + 1 && ac_count=$as_val
5012 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5013 # Best one so far, save it but keep looking for a better one
5014 ac_cv_path_GREP="$ac_path_GREP"
5015 ac_path_GREP_max=$ac_count
5016 fi
5017 # 10*(2^10) chars as input seems more than enough
5018 test $ac_count -gt 10 && break
5019 done
5020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5021 esac
5022
5023 $ac_path_GREP_found && break 3
5024 done
5025 done
5026 done
5027 IFS=$as_save_IFS
5028 if test -z "$ac_cv_path_GREP"; then
5029 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5030 fi
5031 else
5032 ac_cv_path_GREP=$GREP
5033 fi
5034
5035 fi
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5037 $as_echo "$ac_cv_path_GREP" >&6; }
5038 GREP="$ac_cv_path_GREP"
5039
5040
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5042 $as_echo_n "checking for egrep... " >&6; }
5043 if test "${ac_cv_path_EGREP+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5047 then ac_cv_path_EGREP="$GREP -E"
5048 else
5049 if test -z "$EGREP"; then
5050 ac_path_EGREP_found=false
5051 # Loop through the user's path and test for each of PROGNAME-LIST
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5054 do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_prog in egrep; do
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5060 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5061 # Check for GNU ac_path_EGREP and select it if it is found.
5062 # Check for GNU $ac_path_EGREP
5063 case `"$ac_path_EGREP" --version 2>&1` in
5064 *GNU*)
5065 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5066 *)
5067 ac_count=0
5068 $as_echo_n 0123456789 >"conftest.in"
5069 while :
5070 do
5071 cat "conftest.in" "conftest.in" >"conftest.tmp"
5072 mv "conftest.tmp" "conftest.in"
5073 cp "conftest.in" "conftest.nl"
5074 $as_echo 'EGREP' >> "conftest.nl"
5075 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5077 as_fn_arith $ac_count + 1 && ac_count=$as_val
5078 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5079 # Best one so far, save it but keep looking for a better one
5080 ac_cv_path_EGREP="$ac_path_EGREP"
5081 ac_path_EGREP_max=$ac_count
5082 fi
5083 # 10*(2^10) chars as input seems more than enough
5084 test $ac_count -gt 10 && break
5085 done
5086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5087 esac
5088
5089 $ac_path_EGREP_found && break 3
5090 done
5091 done
5092 done
5093 IFS=$as_save_IFS
5094 if test -z "$ac_cv_path_EGREP"; then
5095 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5096 fi
5097 else
5098 ac_cv_path_EGREP=$EGREP
5099 fi
5100
5101 fi
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5104 $as_echo "$ac_cv_path_EGREP" >&6; }
5105 EGREP="$ac_cv_path_EGREP"
5106
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5109 $as_echo_n "checking for ANSI C header files... " >&6; }
5110 if test "${ac_cv_header_stdc+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #include <stdlib.h>
5116 #include <stdarg.h>
5117 #include <string.h>
5118 #include <float.h>
5119
5120 int
5121 main ()
5122 {
5123
5124 ;
5125 return 0;
5126 }
5127 _ACEOF
5128 if ac_fn_c_try_compile "$LINENO"; then :
5129 ac_cv_header_stdc=yes
5130 else
5131 ac_cv_header_stdc=no
5132 fi
5133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134
5135 if test $ac_cv_header_stdc = yes; then
5136 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 #include <string.h>
5140
5141 _ACEOF
5142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5143 $EGREP "memchr" >/dev/null 2>&1; then :
5144
5145 else
5146 ac_cv_header_stdc=no
5147 fi
5148 rm -f conftest*
5149
5150 fi
5151
5152 if test $ac_cv_header_stdc = yes; then
5153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5156 #include <stdlib.h>
5157
5158 _ACEOF
5159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5160 $EGREP "free" >/dev/null 2>&1; then :
5161
5162 else
5163 ac_cv_header_stdc=no
5164 fi
5165 rm -f conftest*
5166
5167 fi
5168
5169 if test $ac_cv_header_stdc = yes; then
5170 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5171 if test "$cross_compiling" = yes; then :
5172 :
5173 else
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #include <ctype.h>
5177 #include <stdlib.h>
5178 #if ((' ' & 0x0FF) == 0x020)
5179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5181 #else
5182 # define ISLOWER(c) \
5183 (('a' <= (c) && (c) <= 'i') \
5184 || ('j' <= (c) && (c) <= 'r') \
5185 || ('s' <= (c) && (c) <= 'z'))
5186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5187 #endif
5188
5189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5190 int
5191 main ()
5192 {
5193 int i;
5194 for (i = 0; i < 256; i++)
5195 if (XOR (islower (i), ISLOWER (i))
5196 || toupper (i) != TOUPPER (i))
5197 return 2;
5198 return 0;
5199 }
5200 _ACEOF
5201 if ac_fn_c_try_run "$LINENO"; then :
5202
5203 else
5204 ac_cv_header_stdc=no
5205 fi
5206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5207 conftest.$ac_objext conftest.beam conftest.$ac_ext
5208 fi
5209
5210 fi
5211 fi
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5213 $as_echo "$ac_cv_header_stdc" >&6; }
5214 if test $ac_cv_header_stdc = yes; then
5215
5216 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5217
5218 fi
5219
5220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5221 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5222 inttypes.h stdint.h unistd.h
5223 do :
5224 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5225 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5226 "
5227 eval as_val=\$$as_ac_Header
5228 if test "x$as_val" = x""yes; then :
5229 cat >>confdefs.h <<_ACEOF
5230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5231 _ACEOF
5232
5233 fi
5234
5235 done
5236
5237
5238
5239 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5240 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5241 MINIX=yes
5242 else
5243 MINIX=
5244 fi
5245
5246
5247 if test "$MINIX" = yes; then
5248
5249 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5250
5251
5252 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5253
5254
5255 $as_echo "#define _MINIX 1" >>confdefs.h
5256
5257 fi
5258
5259
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5261 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5262 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5267
5268 # define __EXTENSIONS__ 1
5269 $ac_includes_default
5270 int
5271 main ()
5272 {
5273
5274 ;
5275 return 0;
5276 }
5277 _ACEOF
5278 if ac_fn_c_try_compile "$LINENO"; then :
5279 ac_cv_safe_to_define___extensions__=yes
5280 else
5281 ac_cv_safe_to_define___extensions__=no
5282 fi
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 fi
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5286 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5287 test $ac_cv_safe_to_define___extensions__ = yes &&
5288 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5289
5290 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5291
5292 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5293
5294 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5295
5296 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5297
5298
5299 ac_ext=c
5300 ac_cpp='$CPP $CPPFLAGS'
5301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5305 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5306 # On Suns, sometimes $CPP names a directory.
5307 if test -n "$CPP" && test -d "$CPP"; then
5308 CPP=
5309 fi
5310 if test -z "$CPP"; then
5311 if test "${ac_cv_prog_CPP+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 # Double quotes because CPP needs to be expanded
5315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5316 do
5317 ac_preproc_ok=false
5318 for ac_c_preproc_warn_flag in '' yes
5319 do
5320 # Use a header file that comes with gcc, so configuring glibc
5321 # with a fresh cross-compiler works.
5322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5323 # <limits.h> exists even on freestanding compilers.
5324 # On the NeXT, cc -E runs the code through the compiler's parser,
5325 # not just through cpp. "Syntax error" is here to catch this case.
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 #ifdef __STDC__
5329 # include <limits.h>
5330 #else
5331 # include <assert.h>
5332 #endif
5333 Syntax error
5334 _ACEOF
5335 if ac_fn_c_try_cpp "$LINENO"; then :
5336
5337 else
5338 # Broken: fails on valid input.
5339 continue
5340 fi
5341 rm -f conftest.err conftest.$ac_ext
5342
5343 # OK, works on sane cases. Now check whether nonexistent headers
5344 # can be detected and how.
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 #include <ac_nonexistent.h>
5348 _ACEOF
5349 if ac_fn_c_try_cpp "$LINENO"; then :
5350 # Broken: success on invalid input.
5351 continue
5352 else
5353 # Passes both tests.
5354 ac_preproc_ok=:
5355 break
5356 fi
5357 rm -f conftest.err conftest.$ac_ext
5358
5359 done
5360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5361 rm -f conftest.err conftest.$ac_ext
5362 if $ac_preproc_ok; then :
5363 break
5364 fi
5365
5366 done
5367 ac_cv_prog_CPP=$CPP
5368
5369 fi
5370 CPP=$ac_cv_prog_CPP
5371 else
5372 ac_cv_prog_CPP=$CPP
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5375 $as_echo "$CPP" >&6; }
5376 ac_preproc_ok=false
5377 for ac_c_preproc_warn_flag in '' yes
5378 do
5379 # Use a header file that comes with gcc, so configuring glibc
5380 # with a fresh cross-compiler works.
5381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5382 # <limits.h> exists even on freestanding compilers.
5383 # On the NeXT, cc -E runs the code through the compiler's parser,
5384 # not just through cpp. "Syntax error" is here to catch this case.
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #ifdef __STDC__
5388 # include <limits.h>
5389 #else
5390 # include <assert.h>
5391 #endif
5392 Syntax error
5393 _ACEOF
5394 if ac_fn_c_try_cpp "$LINENO"; then :
5395
5396 else
5397 # Broken: fails on valid input.
5398 continue
5399 fi
5400 rm -f conftest.err conftest.$ac_ext
5401
5402 # OK, works on sane cases. Now check whether nonexistent headers
5403 # can be detected and how.
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406 #include <ac_nonexistent.h>
5407 _ACEOF
5408 if ac_fn_c_try_cpp "$LINENO"; then :
5409 # Broken: success on invalid input.
5410 continue
5411 else
5412 # Passes both tests.
5413 ac_preproc_ok=:
5414 break
5415 fi
5416 rm -f conftest.err conftest.$ac_ext
5417
5418 done
5419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5420 rm -f conftest.err conftest.$ac_ext
5421 if $ac_preproc_ok; then :
5422
5423 else
5424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5426 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5427 See \`config.log' for more details." "$LINENO" 5; }
5428 fi
5429
5430 ac_ext=c
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5437 $as_echo_n "checking for inline... " >&6; }
5438 if test "${ac_cv_c_inline+set}" = set; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 ac_cv_c_inline=no
5442 for ac_kw in inline __inline__ __inline; do
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #ifndef __cplusplus
5446 typedef int foo_t;
5447 static $ac_kw foo_t static_foo () {return 0; }
5448 $ac_kw foo_t foo () {return 0; }
5449 #endif
5450
5451 _ACEOF
5452 if ac_fn_c_try_compile "$LINENO"; then :
5453 ac_cv_c_inline=$ac_kw
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 test "$ac_cv_c_inline" != no && break
5457 done
5458
5459 fi
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5461 $as_echo "$ac_cv_c_inline" >&6; }
5462
5463 case $ac_cv_c_inline in
5464 inline | yes) ;;
5465 *)
5466 case $ac_cv_c_inline in
5467 no) ac_val=;;
5468 *) ac_val=$ac_cv_c_inline;;
5469 esac
5470 cat >>confdefs.h <<_ACEOF
5471 #ifndef __cplusplus
5472 #define inline $ac_val
5473 #endif
5474 _ACEOF
5475 ;;
5476 esac
5477
5478
5479 # Check whether --enable-largefile was given.
5480 if test "${enable_largefile+set}" = set; then :
5481 enableval=$enable_largefile;
5482 fi
5483
5484 if test "$enable_largefile" != no; then
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5487 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5488 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 ac_cv_sys_largefile_CC=no
5492 if test "$GCC" != yes; then
5493 ac_save_CC=$CC
5494 while :; do
5495 # IRIX 6.2 and later do not support large files by default,
5496 # so use the C compiler's -n32 option if that helps.
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499 #include <sys/types.h>
5500 /* Check that off_t can represent 2**63 - 1 correctly.
5501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5502 since some C++ compilers masquerading as C compilers
5503 incorrectly reject 9223372036854775807. */
5504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5506 && LARGE_OFF_T % 2147483647 == 1)
5507 ? 1 : -1];
5508 int
5509 main ()
5510 {
5511
5512 ;
5513 return 0;
5514 }
5515 _ACEOF
5516 if ac_fn_c_try_compile "$LINENO"; then :
5517 break
5518 fi
5519 rm -f core conftest.err conftest.$ac_objext
5520 CC="$CC -n32"
5521 if ac_fn_c_try_compile "$LINENO"; then :
5522 ac_cv_sys_largefile_CC=' -n32'; break
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext
5525 break
5526 done
5527 CC=$ac_save_CC
5528 rm -f conftest.$ac_ext
5529 fi
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5532 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5533 if test "$ac_cv_sys_largefile_CC" != no; then
5534 CC=$CC$ac_cv_sys_largefile_CC
5535 fi
5536
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5538 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5539 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 while :; do
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 #include <sys/types.h>
5546 /* Check that off_t can represent 2**63 - 1 correctly.
5547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5548 since some C++ compilers masquerading as C compilers
5549 incorrectly reject 9223372036854775807. */
5550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5552 && LARGE_OFF_T % 2147483647 == 1)
5553 ? 1 : -1];
5554 int
5555 main ()
5556 {
5557
5558 ;
5559 return 0;
5560 }
5561 _ACEOF
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563 ac_cv_sys_file_offset_bits=no; break
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #define _FILE_OFFSET_BITS 64
5569 #include <sys/types.h>
5570 /* Check that off_t can represent 2**63 - 1 correctly.
5571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5572 since some C++ compilers masquerading as C compilers
5573 incorrectly reject 9223372036854775807. */
5574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5576 && LARGE_OFF_T % 2147483647 == 1)
5577 ? 1 : -1];
5578 int
5579 main ()
5580 {
5581
5582 ;
5583 return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 ac_cv_sys_file_offset_bits=64; break
5588 fi
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 ac_cv_sys_file_offset_bits=unknown
5591 break
5592 done
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5595 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5596 case $ac_cv_sys_file_offset_bits in #(
5597 no | unknown) ;;
5598 *)
5599 cat >>confdefs.h <<_ACEOF
5600 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5601 _ACEOF
5602 ;;
5603 esac
5604 rm -rf conftest*
5605 if test $ac_cv_sys_file_offset_bits = unknown; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5607 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5608 if test "${ac_cv_sys_large_files+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 while :; do
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 #include <sys/types.h>
5615 /* Check that off_t can represent 2**63 - 1 correctly.
5616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5617 since some C++ compilers masquerading as C compilers
5618 incorrectly reject 9223372036854775807. */
5619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5621 && LARGE_OFF_T % 2147483647 == 1)
5622 ? 1 : -1];
5623 int
5624 main ()
5625 {
5626
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632 ac_cv_sys_large_files=no; break
5633 fi
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #define _LARGE_FILES 1
5638 #include <sys/types.h>
5639 /* Check that off_t can represent 2**63 - 1 correctly.
5640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5641 since some C++ compilers masquerading as C compilers
5642 incorrectly reject 9223372036854775807. */
5643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5645 && LARGE_OFF_T % 2147483647 == 1)
5646 ? 1 : -1];
5647 int
5648 main ()
5649 {
5650
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 ac_cv_sys_large_files=1; break
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 ac_cv_sys_large_files=unknown
5660 break
5661 done
5662 fi
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5664 $as_echo "$ac_cv_sys_large_files" >&6; }
5665 case $ac_cv_sys_large_files in #(
5666 no | unknown) ;;
5667 *)
5668 cat >>confdefs.h <<_ACEOF
5669 #define _LARGE_FILES $ac_cv_sys_large_files
5670 _ACEOF
5671 ;;
5672 esac
5673 rm -rf conftest*
5674 fi
5675 fi
5676
5677
5678 # sizeof(char) is 1 by definition.
5679 # The cast to long int works around a bug in the HP C Compiler
5680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5682 # This bug is HP SR number 8606223364.
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5684 $as_echo_n "checking size of void *... " >&6; }
5685 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5689
5690 else
5691 if test "$ac_cv_type_void_p" = yes; then
5692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5694 { as_fn_set_status 77
5695 as_fn_error "cannot compute sizeof (void *)
5696 See \`config.log' for more details." "$LINENO" 5; }; }
5697 else
5698 ac_cv_sizeof_void_p=0
5699 fi
5700 fi
5701
5702 fi
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5704 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5705
5706
5707
5708 cat >>confdefs.h <<_ACEOF
5709 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5710 _ACEOF
5711
5712
5713 # The cast to long int works around a bug in the HP C Compiler
5714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5716 # This bug is HP SR number 8606223364.
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5718 $as_echo_n "checking size of short... " >&6; }
5719 if test "${ac_cv_sizeof_short+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5723
5724 else
5725 if test "$ac_cv_type_short" = yes; then
5726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5728 { as_fn_set_status 77
5729 as_fn_error "cannot compute sizeof (short)
5730 See \`config.log' for more details." "$LINENO" 5; }; }
5731 else
5732 ac_cv_sizeof_short=0
5733 fi
5734 fi
5735
5736 fi
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5738 $as_echo "$ac_cv_sizeof_short" >&6; }
5739
5740
5741
5742 cat >>confdefs.h <<_ACEOF
5743 #define SIZEOF_SHORT $ac_cv_sizeof_short
5744 _ACEOF
5745
5746
5747 # The cast to long int works around a bug in the HP C Compiler
5748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5750 # This bug is HP SR number 8606223364.
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5752 $as_echo_n "checking size of int... " >&6; }
5753 if test "${ac_cv_sizeof_int+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5757
5758 else
5759 if test "$ac_cv_type_int" = yes; then
5760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5762 { as_fn_set_status 77
5763 as_fn_error "cannot compute sizeof (int)
5764 See \`config.log' for more details." "$LINENO" 5; }; }
5765 else
5766 ac_cv_sizeof_int=0
5767 fi
5768 fi
5769
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5772 $as_echo "$ac_cv_sizeof_int" >&6; }
5773
5774
5775
5776 cat >>confdefs.h <<_ACEOF
5777 #define SIZEOF_INT $ac_cv_sizeof_int
5778 _ACEOF
5779
5780
5781 # The cast to long int works around a bug in the HP C Compiler
5782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5784 # This bug is HP SR number 8606223364.
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5786 $as_echo_n "checking size of long... " >&6; }
5787 if test "${ac_cv_sizeof_long+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5791
5792 else
5793 if test "$ac_cv_type_long" = yes; then
5794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5796 { as_fn_set_status 77
5797 as_fn_error "cannot compute sizeof (long)
5798 See \`config.log' for more details." "$LINENO" 5; }; }
5799 else
5800 ac_cv_sizeof_long=0
5801 fi
5802 fi
5803
5804 fi
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5806 $as_echo "$ac_cv_sizeof_long" >&6; }
5807
5808
5809
5810 cat >>confdefs.h <<_ACEOF
5811 #define SIZEOF_LONG $ac_cv_sizeof_long
5812 _ACEOF
5813
5814
5815 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5816 if test "x$ac_cv_type_long_long" = x""yes; then :
5817
5818 cat >>confdefs.h <<_ACEOF
5819 #define HAVE_LONG_LONG 1
5820 _ACEOF
5821
5822 # The cast to long int works around a bug in the HP C Compiler
5823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5825 # This bug is HP SR number 8606223364.
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5827 $as_echo_n "checking size of long long... " >&6; }
5828 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5832
5833 else
5834 if test "$ac_cv_type_long_long" = yes; then
5835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5837 { as_fn_set_status 77
5838 as_fn_error "cannot compute sizeof (long long)
5839 See \`config.log' for more details." "$LINENO" 5; }; }
5840 else
5841 ac_cv_sizeof_long_long=0
5842 fi
5843 fi
5844
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5847 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5848
5849
5850
5851 cat >>confdefs.h <<_ACEOF
5852 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5853 _ACEOF
5854
5855
5856 fi
5857
5858 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5859 if test "x$ac_cv_type___int64" = x""yes; then :
5860
5861 cat >>confdefs.h <<_ACEOF
5862 #define HAVE___INT64 1
5863 _ACEOF
5864
5865 # The cast to long int works around a bug in the HP C Compiler
5866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5868 # This bug is HP SR number 8606223364.
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5870 $as_echo_n "checking size of __int64... " >&6; }
5871 if test "${ac_cv_sizeof___int64+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5875
5876 else
5877 if test "$ac_cv_type___int64" = yes; then
5878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5880 { as_fn_set_status 77
5881 as_fn_error "cannot compute sizeof (__int64)
5882 See \`config.log' for more details." "$LINENO" 5; }; }
5883 else
5884 ac_cv_sizeof___int64=0
5885 fi
5886 fi
5887
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5890 $as_echo "$ac_cv_sizeof___int64" >&6; }
5891
5892
5893
5894 cat >>confdefs.h <<_ACEOF
5895 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5896 _ACEOF
5897
5898
5899 fi
5900
5901 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5902 case $ac_cv_c_int8_t in #(
5903 no|yes) ;; #(
5904 *)
5905
5906 cat >>confdefs.h <<_ACEOF
5907 #define int8_t $ac_cv_c_int8_t
5908 _ACEOF
5909 ;;
5910 esac
5911
5912 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5913 case $ac_cv_c_int16_t in #(
5914 no|yes) ;; #(
5915 *)
5916
5917 cat >>confdefs.h <<_ACEOF
5918 #define int16_t $ac_cv_c_int16_t
5919 _ACEOF
5920 ;;
5921 esac
5922
5923 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5924 case $ac_cv_c_int32_t in #(
5925 no|yes) ;; #(
5926 *)
5927
5928 cat >>confdefs.h <<_ACEOF
5929 #define int32_t $ac_cv_c_int32_t
5930 _ACEOF
5931 ;;
5932 esac
5933
5934 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5935 case $ac_cv_c_int64_t in #(
5936 no|yes) ;; #(
5937 *)
5938
5939 cat >>confdefs.h <<_ACEOF
5940 #define int64_t $ac_cv_c_int64_t
5941 _ACEOF
5942 ;;
5943 esac
5944
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5947 $as_echo_n "checking for long long int... " >&6; }
5948 if test "${ac_cv_type_long_long_int+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953
5954 /* For now, do not test the preprocessor; as of 2007 there are too many
5955 implementations with broken preprocessors. Perhaps this can
5956 be revisited in 2012. In the meantime, code should not expect
5957 #if to work with literals wider than 32 bits. */
5958 /* Test literals. */
5959 long long int ll = 9223372036854775807ll;
5960 long long int nll = -9223372036854775807LL;
5961 unsigned long long int ull = 18446744073709551615ULL;
5962 /* Test constant expressions. */
5963 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5964 ? 1 : -1)];
5965 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5966 ? 1 : -1)];
5967 int i = 63;
5968 int
5969 main ()
5970 {
5971 /* Test availability of runtime routines for shift and division. */
5972 long long int llmax = 9223372036854775807ll;
5973 unsigned long long int ullmax = 18446744073709551615ull;
5974 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5975 | (llmax / ll) | (llmax % ll)
5976 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5977 | (ullmax / ull) | (ullmax % ull));
5978 ;
5979 return 0;
5980 }
5981
5982 _ACEOF
5983 if ac_fn_c_try_link "$LINENO"; then :
5984 if test "$cross_compiling" = yes; then :
5985 ac_cv_type_long_long_int=yes
5986 else
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5989 #include <limits.h>
5990 #ifndef LLONG_MAX
5991 # define HALF \
5992 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5993 # define LLONG_MAX (HALF - 1 + HALF)
5994 #endif
5995 int
5996 main ()
5997 {
5998 long long int n = 1;
5999 int i;
6000 for (i = 0; ; i++)
6001 {
6002 long long int m = n << i;
6003 if (m >> i != n)
6004 return 1;
6005 if (LLONG_MAX / 2 < m)
6006 break;
6007 }
6008 return 0;
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 if ac_fn_c_try_run "$LINENO"; then :
6014 ac_cv_type_long_long_int=yes
6015 else
6016 ac_cv_type_long_long_int=no
6017 fi
6018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6019 conftest.$ac_objext conftest.beam conftest.$ac_ext
6020 fi
6021
6022 else
6023 ac_cv_type_long_long_int=no
6024 fi
6025 rm -f core conftest.err conftest.$ac_objext \
6026 conftest$ac_exeext conftest.$ac_ext
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6029 $as_echo "$ac_cv_type_long_long_int" >&6; }
6030 if test $ac_cv_type_long_long_int = yes; then
6031
6032 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6033
6034 fi
6035
6036
6037
6038 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6039 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6040
6041 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6042
6043 else
6044 test $ac_cv_type_long_long_int = yes \
6045 && ac_type='long long int' \
6046 || ac_type='long int'
6047
6048 cat >>confdefs.h <<_ACEOF
6049 #define intmax_t $ac_type
6050 _ACEOF
6051
6052 fi
6053
6054
6055
6056 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6057 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6058
6059 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6060
6061 else
6062 for ac_type in 'int' 'long int' 'long long int'; do
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 $ac_includes_default
6066 int
6067 main ()
6068 {
6069 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6070 test_array [0] = 0
6071
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 if ac_fn_c_try_compile "$LINENO"; then :
6077
6078 cat >>confdefs.h <<_ACEOF
6079 #define intptr_t $ac_type
6080 _ACEOF
6081
6082 ac_type=
6083 fi
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 test -z "$ac_type" && break
6086 done
6087 fi
6088
6089
6090 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6091 case $ac_cv_c_uint8_t in #(
6092 no|yes) ;; #(
6093 *)
6094
6095 $as_echo "#define _UINT8_T 1" >>confdefs.h
6096
6097
6098 cat >>confdefs.h <<_ACEOF
6099 #define uint8_t $ac_cv_c_uint8_t
6100 _ACEOF
6101 ;;
6102 esac
6103
6104 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6105 case $ac_cv_c_uint16_t in #(
6106 no|yes) ;; #(
6107 *)
6108
6109
6110 cat >>confdefs.h <<_ACEOF
6111 #define uint16_t $ac_cv_c_uint16_t
6112 _ACEOF
6113 ;;
6114 esac
6115
6116 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6117 case $ac_cv_c_uint32_t in #(
6118 no|yes) ;; #(
6119 *)
6120
6121 $as_echo "#define _UINT32_T 1" >>confdefs.h
6122
6123
6124 cat >>confdefs.h <<_ACEOF
6125 #define uint32_t $ac_cv_c_uint32_t
6126 _ACEOF
6127 ;;
6128 esac
6129
6130 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6131 case $ac_cv_c_uint64_t in #(
6132 no|yes) ;; #(
6133 *)
6134
6135 $as_echo "#define _UINT64_T 1" >>confdefs.h
6136
6137
6138 cat >>confdefs.h <<_ACEOF
6139 #define uint64_t $ac_cv_c_uint64_t
6140 _ACEOF
6141 ;;
6142 esac
6143
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6146 $as_echo_n "checking for unsigned long long int... " >&6; }
6147 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152
6153 /* For now, do not test the preprocessor; as of 2007 there are too many
6154 implementations with broken preprocessors. Perhaps this can
6155 be revisited in 2012. In the meantime, code should not expect
6156 #if to work with literals wider than 32 bits. */
6157 /* Test literals. */
6158 long long int ll = 9223372036854775807ll;
6159 long long int nll = -9223372036854775807LL;
6160 unsigned long long int ull = 18446744073709551615ULL;
6161 /* Test constant expressions. */
6162 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6163 ? 1 : -1)];
6164 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6165 ? 1 : -1)];
6166 int i = 63;
6167 int
6168 main ()
6169 {
6170 /* Test availability of runtime routines for shift and division. */
6171 long long int llmax = 9223372036854775807ll;
6172 unsigned long long int ullmax = 18446744073709551615ull;
6173 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6174 | (llmax / ll) | (llmax % ll)
6175 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6176 | (ullmax / ull) | (ullmax % ull));
6177 ;
6178 return 0;
6179 }
6180
6181 _ACEOF
6182 if ac_fn_c_try_link "$LINENO"; then :
6183 ac_cv_type_unsigned_long_long_int=yes
6184 else
6185 ac_cv_type_unsigned_long_long_int=no
6186 fi
6187 rm -f core conftest.err conftest.$ac_objext \
6188 conftest$ac_exeext conftest.$ac_ext
6189 fi
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6191 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6192 if test $ac_cv_type_unsigned_long_long_int = yes; then
6193
6194 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6195
6196 fi
6197
6198
6199
6200 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6201 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6202
6203 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6204
6205 else
6206 test $ac_cv_type_unsigned_long_long_int = yes \
6207 && ac_type='unsigned long long int' \
6208 || ac_type='unsigned long int'
6209
6210 cat >>confdefs.h <<_ACEOF
6211 #define uintmax_t $ac_type
6212 _ACEOF
6213
6214 fi
6215
6216
6217
6218 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6219 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6220
6221 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6222
6223 else
6224 for ac_type in 'unsigned int' 'unsigned long int' \
6225 'unsigned long long int'; do
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 $ac_includes_default
6229 int
6230 main ()
6231 {
6232 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6233 test_array [0] = 0
6234
6235 ;
6236 return 0;
6237 }
6238 _ACEOF
6239 if ac_fn_c_try_compile "$LINENO"; then :
6240
6241 cat >>confdefs.h <<_ACEOF
6242 #define uintptr_t $ac_type
6243 _ACEOF
6244
6245 ac_type=
6246 fi
6247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6248 test -z "$ac_type" && break
6249 done
6250 fi
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 # ---------------------
6267 # Warnings and checking
6268 # ---------------------
6269
6270 # Check $CC warning features (if it's GCC).
6271 # We want to use -pedantic, but we don't want warnings about
6272 # * 'long long'
6273 # * variadic macros
6274 # * overlong strings
6275 # So, we only use -pedantic if we can disable those warnings.
6276
6277 loose_warn=
6278 save_CFLAGS="$CFLAGS"
6279 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6280 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6281
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6283 $as_echo_n "checking whether $CC supports $option... " >&6; }
6284 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 CFLAGS="$option"
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290
6291 int
6292 main ()
6293 {
6294
6295 ;
6296 return 0;
6297 }
6298 _ACEOF
6299 if ac_fn_c_try_compile "$LINENO"; then :
6300 eval "$as_acx_Woption=yes"
6301 else
6302 eval "$as_acx_Woption=no"
6303 fi
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305
6306 fi
6307 eval ac_res=\$$as_acx_Woption
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6309 $as_echo "$ac_res" >&6; }
6310 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6311 loose_warn="$loose_warn${loose_warn:+ }$option"
6312 fi
6313 done
6314 CFLAGS="$save_CFLAGS"
6315
6316 c_loose_warn=
6317 save_CFLAGS="$CFLAGS"
6318 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6319 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6320
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6322 $as_echo_n "checking whether $CC supports $option... " >&6; }
6323 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 CFLAGS="$option"
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329
6330 int
6331 main ()
6332 {
6333
6334 ;
6335 return 0;
6336 }
6337 _ACEOF
6338 if ac_fn_c_try_compile "$LINENO"; then :
6339 eval "$as_acx_Woption=yes"
6340 else
6341 eval "$as_acx_Woption=no"
6342 fi
6343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6344
6345 fi
6346 eval ac_res=\$$as_acx_Woption
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6348 $as_echo "$ac_res" >&6; }
6349 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6350 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6351 fi
6352 done
6353 CFLAGS="$save_CFLAGS"
6354
6355 strict_warn=
6356 save_CFLAGS="$CFLAGS"
6357 for option in -Wmissing-format-attribute; do
6358 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6359
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6361 $as_echo_n "checking whether $CC supports $option... " >&6; }
6362 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 CFLAGS="$option"
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368
6369 int
6370 main ()
6371 {
6372
6373 ;
6374 return 0;
6375 }
6376 _ACEOF
6377 if ac_fn_c_try_compile "$LINENO"; then :
6378 eval "$as_acx_Woption=yes"
6379 else
6380 eval "$as_acx_Woption=no"
6381 fi
6382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383
6384 fi
6385 eval ac_res=\$$as_acx_Woption
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6387 $as_echo "$ac_res" >&6; }
6388 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6389 strict_warn="$strict_warn${strict_warn:+ }$option"
6390 fi
6391 done
6392 CFLAGS="$save_CFLAGS"
6393
6394 c_strict_warn=
6395 save_CFLAGS="$CFLAGS"
6396 for option in -Wold-style-definition -Wc++-compat; do
6397 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6400 $as_echo_n "checking whether $CC supports $option... " >&6; }
6401 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 CFLAGS="$option"
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6407
6408 int
6409 main ()
6410 {
6411
6412 ;
6413 return 0;
6414 }
6415 _ACEOF
6416 if ac_fn_c_try_compile "$LINENO"; then :
6417 eval "$as_acx_Woption=yes"
6418 else
6419 eval "$as_acx_Woption=no"
6420 fi
6421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422
6423 fi
6424 eval ac_res=\$$as_acx_Woption
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6426 $as_echo "$ac_res" >&6; }
6427 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6428 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6429 fi
6430 done
6431 CFLAGS="$save_CFLAGS"
6432
6433 if test "$GCC" = yes; then :
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6435 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6436 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 save_CFLAGS="$CFLAGS"
6440 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443
6444 int
6445 main ()
6446 {
6447
6448 ;
6449 return 0;
6450 }
6451 _ACEOF
6452 if ac_fn_c_try_compile "$LINENO"; then :
6453 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6454 else
6455 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 CFLAGS="$save_CFLAGS"
6459 fi
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6461 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6462 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6463 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6464 fi
6465
6466 fi
6467
6468 # Check whether --enable-werror-always was given.
6469 if test "${enable_werror_always+set}" = set; then :
6470 enableval=$enable_werror_always;
6471 else
6472 enable_werror_always=no
6473 fi
6474
6475 if test $enable_werror_always = yes; then :
6476 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6477 fi
6478
6479
6480
6481 # The above macros do nothing if the compiler is not GCC. However, the
6482 # Makefile has more goo to add other flags, so these variables are used
6483 # to enable warnings only for GCC.
6484 warn_cflags=
6485 warn_cxxflags=
6486 if test "x$GCC" = "xyes"; then
6487 warn_cflags='$(GCC_WARN_CFLAGS)'
6488 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6489 fi
6490
6491
6492
6493 # Enable expensive internal checks
6494 is_release=
6495 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6496 is_release=yes
6497 fi
6498
6499 # Check whether --enable-checking was given.
6500 if test "${enable_checking+set}" = set; then :
6501 enableval=$enable_checking; ac_checking_flags="${enableval}"
6502 else
6503
6504 # Determine the default checks.
6505 if test x$is_release = x ; then
6506 ac_checking_flags=yes
6507 else
6508 ac_checking_flags=release
6509 fi
6510 fi
6511
6512 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6513 for check in release $ac_checking_flags
6514 do
6515 case $check in
6516 # these set all the flags to specific states
6517 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6518 ac_fold_checking= ; ac_gc_checking=1 ;
6519 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6520 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6521 ac_tree_checking=1 ; ac_valgrind_checking= ;
6522 ac_types_checking=1 ;;
6523 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6524 ac_fold_checking= ; ac_gc_checking= ;
6525 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6526 ac_rtlflag_checking= ; ac_runtime_checking= ;
6527 ac_tree_checking= ; ac_valgrind_checking= ;
6528 ac_types_checking= ;;
6529 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6530 ac_fold_checking=1 ; ac_gc_checking=1 ;
6531 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6532 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6533 ac_tree_checking=1 ; ac_valgrind_checking= ;
6534 ac_types_checking=1 ;;
6535 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6536 ac_fold_checking= ; ac_gc_checking= ;
6537 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6538 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6539 ac_tree_checking= ; ac_valgrind_checking= ;
6540 ac_types_checking= ;;
6541 # these enable particular checks
6542 assert) ac_assert_checking=1 ;;
6543 df) ac_df_checking=1 ;;
6544 fold) ac_fold_checking=1 ;;
6545 gc) ac_gc_checking=1 ;;
6546 gcac) ac_gc_always_collect=1 ;;
6547 gimple) ac_gimple_checking=1 ;;
6548 misc) ac_checking=1 ;;
6549 rtl) ac_rtl_checking=1 ;;
6550 rtlflag) ac_rtlflag_checking=1 ;;
6551 runtime) ac_runtime_checking=1 ;;
6552 tree) ac_tree_checking=1 ;;
6553 types) ac_types_checking=1 ;;
6554 valgrind) ac_valgrind_checking=1 ;;
6555 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6556 esac
6557 done
6558 IFS="$ac_save_IFS"
6559
6560 nocommon_flag=""
6561 if test x$ac_checking != x ; then
6562
6563 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6564
6565 nocommon_flag=-fno-common
6566 fi
6567
6568 if test x$ac_df_checking != x ; then
6569
6570 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6571
6572 fi
6573 if test x$ac_assert_checking != x ; then
6574
6575 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6576
6577 fi
6578 if test x$ac_gimple_checking != x ; then
6579
6580 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6581
6582 fi
6583
6584 if test x$ac_runtime_checking != x ; then
6585
6586 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6587
6588 fi
6589 if test x$ac_tree_checking != x ; then
6590
6591 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6592
6593 TREEBROWSER=tree-browser.o
6594 fi
6595 if test x$ac_types_checking != x ; then
6596
6597 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6598
6599 fi
6600
6601 if test x$ac_rtl_checking != x ; then
6602
6603 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6604
6605 fi
6606 if test x$ac_rtlflag_checking != x ; then
6607
6608 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6609
6610 fi
6611 if test x$ac_gc_checking != x ; then
6612
6613 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6614
6615 fi
6616 if test x$ac_gc_always_collect != x ; then
6617
6618 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6619
6620 fi
6621 if test x$ac_fold_checking != x ; then
6622
6623 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6624
6625 fi
6626 valgrind_path_defines=
6627 valgrind_command=
6628
6629 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6630 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6631 have_valgrind_h=yes
6632 else
6633 have_valgrind_h=no
6634 fi
6635
6636
6637
6638 if test x$ac_valgrind_checking != x ; then
6639 # It is certainly possible that there's valgrind but no valgrind.h.
6640 # GCC relies on making annotations so we must have both.
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6642 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645 #include <valgrind/memcheck.h>
6646 #ifndef VALGRIND_DISCARD
6647 #error VALGRIND_DISCARD not defined
6648 #endif
6649 _ACEOF
6650 if ac_fn_c_try_cpp "$LINENO"; then :
6651 gcc_cv_header_valgrind_memcheck_h=yes
6652 else
6653 gcc_cv_header_valgrind_memcheck_h=no
6654 fi
6655 rm -f conftest.err conftest.$ac_ext
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6657 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6659 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6662 #include <memcheck.h>
6663 #ifndef VALGRIND_DISCARD
6664 #error VALGRIND_DISCARD not defined
6665 #endif
6666 _ACEOF
6667 if ac_fn_c_try_cpp "$LINENO"; then :
6668 gcc_cv_header_memcheck_h=yes
6669 else
6670 gcc_cv_header_memcheck_h=no
6671 fi
6672 rm -f conftest.err conftest.$ac_ext
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6674 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6675
6676 # Prepare PATH_SEPARATOR.
6677 # The user is always right.
6678 if test "${PATH_SEPARATOR+set}" != set; then
6679 echo "#! /bin/sh" >conf$$.sh
6680 echo "exit 0" >>conf$$.sh
6681 chmod +x conf$$.sh
6682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6683 PATH_SEPARATOR=';'
6684 else
6685 PATH_SEPARATOR=:
6686 fi
6687 rm -f conf$$.sh
6688 fi
6689
6690 # Find out how to test for executable files. Don't use a zero-byte file,
6691 # as systems may use methods other than mode bits to determine executability.
6692 cat >conf$$.file <<_ASEOF
6693 #! /bin/sh
6694 exit 0
6695 _ASEOF
6696 chmod +x conf$$.file
6697 if test -x conf$$.file >/dev/null 2>&1; then
6698 ac_executable_p="test -x"
6699 else
6700 ac_executable_p="test -f"
6701 fi
6702 rm -f conf$$.file
6703
6704 # Extract the first word of "valgrind", so it can be a program name with args.
6705 set dummy valgrind; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 case "$valgrind_path" in
6712 [\\/]* | ?:[\\/]*)
6713 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6714 ;;
6715 *)
6716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6717 for ac_dir in $PATH; do
6718 IFS="$ac_save_IFS"
6719 test -z "$ac_dir" && ac_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6722 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6723 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6724 break 2
6725 fi
6726 fi
6727 done
6728 done
6729 IFS="$ac_save_IFS"
6730 ;;
6731 esac
6732 fi
6733 valgrind_path="$ac_cv_path_valgrind_path"
6734 if test -n "$valgrind_path"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6736 $as_echo "$valgrind_path" >&6; }
6737 else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742 if test "x$valgrind_path" = "x" \
6743 || (test $have_valgrind_h = no \
6744 && test $gcc_cv_header_memcheck_h = no \
6745 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6746 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6747 fi
6748 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6749 valgrind_command="$valgrind_path -q"
6750
6751 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6752
6753 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6754
6755 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6756
6757 fi
6758 if test $gcc_cv_header_memcheck_h = yes; then
6759
6760 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6761
6762 fi
6763 fi
6764
6765
6766
6767 # Enable code coverage collection
6768 # Check whether --enable-coverage was given.
6769 if test "${enable_coverage+set}" = set; then :
6770 enableval=$enable_coverage; case "${enableval}" in
6771 yes|noopt)
6772 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6773 ;;
6774 opt)
6775 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6776 ;;
6777 no)
6778 # a.k.a. --disable-coverage
6779 coverage_flags=""
6780 ;;
6781 *)
6782 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6783 ;;
6784 esac
6785 else
6786 coverage_flags=""
6787 fi
6788
6789
6790
6791 # Check whether --enable-gather-detailed-mem-stats was given.
6792 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6793 enableval=$enable_gather_detailed_mem_stats;
6794 else
6795 enable_gather_detailed_mem_stats=no
6796 fi
6797
6798 if test x$enable_gather_detailed_mem_stats = xyes ; then
6799
6800 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6801
6802 fi
6803
6804 # -------------------------------
6805 # Miscenalleous configure options
6806 # -------------------------------
6807
6808 # See if we are building gcc with C++.
6809 # Check whether --enable-build-with-cxx was given.
6810 if test "${enable_build_with_cxx+set}" = set; then :
6811 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6812 else
6813 ENABLE_BUILD_WITH_CXX=no
6814 fi
6815
6816
6817
6818 # With stabs
6819
6820 # Check whether --with-stabs was given.
6821 if test "${with_stabs+set}" = set; then :
6822 withval=$with_stabs; stabs="$with_stabs"
6823 else
6824 stabs=no
6825 fi
6826
6827
6828 # Determine whether or not multilibs are enabled.
6829 # Check whether --enable-multilib was given.
6830 if test "${enable_multilib+set}" = set; then :
6831 enableval=$enable_multilib;
6832 else
6833 enable_multilib=yes
6834 fi
6835
6836
6837
6838 # Enable __cxa_atexit for C++.
6839 # Check whether --enable-__cxa_atexit was given.
6840 if test "${enable___cxa_atexit+set}" = set; then :
6841 enableval=$enable___cxa_atexit;
6842 fi
6843
6844
6845 # Enable C extension for decimal float if target supports it.
6846
6847 # Check whether --enable-decimal-float was given.
6848 if test "${enable_decimal_float+set}" = set; then :
6849 enableval=$enable_decimal_float;
6850 case $enable_decimal_float in
6851 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6852 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6853 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6854 esac
6855
6856 else
6857
6858 case $target in
6859 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6860 i?86*-*-mingw* | x86_64*-*-mingw* | \
6861 i?86*-*-cygwin*)
6862 enable_decimal_float=yes
6863 ;;
6864 *)
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6866 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6867 enable_decimal_float=no
6868 ;;
6869 esac
6870
6871 fi
6872
6873
6874 # x86's use BID format instead of DPD
6875 case x$enable_decimal_float in
6876 xyes)
6877 case $target in
6878 i?86*-*-* | x86_64*-*-*)
6879 enable_decimal_float=bid
6880 ;;
6881 *)
6882 enable_decimal_float=dpd
6883 ;;
6884 esac
6885 default_decimal_float=$enable_decimal_float
6886 ;;
6887 xno)
6888 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6889 # dependency on libdecnumber.
6890 default_decimal_float=dpd
6891 ;;
6892 esac
6893
6894
6895
6896
6897 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6898
6899 cat >>confdefs.h <<_ACEOF
6900 #define ENABLE_DECIMAL_FLOAT $dfp
6901 _ACEOF
6902
6903
6904 # Use default_decimal_float for dependency.
6905 enable_decimal_float=$default_decimal_float
6906
6907 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6908
6909 cat >>confdefs.h <<_ACEOF
6910 #define ENABLE_DECIMAL_BID_FORMAT $bid
6911 _ACEOF
6912
6913
6914 # Enable C extension for fixed-point arithmetic.
6915 # Check whether --enable-fixed-point was given.
6916 if test "${enable_fixed_point+set}" = set; then :
6917 enableval=$enable_fixed_point;
6918
6919 else
6920
6921 case $target in
6922 mips*-*-*)
6923 case $host in
6924 mips*-sgi-irix*)
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6926 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6927 enable_fixed_point=no
6928 ;;
6929 *)
6930 enable_fixed_point=yes
6931 ;;
6932 esac
6933 ;;
6934 *)
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6936 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6937 enable_fixed_point=no
6938 ;;
6939 esac
6940
6941 fi
6942
6943
6944
6945 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6946
6947 cat >>confdefs.h <<_ACEOF
6948 #define ENABLE_FIXED_POINT $fixedpoint
6949 _ACEOF
6950
6951
6952 # Enable threads
6953 # Pass with no value to take the default
6954 # Pass with a value to specify a thread package
6955 # Check whether --enable-threads was given.
6956 if test "${enable_threads+set}" = set; then :
6957 enableval=$enable_threads;
6958 else
6959 enable_threads=''
6960 fi
6961
6962
6963 # Check whether --enable-tls was given.
6964 if test "${enable_tls+set}" = set; then :
6965 enableval=$enable_tls;
6966 case $enable_tls in
6967 yes | no) ;;
6968 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6969 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6970 esac
6971
6972 else
6973 enable_tls=''
6974 fi
6975
6976
6977 # Check whether --enable-objc-gc was given.
6978 if test "${enable_objc_gc+set}" = set; then :
6979 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6980 objc_boehm_gc=''
6981 else
6982 objc_boehm_gc=1
6983 fi
6984 else
6985 objc_boehm_gc=''
6986 fi
6987
6988
6989
6990 # Check whether --with-dwarf2 was given.
6991 if test "${with_dwarf2+set}" = set; then :
6992 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6993 else
6994 dwarf2=no
6995 fi
6996
6997
6998 # Check whether --enable-shared was given.
6999 if test "${enable_shared+set}" = set; then :
7000 enableval=$enable_shared;
7001 case $enable_shared in
7002 yes | no) ;;
7003 *)
7004 enable_shared=no
7005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7006 for pkg in $enableval; do
7007 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7008 enable_shared=yes
7009 fi
7010 done
7011 IFS="$ac_save_ifs"
7012 ;;
7013 esac
7014
7015 else
7016 enable_shared=yes
7017 fi
7018
7019
7020
7021
7022 # Check whether --with-build-sysroot was given.
7023 if test "${with_build_sysroot+set}" = set; then :
7024 withval=$with_build_sysroot;
7025 fi
7026
7027
7028
7029 # Check whether --with-sysroot was given.
7030 if test "${with_sysroot+set}" = set; then :
7031 withval=$with_sysroot;
7032 case ${with_sysroot} in
7033 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7034 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7035 esac
7036
7037 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7038 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7039
7040 if test "x$prefix" = xNONE; then
7041 test_prefix=/usr/local
7042 else
7043 test_prefix=$prefix
7044 fi
7045 if test "x$exec_prefix" = xNONE; then
7046 test_exec_prefix=$test_prefix
7047 else
7048 test_exec_prefix=$exec_prefix
7049 fi
7050 case ${TARGET_SYSTEM_ROOT} in
7051 "${test_prefix}"|"${test_prefix}/"*|\
7052 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7053 '${prefix}'|'${prefix}/'*|\
7054 '${exec_prefix}'|'${exec_prefix}/'*)
7055 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7056 TARGET_SYSTEM_ROOT_DEFINE="$t"
7057 ;;
7058 esac
7059
7060 else
7061
7062 TARGET_SYSTEM_ROOT=
7063 TARGET_SYSTEM_ROOT_DEFINE=
7064 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7065
7066 fi
7067
7068
7069
7070
7071
7072
7073 # Check whether --with-specs was given.
7074 if test "${with_specs+set}" = set; then :
7075 withval=$with_specs; CONFIGURE_SPECS=$withval
7076 else
7077 CONFIGURE_SPECS=
7078
7079 fi
7080
7081
7082
7083
7084
7085 # Check whether --with-pkgversion was given.
7086 if test "${with_pkgversion+set}" = set; then :
7087 withval=$with_pkgversion; case "$withval" in
7088 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7089 no) PKGVERSION= ;;
7090 *) PKGVERSION="($withval) " ;;
7091 esac
7092 else
7093 PKGVERSION="(GCC) "
7094
7095 fi
7096
7097
7098
7099
7100
7101 # Check whether --with-bugurl was given.
7102 if test "${with_bugurl+set}" = set; then :
7103 withval=$with_bugurl; case "$withval" in
7104 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7105 no) BUGURL=
7106 ;;
7107 *) BUGURL="$withval"
7108 ;;
7109 esac
7110 else
7111 BUGURL="http://gcc.gnu.org/bugs.html"
7112
7113 fi
7114
7115 case ${BUGURL} in
7116 "")
7117 REPORT_BUGS_TO=
7118 REPORT_BUGS_TEXI=
7119 ;;
7120 *)
7121 REPORT_BUGS_TO="<$BUGURL>"
7122 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7123 ;;
7124 esac;
7125
7126
7127
7128
7129 # Sanity check enable_languages in case someone does not run the toplevel
7130 # configure # script.
7131 # Check whether --enable-languages was given.
7132 if test "${enable_languages+set}" = set; then :
7133 enableval=$enable_languages; case ,${enable_languages}, in
7134 ,,|,yes,)
7135 # go safe -- we cannot be much sure without the toplevel
7136 # configure's
7137 # analysis of which target libs are present and usable
7138 enable_languages=c
7139 ;;
7140 *,all,*)
7141 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7142 ;;
7143 *,c,*)
7144 ;;
7145 *)
7146 enable_languages=c,${enable_languages}
7147 ;;
7148 esac
7149 else
7150 enable_languages=c
7151 fi
7152
7153
7154
7155 # Check whether --with-multilib-list was given.
7156 if test "${with_multilib_list+set}" = set; then :
7157 withval=$with_multilib_list; :
7158 else
7159 with_multilib_list=default
7160 fi
7161
7162
7163 # -------------------------
7164 # Checks for other programs
7165 # -------------------------
7166
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7168 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7169 set x ${MAKE-make}
7170 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7171 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 cat >conftest.make <<\_ACEOF
7175 SHELL = /bin/sh
7176 all:
7177 @echo '@@@%%%=$(MAKE)=@@@%%%'
7178 _ACEOF
7179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7180 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7181 *@@@%%%=?*=@@@%%%*)
7182 eval ac_cv_prog_make_${ac_make}_set=yes;;
7183 *)
7184 eval ac_cv_prog_make_${ac_make}_set=no;;
7185 esac
7186 rm -f conftest.make
7187 fi
7188 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7190 $as_echo "yes" >&6; }
7191 SET_MAKE=
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 SET_MAKE="MAKE=${MAKE-make}"
7196 fi
7197
7198
7199 # Find some useful tools
7200 for ac_prog in gawk mawk nawk awk
7201 do
7202 # Extract the first word of "$ac_prog", so it can be a program name with args.
7203 set dummy $ac_prog; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if test "${ac_cv_prog_AWK+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 if test -n "$AWK"; then
7210 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_prog_AWK="$ac_prog"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223 done
7224 done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 AWK=$ac_cv_prog_AWK
7230 if test -n "$AWK"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7232 $as_echo "$AWK" >&6; }
7233 else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238
7239 test -n "$AWK" && break
7240 done
7241
7242 # We need awk to create options.c and options.h.
7243 # Bail out if it's missing.
7244 case ${AWK} in
7245 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7246 esac
7247
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7249 $as_echo_n "checking whether ln -s works... " >&6; }
7250 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 rm -f conftestdata_t
7254 echo >conftestdata_f
7255 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7256 then
7257 gcc_cv_prog_LN_S="ln -s"
7258 else
7259 if ln conftestdata_f conftestdata_t 2>/dev/null
7260 then
7261 gcc_cv_prog_LN_S=ln
7262 else
7263 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7264 then
7265 gcc_cv_prog_LN_S="cp -p"
7266 else
7267 gcc_cv_prog_LN_S=cp
7268 fi
7269 fi
7270 fi
7271 rm -f conftestdata_f conftestdata_t
7272
7273 fi
7274 LN_S="$gcc_cv_prog_LN_S"
7275 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7277 $as_echo "yes" >&6; }
7278 else
7279 if test "$gcc_cv_prog_LN_S" = "ln"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7281 $as_echo "no, using ln" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7284 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7285 fi
7286 fi
7287
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7289 $as_echo_n "checking whether ln works... " >&6; }
7290 if test "${acx_cv_prog_LN+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 rm -f conftestdata_t
7294 echo >conftestdata_f
7295 if ln conftestdata_f conftestdata_t 2>/dev/null
7296 then
7297 acx_cv_prog_LN=ln
7298 else
7299 acx_cv_prog_LN=no
7300 fi
7301 rm -f conftestdata_f conftestdata_t
7302
7303 fi
7304 if test $acx_cv_prog_LN = no; then
7305 LN="$LN_S"
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7307 $as_echo "no, using $LN" >&6; }
7308 else
7309 LN="$acx_cv_prog_LN"
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7311 $as_echo "yes" >&6; }
7312 fi
7313
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 if test -n "$RANLIB"; then
7323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 RANLIB=$ac_cv_prog_RANLIB
7343 if test -n "$RANLIB"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7345 $as_echo "$RANLIB" >&6; }
7346 else
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351
7352 fi
7353 if test -z "$ac_cv_prog_RANLIB"; then
7354 ac_ct_RANLIB=$RANLIB
7355 # Extract the first word of "ranlib", so it can be a program name with args.
7356 set dummy ranlib; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$ac_ct_RANLIB"; then
7363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_ac_ct_RANLIB="ranlib"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7383 if test -n "$ac_ct_RANLIB"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7385 $as_echo "$ac_ct_RANLIB" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391 if test "x$ac_ct_RANLIB" = x; then
7392 RANLIB=":"
7393 else
7394 case $cross_compiling:$ac_tool_warned in
7395 yes:)
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400 RANLIB=$ac_ct_RANLIB
7401 fi
7402 else
7403 RANLIB="$ac_cv_prog_RANLIB"
7404 fi
7405
7406 case "${host}" in
7407 *-*-darwin*)
7408 # By default, the Darwin ranlib will not treat common symbols as
7409 # definitions when building the archive table of contents. Other
7410 # ranlibs do that; pass an option to the Darwin ranlib that makes
7411 # it behave similarly.
7412 ranlib_flags="-c"
7413 ;;
7414 *)
7415 ranlib_flags=""
7416 esac
7417
7418
7419 # Find a good install program. We prefer a C program (faster),
7420 # so one script is as good as another. But avoid the broken or
7421 # incompatible versions:
7422 # SysV /etc/install, /usr/sbin/install
7423 # SunOS /usr/etc/install
7424 # IRIX /sbin/install
7425 # AIX /bin/install
7426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7428 # ./install, which can be erroneously created by make from ./install.sh.
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7430 $as_echo_n "checking for a BSD compatible install... " >&6; }
7431 if test -z "$INSTALL"; then
7432 if test "${ac_cv_path_install+set}" = set; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7436 for ac_dir in $PATH; do
7437 # Account for people who put trailing slashes in PATH elements.
7438 case "$ac_dir/" in
7439 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7440 *)
7441 # OSF1 and SCO ODT 3.0 have their own names for install.
7442 for ac_prog in ginstall scoinst install; do
7443 if test -f $ac_dir/$ac_prog; then
7444 if test $ac_prog = install &&
7445 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7446 # AIX install. It has an incompatible calling convention.
7447 # OSF/1 installbsd also uses dspmsg, but is usable.
7448 :
7449 else
7450 ac_cv_path_install="$ac_dir/$ac_prog -c"
7451 break 2
7452 fi
7453 fi
7454 done
7455 ;;
7456 esac
7457 done
7458 IFS="$ac_save_IFS"
7459
7460 fi
7461 if test "${ac_cv_path_install+set}" = set; then
7462 INSTALL="$ac_cv_path_install"
7463 else
7464 # As a last resort, use the slow shell script. We don't cache a
7465 # path for INSTALL within a source directory, because that will
7466 # break other packages using the cache if that directory is
7467 # removed, or if the path is relative.
7468 INSTALL="$ac_install_sh"
7469 fi
7470 fi
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7472 $as_echo "$INSTALL" >&6; }
7473
7474 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7475 # It thinks the first close brace ends the variable substitution.
7476 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7477
7478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7479
7480
7481 # See if cmp has --ignore-initial.
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7483 $as_echo_n "checking for cmp's capabilities... " >&6; }
7484 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7485 $as_echo_n "(cached) " >&6
7486 else
7487 echo abfoo >t1
7488 echo cdfoo >t2
7489 gcc_cv_prog_cmp_skip=slowcompare
7490 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7491 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7492 :
7493 else
7494 gcc_cv_prog_cmp_skip=gnucompare
7495 fi
7496 fi
7497 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7498 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7499 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7500 :
7501 else
7502 gcc_cv_prog_cmp_skip=fastcompare
7503 fi
7504 fi
7505 fi
7506 rm t1 t2
7507
7508 fi
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7510 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7511 make_compare_target=$gcc_cv_prog_cmp_skip
7512
7513
7514
7515 # See if we have the mktemp command.
7516 # Extract the first word of "mktemp", so it can be a program name with args.
7517 set dummy mktemp; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 if test -n "$have_mktemp_command"; then
7524 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7533 ac_cv_prog_have_mktemp_command="yes"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7536 fi
7537 done
7538 done
7539 IFS=$as_save_IFS
7540
7541 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7542 fi
7543 fi
7544 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7545 if test -n "$have_mktemp_command"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7547 $as_echo "$have_mktemp_command" >&6; }
7548 else
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7551 fi
7552
7553
7554
7555 # See if makeinfo has been installed and is modern enough
7556 # that we can use it.
7557
7558 # Extract the first word of "makeinfo", so it can be a program name with args.
7559 set dummy makeinfo; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 if test -n "$MAKEINFO"; then
7566 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7570 do
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_MAKEINFO="makeinfo"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7578 fi
7579 done
7580 done
7581 IFS=$as_save_IFS
7582
7583 fi
7584 fi
7585 MAKEINFO=$ac_cv_prog_MAKEINFO
7586 if test -n "$MAKEINFO"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7588 $as_echo "$MAKEINFO" >&6; }
7589 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7592 fi
7593
7594
7595 if test -n "$MAKEINFO"; then
7596 # Found it, now check the version.
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7598 $as_echo_n "checking for modern makeinfo... " >&6; }
7599 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7603 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7604
7605 case $ac_prog_version in
7606 '') gcc_cv_prog_makeinfo_modern=no;;
7607 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7608 *) gcc_cv_prog_makeinfo_modern=no;;
7609 esac
7610
7611 fi
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7613 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7614 else
7615 gcc_cv_prog_makeinfo_modern=no
7616 fi
7617 if test $gcc_cv_prog_makeinfo_modern = no; then
7618 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7619 fi
7620
7621 if test $gcc_cv_prog_makeinfo_modern = no; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7623 *** Makeinfo is missing or too old.
7624 *** Info documentation will not be built." >&5
7625 $as_echo "$as_me: WARNING:
7626 *** Makeinfo is missing or too old.
7627 *** Info documentation will not be built." >&2;}
7628 BUILD_INFO=
7629 else
7630 BUILD_INFO=info
7631 fi
7632
7633
7634 # Is pod2man recent enough to regenerate manpages?
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7636 $as_echo_n "checking for recent Pod::Man... " >&6; }
7637 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7639 $as_echo "yes" >&6; }
7640 GENERATED_MANPAGES=generated-manpages
7641 else
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644 GENERATED_MANPAGES=
7645 fi
7646
7647
7648 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7649
7650 # How about lex?
7651 for ac_prog in flex
7652 do
7653 # Extract the first word of "$ac_prog", so it can be a program name with args.
7654 set dummy $ac_prog; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if test "${ac_cv_prog_FLEX+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 if test -n "$FLEX"; then
7661 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_prog_FLEX="$ac_prog"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674 done
7675 done
7676 IFS=$as_save_IFS
7677
7678 fi
7679 fi
7680 FLEX=$ac_cv_prog_FLEX
7681 if test -n "$FLEX"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7683 $as_echo "$FLEX" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7687 fi
7688
7689
7690 test -n "$FLEX" && break
7691 done
7692 test -n "$FLEX" || FLEX="$MISSING flex"
7693
7694
7695 # Bison?
7696 for ac_prog in bison
7697 do
7698 # Extract the first word of "$ac_prog", so it can be a program name with args.
7699 set dummy $ac_prog; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if test "${ac_cv_prog_BISON+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 if test -n "$BISON"; then
7706 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_BISON="$ac_prog"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719 done
7720 done
7721 IFS=$as_save_IFS
7722
7723 fi
7724 fi
7725 BISON=$ac_cv_prog_BISON
7726 if test -n "$BISON"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7728 $as_echo "$BISON" >&6; }
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733
7734
7735 test -n "$BISON" && break
7736 done
7737 test -n "$BISON" || BISON="$MISSING bison"
7738
7739
7740 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7741 # check for build == host before using them.
7742
7743 # NM
7744 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7745 && test -d ../binutils ; then
7746 NM='${objdir}/../binutils/nm-new'
7747 else
7748 # Extract the first word of "nm", so it can be a program name with args.
7749 set dummy nm; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if test "${ac_cv_prog_NM+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 if test -n "$NM"; then
7756 ac_cv_prog_NM="$NM" # Let the user override the test.
7757 else
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7760 do
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7765 ac_cv_prog_NM="nm"
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 break 2
7768 fi
7769 done
7770 done
7771 IFS=$as_save_IFS
7772
7773 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7774 fi
7775 fi
7776 NM=$ac_cv_prog_NM
7777 if test -n "$NM"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7779 $as_echo "$NM" >&6; }
7780 else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7783 fi
7784
7785
7786 fi
7787
7788 # AR
7789 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7790 && test -d ../binutils ; then
7791 AR='${objdir}/../binutils/ar'
7792 else
7793 # Extract the first word of "ar", so it can be a program name with args.
7794 set dummy ar; ac_word=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if test "${ac_cv_prog_AR+set}" = set; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 if test -n "$AR"; then
7801 ac_cv_prog_AR="$AR" # Let the user override the test.
7802 else
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7805 do
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7810 ac_cv_prog_AR="ar"
7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7813 fi
7814 done
7815 done
7816 IFS=$as_save_IFS
7817
7818 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7819 fi
7820 fi
7821 AR=$ac_cv_prog_AR
7822 if test -n "$AR"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7824 $as_echo "$AR" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7828 fi
7829
7830
7831 fi
7832
7833
7834 # --------------------
7835 # Checks for C headers
7836 # --------------------
7837
7838 # Need to reject headers which give warnings, so that the -Werror bootstrap
7839 # works later. *sigh* This needs to come before all header checks.
7840
7841 ac_c_preproc_warn_flag=yes
7842
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7844 $as_echo_n "checking for ANSI C header files... " >&6; }
7845 if test "${ac_cv_header_stdc+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 #include <stdlib.h>
7851 #include <stdarg.h>
7852 #include <string.h>
7853 #include <float.h>
7854
7855 int
7856 main ()
7857 {
7858
7859 ;
7860 return 0;
7861 }
7862 _ACEOF
7863 if ac_fn_c_try_compile "$LINENO"; then :
7864 ac_cv_header_stdc=yes
7865 else
7866 ac_cv_header_stdc=no
7867 fi
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869
7870 if test $ac_cv_header_stdc = yes; then
7871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 #include <string.h>
7875
7876 _ACEOF
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878 $EGREP "memchr" >/dev/null 2>&1; then :
7879
7880 else
7881 ac_cv_header_stdc=no
7882 fi
7883 rm -f conftest*
7884
7885 fi
7886
7887 if test $ac_cv_header_stdc = yes; then
7888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 #include <stdlib.h>
7892
7893 _ACEOF
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895 $EGREP "free" >/dev/null 2>&1; then :
7896
7897 else
7898 ac_cv_header_stdc=no
7899 fi
7900 rm -f conftest*
7901
7902 fi
7903
7904 if test $ac_cv_header_stdc = yes; then
7905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7906 if test "$cross_compiling" = yes; then :
7907 :
7908 else
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7911 #include <ctype.h>
7912 #include <stdlib.h>
7913 #if ((' ' & 0x0FF) == 0x020)
7914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7916 #else
7917 # define ISLOWER(c) \
7918 (('a' <= (c) && (c) <= 'i') \
7919 || ('j' <= (c) && (c) <= 'r') \
7920 || ('s' <= (c) && (c) <= 'z'))
7921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7922 #endif
7923
7924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7925 int
7926 main ()
7927 {
7928 int i;
7929 for (i = 0; i < 256; i++)
7930 if (XOR (islower (i), ISLOWER (i))
7931 || toupper (i) != TOUPPER (i))
7932 return 2;
7933 return 0;
7934 }
7935 _ACEOF
7936 if ac_fn_c_try_run "$LINENO"; then :
7937
7938 else
7939 ac_cv_header_stdc=no
7940 fi
7941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7942 conftest.$ac_objext conftest.beam conftest.$ac_ext
7943 fi
7944
7945 fi
7946 fi
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7948 $as_echo "$ac_cv_header_stdc" >&6; }
7949 if test $ac_cv_header_stdc = yes; then
7950
7951 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7952
7953 fi
7954
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7956 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7957 if test "${ac_cv_header_time+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 #include <sys/types.h>
7963 #include <sys/time.h>
7964 #include <time.h>
7965
7966 int
7967 main ()
7968 {
7969 if ((struct tm *) 0)
7970 return 0;
7971 ;
7972 return 0;
7973 }
7974 _ACEOF
7975 if ac_fn_c_try_compile "$LINENO"; then :
7976 ac_cv_header_time=yes
7977 else
7978 ac_cv_header_time=no
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7983 $as_echo "$ac_cv_header_time" >&6; }
7984 if test $ac_cv_header_time = yes; then
7985
7986 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7987
7988 fi
7989
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7991 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7992 if test "${gcc_cv_header_string+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7997 #include <string.h>
7998 #include <strings.h>
7999 int
8000 main ()
8001 {
8002
8003 ;
8004 return 0;
8005 }
8006 _ACEOF
8007 if ac_fn_c_try_compile "$LINENO"; then :
8008 gcc_cv_header_string=yes
8009 else
8010 gcc_cv_header_string=no
8011 fi
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 fi
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8015 $as_echo "$gcc_cv_header_string" >&6; }
8016 if test $gcc_cv_header_string = yes; then
8017
8018 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8019
8020 fi
8021
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8023 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8024 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
8026 else
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8029 #include <sys/types.h>
8030 #include <sys/wait.h>
8031 #ifndef WEXITSTATUS
8032 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8033 #endif
8034 #ifndef WIFEXITED
8035 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8036 #endif
8037
8038 int
8039 main ()
8040 {
8041 int s;
8042 wait (&s);
8043 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 if ac_fn_c_try_compile "$LINENO"; then :
8049 ac_cv_header_sys_wait_h=yes
8050 else
8051 ac_cv_header_sys_wait_h=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 fi
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8056 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8057 if test $ac_cv_header_sys_wait_h = yes; then
8058
8059 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8060
8061 fi
8062
8063 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8064 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8065 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8066 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8067 do :
8068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8069 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8070 eval as_val=\$$as_ac_Header
8071 if test "x$as_val" = x""yes; then :
8072 cat >>confdefs.h <<_ACEOF
8073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8074 _ACEOF
8075
8076 fi
8077 done
8078
8079
8080 # Check for thread headers.
8081 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8082 if test "x$ac_cv_header_thread_h" = x""yes; then :
8083 have_thread_h=yes
8084 else
8085 have_thread_h=
8086 fi
8087
8088 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8089 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8090 have_pthread_h=yes
8091 else
8092 have_pthread_h=
8093 fi
8094
8095
8096 # These tests can't be done till we know if we have limits.h.
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8098 $as_echo_n "checking for CHAR_BIT... " >&6; }
8099 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 #ifdef HAVE_LIMITS_H
8105 #include <limits.h>
8106 #endif
8107 #ifdef CHAR_BIT
8108 found
8109 #endif
8110 _ACEOF
8111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8112 $EGREP "found" >/dev/null 2>&1; then :
8113 gcc_cv_decl_char_bit=yes
8114 else
8115 gcc_cv_decl_char_bit=no
8116 fi
8117 rm -f conftest*
8118
8119
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8122 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8123 if test $gcc_cv_decl_char_bit = no; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8125 $as_echo_n "checking number of bits in a byte... " >&6; }
8126 if test "${gcc_cv_c_nbby+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 i=8
8130 gcc_cv_c_nbby=
8131 while test $i -lt 65; do
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8134
8135 int
8136 main ()
8137 {
8138 switch(0) {
8139 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8140 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8141 ; }
8142 ;
8143 return 0;
8144 }
8145 _ACEOF
8146 if ac_fn_c_try_compile "$LINENO"; then :
8147 gcc_cv_c_nbby=$i; break
8148 fi
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 i=`expr $i + 1`
8151 done
8152 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8153
8154 fi
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8156 $as_echo "$gcc_cv_c_nbby" >&6; }
8157 if test $gcc_cv_c_nbby = failed; then
8158 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8159 else
8160
8161 cat >>confdefs.h <<_ACEOF
8162 #define CHAR_BIT $gcc_cv_c_nbby
8163 _ACEOF
8164
8165 fi
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8168 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8169 if test "${ac_cv_c_bigendian+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 ac_cv_c_bigendian=unknown
8173 # See if we're dealing with a universal compiler.
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 #ifndef __APPLE_CC__
8177 not a universal capable compiler
8178 #endif
8179 typedef int dummy;
8180
8181 _ACEOF
8182 if ac_fn_c_try_compile "$LINENO"; then :
8183
8184 # Check for potential -arch flags. It is not universal unless
8185 # there are at least two -arch flags with different values.
8186 ac_arch=
8187 ac_prev=
8188 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8189 if test -n "$ac_prev"; then
8190 case $ac_word in
8191 i?86 | x86_64 | ppc | ppc64)
8192 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8193 ac_arch=$ac_word
8194 else
8195 ac_cv_c_bigendian=universal
8196 break
8197 fi
8198 ;;
8199 esac
8200 ac_prev=
8201 elif test "x$ac_word" = "x-arch"; then
8202 ac_prev=arch
8203 fi
8204 done
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 if test $ac_cv_c_bigendian = unknown; then
8208 # See if sys/param.h defines the BYTE_ORDER macro.
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 #include <sys/types.h>
8212 #include <sys/param.h>
8213
8214 int
8215 main ()
8216 {
8217 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8218 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8219 && LITTLE_ENDIAN)
8220 bogus endian macros
8221 #endif
8222
8223 ;
8224 return 0;
8225 }
8226 _ACEOF
8227 if ac_fn_c_try_compile "$LINENO"; then :
8228 # It does; now see whether it defined to BIG_ENDIAN or not.
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 #include <sys/types.h>
8232 #include <sys/param.h>
8233
8234 int
8235 main ()
8236 {
8237 #if BYTE_ORDER != BIG_ENDIAN
8238 not big endian
8239 #endif
8240
8241 ;
8242 return 0;
8243 }
8244 _ACEOF
8245 if ac_fn_c_try_compile "$LINENO"; then :
8246 ac_cv_c_bigendian=yes
8247 else
8248 ac_cv_c_bigendian=no
8249 fi
8250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 fi
8254 if test $ac_cv_c_bigendian = unknown; then
8255 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8258 #include <limits.h>
8259
8260 int
8261 main ()
8262 {
8263 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8264 bogus endian macros
8265 #endif
8266
8267 ;
8268 return 0;
8269 }
8270 _ACEOF
8271 if ac_fn_c_try_compile "$LINENO"; then :
8272 # It does; now see whether it defined to _BIG_ENDIAN or not.
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 #include <limits.h>
8276
8277 int
8278 main ()
8279 {
8280 #ifndef _BIG_ENDIAN
8281 not big endian
8282 #endif
8283
8284 ;
8285 return 0;
8286 }
8287 _ACEOF
8288 if ac_fn_c_try_compile "$LINENO"; then :
8289 ac_cv_c_bigendian=yes
8290 else
8291 ac_cv_c_bigendian=no
8292 fi
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 fi
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 fi
8297 if test $ac_cv_c_bigendian = unknown; then
8298 # Compile a test program.
8299 if test "$cross_compiling" = yes; then :
8300 # Try to guess by grepping values from an object file.
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 short int ascii_mm[] =
8304 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8305 short int ascii_ii[] =
8306 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8307 int use_ascii (int i) {
8308 return ascii_mm[i] + ascii_ii[i];
8309 }
8310 short int ebcdic_ii[] =
8311 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8312 short int ebcdic_mm[] =
8313 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8314 int use_ebcdic (int i) {
8315 return ebcdic_mm[i] + ebcdic_ii[i];
8316 }
8317 extern int foo;
8318
8319 int
8320 main ()
8321 {
8322 return use_ascii (foo) == use_ebcdic (foo);
8323 ;
8324 return 0;
8325 }
8326 _ACEOF
8327 if ac_fn_c_try_compile "$LINENO"; then :
8328 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8329 ac_cv_c_bigendian=yes
8330 fi
8331 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8332 if test "$ac_cv_c_bigendian" = unknown; then
8333 ac_cv_c_bigendian=no
8334 else
8335 # finding both strings is unlikely to happen, but who knows?
8336 ac_cv_c_bigendian=unknown
8337 fi
8338 fi
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 else
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8344 $ac_includes_default
8345 int
8346 main ()
8347 {
8348
8349 /* Are we little or big endian? From Harbison&Steele. */
8350 union
8351 {
8352 long int l;
8353 char c[sizeof (long int)];
8354 } u;
8355 u.l = 1;
8356 return u.c[sizeof (long int) - 1] == 1;
8357
8358 ;
8359 return 0;
8360 }
8361 _ACEOF
8362 if ac_fn_c_try_run "$LINENO"; then :
8363 ac_cv_c_bigendian=no
8364 else
8365 ac_cv_c_bigendian=yes
8366 fi
8367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8368 conftest.$ac_objext conftest.beam conftest.$ac_ext
8369 fi
8370
8371 fi
8372 fi
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8374 $as_echo "$ac_cv_c_bigendian" >&6; }
8375 case $ac_cv_c_bigendian in #(
8376 yes)
8377 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8378 ;; #(
8379 no)
8380 ;; #(
8381 universal)
8382
8383 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8384
8385 ;; #(
8386 *)
8387 as_fn_error "unknown endianness
8388 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8389 esac
8390
8391
8392 # --------
8393 # UNSORTED
8394 # --------
8395
8396
8397 # These libraries may be used by collect2.
8398 # We may need a special search path to get them linked.
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8400 $as_echo_n "checking for collect2 libraries... " >&6; }
8401 if test "${gcc_cv_collect2_libs+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 save_LIBS="$LIBS"
8405 for libs in '' -lld -lmld \
8406 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8407 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8408 do
8409 LIBS="$libs"
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412
8413 /* Override any GCC internal prototype to avoid an error.
8414 Use char because int might match the return type of a GCC
8415 builtin and then its argument prototype would still apply. */
8416 #ifdef __cplusplus
8417 extern "C"
8418 #endif
8419 char ldopen ();
8420 int
8421 main ()
8422 {
8423 return ldopen ();
8424 ;
8425 return 0;
8426 }
8427 _ACEOF
8428 if ac_fn_c_try_link "$LINENO"; then :
8429 gcc_cv_collect2_libs="$libs"; break
8430 fi
8431 rm -f core conftest.err conftest.$ac_objext \
8432 conftest$ac_exeext conftest.$ac_ext
8433 done
8434 LIBS="$save_LIBS"
8435 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8436 fi
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8438 $as_echo "$gcc_cv_collect2_libs" >&6; }
8439 case $gcc_cv_collect2_libs in
8440 "none required") ;;
8441 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8442 esac
8443
8444
8445 # When building Ada code on Alpha, we need exc_resume which is usually in
8446 # -lexc. So test for it.
8447 save_LIBS="$LIBS"
8448 LIBS=
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8450 $as_echo_n "checking for library containing exc_resume... " >&6; }
8451 if test "${ac_cv_search_exc_resume+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 ac_func_search_save_LIBS=$LIBS
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457
8458 /* Override any GCC internal prototype to avoid an error.
8459 Use char because int might match the return type of a GCC
8460 builtin and then its argument prototype would still apply. */
8461 #ifdef __cplusplus
8462 extern "C"
8463 #endif
8464 char exc_resume ();
8465 int
8466 main ()
8467 {
8468 return exc_resume ();
8469 ;
8470 return 0;
8471 }
8472 _ACEOF
8473 for ac_lib in '' exc; do
8474 if test -z "$ac_lib"; then
8475 ac_res="none required"
8476 else
8477 ac_res=-l$ac_lib
8478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8479 fi
8480 if ac_fn_c_try_link "$LINENO"; then :
8481 ac_cv_search_exc_resume=$ac_res
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext
8485 if test "${ac_cv_search_exc_resume+set}" = set; then :
8486 break
8487 fi
8488 done
8489 if test "${ac_cv_search_exc_resume+set}" = set; then :
8490
8491 else
8492 ac_cv_search_exc_resume=no
8493 fi
8494 rm conftest.$ac_ext
8495 LIBS=$ac_func_search_save_LIBS
8496 fi
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8498 $as_echo "$ac_cv_search_exc_resume" >&6; }
8499 ac_res=$ac_cv_search_exc_resume
8500 if test "$ac_res" != no; then :
8501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8502
8503 fi
8504
8505 GNAT_LIBEXC="$LIBS"
8506 LIBS="$save_LIBS"
8507
8508
8509 # Some systems put ldexp and frexp in libm instead of libc; assume
8510 # they're both in the same place. jcf-dump needs them.
8511 save_LIBS="$LIBS"
8512 LIBS=
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8514 $as_echo_n "checking for library containing ldexp... " >&6; }
8515 if test "${ac_cv_search_ldexp+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 ac_func_search_save_LIBS=$LIBS
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521
8522 /* Override any GCC internal prototype to avoid an error.
8523 Use char because int might match the return type of a GCC
8524 builtin and then its argument prototype would still apply. */
8525 #ifdef __cplusplus
8526 extern "C"
8527 #endif
8528 char ldexp ();
8529 int
8530 main ()
8531 {
8532 return ldexp ();
8533 ;
8534 return 0;
8535 }
8536 _ACEOF
8537 for ac_lib in '' m; do
8538 if test -z "$ac_lib"; then
8539 ac_res="none required"
8540 else
8541 ac_res=-l$ac_lib
8542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8543 fi
8544 if ac_fn_c_try_link "$LINENO"; then :
8545 ac_cv_search_ldexp=$ac_res
8546 fi
8547 rm -f core conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext
8549 if test "${ac_cv_search_ldexp+set}" = set; then :
8550 break
8551 fi
8552 done
8553 if test "${ac_cv_search_ldexp+set}" = set; then :
8554
8555 else
8556 ac_cv_search_ldexp=no
8557 fi
8558 rm conftest.$ac_ext
8559 LIBS=$ac_func_search_save_LIBS
8560 fi
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8562 $as_echo "$ac_cv_search_ldexp" >&6; }
8563 ac_res=$ac_cv_search_ldexp
8564 if test "$ac_res" != no; then :
8565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8566
8567 fi
8568
8569 LDEXP_LIB="$LIBS"
8570 LIBS="$save_LIBS"
8571
8572
8573 # Use <inttypes.h> only if it exists,
8574 # doesn't clash with <sys/types.h>, and declares intmax_t.
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8576 $as_echo_n "checking for inttypes.h... " >&6; }
8577 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 #include <sys/types.h>
8583 #include <inttypes.h>
8584 int
8585 main ()
8586 {
8587 intmax_t i = -1;
8588 ;
8589 return 0;
8590 }
8591 _ACEOF
8592 if ac_fn_c_try_compile "$LINENO"; then :
8593 gcc_cv_header_inttypes_h=yes
8594 else
8595 gcc_cv_header_inttypes_h=no
8596 fi
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 fi
8599
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8601 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8602 if test $gcc_cv_header_inttypes_h = yes; then
8603
8604 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8605
8606 fi
8607
8608
8609
8610 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8611 sysconf strsignal getrusage nl_langinfo \
8612 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8613 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
8614 do :
8615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8616 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8617 eval as_val=\$$as_ac_var
8618 if test "x$as_val" = x""yes; then :
8619 cat >>confdefs.h <<_ACEOF
8620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8621 _ACEOF
8622
8623 fi
8624 done
8625
8626
8627 if test x$ac_cv_func_mbstowcs = xyes; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8629 $as_echo_n "checking whether mbstowcs works... " >&6; }
8630 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 if test "$cross_compiling" = yes; then :
8634 gcc_cv_func_mbstowcs_works=yes
8635 else
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 #include <stdlib.h>
8639 int main()
8640 {
8641 mbstowcs(0, "", 0);
8642 return 0;
8643 }
8644 _ACEOF
8645 if ac_fn_c_try_run "$LINENO"; then :
8646 gcc_cv_func_mbstowcs_works=yes
8647 else
8648 gcc_cv_func_mbstowcs_works=no
8649 fi
8650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8651 conftest.$ac_objext conftest.beam conftest.$ac_ext
8652 fi
8653
8654 fi
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8656 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8657 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8658
8659 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8660
8661 fi
8662 fi
8663
8664 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8665 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8666
8667 else
8668
8669 cat >>confdefs.h <<_ACEOF
8670 #define ssize_t int
8671 _ACEOF
8672
8673 fi
8674
8675 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8676 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8677
8678 else
8679
8680 cat >>confdefs.h <<_ACEOF
8681 #define caddr_t char *
8682 _ACEOF
8683
8684 fi
8685
8686
8687
8688 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8689 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8690 gcc_header_sys_mman_h=yes
8691 else
8692 gcc_header_sys_mman_h=no
8693 fi
8694
8695 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8696 if test "x$ac_cv_func_mmap" = x""yes; then :
8697 gcc_func_mmap=yes
8698 else
8699 gcc_func_mmap=no
8700 fi
8701
8702 if test "$gcc_header_sys_mman_h" != yes \
8703 || test "$gcc_func_mmap" != yes; then
8704 gcc_cv_func_mmap_file=no
8705 gcc_cv_func_mmap_dev_zero=no
8706 gcc_cv_func_mmap_anon=no
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8709 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8710 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 # Add a system to this blacklist if
8714 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8715 # memory area containing the same data that you'd get if you applied
8716 # read() to the same fd. The only system known to have a problem here
8717 # is VMS, where text files have record structure.
8718 case "$host_os" in
8719 vms* | ultrix*)
8720 gcc_cv_func_mmap_file=no ;;
8721 *)
8722 gcc_cv_func_mmap_file=yes;;
8723 esac
8724 fi
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8726 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8728 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8729 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 # Add a system to this blacklist if it has mmap() but /dev/zero
8733 # does not exist, or if mmapping /dev/zero does not give anonymous
8734 # zeroed pages with both the following properties:
8735 # 1. If you map N consecutive pages in with one call, and then
8736 # unmap any subset of those pages, the pages that were not
8737 # explicitly unmapped remain accessible.
8738 # 2. If you map two adjacent blocks of memory and then unmap them
8739 # both at once, they must both go away.
8740 # Systems known to be in this category are Windows (all variants),
8741 # VMS, and Darwin.
8742 case "$host_os" in
8743 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8744 gcc_cv_func_mmap_dev_zero=no ;;
8745 *)
8746 gcc_cv_func_mmap_dev_zero=yes;;
8747 esac
8748 fi
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8750 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8751
8752 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8754 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8755 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 #include <sys/types.h>
8761 #include <sys/mman.h>
8762 #include <unistd.h>
8763
8764 #ifndef MAP_ANONYMOUS
8765 #define MAP_ANONYMOUS MAP_ANON
8766 #endif
8767
8768 int
8769 main ()
8770 {
8771 int n = MAP_ANONYMOUS;
8772 ;
8773 return 0;
8774 }
8775 _ACEOF
8776 if ac_fn_c_try_compile "$LINENO"; then :
8777 gcc_cv_decl_map_anon=yes
8778 else
8779 gcc_cv_decl_map_anon=no
8780 fi
8781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782 fi
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8784 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8785
8786 if test $gcc_cv_decl_map_anon = no; then
8787 gcc_cv_func_mmap_anon=no
8788 else
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8790 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8791 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8795 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8796 # doesn't give anonymous zeroed pages with the same properties listed
8797 # above for use of /dev/zero.
8798 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8799 case "$host_os" in
8800 vms* | cygwin* | pe | mingw* | sco* | udk* )
8801 gcc_cv_func_mmap_anon=no ;;
8802 *)
8803 gcc_cv_func_mmap_anon=yes;;
8804 esac
8805 fi
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8807 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8808 fi
8809 fi
8810
8811 if test $gcc_cv_func_mmap_file = yes; then
8812
8813 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8814
8815 fi
8816 if test $gcc_cv_func_mmap_dev_zero = yes; then
8817
8818 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8819
8820 fi
8821 if test $gcc_cv_func_mmap_anon = yes; then
8822
8823 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8824
8825 fi
8826
8827
8828 case "${host}" in
8829 *-*-*vms*)
8830 # Under VMS, vfork works very differently than on Unix. The standard test
8831 # won't work, and it isn't easily adaptable. It makes more sense to
8832 # just force it.
8833 ac_cv_func_vfork_works=yes
8834 ;;
8835 esac
8836 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8837 if test "x$ac_cv_type_pid_t" = x""yes; then :
8838
8839 else
8840
8841 cat >>confdefs.h <<_ACEOF
8842 #define pid_t int
8843 _ACEOF
8844
8845 fi
8846
8847 for ac_header in vfork.h
8848 do :
8849 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8850 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8851 cat >>confdefs.h <<_ACEOF
8852 #define HAVE_VFORK_H 1
8853 _ACEOF
8854
8855 fi
8856 done
8857
8858 for ac_func in fork vfork
8859 do :
8860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8861 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8862 eval as_val=\$$as_ac_var
8863 if test "x$as_val" = x""yes; then :
8864 cat >>confdefs.h <<_ACEOF
8865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8866 _ACEOF
8867
8868 fi
8869 done
8870
8871 if test "x$ac_cv_func_fork" = xyes; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8873 $as_echo_n "checking for working fork... " >&6; }
8874 if test "${ac_cv_func_fork_works+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 if test "$cross_compiling" = yes; then :
8878 ac_cv_func_fork_works=cross
8879 else
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 $ac_includes_default
8883 int
8884 main ()
8885 {
8886
8887 /* By Ruediger Kuhlmann. */
8888 return fork () < 0;
8889
8890 ;
8891 return 0;
8892 }
8893 _ACEOF
8894 if ac_fn_c_try_run "$LINENO"; then :
8895 ac_cv_func_fork_works=yes
8896 else
8897 ac_cv_func_fork_works=no
8898 fi
8899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8900 conftest.$ac_objext conftest.beam conftest.$ac_ext
8901 fi
8902
8903 fi
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8905 $as_echo "$ac_cv_func_fork_works" >&6; }
8906
8907 else
8908 ac_cv_func_fork_works=$ac_cv_func_fork
8909 fi
8910 if test "x$ac_cv_func_fork_works" = xcross; then
8911 case $host in
8912 *-*-amigaos* | *-*-msdosdjgpp*)
8913 # Override, as these systems have only a dummy fork() stub
8914 ac_cv_func_fork_works=no
8915 ;;
8916 *)
8917 ac_cv_func_fork_works=yes
8918 ;;
8919 esac
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8921 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8922 fi
8923 ac_cv_func_vfork_works=$ac_cv_func_vfork
8924 if test "x$ac_cv_func_vfork" = xyes; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8926 $as_echo_n "checking for working vfork... " >&6; }
8927 if test "${ac_cv_func_vfork_works+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
8929 else
8930 if test "$cross_compiling" = yes; then :
8931 ac_cv_func_vfork_works=cross
8932 else
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 /* Thanks to Paul Eggert for this test. */
8936 $ac_includes_default
8937 #include <sys/wait.h>
8938 #ifdef HAVE_VFORK_H
8939 # include <vfork.h>
8940 #endif
8941 /* On some sparc systems, changes by the child to local and incoming
8942 argument registers are propagated back to the parent. The compiler
8943 is told about this with #include <vfork.h>, but some compilers
8944 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8945 static variable whose address is put into a register that is
8946 clobbered by the vfork. */
8947 static void
8948 #ifdef __cplusplus
8949 sparc_address_test (int arg)
8950 # else
8951 sparc_address_test (arg) int arg;
8952 #endif
8953 {
8954 static pid_t child;
8955 if (!child) {
8956 child = vfork ();
8957 if (child < 0) {
8958 perror ("vfork");
8959 _exit(2);
8960 }
8961 if (!child) {
8962 arg = getpid();
8963 write(-1, "", 0);
8964 _exit (arg);
8965 }
8966 }
8967 }
8968
8969 int
8970 main ()
8971 {
8972 pid_t parent = getpid ();
8973 pid_t child;
8974
8975 sparc_address_test (0);
8976
8977 child = vfork ();
8978
8979 if (child == 0) {
8980 /* Here is another test for sparc vfork register problems. This
8981 test uses lots of local variables, at least as many local
8982 variables as main has allocated so far including compiler
8983 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8984 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8985 reuse the register of parent for one of the local variables,
8986 since it will think that parent can't possibly be used any more
8987 in this routine. Assigning to the local variable will thus
8988 munge parent in the parent process. */
8989 pid_t
8990 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8991 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8992 /* Convince the compiler that p..p7 are live; otherwise, it might
8993 use the same hardware register for all 8 local variables. */
8994 if (p != p1 || p != p2 || p != p3 || p != p4
8995 || p != p5 || p != p6 || p != p7)
8996 _exit(1);
8997
8998 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8999 from child file descriptors. If the child closes a descriptor
9000 before it execs or exits, this munges the parent's descriptor
9001 as well. Test for this by closing stdout in the child. */
9002 _exit(close(fileno(stdout)) != 0);
9003 } else {
9004 int status;
9005 struct stat st;
9006
9007 while (wait(&status) != child)
9008 ;
9009 return (
9010 /* Was there some problem with vforking? */
9011 child < 0
9012
9013 /* Did the child fail? (This shouldn't happen.) */
9014 || status
9015
9016 /* Did the vfork/compiler bug occur? */
9017 || parent != getpid()
9018
9019 /* Did the file descriptor bug occur? */
9020 || fstat(fileno(stdout), &st) != 0
9021 );
9022 }
9023 }
9024 _ACEOF
9025 if ac_fn_c_try_run "$LINENO"; then :
9026 ac_cv_func_vfork_works=yes
9027 else
9028 ac_cv_func_vfork_works=no
9029 fi
9030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9031 conftest.$ac_objext conftest.beam conftest.$ac_ext
9032 fi
9033
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9036 $as_echo "$ac_cv_func_vfork_works" >&6; }
9037
9038 fi;
9039 if test "x$ac_cv_func_fork_works" = xcross; then
9040 ac_cv_func_vfork_works=$ac_cv_func_vfork
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9042 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9043 fi
9044
9045 if test "x$ac_cv_func_vfork_works" = xyes; then
9046
9047 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9048
9049 else
9050
9051 $as_echo "#define vfork fork" >>confdefs.h
9052
9053 fi
9054 if test "x$ac_cv_func_fork_works" = xyes; then
9055
9056 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9057
9058 fi
9059
9060
9061
9062 if test "X$prefix" = "XNONE"; then
9063 acl_final_prefix="$ac_default_prefix"
9064 else
9065 acl_final_prefix="$prefix"
9066 fi
9067 if test "X$exec_prefix" = "XNONE"; then
9068 acl_final_exec_prefix='${prefix}'
9069 else
9070 acl_final_exec_prefix="$exec_prefix"
9071 fi
9072 acl_save_prefix="$prefix"
9073 prefix="$acl_final_prefix"
9074 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9075 prefix="$acl_save_prefix"
9076
9077
9078 # Check whether --with-gnu-ld was given.
9079 if test "${with_gnu_ld+set}" = set; then :
9080 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9081 else
9082 with_gnu_ld=no
9083 fi
9084
9085 # Prepare PATH_SEPARATOR.
9086 # The user is always right.
9087 if test "${PATH_SEPARATOR+set}" != set; then
9088 echo "#! /bin/sh" >conf$$.sh
9089 echo "exit 0" >>conf$$.sh
9090 chmod +x conf$$.sh
9091 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9092 PATH_SEPARATOR=';'
9093 else
9094 PATH_SEPARATOR=:
9095 fi
9096 rm -f conf$$.sh
9097 fi
9098 ac_prog=ld
9099 if test "$GCC" = yes; then
9100 # Check if gcc -print-prog-name=ld gives a path.
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9102 $as_echo_n "checking for ld used by GCC... " >&6; }
9103 case $host in
9104 *-*-mingw*)
9105 # gcc leaves a trailing carriage return which upsets mingw
9106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9107 *)
9108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9109 esac
9110 case $ac_prog in
9111 # Accept absolute paths.
9112 [\\/]* | [A-Za-z]:[\\/]*)
9113 re_direlt='/[^/][^/]*/\.\./'
9114 # Canonicalize the path of ld
9115 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9116 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9117 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9118 done
9119 test -z "$LD" && LD="$ac_prog"
9120 ;;
9121 "")
9122 # If it fails, then pretend we aren't using GCC.
9123 ac_prog=ld
9124 ;;
9125 *)
9126 # If it is relative, then search for the first ld in PATH.
9127 with_gnu_ld=unknown
9128 ;;
9129 esac
9130 elif test "$with_gnu_ld" = yes; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9132 $as_echo_n "checking for GNU ld... " >&6; }
9133 else
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9135 $as_echo_n "checking for non-GNU ld... " >&6; }
9136 fi
9137 if test "${acl_cv_path_LD+set}" = set; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9140 if test -z "$LD"; then
9141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9142 for ac_dir in $PATH; do
9143 test -z "$ac_dir" && ac_dir=.
9144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9145 acl_cv_path_LD="$ac_dir/$ac_prog"
9146 # Check to see if the program is GNU ld. I'd rather use --version,
9147 # but apparently some GNU ld's only accept -v.
9148 # Break only if it was the GNU/non-GNU ld that we prefer.
9149 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9150 test "$with_gnu_ld" != no && break
9151 else
9152 test "$with_gnu_ld" != yes && break
9153 fi
9154 fi
9155 done
9156 IFS="$ac_save_ifs"
9157 else
9158 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9159 fi
9160 fi
9161
9162 LD="$acl_cv_path_LD"
9163 if test -n "$LD"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9165 $as_echo "$LD" >&6; }
9166 else
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9169 fi
9170 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9173 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9177 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9178 acl_cv_prog_gnu_ld=yes
9179 else
9180 acl_cv_prog_gnu_ld=no
9181 fi
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9184 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9185 with_gnu_ld=$acl_cv_prog_gnu_ld
9186
9187
9188
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9190 $as_echo_n "checking for shared library run path origin... " >&6; }
9191 if test "${acl_cv_rpath+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194
9195 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9196 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9197 . ./conftest.sh
9198 rm -f ./conftest.sh
9199 acl_cv_rpath=done
9200
9201 fi
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9203 $as_echo "$acl_cv_rpath" >&6; }
9204 wl="$acl_cv_wl"
9205 libext="$acl_cv_libext"
9206 shlibext="$acl_cv_shlibext"
9207 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9208 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9209 hardcode_direct="$acl_cv_hardcode_direct"
9210 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9211 # Check whether --enable-rpath was given.
9212 if test "${enable_rpath+set}" = set; then :
9213 enableval=$enable_rpath; :
9214 else
9215 enable_rpath=yes
9216 fi
9217
9218
9219
9220
9221
9222
9223
9224
9225 use_additional=yes
9226
9227 acl_save_prefix="$prefix"
9228 prefix="$acl_final_prefix"
9229 acl_save_exec_prefix="$exec_prefix"
9230 exec_prefix="$acl_final_exec_prefix"
9231
9232 eval additional_includedir=\"$includedir\"
9233 eval additional_libdir=\"$libdir\"
9234
9235 exec_prefix="$acl_save_exec_prefix"
9236 prefix="$acl_save_prefix"
9237
9238
9239 # Check whether --with-libiconv-prefix was given.
9240 if test "${with_libiconv_prefix+set}" = set; then :
9241 withval=$with_libiconv_prefix;
9242 if test "X$withval" = "Xno"; then
9243 use_additional=no
9244 else
9245 if test "X$withval" = "X"; then
9246
9247 acl_save_prefix="$prefix"
9248 prefix="$acl_final_prefix"
9249 acl_save_exec_prefix="$exec_prefix"
9250 exec_prefix="$acl_final_exec_prefix"
9251
9252 eval additional_includedir=\"$includedir\"
9253 eval additional_libdir=\"$libdir\"
9254
9255 exec_prefix="$acl_save_exec_prefix"
9256 prefix="$acl_save_prefix"
9257
9258 else
9259 additional_includedir="$withval/include"
9260 additional_libdir="$withval/lib"
9261 fi
9262 fi
9263
9264 fi
9265
9266 LIBICONV=
9267 LTLIBICONV=
9268 INCICONV=
9269 rpathdirs=
9270 ltrpathdirs=
9271 names_already_handled=
9272 names_next_round='iconv '
9273 while test -n "$names_next_round"; do
9274 names_this_round="$names_next_round"
9275 names_next_round=
9276 for name in $names_this_round; do
9277 already_handled=
9278 for n in $names_already_handled; do
9279 if test "$n" = "$name"; then
9280 already_handled=yes
9281 break
9282 fi
9283 done
9284 if test -z "$already_handled"; then
9285 names_already_handled="$names_already_handled $name"
9286 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9287 eval value=\"\$HAVE_LIB$uppername\"
9288 if test -n "$value"; then
9289 if test "$value" = yes; then
9290 eval value=\"\$LIB$uppername\"
9291 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9292 eval value=\"\$LTLIB$uppername\"
9293 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9294 else
9295 :
9296 fi
9297 else
9298 found_dir=
9299 found_la=
9300 found_so=
9301 found_a=
9302 if test $use_additional = yes; then
9303 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9304 found_dir="$additional_libdir"
9305 found_so="$additional_libdir/lib$name.$shlibext"
9306 if test -f "$additional_libdir/lib$name.la"; then
9307 found_la="$additional_libdir/lib$name.la"
9308 fi
9309 else
9310 if test -f "$additional_libdir/lib$name.$libext"; then
9311 found_dir="$additional_libdir"
9312 found_a="$additional_libdir/lib$name.$libext"
9313 if test -f "$additional_libdir/lib$name.la"; then
9314 found_la="$additional_libdir/lib$name.la"
9315 fi
9316 fi
9317 fi
9318 fi
9319 if test "X$found_dir" = "X"; then
9320 for x in $LDFLAGS $LTLIBICONV; do
9321
9322 acl_save_prefix="$prefix"
9323 prefix="$acl_final_prefix"
9324 acl_save_exec_prefix="$exec_prefix"
9325 exec_prefix="$acl_final_exec_prefix"
9326 eval x=\"$x\"
9327 exec_prefix="$acl_save_exec_prefix"
9328 prefix="$acl_save_prefix"
9329
9330 case "$x" in
9331 -L*)
9332 dir=`echo "X$x" | sed -e 's/^X-L//'`
9333 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9334 found_dir="$dir"
9335 found_so="$dir/lib$name.$shlibext"
9336 if test -f "$dir/lib$name.la"; then
9337 found_la="$dir/lib$name.la"
9338 fi
9339 else
9340 if test -f "$dir/lib$name.$libext"; then
9341 found_dir="$dir"
9342 found_a="$dir/lib$name.$libext"
9343 if test -f "$dir/lib$name.la"; then
9344 found_la="$dir/lib$name.la"
9345 fi
9346 fi
9347 fi
9348 ;;
9349 esac
9350 if test "X$found_dir" != "X"; then
9351 break
9352 fi
9353 done
9354 fi
9355 if test "X$found_dir" != "X"; then
9356 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9357 if test "X$found_so" != "X"; then
9358 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9359 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9360 else
9361 haveit=
9362 for x in $ltrpathdirs; do
9363 if test "X$x" = "X$found_dir"; then
9364 haveit=yes
9365 break
9366 fi
9367 done
9368 if test -z "$haveit"; then
9369 ltrpathdirs="$ltrpathdirs $found_dir"
9370 fi
9371 if test "$hardcode_direct" = yes; then
9372 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9373 else
9374 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9375 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9376 haveit=
9377 for x in $rpathdirs; do
9378 if test "X$x" = "X$found_dir"; then
9379 haveit=yes
9380 break
9381 fi
9382 done
9383 if test -z "$haveit"; then
9384 rpathdirs="$rpathdirs $found_dir"
9385 fi
9386 else
9387 haveit=
9388 for x in $LDFLAGS $LIBICONV; do
9389
9390 acl_save_prefix="$prefix"
9391 prefix="$acl_final_prefix"
9392 acl_save_exec_prefix="$exec_prefix"
9393 exec_prefix="$acl_final_exec_prefix"
9394 eval x=\"$x\"
9395 exec_prefix="$acl_save_exec_prefix"
9396 prefix="$acl_save_prefix"
9397
9398 if test "X$x" = "X-L$found_dir"; then
9399 haveit=yes
9400 break
9401 fi
9402 done
9403 if test -z "$haveit"; then
9404 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9405 fi
9406 if test "$hardcode_minus_L" != no; then
9407 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9408 else
9409 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9410 fi
9411 fi
9412 fi
9413 fi
9414 else
9415 if test "X$found_a" != "X"; then
9416 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9417 else
9418 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9419 fi
9420 fi
9421 additional_includedir=
9422 case "$found_dir" in
9423 */lib | */lib/)
9424 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9425 additional_includedir="$basedir/include"
9426 ;;
9427 esac
9428 if test "X$additional_includedir" != "X"; then
9429 if test "X$additional_includedir" != "X/usr/include"; then
9430 haveit=
9431 if test "X$additional_includedir" = "X/usr/local/include"; then
9432 if test -n "$GCC"; then
9433 case $host_os in
9434 linux*) haveit=yes;;
9435 esac
9436 fi
9437 fi
9438 if test -z "$haveit"; then
9439 for x in $CPPFLAGS $INCICONV; do
9440
9441 acl_save_prefix="$prefix"
9442 prefix="$acl_final_prefix"
9443 acl_save_exec_prefix="$exec_prefix"
9444 exec_prefix="$acl_final_exec_prefix"
9445 eval x=\"$x\"
9446 exec_prefix="$acl_save_exec_prefix"
9447 prefix="$acl_save_prefix"
9448
9449 if test "X$x" = "X-I$additional_includedir"; then
9450 haveit=yes
9451 break
9452 fi
9453 done
9454 if test -z "$haveit"; then
9455 if test -d "$additional_includedir"; then
9456 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9457 fi
9458 fi
9459 fi
9460 fi
9461 fi
9462 if test -n "$found_la"; then
9463 save_libdir="$libdir"
9464 case "$found_la" in
9465 */* | *\\*) . "$found_la" ;;
9466 *) . "./$found_la" ;;
9467 esac
9468 libdir="$save_libdir"
9469 for dep in $dependency_libs; do
9470 case "$dep" in
9471 -L*)
9472 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9473 if test "X$additional_libdir" != "X/usr/lib"; then
9474 haveit=
9475 if test "X$additional_libdir" = "X/usr/local/lib"; then
9476 if test -n "$GCC"; then
9477 case $host_os in
9478 linux*) haveit=yes;;
9479 esac
9480 fi
9481 fi
9482 if test -z "$haveit"; then
9483 haveit=
9484 for x in $LDFLAGS $LIBICONV; do
9485
9486 acl_save_prefix="$prefix"
9487 prefix="$acl_final_prefix"
9488 acl_save_exec_prefix="$exec_prefix"
9489 exec_prefix="$acl_final_exec_prefix"
9490 eval x=\"$x\"
9491 exec_prefix="$acl_save_exec_prefix"
9492 prefix="$acl_save_prefix"
9493
9494 if test "X$x" = "X-L$additional_libdir"; then
9495 haveit=yes
9496 break
9497 fi
9498 done
9499 if test -z "$haveit"; then
9500 if test -d "$additional_libdir"; then
9501 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9502 fi
9503 fi
9504 haveit=
9505 for x in $LDFLAGS $LTLIBICONV; do
9506
9507 acl_save_prefix="$prefix"
9508 prefix="$acl_final_prefix"
9509 acl_save_exec_prefix="$exec_prefix"
9510 exec_prefix="$acl_final_exec_prefix"
9511 eval x=\"$x\"
9512 exec_prefix="$acl_save_exec_prefix"
9513 prefix="$acl_save_prefix"
9514
9515 if test "X$x" = "X-L$additional_libdir"; then
9516 haveit=yes
9517 break
9518 fi
9519 done
9520 if test -z "$haveit"; then
9521 if test -d "$additional_libdir"; then
9522 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9523 fi
9524 fi
9525 fi
9526 fi
9527 ;;
9528 -R*)
9529 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9530 if test "$enable_rpath" != no; then
9531 haveit=
9532 for x in $rpathdirs; do
9533 if test "X$x" = "X$dir"; then
9534 haveit=yes
9535 break
9536 fi
9537 done
9538 if test -z "$haveit"; then
9539 rpathdirs="$rpathdirs $dir"
9540 fi
9541 haveit=
9542 for x in $ltrpathdirs; do
9543 if test "X$x" = "X$dir"; then
9544 haveit=yes
9545 break
9546 fi
9547 done
9548 if test -z "$haveit"; then
9549 ltrpathdirs="$ltrpathdirs $dir"
9550 fi
9551 fi
9552 ;;
9553 -l*)
9554 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9555 ;;
9556 *.la)
9557 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9558 ;;
9559 *)
9560 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9561 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9562 ;;
9563 esac
9564 done
9565 fi
9566 else
9567 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9569 fi
9570 fi
9571 fi
9572 done
9573 done
9574 if test "X$rpathdirs" != "X"; then
9575 if test -n "$hardcode_libdir_separator"; then
9576 alldirs=
9577 for found_dir in $rpathdirs; do
9578 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9579 done
9580 acl_save_libdir="$libdir"
9581 libdir="$alldirs"
9582 eval flag=\"$hardcode_libdir_flag_spec\"
9583 libdir="$acl_save_libdir"
9584 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9585 else
9586 for found_dir in $rpathdirs; do
9587 acl_save_libdir="$libdir"
9588 libdir="$found_dir"
9589 eval flag=\"$hardcode_libdir_flag_spec\"
9590 libdir="$acl_save_libdir"
9591 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9592 done
9593 fi
9594 fi
9595 if test "X$ltrpathdirs" != "X"; then
9596 for found_dir in $ltrpathdirs; do
9597 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9598 done
9599 fi
9600
9601
9602
9603
9604
9605
9606
9607 am_save_CPPFLAGS="$CPPFLAGS"
9608
9609 for element in $INCICONV; do
9610 haveit=
9611 for x in $CPPFLAGS; do
9612
9613 acl_save_prefix="$prefix"
9614 prefix="$acl_final_prefix"
9615 acl_save_exec_prefix="$exec_prefix"
9616 exec_prefix="$acl_final_exec_prefix"
9617 eval x=\"$x\"
9618 exec_prefix="$acl_save_exec_prefix"
9619 prefix="$acl_save_prefix"
9620
9621 if test "X$x" = "X$element"; then
9622 haveit=yes
9623 break
9624 fi
9625 done
9626 if test -z "$haveit"; then
9627 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9628 fi
9629 done
9630
9631
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9633 $as_echo_n "checking for iconv... " >&6; }
9634 if test "${am_cv_func_iconv+set}" = set; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637
9638 am_cv_func_iconv="no, consider installing GNU libiconv"
9639 am_cv_lib_iconv=no
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642 #include <stdlib.h>
9643 #include <iconv.h>
9644 int
9645 main ()
9646 {
9647 iconv_t cd = iconv_open("","");
9648 iconv(cd,NULL,NULL,NULL,NULL);
9649 iconv_close(cd);
9650 ;
9651 return 0;
9652 }
9653 _ACEOF
9654 if ac_fn_c_try_link "$LINENO"; then :
9655 am_cv_func_iconv=yes
9656 fi
9657 rm -f core conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659 if test "$am_cv_func_iconv" != yes; then
9660 am_save_LIBS="$LIBS"
9661 LIBS="$LIBS $LIBICONV"
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9664 #include <stdlib.h>
9665 #include <iconv.h>
9666 int
9667 main ()
9668 {
9669 iconv_t cd = iconv_open("","");
9670 iconv(cd,NULL,NULL,NULL,NULL);
9671 iconv_close(cd);
9672 ;
9673 return 0;
9674 }
9675 _ACEOF
9676 if ac_fn_c_try_link "$LINENO"; then :
9677 am_cv_lib_iconv=yes
9678 am_cv_func_iconv=yes
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682 LIBS="$am_save_LIBS"
9683 fi
9684
9685 fi
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9687 $as_echo "$am_cv_func_iconv" >&6; }
9688 if test "$am_cv_func_iconv" = yes; then
9689
9690 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9691
9692 fi
9693 if test "$am_cv_lib_iconv" = yes; then
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9695 $as_echo_n "checking how to link with libiconv... " >&6; }
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9697 $as_echo "$LIBICONV" >&6; }
9698 else
9699 CPPFLAGS="$am_save_CPPFLAGS"
9700 LIBICONV=
9701 LTLIBICONV=
9702 fi
9703
9704
9705
9706 if test "$am_cv_func_iconv" = yes; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9708 $as_echo_n "checking for iconv declaration... " >&6; }
9709 if test "${am_cv_proto_iconv+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715
9716 #include <stdlib.h>
9717 #include <iconv.h>
9718 extern
9719 #ifdef __cplusplus
9720 "C"
9721 #endif
9722 #if defined(__STDC__) || defined(__cplusplus)
9723 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9724 #else
9725 size_t iconv();
9726 #endif
9727
9728 int
9729 main ()
9730 {
9731
9732 ;
9733 return 0;
9734 }
9735 _ACEOF
9736 if ac_fn_c_try_compile "$LINENO"; then :
9737 am_cv_proto_iconv_arg1=""
9738 else
9739 am_cv_proto_iconv_arg1="const"
9740 fi
9741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742 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);"
9743 fi
9744
9745 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9747 }$am_cv_proto_iconv" >&5
9748 $as_echo "${ac_t:-
9749 }$am_cv_proto_iconv" >&6; }
9750
9751 cat >>confdefs.h <<_ACEOF
9752 #define ICONV_CONST $am_cv_proto_iconv_arg1
9753 _ACEOF
9754
9755 fi
9756
9757 # Until we have in-tree GNU iconv:
9758 LIBICONV_DEP=
9759
9760
9761
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9763 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9764 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 #include <locale.h>
9770 int
9771 main ()
9772 {
9773 return LC_MESSAGES
9774 ;
9775 return 0;
9776 }
9777 _ACEOF
9778 if ac_fn_c_try_link "$LINENO"; then :
9779 am_cv_val_LC_MESSAGES=yes
9780 else
9781 am_cv_val_LC_MESSAGES=no
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785 fi
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9787 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9788 if test $am_cv_val_LC_MESSAGES = yes; then
9789
9790 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9791
9792 fi
9793
9794
9795
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9797 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9798 if test "${am_cv_langinfo_codeset+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803 #include <langinfo.h>
9804 int
9805 main ()
9806 {
9807 char* cs = nl_langinfo(CODESET);
9808 ;
9809 return 0;
9810 }
9811 _ACEOF
9812 if ac_fn_c_try_link "$LINENO"; then :
9813 am_cv_langinfo_codeset=yes
9814 else
9815 am_cv_langinfo_codeset=no
9816 fi
9817 rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9819
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9822 $as_echo "$am_cv_langinfo_codeset" >&6; }
9823 if test $am_cv_langinfo_codeset = yes; then
9824
9825 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9826
9827 fi
9828
9829
9830 # We will need to find libiberty.h and ansidecl.h
9831 saved_CFLAGS="$CFLAGS"
9832 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9833 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9834 strsignal strstr strverscmp \
9835 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9836 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9837 do
9838 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9840 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9841 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9846 #undef $ac_tr_decl
9847 #define $ac_tr_decl 1
9848
9849 #include "ansidecl.h"
9850 #include "system.h"
9851
9852 int
9853 main ()
9854 {
9855 #ifndef $ac_func
9856 char *(*pfn) = (char *(*)) $ac_func ;
9857 #endif
9858 ;
9859 return 0;
9860 }
9861 _ACEOF
9862 if ac_fn_c_try_compile "$LINENO"; then :
9863 eval "gcc_cv_have_decl_$ac_func=yes"
9864 else
9865 eval "gcc_cv_have_decl_$ac_func=no"
9866 fi
9867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9868 fi
9869
9870 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9872 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9873 #define $ac_tr_decl 1
9874 _ACEOF
9875
9876 else
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9879 #define $ac_tr_decl 0
9880 _ACEOF
9881
9882 fi
9883
9884 done
9885
9886
9887 for ac_func in getrlimit setrlimit getrusage
9888 do
9889 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9891 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9892 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9893 $as_echo_n "(cached) " >&6
9894 else
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9897 #undef $ac_tr_decl
9898 #define $ac_tr_decl 1
9899
9900 #include "ansidecl.h"
9901 #include "system.h"
9902 #ifdef HAVE_SYS_RESOURCE_H
9903 #include <sys/resource.h>
9904 #endif
9905
9906
9907 int
9908 main ()
9909 {
9910 #ifndef $ac_func
9911 char *(*pfn) = (char *(*)) $ac_func ;
9912 #endif
9913 ;
9914 return 0;
9915 }
9916 _ACEOF
9917 if ac_fn_c_try_compile "$LINENO"; then :
9918 eval "gcc_cv_have_decl_$ac_func=yes"
9919 else
9920 eval "gcc_cv_have_decl_$ac_func=no"
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 fi
9924
9925 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9927 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9928 #define $ac_tr_decl 1
9929 _ACEOF
9930
9931 else
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9934 #define $ac_tr_decl 0
9935 _ACEOF
9936
9937 fi
9938
9939 done
9940
9941
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9944
9945 #include "ansidecl.h"
9946 #include "system.h"
9947 #ifdef HAVE_SYS_RESOURCE_H
9948 #include <sys/resource.h>
9949 #endif
9950
9951 int
9952 main ()
9953 {
9954 rlim_t l = 0;
9955 ;
9956 return 0;
9957 }
9958 _ACEOF
9959 if ac_fn_c_try_compile "$LINENO"; then :
9960
9961 else
9962
9963 $as_echo "#define rlim_t long" >>confdefs.h
9964
9965 fi
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967
9968 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9969 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9970 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9971 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9972 for ac_func in ldgetname
9973 do
9974 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9976 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9977 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9978 $as_echo_n "(cached) " >&6
9979 else
9980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h. */
9982 #undef $ac_tr_decl
9983 #define $ac_tr_decl 1
9984
9985 #include "ansidecl.h"
9986 #include "system.h"
9987 #ifdef HAVE_LDFCN_H
9988 #undef FREAD
9989 #undef FWRITE
9990 #include <ldfcn.h>
9991 #endif
9992
9993
9994 int
9995 main ()
9996 {
9997 #ifndef $ac_func
9998 char *(*pfn) = (char *(*)) $ac_func ;
9999 #endif
10000 ;
10001 return 0;
10002 }
10003 _ACEOF
10004 if ac_fn_c_try_compile "$LINENO"; then :
10005 eval "gcc_cv_have_decl_$ac_func=yes"
10006 else
10007 eval "gcc_cv_have_decl_$ac_func=no"
10008 fi
10009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10010 fi
10011
10012 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10014 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10015 #define $ac_tr_decl 1
10016 _ACEOF
10017
10018 else
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10020 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10021 #define $ac_tr_decl 0
10022 _ACEOF
10023
10024 fi
10025
10026 done
10027
10028
10029 for ac_func in times
10030 do
10031 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10033 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10034 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10039 #undef $ac_tr_decl
10040 #define $ac_tr_decl 1
10041
10042 #include "ansidecl.h"
10043 #include "system.h"
10044 #ifdef HAVE_SYS_TIMES_H
10045 #include <sys/times.h>
10046 #endif
10047
10048
10049 int
10050 main ()
10051 {
10052 #ifndef $ac_func
10053 char *(*pfn) = (char *(*)) $ac_func ;
10054 #endif
10055 ;
10056 return 0;
10057 }
10058 _ACEOF
10059 if ac_fn_c_try_compile "$LINENO"; then :
10060 eval "gcc_cv_have_decl_$ac_func=yes"
10061 else
10062 eval "gcc_cv_have_decl_$ac_func=no"
10063 fi
10064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10065 fi
10066
10067 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10069 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10070 #define $ac_tr_decl 1
10071 _ACEOF
10072
10073 else
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10076 #define $ac_tr_decl 0
10077 _ACEOF
10078
10079 fi
10080
10081 done
10082
10083
10084 for ac_func in sigaltstack
10085 do
10086 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10088 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10089 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10090 $as_echo_n "(cached) " >&6
10091 else
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10094 #undef $ac_tr_decl
10095 #define $ac_tr_decl 1
10096
10097 #include "ansidecl.h"
10098 #include "system.h"
10099 #include <signal.h>
10100
10101
10102 int
10103 main ()
10104 {
10105 #ifndef $ac_func
10106 char *(*pfn) = (char *(*)) $ac_func ;
10107 #endif
10108 ;
10109 return 0;
10110 }
10111 _ACEOF
10112 if ac_fn_c_try_compile "$LINENO"; then :
10113 eval "gcc_cv_have_decl_$ac_func=yes"
10114 else
10115 eval "gcc_cv_have_decl_$ac_func=no"
10116 fi
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 fi
10119
10120 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10122 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10123 #define $ac_tr_decl 1
10124 _ACEOF
10125
10126 else
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10129 #define $ac_tr_decl 0
10130 _ACEOF
10131
10132 fi
10133
10134 done
10135
10136
10137 # More time-related stuff.
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10139 $as_echo_n "checking for struct tms... " >&6; }
10140 if test "${ac_cv_struct_tms+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10142 else
10143
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10146
10147 #include "ansidecl.h"
10148 #include "system.h"
10149 #ifdef HAVE_SYS_TIMES_H
10150 #include <sys/times.h>
10151 #endif
10152
10153 int
10154 main ()
10155 {
10156 struct tms tms;
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 if ac_fn_c_try_compile "$LINENO"; then :
10162 ac_cv_struct_tms=yes
10163 else
10164 ac_cv_struct_tms=no
10165 fi
10166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10167 fi
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10169 $as_echo "$ac_cv_struct_tms" >&6; }
10170 if test $ac_cv_struct_tms = yes; then
10171
10172 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10173
10174 fi
10175
10176 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10177 # revisit after autoconf 2.50.
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10179 $as_echo_n "checking for clock_t... " >&6; }
10180 if test "${gcc_cv_type_clock_t+set}" = set; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10186
10187 #include "ansidecl.h"
10188 #include "system.h"
10189
10190 int
10191 main ()
10192 {
10193 clock_t x;
10194 ;
10195 return 0;
10196 }
10197 _ACEOF
10198 if ac_fn_c_try_compile "$LINENO"; then :
10199 gcc_cv_type_clock_t=yes
10200 else
10201 gcc_cv_type_clock_t=no
10202 fi
10203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10204 fi
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10206 $as_echo "$gcc_cv_type_clock_t" >&6; }
10207 if test $gcc_cv_type_clock_t = yes; then
10208
10209 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10210
10211 fi
10212
10213 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10214 CFLAGS="$saved_CFLAGS"
10215
10216 # Check whether --enable-initfini-array was given.
10217 if test "${enable_initfini_array+set}" = set; then :
10218 enableval=$enable_initfini_array;
10219 else
10220
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10222 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10223 if test "${gcc_cv_initfini_array+set}" = set; then :
10224 $as_echo_n "(cached) " >&6
10225 else
10226 if test "$cross_compiling" = yes; then :
10227 gcc_cv_initfini_array=no
10228 else
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10231
10232 static int x = -1;
10233 int main (void) { return x; }
10234 int foo (void) { x = 0; }
10235 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10236 _ACEOF
10237 if ac_fn_c_try_run "$LINENO"; then :
10238 gcc_cv_initfini_array=yes
10239 else
10240 gcc_cv_initfini_array=no
10241 fi
10242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10243 conftest.$ac_objext conftest.beam conftest.$ac_ext
10244 fi
10245
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10248 $as_echo "$gcc_cv_initfini_array" >&6; }
10249 enable_initfini_array=$gcc_cv_initfini_array
10250
10251 fi
10252
10253 if test $enable_initfini_array = yes; then
10254
10255 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10256
10257 fi
10258
10259 # mkdir takes a single argument on some systems.
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10261 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10262 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10263 $as_echo_n "(cached) " >&6
10264 else
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10267
10268 #include <sys/types.h>
10269 #ifdef HAVE_SYS_STAT_H
10270 # include <sys/stat.h>
10271 #endif
10272 #ifdef HAVE_UNISTD_H
10273 # include <unistd.h>
10274 #endif
10275 #ifdef HAVE_DIRECT_H
10276 # include <direct.h>
10277 #endif
10278 int
10279 main ()
10280 {
10281 mkdir ("foo", 0);
10282 ;
10283 return 0;
10284 }
10285 _ACEOF
10286 if ac_fn_c_try_compile "$LINENO"; then :
10287 gcc_cv_mkdir_takes_one_arg=no
10288 else
10289 gcc_cv_mkdir_takes_one_arg=yes
10290 fi
10291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10292 fi
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10294 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10295 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10296
10297 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10298
10299 fi
10300
10301
10302 # File extensions
10303 manext='.1'
10304 objext='.o'
10305
10306
10307
10308 # With Setjmp/Longjmp based exception handling.
10309 # Check whether --enable-sjlj-exceptions was given.
10310 if test "${enable_sjlj_exceptions+set}" = set; then :
10311 enableval=$enable_sjlj_exceptions; case $target in
10312 *-*-hpux10*)
10313 if test $enableval != yes; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10315 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10316 enableval=yes
10317 fi
10318 ;;
10319 esac
10320 force_sjlj_exceptions=yes
10321 else
10322 case $target in
10323 *-*-hpux10*)
10324 force_sjlj_exceptions=yes
10325 enableval=yes
10326 ;;
10327 *)
10328 force_sjlj_exceptions=no
10329 ;;
10330 esac
10331 fi
10332
10333 if test $force_sjlj_exceptions = yes; then
10334 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10335
10336 cat >>confdefs.h <<_ACEOF
10337 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10338 _ACEOF
10339
10340 fi
10341
10342 # For platforms with the unwind ABI which includes an unwind library,
10343 # libunwind, we can choose to use the system libunwind.
10344 # config.gcc also contains tests of with_system_libunwind.
10345
10346
10347 # Check whether --with-system-libunwind was given.
10348 if test "${with_system_libunwind+set}" = set; then :
10349 withval=$with_system_libunwind;
10350 fi
10351
10352 # If system-libunwind was not specifically set, pick a default setting.
10353 if test x$with_system_libunwind = x; then
10354 case ${target} in
10355 ia64-*-hpux*) with_system_libunwind=yes ;;
10356 *) with_system_libunwind=no ;;
10357 esac
10358 fi
10359 # Based on system-libunwind and target, do we have ipinfo?
10360 if test x$with_system_libunwind = xyes; then
10361 case ${target} in
10362 ia64-*-*) have_unwind_getipinfo=no ;;
10363 *) have_unwind_getipinfo=yes ;;
10364 esac
10365 else
10366 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10367
10368 case ${target} in
10369 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10370 *) have_unwind_getipinfo=yes ;;
10371 esac
10372
10373 fi
10374
10375 if test x$have_unwind_getipinfo = xyes; then
10376
10377 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10378
10379 fi
10380
10381
10382 # --------------------------------------------------------
10383 # Build, host, and target specific configuration fragments
10384 # --------------------------------------------------------
10385
10386 # Collect build-machine-specific information.
10387 . ${srcdir}/config.build
10388
10389 # Collect host-machine-specific information.
10390 . ${srcdir}/config.host
10391
10392 target_gtfiles=
10393
10394 # Collect target-machine-specific information.
10395 . ${srcdir}/config.gcc
10396
10397 extra_objs="${host_extra_objs} ${extra_objs}"
10398 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10399
10400 # Default the target-machine variables that were not explicitly set.
10401 if test x"$tm_file" = x
10402 then tm_file=$cpu_type/$cpu_type.h; fi
10403
10404 if test x"$extra_headers" = x
10405 then extra_headers=; fi
10406
10407 if test x$md_file = x
10408 then md_file=$cpu_type/$cpu_type.md; fi
10409
10410 if test x$out_file = x
10411 then out_file=$cpu_type/$cpu_type.c; fi
10412
10413 if test x"$tmake_file" = x
10414 then tmake_file=$cpu_type/t-$cpu_type
10415 fi
10416
10417 if test x"$dwarf2" = xyes
10418 then tm_file="$tm_file tm-dwarf2.h"
10419 fi
10420
10421 # Say what files are being used for the output code and MD file.
10422 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10423 echo "Using \`$srcdir/config/$md_file' as machine description file."
10424
10425 # If any of the xm_file variables contain nonexistent files, warn
10426 # about them and drop them.
10427
10428 bx=
10429 for x in $build_xm_file; do
10430 if test -f $srcdir/config/$x
10431 then bx="$bx $x"
10432 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10433 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10434 fi
10435 done
10436 build_xm_file="$bx"
10437
10438 hx=
10439 for x in $host_xm_file; do
10440 if test -f $srcdir/config/$x
10441 then hx="$hx $x"
10442 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10443 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10444 fi
10445 done
10446 host_xm_file="$hx"
10447
10448 tx=
10449 for x in $xm_file; do
10450 if test -f $srcdir/config/$x
10451 then tx="$tx $x"
10452 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10453 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10454 fi
10455 done
10456 xm_file="$tx"
10457
10458 count=a
10459 for f in $tm_file; do
10460 count=${count}x
10461 done
10462 if test $count = ax; then
10463 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10464 else
10465 echo "Using the following target machine macro files:"
10466 for f in $tm_file; do
10467 echo " $srcdir/config/$f"
10468 done
10469 fi
10470
10471 if test x$need_64bit_hwint = xyes; then
10472
10473 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10474
10475 fi
10476
10477 if test x$use_long_long_for_widest_fast_int = xyes; then
10478
10479 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10480
10481 fi
10482
10483 count=a
10484 for f in $host_xm_file; do
10485 count=${count}x
10486 done
10487 if test $count = a; then
10488 :
10489 elif test $count = ax; then
10490 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10491 else
10492 echo "Using the following host machine macro files:"
10493 for f in $host_xm_file; do
10494 echo " $srcdir/config/$f"
10495 done
10496 fi
10497 echo "Using ${out_host_hook_obj} for host machine hooks."
10498
10499 if test "$host_xm_file" != "$build_xm_file"; then
10500 count=a
10501 for f in $build_xm_file; do
10502 count=${count}x
10503 done
10504 if test $count = a; then
10505 :
10506 elif test $count = ax; then
10507 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10508 else
10509 echo "Using the following build machine macro files:"
10510 for f in $build_xm_file; do
10511 echo " $srcdir/config/$f"
10512 done
10513 fi
10514 fi
10515
10516 case ${host} in
10517 powerpc*-*-darwin*)
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10519 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10520 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525
10526 #include <sys/cdefs.h>
10527 #include <sys/signal.h>
10528 #include <ucontext.h>
10529 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10530
10531 _ACEOF
10532 if ac_fn_c_try_compile "$LINENO"; then :
10533 gcc_cv_mcontext_underscores=no
10534 else
10535 gcc_cv_mcontext_underscores=yes
10536 fi
10537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10538 fi
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10540 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10541 if test $gcc_cv_mcontext_underscores = yes; then
10542
10543 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10544
10545 fi
10546 ;;
10547 esac
10548
10549 # ---------
10550 # Threading
10551 # ---------
10552
10553 # Check if a valid thread package
10554 case ${enable_threads} in
10555 "" | no)
10556 # No threads
10557 target_thread_file='single'
10558 ;;
10559 yes)
10560 # default
10561 target_thread_file='single'
10562 ;;
10563 aix | dce | gnat | irix | posix | posix95 | rtems | \
10564 single | solaris | vxworks | win32 | mipssde)
10565 target_thread_file=${enable_threads}
10566 ;;
10567 *)
10568 echo "${enable_threads} is an unknown thread package" 1>&2
10569 exit 1
10570 ;;
10571 esac
10572
10573 if test x${thread_file} = x; then
10574 # No thread file set by target-specific clauses in config.gcc,
10575 # so use file chosen by default logic above
10576 thread_file=${target_thread_file}
10577 fi
10578
10579 # Make gthr-default.h if we have a thread file.
10580 gthread_flags=
10581 if test $thread_file != single; then
10582 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10583 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10584 rm -f gthr-default.h-t
10585 else
10586 mv -f gthr-default.h-t gthr-default.h
10587 fi
10588 gthread_flags=-DHAVE_GTHR_DEFAULT
10589 fi
10590
10591
10592 # --------
10593 # UNSORTED
10594 # --------
10595
10596 use_cxa_atexit=no
10597 if test x$enable___cxa_atexit = xyes || \
10598 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10599 if test x$host = x$target; then
10600 case $host in
10601 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10602 # keyed to flag_use_cxa_atexit
10603 *-*-mingw32*)
10604 use_cxa_atexit=yes
10605 ;;
10606 *)
10607 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10608 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10609 use_cxa_atexit=yes
10610 else
10611 echo "__cxa_atexit can't be enabled on this target"
10612 fi
10613
10614 ;;
10615 esac
10616 else
10617 # We can't check for __cxa_atexit when building a cross, so assume
10618 # it is available
10619 use_cxa_atexit=yes
10620 fi
10621 if test x$use_cxa_atexit = xyes; then
10622
10623 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10624
10625 fi
10626 fi
10627
10628 # Look for a file containing extra machine modes.
10629 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10630 extra_modes_file='$(srcdir)'/config/${extra_modes}
10631
10632
10633 cat >>confdefs.h <<_ACEOF
10634 #define EXTRA_MODES_FILE "config/$extra_modes"
10635 _ACEOF
10636
10637 fi
10638
10639 # Convert extra_options into a form suitable for Makefile use.
10640 extra_opt_files=
10641 for f in $extra_options; do
10642 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10643 done
10644
10645
10646 # auto-host.h is the file containing items generated by autoconf and is
10647 # the first file included by config.h.
10648 # If host=build, it is correct to have bconfig include auto-host.h
10649 # as well. If host!=build, we are in error and need to do more
10650 # work to find out the build config parameters.
10651 if test x$host = x$build
10652 then
10653 build_auto=auto-host.h
10654 else
10655 # We create a subdir, then run autoconf in the subdir.
10656 # To prevent recursion we set host and build for the new
10657 # invocation of configure to the build for this invocation
10658 # of configure.
10659 tempdir=build.$$
10660 rm -rf $tempdir
10661 mkdir $tempdir
10662 cd $tempdir
10663 case ${srcdir} in
10664 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10665 *) realsrcdir=../${srcdir};;
10666 esac
10667 saved_CFLAGS="${CFLAGS}"
10668 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10669 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10670 ${realsrcdir}/configure \
10671 --enable-languages=${enable_languages-all} \
10672 --target=$target_alias --host=$build_alias --build=$build_alias
10673 CFLAGS="${saved_CFLAGS}"
10674
10675 # We just finished tests for the build machine, so rename
10676 # the file auto-build.h in the gcc directory.
10677 mv auto-host.h ../auto-build.h
10678 cd ..
10679 rm -rf $tempdir
10680 build_auto=auto-build.h
10681 fi
10682
10683
10684 tm_file="${tm_file} defaults.h"
10685 tm_p_file="${tm_p_file} tm-preds.h"
10686 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10687 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10688 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10689 # put this back in temporarily.
10690 xm_file="auto-host.h ansidecl.h ${xm_file}"
10691
10692 # --------
10693 # UNSORTED
10694 # --------
10695
10696 # Compile in configure arguments.
10697 if test -f configargs.h ; then
10698 # Being re-configured.
10699 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10700 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10701 else
10702 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10703 fi
10704
10705 # Double all backslashes and backslash all quotes to turn
10706 # gcc_config_arguments into a C string.
10707 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10708 $gcc_config_arguments
10709 EOF
10710 gcc_config_arguments_str=`cat conftest.out`
10711 rm -f conftest.out
10712
10713 cat > configargs.h <<EOF
10714 /* Generated automatically. */
10715 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10716 static const char thread_model[] = "$thread_file";
10717
10718 static const struct {
10719 const char *name, *value;
10720 } configure_default_options[] = $configure_default_options;
10721 EOF
10722
10723 gcc_BASEVER=`cat $srcdir/BASE-VER`
10724 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10725 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10726 if test -f $srcdir/REVISION ; then
10727 gcc_REVISION=`cat $srcdir/REVISION`
10728 else
10729 gcc_REVISION=""
10730 fi
10731 cat > plugin-version.h <<EOF
10732 #include "configargs.h"
10733
10734 static char basever[] = "$gcc_BASEVER";
10735 static char datestamp[] = "$gcc_DATESTAMP";
10736 static char devphase[] = "$gcc_DEVPHASE";
10737 static char revision[] = "$gcc_REVISION";
10738
10739 /* FIXME plugins: We should make the version information more precise.
10740 One way to do is to add a checksum. */
10741
10742 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10743 devphase, revision,
10744 configuration_arguments};
10745 EOF
10746
10747 # Internationalization
10748 # If we haven't got the data from the intl directory,
10749 # assume NLS is disabled.
10750 USE_NLS=no
10751 LIBINTL=
10752 LIBINTL_DEP=
10753 INCINTL=
10754 XGETTEXT=
10755 GMSGFMT=
10756 POSUB=
10757
10758 if test -f ../intl/config.intl; then
10759 . ../intl/config.intl
10760 fi
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10762 $as_echo_n "checking whether NLS is requested... " >&6; }
10763 if test x"$USE_NLS" != xyes; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; }
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10768 $as_echo "yes" >&6; }
10769
10770 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10771
10772
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10774 $as_echo_n "checking for catalogs to be installed... " >&6; }
10775 # Look for .po and .gmo files in the source directory.
10776 CATALOGS=
10777 XLINGUAS=
10778 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10779 # If there aren't any .gmo files the shell will give us the
10780 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10781 # weeded out.
10782 case "$cat" in *\**)
10783 continue;;
10784 esac
10785 # The quadruple backslash is collapsed to a double backslash
10786 # by the backticks, then collapsed again by the double quotes,
10787 # leaving us with one backslash in the sed expression (right
10788 # before the dot that mustn't act as a wildcard).
10789 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10790 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10791 # The user is allowed to set LINGUAS to a list of languages to
10792 # install catalogs for. If it's empty that means "all of them."
10793 if test "x$LINGUAS" = x; then
10794 CATALOGS="$CATALOGS $cat"
10795 XLINGUAS="$XLINGUAS $lang"
10796 else
10797 case "$LINGUAS" in *$lang*)
10798 CATALOGS="$CATALOGS $cat"
10799 XLINGUAS="$XLINGUAS $lang"
10800 ;;
10801 esac
10802 fi
10803 done
10804 LINGUAS="$XLINGUAS"
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10806 $as_echo "$LINGUAS" >&6; }
10807
10808
10809 DATADIRNAME=share
10810
10811 INSTOBJEXT=.mo
10812
10813 GENCAT=gencat
10814
10815 CATOBJEXT=.gmo
10816
10817 fi
10818
10819 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10820 # -liconv on the link line twice.
10821 case "$LIBINTL" in *$LIBICONV*)
10822 LIBICONV= ;;
10823 esac
10824
10825 # Check whether --enable-secureplt was given.
10826 if test "${enable_secureplt+set}" = set; then :
10827 enableval=$enable_secureplt;
10828 fi
10829
10830
10831 # Check whether --enable-leading-mingw64-underscores was given.
10832 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10833 enableval=$enable_leading_mingw64_underscores;
10834 fi
10835
10836 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
10837
10838 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10839
10840 fi
10841
10842 # Check whether --enable-cld was given.
10843 if test "${enable_cld+set}" = set; then :
10844 enableval=$enable_cld;
10845 else
10846 enable_cld=no
10847 fi
10848
10849
10850 # Check whether --enable-frame-pointer was given.
10851 if test "${enable_frame_pointer+set}" = set; then :
10852 enableval=$enable_frame_pointer;
10853 else
10854
10855 case $target_os in
10856 linux* | darwin[8912]*)
10857 # Enable -fomit-frame-pointer by default for Linux and Darwin with
10858 # DWARF2.
10859 enable_frame_pointer=no
10860 ;;
10861 *)
10862 enable_frame_pointer=yes
10863 ;;
10864 esac
10865
10866 fi
10867
10868
10869 # Windows32 Registry support for specifying GCC installation paths.
10870 # Check whether --enable-win32-registry was given.
10871 if test "${enable_win32_registry+set}" = set; then :
10872 enableval=$enable_win32_registry;
10873 fi
10874
10875
10876 case $host_os in
10877 win32 | pe | cygwin* | mingw32* | uwin*)
10878 if test "x$enable_win32_registry" != xno; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10880 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10881 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 ac_func_search_save_LIBS=$LIBS
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 char RegOpenKeyExA ();
10895 int
10896 main ()
10897 {
10898 return RegOpenKeyExA ();
10899 ;
10900 return 0;
10901 }
10902 _ACEOF
10903 for ac_lib in '' advapi32; do
10904 if test -z "$ac_lib"; then
10905 ac_res="none required"
10906 else
10907 ac_res=-l$ac_lib
10908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10909 fi
10910 if ac_fn_c_try_link "$LINENO"; then :
10911 ac_cv_search_RegOpenKeyExA=$ac_res
10912 fi
10913 rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext
10915 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10916 break
10917 fi
10918 done
10919 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10920
10921 else
10922 ac_cv_search_RegOpenKeyExA=no
10923 fi
10924 rm conftest.$ac_ext
10925 LIBS=$ac_func_search_save_LIBS
10926 fi
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10928 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10929 ac_res=$ac_cv_search_RegOpenKeyExA
10930 if test "$ac_res" != no; then :
10931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10932
10933 else
10934 enable_win32_registry=no
10935 fi
10936
10937 fi
10938
10939 if test "x$enable_win32_registry" != xno; then
10940
10941 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10942
10943
10944 if test "x$enable_win32_registry" != xyes \
10945 && test "x$enable_win32_registry" != x; then
10946
10947 cat >>confdefs.h <<_ACEOF
10948 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10949 _ACEOF
10950
10951 fi
10952 fi
10953 ;;
10954 esac
10955
10956 # Get an absolute path to the GCC top-level source directory
10957 holddir=`${PWDCMD-pwd}`
10958 cd $srcdir
10959 topdir=`${PWDCMD-pwd}`
10960 cd $holddir
10961
10962 # Conditionalize the makefile for this host machine.
10963 xmake_file=
10964 for f in ${host_xmake_file}
10965 do
10966 if test -f ${srcdir}/config/$f
10967 then
10968 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10969 fi
10970 done
10971
10972 # Conditionalize the makefile for this target machine.
10973 tmake_file_=
10974 for f in ${tmake_file}
10975 do
10976 if test -f ${srcdir}/config/$f
10977 then
10978 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10979 fi
10980 done
10981 tmake_file="${tmake_file_}"
10982
10983 out_object_file=`basename $out_file .c`.o
10984
10985 tm_file_list="options.h"
10986 tm_include_list="options.h insn-constants.h"
10987 for f in $tm_file; do
10988 case $f in
10989 ./* )
10990 f=`echo $f | sed 's/^..//'`
10991 tm_file_list="${tm_file_list} $f"
10992 tm_include_list="${tm_include_list} $f"
10993 ;;
10994 defaults.h )
10995 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10996 tm_include_list="${tm_include_list} $f"
10997 ;;
10998 * )
10999 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11000 tm_include_list="${tm_include_list} config/$f"
11001 ;;
11002 esac
11003 done
11004
11005 tm_p_file_list=
11006 tm_p_include_list=
11007 for f in $tm_p_file; do
11008 case $f in
11009 tm-preds.h )
11010 tm_p_file_list="${tm_p_file_list} $f"
11011 tm_p_include_list="${tm_p_include_list} $f"
11012 ;;
11013 * )
11014 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11015 tm_p_include_list="${tm_p_include_list} config/$f"
11016 esac
11017 done
11018
11019 xm_file_list=
11020 xm_include_list=
11021 for f in $xm_file; do
11022 case $f in
11023 ansidecl.h )
11024 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11025 xm_include_list="${xm_include_list} $f"
11026 ;;
11027 auto-host.h )
11028 xm_file_list="${xm_file_list} $f"
11029 xm_include_list="${xm_include_list} $f"
11030 ;;
11031 * )
11032 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11033 xm_include_list="${xm_include_list} config/$f"
11034 ;;
11035 esac
11036 done
11037
11038 host_xm_file_list=
11039 host_xm_include_list=
11040 for f in $host_xm_file; do
11041 case $f in
11042 ansidecl.h )
11043 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11044 host_xm_include_list="${host_xm_include_list} $f"
11045 ;;
11046 auto-host.h )
11047 host_xm_file_list="${host_xm_file_list} $f"
11048 host_xm_include_list="${host_xm_include_list} $f"
11049 ;;
11050 * )
11051 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11052 host_xm_include_list="${host_xm_include_list} config/$f"
11053 ;;
11054 esac
11055 done
11056
11057 build_xm_file_list=
11058 for f in $build_xm_file; do
11059 case $f in
11060 ansidecl.h )
11061 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11062 build_xm_include_list="${build_xm_include_list} $f"
11063 ;;
11064 auto-build.h | auto-host.h )
11065 build_xm_file_list="${build_xm_file_list} $f"
11066 build_xm_include_list="${build_xm_include_list} $f"
11067 ;;
11068 * )
11069 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11070 build_xm_include_list="${build_xm_include_list} config/$f"
11071 ;;
11072 esac
11073 done
11074
11075 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11076 # cross-compiler which does not use the native headers and libraries.
11077 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11078 CROSS=
11079 ALL=all.internal
11080 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11081
11082 if test "x$with_build_sysroot" != x; then
11083 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11084 else
11085 # This value is used, even on a native system, because
11086 # CROSS_SYSTEM_HEADER_DIR is just
11087 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11088 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11089 fi
11090
11091 if test x$host != x$target
11092 then
11093 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11094 ALL=all.cross
11095 SYSTEM_HEADER_DIR=$build_system_header_dir
11096 case "$host","$target" in
11097 # Darwin crosses can use the host system's libraries and headers,
11098 # because of the fat library support. Of course, it must be the
11099 # same version of Darwin on both sides. Allow the user to
11100 # just say --target=foo-darwin without a version number to mean
11101 # "the version on this system".
11102 *-*-darwin*,*-*-darwin*)
11103 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11104 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11105 if test $hostos = $targetos -o $targetos = darwin ; then
11106 CROSS=
11107 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11108 with_headers=yes
11109 fi
11110 ;;
11111
11112 i?86-*-*,x86_64-*-* \
11113 | powerpc*-*-*,powerpc64*-*-*)
11114 CROSS="$CROSS -DNATIVE_CROSS" ;;
11115 esac
11116
11117 case $target in
11118 *-*-mingw*)
11119 if test "x$with_headers" = x; then
11120 with_headers=yes
11121 fi
11122 ;;
11123 *)
11124 ;;
11125 esac
11126 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11127 SYSTEM_HEADER_DIR=$build_system_header_dir
11128 fi
11129
11130 # If this is a cross-compiler that does not
11131 # have its own set of headers then define
11132 # inhibit_libc
11133
11134 # If this is using newlib, without having the headers available now,
11135 # then define inhibit_libc in LIBGCC2_CFLAGS.
11136 # This prevents libgcc2 from containing any code which requires libc
11137 # support.
11138 : ${inhibit_libc=false}
11139 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11140 test x$with_newlib = xyes ; } &&
11141 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11142 inhibit_libc=true
11143 fi
11144
11145
11146 # When building gcc with a cross-compiler, we need to adjust things so
11147 # that the generator programs are still built with the native compiler.
11148 # Also, we cannot run fixincludes.
11149
11150 # These are the normal (build=host) settings:
11151 CC_FOR_BUILD='$(CC)'
11152 BUILD_CFLAGS='$(ALL_CFLAGS)'
11153 BUILD_LDFLAGS='$(LDFLAGS)'
11154 STMP_FIXINC=stmp-fixinc
11155
11156 # And these apply if build != host, or we are generating coverage data
11157 if test x$build != x$host || test "x$coverage_flags" != x
11158 then
11159 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11160 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11161 fi
11162
11163 # Expand extra_headers to include complete path.
11164 # This substitutes for lots of t-* files.
11165 extra_headers_list=
11166 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11167 for file in ${extra_headers} ; do
11168 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11169 done
11170
11171 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11172 if test x"$use_gcc_tgmath" = xyes
11173 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11174 fi
11175
11176 # Define collect2 in Makefile.
11177 case $host_can_use_collect2 in
11178 no) collect2= ;;
11179 *) collect2='collect2$(exeext)' ;;
11180 esac
11181
11182
11183 # Add a definition of USE_COLLECT2 if system wants one.
11184 case $use_collect2 in
11185 no) use_collect2= ;;
11186 "") ;;
11187 *)
11188 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11189 xm_defines="${xm_defines} USE_COLLECT2"
11190 case $host_can_use_collect2 in
11191 no)
11192 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11193 ;;
11194 esac
11195 ;;
11196 esac
11197
11198
11199 cat >>confdefs.h <<_ACEOF
11200 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11201 _ACEOF
11202
11203
11204 # ---------------------------
11205 # Assembler & linker features
11206 # ---------------------------
11207
11208 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11209 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11210 # However when ld-new is first executed from the build tree, libtool will
11211 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11212 # to the build tree. While doing this we need to use the previous-stage
11213 # linker, or we have an infinite loop. The presence of a shell script as
11214 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11215 # the gcc/collect-ld script. So we need to know how libtool works, or
11216 # exec-tool will fail.
11217
11218
11219 case `pwd` in
11220 *\ * | *\ *)
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11222 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11223 esac
11224
11225
11226
11227 macro_version='2.2.7a'
11228 macro_revision='1.3134'
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242 ltmain="$ac_aux_dir/ltmain.sh"
11243
11244 # Backslashify metacharacters that are still active within
11245 # double-quoted strings.
11246 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11247
11248 # Same as above, but do not quote variable references.
11249 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11250
11251 # Sed substitution to delay expansion of an escaped shell variable in a
11252 # double_quote_subst'ed string.
11253 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11254
11255 # Sed substitution to delay expansion of an escaped single quote.
11256 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11257
11258 # Sed substitution to avoid accidental globbing in evaled expressions
11259 no_glob_subst='s/\*/\\\*/g'
11260
11261 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11262 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11263 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11264
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11266 $as_echo_n "checking how to print strings... " >&6; }
11267 # Test print first, because it will be a builtin if present.
11268 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11269 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11270 ECHO='print -r --'
11271 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11272 ECHO='printf %s\n'
11273 else
11274 # Use this function as a fallback that always works.
11275 func_fallback_echo ()
11276 {
11277 eval 'cat <<_LTECHO_EOF
11278 $1
11279 _LTECHO_EOF'
11280 }
11281 ECHO='func_fallback_echo'
11282 fi
11283
11284 # func_echo_all arg...
11285 # Invoke $ECHO with all args, space-separated.
11286 func_echo_all ()
11287 {
11288 $ECHO ""
11289 }
11290
11291 case "$ECHO" in
11292 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11293 $as_echo "printf" >&6; } ;;
11294 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11295 $as_echo "print -r" >&6; } ;;
11296 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11297 $as_echo "cat" >&6; } ;;
11298 esac
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11314 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11315 if test "${ac_cv_path_SED+set}" = set; then :
11316 $as_echo_n "(cached) " >&6
11317 else
11318 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11319 for ac_i in 1 2 3 4 5 6 7; do
11320 ac_script="$ac_script$as_nl$ac_script"
11321 done
11322 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11323 { ac_script=; unset ac_script;}
11324 if test -z "$SED"; then
11325 ac_path_SED_found=false
11326 # Loop through the user's path and test for each of PROGNAME-LIST
11327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in $PATH
11329 do
11330 IFS=$as_save_IFS
11331 test -z "$as_dir" && as_dir=.
11332 for ac_prog in sed gsed; do
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11335 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11336 # Check for GNU ac_path_SED and select it if it is found.
11337 # Check for GNU $ac_path_SED
11338 case `"$ac_path_SED" --version 2>&1` in
11339 *GNU*)
11340 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11341 *)
11342 ac_count=0
11343 $as_echo_n 0123456789 >"conftest.in"
11344 while :
11345 do
11346 cat "conftest.in" "conftest.in" >"conftest.tmp"
11347 mv "conftest.tmp" "conftest.in"
11348 cp "conftest.in" "conftest.nl"
11349 $as_echo '' >> "conftest.nl"
11350 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11352 as_fn_arith $ac_count + 1 && ac_count=$as_val
11353 if test $ac_count -gt ${ac_path_SED_max-0}; then
11354 # Best one so far, save it but keep looking for a better one
11355 ac_cv_path_SED="$ac_path_SED"
11356 ac_path_SED_max=$ac_count
11357 fi
11358 # 10*(2^10) chars as input seems more than enough
11359 test $ac_count -gt 10 && break
11360 done
11361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11362 esac
11363
11364 $ac_path_SED_found && break 3
11365 done
11366 done
11367 done
11368 IFS=$as_save_IFS
11369 if test -z "$ac_cv_path_SED"; then
11370 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11371 fi
11372 else
11373 ac_cv_path_SED=$SED
11374 fi
11375
11376 fi
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11378 $as_echo "$ac_cv_path_SED" >&6; }
11379 SED="$ac_cv_path_SED"
11380 rm -f conftest.sed
11381
11382 test -z "$SED" && SED=sed
11383 Xsed="$SED -e 1s/^X//"
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11396 $as_echo_n "checking for fgrep... " >&6; }
11397 if test "${ac_cv_path_FGREP+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11401 then ac_cv_path_FGREP="$GREP -F"
11402 else
11403 if test -z "$FGREP"; then
11404 ac_path_FGREP_found=false
11405 # Loop through the user's path and test for each of PROGNAME-LIST
11406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11407 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11408 do
11409 IFS=$as_save_IFS
11410 test -z "$as_dir" && as_dir=.
11411 for ac_prog in fgrep; do
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11414 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11415 # Check for GNU ac_path_FGREP and select it if it is found.
11416 # Check for GNU $ac_path_FGREP
11417 case `"$ac_path_FGREP" --version 2>&1` in
11418 *GNU*)
11419 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11420 *)
11421 ac_count=0
11422 $as_echo_n 0123456789 >"conftest.in"
11423 while :
11424 do
11425 cat "conftest.in" "conftest.in" >"conftest.tmp"
11426 mv "conftest.tmp" "conftest.in"
11427 cp "conftest.in" "conftest.nl"
11428 $as_echo 'FGREP' >> "conftest.nl"
11429 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11431 as_fn_arith $ac_count + 1 && ac_count=$as_val
11432 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11433 # Best one so far, save it but keep looking for a better one
11434 ac_cv_path_FGREP="$ac_path_FGREP"
11435 ac_path_FGREP_max=$ac_count
11436 fi
11437 # 10*(2^10) chars as input seems more than enough
11438 test $ac_count -gt 10 && break
11439 done
11440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11441 esac
11442
11443 $ac_path_FGREP_found && break 3
11444 done
11445 done
11446 done
11447 IFS=$as_save_IFS
11448 if test -z "$ac_cv_path_FGREP"; then
11449 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11450 fi
11451 else
11452 ac_cv_path_FGREP=$FGREP
11453 fi
11454
11455 fi
11456 fi
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11458 $as_echo "$ac_cv_path_FGREP" >&6; }
11459 FGREP="$ac_cv_path_FGREP"
11460
11461
11462 test -z "$GREP" && GREP=grep
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482 # Check whether --with-gnu-ld was given.
11483 if test "${with_gnu_ld+set}" = set; then :
11484 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11485 else
11486 with_gnu_ld=no
11487 fi
11488
11489 ac_prog=ld
11490 if test "$GCC" = yes; then
11491 # Check if gcc -print-prog-name=ld gives a path.
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11493 $as_echo_n "checking for ld used by $CC... " >&6; }
11494 case $host in
11495 *-*-mingw*)
11496 # gcc leaves a trailing carriage return which upsets mingw
11497 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11498 *)
11499 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11500 esac
11501 case $ac_prog in
11502 # Accept absolute paths.
11503 [\\/]* | ?:[\\/]*)
11504 re_direlt='/[^/][^/]*/\.\./'
11505 # Canonicalize the pathname of ld
11506 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11507 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11508 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11509 done
11510 test -z "$LD" && LD="$ac_prog"
11511 ;;
11512 "")
11513 # If it fails, then pretend we aren't using GCC.
11514 ac_prog=ld
11515 ;;
11516 *)
11517 # If it is relative, then search for the first ld in PATH.
11518 with_gnu_ld=unknown
11519 ;;
11520 esac
11521 elif test "$with_gnu_ld" = yes; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11523 $as_echo_n "checking for GNU ld... " >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11526 $as_echo_n "checking for non-GNU ld... " >&6; }
11527 fi
11528 if test "${lt_cv_path_LD+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 if test -z "$LD"; then
11532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11533 for ac_dir in $PATH; do
11534 IFS="$lt_save_ifs"
11535 test -z "$ac_dir" && ac_dir=.
11536 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11537 lt_cv_path_LD="$ac_dir/$ac_prog"
11538 # Check to see if the program is GNU ld. I'd rather use --version,
11539 # but apparently some variants of GNU ld only accept -v.
11540 # Break only if it was the GNU/non-GNU ld that we prefer.
11541 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11542 *GNU* | *'with BFD'*)
11543 test "$with_gnu_ld" != no && break
11544 ;;
11545 *)
11546 test "$with_gnu_ld" != yes && break
11547 ;;
11548 esac
11549 fi
11550 done
11551 IFS="$lt_save_ifs"
11552 else
11553 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11554 fi
11555 fi
11556
11557 LD="$lt_cv_path_LD"
11558 if test -n "$LD"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11560 $as_echo "$LD" >&6; }
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11564 fi
11565 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11567 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11568 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11572 case `$LD -v 2>&1 </dev/null` in
11573 *GNU* | *'with BFD'*)
11574 lt_cv_prog_gnu_ld=yes
11575 ;;
11576 *)
11577 lt_cv_prog_gnu_ld=no
11578 ;;
11579 esac
11580 fi
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11582 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11583 with_gnu_ld=$lt_cv_prog_gnu_ld
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11594 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11595 if test "${lt_cv_path_NM+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 if test -n "$NM"; then
11599 # Let the user override the test.
11600 lt_cv_path_NM="$NM"
11601 else
11602 lt_nm_to_check="${ac_tool_prefix}nm"
11603 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11604 lt_nm_to_check="$lt_nm_to_check nm"
11605 fi
11606 for lt_tmp_nm in $lt_nm_to_check; do
11607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11608 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11609 IFS="$lt_save_ifs"
11610 test -z "$ac_dir" && ac_dir=.
11611 tmp_nm="$ac_dir/$lt_tmp_nm"
11612 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11613 # Check to see if the nm accepts a BSD-compat flag.
11614 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11615 # nm: unknown option "B" ignored
11616 # Tru64's nm complains that /dev/null is an invalid object file
11617 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11618 */dev/null* | *'Invalid file or object type'*)
11619 lt_cv_path_NM="$tmp_nm -B"
11620 break
11621 ;;
11622 *)
11623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11624 */dev/null*)
11625 lt_cv_path_NM="$tmp_nm -p"
11626 break
11627 ;;
11628 *)
11629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11630 continue # so that we can try to find one that supports BSD flags
11631 ;;
11632 esac
11633 ;;
11634 esac
11635 fi
11636 done
11637 IFS="$lt_save_ifs"
11638 done
11639 : ${lt_cv_path_NM=no}
11640 fi
11641 fi
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11643 $as_echo "$lt_cv_path_NM" >&6; }
11644 if test "$lt_cv_path_NM" != "no"; then
11645 NM="$lt_cv_path_NM"
11646 else
11647 # Didn't find any BSD compatible name lister, look for dumpbin.
11648 if test -n "$DUMPBIN"; then :
11649 # Let the user override the test.
11650 else
11651 if test -n "$ac_tool_prefix"; then
11652 for ac_prog in dumpbin "link -dump"
11653 do
11654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 if test -n "$DUMPBIN"; then
11662 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11663 else
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11666 do
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11671 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11674 fi
11675 done
11676 done
11677 IFS=$as_save_IFS
11678
11679 fi
11680 fi
11681 DUMPBIN=$ac_cv_prog_DUMPBIN
11682 if test -n "$DUMPBIN"; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11684 $as_echo "$DUMPBIN" >&6; }
11685 else
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11688 fi
11689
11690
11691 test -n "$DUMPBIN" && break
11692 done
11693 fi
11694 if test -z "$DUMPBIN"; then
11695 ac_ct_DUMPBIN=$DUMPBIN
11696 for ac_prog in dumpbin "link -dump"
11697 do
11698 # Extract the first word of "$ac_prog", so it can be a program name with args.
11699 set dummy $ac_prog; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 if test -n "$ac_ct_DUMPBIN"; then
11706 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11707 else
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11710 do
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 break 2
11718 fi
11719 done
11720 done
11721 IFS=$as_save_IFS
11722
11723 fi
11724 fi
11725 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11726 if test -n "$ac_ct_DUMPBIN"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11728 $as_echo "$ac_ct_DUMPBIN" >&6; }
11729 else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11732 fi
11733
11734
11735 test -n "$ac_ct_DUMPBIN" && break
11736 done
11737
11738 if test "x$ac_ct_DUMPBIN" = x; then
11739 DUMPBIN=":"
11740 else
11741 case $cross_compiling:$ac_tool_warned in
11742 yes:)
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11745 ac_tool_warned=yes ;;
11746 esac
11747 DUMPBIN=$ac_ct_DUMPBIN
11748 fi
11749 fi
11750
11751 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11752 *COFF*)
11753 DUMPBIN="$DUMPBIN -symbols"
11754 ;;
11755 *)
11756 DUMPBIN=:
11757 ;;
11758 esac
11759 fi
11760
11761 if test "$DUMPBIN" != ":"; then
11762 NM="$DUMPBIN"
11763 fi
11764 fi
11765 test -z "$NM" && NM=nm
11766
11767
11768
11769
11770
11771
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11773 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11774 if test "${lt_cv_nm_interface+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 lt_cv_nm_interface="BSD nm"
11778 echo "int some_variable = 0;" > conftest.$ac_ext
11779 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11780 (eval "$ac_compile" 2>conftest.err)
11781 cat conftest.err >&5
11782 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11783 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11784 cat conftest.err >&5
11785 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11786 cat conftest.out >&5
11787 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11788 lt_cv_nm_interface="MS dumpbin"
11789 fi
11790 rm -f conftest*
11791 fi
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11793 $as_echo "$lt_cv_nm_interface" >&6; }
11794
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11796 $as_echo_n "checking whether ln -s works... " >&6; }
11797 LN_S=$as_ln_s
11798 if test "$LN_S" = "ln -s"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11800 $as_echo "yes" >&6; }
11801 else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11803 $as_echo "no, using $LN_S" >&6; }
11804 fi
11805
11806 # find the maximum length of command line arguments
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11808 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11809 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11810 $as_echo_n "(cached) " >&6
11811 else
11812 i=0
11813 teststring="ABCD"
11814
11815 case $build_os in
11816 msdosdjgpp*)
11817 # On DJGPP, this test can blow up pretty badly due to problems in libc
11818 # (any single argument exceeding 2000 bytes causes a buffer overrun
11819 # during glob expansion). Even if it were fixed, the result of this
11820 # check would be larger than it should be.
11821 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11822 ;;
11823
11824 gnu*)
11825 # Under GNU Hurd, this test is not required because there is
11826 # no limit to the length of command line arguments.
11827 # Libtool will interpret -1 as no limit whatsoever
11828 lt_cv_sys_max_cmd_len=-1;
11829 ;;
11830
11831 cygwin* | mingw* | cegcc*)
11832 # On Win9x/ME, this test blows up -- it succeeds, but takes
11833 # about 5 minutes as the teststring grows exponentially.
11834 # Worse, since 9x/ME are not pre-emptively multitasking,
11835 # you end up with a "frozen" computer, even though with patience
11836 # the test eventually succeeds (with a max line length of 256k).
11837 # Instead, let's just punt: use the minimum linelength reported by
11838 # all of the supported platforms: 8192 (on NT/2K/XP).
11839 lt_cv_sys_max_cmd_len=8192;
11840 ;;
11841
11842 mint*)
11843 # On MiNT this can take a long time and run out of memory.
11844 lt_cv_sys_max_cmd_len=8192;
11845 ;;
11846
11847 amigaos*)
11848 # On AmigaOS with pdksh, this test takes hours, literally.
11849 # So we just punt and use a minimum line length of 8192.
11850 lt_cv_sys_max_cmd_len=8192;
11851 ;;
11852
11853 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11854 # This has been around since 386BSD, at least. Likely further.
11855 if test -x /sbin/sysctl; then
11856 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11857 elif test -x /usr/sbin/sysctl; then
11858 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11859 else
11860 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11861 fi
11862 # And add a safety zone
11863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11865 ;;
11866
11867 interix*)
11868 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11869 lt_cv_sys_max_cmd_len=196608
11870 ;;
11871
11872 osf*)
11873 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11874 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11875 # nice to cause kernel panics so lets avoid the loop below.
11876 # First set a reasonable default.
11877 lt_cv_sys_max_cmd_len=16384
11878 #
11879 if test -x /sbin/sysconfig; then
11880 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11881 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11882 esac
11883 fi
11884 ;;
11885 sco3.2v5*)
11886 lt_cv_sys_max_cmd_len=102400
11887 ;;
11888 sysv5* | sco5v6* | sysv4.2uw2*)
11889 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11890 if test -n "$kargmax"; then
11891 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11892 else
11893 lt_cv_sys_max_cmd_len=32768
11894 fi
11895 ;;
11896 *)
11897 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11898 if test -n "$lt_cv_sys_max_cmd_len"; then
11899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11901 else
11902 # Make teststring a little bigger before we do anything with it.
11903 # a 1K string should be a reasonable start.
11904 for i in 1 2 3 4 5 6 7 8 ; do
11905 teststring=$teststring$teststring
11906 done
11907 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11908 # If test is not a shell built-in, we'll probably end up computing a
11909 # maximum length that is only half of the actual maximum length, but
11910 # we can't tell.
11911 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11912 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11913 test $i != 17 # 1/2 MB should be enough
11914 do
11915 i=`expr $i + 1`
11916 teststring=$teststring$teststring
11917 done
11918 # Only check the string length outside the loop.
11919 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11920 teststring=
11921 # Add a significant safety factor because C++ compilers can tack on
11922 # massive amounts of additional arguments before passing them to the
11923 # linker. It appears as though 1/2 is a usable value.
11924 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11925 fi
11926 ;;
11927 esac
11928
11929 fi
11930
11931 if test -n $lt_cv_sys_max_cmd_len ; then
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11933 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11934 else
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11936 $as_echo "none" >&6; }
11937 fi
11938 max_cmd_len=$lt_cv_sys_max_cmd_len
11939
11940
11941
11942
11943
11944
11945 : ${CP="cp -f"}
11946 : ${MV="mv -f"}
11947 : ${RM="rm -f"}
11948
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11950 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11951 # Try some XSI features
11952 xsi_shell=no
11953 ( _lt_dummy="a/b/c"
11954 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11955 = c,a/b,, \
11956 && eval 'test $(( 1 + 1 )) -eq 2 \
11957 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11958 && xsi_shell=yes
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11960 $as_echo "$xsi_shell" >&6; }
11961
11962
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11964 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11965 lt_shell_append=no
11966 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11967 >/dev/null 2>&1 \
11968 && lt_shell_append=yes
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11970 $as_echo "$lt_shell_append" >&6; }
11971
11972
11973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11974 lt_unset=unset
11975 else
11976 lt_unset=false
11977 fi
11978
11979
11980
11981
11982
11983 # test EBCDIC or ASCII
11984 case `echo X|tr X '\101'` in
11985 A) # ASCII based system
11986 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11987 lt_SP2NL='tr \040 \012'
11988 lt_NL2SP='tr \015\012 \040\040'
11989 ;;
11990 *) # EBCDIC based system
11991 lt_SP2NL='tr \100 \n'
11992 lt_NL2SP='tr \r\n \100\100'
11993 ;;
11994 esac
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12005 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12006 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 lt_cv_ld_reload_flag='-r'
12010 fi
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12012 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12013 reload_flag=$lt_cv_ld_reload_flag
12014 case $reload_flag in
12015 "" | " "*) ;;
12016 *) reload_flag=" $reload_flag" ;;
12017 esac
12018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12019 case $host_os in
12020 darwin*)
12021 if test "$GCC" = yes; then
12022 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12023 else
12024 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12025 fi
12026 ;;
12027 esac
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037 if test -n "$ac_tool_prefix"; then
12038 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12039 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041 $as_echo_n "checking for $ac_word... " >&6; }
12042 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 if test -n "$OBJDUMP"; then
12046 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12047 else
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $PATH
12050 do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12055 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 break 2
12058 fi
12059 done
12060 done
12061 IFS=$as_save_IFS
12062
12063 fi
12064 fi
12065 OBJDUMP=$ac_cv_prog_OBJDUMP
12066 if test -n "$OBJDUMP"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12068 $as_echo "$OBJDUMP" >&6; }
12069 else
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072 fi
12073
12074
12075 fi
12076 if test -z "$ac_cv_prog_OBJDUMP"; then
12077 ac_ct_OBJDUMP=$OBJDUMP
12078 # Extract the first word of "objdump", so it can be a program name with args.
12079 set dummy objdump; ac_word=$2
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081 $as_echo_n "checking for $ac_word... " >&6; }
12082 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 if test -n "$ac_ct_OBJDUMP"; then
12086 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12087 else
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12090 do
12091 IFS=$as_save_IFS
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12095 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12097 break 2
12098 fi
12099 done
12100 done
12101 IFS=$as_save_IFS
12102
12103 fi
12104 fi
12105 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12106 if test -n "$ac_ct_OBJDUMP"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12108 $as_echo "$ac_ct_OBJDUMP" >&6; }
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111 $as_echo "no" >&6; }
12112 fi
12113
12114 if test "x$ac_ct_OBJDUMP" = x; then
12115 OBJDUMP="false"
12116 else
12117 case $cross_compiling:$ac_tool_warned in
12118 yes:)
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12121 ac_tool_warned=yes ;;
12122 esac
12123 OBJDUMP=$ac_ct_OBJDUMP
12124 fi
12125 else
12126 OBJDUMP="$ac_cv_prog_OBJDUMP"
12127 fi
12128
12129 test -z "$OBJDUMP" && OBJDUMP=objdump
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12140 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12141 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 lt_cv_file_magic_cmd='$MAGIC_CMD'
12145 lt_cv_file_magic_test_file=
12146 lt_cv_deplibs_check_method='unknown'
12147 # Need to set the preceding variable on all platforms that support
12148 # interlibrary dependencies.
12149 # 'none' -- dependencies not supported.
12150 # `unknown' -- same as none, but documents that we really don't know.
12151 # 'pass_all' -- all dependencies passed with no checks.
12152 # 'test_compile' -- check by making test program.
12153 # 'file_magic [[regex]]' -- check by looking for files in library path
12154 # which responds to the $file_magic_cmd with a given extended regex.
12155 # If you have `file' or equivalent on your system and you're not sure
12156 # whether `pass_all' will *always* work, you probably want this one.
12157
12158 case $host_os in
12159 aix[4-9]*)
12160 lt_cv_deplibs_check_method=pass_all
12161 ;;
12162
12163 beos*)
12164 lt_cv_deplibs_check_method=pass_all
12165 ;;
12166
12167 bsdi[45]*)
12168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12169 lt_cv_file_magic_cmd='/usr/bin/file -L'
12170 lt_cv_file_magic_test_file=/shlib/libc.so
12171 ;;
12172
12173 cygwin*)
12174 # func_win32_libid is a shell function defined in ltmain.sh
12175 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12176 lt_cv_file_magic_cmd='func_win32_libid'
12177 ;;
12178
12179 mingw* | pw32*)
12180 # Base MSYS/MinGW do not provide the 'file' command needed by
12181 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12182 # unless we find 'file', for example because we are cross-compiling.
12183 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12184 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12185 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12186 lt_cv_file_magic_cmd='func_win32_libid'
12187 else
12188 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12189 lt_cv_file_magic_cmd='$OBJDUMP -f'
12190 fi
12191 ;;
12192
12193 cegcc*)
12194 # use the weaker test based on 'objdump'. See mingw*.
12195 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12196 lt_cv_file_magic_cmd='$OBJDUMP -f'
12197 ;;
12198
12199 darwin* | rhapsody*)
12200 lt_cv_deplibs_check_method=pass_all
12201 ;;
12202
12203 freebsd* | dragonfly*)
12204 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12205 case $host_cpu in
12206 i*86 )
12207 # Not sure whether the presence of OpenBSD here was a mistake.
12208 # Let's accept both of them until this is cleared up.
12209 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12210 lt_cv_file_magic_cmd=/usr/bin/file
12211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12212 ;;
12213 esac
12214 else
12215 lt_cv_deplibs_check_method=pass_all
12216 fi
12217 ;;
12218
12219 gnu*)
12220 lt_cv_deplibs_check_method=pass_all
12221 ;;
12222
12223 haiku*)
12224 lt_cv_deplibs_check_method=pass_all
12225 ;;
12226
12227 hpux10.20* | hpux11*)
12228 lt_cv_file_magic_cmd=/usr/bin/file
12229 case $host_cpu in
12230 ia64*)
12231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12232 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12233 ;;
12234 hppa*64*)
12235 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]'
12236 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12237 ;;
12238 *)
12239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12240 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12241 ;;
12242 esac
12243 ;;
12244
12245 interix[3-9]*)
12246 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12248 ;;
12249
12250 irix5* | irix6* | nonstopux*)
12251 case $LD in
12252 *-32|*"-32 ") libmagic=32-bit;;
12253 *-n32|*"-n32 ") libmagic=N32;;
12254 *-64|*"-64 ") libmagic=64-bit;;
12255 *) libmagic=never-match;;
12256 esac
12257 lt_cv_deplibs_check_method=pass_all
12258 ;;
12259
12260 # This must be Linux ELF.
12261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12262 lt_cv_deplibs_check_method=pass_all
12263 ;;
12264
12265 netbsd*)
12266 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12268 else
12269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12270 fi
12271 ;;
12272
12273 newos6*)
12274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12275 lt_cv_file_magic_cmd=/usr/bin/file
12276 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12277 ;;
12278
12279 *nto* | *qnx*)
12280 lt_cv_deplibs_check_method=pass_all
12281 ;;
12282
12283 openbsd*)
12284 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12286 else
12287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12288 fi
12289 ;;
12290
12291 osf3* | osf4* | osf5*)
12292 lt_cv_deplibs_check_method=pass_all
12293 ;;
12294
12295 rdos*)
12296 lt_cv_deplibs_check_method=pass_all
12297 ;;
12298
12299 solaris*)
12300 lt_cv_deplibs_check_method=pass_all
12301 ;;
12302
12303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12304 lt_cv_deplibs_check_method=pass_all
12305 ;;
12306
12307 sysv4 | sysv4.3*)
12308 case $host_vendor in
12309 motorola)
12310 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]'
12311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12312 ;;
12313 ncr)
12314 lt_cv_deplibs_check_method=pass_all
12315 ;;
12316 sequent)
12317 lt_cv_file_magic_cmd='/bin/file'
12318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12319 ;;
12320 sni)
12321 lt_cv_file_magic_cmd='/bin/file'
12322 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12323 lt_cv_file_magic_test_file=/lib/libc.so
12324 ;;
12325 siemens)
12326 lt_cv_deplibs_check_method=pass_all
12327 ;;
12328 pc)
12329 lt_cv_deplibs_check_method=pass_all
12330 ;;
12331 esac
12332 ;;
12333
12334 tpf*)
12335 lt_cv_deplibs_check_method=pass_all
12336 ;;
12337 esac
12338
12339 fi
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12341 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12342 file_magic_cmd=$lt_cv_file_magic_cmd
12343 deplibs_check_method=$lt_cv_deplibs_check_method
12344 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357 if test -n "$ac_tool_prefix"; then
12358 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12359 set dummy ${ac_tool_prefix}ar; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if test "${ac_cv_prog_AR+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 if test -n "$AR"; then
12366 ac_cv_prog_AR="$AR" # Let the user override the test.
12367 else
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12370 do
12371 IFS=$as_save_IFS
12372 test -z "$as_dir" && as_dir=.
12373 for ac_exec_ext in '' $ac_executable_extensions; do
12374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12375 ac_cv_prog_AR="${ac_tool_prefix}ar"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377 break 2
12378 fi
12379 done
12380 done
12381 IFS=$as_save_IFS
12382
12383 fi
12384 fi
12385 AR=$ac_cv_prog_AR
12386 if test -n "$AR"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12388 $as_echo "$AR" >&6; }
12389 else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12392 fi
12393
12394
12395 fi
12396 if test -z "$ac_cv_prog_AR"; then
12397 ac_ct_AR=$AR
12398 # Extract the first word of "ar", so it can be a program name with args.
12399 set dummy ar; ac_word=$2
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401 $as_echo_n "checking for $ac_word... " >&6; }
12402 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 if test -n "$ac_ct_AR"; then
12406 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12407 else
12408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409 for as_dir in $PATH
12410 do
12411 IFS=$as_save_IFS
12412 test -z "$as_dir" && as_dir=.
12413 for ac_exec_ext in '' $ac_executable_extensions; do
12414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12415 ac_cv_prog_ac_ct_AR="ar"
12416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12417 break 2
12418 fi
12419 done
12420 done
12421 IFS=$as_save_IFS
12422
12423 fi
12424 fi
12425 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12426 if test -n "$ac_ct_AR"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12428 $as_echo "$ac_ct_AR" >&6; }
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12432 fi
12433
12434 if test "x$ac_ct_AR" = x; then
12435 AR="false"
12436 else
12437 case $cross_compiling:$ac_tool_warned in
12438 yes:)
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12441 ac_tool_warned=yes ;;
12442 esac
12443 AR=$ac_ct_AR
12444 fi
12445 else
12446 AR="$ac_cv_prog_AR"
12447 fi
12448
12449 test -z "$AR" && AR=ar
12450 test -z "$AR_FLAGS" && AR_FLAGS=cru
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462 if test -n "$ac_tool_prefix"; then
12463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12464 set dummy ${ac_tool_prefix}strip; ac_word=$2
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12466 $as_echo_n "checking for $ac_word... " >&6; }
12467 if test "${ac_cv_prog_STRIP+set}" = set; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 if test -n "$STRIP"; then
12471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12472 else
12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12475 do
12476 IFS=$as_save_IFS
12477 test -z "$as_dir" && as_dir=.
12478 for ac_exec_ext in '' $ac_executable_extensions; do
12479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 break 2
12483 fi
12484 done
12485 done
12486 IFS=$as_save_IFS
12487
12488 fi
12489 fi
12490 STRIP=$ac_cv_prog_STRIP
12491 if test -n "$STRIP"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12493 $as_echo "$STRIP" >&6; }
12494 else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12497 fi
12498
12499
12500 fi
12501 if test -z "$ac_cv_prog_STRIP"; then
12502 ac_ct_STRIP=$STRIP
12503 # Extract the first word of "strip", so it can be a program name with args.
12504 set dummy strip; ac_word=$2
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12506 $as_echo_n "checking for $ac_word... " >&6; }
12507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 if test -n "$ac_ct_STRIP"; then
12511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12512 else
12513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514 for as_dir in $PATH
12515 do
12516 IFS=$as_save_IFS
12517 test -z "$as_dir" && as_dir=.
12518 for ac_exec_ext in '' $ac_executable_extensions; do
12519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12520 ac_cv_prog_ac_ct_STRIP="strip"
12521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12522 break 2
12523 fi
12524 done
12525 done
12526 IFS=$as_save_IFS
12527
12528 fi
12529 fi
12530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12531 if test -n "$ac_ct_STRIP"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12533 $as_echo "$ac_ct_STRIP" >&6; }
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12537 fi
12538
12539 if test "x$ac_ct_STRIP" = x; then
12540 STRIP=":"
12541 else
12542 case $cross_compiling:$ac_tool_warned in
12543 yes:)
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12546 ac_tool_warned=yes ;;
12547 esac
12548 STRIP=$ac_ct_STRIP
12549 fi
12550 else
12551 STRIP="$ac_cv_prog_STRIP"
12552 fi
12553
12554 test -z "$STRIP" && STRIP=:
12555
12556
12557
12558
12559
12560
12561 if test -n "$ac_tool_prefix"; then
12562 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12565 $as_echo_n "checking for $ac_word... " >&6; }
12566 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12567 $as_echo_n "(cached) " >&6
12568 else
12569 if test -n "$RANLIB"; then
12570 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12571 else
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $PATH
12574 do
12575 IFS=$as_save_IFS
12576 test -z "$as_dir" && as_dir=.
12577 for ac_exec_ext in '' $ac_executable_extensions; do
12578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12579 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581 break 2
12582 fi
12583 done
12584 done
12585 IFS=$as_save_IFS
12586
12587 fi
12588 fi
12589 RANLIB=$ac_cv_prog_RANLIB
12590 if test -n "$RANLIB"; then
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12592 $as_echo "$RANLIB" >&6; }
12593 else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12596 fi
12597
12598
12599 fi
12600 if test -z "$ac_cv_prog_RANLIB"; then
12601 ac_ct_RANLIB=$RANLIB
12602 # Extract the first word of "ranlib", so it can be a program name with args.
12603 set dummy ranlib; ac_word=$2
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605 $as_echo_n "checking for $ac_word... " >&6; }
12606 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 if test -n "$ac_ct_RANLIB"; then
12610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12611 else
12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH
12614 do
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12619 ac_cv_prog_ac_ct_RANLIB="ranlib"
12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12621 break 2
12622 fi
12623 done
12624 done
12625 IFS=$as_save_IFS
12626
12627 fi
12628 fi
12629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12630 if test -n "$ac_ct_RANLIB"; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12632 $as_echo "$ac_ct_RANLIB" >&6; }
12633 else
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12636 fi
12637
12638 if test "x$ac_ct_RANLIB" = x; then
12639 RANLIB=":"
12640 else
12641 case $cross_compiling:$ac_tool_warned in
12642 yes:)
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12645 ac_tool_warned=yes ;;
12646 esac
12647 RANLIB=$ac_ct_RANLIB
12648 fi
12649 else
12650 RANLIB="$ac_cv_prog_RANLIB"
12651 fi
12652
12653 test -z "$RANLIB" && RANLIB=:
12654
12655
12656
12657
12658
12659
12660 # Determine commands to create old-style static archives.
12661 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12662 old_postinstall_cmds='chmod 644 $oldlib'
12663 old_postuninstall_cmds=
12664
12665 if test -n "$RANLIB"; then
12666 case $host_os in
12667 openbsd*)
12668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12669 ;;
12670 *)
12671 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12672 ;;
12673 esac
12674 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12675 fi
12676
12677 case $host_os in
12678 darwin*)
12679 lock_old_archive_extraction=yes ;;
12680 *)
12681 lock_old_archive_extraction=no ;;
12682 esac
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722 # If no C compiler was specified, use CC.
12723 LTCC=${LTCC-"$CC"}
12724
12725 # If no C compiler flags were specified, use CFLAGS.
12726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12727
12728 # Allow CC to be a program name with arguments.
12729 compiler=$CC
12730
12731
12732 # Check for command to grab the raw symbol name followed by C symbol from nm.
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12734 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12735 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738
12739 # These are sane defaults that work on at least a few old systems.
12740 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12741
12742 # Character class describing NM global symbol codes.
12743 symcode='[BCDEGRST]'
12744
12745 # Regexp to match symbols that can be accessed directly from C.
12746 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12747
12748 # Define system-specific variables.
12749 case $host_os in
12750 aix*)
12751 symcode='[BCDT]'
12752 ;;
12753 cygwin* | mingw* | pw32* | cegcc*)
12754 symcode='[ABCDGISTW]'
12755 ;;
12756 hpux*)
12757 if test "$host_cpu" = ia64; then
12758 symcode='[ABCDEGRST]'
12759 fi
12760 ;;
12761 irix* | nonstopux*)
12762 symcode='[BCDEGRST]'
12763 ;;
12764 osf*)
12765 symcode='[BCDEGQRST]'
12766 ;;
12767 solaris*)
12768 symcode='[BDRT]'
12769 ;;
12770 sco3.2v5*)
12771 symcode='[DT]'
12772 ;;
12773 sysv4.2uw2*)
12774 symcode='[DT]'
12775 ;;
12776 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12777 symcode='[ABDT]'
12778 ;;
12779 sysv4)
12780 symcode='[DFNSTU]'
12781 ;;
12782 esac
12783
12784 # If we're using GNU nm, then use its standard symbol codes.
12785 case `$NM -V 2>&1` in
12786 *GNU* | *'with BFD'*)
12787 symcode='[ABCDGIRSTW]' ;;
12788 esac
12789
12790 # Transform an extracted symbol line into a proper C declaration.
12791 # Some systems (esp. on ia64) link data and code symbols differently,
12792 # so use this general approach.
12793 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12794
12795 # Transform an extracted symbol line into symbol name and symbol address
12796 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12797 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'"
12798
12799 # Handle CRLF in mingw tool chain
12800 opt_cr=
12801 case $build_os in
12802 mingw*)
12803 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12804 ;;
12805 esac
12806
12807 # Try without a prefix underscore, then with it.
12808 for ac_symprfx in "" "_"; do
12809
12810 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12811 symxfrm="\\1 $ac_symprfx\\2 \\2"
12812
12813 # Write the raw and C identifiers.
12814 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12815 # Fake it for dumpbin and say T for any non-static function
12816 # and D for any global variable.
12817 # Also find C++ and __fastcall symbols from MSVC++,
12818 # which start with @ or ?.
12819 lt_cv_sys_global_symbol_pipe="$AWK '"\
12820 " {last_section=section; section=\$ 3};"\
12821 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12822 " \$ 0!~/External *\|/{next};"\
12823 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12824 " {if(hide[section]) next};"\
12825 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12826 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12827 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12828 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12829 " ' prfx=^$ac_symprfx"
12830 else
12831 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12832 fi
12833
12834 # Check to see that the pipe works correctly.
12835 pipe_works=no
12836
12837 rm -f conftest*
12838 cat > conftest.$ac_ext <<_LT_EOF
12839 #ifdef __cplusplus
12840 extern "C" {
12841 #endif
12842 char nm_test_var;
12843 void nm_test_func(void);
12844 void nm_test_func(void){}
12845 #ifdef __cplusplus
12846 }
12847 #endif
12848 int main(){nm_test_var='a';nm_test_func();return(0);}
12849 _LT_EOF
12850
12851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12852 (eval $ac_compile) 2>&5
12853 ac_status=$?
12854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12855 test $ac_status = 0; }; then
12856 # Now try to grab the symbols.
12857 nlist=conftest.nm
12858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12859 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12860 ac_status=$?
12861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12862 test $ac_status = 0; } && test -s "$nlist"; then
12863 # Try sorting and uniquifying the output.
12864 if sort "$nlist" | uniq > "$nlist"T; then
12865 mv -f "$nlist"T "$nlist"
12866 else
12867 rm -f "$nlist"T
12868 fi
12869
12870 # Make sure that we snagged all the symbols we need.
12871 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12872 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12873 cat <<_LT_EOF > conftest.$ac_ext
12874 #ifdef __cplusplus
12875 extern "C" {
12876 #endif
12877
12878 _LT_EOF
12879 # Now generate the symbol file.
12880 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12881
12882 cat <<_LT_EOF >> conftest.$ac_ext
12883
12884 /* The mapping between symbol names and symbols. */
12885 const struct {
12886 const char *name;
12887 void *address;
12888 }
12889 lt__PROGRAM__LTX_preloaded_symbols[] =
12890 {
12891 { "@PROGRAM@", (void *) 0 },
12892 _LT_EOF
12893 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12894 cat <<\_LT_EOF >> conftest.$ac_ext
12895 {0, (void *) 0}
12896 };
12897
12898 /* This works around a problem in FreeBSD linker */
12899 #ifdef FREEBSD_WORKAROUND
12900 static const void *lt_preloaded_setup() {
12901 return lt__PROGRAM__LTX_preloaded_symbols;
12902 }
12903 #endif
12904
12905 #ifdef __cplusplus
12906 }
12907 #endif
12908 _LT_EOF
12909 # Now try linking the two files.
12910 mv conftest.$ac_objext conftstm.$ac_objext
12911 lt_save_LIBS="$LIBS"
12912 lt_save_CFLAGS="$CFLAGS"
12913 LIBS="conftstm.$ac_objext"
12914 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12916 (eval $ac_link) 2>&5
12917 ac_status=$?
12918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12919 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12920 pipe_works=yes
12921 fi
12922 LIBS="$lt_save_LIBS"
12923 CFLAGS="$lt_save_CFLAGS"
12924 else
12925 echo "cannot find nm_test_func in $nlist" >&5
12926 fi
12927 else
12928 echo "cannot find nm_test_var in $nlist" >&5
12929 fi
12930 else
12931 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12932 fi
12933 else
12934 echo "$progname: failed program was:" >&5
12935 cat conftest.$ac_ext >&5
12936 fi
12937 rm -rf conftest* conftst*
12938
12939 # Do not use the global_symbol_pipe unless it works.
12940 if test "$pipe_works" = yes; then
12941 break
12942 else
12943 lt_cv_sys_global_symbol_pipe=
12944 fi
12945 done
12946
12947 fi
12948
12949 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12950 lt_cv_sys_global_symbol_to_cdecl=
12951 fi
12952 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12954 $as_echo "failed" >&6; }
12955 else
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12957 $as_echo "ok" >&6; }
12958 fi
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981 # Check whether --enable-libtool-lock was given.
12982 if test "${enable_libtool_lock+set}" = set; then :
12983 enableval=$enable_libtool_lock;
12984 fi
12985
12986 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12987
12988 # Some flags need to be propagated to the compiler or linker for good
12989 # libtool support.
12990 case $host in
12991 ia64-*-hpux*)
12992 # Find out which ABI we are using.
12993 echo 'int i;' > conftest.$ac_ext
12994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12995 (eval $ac_compile) 2>&5
12996 ac_status=$?
12997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12998 test $ac_status = 0; }; then
12999 case `/usr/bin/file conftest.$ac_objext` in
13000 *ELF-32*)
13001 HPUX_IA64_MODE="32"
13002 ;;
13003 *ELF-64*)
13004 HPUX_IA64_MODE="64"
13005 ;;
13006 esac
13007 fi
13008 rm -rf conftest*
13009 ;;
13010 *-*-irix6*)
13011 # Find out which ABI we are using.
13012 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13014 (eval $ac_compile) 2>&5
13015 ac_status=$?
13016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13017 test $ac_status = 0; }; then
13018 if test "$lt_cv_prog_gnu_ld" = yes; then
13019 case `/usr/bin/file conftest.$ac_objext` in
13020 *32-bit*)
13021 LD="${LD-ld} -melf32bsmip"
13022 ;;
13023 *N32*)
13024 LD="${LD-ld} -melf32bmipn32"
13025 ;;
13026 *64-bit*)
13027 LD="${LD-ld} -melf64bmip"
13028 ;;
13029 esac
13030 else
13031 case `/usr/bin/file conftest.$ac_objext` in
13032 *32-bit*)
13033 LD="${LD-ld} -32"
13034 ;;
13035 *N32*)
13036 LD="${LD-ld} -n32"
13037 ;;
13038 *64-bit*)
13039 LD="${LD-ld} -64"
13040 ;;
13041 esac
13042 fi
13043 fi
13044 rm -rf conftest*
13045 ;;
13046
13047 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13048 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13049 # Find out which ABI we are using.
13050 echo 'int i;' > conftest.$ac_ext
13051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13052 (eval $ac_compile) 2>&5
13053 ac_status=$?
13054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13055 test $ac_status = 0; }; then
13056 case `/usr/bin/file conftest.o` in
13057 *32-bit*)
13058 case $host in
13059 x86_64-*kfreebsd*-gnu)
13060 LD="${LD-ld} -m elf_i386_fbsd"
13061 ;;
13062 x86_64-*linux*)
13063 LD="${LD-ld} -m elf_i386"
13064 ;;
13065 ppc64-*linux*|powerpc64-*linux*)
13066 LD="${LD-ld} -m elf32ppclinux"
13067 ;;
13068 s390x-*linux*)
13069 LD="${LD-ld} -m elf_s390"
13070 ;;
13071 sparc64-*linux*)
13072 LD="${LD-ld} -m elf32_sparc"
13073 ;;
13074 esac
13075 ;;
13076 *64-bit*)
13077 case $host in
13078 x86_64-*kfreebsd*-gnu)
13079 LD="${LD-ld} -m elf_x86_64_fbsd"
13080 ;;
13081 x86_64-*linux*)
13082 LD="${LD-ld} -m elf_x86_64"
13083 ;;
13084 ppc*-*linux*|powerpc*-*linux*)
13085 LD="${LD-ld} -m elf64ppc"
13086 ;;
13087 s390*-*linux*|s390*-*tpf*)
13088 LD="${LD-ld} -m elf64_s390"
13089 ;;
13090 sparc*-*linux*)
13091 LD="${LD-ld} -m elf64_sparc"
13092 ;;
13093 esac
13094 ;;
13095 esac
13096 fi
13097 rm -rf conftest*
13098 ;;
13099
13100 *-*-sco3.2v5*)
13101 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13102 SAVE_CFLAGS="$CFLAGS"
13103 CFLAGS="$CFLAGS -belf"
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13105 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13106 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 ac_ext=c
13110 ac_cpp='$CPP $CPPFLAGS'
13111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13114
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13117
13118 int
13119 main ()
13120 {
13121
13122 ;
13123 return 0;
13124 }
13125 _ACEOF
13126 if ac_fn_c_try_link "$LINENO"; then :
13127 lt_cv_cc_needs_belf=yes
13128 else
13129 lt_cv_cc_needs_belf=no
13130 fi
13131 rm -f core conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
13133 ac_ext=c
13134 ac_cpp='$CPP $CPPFLAGS'
13135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13138
13139 fi
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13141 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13142 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13143 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13144 CFLAGS="$SAVE_CFLAGS"
13145 fi
13146 ;;
13147 sparc*-*solaris*)
13148 # Find out which ABI we are using.
13149 echo 'int i;' > conftest.$ac_ext
13150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13151 (eval $ac_compile) 2>&5
13152 ac_status=$?
13153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13154 test $ac_status = 0; }; then
13155 case `/usr/bin/file conftest.o` in
13156 *64-bit*)
13157 case $lt_cv_prog_gnu_ld in
13158 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13159 *)
13160 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13161 LD="${LD-ld} -64"
13162 fi
13163 ;;
13164 esac
13165 ;;
13166 esac
13167 fi
13168 rm -rf conftest*
13169 ;;
13170 esac
13171
13172 need_locks="$enable_libtool_lock"
13173
13174
13175 case $host_os in
13176 rhapsody* | darwin*)
13177 if test -n "$ac_tool_prefix"; then
13178 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13179 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181 $as_echo_n "checking for $ac_word... " >&6; }
13182 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 if test -n "$DSYMUTIL"; then
13186 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13187 else
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in $PATH
13190 do
13191 IFS=$as_save_IFS
13192 test -z "$as_dir" && as_dir=.
13193 for ac_exec_ext in '' $ac_executable_extensions; do
13194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13195 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13197 break 2
13198 fi
13199 done
13200 done
13201 IFS=$as_save_IFS
13202
13203 fi
13204 fi
13205 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13206 if test -n "$DSYMUTIL"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13208 $as_echo "$DSYMUTIL" >&6; }
13209 else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13212 fi
13213
13214
13215 fi
13216 if test -z "$ac_cv_prog_DSYMUTIL"; then
13217 ac_ct_DSYMUTIL=$DSYMUTIL
13218 # Extract the first word of "dsymutil", so it can be a program name with args.
13219 set dummy dsymutil; ac_word=$2
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13221 $as_echo_n "checking for $ac_word... " >&6; }
13222 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 if test -n "$ac_ct_DSYMUTIL"; then
13226 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13227 else
13228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13229 for as_dir in $PATH
13230 do
13231 IFS=$as_save_IFS
13232 test -z "$as_dir" && as_dir=.
13233 for ac_exec_ext in '' $ac_executable_extensions; do
13234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13235 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13237 break 2
13238 fi
13239 done
13240 done
13241 IFS=$as_save_IFS
13242
13243 fi
13244 fi
13245 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13246 if test -n "$ac_ct_DSYMUTIL"; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13248 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13249 else
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251 $as_echo "no" >&6; }
13252 fi
13253
13254 if test "x$ac_ct_DSYMUTIL" = x; then
13255 DSYMUTIL=":"
13256 else
13257 case $cross_compiling:$ac_tool_warned in
13258 yes:)
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13261 ac_tool_warned=yes ;;
13262 esac
13263 DSYMUTIL=$ac_ct_DSYMUTIL
13264 fi
13265 else
13266 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13267 fi
13268
13269 if test -n "$ac_tool_prefix"; then
13270 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13271 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273 $as_echo_n "checking for $ac_word... " >&6; }
13274 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 if test -n "$NMEDIT"; then
13278 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13279 else
13280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in $PATH
13282 do
13283 IFS=$as_save_IFS
13284 test -z "$as_dir" && as_dir=.
13285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13287 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13289 break 2
13290 fi
13291 done
13292 done
13293 IFS=$as_save_IFS
13294
13295 fi
13296 fi
13297 NMEDIT=$ac_cv_prog_NMEDIT
13298 if test -n "$NMEDIT"; then
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13300 $as_echo "$NMEDIT" >&6; }
13301 else
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303 $as_echo "no" >&6; }
13304 fi
13305
13306
13307 fi
13308 if test -z "$ac_cv_prog_NMEDIT"; then
13309 ac_ct_NMEDIT=$NMEDIT
13310 # Extract the first word of "nmedit", so it can be a program name with args.
13311 set dummy nmedit; ac_word=$2
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13313 $as_echo_n "checking for $ac_word... " >&6; }
13314 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 if test -n "$ac_ct_NMEDIT"; then
13318 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13319 else
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321 for as_dir in $PATH
13322 do
13323 IFS=$as_save_IFS
13324 test -z "$as_dir" && as_dir=.
13325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13327 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13329 break 2
13330 fi
13331 done
13332 done
13333 IFS=$as_save_IFS
13334
13335 fi
13336 fi
13337 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13338 if test -n "$ac_ct_NMEDIT"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13340 $as_echo "$ac_ct_NMEDIT" >&6; }
13341 else
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13344 fi
13345
13346 if test "x$ac_ct_NMEDIT" = x; then
13347 NMEDIT=":"
13348 else
13349 case $cross_compiling:$ac_tool_warned in
13350 yes:)
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13353 ac_tool_warned=yes ;;
13354 esac
13355 NMEDIT=$ac_ct_NMEDIT
13356 fi
13357 else
13358 NMEDIT="$ac_cv_prog_NMEDIT"
13359 fi
13360
13361 if test -n "$ac_tool_prefix"; then
13362 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13363 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13365 $as_echo_n "checking for $ac_word... " >&6; }
13366 if test "${ac_cv_prog_LIPO+set}" = set; then :
13367 $as_echo_n "(cached) " >&6
13368 else
13369 if test -n "$LIPO"; then
13370 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13371 else
13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13374 do
13375 IFS=$as_save_IFS
13376 test -z "$as_dir" && as_dir=.
13377 for ac_exec_ext in '' $ac_executable_extensions; do
13378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13379 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13381 break 2
13382 fi
13383 done
13384 done
13385 IFS=$as_save_IFS
13386
13387 fi
13388 fi
13389 LIPO=$ac_cv_prog_LIPO
13390 if test -n "$LIPO"; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13392 $as_echo "$LIPO" >&6; }
13393 else
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 $as_echo "no" >&6; }
13396 fi
13397
13398
13399 fi
13400 if test -z "$ac_cv_prog_LIPO"; then
13401 ac_ct_LIPO=$LIPO
13402 # Extract the first word of "lipo", so it can be a program name with args.
13403 set dummy lipo; ac_word=$2
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405 $as_echo_n "checking for $ac_word... " >&6; }
13406 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13407 $as_echo_n "(cached) " >&6
13408 else
13409 if test -n "$ac_ct_LIPO"; then
13410 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13411 else
13412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413 for as_dir in $PATH
13414 do
13415 IFS=$as_save_IFS
13416 test -z "$as_dir" && as_dir=.
13417 for ac_exec_ext in '' $ac_executable_extensions; do
13418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13419 ac_cv_prog_ac_ct_LIPO="lipo"
13420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13421 break 2
13422 fi
13423 done
13424 done
13425 IFS=$as_save_IFS
13426
13427 fi
13428 fi
13429 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13430 if test -n "$ac_ct_LIPO"; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13432 $as_echo "$ac_ct_LIPO" >&6; }
13433 else
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435 $as_echo "no" >&6; }
13436 fi
13437
13438 if test "x$ac_ct_LIPO" = x; then
13439 LIPO=":"
13440 else
13441 case $cross_compiling:$ac_tool_warned in
13442 yes:)
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13445 ac_tool_warned=yes ;;
13446 esac
13447 LIPO=$ac_ct_LIPO
13448 fi
13449 else
13450 LIPO="$ac_cv_prog_LIPO"
13451 fi
13452
13453 if test -n "$ac_tool_prefix"; then
13454 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13455 set dummy ${ac_tool_prefix}otool; ac_word=$2
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13457 $as_echo_n "checking for $ac_word... " >&6; }
13458 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
13460 else
13461 if test -n "$OTOOL"; then
13462 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13463 else
13464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465 for as_dir in $PATH
13466 do
13467 IFS=$as_save_IFS
13468 test -z "$as_dir" && as_dir=.
13469 for ac_exec_ext in '' $ac_executable_extensions; do
13470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13471 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13473 break 2
13474 fi
13475 done
13476 done
13477 IFS=$as_save_IFS
13478
13479 fi
13480 fi
13481 OTOOL=$ac_cv_prog_OTOOL
13482 if test -n "$OTOOL"; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13484 $as_echo "$OTOOL" >&6; }
13485 else
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13488 fi
13489
13490
13491 fi
13492 if test -z "$ac_cv_prog_OTOOL"; then
13493 ac_ct_OTOOL=$OTOOL
13494 # Extract the first word of "otool", so it can be a program name with args.
13495 set dummy otool; ac_word=$2
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497 $as_echo_n "checking for $ac_word... " >&6; }
13498 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 if test -n "$ac_ct_OTOOL"; then
13502 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13503 else
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $PATH
13506 do
13507 IFS=$as_save_IFS
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13511 ac_cv_prog_ac_ct_OTOOL="otool"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513 break 2
13514 fi
13515 done
13516 done
13517 IFS=$as_save_IFS
13518
13519 fi
13520 fi
13521 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13522 if test -n "$ac_ct_OTOOL"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13524 $as_echo "$ac_ct_OTOOL" >&6; }
13525 else
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13528 fi
13529
13530 if test "x$ac_ct_OTOOL" = x; then
13531 OTOOL=":"
13532 else
13533 case $cross_compiling:$ac_tool_warned in
13534 yes:)
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13537 ac_tool_warned=yes ;;
13538 esac
13539 OTOOL=$ac_ct_OTOOL
13540 fi
13541 else
13542 OTOOL="$ac_cv_prog_OTOOL"
13543 fi
13544
13545 if test -n "$ac_tool_prefix"; then
13546 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13547 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13549 $as_echo_n "checking for $ac_word... " >&6; }
13550 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 if test -n "$OTOOL64"; then
13554 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13555 else
13556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557 for as_dir in $PATH
13558 do
13559 IFS=$as_save_IFS
13560 test -z "$as_dir" && as_dir=.
13561 for ac_exec_ext in '' $ac_executable_extensions; do
13562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13563 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13565 break 2
13566 fi
13567 done
13568 done
13569 IFS=$as_save_IFS
13570
13571 fi
13572 fi
13573 OTOOL64=$ac_cv_prog_OTOOL64
13574 if test -n "$OTOOL64"; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13576 $as_echo "$OTOOL64" >&6; }
13577 else
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579 $as_echo "no" >&6; }
13580 fi
13581
13582
13583 fi
13584 if test -z "$ac_cv_prog_OTOOL64"; then
13585 ac_ct_OTOOL64=$OTOOL64
13586 # Extract the first word of "otool64", so it can be a program name with args.
13587 set dummy otool64; ac_word=$2
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13589 $as_echo_n "checking for $ac_word... " >&6; }
13590 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13591 $as_echo_n "(cached) " >&6
13592 else
13593 if test -n "$ac_ct_OTOOL64"; then
13594 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13595 else
13596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597 for as_dir in $PATH
13598 do
13599 IFS=$as_save_IFS
13600 test -z "$as_dir" && as_dir=.
13601 for ac_exec_ext in '' $ac_executable_extensions; do
13602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13603 ac_cv_prog_ac_ct_OTOOL64="otool64"
13604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13605 break 2
13606 fi
13607 done
13608 done
13609 IFS=$as_save_IFS
13610
13611 fi
13612 fi
13613 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13614 if test -n "$ac_ct_OTOOL64"; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13616 $as_echo "$ac_ct_OTOOL64" >&6; }
13617 else
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619 $as_echo "no" >&6; }
13620 fi
13621
13622 if test "x$ac_ct_OTOOL64" = x; then
13623 OTOOL64=":"
13624 else
13625 case $cross_compiling:$ac_tool_warned in
13626 yes:)
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13629 ac_tool_warned=yes ;;
13630 esac
13631 OTOOL64=$ac_ct_OTOOL64
13632 fi
13633 else
13634 OTOOL64="$ac_cv_prog_OTOOL64"
13635 fi
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13664 $as_echo_n "checking for -single_module linker flag... " >&6; }
13665 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13666 $as_echo_n "(cached) " >&6
13667 else
13668 lt_cv_apple_cc_single_mod=no
13669 if test -z "${LT_MULTI_MODULE}"; then
13670 # By default we will add the -single_module flag. You can override
13671 # by either setting the environment variable LT_MULTI_MODULE
13672 # non-empty at configure time, or by adding -multi_module to the
13673 # link flags.
13674 rm -rf libconftest.dylib*
13675 echo "int foo(void){return 1;}" > conftest.c
13676 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13677 -dynamiclib -Wl,-single_module conftest.c" >&5
13678 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13679 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13680 _lt_result=$?
13681 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13682 lt_cv_apple_cc_single_mod=yes
13683 else
13684 cat conftest.err >&5
13685 fi
13686 rm -rf libconftest.dylib*
13687 rm -f conftest.*
13688 fi
13689 fi
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13691 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13693 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13694 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13695 $as_echo_n "(cached) " >&6
13696 else
13697 lt_cv_ld_exported_symbols_list=no
13698 save_LDFLAGS=$LDFLAGS
13699 echo "_main" > conftest.sym
13700 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703
13704 int
13705 main ()
13706 {
13707
13708 ;
13709 return 0;
13710 }
13711 _ACEOF
13712 if ac_fn_c_try_link "$LINENO"; then :
13713 lt_cv_ld_exported_symbols_list=yes
13714 else
13715 lt_cv_ld_exported_symbols_list=no
13716 fi
13717 rm -f core conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LDFLAGS="$save_LDFLAGS"
13720
13721 fi
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13723 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13725 $as_echo_n "checking for -force_load linker flag... " >&6; }
13726 if test "${lt_cv_ld_force_load+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 lt_cv_ld_force_load=no
13730 cat > conftest.c << _LT_EOF
13731 int forced_loaded() { return 2;}
13732 _LT_EOF
13733 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13734 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13735 echo "$AR cru libconftest.a conftest.o" >&5
13736 $AR cru libconftest.a conftest.o 2>&5
13737 cat > conftest.c << _LT_EOF
13738 int main() { return 0;}
13739 _LT_EOF
13740 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13741 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13742 _lt_result=$?
13743 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13744 lt_cv_ld_force_load=yes
13745 else
13746 cat conftest.err >&5
13747 fi
13748 rm -f conftest.err libconftest.a conftest conftest.c
13749 rm -rf conftest.dSYM
13750
13751 fi
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13753 $as_echo "$lt_cv_ld_force_load" >&6; }
13754 case $host_os in
13755 rhapsody* | darwin1.[012])
13756 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13757 darwin1.*)
13758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13759 darwin*) # darwin 5.x on
13760 # if running on 10.5 or later, the deployment target defaults
13761 # to the OS version, if on x86, and 10.4, the deployment
13762 # target defaults to 10.4. Don't you love it?
13763 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13764 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13765 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13766 10.[012]*)
13767 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13768 10.*)
13769 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13770 esac
13771 ;;
13772 esac
13773 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13774 _lt_dar_single_mod='$single_module'
13775 fi
13776 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13777 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13778 else
13779 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13780 fi
13781 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13782 _lt_dsymutil='~$DSYMUTIL $lib || :'
13783 else
13784 _lt_dsymutil=
13785 fi
13786 ;;
13787 esac
13788
13789 for ac_header in dlfcn.h
13790 do :
13791 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13792 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13793 cat >>confdefs.h <<_ACEOF
13794 #define HAVE_DLFCN_H 1
13795 _ACEOF
13796
13797 fi
13798 done
13799
13800
13801
13802
13803
13804
13805 # Set options
13806
13807
13808
13809 enable_dlopen=no
13810
13811
13812 enable_win32_dll=no
13813
13814
13815 # Check whether --enable-shared was given.
13816 if test "${enable_shared+set}" = set; then :
13817 enableval=$enable_shared; p=${PACKAGE-default}
13818 case $enableval in
13819 yes) enable_shared=yes ;;
13820 no) enable_shared=no ;;
13821 *)
13822 enable_shared=no
13823 # Look at the argument we got. We use all the common list separators.
13824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13825 for pkg in $enableval; do
13826 IFS="$lt_save_ifs"
13827 if test "X$pkg" = "X$p"; then
13828 enable_shared=yes
13829 fi
13830 done
13831 IFS="$lt_save_ifs"
13832 ;;
13833 esac
13834 else
13835 enable_shared=yes
13836 fi
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846 # Check whether --enable-static was given.
13847 if test "${enable_static+set}" = set; then :
13848 enableval=$enable_static; p=${PACKAGE-default}
13849 case $enableval in
13850 yes) enable_static=yes ;;
13851 no) enable_static=no ;;
13852 *)
13853 enable_static=no
13854 # Look at the argument we got. We use all the common list separators.
13855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13856 for pkg in $enableval; do
13857 IFS="$lt_save_ifs"
13858 if test "X$pkg" = "X$p"; then
13859 enable_static=yes
13860 fi
13861 done
13862 IFS="$lt_save_ifs"
13863 ;;
13864 esac
13865 else
13866 enable_static=yes
13867 fi
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878 # Check whether --with-pic was given.
13879 if test "${with_pic+set}" = set; then :
13880 withval=$with_pic; pic_mode="$withval"
13881 else
13882 pic_mode=default
13883 fi
13884
13885
13886 test -z "$pic_mode" && pic_mode=default
13887
13888
13889
13890
13891
13892
13893
13894 # Check whether --enable-fast-install was given.
13895 if test "${enable_fast_install+set}" = set; then :
13896 enableval=$enable_fast_install; p=${PACKAGE-default}
13897 case $enableval in
13898 yes) enable_fast_install=yes ;;
13899 no) enable_fast_install=no ;;
13900 *)
13901 enable_fast_install=no
13902 # Look at the argument we got. We use all the common list separators.
13903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13904 for pkg in $enableval; do
13905 IFS="$lt_save_ifs"
13906 if test "X$pkg" = "X$p"; then
13907 enable_fast_install=yes
13908 fi
13909 done
13910 IFS="$lt_save_ifs"
13911 ;;
13912 esac
13913 else
13914 enable_fast_install=yes
13915 fi
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927 # This can be used to rebuild libtool when needed
13928 LIBTOOL_DEPS="$ltmain"
13929
13930 # Always use our own libtool.
13931 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958 test -z "$LN_S" && LN_S="ln -s"
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973 if test -n "${ZSH_VERSION+set}" ; then
13974 setopt NO_GLOB_SUBST
13975 fi
13976
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13978 $as_echo_n "checking for objdir... " >&6; }
13979 if test "${lt_cv_objdir+set}" = set; then :
13980 $as_echo_n "(cached) " >&6
13981 else
13982 rm -f .libs 2>/dev/null
13983 mkdir .libs 2>/dev/null
13984 if test -d .libs; then
13985 lt_cv_objdir=.libs
13986 else
13987 # MS-DOS does not allow filenames that begin with a dot.
13988 lt_cv_objdir=_libs
13989 fi
13990 rmdir .libs 2>/dev/null
13991 fi
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13993 $as_echo "$lt_cv_objdir" >&6; }
13994 objdir=$lt_cv_objdir
13995
13996
13997
13998
13999
14000 cat >>confdefs.h <<_ACEOF
14001 #define LT_OBJDIR "$lt_cv_objdir/"
14002 _ACEOF
14003
14004
14005
14006
14007 case $host_os in
14008 aix3*)
14009 # AIX sometimes has problems with the GCC collect2 program. For some
14010 # reason, if we set the COLLECT_NAMES environment variable, the problems
14011 # vanish in a puff of smoke.
14012 if test "X${COLLECT_NAMES+set}" != Xset; then
14013 COLLECT_NAMES=
14014 export COLLECT_NAMES
14015 fi
14016 ;;
14017 esac
14018
14019 # Global variables:
14020 ofile=libtool
14021 can_build_shared=yes
14022
14023 # All known linkers require a `.a' archive for static linking (except MSVC,
14024 # which needs '.lib').
14025 libext=a
14026
14027 with_gnu_ld="$lt_cv_prog_gnu_ld"
14028
14029 old_CC="$CC"
14030 old_CFLAGS="$CFLAGS"
14031
14032 # Set sane defaults for various variables
14033 test -z "$CC" && CC=cc
14034 test -z "$LTCC" && LTCC=$CC
14035 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14036 test -z "$LD" && LD=ld
14037 test -z "$ac_objext" && ac_objext=o
14038
14039 for cc_temp in $compiler""; do
14040 case $cc_temp in
14041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14043 \-*) ;;
14044 *) break;;
14045 esac
14046 done
14047 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14048
14049
14050 # Only perform the check for file, if the check method requires it
14051 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14052 case $deplibs_check_method in
14053 file_magic*)
14054 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14056 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14057 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 case $MAGIC_CMD in
14061 [\\/*] | ?:[\\/]*)
14062 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14063 ;;
14064 *)
14065 lt_save_MAGIC_CMD="$MAGIC_CMD"
14066 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14067 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14068 for ac_dir in $ac_dummy; do
14069 IFS="$lt_save_ifs"
14070 test -z "$ac_dir" && ac_dir=.
14071 if test -f $ac_dir/${ac_tool_prefix}file; then
14072 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14073 if test -n "$file_magic_test_file"; then
14074 case $deplibs_check_method in
14075 "file_magic "*)
14076 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14078 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14079 $EGREP "$file_magic_regex" > /dev/null; then
14080 :
14081 else
14082 cat <<_LT_EOF 1>&2
14083
14084 *** Warning: the command libtool uses to detect shared libraries,
14085 *** $file_magic_cmd, produces output that libtool cannot recognize.
14086 *** The result is that libtool may fail to recognize shared libraries
14087 *** as such. This will affect the creation of libtool libraries that
14088 *** depend on shared libraries, but programs linked with such libtool
14089 *** libraries will work regardless of this problem. Nevertheless, you
14090 *** may want to report the problem to your system manager and/or to
14091 *** bug-libtool@gnu.org
14092
14093 _LT_EOF
14094 fi ;;
14095 esac
14096 fi
14097 break
14098 fi
14099 done
14100 IFS="$lt_save_ifs"
14101 MAGIC_CMD="$lt_save_MAGIC_CMD"
14102 ;;
14103 esac
14104 fi
14105
14106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14107 if test -n "$MAGIC_CMD"; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14109 $as_echo "$MAGIC_CMD" >&6; }
14110 else
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112 $as_echo "no" >&6; }
14113 fi
14114
14115
14116
14117
14118
14119 if test -z "$lt_cv_path_MAGIC_CMD"; then
14120 if test -n "$ac_tool_prefix"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14122 $as_echo_n "checking for file... " >&6; }
14123 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14124 $as_echo_n "(cached) " >&6
14125 else
14126 case $MAGIC_CMD in
14127 [\\/*] | ?:[\\/]*)
14128 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14129 ;;
14130 *)
14131 lt_save_MAGIC_CMD="$MAGIC_CMD"
14132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14133 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14134 for ac_dir in $ac_dummy; do
14135 IFS="$lt_save_ifs"
14136 test -z "$ac_dir" && ac_dir=.
14137 if test -f $ac_dir/file; then
14138 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14139 if test -n "$file_magic_test_file"; then
14140 case $deplibs_check_method in
14141 "file_magic "*)
14142 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14145 $EGREP "$file_magic_regex" > /dev/null; then
14146 :
14147 else
14148 cat <<_LT_EOF 1>&2
14149
14150 *** Warning: the command libtool uses to detect shared libraries,
14151 *** $file_magic_cmd, produces output that libtool cannot recognize.
14152 *** The result is that libtool may fail to recognize shared libraries
14153 *** as such. This will affect the creation of libtool libraries that
14154 *** depend on shared libraries, but programs linked with such libtool
14155 *** libraries will work regardless of this problem. Nevertheless, you
14156 *** may want to report the problem to your system manager and/or to
14157 *** bug-libtool@gnu.org
14158
14159 _LT_EOF
14160 fi ;;
14161 esac
14162 fi
14163 break
14164 fi
14165 done
14166 IFS="$lt_save_ifs"
14167 MAGIC_CMD="$lt_save_MAGIC_CMD"
14168 ;;
14169 esac
14170 fi
14171
14172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14173 if test -n "$MAGIC_CMD"; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14175 $as_echo "$MAGIC_CMD" >&6; }
14176 else
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14179 fi
14180
14181
14182 else
14183 MAGIC_CMD=:
14184 fi
14185 fi
14186
14187 fi
14188 ;;
14189 esac
14190
14191 # Use C for the default configuration in the libtool script
14192
14193 lt_save_CC="$CC"
14194 ac_ext=c
14195 ac_cpp='$CPP $CPPFLAGS'
14196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14199
14200
14201 # Source file extension for C test sources.
14202 ac_ext=c
14203
14204 # Object file extension for compiled C test sources.
14205 objext=o
14206 objext=$objext
14207
14208 # Code to be used in simple compile tests
14209 lt_simple_compile_test_code="int some_variable = 0;"
14210
14211 # Code to be used in simple link tests
14212 lt_simple_link_test_code='int main(){return(0);}'
14213
14214
14215
14216
14217
14218
14219
14220 # If no C compiler was specified, use CC.
14221 LTCC=${LTCC-"$CC"}
14222
14223 # If no C compiler flags were specified, use CFLAGS.
14224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14225
14226 # Allow CC to be a program name with arguments.
14227 compiler=$CC
14228
14229 # Save the default compiler, since it gets overwritten when the other
14230 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14231 compiler_DEFAULT=$CC
14232
14233 # save warnings/boilerplate of simple test code
14234 ac_outfile=conftest.$ac_objext
14235 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14236 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14237 _lt_compiler_boilerplate=`cat conftest.err`
14238 $RM conftest*
14239
14240 ac_outfile=conftest.$ac_objext
14241 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14242 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14243 _lt_linker_boilerplate=`cat conftest.err`
14244 $RM -r conftest*
14245
14246
14247 ## CAVEAT EMPTOR:
14248 ## There is no encapsulation within the following macros, do not change
14249 ## the running order or otherwise move them around unless you know exactly
14250 ## what you are doing...
14251 if test -n "$compiler"; then
14252
14253 lt_prog_compiler_no_builtin_flag=
14254
14255 if test "$GCC" = yes; then
14256 case $cc_basename in
14257 nvcc*)
14258 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14259 *)
14260 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14261 esac
14262
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14264 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14265 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14266 $as_echo_n "(cached) " >&6
14267 else
14268 lt_cv_prog_compiler_rtti_exceptions=no
14269 ac_outfile=conftest.$ac_objext
14270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14271 lt_compiler_flag="-fno-rtti -fno-exceptions"
14272 # Insert the option either (1) after the last *FLAGS variable, or
14273 # (2) before a word containing "conftest.", or (3) at the end.
14274 # Note that $ac_compile itself does not contain backslashes and begins
14275 # with a dollar sign (not a hyphen), so the echo should work correctly.
14276 # The option is referenced via a variable to avoid confusing sed.
14277 lt_compile=`echo "$ac_compile" | $SED \
14278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14280 -e 's:$: $lt_compiler_flag:'`
14281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14282 (eval "$lt_compile" 2>conftest.err)
14283 ac_status=$?
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 if (exit $ac_status) && test -s "$ac_outfile"; then
14287 # The compiler can only warn and ignore the option if not recognized
14288 # So say no if there are warnings other than the usual output.
14289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14292 lt_cv_prog_compiler_rtti_exceptions=yes
14293 fi
14294 fi
14295 $RM conftest*
14296
14297 fi
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14299 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14300
14301 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14302 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14303 else
14304 :
14305 fi
14306
14307 fi
14308
14309
14310
14311
14312
14313
14314 lt_prog_compiler_wl=
14315 lt_prog_compiler_pic=
14316 lt_prog_compiler_static=
14317
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14319 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14320
14321 if test "$GCC" = yes; then
14322 lt_prog_compiler_wl='-Wl,'
14323 lt_prog_compiler_static='-static'
14324
14325 case $host_os in
14326 aix*)
14327 # All AIX code is PIC.
14328 if test "$host_cpu" = ia64; then
14329 # AIX 5 now supports IA64 processor
14330 lt_prog_compiler_static='-Bstatic'
14331 fi
14332 ;;
14333
14334 amigaos*)
14335 case $host_cpu in
14336 powerpc)
14337 # see comment about AmigaOS4 .so support
14338 lt_prog_compiler_pic='-fPIC'
14339 ;;
14340 m68k)
14341 # FIXME: we need at least 68020 code to build shared libraries, but
14342 # adding the `-m68020' flag to GCC prevents building anything better,
14343 # like `-m68040'.
14344 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14345 ;;
14346 esac
14347 ;;
14348
14349 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14350 # PIC is the default for these OSes.
14351 ;;
14352
14353 mingw* | cygwin* | pw32* | os2* | cegcc*)
14354 # This hack is so that the source file can tell whether it is being
14355 # built for inclusion in a dll (and should export symbols for example).
14356 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14357 # (--disable-auto-import) libraries
14358 lt_prog_compiler_pic='-DDLL_EXPORT'
14359 ;;
14360
14361 darwin* | rhapsody*)
14362 # PIC is the default on this platform
14363 # Common symbols not allowed in MH_DYLIB files
14364 lt_prog_compiler_pic='-fno-common'
14365 ;;
14366
14367 haiku*)
14368 # PIC is the default for Haiku.
14369 # The "-static" flag exists, but is broken.
14370 lt_prog_compiler_static=
14371 ;;
14372
14373 hpux*)
14374 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14375 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14376 # sets the default TLS model and affects inlining.
14377 case $host_cpu in
14378 hppa*64*)
14379 # +Z the default
14380 ;;
14381 *)
14382 lt_prog_compiler_pic='-fPIC'
14383 ;;
14384 esac
14385 ;;
14386
14387 interix[3-9]*)
14388 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14389 # Instead, we relocate shared libraries at runtime.
14390 ;;
14391
14392 msdosdjgpp*)
14393 # Just because we use GCC doesn't mean we suddenly get shared libraries
14394 # on systems that don't support them.
14395 lt_prog_compiler_can_build_shared=no
14396 enable_shared=no
14397 ;;
14398
14399 *nto* | *qnx*)
14400 # QNX uses GNU C++, but need to define -shared option too, otherwise
14401 # it will coredump.
14402 lt_prog_compiler_pic='-fPIC -shared'
14403 ;;
14404
14405 sysv4*MP*)
14406 if test -d /usr/nec; then
14407 lt_prog_compiler_pic=-Kconform_pic
14408 fi
14409 ;;
14410
14411 *)
14412 lt_prog_compiler_pic='-fPIC'
14413 ;;
14414 esac
14415
14416 case $cc_basename in
14417 nvcc*) # Cuda Compiler Driver 2.2
14418 lt_prog_compiler_wl='-Xlinker '
14419 lt_prog_compiler_pic='-Xcompiler -fPIC'
14420 ;;
14421 esac
14422 else
14423 # PORTME Check for flag to pass linker flags through the system compiler.
14424 case $host_os in
14425 aix*)
14426 lt_prog_compiler_wl='-Wl,'
14427 if test "$host_cpu" = ia64; then
14428 # AIX 5 now supports IA64 processor
14429 lt_prog_compiler_static='-Bstatic'
14430 else
14431 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14432 fi
14433 ;;
14434
14435 mingw* | cygwin* | pw32* | os2* | cegcc*)
14436 # This hack is so that the source file can tell whether it is being
14437 # built for inclusion in a dll (and should export symbols for example).
14438 lt_prog_compiler_pic='-DDLL_EXPORT'
14439 ;;
14440
14441 hpux9* | hpux10* | hpux11*)
14442 lt_prog_compiler_wl='-Wl,'
14443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14444 # not for PA HP-UX.
14445 case $host_cpu in
14446 hppa*64*|ia64*)
14447 # +Z the default
14448 ;;
14449 *)
14450 lt_prog_compiler_pic='+Z'
14451 ;;
14452 esac
14453 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14454 lt_prog_compiler_static='${wl}-a ${wl}archive'
14455 ;;
14456
14457 irix5* | irix6* | nonstopux*)
14458 lt_prog_compiler_wl='-Wl,'
14459 # PIC (with -KPIC) is the default.
14460 lt_prog_compiler_static='-non_shared'
14461 ;;
14462
14463 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14464 case $cc_basename in
14465 # old Intel for x86_64 which still supported -KPIC.
14466 ecc*)
14467 lt_prog_compiler_wl='-Wl,'
14468 lt_prog_compiler_pic='-KPIC'
14469 lt_prog_compiler_static='-static'
14470 ;;
14471 # icc used to be incompatible with GCC.
14472 # ICC 10 doesn't accept -KPIC any more.
14473 icc* | ifort*)
14474 lt_prog_compiler_wl='-Wl,'
14475 lt_prog_compiler_pic='-fPIC'
14476 lt_prog_compiler_static='-static'
14477 ;;
14478 # Lahey Fortran 8.1.
14479 lf95*)
14480 lt_prog_compiler_wl='-Wl,'
14481 lt_prog_compiler_pic='--shared'
14482 lt_prog_compiler_static='--static'
14483 ;;
14484 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14485 # Portland Group compilers (*not* the Pentium gcc compiler,
14486 # which looks to be a dead project)
14487 lt_prog_compiler_wl='-Wl,'
14488 lt_prog_compiler_pic='-fpic'
14489 lt_prog_compiler_static='-Bstatic'
14490 ;;
14491 ccc*)
14492 lt_prog_compiler_wl='-Wl,'
14493 # All Alpha code is PIC.
14494 lt_prog_compiler_static='-non_shared'
14495 ;;
14496 xl* | bgxl* | bgf* | mpixl*)
14497 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14498 lt_prog_compiler_wl='-Wl,'
14499 lt_prog_compiler_pic='-qpic'
14500 lt_prog_compiler_static='-qstaticlink'
14501 ;;
14502 *)
14503 case `$CC -V 2>&1 | sed 5q` in
14504 *Sun\ F* | *Sun*Fortran*)
14505 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14506 lt_prog_compiler_pic='-KPIC'
14507 lt_prog_compiler_static='-Bstatic'
14508 lt_prog_compiler_wl=''
14509 ;;
14510 *Sun\ C*)
14511 # Sun C 5.9
14512 lt_prog_compiler_pic='-KPIC'
14513 lt_prog_compiler_static='-Bstatic'
14514 lt_prog_compiler_wl='-Wl,'
14515 ;;
14516 esac
14517 ;;
14518 esac
14519 ;;
14520
14521 newsos6)
14522 lt_prog_compiler_pic='-KPIC'
14523 lt_prog_compiler_static='-Bstatic'
14524 ;;
14525
14526 *nto* | *qnx*)
14527 # QNX uses GNU C++, but need to define -shared option too, otherwise
14528 # it will coredump.
14529 lt_prog_compiler_pic='-fPIC -shared'
14530 ;;
14531
14532 osf3* | osf4* | osf5*)
14533 lt_prog_compiler_wl='-Wl,'
14534 # All OSF/1 code is PIC.
14535 lt_prog_compiler_static='-non_shared'
14536 ;;
14537
14538 rdos*)
14539 lt_prog_compiler_static='-non_shared'
14540 ;;
14541
14542 solaris*)
14543 lt_prog_compiler_pic='-KPIC'
14544 lt_prog_compiler_static='-Bstatic'
14545 case $cc_basename in
14546 f77* | f90* | f95*)
14547 lt_prog_compiler_wl='-Qoption ld ';;
14548 *)
14549 lt_prog_compiler_wl='-Wl,';;
14550 esac
14551 ;;
14552
14553 sunos4*)
14554 lt_prog_compiler_wl='-Qoption ld '
14555 lt_prog_compiler_pic='-PIC'
14556 lt_prog_compiler_static='-Bstatic'
14557 ;;
14558
14559 sysv4 | sysv4.2uw2* | sysv4.3*)
14560 lt_prog_compiler_wl='-Wl,'
14561 lt_prog_compiler_pic='-KPIC'
14562 lt_prog_compiler_static='-Bstatic'
14563 ;;
14564
14565 sysv4*MP*)
14566 if test -d /usr/nec ;then
14567 lt_prog_compiler_pic='-Kconform_pic'
14568 lt_prog_compiler_static='-Bstatic'
14569 fi
14570 ;;
14571
14572 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14573 lt_prog_compiler_wl='-Wl,'
14574 lt_prog_compiler_pic='-KPIC'
14575 lt_prog_compiler_static='-Bstatic'
14576 ;;
14577
14578 unicos*)
14579 lt_prog_compiler_wl='-Wl,'
14580 lt_prog_compiler_can_build_shared=no
14581 ;;
14582
14583 uts4*)
14584 lt_prog_compiler_pic='-pic'
14585 lt_prog_compiler_static='-Bstatic'
14586 ;;
14587
14588 *)
14589 lt_prog_compiler_can_build_shared=no
14590 ;;
14591 esac
14592 fi
14593
14594 case $host_os in
14595 # For platforms which do not support PIC, -DPIC is meaningless:
14596 *djgpp*)
14597 lt_prog_compiler_pic=
14598 ;;
14599 *)
14600 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14601 ;;
14602 esac
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14604 $as_echo "$lt_prog_compiler_pic" >&6; }
14605
14606
14607
14608
14609
14610
14611 #
14612 # Check to make sure the PIC flag actually works.
14613 #
14614 if test -n "$lt_prog_compiler_pic"; then
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14616 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14617 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14618 $as_echo_n "(cached) " >&6
14619 else
14620 lt_cv_prog_compiler_pic_works=no
14621 ac_outfile=conftest.$ac_objext
14622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14623 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14624 # Insert the option either (1) after the last *FLAGS variable, or
14625 # (2) before a word containing "conftest.", or (3) at the end.
14626 # Note that $ac_compile itself does not contain backslashes and begins
14627 # with a dollar sign (not a hyphen), so the echo should work correctly.
14628 # The option is referenced via a variable to avoid confusing sed.
14629 lt_compile=`echo "$ac_compile" | $SED \
14630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14632 -e 's:$: $lt_compiler_flag:'`
14633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14634 (eval "$lt_compile" 2>conftest.err)
14635 ac_status=$?
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 if (exit $ac_status) && test -s "$ac_outfile"; then
14639 # The compiler can only warn and ignore the option if not recognized
14640 # So say no if there are warnings other than the usual output.
14641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14644 lt_cv_prog_compiler_pic_works=yes
14645 fi
14646 fi
14647 $RM conftest*
14648
14649 fi
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14651 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14652
14653 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14654 case $lt_prog_compiler_pic in
14655 "" | " "*) ;;
14656 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14657 esac
14658 else
14659 lt_prog_compiler_pic=
14660 lt_prog_compiler_can_build_shared=no
14661 fi
14662
14663 fi
14664
14665
14666
14667
14668
14669
14670 #
14671 # Check to make sure the static flag actually works.
14672 #
14673 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14675 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14676 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14677 $as_echo_n "(cached) " >&6
14678 else
14679 lt_cv_prog_compiler_static_works=no
14680 save_LDFLAGS="$LDFLAGS"
14681 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14682 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14683 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14684 # The linker can only warn and ignore the option if not recognized
14685 # So say no if there are warnings
14686 if test -s conftest.err; then
14687 # Append any errors to the config.log.
14688 cat conftest.err 1>&5
14689 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14691 if diff conftest.exp conftest.er2 >/dev/null; then
14692 lt_cv_prog_compiler_static_works=yes
14693 fi
14694 else
14695 lt_cv_prog_compiler_static_works=yes
14696 fi
14697 fi
14698 $RM -r conftest*
14699 LDFLAGS="$save_LDFLAGS"
14700
14701 fi
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14703 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14704
14705 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14706 :
14707 else
14708 lt_prog_compiler_static=
14709 fi
14710
14711
14712
14713
14714
14715
14716
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14719 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14720 $as_echo_n "(cached) " >&6
14721 else
14722 lt_cv_prog_compiler_c_o=no
14723 $RM -r conftest 2>/dev/null
14724 mkdir conftest
14725 cd conftest
14726 mkdir out
14727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14728
14729 lt_compiler_flag="-o out/conftest2.$ac_objext"
14730 # Insert the option either (1) after the last *FLAGS variable, or
14731 # (2) before a word containing "conftest.", or (3) at the end.
14732 # Note that $ac_compile itself does not contain backslashes and begins
14733 # with a dollar sign (not a hyphen), so the echo should work correctly.
14734 lt_compile=`echo "$ac_compile" | $SED \
14735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14737 -e 's:$: $lt_compiler_flag:'`
14738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14739 (eval "$lt_compile" 2>out/conftest.err)
14740 ac_status=$?
14741 cat out/conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14744 then
14745 # The compiler can only warn and ignore the option if not recognized
14746 # So say no if there are warnings
14747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14750 lt_cv_prog_compiler_c_o=yes
14751 fi
14752 fi
14753 chmod u+w . 2>&5
14754 $RM conftest*
14755 # SGI C++ compiler will create directory out/ii_files/ for
14756 # template instantiation
14757 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14758 $RM out/* && rmdir out
14759 cd ..
14760 $RM -r conftest
14761 $RM conftest*
14762
14763 fi
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14765 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14766
14767
14768
14769
14770
14771
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14773 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14774 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14775 $as_echo_n "(cached) " >&6
14776 else
14777 lt_cv_prog_compiler_c_o=no
14778 $RM -r conftest 2>/dev/null
14779 mkdir conftest
14780 cd conftest
14781 mkdir out
14782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14783
14784 lt_compiler_flag="-o out/conftest2.$ac_objext"
14785 # Insert the option either (1) after the last *FLAGS variable, or
14786 # (2) before a word containing "conftest.", or (3) at the end.
14787 # Note that $ac_compile itself does not contain backslashes and begins
14788 # with a dollar sign (not a hyphen), so the echo should work correctly.
14789 lt_compile=`echo "$ac_compile" | $SED \
14790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14792 -e 's:$: $lt_compiler_flag:'`
14793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14794 (eval "$lt_compile" 2>out/conftest.err)
14795 ac_status=$?
14796 cat out/conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14799 then
14800 # The compiler can only warn and ignore the option if not recognized
14801 # So say no if there are warnings
14802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14805 lt_cv_prog_compiler_c_o=yes
14806 fi
14807 fi
14808 chmod u+w . 2>&5
14809 $RM conftest*
14810 # SGI C++ compiler will create directory out/ii_files/ for
14811 # template instantiation
14812 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14813 $RM out/* && rmdir out
14814 cd ..
14815 $RM -r conftest
14816 $RM conftest*
14817
14818 fi
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14820 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14821
14822
14823
14824
14825 hard_links="nottested"
14826 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14827 # do not overwrite the value of need_locks provided by the user
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14829 $as_echo_n "checking if we can lock with hard links... " >&6; }
14830 hard_links=yes
14831 $RM conftest*
14832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14833 touch conftest.a
14834 ln conftest.a conftest.b 2>&5 || hard_links=no
14835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14837 $as_echo "$hard_links" >&6; }
14838 if test "$hard_links" = no; then
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14840 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14841 need_locks=warn
14842 fi
14843 else
14844 need_locks=no
14845 fi
14846
14847
14848
14849
14850
14851
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14853 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14854
14855 runpath_var=
14856 allow_undefined_flag=
14857 always_export_symbols=no
14858 archive_cmds=
14859 archive_expsym_cmds=
14860 compiler_needs_object=no
14861 enable_shared_with_static_runtimes=no
14862 export_dynamic_flag_spec=
14863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14864 hardcode_automatic=no
14865 hardcode_direct=no
14866 hardcode_direct_absolute=no
14867 hardcode_libdir_flag_spec=
14868 hardcode_libdir_flag_spec_ld=
14869 hardcode_libdir_separator=
14870 hardcode_minus_L=no
14871 hardcode_shlibpath_var=unsupported
14872 inherit_rpath=no
14873 link_all_deplibs=unknown
14874 module_cmds=
14875 module_expsym_cmds=
14876 old_archive_from_new_cmds=
14877 old_archive_from_expsyms_cmds=
14878 thread_safe_flag_spec=
14879 whole_archive_flag_spec=
14880 # include_expsyms should be a list of space-separated symbols to be *always*
14881 # included in the symbol list
14882 include_expsyms=
14883 # exclude_expsyms can be an extended regexp of symbols to exclude
14884 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14885 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14886 # as well as any symbol that contains `d'.
14887 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14888 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14889 # platforms (ab)use it in PIC code, but their linkers get confused if
14890 # the symbol is explicitly referenced. Since portable code cannot
14891 # rely on this symbol name, it's probably fine to never include it in
14892 # preloaded symbol tables.
14893 # Exclude shared library initialization/finalization symbols.
14894 extract_expsyms_cmds=
14895
14896 case $host_os in
14897 cygwin* | mingw* | pw32* | cegcc*)
14898 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14899 # When not using gcc, we currently assume that we are using
14900 # Microsoft Visual C++.
14901 if test "$GCC" != yes; then
14902 with_gnu_ld=no
14903 fi
14904 ;;
14905 interix*)
14906 # we just hope/assume this is gcc and not c89 (= MSVC++)
14907 with_gnu_ld=yes
14908 ;;
14909 openbsd*)
14910 with_gnu_ld=no
14911 ;;
14912 esac
14913
14914 ld_shlibs=yes
14915
14916 # On some targets, GNU ld is compatible enough with the native linker
14917 # that we're better off using the native interface for both.
14918 lt_use_gnu_ld_interface=no
14919 if test "$with_gnu_ld" = yes; then
14920 case $host_os in
14921 aix*)
14922 # The AIX port of GNU ld has always aspired to compatibility
14923 # with the native linker. However, as the warning in the GNU ld
14924 # block says, versions before 2.19.5* couldn't really create working
14925 # shared libraries, regardless of the interface used.
14926 case `$LD -v 2>&1` in
14927 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14928 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14929 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14930 *)
14931 lt_use_gnu_ld_interface=yes
14932 ;;
14933 esac
14934 ;;
14935 *)
14936 lt_use_gnu_ld_interface=yes
14937 ;;
14938 esac
14939 fi
14940
14941 if test "$lt_use_gnu_ld_interface" = yes; then
14942 # If archive_cmds runs LD, not CC, wlarc should be empty
14943 wlarc='${wl}'
14944
14945 # Set some defaults for GNU ld with shared library support. These
14946 # are reset later if shared libraries are not supported. Putting them
14947 # here allows them to be overridden if necessary.
14948 runpath_var=LD_RUN_PATH
14949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14950 export_dynamic_flag_spec='${wl}--export-dynamic'
14951 # ancient GNU ld didn't support --whole-archive et. al.
14952 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14953 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14954 else
14955 whole_archive_flag_spec=
14956 fi
14957 supports_anon_versioning=no
14958 case `$LD -v 2>&1` in
14959 *GNU\ gold*) supports_anon_versioning=yes ;;
14960 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14961 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14962 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14963 *\ 2.11.*) ;; # other 2.11 versions
14964 *) supports_anon_versioning=yes ;;
14965 esac
14966
14967 # See if GNU ld supports shared libraries.
14968 case $host_os in
14969 aix[3-9]*)
14970 # On AIX/PPC, the GNU linker is very broken
14971 if test "$host_cpu" != ia64; then
14972 ld_shlibs=no
14973 cat <<_LT_EOF 1>&2
14974
14975 *** Warning: the GNU linker, at least up to release 2.19, is reported
14976 *** to be unable to reliably create shared libraries on AIX.
14977 *** Therefore, libtool is disabling shared libraries support. If you
14978 *** really care for shared libraries, you may want to install binutils
14979 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14980 *** You will then need to restart the configuration process.
14981
14982 _LT_EOF
14983 fi
14984 ;;
14985
14986 amigaos*)
14987 case $host_cpu in
14988 powerpc)
14989 # see comment about AmigaOS4 .so support
14990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14991 archive_expsym_cmds=''
14992 ;;
14993 m68k)
14994 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)'
14995 hardcode_libdir_flag_spec='-L$libdir'
14996 hardcode_minus_L=yes
14997 ;;
14998 esac
14999 ;;
15000
15001 beos*)
15002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15003 allow_undefined_flag=unsupported
15004 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15005 # support --undefined. This deserves some investigation. FIXME
15006 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15007 else
15008 ld_shlibs=no
15009 fi
15010 ;;
15011
15012 cygwin* | mingw* | pw32* | cegcc*)
15013 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15014 # as there is no search path for DLLs.
15015 hardcode_libdir_flag_spec='-L$libdir'
15016 export_dynamic_flag_spec='${wl}--export-all-symbols'
15017 allow_undefined_flag=unsupported
15018 always_export_symbols=no
15019 enable_shared_with_static_runtimes=yes
15020 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15021
15022 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15024 # If the export-symbols file already is a .def file (1st line
15025 # is EXPORTS), use it as is; otherwise, prepend...
15026 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15027 cp $export_symbols $output_objdir/$soname.def;
15028 else
15029 echo EXPORTS > $output_objdir/$soname.def;
15030 cat $export_symbols >> $output_objdir/$soname.def;
15031 fi~
15032 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15033 else
15034 ld_shlibs=no
15035 fi
15036 ;;
15037
15038 haiku*)
15039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15040 link_all_deplibs=yes
15041 ;;
15042
15043 interix[3-9]*)
15044 hardcode_direct=no
15045 hardcode_shlibpath_var=no
15046 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15047 export_dynamic_flag_spec='${wl}-E'
15048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15049 # Instead, shared libraries are loaded at an image base (0x10000000 by
15050 # default) and relocated if they conflict, which is a slow very memory
15051 # consuming and fragmenting process. To avoid this, we pick a random,
15052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15053 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15055 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'
15056 ;;
15057
15058 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15059 tmp_diet=no
15060 if test "$host_os" = linux-dietlibc; then
15061 case $cc_basename in
15062 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15063 esac
15064 fi
15065 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15066 && test "$tmp_diet" = no
15067 then
15068 tmp_addflag=
15069 tmp_sharedflag='-shared'
15070 case $cc_basename,$host_cpu in
15071 pgcc*) # Portland Group C compiler
15072 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'
15073 tmp_addflag=' $pic_flag'
15074 ;;
15075 pgf77* | pgf90* | pgf95* | pgfortran*)
15076 # Portland Group f77 and f90 compilers
15077 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'
15078 tmp_addflag=' $pic_flag -Mnomain' ;;
15079 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15080 tmp_addflag=' -i_dynamic' ;;
15081 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15082 tmp_addflag=' -i_dynamic -nofor_main' ;;
15083 ifc* | ifort*) # Intel Fortran compiler
15084 tmp_addflag=' -nofor_main' ;;
15085 lf95*) # Lahey Fortran 8.1
15086 whole_archive_flag_spec=
15087 tmp_sharedflag='--shared' ;;
15088 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15089 tmp_sharedflag='-qmkshrobj'
15090 tmp_addflag= ;;
15091 nvcc*) # Cuda Compiler Driver 2.2
15092 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'
15093 compiler_needs_object=yes
15094 ;;
15095 esac
15096 case `$CC -V 2>&1 | sed 5q` in
15097 *Sun\ C*) # Sun C 5.9
15098 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'
15099 compiler_needs_object=yes
15100 tmp_sharedflag='-G' ;;
15101 *Sun\ F*) # Sun Fortran 8.3
15102 tmp_sharedflag='-G' ;;
15103 esac
15104 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15105
15106 if test "x$supports_anon_versioning" = xyes; then
15107 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15109 echo "local: *; };" >> $output_objdir/$libname.ver~
15110 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15111 fi
15112
15113 case $cc_basename in
15114 xlf* | bgf* | bgxlf* | mpixlf*)
15115 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15116 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15117 hardcode_libdir_flag_spec=
15118 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15119 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15120 if test "x$supports_anon_versioning" = xyes; then
15121 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15123 echo "local: *; };" >> $output_objdir/$libname.ver~
15124 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15125 fi
15126 ;;
15127 esac
15128 else
15129 ld_shlibs=no
15130 fi
15131 ;;
15132
15133 netbsd*)
15134 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15135 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15136 wlarc=
15137 else
15138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15140 fi
15141 ;;
15142
15143 solaris*)
15144 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15145 ld_shlibs=no
15146 cat <<_LT_EOF 1>&2
15147
15148 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15149 *** create shared libraries on Solaris systems. Therefore, libtool
15150 *** is disabling shared libraries support. We urge you to upgrade GNU
15151 *** binutils to release 2.9.1 or newer. Another option is to modify
15152 *** your PATH or compiler configuration so that the native linker is
15153 *** used, and then restart.
15154
15155 _LT_EOF
15156 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15159 else
15160 ld_shlibs=no
15161 fi
15162 ;;
15163
15164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15165 case `$LD -v 2>&1` in
15166 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15167 ld_shlibs=no
15168 cat <<_LT_EOF 1>&2
15169
15170 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15171 *** reliably create shared libraries on SCO systems. Therefore, libtool
15172 *** is disabling shared libraries support. We urge you to upgrade GNU
15173 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15174 *** your PATH or compiler configuration so that the native linker is
15175 *** used, and then restart.
15176
15177 _LT_EOF
15178 ;;
15179 *)
15180 # For security reasons, it is highly recommended that you always
15181 # use absolute paths for naming shared libraries, and exclude the
15182 # DT_RUNPATH tag from executables and libraries. But doing so
15183 # requires that you compile everything twice, which is a pain.
15184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15188 else
15189 ld_shlibs=no
15190 fi
15191 ;;
15192 esac
15193 ;;
15194
15195 sunos4*)
15196 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15197 wlarc=
15198 hardcode_direct=yes
15199 hardcode_shlibpath_var=no
15200 ;;
15201
15202 *)
15203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15206 else
15207 ld_shlibs=no
15208 fi
15209 ;;
15210 esac
15211
15212 if test "$ld_shlibs" = no; then
15213 runpath_var=
15214 hardcode_libdir_flag_spec=
15215 export_dynamic_flag_spec=
15216 whole_archive_flag_spec=
15217 fi
15218 else
15219 # PORTME fill in a description of your system's linker (not GNU ld)
15220 case $host_os in
15221 aix3*)
15222 allow_undefined_flag=unsupported
15223 always_export_symbols=yes
15224 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'
15225 # Note: this linker hardcodes the directories in LIBPATH if there
15226 # are no directories specified by -L.
15227 hardcode_minus_L=yes
15228 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15229 # Neither direct hardcoding nor static linking is supported with a
15230 # broken collect2.
15231 hardcode_direct=unsupported
15232 fi
15233 ;;
15234
15235 aix[4-9]*)
15236 if test "$host_cpu" = ia64; then
15237 # On IA64, the linker does run time linking by default, so we don't
15238 # have to do anything special.
15239 aix_use_runtimelinking=no
15240 exp_sym_flag='-Bexport'
15241 no_entry_flag=""
15242 else
15243 # If we're using GNU nm, then we don't want the "-C" option.
15244 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15245 # Also, AIX nm treats weak defined symbols like other global
15246 # defined symbols, whereas GNU nm marks them as "W".
15247 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15248 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'
15249 else
15250 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15251 fi
15252 aix_use_runtimelinking=no
15253
15254 # Test if we are trying to use run time linking or normal
15255 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15256 # need to do runtime linking.
15257 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15258 for ld_flag in $LDFLAGS; do
15259 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15260 aix_use_runtimelinking=yes
15261 break
15262 fi
15263 done
15264 ;;
15265 esac
15266
15267 exp_sym_flag='-bexport'
15268 no_entry_flag='-bnoentry'
15269 fi
15270
15271 # When large executables or shared objects are built, AIX ld can
15272 # have problems creating the table of contents. If linking a library
15273 # or program results in "error TOC overflow" add -mminimal-toc to
15274 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15275 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15276
15277 archive_cmds=''
15278 hardcode_direct=yes
15279 hardcode_direct_absolute=yes
15280 hardcode_libdir_separator=':'
15281 link_all_deplibs=yes
15282 file_list_spec='${wl}-f,'
15283
15284 if test "$GCC" = yes; then
15285 case $host_os in aix4.[012]|aix4.[012].*)
15286 # We only want to do this on AIX 4.2 and lower, the check
15287 # below for broken collect2 doesn't work under 4.3+
15288 collect2name=`${CC} -print-prog-name=collect2`
15289 if test -f "$collect2name" &&
15290 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15291 then
15292 # We have reworked collect2
15293 :
15294 else
15295 # We have old collect2
15296 hardcode_direct=unsupported
15297 # It fails to find uninstalled libraries when the uninstalled
15298 # path is not listed in the libpath. Setting hardcode_minus_L
15299 # to unsupported forces relinking
15300 hardcode_minus_L=yes
15301 hardcode_libdir_flag_spec='-L$libdir'
15302 hardcode_libdir_separator=
15303 fi
15304 ;;
15305 esac
15306 shared_flag='-shared'
15307 if test "$aix_use_runtimelinking" = yes; then
15308 shared_flag="$shared_flag "'${wl}-G'
15309 fi
15310 else
15311 # not using gcc
15312 if test "$host_cpu" = ia64; then
15313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15314 # chokes on -Wl,-G. The following line is correct:
15315 shared_flag='-G'
15316 else
15317 if test "$aix_use_runtimelinking" = yes; then
15318 shared_flag='${wl}-G'
15319 else
15320 shared_flag='${wl}-bM:SRE'
15321 fi
15322 fi
15323 fi
15324
15325 export_dynamic_flag_spec='${wl}-bexpall'
15326 # It seems that -bexpall does not export symbols beginning with
15327 # underscore (_), so it is better to generate a list of symbols to export.
15328 always_export_symbols=yes
15329 if test "$aix_use_runtimelinking" = yes; then
15330 # Warning - without using the other runtime loading flags (-brtl),
15331 # -berok will link without error, but may produce a broken library.
15332 allow_undefined_flag='-berok'
15333 # Determine the default libpath from the value encoded in an
15334 # empty executable.
15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h. */
15337
15338 int
15339 main ()
15340 {
15341
15342 ;
15343 return 0;
15344 }
15345 _ACEOF
15346 if ac_fn_c_try_link "$LINENO"; then :
15347
15348 lt_aix_libpath_sed='
15349 /Import File Strings/,/^$/ {
15350 /^0/ {
15351 s/^0 *\(.*\)$/\1/
15352 p
15353 }
15354 }'
15355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15356 # Check for a 64-bit object if we didn't find anything.
15357 if test -z "$aix_libpath"; then
15358 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15359 fi
15360 fi
15361 rm -f core conftest.err conftest.$ac_objext \
15362 conftest$ac_exeext conftest.$ac_ext
15363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15364
15365 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15366 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"
15367 else
15368 if test "$host_cpu" = ia64; then
15369 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15370 allow_undefined_flag="-z nodefs"
15371 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"
15372 else
15373 # Determine the default libpath from the value encoded in an
15374 # empty executable.
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15377
15378 int
15379 main ()
15380 {
15381
15382 ;
15383 return 0;
15384 }
15385 _ACEOF
15386 if ac_fn_c_try_link "$LINENO"; then :
15387
15388 lt_aix_libpath_sed='
15389 /Import File Strings/,/^$/ {
15390 /^0/ {
15391 s/^0 *\(.*\)$/\1/
15392 p
15393 }
15394 }'
15395 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15396 # Check for a 64-bit object if we didn't find anything.
15397 if test -z "$aix_libpath"; then
15398 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15399 fi
15400 fi
15401 rm -f core conftest.err conftest.$ac_objext \
15402 conftest$ac_exeext conftest.$ac_ext
15403 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15404
15405 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15406 # Warning - without using the other run time loading flags,
15407 # -berok will link without error, but may produce a broken library.
15408 no_undefined_flag=' ${wl}-bernotok'
15409 allow_undefined_flag=' ${wl}-berok'
15410 if test "$with_gnu_ld" = yes; then
15411 # We only use this code for GNU lds that support --whole-archive.
15412 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15413 else
15414 # Exported symbols can be pulled into shared objects from archives
15415 whole_archive_flag_spec='$convenience'
15416 fi
15417 archive_cmds_need_lc=yes
15418 # This is similar to how AIX traditionally builds its shared libraries.
15419 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'
15420 fi
15421 fi
15422 ;;
15423
15424 amigaos*)
15425 case $host_cpu in
15426 powerpc)
15427 # see comment about AmigaOS4 .so support
15428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15429 archive_expsym_cmds=''
15430 ;;
15431 m68k)
15432 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)'
15433 hardcode_libdir_flag_spec='-L$libdir'
15434 hardcode_minus_L=yes
15435 ;;
15436 esac
15437 ;;
15438
15439 bsdi[45]*)
15440 export_dynamic_flag_spec=-rdynamic
15441 ;;
15442
15443 cygwin* | mingw* | pw32* | cegcc*)
15444 # When not using gcc, we currently assume that we are using
15445 # Microsoft Visual C++.
15446 # hardcode_libdir_flag_spec is actually meaningless, as there is
15447 # no search path for DLLs.
15448 hardcode_libdir_flag_spec=' '
15449 allow_undefined_flag=unsupported
15450 # Tell ltmain to make .lib files, not .a files.
15451 libext=lib
15452 # Tell ltmain to make .dll files, not .so files.
15453 shrext_cmds=".dll"
15454 # FIXME: Setting linknames here is a bad hack.
15455 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15456 # The linker will automatically build a .lib file if we build a DLL.
15457 old_archive_from_new_cmds='true'
15458 # FIXME: Should let the user specify the lib program.
15459 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15460 fix_srcfile_path='`cygpath -w "$srcfile"`'
15461 enable_shared_with_static_runtimes=yes
15462 ;;
15463
15464 darwin* | rhapsody*)
15465
15466
15467 archive_cmds_need_lc=no
15468 hardcode_direct=no
15469 hardcode_automatic=yes
15470 hardcode_shlibpath_var=unsupported
15471 if test "$lt_cv_ld_force_load" = "yes"; then
15472 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\"`'
15473 else
15474 whole_archive_flag_spec=''
15475 fi
15476 link_all_deplibs=yes
15477 allow_undefined_flag="$_lt_dar_allow_undefined"
15478 case $cc_basename in
15479 ifort*) _lt_dar_can_shared=yes ;;
15480 *) _lt_dar_can_shared=$GCC ;;
15481 esac
15482 if test "$_lt_dar_can_shared" = "yes"; then
15483 output_verbose_link_cmd=func_echo_all
15484 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15485 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15486 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}"
15487 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}"
15488
15489 else
15490 ld_shlibs=no
15491 fi
15492
15493 ;;
15494
15495 dgux*)
15496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15497 hardcode_libdir_flag_spec='-L$libdir'
15498 hardcode_shlibpath_var=no
15499 ;;
15500
15501 freebsd1*)
15502 ld_shlibs=no
15503 ;;
15504
15505 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15506 # support. Future versions do this automatically, but an explicit c++rt0.o
15507 # does not break anything, and helps significantly (at the cost of a little
15508 # extra space).
15509 freebsd2.2*)
15510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15511 hardcode_libdir_flag_spec='-R$libdir'
15512 hardcode_direct=yes
15513 hardcode_shlibpath_var=no
15514 ;;
15515
15516 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15517 freebsd2*)
15518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15519 hardcode_direct=yes
15520 hardcode_minus_L=yes
15521 hardcode_shlibpath_var=no
15522 ;;
15523
15524 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15525 freebsd* | dragonfly*)
15526 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15527 hardcode_libdir_flag_spec='-R$libdir'
15528 hardcode_direct=yes
15529 hardcode_shlibpath_var=no
15530 ;;
15531
15532 hpux9*)
15533 if test "$GCC" = yes; then
15534 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'
15535 else
15536 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'
15537 fi
15538 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15539 hardcode_libdir_separator=:
15540 hardcode_direct=yes
15541
15542 # hardcode_minus_L: Not really in the search PATH,
15543 # but as the default location of the library.
15544 hardcode_minus_L=yes
15545 export_dynamic_flag_spec='${wl}-E'
15546 ;;
15547
15548 hpux10*)
15549 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15550 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15551 else
15552 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15553 fi
15554 if test "$with_gnu_ld" = no; then
15555 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15556 hardcode_libdir_flag_spec_ld='+b $libdir'
15557 hardcode_libdir_separator=:
15558 hardcode_direct=yes
15559 hardcode_direct_absolute=yes
15560 export_dynamic_flag_spec='${wl}-E'
15561 # hardcode_minus_L: Not really in the search PATH,
15562 # but as the default location of the library.
15563 hardcode_minus_L=yes
15564 fi
15565 ;;
15566
15567 hpux11*)
15568 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15569 case $host_cpu in
15570 hppa*64*)
15571 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15572 ;;
15573 ia64*)
15574 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15575 ;;
15576 *)
15577 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15578 ;;
15579 esac
15580 else
15581 case $host_cpu in
15582 hppa*64*)
15583 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15584 ;;
15585 ia64*)
15586 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15587 ;;
15588 *)
15589
15590 # Older versions of the 11.00 compiler do not understand -b yet
15591 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15593 $as_echo_n "checking if $CC understands -b... " >&6; }
15594 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15595 $as_echo_n "(cached) " >&6
15596 else
15597 lt_cv_prog_compiler__b=no
15598 save_LDFLAGS="$LDFLAGS"
15599 LDFLAGS="$LDFLAGS -b"
15600 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15601 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15602 # The linker can only warn and ignore the option if not recognized
15603 # So say no if there are warnings
15604 if test -s conftest.err; then
15605 # Append any errors to the config.log.
15606 cat conftest.err 1>&5
15607 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15609 if diff conftest.exp conftest.er2 >/dev/null; then
15610 lt_cv_prog_compiler__b=yes
15611 fi
15612 else
15613 lt_cv_prog_compiler__b=yes
15614 fi
15615 fi
15616 $RM -r conftest*
15617 LDFLAGS="$save_LDFLAGS"
15618
15619 fi
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15621 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15622
15623 if test x"$lt_cv_prog_compiler__b" = xyes; then
15624 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15625 else
15626 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15627 fi
15628
15629 ;;
15630 esac
15631 fi
15632 if test "$with_gnu_ld" = no; then
15633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15634 hardcode_libdir_separator=:
15635
15636 case $host_cpu in
15637 hppa*64*|ia64*)
15638 hardcode_direct=no
15639 hardcode_shlibpath_var=no
15640 ;;
15641 *)
15642 hardcode_direct=yes
15643 hardcode_direct_absolute=yes
15644 export_dynamic_flag_spec='${wl}-E'
15645
15646 # hardcode_minus_L: Not really in the search PATH,
15647 # but as the default location of the library.
15648 hardcode_minus_L=yes
15649 ;;
15650 esac
15651 fi
15652 ;;
15653
15654 irix5* | irix6* | nonstopux*)
15655 if test "$GCC" = yes; then
15656 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'
15657 # Try to use the -exported_symbol ld option, if it does not
15658 # work, assume that -exports_file does not work either and
15659 # implicitly export all symbols.
15660 save_LDFLAGS="$LDFLAGS"
15661 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15664 int foo(void) {}
15665 _ACEOF
15666 if ac_fn_c_try_link "$LINENO"; then :
15667 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'
15668
15669 fi
15670 rm -f core conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
15672 LDFLAGS="$save_LDFLAGS"
15673 else
15674 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'
15675 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'
15676 fi
15677 archive_cmds_need_lc='no'
15678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15679 hardcode_libdir_separator=:
15680 inherit_rpath=yes
15681 link_all_deplibs=yes
15682 ;;
15683
15684 netbsd*)
15685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15687 else
15688 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15689 fi
15690 hardcode_libdir_flag_spec='-R$libdir'
15691 hardcode_direct=yes
15692 hardcode_shlibpath_var=no
15693 ;;
15694
15695 newsos6)
15696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15697 hardcode_direct=yes
15698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15699 hardcode_libdir_separator=:
15700 hardcode_shlibpath_var=no
15701 ;;
15702
15703 *nto* | *qnx*)
15704 ;;
15705
15706 openbsd*)
15707 if test -f /usr/libexec/ld.so; then
15708 hardcode_direct=yes
15709 hardcode_shlibpath_var=no
15710 hardcode_direct_absolute=yes
15711 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15713 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15714 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15715 export_dynamic_flag_spec='${wl}-E'
15716 else
15717 case $host_os in
15718 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15720 hardcode_libdir_flag_spec='-R$libdir'
15721 ;;
15722 *)
15723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15724 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15725 ;;
15726 esac
15727 fi
15728 else
15729 ld_shlibs=no
15730 fi
15731 ;;
15732
15733 os2*)
15734 hardcode_libdir_flag_spec='-L$libdir'
15735 hardcode_minus_L=yes
15736 allow_undefined_flag=unsupported
15737 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'
15738 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15739 ;;
15740
15741 osf3*)
15742 if test "$GCC" = yes; then
15743 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15744 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'
15745 else
15746 allow_undefined_flag=' -expect_unresolved \*'
15747 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'
15748 fi
15749 archive_cmds_need_lc='no'
15750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15751 hardcode_libdir_separator=:
15752 ;;
15753
15754 osf4* | osf5*) # as osf3* with the addition of -msym flag
15755 if test "$GCC" = yes; then
15756 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15757 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'
15758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15759 else
15760 allow_undefined_flag=' -expect_unresolved \*'
15761 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'
15762 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~
15763 $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'
15764
15765 # Both c and cxx compiler support -rpath directly
15766 hardcode_libdir_flag_spec='-rpath $libdir'
15767 fi
15768 archive_cmds_need_lc='no'
15769 hardcode_libdir_separator=:
15770 ;;
15771
15772 solaris*)
15773 no_undefined_flag=' -z defs'
15774 if test "$GCC" = yes; then
15775 wlarc='${wl}'
15776 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15778 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15779 else
15780 case `$CC -V 2>&1` in
15781 *"Compilers 5.0"*)
15782 wlarc=''
15783 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15785 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15786 ;;
15787 *)
15788 wlarc='${wl}'
15789 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15790 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15791 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15792 ;;
15793 esac
15794 fi
15795 hardcode_libdir_flag_spec='-R$libdir'
15796 hardcode_shlibpath_var=no
15797 case $host_os in
15798 solaris2.[0-5] | solaris2.[0-5].*) ;;
15799 *)
15800 # The compiler driver will combine and reorder linker options,
15801 # but understands `-z linker_flag'. GCC discards it without `$wl',
15802 # but is careful enough not to reorder.
15803 # Supported since Solaris 2.6 (maybe 2.5.1?)
15804 if test "$GCC" = yes; then
15805 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15806 else
15807 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15808 fi
15809 ;;
15810 esac
15811 link_all_deplibs=yes
15812 ;;
15813
15814 sunos4*)
15815 if test "x$host_vendor" = xsequent; then
15816 # Use $CC to link under sequent, because it throws in some extra .o
15817 # files that make .init and .fini sections work.
15818 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15819 else
15820 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15821 fi
15822 hardcode_libdir_flag_spec='-L$libdir'
15823 hardcode_direct=yes
15824 hardcode_minus_L=yes
15825 hardcode_shlibpath_var=no
15826 ;;
15827
15828 sysv4)
15829 case $host_vendor in
15830 sni)
15831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15832 hardcode_direct=yes # is this really true???
15833 ;;
15834 siemens)
15835 ## LD is ld it makes a PLAMLIB
15836 ## CC just makes a GrossModule.
15837 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15838 reload_cmds='$CC -r -o $output$reload_objs'
15839 hardcode_direct=no
15840 ;;
15841 motorola)
15842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15844 ;;
15845 esac
15846 runpath_var='LD_RUN_PATH'
15847 hardcode_shlibpath_var=no
15848 ;;
15849
15850 sysv4.3*)
15851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15852 hardcode_shlibpath_var=no
15853 export_dynamic_flag_spec='-Bexport'
15854 ;;
15855
15856 sysv4*MP*)
15857 if test -d /usr/nec; then
15858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_shlibpath_var=no
15860 runpath_var=LD_RUN_PATH
15861 hardcode_runpath_var=yes
15862 ld_shlibs=yes
15863 fi
15864 ;;
15865
15866 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15867 no_undefined_flag='${wl}-z,text'
15868 archive_cmds_need_lc=no
15869 hardcode_shlibpath_var=no
15870 runpath_var='LD_RUN_PATH'
15871
15872 if test "$GCC" = yes; then
15873 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15874 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15875 else
15876 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15878 fi
15879 ;;
15880
15881 sysv5* | sco3.2v5* | sco5v6*)
15882 # Note: We can NOT use -z defs as we might desire, because we do not
15883 # link with -lc, and that would cause any symbols used from libc to
15884 # always be unresolved, which means just about no library would
15885 # ever link correctly. If we're not using GNU ld we use -z text
15886 # though, which does catch some bad symbols but isn't as heavy-handed
15887 # as -z defs.
15888 no_undefined_flag='${wl}-z,text'
15889 allow_undefined_flag='${wl}-z,nodefs'
15890 archive_cmds_need_lc=no
15891 hardcode_shlibpath_var=no
15892 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15893 hardcode_libdir_separator=':'
15894 link_all_deplibs=yes
15895 export_dynamic_flag_spec='${wl}-Bexport'
15896 runpath_var='LD_RUN_PATH'
15897
15898 if test "$GCC" = yes; then
15899 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15900 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15901 else
15902 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 fi
15905 ;;
15906
15907 uts4*)
15908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15909 hardcode_libdir_flag_spec='-L$libdir'
15910 hardcode_shlibpath_var=no
15911 ;;
15912
15913 *)
15914 ld_shlibs=no
15915 ;;
15916 esac
15917
15918 if test x$host_vendor = xsni; then
15919 case $host in
15920 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15921 export_dynamic_flag_spec='${wl}-Blargedynsym'
15922 ;;
15923 esac
15924 fi
15925 fi
15926
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15928 $as_echo "$ld_shlibs" >&6; }
15929 test "$ld_shlibs" = no && can_build_shared=no
15930
15931 with_gnu_ld=$with_gnu_ld
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947 #
15948 # Do we need to explicitly link libc?
15949 #
15950 case "x$archive_cmds_need_lc" in
15951 x|xyes)
15952 # Assume -lc should be added
15953 archive_cmds_need_lc=yes
15954
15955 if test "$enable_shared" = yes && test "$GCC" = yes; then
15956 case $archive_cmds in
15957 *'~'*)
15958 # FIXME: we may have to deal with multi-command sequences.
15959 ;;
15960 '$CC '*)
15961 # Test whether the compiler implicitly links with -lc since on some
15962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15963 # to ld, don't add -lc before -lgcc.
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15965 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15966 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15967 $as_echo_n "(cached) " >&6
15968 else
15969 $RM conftest*
15970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15971
15972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15973 (eval $ac_compile) 2>&5
15974 ac_status=$?
15975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15976 test $ac_status = 0; } 2>conftest.err; then
15977 soname=conftest
15978 lib=conftest
15979 libobjs=conftest.$ac_objext
15980 deplibs=
15981 wl=$lt_prog_compiler_wl
15982 pic_flag=$lt_prog_compiler_pic
15983 compiler_flags=-v
15984 linker_flags=-v
15985 verstring=
15986 output_objdir=.
15987 libname=conftest
15988 lt_save_allow_undefined_flag=$allow_undefined_flag
15989 allow_undefined_flag=
15990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15991 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15992 ac_status=$?
15993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15994 test $ac_status = 0; }
15995 then
15996 lt_cv_archive_cmds_need_lc=no
15997 else
15998 lt_cv_archive_cmds_need_lc=yes
15999 fi
16000 allow_undefined_flag=$lt_save_allow_undefined_flag
16001 else
16002 cat conftest.err 1>&5
16003 fi
16004 $RM conftest*
16005
16006 fi
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16008 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16009 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16010 ;;
16011 esac
16012 fi
16013 ;;
16014 esac
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16173 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16174
16175 if test "$GCC" = yes; then
16176 case $host_os in
16177 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16178 *) lt_awk_arg="/^libraries:/" ;;
16179 esac
16180 case $host_os in
16181 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16182 *) lt_sed_strip_eq="s,=/,/,g" ;;
16183 esac
16184 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16185 case $lt_search_path_spec in
16186 *\;*)
16187 # if the path contains ";" then we assume it to be the separator
16188 # otherwise default to the standard path separator (i.e. ":") - it is
16189 # assumed that no part of a normal pathname contains ";" but that should
16190 # okay in the real world where ";" in dirpaths is itself problematic.
16191 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16192 ;;
16193 *)
16194 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16195 ;;
16196 esac
16197 # Ok, now we have the path, separated by spaces, we can step through it
16198 # and add multilib dir if necessary.
16199 lt_tmp_lt_search_path_spec=
16200 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16201 for lt_sys_path in $lt_search_path_spec; do
16202 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16203 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16204 else
16205 test -d "$lt_sys_path" && \
16206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16207 fi
16208 done
16209 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16210 BEGIN {RS=" "; FS="/|\n";} {
16211 lt_foo="";
16212 lt_count=0;
16213 for (lt_i = NF; lt_i > 0; lt_i--) {
16214 if ($lt_i != "" && $lt_i != ".") {
16215 if ($lt_i == "..") {
16216 lt_count++;
16217 } else {
16218 if (lt_count == 0) {
16219 lt_foo="/" $lt_i lt_foo;
16220 } else {
16221 lt_count--;
16222 }
16223 }
16224 }
16225 }
16226 if (lt_foo != "") { lt_freq[lt_foo]++; }
16227 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16228 }'`
16229 # AWK program above erroneously prepends '/' to C:/dos/paths
16230 # for these hosts.
16231 case $host_os in
16232 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16233 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16234 esac
16235 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16236 else
16237 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16238 fi
16239 library_names_spec=
16240 libname_spec='lib$name'
16241 soname_spec=
16242 shrext_cmds=".so"
16243 postinstall_cmds=
16244 postuninstall_cmds=
16245 finish_cmds=
16246 finish_eval=
16247 shlibpath_var=
16248 shlibpath_overrides_runpath=unknown
16249 version_type=none
16250 dynamic_linker="$host_os ld.so"
16251 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16252 need_lib_prefix=unknown
16253 hardcode_into_libs=no
16254
16255 # when you set need_version to no, make sure it does not cause -set_version
16256 # flags to be left without arguments
16257 need_version=unknown
16258
16259 case $host_os in
16260 aix3*)
16261 version_type=linux
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16263 shlibpath_var=LIBPATH
16264
16265 # AIX 3 has no versioning support, so we append a major version to the name.
16266 soname_spec='${libname}${release}${shared_ext}$major'
16267 ;;
16268
16269 aix[4-9]*)
16270 version_type=linux
16271 need_lib_prefix=no
16272 need_version=no
16273 hardcode_into_libs=yes
16274 if test "$host_cpu" = ia64; then
16275 # AIX 5 supports IA64
16276 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16277 shlibpath_var=LD_LIBRARY_PATH
16278 else
16279 # With GCC up to 2.95.x, collect2 would create an import file
16280 # for dependence libraries. The import file would start with
16281 # the line `#! .'. This would cause the generated library to
16282 # depend on `.', always an invalid library. This was fixed in
16283 # development snapshots of GCC prior to 3.0.
16284 case $host_os in
16285 aix4 | aix4.[01] | aix4.[01].*)
16286 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16287 echo ' yes '
16288 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16289 :
16290 else
16291 can_build_shared=no
16292 fi
16293 ;;
16294 esac
16295 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16296 # soname into executable. Probably we can add versioning support to
16297 # collect2, so additional links can be useful in future.
16298 if test "$aix_use_runtimelinking" = yes; then
16299 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16300 # instead of lib<name>.a to let people know that these are not
16301 # typical AIX shared libraries.
16302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16303 else
16304 # We preserve .a as extension for shared libraries through AIX4.2
16305 # and later when we are not doing run time linking.
16306 library_names_spec='${libname}${release}.a $libname.a'
16307 soname_spec='${libname}${release}${shared_ext}$major'
16308 fi
16309 shlibpath_var=LIBPATH
16310 fi
16311 ;;
16312
16313 amigaos*)
16314 case $host_cpu in
16315 powerpc)
16316 # Since July 2007 AmigaOS4 officially supports .so libraries.
16317 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319 ;;
16320 m68k)
16321 library_names_spec='$libname.ixlibrary $libname.a'
16322 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16323 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'
16324 ;;
16325 esac
16326 ;;
16327
16328 beos*)
16329 library_names_spec='${libname}${shared_ext}'
16330 dynamic_linker="$host_os ld.so"
16331 shlibpath_var=LIBRARY_PATH
16332 ;;
16333
16334 bsdi[45]*)
16335 version_type=linux
16336 need_version=no
16337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338 soname_spec='${libname}${release}${shared_ext}$major'
16339 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16340 shlibpath_var=LD_LIBRARY_PATH
16341 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16342 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16343 # the default ld.so.conf also contains /usr/contrib/lib and
16344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16345 # libtool to hard-code these into programs
16346 ;;
16347
16348 cygwin* | mingw* | pw32* | cegcc*)
16349 version_type=windows
16350 shrext_cmds=".dll"
16351 need_version=no
16352 need_lib_prefix=no
16353
16354 case $GCC,$host_os in
16355 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16356 library_names_spec='$libname.dll.a'
16357 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16358 postinstall_cmds='base_file=`basename \${file}`~
16359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16360 dldir=$destdir/`dirname \$dlpath`~
16361 test -d \$dldir || mkdir -p \$dldir~
16362 $install_prog $dir/$dlname \$dldir/$dlname~
16363 chmod a+x \$dldir/$dlname~
16364 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16365 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16366 fi'
16367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16368 dlpath=$dir/\$dldll~
16369 $RM \$dlpath'
16370 shlibpath_overrides_runpath=yes
16371
16372 case $host_os in
16373 cygwin*)
16374 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16375 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16376
16377 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16378 ;;
16379 mingw* | cegcc*)
16380 # MinGW DLLs use traditional 'lib' prefix
16381 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16382 ;;
16383 pw32*)
16384 # pw32 DLLs use 'pw' prefix rather than 'lib'
16385 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16386 ;;
16387 esac
16388 ;;
16389
16390 *)
16391 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16392 ;;
16393 esac
16394 dynamic_linker='Win32 ld.exe'
16395 # FIXME: first we should search . and the directory the executable is in
16396 shlibpath_var=PATH
16397 ;;
16398
16399 darwin* | rhapsody*)
16400 dynamic_linker="$host_os dyld"
16401 version_type=darwin
16402 need_lib_prefix=no
16403 need_version=no
16404 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16405 soname_spec='${libname}${release}${major}$shared_ext'
16406 shlibpath_overrides_runpath=yes
16407 shlibpath_var=DYLD_LIBRARY_PATH
16408 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16409
16410 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16412 ;;
16413
16414 dgux*)
16415 version_type=linux
16416 need_lib_prefix=no
16417 need_version=no
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 ;;
16422
16423 freebsd1*)
16424 dynamic_linker=no
16425 ;;
16426
16427 freebsd* | dragonfly*)
16428 # DragonFly does not have aout. When/if they implement a new
16429 # versioning mechanism, adjust this.
16430 if test -x /usr/bin/objformat; then
16431 objformat=`/usr/bin/objformat`
16432 else
16433 case $host_os in
16434 freebsd[123]*) objformat=aout ;;
16435 *) objformat=elf ;;
16436 esac
16437 fi
16438 version_type=freebsd-$objformat
16439 case $version_type in
16440 freebsd-elf*)
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16442 need_version=no
16443 need_lib_prefix=no
16444 ;;
16445 freebsd-*)
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16447 need_version=yes
16448 ;;
16449 esac
16450 shlibpath_var=LD_LIBRARY_PATH
16451 case $host_os in
16452 freebsd2*)
16453 shlibpath_overrides_runpath=yes
16454 ;;
16455 freebsd3.[01]* | freebsdelf3.[01]*)
16456 shlibpath_overrides_runpath=yes
16457 hardcode_into_libs=yes
16458 ;;
16459 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16460 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16461 shlibpath_overrides_runpath=no
16462 hardcode_into_libs=yes
16463 ;;
16464 *) # from 4.6 on, and DragonFly
16465 shlibpath_overrides_runpath=yes
16466 hardcode_into_libs=yes
16467 ;;
16468 esac
16469 ;;
16470
16471 gnu*)
16472 version_type=linux
16473 need_lib_prefix=no
16474 need_version=no
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 shlibpath_var=LD_LIBRARY_PATH
16478 hardcode_into_libs=yes
16479 ;;
16480
16481 haiku*)
16482 version_type=linux
16483 need_lib_prefix=no
16484 need_version=no
16485 dynamic_linker="$host_os runtime_loader"
16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16487 soname_spec='${libname}${release}${shared_ext}$major'
16488 shlibpath_var=LIBRARY_PATH
16489 shlibpath_overrides_runpath=yes
16490 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16491 hardcode_into_libs=yes
16492 ;;
16493
16494 hpux9* | hpux10* | hpux11*)
16495 # Give a soname corresponding to the major version so that dld.sl refuses to
16496 # link against other versions.
16497 version_type=sunos
16498 need_lib_prefix=no
16499 need_version=no
16500 case $host_cpu in
16501 ia64*)
16502 shrext_cmds='.so'
16503 hardcode_into_libs=yes
16504 dynamic_linker="$host_os dld.so"
16505 shlibpath_var=LD_LIBRARY_PATH
16506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16508 soname_spec='${libname}${release}${shared_ext}$major'
16509 if test "X$HPUX_IA64_MODE" = X32; then
16510 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16511 else
16512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16513 fi
16514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16515 ;;
16516 hppa*64*)
16517 shrext_cmds='.sl'
16518 hardcode_into_libs=yes
16519 dynamic_linker="$host_os dld.sl"
16520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16523 soname_spec='${libname}${release}${shared_ext}$major'
16524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16526 ;;
16527 *)
16528 shrext_cmds='.sl'
16529 dynamic_linker="$host_os dld.sl"
16530 shlibpath_var=SHLIB_PATH
16531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16533 soname_spec='${libname}${release}${shared_ext}$major'
16534 ;;
16535 esac
16536 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16537 postinstall_cmds='chmod 555 $lib'
16538 # or fails outright, so override atomically:
16539 install_override_mode=555
16540 ;;
16541
16542 interix[3-9]*)
16543 version_type=linux
16544 need_lib_prefix=no
16545 need_version=no
16546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16547 soname_spec='${libname}${release}${shared_ext}$major'
16548 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 shlibpath_overrides_runpath=no
16551 hardcode_into_libs=yes
16552 ;;
16553
16554 irix5* | irix6* | nonstopux*)
16555 case $host_os in
16556 nonstopux*) version_type=nonstopux ;;
16557 *)
16558 if test "$lt_cv_prog_gnu_ld" = yes; then
16559 version_type=linux
16560 else
16561 version_type=irix
16562 fi ;;
16563 esac
16564 need_lib_prefix=no
16565 need_version=no
16566 soname_spec='${libname}${release}${shared_ext}$major'
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16568 case $host_os in
16569 irix5* | nonstopux*)
16570 libsuff= shlibsuff=
16571 ;;
16572 *)
16573 case $LD in # libtool.m4 will add one of these switches to LD
16574 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16575 libsuff= shlibsuff= libmagic=32-bit;;
16576 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16577 libsuff=32 shlibsuff=N32 libmagic=N32;;
16578 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16579 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16580 *) libsuff= shlibsuff= libmagic=never-match;;
16581 esac
16582 ;;
16583 esac
16584 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16585 shlibpath_overrides_runpath=no
16586 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16587 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16588 hardcode_into_libs=yes
16589 ;;
16590
16591 # No shared lib support for Linux oldld, aout, or coff.
16592 linux*oldld* | linux*aout* | linux*coff*)
16593 dynamic_linker=no
16594 ;;
16595
16596 # This must be Linux ELF.
16597 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16598 version_type=linux
16599 need_lib_prefix=no
16600 need_version=no
16601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16602 soname_spec='${libname}${release}${shared_ext}$major'
16603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16604 shlibpath_var=LD_LIBRARY_PATH
16605 shlibpath_overrides_runpath=no
16606
16607 # Some binutils ld are patched to set DT_RUNPATH
16608 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16609 $as_echo_n "(cached) " >&6
16610 else
16611 lt_cv_shlibpath_overrides_runpath=no
16612 save_LDFLAGS=$LDFLAGS
16613 save_libdir=$libdir
16614 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16615 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16617 /* end confdefs.h. */
16618
16619 int
16620 main ()
16621 {
16622
16623 ;
16624 return 0;
16625 }
16626 _ACEOF
16627 if ac_fn_c_try_link "$LINENO"; then :
16628 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16629 lt_cv_shlibpath_overrides_runpath=yes
16630 fi
16631 fi
16632 rm -f core conftest.err conftest.$ac_objext \
16633 conftest$ac_exeext conftest.$ac_ext
16634 LDFLAGS=$save_LDFLAGS
16635 libdir=$save_libdir
16636
16637 fi
16638
16639 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16640
16641 # This implies no fast_install, which is unacceptable.
16642 # Some rework will be needed to allow for fast_install
16643 # before this can be enabled.
16644 hardcode_into_libs=yes
16645
16646 # Append ld.so.conf contents to the search path
16647 if test -f /etc/ld.so.conf; then
16648 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' ' '`
16649 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16650 fi
16651
16652 # We used to test for /lib/ld.so.1 and disable shared libraries on
16653 # powerpc, because MkLinux only supported shared libraries with the
16654 # GNU dynamic linker. Since this was broken with cross compilers,
16655 # most powerpc-linux boxes support dynamic linking these days and
16656 # people can always --disable-shared, the test was removed, and we
16657 # assume the GNU/Linux dynamic linker is in use.
16658 dynamic_linker='GNU/Linux ld.so'
16659 ;;
16660
16661 netbsd*)
16662 version_type=sunos
16663 need_lib_prefix=no
16664 need_version=no
16665 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16668 dynamic_linker='NetBSD (a.out) ld.so'
16669 else
16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16671 soname_spec='${libname}${release}${shared_ext}$major'
16672 dynamic_linker='NetBSD ld.elf_so'
16673 fi
16674 shlibpath_var=LD_LIBRARY_PATH
16675 shlibpath_overrides_runpath=yes
16676 hardcode_into_libs=yes
16677 ;;
16678
16679 newsos6)
16680 version_type=linux
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682 shlibpath_var=LD_LIBRARY_PATH
16683 shlibpath_overrides_runpath=yes
16684 ;;
16685
16686 *nto* | *qnx*)
16687 version_type=qnx
16688 need_lib_prefix=no
16689 need_version=no
16690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16691 soname_spec='${libname}${release}${shared_ext}$major'
16692 shlibpath_var=LD_LIBRARY_PATH
16693 shlibpath_overrides_runpath=no
16694 hardcode_into_libs=yes
16695 dynamic_linker='ldqnx.so'
16696 ;;
16697
16698 openbsd*)
16699 version_type=sunos
16700 sys_lib_dlsearch_path_spec="/usr/lib"
16701 need_lib_prefix=no
16702 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16703 case $host_os in
16704 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16705 *) need_version=no ;;
16706 esac
16707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16709 shlibpath_var=LD_LIBRARY_PATH
16710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16711 case $host_os in
16712 openbsd2.[89] | openbsd2.[89].*)
16713 shlibpath_overrides_runpath=no
16714 ;;
16715 *)
16716 shlibpath_overrides_runpath=yes
16717 ;;
16718 esac
16719 else
16720 shlibpath_overrides_runpath=yes
16721 fi
16722 ;;
16723
16724 os2*)
16725 libname_spec='$name'
16726 shrext_cmds=".dll"
16727 need_lib_prefix=no
16728 library_names_spec='$libname${shared_ext} $libname.a'
16729 dynamic_linker='OS/2 ld.exe'
16730 shlibpath_var=LIBPATH
16731 ;;
16732
16733 osf3* | osf4* | osf5*)
16734 version_type=osf
16735 need_lib_prefix=no
16736 need_version=no
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16741 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16742 ;;
16743
16744 rdos*)
16745 dynamic_linker=no
16746 ;;
16747
16748 solaris*)
16749 version_type=linux
16750 need_lib_prefix=no
16751 need_version=no
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath=yes
16756 hardcode_into_libs=yes
16757 # ldd complains unless libraries are executable
16758 postinstall_cmds='chmod +x $lib'
16759 ;;
16760
16761 sunos4*)
16762 version_type=sunos
16763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16764 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16765 shlibpath_var=LD_LIBRARY_PATH
16766 shlibpath_overrides_runpath=yes
16767 if test "$with_gnu_ld" = yes; then
16768 need_lib_prefix=no
16769 fi
16770 need_version=yes
16771 ;;
16772
16773 sysv4 | sysv4.3*)
16774 version_type=linux
16775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16776 soname_spec='${libname}${release}${shared_ext}$major'
16777 shlibpath_var=LD_LIBRARY_PATH
16778 case $host_vendor in
16779 sni)
16780 shlibpath_overrides_runpath=no
16781 need_lib_prefix=no
16782 runpath_var=LD_RUN_PATH
16783 ;;
16784 siemens)
16785 need_lib_prefix=no
16786 ;;
16787 motorola)
16788 need_lib_prefix=no
16789 need_version=no
16790 shlibpath_overrides_runpath=no
16791 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16792 ;;
16793 esac
16794 ;;
16795
16796 sysv4*MP*)
16797 if test -d /usr/nec ;then
16798 version_type=linux
16799 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16800 soname_spec='$libname${shared_ext}.$major'
16801 shlibpath_var=LD_LIBRARY_PATH
16802 fi
16803 ;;
16804
16805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16806 version_type=freebsd-elf
16807 need_lib_prefix=no
16808 need_version=no
16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16810 soname_spec='${libname}${release}${shared_ext}$major'
16811 shlibpath_var=LD_LIBRARY_PATH
16812 shlibpath_overrides_runpath=yes
16813 hardcode_into_libs=yes
16814 if test "$with_gnu_ld" = yes; then
16815 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16816 else
16817 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16818 case $host_os in
16819 sco3.2v5*)
16820 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16821 ;;
16822 esac
16823 fi
16824 sys_lib_dlsearch_path_spec='/usr/lib'
16825 ;;
16826
16827 tpf*)
16828 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16829 version_type=linux
16830 need_lib_prefix=no
16831 need_version=no
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 shlibpath_var=LD_LIBRARY_PATH
16834 shlibpath_overrides_runpath=no
16835 hardcode_into_libs=yes
16836 ;;
16837
16838 uts4*)
16839 version_type=linux
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 shlibpath_var=LD_LIBRARY_PATH
16843 ;;
16844
16845 *)
16846 dynamic_linker=no
16847 ;;
16848 esac
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16850 $as_echo "$dynamic_linker" >&6; }
16851 test "$dynamic_linker" = no && can_build_shared=no
16852
16853 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16854 if test "$GCC" = yes; then
16855 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16856 fi
16857
16858 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16859 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16860 fi
16861 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16862 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16863 fi
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16957 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16958 hardcode_action=
16959 if test -n "$hardcode_libdir_flag_spec" ||
16960 test -n "$runpath_var" ||
16961 test "X$hardcode_automatic" = "Xyes" ; then
16962
16963 # We can hardcode non-existent directories.
16964 if test "$hardcode_direct" != no &&
16965 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16966 # have to relink, otherwise we might link with an installed library
16967 # when we should be linking with a yet-to-be-installed one
16968 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16969 test "$hardcode_minus_L" != no; then
16970 # Linking always hardcodes the temporary library directory.
16971 hardcode_action=relink
16972 else
16973 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16974 hardcode_action=immediate
16975 fi
16976 else
16977 # We cannot hardcode anything, or else we can only hardcode existing
16978 # directories.
16979 hardcode_action=unsupported
16980 fi
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16982 $as_echo "$hardcode_action" >&6; }
16983
16984 if test "$hardcode_action" = relink ||
16985 test "$inherit_rpath" = yes; then
16986 # Fast installation is not supported
16987 enable_fast_install=no
16988 elif test "$shlibpath_overrides_runpath" = yes ||
16989 test "$enable_shared" = no; then
16990 # Fast installation is not necessary
16991 enable_fast_install=needless
16992 fi
16993
16994
16995
16996
16997
16998
16999 if test "x$enable_dlopen" != xyes; then
17000 enable_dlopen=unknown
17001 enable_dlopen_self=unknown
17002 enable_dlopen_self_static=unknown
17003 else
17004 lt_cv_dlopen=no
17005 lt_cv_dlopen_libs=
17006
17007 case $host_os in
17008 beos*)
17009 lt_cv_dlopen="load_add_on"
17010 lt_cv_dlopen_libs=
17011 lt_cv_dlopen_self=yes
17012 ;;
17013
17014 mingw* | pw32* | cegcc*)
17015 lt_cv_dlopen="LoadLibrary"
17016 lt_cv_dlopen_libs=
17017 ;;
17018
17019 cygwin*)
17020 lt_cv_dlopen="dlopen"
17021 lt_cv_dlopen_libs=
17022 ;;
17023
17024 darwin*)
17025 # if libdl is installed we need to link against it
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17027 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17028 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17029 $as_echo_n "(cached) " >&6
17030 else
17031 ac_check_lib_save_LIBS=$LIBS
17032 LIBS="-ldl $LIBS"
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17035
17036 /* Override any GCC internal prototype to avoid an error.
17037 Use char because int might match the return type of a GCC
17038 builtin and then its argument prototype would still apply. */
17039 #ifdef __cplusplus
17040 extern "C"
17041 #endif
17042 char dlopen ();
17043 int
17044 main ()
17045 {
17046 return dlopen ();
17047 ;
17048 return 0;
17049 }
17050 _ACEOF
17051 if ac_fn_c_try_link "$LINENO"; then :
17052 ac_cv_lib_dl_dlopen=yes
17053 else
17054 ac_cv_lib_dl_dlopen=no
17055 fi
17056 rm -f core conftest.err conftest.$ac_objext \
17057 conftest$ac_exeext conftest.$ac_ext
17058 LIBS=$ac_check_lib_save_LIBS
17059 fi
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17061 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17062 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17064 else
17065
17066 lt_cv_dlopen="dyld"
17067 lt_cv_dlopen_libs=
17068 lt_cv_dlopen_self=yes
17069
17070 fi
17071
17072 ;;
17073
17074 *)
17075 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17076 if test "x$ac_cv_func_shl_load" = x""yes; then :
17077 lt_cv_dlopen="shl_load"
17078 else
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17080 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17081 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17082 $as_echo_n "(cached) " >&6
17083 else
17084 ac_check_lib_save_LIBS=$LIBS
17085 LIBS="-ldld $LIBS"
17086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17087 /* end confdefs.h. */
17088
17089 /* Override any GCC internal prototype to avoid an error.
17090 Use char because int might match the return type of a GCC
17091 builtin and then its argument prototype would still apply. */
17092 #ifdef __cplusplus
17093 extern "C"
17094 #endif
17095 char shl_load ();
17096 int
17097 main ()
17098 {
17099 return shl_load ();
17100 ;
17101 return 0;
17102 }
17103 _ACEOF
17104 if ac_fn_c_try_link "$LINENO"; then :
17105 ac_cv_lib_dld_shl_load=yes
17106 else
17107 ac_cv_lib_dld_shl_load=no
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17111 LIBS=$ac_check_lib_save_LIBS
17112 fi
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17114 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17115 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17116 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17117 else
17118 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17119 if test "x$ac_cv_func_dlopen" = x""yes; then :
17120 lt_cv_dlopen="dlopen"
17121 else
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17123 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17124 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127 ac_check_lib_save_LIBS=$LIBS
17128 LIBS="-ldl $LIBS"
17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17131
17132 /* Override any GCC internal prototype to avoid an error.
17133 Use char because int might match the return type of a GCC
17134 builtin and then its argument prototype would still apply. */
17135 #ifdef __cplusplus
17136 extern "C"
17137 #endif
17138 char dlopen ();
17139 int
17140 main ()
17141 {
17142 return dlopen ();
17143 ;
17144 return 0;
17145 }
17146 _ACEOF
17147 if ac_fn_c_try_link "$LINENO"; then :
17148 ac_cv_lib_dl_dlopen=yes
17149 else
17150 ac_cv_lib_dl_dlopen=no
17151 fi
17152 rm -f core conftest.err conftest.$ac_objext \
17153 conftest$ac_exeext conftest.$ac_ext
17154 LIBS=$ac_check_lib_save_LIBS
17155 fi
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17157 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17158 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17160 else
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17162 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17163 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17164 $as_echo_n "(cached) " >&6
17165 else
17166 ac_check_lib_save_LIBS=$LIBS
17167 LIBS="-lsvld $LIBS"
17168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h. */
17170
17171 /* Override any GCC internal prototype to avoid an error.
17172 Use char because int might match the return type of a GCC
17173 builtin and then its argument prototype would still apply. */
17174 #ifdef __cplusplus
17175 extern "C"
17176 #endif
17177 char dlopen ();
17178 int
17179 main ()
17180 {
17181 return dlopen ();
17182 ;
17183 return 0;
17184 }
17185 _ACEOF
17186 if ac_fn_c_try_link "$LINENO"; then :
17187 ac_cv_lib_svld_dlopen=yes
17188 else
17189 ac_cv_lib_svld_dlopen=no
17190 fi
17191 rm -f core conftest.err conftest.$ac_objext \
17192 conftest$ac_exeext conftest.$ac_ext
17193 LIBS=$ac_check_lib_save_LIBS
17194 fi
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17196 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17197 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17199 else
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17201 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17202 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17203 $as_echo_n "(cached) " >&6
17204 else
17205 ac_check_lib_save_LIBS=$LIBS
17206 LIBS="-ldld $LIBS"
17207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17208 /* end confdefs.h. */
17209
17210 /* Override any GCC internal prototype to avoid an error.
17211 Use char because int might match the return type of a GCC
17212 builtin and then its argument prototype would still apply. */
17213 #ifdef __cplusplus
17214 extern "C"
17215 #endif
17216 char dld_link ();
17217 int
17218 main ()
17219 {
17220 return dld_link ();
17221 ;
17222 return 0;
17223 }
17224 _ACEOF
17225 if ac_fn_c_try_link "$LINENO"; then :
17226 ac_cv_lib_dld_dld_link=yes
17227 else
17228 ac_cv_lib_dld_dld_link=no
17229 fi
17230 rm -f core conftest.err conftest.$ac_objext \
17231 conftest$ac_exeext conftest.$ac_ext
17232 LIBS=$ac_check_lib_save_LIBS
17233 fi
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17235 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17236 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17237 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17238 fi
17239
17240
17241 fi
17242
17243
17244 fi
17245
17246
17247 fi
17248
17249
17250 fi
17251
17252
17253 fi
17254
17255 ;;
17256 esac
17257
17258 if test "x$lt_cv_dlopen" != xno; then
17259 enable_dlopen=yes
17260 else
17261 enable_dlopen=no
17262 fi
17263
17264 case $lt_cv_dlopen in
17265 dlopen)
17266 save_CPPFLAGS="$CPPFLAGS"
17267 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17268
17269 save_LDFLAGS="$LDFLAGS"
17270 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17271
17272 save_LIBS="$LIBS"
17273 LIBS="$lt_cv_dlopen_libs $LIBS"
17274
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17276 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17277 if test "${lt_cv_dlopen_self+set}" = set; then :
17278 $as_echo_n "(cached) " >&6
17279 else
17280 if test "$cross_compiling" = yes; then :
17281 lt_cv_dlopen_self=cross
17282 else
17283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17284 lt_status=$lt_dlunknown
17285 cat > conftest.$ac_ext <<_LT_EOF
17286 #line 17286 "configure"
17287 #include "confdefs.h"
17288
17289 #if HAVE_DLFCN_H
17290 #include <dlfcn.h>
17291 #endif
17292
17293 #include <stdio.h>
17294
17295 #ifdef RTLD_GLOBAL
17296 # define LT_DLGLOBAL RTLD_GLOBAL
17297 #else
17298 # ifdef DL_GLOBAL
17299 # define LT_DLGLOBAL DL_GLOBAL
17300 # else
17301 # define LT_DLGLOBAL 0
17302 # endif
17303 #endif
17304
17305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17306 find out it does not work in some platform. */
17307 #ifndef LT_DLLAZY_OR_NOW
17308 # ifdef RTLD_LAZY
17309 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17310 # else
17311 # ifdef DL_LAZY
17312 # define LT_DLLAZY_OR_NOW DL_LAZY
17313 # else
17314 # ifdef RTLD_NOW
17315 # define LT_DLLAZY_OR_NOW RTLD_NOW
17316 # else
17317 # ifdef DL_NOW
17318 # define LT_DLLAZY_OR_NOW DL_NOW
17319 # else
17320 # define LT_DLLAZY_OR_NOW 0
17321 # endif
17322 # endif
17323 # endif
17324 # endif
17325 #endif
17326
17327 /* When -fvisbility=hidden is used, assume the code has been annotated
17328 correspondingly for the symbols needed. */
17329 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17330 void fnord () __attribute__((visibility("default")));
17331 #endif
17332
17333 void fnord () { int i=42; }
17334 int main ()
17335 {
17336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17337 int status = $lt_dlunknown;
17338
17339 if (self)
17340 {
17341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17342 else
17343 {
17344 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17345 else puts (dlerror ());
17346 }
17347 /* dlclose (self); */
17348 }
17349 else
17350 puts (dlerror ());
17351
17352 return status;
17353 }
17354 _LT_EOF
17355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17356 (eval $ac_link) 2>&5
17357 ac_status=$?
17358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17359 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17360 (./conftest; exit; ) >&5 2>/dev/null
17361 lt_status=$?
17362 case x$lt_status in
17363 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17364 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17365 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17366 esac
17367 else :
17368 # compilation failed
17369 lt_cv_dlopen_self=no
17370 fi
17371 fi
17372 rm -fr conftest*
17373
17374
17375 fi
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17377 $as_echo "$lt_cv_dlopen_self" >&6; }
17378
17379 if test "x$lt_cv_dlopen_self" = xyes; then
17380 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17382 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17383 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17384 $as_echo_n "(cached) " >&6
17385 else
17386 if test "$cross_compiling" = yes; then :
17387 lt_cv_dlopen_self_static=cross
17388 else
17389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17390 lt_status=$lt_dlunknown
17391 cat > conftest.$ac_ext <<_LT_EOF
17392 #line 17392 "configure"
17393 #include "confdefs.h"
17394
17395 #if HAVE_DLFCN_H
17396 #include <dlfcn.h>
17397 #endif
17398
17399 #include <stdio.h>
17400
17401 #ifdef RTLD_GLOBAL
17402 # define LT_DLGLOBAL RTLD_GLOBAL
17403 #else
17404 # ifdef DL_GLOBAL
17405 # define LT_DLGLOBAL DL_GLOBAL
17406 # else
17407 # define LT_DLGLOBAL 0
17408 # endif
17409 #endif
17410
17411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17412 find out it does not work in some platform. */
17413 #ifndef LT_DLLAZY_OR_NOW
17414 # ifdef RTLD_LAZY
17415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17416 # else
17417 # ifdef DL_LAZY
17418 # define LT_DLLAZY_OR_NOW DL_LAZY
17419 # else
17420 # ifdef RTLD_NOW
17421 # define LT_DLLAZY_OR_NOW RTLD_NOW
17422 # else
17423 # ifdef DL_NOW
17424 # define LT_DLLAZY_OR_NOW DL_NOW
17425 # else
17426 # define LT_DLLAZY_OR_NOW 0
17427 # endif
17428 # endif
17429 # endif
17430 # endif
17431 #endif
17432
17433 /* When -fvisbility=hidden is used, assume the code has been annotated
17434 correspondingly for the symbols needed. */
17435 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17436 void fnord () __attribute__((visibility("default")));
17437 #endif
17438
17439 void fnord () { int i=42; }
17440 int main ()
17441 {
17442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17443 int status = $lt_dlunknown;
17444
17445 if (self)
17446 {
17447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17448 else
17449 {
17450 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17451 else puts (dlerror ());
17452 }
17453 /* dlclose (self); */
17454 }
17455 else
17456 puts (dlerror ());
17457
17458 return status;
17459 }
17460 _LT_EOF
17461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17462 (eval $ac_link) 2>&5
17463 ac_status=$?
17464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17465 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17466 (./conftest; exit; ) >&5 2>/dev/null
17467 lt_status=$?
17468 case x$lt_status in
17469 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17470 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17471 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17472 esac
17473 else :
17474 # compilation failed
17475 lt_cv_dlopen_self_static=no
17476 fi
17477 fi
17478 rm -fr conftest*
17479
17480
17481 fi
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17483 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17484 fi
17485
17486 CPPFLAGS="$save_CPPFLAGS"
17487 LDFLAGS="$save_LDFLAGS"
17488 LIBS="$save_LIBS"
17489 ;;
17490 esac
17491
17492 case $lt_cv_dlopen_self in
17493 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17494 *) enable_dlopen_self=unknown ;;
17495 esac
17496
17497 case $lt_cv_dlopen_self_static in
17498 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17499 *) enable_dlopen_self_static=unknown ;;
17500 esac
17501 fi
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519 striplib=
17520 old_striplib=
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17522 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17523 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17524 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17525 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17527 $as_echo "yes" >&6; }
17528 else
17529 # FIXME - insert some real tests, host_os isn't really good enough
17530 case $host_os in
17531 darwin*)
17532 if test -n "$STRIP" ; then
17533 striplib="$STRIP -x"
17534 old_striplib="$STRIP -S"
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17536 $as_echo "yes" >&6; }
17537 else
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17539 $as_echo "no" >&6; }
17540 fi
17541 ;;
17542 *)
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17544 $as_echo "no" >&6; }
17545 ;;
17546 esac
17547 fi
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560 # Report which library types will actually be built
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17562 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17564 $as_echo "$can_build_shared" >&6; }
17565
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17567 $as_echo_n "checking whether to build shared libraries... " >&6; }
17568 test "$can_build_shared" = "no" && enable_shared=no
17569
17570 # On AIX, shared libraries and static libraries use the same namespace, and
17571 # are all built from PIC.
17572 case $host_os in
17573 aix3*)
17574 test "$enable_shared" = yes && enable_static=no
17575 if test -n "$RANLIB"; then
17576 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17577 postinstall_cmds='$RANLIB $lib'
17578 fi
17579 ;;
17580
17581 aix[4-9]*)
17582 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17583 test "$enable_shared" = yes && enable_static=no
17584 fi
17585 ;;
17586 esac
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17588 $as_echo "$enable_shared" >&6; }
17589
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17591 $as_echo_n "checking whether to build static libraries... " >&6; }
17592 # Make sure either enable_shared or enable_static is yes.
17593 test "$enable_shared" = yes || enable_static=yes
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17595 $as_echo "$enable_static" >&6; }
17596
17597
17598
17599
17600 fi
17601 ac_ext=c
17602 ac_cpp='$CPP $CPPFLAGS'
17603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17606
17607 CC="$lt_save_CC"
17608
17609 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17610 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17611 (test "X$CXX" != "Xg++"))) ; then
17612 ac_ext=cpp
17613 ac_cpp='$CXXCPP $CPPFLAGS'
17614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17618 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17619 if test -z "$CXXCPP"; then
17620 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17621 $as_echo_n "(cached) " >&6
17622 else
17623 # Double quotes because CXXCPP needs to be expanded
17624 for CXXCPP in "$CXX -E" "/lib/cpp"
17625 do
17626 ac_preproc_ok=false
17627 for ac_cxx_preproc_warn_flag in '' yes
17628 do
17629 # Use a header file that comes with gcc, so configuring glibc
17630 # with a fresh cross-compiler works.
17631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17632 # <limits.h> exists even on freestanding compilers.
17633 # On the NeXT, cc -E runs the code through the compiler's parser,
17634 # not just through cpp. "Syntax error" is here to catch this case.
17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17636 /* end confdefs.h. */
17637 #ifdef __STDC__
17638 # include <limits.h>
17639 #else
17640 # include <assert.h>
17641 #endif
17642 Syntax error
17643 _ACEOF
17644 if ac_fn_cxx_try_cpp "$LINENO"; then :
17645
17646 else
17647 # Broken: fails on valid input.
17648 continue
17649 fi
17650 rm -f conftest.err conftest.$ac_ext
17651
17652 # OK, works on sane cases. Now check whether nonexistent headers
17653 # can be detected and how.
17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h. */
17656 #include <ac_nonexistent.h>
17657 _ACEOF
17658 if ac_fn_cxx_try_cpp "$LINENO"; then :
17659 # Broken: success on invalid input.
17660 continue
17661 else
17662 # Passes both tests.
17663 ac_preproc_ok=:
17664 break
17665 fi
17666 rm -f conftest.err conftest.$ac_ext
17667
17668 done
17669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17670 rm -f conftest.err conftest.$ac_ext
17671 if $ac_preproc_ok; then :
17672 break
17673 fi
17674
17675 done
17676 ac_cv_prog_CXXCPP=$CXXCPP
17677
17678 fi
17679 CXXCPP=$ac_cv_prog_CXXCPP
17680 else
17681 ac_cv_prog_CXXCPP=$CXXCPP
17682 fi
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17684 $as_echo "$CXXCPP" >&6; }
17685 ac_preproc_ok=false
17686 for ac_cxx_preproc_warn_flag in '' yes
17687 do
17688 # Use a header file that comes with gcc, so configuring glibc
17689 # with a fresh cross-compiler works.
17690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17691 # <limits.h> exists even on freestanding compilers.
17692 # On the NeXT, cc -E runs the code through the compiler's parser,
17693 # not just through cpp. "Syntax error" is here to catch this case.
17694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h. */
17696 #ifdef __STDC__
17697 # include <limits.h>
17698 #else
17699 # include <assert.h>
17700 #endif
17701 Syntax error
17702 _ACEOF
17703 if ac_fn_cxx_try_cpp "$LINENO"; then :
17704
17705 else
17706 # Broken: fails on valid input.
17707 continue
17708 fi
17709 rm -f conftest.err conftest.$ac_ext
17710
17711 # OK, works on sane cases. Now check whether nonexistent headers
17712 # can be detected and how.
17713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17714 /* end confdefs.h. */
17715 #include <ac_nonexistent.h>
17716 _ACEOF
17717 if ac_fn_cxx_try_cpp "$LINENO"; then :
17718 # Broken: success on invalid input.
17719 continue
17720 else
17721 # Passes both tests.
17722 ac_preproc_ok=:
17723 break
17724 fi
17725 rm -f conftest.err conftest.$ac_ext
17726
17727 done
17728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17729 rm -f conftest.err conftest.$ac_ext
17730 if $ac_preproc_ok; then :
17731
17732 else
17733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17735 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17736 See \`config.log' for more details." "$LINENO" 5; }
17737 fi
17738
17739 ac_ext=c
17740 ac_cpp='$CPP $CPPFLAGS'
17741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17744
17745 else
17746 _lt_caught_CXX_error=yes
17747 fi
17748
17749 ac_ext=cpp
17750 ac_cpp='$CXXCPP $CPPFLAGS'
17751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17754
17755 archive_cmds_need_lc_CXX=no
17756 allow_undefined_flag_CXX=
17757 always_export_symbols_CXX=no
17758 archive_expsym_cmds_CXX=
17759 compiler_needs_object_CXX=no
17760 export_dynamic_flag_spec_CXX=
17761 hardcode_direct_CXX=no
17762 hardcode_direct_absolute_CXX=no
17763 hardcode_libdir_flag_spec_CXX=
17764 hardcode_libdir_flag_spec_ld_CXX=
17765 hardcode_libdir_separator_CXX=
17766 hardcode_minus_L_CXX=no
17767 hardcode_shlibpath_var_CXX=unsupported
17768 hardcode_automatic_CXX=no
17769 inherit_rpath_CXX=no
17770 module_cmds_CXX=
17771 module_expsym_cmds_CXX=
17772 link_all_deplibs_CXX=unknown
17773 old_archive_cmds_CXX=$old_archive_cmds
17774 reload_flag_CXX=$reload_flag
17775 reload_cmds_CXX=$reload_cmds
17776 no_undefined_flag_CXX=
17777 whole_archive_flag_spec_CXX=
17778 enable_shared_with_static_runtimes_CXX=no
17779
17780 # Source file extension for C++ test sources.
17781 ac_ext=cpp
17782
17783 # Object file extension for compiled C++ test sources.
17784 objext=o
17785 objext_CXX=$objext
17786
17787 # No sense in running all these tests if we already determined that
17788 # the CXX compiler isn't working. Some variables (like enable_shared)
17789 # are currently assumed to apply to all compilers on this platform,
17790 # and will be corrupted by setting them based on a non-working compiler.
17791 if test "$_lt_caught_CXX_error" != yes; then
17792 # Code to be used in simple compile tests
17793 lt_simple_compile_test_code="int some_variable = 0;"
17794
17795 # Code to be used in simple link tests
17796 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17797
17798 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17799
17800
17801
17802
17803
17804
17805 # If no C compiler was specified, use CC.
17806 LTCC=${LTCC-"$CC"}
17807
17808 # If no C compiler flags were specified, use CFLAGS.
17809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17810
17811 # Allow CC to be a program name with arguments.
17812 compiler=$CC
17813
17814
17815 # save warnings/boilerplate of simple test code
17816 ac_outfile=conftest.$ac_objext
17817 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17819 _lt_compiler_boilerplate=`cat conftest.err`
17820 $RM conftest*
17821
17822 ac_outfile=conftest.$ac_objext
17823 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17825 _lt_linker_boilerplate=`cat conftest.err`
17826 $RM -r conftest*
17827
17828
17829 # Allow CC to be a program name with arguments.
17830 lt_save_CC=$CC
17831 lt_save_LD=$LD
17832 lt_save_GCC=$GCC
17833 GCC=$GXX
17834 lt_save_with_gnu_ld=$with_gnu_ld
17835 lt_save_path_LD=$lt_cv_path_LD
17836 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17837 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17838 else
17839 $as_unset lt_cv_prog_gnu_ld
17840 fi
17841 if test -n "${lt_cv_path_LDCXX+set}"; then
17842 lt_cv_path_LD=$lt_cv_path_LDCXX
17843 else
17844 $as_unset lt_cv_path_LD
17845 fi
17846 test -z "${LDCXX+set}" || LD=$LDCXX
17847 CC=${CXX-"c++"}
17848 compiler=$CC
17849 compiler_CXX=$CC
17850 for cc_temp in $compiler""; do
17851 case $cc_temp in
17852 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17853 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17854 \-*) ;;
17855 *) break;;
17856 esac
17857 done
17858 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17859
17860
17861 if test -n "$compiler"; then
17862 # We don't want -fno-exception when compiling C++ code, so set the
17863 # no_builtin_flag separately
17864 if test "$GXX" = yes; then
17865 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17866 else
17867 lt_prog_compiler_no_builtin_flag_CXX=
17868 fi
17869
17870 if test "$GXX" = yes; then
17871 # Set up default GNU C++ configuration
17872
17873
17874
17875 # Check whether --with-gnu-ld was given.
17876 if test "${with_gnu_ld+set}" = set; then :
17877 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17878 else
17879 with_gnu_ld=no
17880 fi
17881
17882 ac_prog=ld
17883 if test "$GCC" = yes; then
17884 # Check if gcc -print-prog-name=ld gives a path.
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17886 $as_echo_n "checking for ld used by $CC... " >&6; }
17887 case $host in
17888 *-*-mingw*)
17889 # gcc leaves a trailing carriage return which upsets mingw
17890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17891 *)
17892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17893 esac
17894 case $ac_prog in
17895 # Accept absolute paths.
17896 [\\/]* | ?:[\\/]*)
17897 re_direlt='/[^/][^/]*/\.\./'
17898 # Canonicalize the pathname of ld
17899 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17900 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17901 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17902 done
17903 test -z "$LD" && LD="$ac_prog"
17904 ;;
17905 "")
17906 # If it fails, then pretend we aren't using GCC.
17907 ac_prog=ld
17908 ;;
17909 *)
17910 # If it is relative, then search for the first ld in PATH.
17911 with_gnu_ld=unknown
17912 ;;
17913 esac
17914 elif test "$with_gnu_ld" = yes; then
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17916 $as_echo_n "checking for GNU ld... " >&6; }
17917 else
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17919 $as_echo_n "checking for non-GNU ld... " >&6; }
17920 fi
17921 if test "${lt_cv_path_LD+set}" = set; then :
17922 $as_echo_n "(cached) " >&6
17923 else
17924 if test -z "$LD"; then
17925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17926 for ac_dir in $PATH; do
17927 IFS="$lt_save_ifs"
17928 test -z "$ac_dir" && ac_dir=.
17929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17930 lt_cv_path_LD="$ac_dir/$ac_prog"
17931 # Check to see if the program is GNU ld. I'd rather use --version,
17932 # but apparently some variants of GNU ld only accept -v.
17933 # Break only if it was the GNU/non-GNU ld that we prefer.
17934 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17935 *GNU* | *'with BFD'*)
17936 test "$with_gnu_ld" != no && break
17937 ;;
17938 *)
17939 test "$with_gnu_ld" != yes && break
17940 ;;
17941 esac
17942 fi
17943 done
17944 IFS="$lt_save_ifs"
17945 else
17946 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17947 fi
17948 fi
17949
17950 LD="$lt_cv_path_LD"
17951 if test -n "$LD"; then
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17953 $as_echo "$LD" >&6; }
17954 else
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17956 $as_echo "no" >&6; }
17957 fi
17958 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17960 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17961 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17962 $as_echo_n "(cached) " >&6
17963 else
17964 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17965 case `$LD -v 2>&1 </dev/null` in
17966 *GNU* | *'with BFD'*)
17967 lt_cv_prog_gnu_ld=yes
17968 ;;
17969 *)
17970 lt_cv_prog_gnu_ld=no
17971 ;;
17972 esac
17973 fi
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17975 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17976 with_gnu_ld=$lt_cv_prog_gnu_ld
17977
17978
17979
17980
17981
17982
17983
17984 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17985 # archiving commands below assume that GNU ld is being used.
17986 if test "$with_gnu_ld" = yes; then
17987 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17988 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17989
17990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17992
17993 # If archive_cmds runs LD, not CC, wlarc should be empty
17994 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17995 # investigate it a little bit more. (MM)
17996 wlarc='${wl}'
17997
17998 # ancient GNU ld didn't support --whole-archive et. al.
17999 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18000 $GREP 'no-whole-archive' > /dev/null; then
18001 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18002 else
18003 whole_archive_flag_spec_CXX=
18004 fi
18005 else
18006 with_gnu_ld=no
18007 wlarc=
18008
18009 # A generic and very simple default shared library creation
18010 # command for GNU C++ for the case where it uses the native
18011 # linker, instead of GNU ld. If possible, this setting should
18012 # overridden to take advantage of the native linker features on
18013 # the platform it is being used on.
18014 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18015 fi
18016
18017 # Commands to make compiler produce verbose output that lists
18018 # what "hidden" libraries, object files and flags are used when
18019 # linking a shared library.
18020 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18021
18022 else
18023 GXX=no
18024 with_gnu_ld=no
18025 wlarc=
18026 fi
18027
18028 # PORTME: fill in a description of your system's C++ link characteristics
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18030 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18031 ld_shlibs_CXX=yes
18032 case $host_os in
18033 aix3*)
18034 # FIXME: insert proper C++ library support
18035 ld_shlibs_CXX=no
18036 ;;
18037 aix[4-9]*)
18038 if test "$host_cpu" = ia64; then
18039 # On IA64, the linker does run time linking by default, so we don't
18040 # have to do anything special.
18041 aix_use_runtimelinking=no
18042 exp_sym_flag='-Bexport'
18043 no_entry_flag=""
18044 else
18045 aix_use_runtimelinking=no
18046
18047 # Test if we are trying to use run time linking or normal
18048 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18049 # need to do runtime linking.
18050 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18051 for ld_flag in $LDFLAGS; do
18052 case $ld_flag in
18053 *-brtl*)
18054 aix_use_runtimelinking=yes
18055 break
18056 ;;
18057 esac
18058 done
18059 ;;
18060 esac
18061
18062 exp_sym_flag='-bexport'
18063 no_entry_flag='-bnoentry'
18064 fi
18065
18066 # When large executables or shared objects are built, AIX ld can
18067 # have problems creating the table of contents. If linking a library
18068 # or program results in "error TOC overflow" add -mminimal-toc to
18069 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18070 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18071
18072 archive_cmds_CXX=''
18073 hardcode_direct_CXX=yes
18074 hardcode_direct_absolute_CXX=yes
18075 hardcode_libdir_separator_CXX=':'
18076 link_all_deplibs_CXX=yes
18077 file_list_spec_CXX='${wl}-f,'
18078
18079 if test "$GXX" = yes; then
18080 case $host_os in aix4.[012]|aix4.[012].*)
18081 # We only want to do this on AIX 4.2 and lower, the check
18082 # below for broken collect2 doesn't work under 4.3+
18083 collect2name=`${CC} -print-prog-name=collect2`
18084 if test -f "$collect2name" &&
18085 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18086 then
18087 # We have reworked collect2
18088 :
18089 else
18090 # We have old collect2
18091 hardcode_direct_CXX=unsupported
18092 # It fails to find uninstalled libraries when the uninstalled
18093 # path is not listed in the libpath. Setting hardcode_minus_L
18094 # to unsupported forces relinking
18095 hardcode_minus_L_CXX=yes
18096 hardcode_libdir_flag_spec_CXX='-L$libdir'
18097 hardcode_libdir_separator_CXX=
18098 fi
18099 esac
18100 shared_flag='-shared'
18101 if test "$aix_use_runtimelinking" = yes; then
18102 shared_flag="$shared_flag "'${wl}-G'
18103 fi
18104 else
18105 # not using gcc
18106 if test "$host_cpu" = ia64; then
18107 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18108 # chokes on -Wl,-G. The following line is correct:
18109 shared_flag='-G'
18110 else
18111 if test "$aix_use_runtimelinking" = yes; then
18112 shared_flag='${wl}-G'
18113 else
18114 shared_flag='${wl}-bM:SRE'
18115 fi
18116 fi
18117 fi
18118
18119 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18120 # It seems that -bexpall does not export symbols beginning with
18121 # underscore (_), so it is better to generate a list of symbols to
18122 # export.
18123 always_export_symbols_CXX=yes
18124 if test "$aix_use_runtimelinking" = yes; then
18125 # Warning - without using the other runtime loading flags (-brtl),
18126 # -berok will link without error, but may produce a broken library.
18127 allow_undefined_flag_CXX='-berok'
18128 # Determine the default libpath from the value encoded in an empty
18129 # executable.
18130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18131 /* end confdefs.h. */
18132
18133 int
18134 main ()
18135 {
18136
18137 ;
18138 return 0;
18139 }
18140 _ACEOF
18141 if ac_fn_cxx_try_link "$LINENO"; then :
18142
18143 lt_aix_libpath_sed='
18144 /Import File Strings/,/^$/ {
18145 /^0/ {
18146 s/^0 *\(.*\)$/\1/
18147 p
18148 }
18149 }'
18150 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18151 # Check for a 64-bit object if we didn't find anything.
18152 if test -z "$aix_libpath"; then
18153 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18154 fi
18155 fi
18156 rm -f core conftest.err conftest.$ac_objext \
18157 conftest$ac_exeext conftest.$ac_ext
18158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18159
18160 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18161
18162 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"
18163 else
18164 if test "$host_cpu" = ia64; then
18165 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18166 allow_undefined_flag_CXX="-z nodefs"
18167 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"
18168 else
18169 # Determine the default libpath from the value encoded in an
18170 # empty executable.
18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18173
18174 int
18175 main ()
18176 {
18177
18178 ;
18179 return 0;
18180 }
18181 _ACEOF
18182 if ac_fn_cxx_try_link "$LINENO"; then :
18183
18184 lt_aix_libpath_sed='
18185 /Import File Strings/,/^$/ {
18186 /^0/ {
18187 s/^0 *\(.*\)$/\1/
18188 p
18189 }
18190 }'
18191 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18192 # Check for a 64-bit object if we didn't find anything.
18193 if test -z "$aix_libpath"; then
18194 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18195 fi
18196 fi
18197 rm -f core conftest.err conftest.$ac_objext \
18198 conftest$ac_exeext conftest.$ac_ext
18199 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18200
18201 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18202 # Warning - without using the other run time loading flags,
18203 # -berok will link without error, but may produce a broken library.
18204 no_undefined_flag_CXX=' ${wl}-bernotok'
18205 allow_undefined_flag_CXX=' ${wl}-berok'
18206 if test "$with_gnu_ld" = yes; then
18207 # We only use this code for GNU lds that support --whole-archive.
18208 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18209 else
18210 # Exported symbols can be pulled into shared objects from archives
18211 whole_archive_flag_spec_CXX='$convenience'
18212 fi
18213 archive_cmds_need_lc_CXX=yes
18214 # This is similar to how AIX traditionally builds its shared
18215 # libraries.
18216 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'
18217 fi
18218 fi
18219 ;;
18220
18221 beos*)
18222 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18223 allow_undefined_flag_CXX=unsupported
18224 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18225 # support --undefined. This deserves some investigation. FIXME
18226 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18227 else
18228 ld_shlibs_CXX=no
18229 fi
18230 ;;
18231
18232 chorus*)
18233 case $cc_basename in
18234 *)
18235 # FIXME: insert proper C++ library support
18236 ld_shlibs_CXX=no
18237 ;;
18238 esac
18239 ;;
18240
18241 cygwin* | mingw* | pw32* | cegcc*)
18242 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18243 # as there is no search path for DLLs.
18244 hardcode_libdir_flag_spec_CXX='-L$libdir'
18245 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18246 allow_undefined_flag_CXX=unsupported
18247 always_export_symbols_CXX=no
18248 enable_shared_with_static_runtimes_CXX=yes
18249
18250 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18251 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'
18252 # If the export-symbols file already is a .def file (1st line
18253 # is EXPORTS), use it as is; otherwise, prepend...
18254 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18255 cp $export_symbols $output_objdir/$soname.def;
18256 else
18257 echo EXPORTS > $output_objdir/$soname.def;
18258 cat $export_symbols >> $output_objdir/$soname.def;
18259 fi~
18260 $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'
18261 else
18262 ld_shlibs_CXX=no
18263 fi
18264 ;;
18265 darwin* | rhapsody*)
18266
18267
18268 archive_cmds_need_lc_CXX=no
18269 hardcode_direct_CXX=no
18270 hardcode_automatic_CXX=yes
18271 hardcode_shlibpath_var_CXX=unsupported
18272 if test "$lt_cv_ld_force_load" = "yes"; then
18273 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\"`'
18274 else
18275 whole_archive_flag_spec_CXX=''
18276 fi
18277 link_all_deplibs_CXX=yes
18278 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18279 case $cc_basename in
18280 ifort*) _lt_dar_can_shared=yes ;;
18281 *) _lt_dar_can_shared=$GCC ;;
18282 esac
18283 if test "$_lt_dar_can_shared" = "yes"; then
18284 output_verbose_link_cmd=func_echo_all
18285 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}"
18286 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18287 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}"
18288 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}"
18289 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18290 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}"
18291 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}"
18292 fi
18293
18294 else
18295 ld_shlibs_CXX=no
18296 fi
18297
18298 ;;
18299
18300 dgux*)
18301 case $cc_basename in
18302 ec++*)
18303 # FIXME: insert proper C++ library support
18304 ld_shlibs_CXX=no
18305 ;;
18306 ghcx*)
18307 # Green Hills C++ Compiler
18308 # FIXME: insert proper C++ library support
18309 ld_shlibs_CXX=no
18310 ;;
18311 *)
18312 # FIXME: insert proper C++ library support
18313 ld_shlibs_CXX=no
18314 ;;
18315 esac
18316 ;;
18317
18318 freebsd[12]*)
18319 # C++ shared libraries reported to be fairly broken before
18320 # switch to ELF
18321 ld_shlibs_CXX=no
18322 ;;
18323
18324 freebsd-elf*)
18325 archive_cmds_need_lc_CXX=no
18326 ;;
18327
18328 freebsd* | dragonfly*)
18329 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18330 # conventions
18331 ld_shlibs_CXX=yes
18332 ;;
18333
18334 gnu*)
18335 ;;
18336
18337 haiku*)
18338 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18339 link_all_deplibs_CXX=yes
18340 ;;
18341
18342 hpux9*)
18343 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18344 hardcode_libdir_separator_CXX=:
18345 export_dynamic_flag_spec_CXX='${wl}-E'
18346 hardcode_direct_CXX=yes
18347 hardcode_minus_L_CXX=yes # Not in the search PATH,
18348 # but as the default
18349 # location of the library.
18350
18351 case $cc_basename in
18352 CC*)
18353 # FIXME: insert proper C++ library support
18354 ld_shlibs_CXX=no
18355 ;;
18356 aCC*)
18357 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'
18358 # Commands to make compiler produce verbose output that lists
18359 # what "hidden" libraries, object files and flags are used when
18360 # linking a shared library.
18361 #
18362 # There doesn't appear to be a way to prevent this compiler from
18363 # explicitly linking system object files so we need to strip them
18364 # from the output so that they don't get included in the library
18365 # dependencies.
18366 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"'
18367 ;;
18368 *)
18369 if test "$GXX" = yes; then
18370 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'
18371 else
18372 # FIXME: insert proper C++ library support
18373 ld_shlibs_CXX=no
18374 fi
18375 ;;
18376 esac
18377 ;;
18378
18379 hpux10*|hpux11*)
18380 if test $with_gnu_ld = no; then
18381 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18382 hardcode_libdir_separator_CXX=:
18383
18384 case $host_cpu in
18385 hppa*64*|ia64*)
18386 ;;
18387 *)
18388 export_dynamic_flag_spec_CXX='${wl}-E'
18389 ;;
18390 esac
18391 fi
18392 case $host_cpu in
18393 hppa*64*|ia64*)
18394 hardcode_direct_CXX=no
18395 hardcode_shlibpath_var_CXX=no
18396 ;;
18397 *)
18398 hardcode_direct_CXX=yes
18399 hardcode_direct_absolute_CXX=yes
18400 hardcode_minus_L_CXX=yes # Not in the search PATH,
18401 # but as the default
18402 # location of the library.
18403 ;;
18404 esac
18405
18406 case $cc_basename in
18407 CC*)
18408 # FIXME: insert proper C++ library support
18409 ld_shlibs_CXX=no
18410 ;;
18411 aCC*)
18412 case $host_cpu in
18413 hppa*64*)
18414 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18415 ;;
18416 ia64*)
18417 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18418 ;;
18419 *)
18420 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18421 ;;
18422 esac
18423 # Commands to make compiler produce verbose output that lists
18424 # what "hidden" libraries, object files and flags are used when
18425 # linking a shared library.
18426 #
18427 # There doesn't appear to be a way to prevent this compiler from
18428 # explicitly linking system object files so we need to strip them
18429 # from the output so that they don't get included in the library
18430 # dependencies.
18431 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"'
18432 ;;
18433 *)
18434 if test "$GXX" = yes; then
18435 if test $with_gnu_ld = no; then
18436 case $host_cpu in
18437 hppa*64*)
18438 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18439 ;;
18440 ia64*)
18441 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18442 ;;
18443 *)
18444 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'
18445 ;;
18446 esac
18447 fi
18448 else
18449 # FIXME: insert proper C++ library support
18450 ld_shlibs_CXX=no
18451 fi
18452 ;;
18453 esac
18454 ;;
18455
18456 interix[3-9]*)
18457 hardcode_direct_CXX=no
18458 hardcode_shlibpath_var_CXX=no
18459 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18460 export_dynamic_flag_spec_CXX='${wl}-E'
18461 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18462 # Instead, shared libraries are loaded at an image base (0x10000000 by
18463 # default) and relocated if they conflict, which is a slow very memory
18464 # consuming and fragmenting process. To avoid this, we pick a random,
18465 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18466 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18467 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'
18468 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'
18469 ;;
18470 irix5* | irix6*)
18471 case $cc_basename in
18472 CC*)
18473 # SGI C++
18474 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'
18475
18476 # Archives containing C++ object files must be created using
18477 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18478 # necessary to make sure instantiated templates are included
18479 # in the archive.
18480 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18481 ;;
18482 *)
18483 if test "$GXX" = yes; then
18484 if test "$with_gnu_ld" = no; then
18485 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'
18486 else
18487 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'
18488 fi
18489 fi
18490 link_all_deplibs_CXX=yes
18491 ;;
18492 esac
18493 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18494 hardcode_libdir_separator_CXX=:
18495 inherit_rpath_CXX=yes
18496 ;;
18497
18498 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18499 case $cc_basename in
18500 KCC*)
18501 # Kuck and Associates, Inc. (KAI) C++ Compiler
18502
18503 # KCC will only create a shared library if the output file
18504 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18505 # to its proper name (with version) after linking.
18506 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'
18507 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'
18508 # Commands to make compiler produce verbose output that lists
18509 # what "hidden" libraries, object files and flags are used when
18510 # linking a shared library.
18511 #
18512 # There doesn't appear to be a way to prevent this compiler from
18513 # explicitly linking system object files so we need to strip them
18514 # from the output so that they don't get included in the library
18515 # dependencies.
18516 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"'
18517
18518 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18519 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18520
18521 # Archives containing C++ object files must be created using
18522 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18523 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18524 ;;
18525 icpc* | ecpc* )
18526 # Intel C++
18527 with_gnu_ld=yes
18528 # version 8.0 and above of icpc choke on multiply defined symbols
18529 # if we add $predep_objects and $postdep_objects, however 7.1 and
18530 # earlier do not add the objects themselves.
18531 case `$CC -V 2>&1` in
18532 *"Version 7."*)
18533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18534 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'
18535 ;;
18536 *) # Version 8.0 or newer
18537 tmp_idyn=
18538 case $host_cpu in
18539 ia64*) tmp_idyn=' -i_dynamic';;
18540 esac
18541 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18542 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'
18543 ;;
18544 esac
18545 archive_cmds_need_lc_CXX=no
18546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18547 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18548 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18549 ;;
18550 pgCC* | pgcpp*)
18551 # Portland Group C++ compiler
18552 case `$CC -V` in
18553 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18554 prelink_cmds_CXX='tpldir=Template.dir~
18555 rm -rf $tpldir~
18556 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18557 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18558 old_archive_cmds_CXX='tpldir=Template.dir~
18559 rm -rf $tpldir~
18560 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18561 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18562 $RANLIB $oldlib'
18563 archive_cmds_CXX='tpldir=Template.dir~
18564 rm -rf $tpldir~
18565 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18566 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18567 archive_expsym_cmds_CXX='tpldir=Template.dir~
18568 rm -rf $tpldir~
18569 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18570 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18571 ;;
18572 *) # Version 6 and above use weak symbols
18573 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18574 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'
18575 ;;
18576 esac
18577
18578 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18580 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'
18581 ;;
18582 cxx*)
18583 # Compaq C++
18584 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18585 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'
18586
18587 runpath_var=LD_RUN_PATH
18588 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18589 hardcode_libdir_separator_CXX=:
18590
18591 # Commands to make compiler produce verbose output that lists
18592 # what "hidden" libraries, object files and flags are used when
18593 # linking a shared library.
18594 #
18595 # There doesn't appear to be a way to prevent this compiler from
18596 # explicitly linking system object files so we need to strip them
18597 # from the output so that they don't get included in the library
18598 # dependencies.
18599 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'
18600 ;;
18601 xl* | mpixl* | bgxl*)
18602 # IBM XL 8.0 on PPC, with GNU ld
18603 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18604 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18605 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18606 if test "x$supports_anon_versioning" = xyes; then
18607 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18609 echo "local: *; };" >> $output_objdir/$libname.ver~
18610 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18611 fi
18612 ;;
18613 *)
18614 case `$CC -V 2>&1 | sed 5q` in
18615 *Sun\ C*)
18616 # Sun C++ 5.9
18617 no_undefined_flag_CXX=' -zdefs'
18618 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18619 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'
18620 hardcode_libdir_flag_spec_CXX='-R$libdir'
18621 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'
18622 compiler_needs_object_CXX=yes
18623
18624 # Not sure whether something based on
18625 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18626 # would be better.
18627 output_verbose_link_cmd='func_echo_all'
18628
18629 # Archives containing C++ object files must be created using
18630 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18631 # necessary to make sure instantiated templates are included
18632 # in the archive.
18633 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18634 ;;
18635 esac
18636 ;;
18637 esac
18638 ;;
18639
18640 lynxos*)
18641 # FIXME: insert proper C++ library support
18642 ld_shlibs_CXX=no
18643 ;;
18644
18645 m88k*)
18646 # FIXME: insert proper C++ library support
18647 ld_shlibs_CXX=no
18648 ;;
18649
18650 mvs*)
18651 case $cc_basename in
18652 cxx*)
18653 # FIXME: insert proper C++ library support
18654 ld_shlibs_CXX=no
18655 ;;
18656 *)
18657 # FIXME: insert proper C++ library support
18658 ld_shlibs_CXX=no
18659 ;;
18660 esac
18661 ;;
18662
18663 netbsd*)
18664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18665 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18666 wlarc=
18667 hardcode_libdir_flag_spec_CXX='-R$libdir'
18668 hardcode_direct_CXX=yes
18669 hardcode_shlibpath_var_CXX=no
18670 fi
18671 # Workaround some broken pre-1.5 toolchains
18672 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18673 ;;
18674
18675 *nto* | *qnx*)
18676 ld_shlibs_CXX=yes
18677 ;;
18678
18679 openbsd2*)
18680 # C++ shared libraries are fairly broken
18681 ld_shlibs_CXX=no
18682 ;;
18683
18684 openbsd*)
18685 if test -f /usr/libexec/ld.so; then
18686 hardcode_direct_CXX=yes
18687 hardcode_shlibpath_var_CXX=no
18688 hardcode_direct_absolute_CXX=yes
18689 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18692 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18693 export_dynamic_flag_spec_CXX='${wl}-E'
18694 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18695 fi
18696 output_verbose_link_cmd=func_echo_all
18697 else
18698 ld_shlibs_CXX=no
18699 fi
18700 ;;
18701
18702 osf3* | osf4* | osf5*)
18703 case $cc_basename in
18704 KCC*)
18705 # Kuck and Associates, Inc. (KAI) C++ Compiler
18706
18707 # KCC will only create a shared library if the output file
18708 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18709 # to its proper name (with version) after linking.
18710 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'
18711
18712 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18713 hardcode_libdir_separator_CXX=:
18714
18715 # Archives containing C++ object files must be created using
18716 # the KAI C++ compiler.
18717 case $host in
18718 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18719 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18720 esac
18721 ;;
18722 RCC*)
18723 # Rational C++ 2.4.1
18724 # FIXME: insert proper C++ library support
18725 ld_shlibs_CXX=no
18726 ;;
18727 cxx*)
18728 case $host in
18729 osf3*)
18730 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18731 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'
18732 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18733 ;;
18734 *)
18735 allow_undefined_flag_CXX=' -expect_unresolved \*'
18736 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'
18737 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18738 echo "-hidden">> $lib.exp~
18739 $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~
18740 $RM $lib.exp'
18741 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18742 ;;
18743 esac
18744
18745 hardcode_libdir_separator_CXX=:
18746
18747 # Commands to make compiler produce verbose output that lists
18748 # what "hidden" libraries, object files and flags are used when
18749 # linking a shared library.
18750 #
18751 # There doesn't appear to be a way to prevent this compiler from
18752 # explicitly linking system object files so we need to strip them
18753 # from the output so that they don't get included in the library
18754 # dependencies.
18755 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"'
18756 ;;
18757 *)
18758 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18759 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18760 case $host in
18761 osf3*)
18762 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'
18763 ;;
18764 *)
18765 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'
18766 ;;
18767 esac
18768
18769 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18770 hardcode_libdir_separator_CXX=:
18771
18772 # Commands to make compiler produce verbose output that lists
18773 # what "hidden" libraries, object files and flags are used when
18774 # linking a shared library.
18775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18776
18777 else
18778 # FIXME: insert proper C++ library support
18779 ld_shlibs_CXX=no
18780 fi
18781 ;;
18782 esac
18783 ;;
18784
18785 psos*)
18786 # FIXME: insert proper C++ library support
18787 ld_shlibs_CXX=no
18788 ;;
18789
18790 sunos4*)
18791 case $cc_basename in
18792 CC*)
18793 # Sun C++ 4.x
18794 # FIXME: insert proper C++ library support
18795 ld_shlibs_CXX=no
18796 ;;
18797 lcc*)
18798 # Lucid
18799 # FIXME: insert proper C++ library support
18800 ld_shlibs_CXX=no
18801 ;;
18802 *)
18803 # FIXME: insert proper C++ library support
18804 ld_shlibs_CXX=no
18805 ;;
18806 esac
18807 ;;
18808
18809 solaris*)
18810 case $cc_basename in
18811 CC*)
18812 # Sun C++ 4.2, 5.x and Centerline C++
18813 archive_cmds_need_lc_CXX=yes
18814 no_undefined_flag_CXX=' -zdefs'
18815 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18816 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18817 $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'
18818
18819 hardcode_libdir_flag_spec_CXX='-R$libdir'
18820 hardcode_shlibpath_var_CXX=no
18821 case $host_os in
18822 solaris2.[0-5] | solaris2.[0-5].*) ;;
18823 *)
18824 # The compiler driver will combine and reorder linker options,
18825 # but understands `-z linker_flag'.
18826 # Supported since Solaris 2.6 (maybe 2.5.1?)
18827 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18828 ;;
18829 esac
18830 link_all_deplibs_CXX=yes
18831
18832 output_verbose_link_cmd='func_echo_all'
18833
18834 # Archives containing C++ object files must be created using
18835 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18836 # necessary to make sure instantiated templates are included
18837 # in the archive.
18838 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18839 ;;
18840 gcx*)
18841 # Green Hills C++ Compiler
18842 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18843
18844 # The C++ compiler must be used to create the archive.
18845 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18846 ;;
18847 *)
18848 # GNU C++ compiler with Solaris linker
18849 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18850 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18851 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18852 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18853 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18854 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18855
18856 # Commands to make compiler produce verbose output that lists
18857 # what "hidden" libraries, object files and flags are used when
18858 # linking a shared library.
18859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18860 else
18861 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18862 # platform.
18863 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18864 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18865 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18866
18867 # Commands to make compiler produce verbose output that lists
18868 # what "hidden" libraries, object files and flags are used when
18869 # linking a shared library.
18870 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18871 fi
18872
18873 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18874 case $host_os in
18875 solaris2.[0-5] | solaris2.[0-5].*) ;;
18876 *)
18877 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18878 ;;
18879 esac
18880 fi
18881 ;;
18882 esac
18883 ;;
18884
18885 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18886 no_undefined_flag_CXX='${wl}-z,text'
18887 archive_cmds_need_lc_CXX=no
18888 hardcode_shlibpath_var_CXX=no
18889 runpath_var='LD_RUN_PATH'
18890
18891 case $cc_basename in
18892 CC*)
18893 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18894 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18895 ;;
18896 *)
18897 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18898 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18899 ;;
18900 esac
18901 ;;
18902
18903 sysv5* | sco3.2v5* | sco5v6*)
18904 # Note: We can NOT use -z defs as we might desire, because we do not
18905 # link with -lc, and that would cause any symbols used from libc to
18906 # always be unresolved, which means just about no library would
18907 # ever link correctly. If we're not using GNU ld we use -z text
18908 # though, which does catch some bad symbols but isn't as heavy-handed
18909 # as -z defs.
18910 no_undefined_flag_CXX='${wl}-z,text'
18911 allow_undefined_flag_CXX='${wl}-z,nodefs'
18912 archive_cmds_need_lc_CXX=no
18913 hardcode_shlibpath_var_CXX=no
18914 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18915 hardcode_libdir_separator_CXX=':'
18916 link_all_deplibs_CXX=yes
18917 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18918 runpath_var='LD_RUN_PATH'
18919
18920 case $cc_basename in
18921 CC*)
18922 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18923 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18924 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18925 '"$old_archive_cmds_CXX"
18926 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18927 '"$reload_cmds_CXX"
18928 ;;
18929 *)
18930 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18931 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18932 ;;
18933 esac
18934 ;;
18935
18936 tandem*)
18937 case $cc_basename in
18938 NCC*)
18939 # NonStop-UX NCC 3.20
18940 # FIXME: insert proper C++ library support
18941 ld_shlibs_CXX=no
18942 ;;
18943 *)
18944 # FIXME: insert proper C++ library support
18945 ld_shlibs_CXX=no
18946 ;;
18947 esac
18948 ;;
18949
18950 vxworks*)
18951 # FIXME: insert proper C++ library support
18952 ld_shlibs_CXX=no
18953 ;;
18954
18955 *)
18956 # FIXME: insert proper C++ library support
18957 ld_shlibs_CXX=no
18958 ;;
18959 esac
18960
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18962 $as_echo "$ld_shlibs_CXX" >&6; }
18963 test "$ld_shlibs_CXX" = no && can_build_shared=no
18964
18965 GCC_CXX="$GXX"
18966 LD_CXX="$LD"
18967
18968 ## CAVEAT EMPTOR:
18969 ## There is no encapsulation within the following macros, do not change
18970 ## the running order or otherwise move them around unless you know exactly
18971 ## what you are doing...
18972 # Dependencies to place before and after the object being linked:
18973 predep_objects_CXX=
18974 postdep_objects_CXX=
18975 predeps_CXX=
18976 postdeps_CXX=
18977 compiler_lib_search_path_CXX=
18978
18979 cat > conftest.$ac_ext <<_LT_EOF
18980 class Foo
18981 {
18982 public:
18983 Foo (void) { a = 0; }
18984 private:
18985 int a;
18986 };
18987 _LT_EOF
18988
18989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18990 (eval $ac_compile) 2>&5
18991 ac_status=$?
18992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18993 test $ac_status = 0; }; then
18994 # Parse the compiler output and extract the necessary
18995 # objects, libraries and library flags.
18996
18997 # Sentinel used to keep track of whether or not we are before
18998 # the conftest object file.
18999 pre_test_object_deps_done=no
19000
19001 for p in `eval "$output_verbose_link_cmd"`; do
19002 case $p in
19003
19004 -L* | -R* | -l*)
19005 # Some compilers place space between "-{L,R}" and the path.
19006 # Remove the space.
19007 if test $p = "-L" ||
19008 test $p = "-R"; then
19009 prev=$p
19010 continue
19011 else
19012 prev=
19013 fi
19014
19015 if test "$pre_test_object_deps_done" = no; then
19016 case $p in
19017 -L* | -R*)
19018 # Internal compiler library paths should come after those
19019 # provided the user. The postdeps already come after the
19020 # user supplied libs so there is no need to process them.
19021 if test -z "$compiler_lib_search_path_CXX"; then
19022 compiler_lib_search_path_CXX="${prev}${p}"
19023 else
19024 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19025 fi
19026 ;;
19027 # The "-l" case would never come before the object being
19028 # linked, so don't bother handling this case.
19029 esac
19030 else
19031 if test -z "$postdeps_CXX"; then
19032 postdeps_CXX="${prev}${p}"
19033 else
19034 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19035 fi
19036 fi
19037 ;;
19038
19039 *.$objext)
19040 # This assumes that the test object file only shows up
19041 # once in the compiler output.
19042 if test "$p" = "conftest.$objext"; then
19043 pre_test_object_deps_done=yes
19044 continue
19045 fi
19046
19047 if test "$pre_test_object_deps_done" = no; then
19048 if test -z "$predep_objects_CXX"; then
19049 predep_objects_CXX="$p"
19050 else
19051 predep_objects_CXX="$predep_objects_CXX $p"
19052 fi
19053 else
19054 if test -z "$postdep_objects_CXX"; then
19055 postdep_objects_CXX="$p"
19056 else
19057 postdep_objects_CXX="$postdep_objects_CXX $p"
19058 fi
19059 fi
19060 ;;
19061
19062 *) ;; # Ignore the rest.
19063
19064 esac
19065 done
19066
19067 # Clean up.
19068 rm -f a.out a.exe
19069 else
19070 echo "libtool.m4: error: problem compiling CXX test program"
19071 fi
19072
19073 $RM -f confest.$objext
19074
19075 # PORTME: override above test on systems where it is broken
19076 case $host_os in
19077 interix[3-9]*)
19078 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19079 # hack all around it, let's just trust "g++" to DTRT.
19080 predep_objects_CXX=
19081 postdep_objects_CXX=
19082 postdeps_CXX=
19083 ;;
19084
19085 linux*)
19086 case `$CC -V 2>&1 | sed 5q` in
19087 *Sun\ C*)
19088 # Sun C++ 5.9
19089
19090 # The more standards-conforming stlport4 library is
19091 # incompatible with the Cstd library. Avoid specifying
19092 # it if it's in CXXFLAGS. Ignore libCrun as
19093 # -library=stlport4 depends on it.
19094 case " $CXX $CXXFLAGS " in
19095 *" -library=stlport4 "*)
19096 solaris_use_stlport4=yes
19097 ;;
19098 esac
19099
19100 if test "$solaris_use_stlport4" != yes; then
19101 postdeps_CXX='-library=Cstd -library=Crun'
19102 fi
19103 ;;
19104 esac
19105 ;;
19106
19107 solaris*)
19108 case $cc_basename in
19109 CC*)
19110 # The more standards-conforming stlport4 library is
19111 # incompatible with the Cstd library. Avoid specifying
19112 # it if it's in CXXFLAGS. Ignore libCrun as
19113 # -library=stlport4 depends on it.
19114 case " $CXX $CXXFLAGS " in
19115 *" -library=stlport4 "*)
19116 solaris_use_stlport4=yes
19117 ;;
19118 esac
19119
19120 # Adding this requires a known-good setup of shared libraries for
19121 # Sun compiler versions before 5.6, else PIC objects from an old
19122 # archive will be linked into the output, leading to subtle bugs.
19123 if test "$solaris_use_stlport4" != yes; then
19124 postdeps_CXX='-library=Cstd -library=Crun'
19125 fi
19126 ;;
19127 esac
19128 ;;
19129 esac
19130
19131
19132 case " $postdeps_CXX " in
19133 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19134 esac
19135 compiler_lib_search_dirs_CXX=
19136 if test -n "${compiler_lib_search_path_CXX}"; then
19137 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19138 fi
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170 lt_prog_compiler_wl_CXX=
19171 lt_prog_compiler_pic_CXX=
19172 lt_prog_compiler_static_CXX=
19173
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19175 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19176
19177 # C++ specific cases for pic, static, wl, etc.
19178 if test "$GXX" = yes; then
19179 lt_prog_compiler_wl_CXX='-Wl,'
19180 lt_prog_compiler_static_CXX='-static'
19181
19182 case $host_os in
19183 aix*)
19184 # All AIX code is PIC.
19185 if test "$host_cpu" = ia64; then
19186 # AIX 5 now supports IA64 processor
19187 lt_prog_compiler_static_CXX='-Bstatic'
19188 fi
19189 ;;
19190
19191 amigaos*)
19192 case $host_cpu in
19193 powerpc)
19194 # see comment about AmigaOS4 .so support
19195 lt_prog_compiler_pic_CXX='-fPIC'
19196 ;;
19197 m68k)
19198 # FIXME: we need at least 68020 code to build shared libraries, but
19199 # adding the `-m68020' flag to GCC prevents building anything better,
19200 # like `-m68040'.
19201 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19202 ;;
19203 esac
19204 ;;
19205
19206 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19207 # PIC is the default for these OSes.
19208 ;;
19209 mingw* | cygwin* | os2* | pw32* | cegcc*)
19210 # This hack is so that the source file can tell whether it is being
19211 # built for inclusion in a dll (and should export symbols for example).
19212 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19213 # (--disable-auto-import) libraries
19214 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19215 ;;
19216 darwin* | rhapsody*)
19217 # PIC is the default on this platform
19218 # Common symbols not allowed in MH_DYLIB files
19219 lt_prog_compiler_pic_CXX='-fno-common'
19220 ;;
19221 *djgpp*)
19222 # DJGPP does not support shared libraries at all
19223 lt_prog_compiler_pic_CXX=
19224 ;;
19225 haiku*)
19226 # PIC is the default for Haiku.
19227 # The "-static" flag exists, but is broken.
19228 lt_prog_compiler_static_CXX=
19229 ;;
19230 interix[3-9]*)
19231 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19232 # Instead, we relocate shared libraries at runtime.
19233 ;;
19234 sysv4*MP*)
19235 if test -d /usr/nec; then
19236 lt_prog_compiler_pic_CXX=-Kconform_pic
19237 fi
19238 ;;
19239 hpux*)
19240 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19241 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19242 # sets the default TLS model and affects inlining.
19243 case $host_cpu in
19244 hppa*64*)
19245 ;;
19246 *)
19247 lt_prog_compiler_pic_CXX='-fPIC'
19248 ;;
19249 esac
19250 ;;
19251 *qnx* | *nto*)
19252 # QNX uses GNU C++, but need to define -shared option too, otherwise
19253 # it will coredump.
19254 lt_prog_compiler_pic_CXX='-fPIC -shared'
19255 ;;
19256 *)
19257 lt_prog_compiler_pic_CXX='-fPIC'
19258 ;;
19259 esac
19260 else
19261 case $host_os in
19262 aix[4-9]*)
19263 # All AIX code is PIC.
19264 if test "$host_cpu" = ia64; then
19265 # AIX 5 now supports IA64 processor
19266 lt_prog_compiler_static_CXX='-Bstatic'
19267 else
19268 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19269 fi
19270 ;;
19271 chorus*)
19272 case $cc_basename in
19273 cxch68*)
19274 # Green Hills C++ Compiler
19275 # _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"
19276 ;;
19277 esac
19278 ;;
19279 dgux*)
19280 case $cc_basename in
19281 ec++*)
19282 lt_prog_compiler_pic_CXX='-KPIC'
19283 ;;
19284 ghcx*)
19285 # Green Hills C++ Compiler
19286 lt_prog_compiler_pic_CXX='-pic'
19287 ;;
19288 *)
19289 ;;
19290 esac
19291 ;;
19292 freebsd* | dragonfly*)
19293 # FreeBSD uses GNU C++
19294 ;;
19295 hpux9* | hpux10* | hpux11*)
19296 case $cc_basename in
19297 CC*)
19298 lt_prog_compiler_wl_CXX='-Wl,'
19299 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19300 if test "$host_cpu" != ia64; then
19301 lt_prog_compiler_pic_CXX='+Z'
19302 fi
19303 ;;
19304 aCC*)
19305 lt_prog_compiler_wl_CXX='-Wl,'
19306 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19307 case $host_cpu in
19308 hppa*64*|ia64*)
19309 # +Z the default
19310 ;;
19311 *)
19312 lt_prog_compiler_pic_CXX='+Z'
19313 ;;
19314 esac
19315 ;;
19316 *)
19317 ;;
19318 esac
19319 ;;
19320 interix*)
19321 # This is c89, which is MS Visual C++ (no shared libs)
19322 # Anyone wants to do a port?
19323 ;;
19324 irix5* | irix6* | nonstopux*)
19325 case $cc_basename in
19326 CC*)
19327 lt_prog_compiler_wl_CXX='-Wl,'
19328 lt_prog_compiler_static_CXX='-non_shared'
19329 # CC pic flag -KPIC is the default.
19330 ;;
19331 *)
19332 ;;
19333 esac
19334 ;;
19335 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19336 case $cc_basename in
19337 KCC*)
19338 # KAI C++ Compiler
19339 lt_prog_compiler_wl_CXX='--backend -Wl,'
19340 lt_prog_compiler_pic_CXX='-fPIC'
19341 ;;
19342 ecpc* )
19343 # old Intel C++ for x86_64 which still supported -KPIC.
19344 lt_prog_compiler_wl_CXX='-Wl,'
19345 lt_prog_compiler_pic_CXX='-KPIC'
19346 lt_prog_compiler_static_CXX='-static'
19347 ;;
19348 icpc* )
19349 # Intel C++, used to be incompatible with GCC.
19350 # ICC 10 doesn't accept -KPIC any more.
19351 lt_prog_compiler_wl_CXX='-Wl,'
19352 lt_prog_compiler_pic_CXX='-fPIC'
19353 lt_prog_compiler_static_CXX='-static'
19354 ;;
19355 pgCC* | pgcpp*)
19356 # Portland Group C++ compiler
19357 lt_prog_compiler_wl_CXX='-Wl,'
19358 lt_prog_compiler_pic_CXX='-fpic'
19359 lt_prog_compiler_static_CXX='-Bstatic'
19360 ;;
19361 cxx*)
19362 # Compaq C++
19363 # Make sure the PIC flag is empty. It appears that all Alpha
19364 # Linux and Compaq Tru64 Unix objects are PIC.
19365 lt_prog_compiler_pic_CXX=
19366 lt_prog_compiler_static_CXX='-non_shared'
19367 ;;
19368 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19369 # IBM XL 8.0, 9.0 on PPC and BlueGene
19370 lt_prog_compiler_wl_CXX='-Wl,'
19371 lt_prog_compiler_pic_CXX='-qpic'
19372 lt_prog_compiler_static_CXX='-qstaticlink'
19373 ;;
19374 *)
19375 case `$CC -V 2>&1 | sed 5q` in
19376 *Sun\ C*)
19377 # Sun C++ 5.9
19378 lt_prog_compiler_pic_CXX='-KPIC'
19379 lt_prog_compiler_static_CXX='-Bstatic'
19380 lt_prog_compiler_wl_CXX='-Qoption ld '
19381 ;;
19382 esac
19383 ;;
19384 esac
19385 ;;
19386 lynxos*)
19387 ;;
19388 m88k*)
19389 ;;
19390 mvs*)
19391 case $cc_basename in
19392 cxx*)
19393 lt_prog_compiler_pic_CXX='-W c,exportall'
19394 ;;
19395 *)
19396 ;;
19397 esac
19398 ;;
19399 netbsd*)
19400 ;;
19401 *qnx* | *nto*)
19402 # QNX uses GNU C++, but need to define -shared option too, otherwise
19403 # it will coredump.
19404 lt_prog_compiler_pic_CXX='-fPIC -shared'
19405 ;;
19406 osf3* | osf4* | osf5*)
19407 case $cc_basename in
19408 KCC*)
19409 lt_prog_compiler_wl_CXX='--backend -Wl,'
19410 ;;
19411 RCC*)
19412 # Rational C++ 2.4.1
19413 lt_prog_compiler_pic_CXX='-pic'
19414 ;;
19415 cxx*)
19416 # Digital/Compaq C++
19417 lt_prog_compiler_wl_CXX='-Wl,'
19418 # Make sure the PIC flag is empty. It appears that all Alpha
19419 # Linux and Compaq Tru64 Unix objects are PIC.
19420 lt_prog_compiler_pic_CXX=
19421 lt_prog_compiler_static_CXX='-non_shared'
19422 ;;
19423 *)
19424 ;;
19425 esac
19426 ;;
19427 psos*)
19428 ;;
19429 solaris*)
19430 case $cc_basename in
19431 CC*)
19432 # Sun C++ 4.2, 5.x and Centerline C++
19433 lt_prog_compiler_pic_CXX='-KPIC'
19434 lt_prog_compiler_static_CXX='-Bstatic'
19435 lt_prog_compiler_wl_CXX='-Qoption ld '
19436 ;;
19437 gcx*)
19438 # Green Hills C++ Compiler
19439 lt_prog_compiler_pic_CXX='-PIC'
19440 ;;
19441 *)
19442 ;;
19443 esac
19444 ;;
19445 sunos4*)
19446 case $cc_basename in
19447 CC*)
19448 # Sun C++ 4.x
19449 lt_prog_compiler_pic_CXX='-pic'
19450 lt_prog_compiler_static_CXX='-Bstatic'
19451 ;;
19452 lcc*)
19453 # Lucid
19454 lt_prog_compiler_pic_CXX='-pic'
19455 ;;
19456 *)
19457 ;;
19458 esac
19459 ;;
19460 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19461 case $cc_basename in
19462 CC*)
19463 lt_prog_compiler_wl_CXX='-Wl,'
19464 lt_prog_compiler_pic_CXX='-KPIC'
19465 lt_prog_compiler_static_CXX='-Bstatic'
19466 ;;
19467 esac
19468 ;;
19469 tandem*)
19470 case $cc_basename in
19471 NCC*)
19472 # NonStop-UX NCC 3.20
19473 lt_prog_compiler_pic_CXX='-KPIC'
19474 ;;
19475 *)
19476 ;;
19477 esac
19478 ;;
19479 vxworks*)
19480 ;;
19481 *)
19482 lt_prog_compiler_can_build_shared_CXX=no
19483 ;;
19484 esac
19485 fi
19486
19487 case $host_os in
19488 # For platforms which do not support PIC, -DPIC is meaningless:
19489 *djgpp*)
19490 lt_prog_compiler_pic_CXX=
19491 ;;
19492 *)
19493 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19494 ;;
19495 esac
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19497 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19498
19499
19500
19501 #
19502 # Check to make sure the PIC flag actually works.
19503 #
19504 if test -n "$lt_prog_compiler_pic_CXX"; then
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19506 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19507 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19508 $as_echo_n "(cached) " >&6
19509 else
19510 lt_cv_prog_compiler_pic_works_CXX=no
19511 ac_outfile=conftest.$ac_objext
19512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19513 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19514 # Insert the option either (1) after the last *FLAGS variable, or
19515 # (2) before a word containing "conftest.", or (3) at the end.
19516 # Note that $ac_compile itself does not contain backslashes and begins
19517 # with a dollar sign (not a hyphen), so the echo should work correctly.
19518 # The option is referenced via a variable to avoid confusing sed.
19519 lt_compile=`echo "$ac_compile" | $SED \
19520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19522 -e 's:$: $lt_compiler_flag:'`
19523 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19524 (eval "$lt_compile" 2>conftest.err)
19525 ac_status=$?
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 if (exit $ac_status) && test -s "$ac_outfile"; then
19529 # The compiler can only warn and ignore the option if not recognized
19530 # So say no if there are warnings other than the usual output.
19531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19533 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19534 lt_cv_prog_compiler_pic_works_CXX=yes
19535 fi
19536 fi
19537 $RM conftest*
19538
19539 fi
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19541 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19542
19543 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19544 case $lt_prog_compiler_pic_CXX in
19545 "" | " "*) ;;
19546 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19547 esac
19548 else
19549 lt_prog_compiler_pic_CXX=
19550 lt_prog_compiler_can_build_shared_CXX=no
19551 fi
19552
19553 fi
19554
19555
19556
19557 #
19558 # Check to make sure the static flag actually works.
19559 #
19560 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19562 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19563 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19564 $as_echo_n "(cached) " >&6
19565 else
19566 lt_cv_prog_compiler_static_works_CXX=no
19567 save_LDFLAGS="$LDFLAGS"
19568 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19569 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19571 # The linker can only warn and ignore the option if not recognized
19572 # So say no if there are warnings
19573 if test -s conftest.err; then
19574 # Append any errors to the config.log.
19575 cat conftest.err 1>&5
19576 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19578 if diff conftest.exp conftest.er2 >/dev/null; then
19579 lt_cv_prog_compiler_static_works_CXX=yes
19580 fi
19581 else
19582 lt_cv_prog_compiler_static_works_CXX=yes
19583 fi
19584 fi
19585 $RM -r conftest*
19586 LDFLAGS="$save_LDFLAGS"
19587
19588 fi
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19590 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19591
19592 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19593 :
19594 else
19595 lt_prog_compiler_static_CXX=
19596 fi
19597
19598
19599
19600
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19603 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19604 $as_echo_n "(cached) " >&6
19605 else
19606 lt_cv_prog_compiler_c_o_CXX=no
19607 $RM -r conftest 2>/dev/null
19608 mkdir conftest
19609 cd conftest
19610 mkdir out
19611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19612
19613 lt_compiler_flag="-o out/conftest2.$ac_objext"
19614 # Insert the option either (1) after the last *FLAGS variable, or
19615 # (2) before a word containing "conftest.", or (3) at the end.
19616 # Note that $ac_compile itself does not contain backslashes and begins
19617 # with a dollar sign (not a hyphen), so the echo should work correctly.
19618 lt_compile=`echo "$ac_compile" | $SED \
19619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19621 -e 's:$: $lt_compiler_flag:'`
19622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19623 (eval "$lt_compile" 2>out/conftest.err)
19624 ac_status=$?
19625 cat out/conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19628 then
19629 # The compiler can only warn and ignore the option if not recognized
19630 # So say no if there are warnings
19631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19634 lt_cv_prog_compiler_c_o_CXX=yes
19635 fi
19636 fi
19637 chmod u+w . 2>&5
19638 $RM conftest*
19639 # SGI C++ compiler will create directory out/ii_files/ for
19640 # template instantiation
19641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19642 $RM out/* && rmdir out
19643 cd ..
19644 $RM -r conftest
19645 $RM conftest*
19646
19647 fi
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19649 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19650
19651
19652
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19654 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19655 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19656 $as_echo_n "(cached) " >&6
19657 else
19658 lt_cv_prog_compiler_c_o_CXX=no
19659 $RM -r conftest 2>/dev/null
19660 mkdir conftest
19661 cd conftest
19662 mkdir out
19663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19664
19665 lt_compiler_flag="-o out/conftest2.$ac_objext"
19666 # Insert the option either (1) after the last *FLAGS variable, or
19667 # (2) before a word containing "conftest.", or (3) at the end.
19668 # Note that $ac_compile itself does not contain backslashes and begins
19669 # with a dollar sign (not a hyphen), so the echo should work correctly.
19670 lt_compile=`echo "$ac_compile" | $SED \
19671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19673 -e 's:$: $lt_compiler_flag:'`
19674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19675 (eval "$lt_compile" 2>out/conftest.err)
19676 ac_status=$?
19677 cat out/conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19680 then
19681 # The compiler can only warn and ignore the option if not recognized
19682 # So say no if there are warnings
19683 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19684 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19685 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19686 lt_cv_prog_compiler_c_o_CXX=yes
19687 fi
19688 fi
19689 chmod u+w . 2>&5
19690 $RM conftest*
19691 # SGI C++ compiler will create directory out/ii_files/ for
19692 # template instantiation
19693 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19694 $RM out/* && rmdir out
19695 cd ..
19696 $RM -r conftest
19697 $RM conftest*
19698
19699 fi
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19701 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19702
19703
19704
19705
19706 hard_links="nottested"
19707 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19708 # do not overwrite the value of need_locks provided by the user
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19710 $as_echo_n "checking if we can lock with hard links... " >&6; }
19711 hard_links=yes
19712 $RM conftest*
19713 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19714 touch conftest.a
19715 ln conftest.a conftest.b 2>&5 || hard_links=no
19716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19718 $as_echo "$hard_links" >&6; }
19719 if test "$hard_links" = no; then
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19721 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19722 need_locks=warn
19723 fi
19724 else
19725 need_locks=no
19726 fi
19727
19728
19729
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19731 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19732
19733 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19734 case $host_os in
19735 aix[4-9]*)
19736 # If we're using GNU nm, then we don't want the "-C" option.
19737 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19738 # Also, AIX nm treats weak defined symbols like other global defined
19739 # symbols, whereas GNU nm marks them as "W".
19740 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19741 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'
19742 else
19743 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19744 fi
19745 ;;
19746 pw32*)
19747 export_symbols_cmds_CXX="$ltdll_cmds"
19748 ;;
19749 cygwin* | mingw* | cegcc*)
19750 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'
19751 ;;
19752 *)
19753 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19754 ;;
19755 esac
19756 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19757
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19759 $as_echo "$ld_shlibs_CXX" >&6; }
19760 test "$ld_shlibs_CXX" = no && can_build_shared=no
19761
19762 with_gnu_ld_CXX=$with_gnu_ld
19763
19764
19765
19766
19767
19768
19769 #
19770 # Do we need to explicitly link libc?
19771 #
19772 case "x$archive_cmds_need_lc_CXX" in
19773 x|xyes)
19774 # Assume -lc should be added
19775 archive_cmds_need_lc_CXX=yes
19776
19777 if test "$enable_shared" = yes && test "$GCC" = yes; then
19778 case $archive_cmds_CXX in
19779 *'~'*)
19780 # FIXME: we may have to deal with multi-command sequences.
19781 ;;
19782 '$CC '*)
19783 # Test whether the compiler implicitly links with -lc since on some
19784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19785 # to ld, don't add -lc before -lgcc.
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19787 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19788 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19789 $as_echo_n "(cached) " >&6
19790 else
19791 $RM conftest*
19792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19793
19794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19795 (eval $ac_compile) 2>&5
19796 ac_status=$?
19797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19798 test $ac_status = 0; } 2>conftest.err; then
19799 soname=conftest
19800 lib=conftest
19801 libobjs=conftest.$ac_objext
19802 deplibs=
19803 wl=$lt_prog_compiler_wl_CXX
19804 pic_flag=$lt_prog_compiler_pic_CXX
19805 compiler_flags=-v
19806 linker_flags=-v
19807 verstring=
19808 output_objdir=.
19809 libname=conftest
19810 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19811 allow_undefined_flag_CXX=
19812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19813 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19814 ac_status=$?
19815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19816 test $ac_status = 0; }
19817 then
19818 lt_cv_archive_cmds_need_lc_CXX=no
19819 else
19820 lt_cv_archive_cmds_need_lc_CXX=yes
19821 fi
19822 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19823 else
19824 cat conftest.err 1>&5
19825 fi
19826 $RM conftest*
19827
19828 fi
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19830 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19831 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19832 ;;
19833 esac
19834 fi
19835 ;;
19836 esac
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19902 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19903
19904 library_names_spec=
19905 libname_spec='lib$name'
19906 soname_spec=
19907 shrext_cmds=".so"
19908 postinstall_cmds=
19909 postuninstall_cmds=
19910 finish_cmds=
19911 finish_eval=
19912 shlibpath_var=
19913 shlibpath_overrides_runpath=unknown
19914 version_type=none
19915 dynamic_linker="$host_os ld.so"
19916 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19917 need_lib_prefix=unknown
19918 hardcode_into_libs=no
19919
19920 # when you set need_version to no, make sure it does not cause -set_version
19921 # flags to be left without arguments
19922 need_version=unknown
19923
19924 case $host_os in
19925 aix3*)
19926 version_type=linux
19927 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19928 shlibpath_var=LIBPATH
19929
19930 # AIX 3 has no versioning support, so we append a major version to the name.
19931 soname_spec='${libname}${release}${shared_ext}$major'
19932 ;;
19933
19934 aix[4-9]*)
19935 version_type=linux
19936 need_lib_prefix=no
19937 need_version=no
19938 hardcode_into_libs=yes
19939 if test "$host_cpu" = ia64; then
19940 # AIX 5 supports IA64
19941 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19942 shlibpath_var=LD_LIBRARY_PATH
19943 else
19944 # With GCC up to 2.95.x, collect2 would create an import file
19945 # for dependence libraries. The import file would start with
19946 # the line `#! .'. This would cause the generated library to
19947 # depend on `.', always an invalid library. This was fixed in
19948 # development snapshots of GCC prior to 3.0.
19949 case $host_os in
19950 aix4 | aix4.[01] | aix4.[01].*)
19951 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19952 echo ' yes '
19953 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19954 :
19955 else
19956 can_build_shared=no
19957 fi
19958 ;;
19959 esac
19960 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19961 # soname into executable. Probably we can add versioning support to
19962 # collect2, so additional links can be useful in future.
19963 if test "$aix_use_runtimelinking" = yes; then
19964 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19965 # instead of lib<name>.a to let people know that these are not
19966 # typical AIX shared libraries.
19967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19968 else
19969 # We preserve .a as extension for shared libraries through AIX4.2
19970 # and later when we are not doing run time linking.
19971 library_names_spec='${libname}${release}.a $libname.a'
19972 soname_spec='${libname}${release}${shared_ext}$major'
19973 fi
19974 shlibpath_var=LIBPATH
19975 fi
19976 ;;
19977
19978 amigaos*)
19979 case $host_cpu in
19980 powerpc)
19981 # Since July 2007 AmigaOS4 officially supports .so libraries.
19982 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19984 ;;
19985 m68k)
19986 library_names_spec='$libname.ixlibrary $libname.a'
19987 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19988 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'
19989 ;;
19990 esac
19991 ;;
19992
19993 beos*)
19994 library_names_spec='${libname}${shared_ext}'
19995 dynamic_linker="$host_os ld.so"
19996 shlibpath_var=LIBRARY_PATH
19997 ;;
19998
19999 bsdi[45]*)
20000 version_type=linux
20001 need_version=no
20002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20003 soname_spec='${libname}${release}${shared_ext}$major'
20004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20005 shlibpath_var=LD_LIBRARY_PATH
20006 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20007 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20008 # the default ld.so.conf also contains /usr/contrib/lib and
20009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20010 # libtool to hard-code these into programs
20011 ;;
20012
20013 cygwin* | mingw* | pw32* | cegcc*)
20014 version_type=windows
20015 shrext_cmds=".dll"
20016 need_version=no
20017 need_lib_prefix=no
20018
20019 case $GCC,$host_os in
20020 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20021 library_names_spec='$libname.dll.a'
20022 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20023 postinstall_cmds='base_file=`basename \${file}`~
20024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20025 dldir=$destdir/`dirname \$dlpath`~
20026 test -d \$dldir || mkdir -p \$dldir~
20027 $install_prog $dir/$dlname \$dldir/$dlname~
20028 chmod a+x \$dldir/$dlname~
20029 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20030 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20031 fi'
20032 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20033 dlpath=$dir/\$dldll~
20034 $RM \$dlpath'
20035 shlibpath_overrides_runpath=yes
20036
20037 case $host_os in
20038 cygwin*)
20039 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20040 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20041
20042 ;;
20043 mingw* | cegcc*)
20044 # MinGW DLLs use traditional 'lib' prefix
20045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20046 ;;
20047 pw32*)
20048 # pw32 DLLs use 'pw' prefix rather than 'lib'
20049 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20050 ;;
20051 esac
20052 ;;
20053
20054 *)
20055 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20056 ;;
20057 esac
20058 dynamic_linker='Win32 ld.exe'
20059 # FIXME: first we should search . and the directory the executable is in
20060 shlibpath_var=PATH
20061 ;;
20062
20063 darwin* | rhapsody*)
20064 dynamic_linker="$host_os dyld"
20065 version_type=darwin
20066 need_lib_prefix=no
20067 need_version=no
20068 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20069 soname_spec='${libname}${release}${major}$shared_ext'
20070 shlibpath_overrides_runpath=yes
20071 shlibpath_var=DYLD_LIBRARY_PATH
20072 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20073
20074 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20075 ;;
20076
20077 dgux*)
20078 version_type=linux
20079 need_lib_prefix=no
20080 need_version=no
20081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20082 soname_spec='${libname}${release}${shared_ext}$major'
20083 shlibpath_var=LD_LIBRARY_PATH
20084 ;;
20085
20086 freebsd1*)
20087 dynamic_linker=no
20088 ;;
20089
20090 freebsd* | dragonfly*)
20091 # DragonFly does not have aout. When/if they implement a new
20092 # versioning mechanism, adjust this.
20093 if test -x /usr/bin/objformat; then
20094 objformat=`/usr/bin/objformat`
20095 else
20096 case $host_os in
20097 freebsd[123]*) objformat=aout ;;
20098 *) objformat=elf ;;
20099 esac
20100 fi
20101 version_type=freebsd-$objformat
20102 case $version_type in
20103 freebsd-elf*)
20104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20105 need_version=no
20106 need_lib_prefix=no
20107 ;;
20108 freebsd-*)
20109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20110 need_version=yes
20111 ;;
20112 esac
20113 shlibpath_var=LD_LIBRARY_PATH
20114 case $host_os in
20115 freebsd2*)
20116 shlibpath_overrides_runpath=yes
20117 ;;
20118 freebsd3.[01]* | freebsdelf3.[01]*)
20119 shlibpath_overrides_runpath=yes
20120 hardcode_into_libs=yes
20121 ;;
20122 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20123 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20124 shlibpath_overrides_runpath=no
20125 hardcode_into_libs=yes
20126 ;;
20127 *) # from 4.6 on, and DragonFly
20128 shlibpath_overrides_runpath=yes
20129 hardcode_into_libs=yes
20130 ;;
20131 esac
20132 ;;
20133
20134 gnu*)
20135 version_type=linux
20136 need_lib_prefix=no
20137 need_version=no
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20139 soname_spec='${libname}${release}${shared_ext}$major'
20140 shlibpath_var=LD_LIBRARY_PATH
20141 hardcode_into_libs=yes
20142 ;;
20143
20144 haiku*)
20145 version_type=linux
20146 need_lib_prefix=no
20147 need_version=no
20148 dynamic_linker="$host_os runtime_loader"
20149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20150 soname_spec='${libname}${release}${shared_ext}$major'
20151 shlibpath_var=LIBRARY_PATH
20152 shlibpath_overrides_runpath=yes
20153 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20154 hardcode_into_libs=yes
20155 ;;
20156
20157 hpux9* | hpux10* | hpux11*)
20158 # Give a soname corresponding to the major version so that dld.sl refuses to
20159 # link against other versions.
20160 version_type=sunos
20161 need_lib_prefix=no
20162 need_version=no
20163 case $host_cpu in
20164 ia64*)
20165 shrext_cmds='.so'
20166 hardcode_into_libs=yes
20167 dynamic_linker="$host_os dld.so"
20168 shlibpath_var=LD_LIBRARY_PATH
20169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20171 soname_spec='${libname}${release}${shared_ext}$major'
20172 if test "X$HPUX_IA64_MODE" = X32; then
20173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20174 else
20175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20176 fi
20177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20178 ;;
20179 hppa*64*)
20180 shrext_cmds='.sl'
20181 hardcode_into_libs=yes
20182 dynamic_linker="$host_os dld.sl"
20183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20186 soname_spec='${libname}${release}${shared_ext}$major'
20187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20189 ;;
20190 *)
20191 shrext_cmds='.sl'
20192 dynamic_linker="$host_os dld.sl"
20193 shlibpath_var=SHLIB_PATH
20194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20196 soname_spec='${libname}${release}${shared_ext}$major'
20197 ;;
20198 esac
20199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20200 postinstall_cmds='chmod 555 $lib'
20201 # or fails outright, so override atomically:
20202 install_override_mode=555
20203 ;;
20204
20205 interix[3-9]*)
20206 version_type=linux
20207 need_lib_prefix=no
20208 need_version=no
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20210 soname_spec='${libname}${release}${shared_ext}$major'
20211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20212 shlibpath_var=LD_LIBRARY_PATH
20213 shlibpath_overrides_runpath=no
20214 hardcode_into_libs=yes
20215 ;;
20216
20217 irix5* | irix6* | nonstopux*)
20218 case $host_os in
20219 nonstopux*) version_type=nonstopux ;;
20220 *)
20221 if test "$lt_cv_prog_gnu_ld" = yes; then
20222 version_type=linux
20223 else
20224 version_type=irix
20225 fi ;;
20226 esac
20227 need_lib_prefix=no
20228 need_version=no
20229 soname_spec='${libname}${release}${shared_ext}$major'
20230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20231 case $host_os in
20232 irix5* | nonstopux*)
20233 libsuff= shlibsuff=
20234 ;;
20235 *)
20236 case $LD in # libtool.m4 will add one of these switches to LD
20237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20238 libsuff= shlibsuff= libmagic=32-bit;;
20239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20240 libsuff=32 shlibsuff=N32 libmagic=N32;;
20241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20243 *) libsuff= shlibsuff= libmagic=never-match;;
20244 esac
20245 ;;
20246 esac
20247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20248 shlibpath_overrides_runpath=no
20249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20251 hardcode_into_libs=yes
20252 ;;
20253
20254 # No shared lib support for Linux oldld, aout, or coff.
20255 linux*oldld* | linux*aout* | linux*coff*)
20256 dynamic_linker=no
20257 ;;
20258
20259 # This must be Linux ELF.
20260 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20261 version_type=linux
20262 need_lib_prefix=no
20263 need_version=no
20264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20265 soname_spec='${libname}${release}${shared_ext}$major'
20266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20267 shlibpath_var=LD_LIBRARY_PATH
20268 shlibpath_overrides_runpath=no
20269
20270 # Some binutils ld are patched to set DT_RUNPATH
20271 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20272 $as_echo_n "(cached) " >&6
20273 else
20274 lt_cv_shlibpath_overrides_runpath=no
20275 save_LDFLAGS=$LDFLAGS
20276 save_libdir=$libdir
20277 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20278 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h. */
20281
20282 int
20283 main ()
20284 {
20285
20286 ;
20287 return 0;
20288 }
20289 _ACEOF
20290 if ac_fn_cxx_try_link "$LINENO"; then :
20291 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20292 lt_cv_shlibpath_overrides_runpath=yes
20293 fi
20294 fi
20295 rm -f core conftest.err conftest.$ac_objext \
20296 conftest$ac_exeext conftest.$ac_ext
20297 LDFLAGS=$save_LDFLAGS
20298 libdir=$save_libdir
20299
20300 fi
20301
20302 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20303
20304 # This implies no fast_install, which is unacceptable.
20305 # Some rework will be needed to allow for fast_install
20306 # before this can be enabled.
20307 hardcode_into_libs=yes
20308
20309 # Append ld.so.conf contents to the search path
20310 if test -f /etc/ld.so.conf; then
20311 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' ' '`
20312 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20313 fi
20314
20315 # We used to test for /lib/ld.so.1 and disable shared libraries on
20316 # powerpc, because MkLinux only supported shared libraries with the
20317 # GNU dynamic linker. Since this was broken with cross compilers,
20318 # most powerpc-linux boxes support dynamic linking these days and
20319 # people can always --disable-shared, the test was removed, and we
20320 # assume the GNU/Linux dynamic linker is in use.
20321 dynamic_linker='GNU/Linux ld.so'
20322 ;;
20323
20324 netbsd*)
20325 version_type=sunos
20326 need_lib_prefix=no
20327 need_version=no
20328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20331 dynamic_linker='NetBSD (a.out) ld.so'
20332 else
20333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20334 soname_spec='${libname}${release}${shared_ext}$major'
20335 dynamic_linker='NetBSD ld.elf_so'
20336 fi
20337 shlibpath_var=LD_LIBRARY_PATH
20338 shlibpath_overrides_runpath=yes
20339 hardcode_into_libs=yes
20340 ;;
20341
20342 newsos6)
20343 version_type=linux
20344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 shlibpath_overrides_runpath=yes
20347 ;;
20348
20349 *nto* | *qnx*)
20350 version_type=qnx
20351 need_lib_prefix=no
20352 need_version=no
20353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354 soname_spec='${libname}${release}${shared_ext}$major'
20355 shlibpath_var=LD_LIBRARY_PATH
20356 shlibpath_overrides_runpath=no
20357 hardcode_into_libs=yes
20358 dynamic_linker='ldqnx.so'
20359 ;;
20360
20361 openbsd*)
20362 version_type=sunos
20363 sys_lib_dlsearch_path_spec="/usr/lib"
20364 need_lib_prefix=no
20365 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20366 case $host_os in
20367 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20368 *) need_version=no ;;
20369 esac
20370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20372 shlibpath_var=LD_LIBRARY_PATH
20373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20374 case $host_os in
20375 openbsd2.[89] | openbsd2.[89].*)
20376 shlibpath_overrides_runpath=no
20377 ;;
20378 *)
20379 shlibpath_overrides_runpath=yes
20380 ;;
20381 esac
20382 else
20383 shlibpath_overrides_runpath=yes
20384 fi
20385 ;;
20386
20387 os2*)
20388 libname_spec='$name'
20389 shrext_cmds=".dll"
20390 need_lib_prefix=no
20391 library_names_spec='$libname${shared_ext} $libname.a'
20392 dynamic_linker='OS/2 ld.exe'
20393 shlibpath_var=LIBPATH
20394 ;;
20395
20396 osf3* | osf4* | osf5*)
20397 version_type=osf
20398 need_lib_prefix=no
20399 need_version=no
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402 shlibpath_var=LD_LIBRARY_PATH
20403 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20404 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20405 ;;
20406
20407 rdos*)
20408 dynamic_linker=no
20409 ;;
20410
20411 solaris*)
20412 version_type=linux
20413 need_lib_prefix=no
20414 need_version=no
20415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20416 soname_spec='${libname}${release}${shared_ext}$major'
20417 shlibpath_var=LD_LIBRARY_PATH
20418 shlibpath_overrides_runpath=yes
20419 hardcode_into_libs=yes
20420 # ldd complains unless libraries are executable
20421 postinstall_cmds='chmod +x $lib'
20422 ;;
20423
20424 sunos4*)
20425 version_type=sunos
20426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20427 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20428 shlibpath_var=LD_LIBRARY_PATH
20429 shlibpath_overrides_runpath=yes
20430 if test "$with_gnu_ld" = yes; then
20431 need_lib_prefix=no
20432 fi
20433 need_version=yes
20434 ;;
20435
20436 sysv4 | sysv4.3*)
20437 version_type=linux
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20439 soname_spec='${libname}${release}${shared_ext}$major'
20440 shlibpath_var=LD_LIBRARY_PATH
20441 case $host_vendor in
20442 sni)
20443 shlibpath_overrides_runpath=no
20444 need_lib_prefix=no
20445 runpath_var=LD_RUN_PATH
20446 ;;
20447 siemens)
20448 need_lib_prefix=no
20449 ;;
20450 motorola)
20451 need_lib_prefix=no
20452 need_version=no
20453 shlibpath_overrides_runpath=no
20454 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20455 ;;
20456 esac
20457 ;;
20458
20459 sysv4*MP*)
20460 if test -d /usr/nec ;then
20461 version_type=linux
20462 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20463 soname_spec='$libname${shared_ext}.$major'
20464 shlibpath_var=LD_LIBRARY_PATH
20465 fi
20466 ;;
20467
20468 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20469 version_type=freebsd-elf
20470 need_lib_prefix=no
20471 need_version=no
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20473 soname_spec='${libname}${release}${shared_ext}$major'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 shlibpath_overrides_runpath=yes
20476 hardcode_into_libs=yes
20477 if test "$with_gnu_ld" = yes; then
20478 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20479 else
20480 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20481 case $host_os in
20482 sco3.2v5*)
20483 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20484 ;;
20485 esac
20486 fi
20487 sys_lib_dlsearch_path_spec='/usr/lib'
20488 ;;
20489
20490 tpf*)
20491 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20492 version_type=linux
20493 need_lib_prefix=no
20494 need_version=no
20495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20496 shlibpath_var=LD_LIBRARY_PATH
20497 shlibpath_overrides_runpath=no
20498 hardcode_into_libs=yes
20499 ;;
20500
20501 uts4*)
20502 version_type=linux
20503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20504 soname_spec='${libname}${release}${shared_ext}$major'
20505 shlibpath_var=LD_LIBRARY_PATH
20506 ;;
20507
20508 *)
20509 dynamic_linker=no
20510 ;;
20511 esac
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20513 $as_echo "$dynamic_linker" >&6; }
20514 test "$dynamic_linker" = no && can_build_shared=no
20515
20516 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20517 if test "$GCC" = yes; then
20518 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20519 fi
20520
20521 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20522 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20523 fi
20524 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20525 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20526 fi
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20566 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20567 hardcode_action_CXX=
20568 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20569 test -n "$runpath_var_CXX" ||
20570 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20571
20572 # We can hardcode non-existent directories.
20573 if test "$hardcode_direct_CXX" != no &&
20574 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20575 # have to relink, otherwise we might link with an installed library
20576 # when we should be linking with a yet-to-be-installed one
20577 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20578 test "$hardcode_minus_L_CXX" != no; then
20579 # Linking always hardcodes the temporary library directory.
20580 hardcode_action_CXX=relink
20581 else
20582 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20583 hardcode_action_CXX=immediate
20584 fi
20585 else
20586 # We cannot hardcode anything, or else we can only hardcode existing
20587 # directories.
20588 hardcode_action_CXX=unsupported
20589 fi
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20591 $as_echo "$hardcode_action_CXX" >&6; }
20592
20593 if test "$hardcode_action_CXX" = relink ||
20594 test "$inherit_rpath_CXX" = yes; then
20595 # Fast installation is not supported
20596 enable_fast_install=no
20597 elif test "$shlibpath_overrides_runpath" = yes ||
20598 test "$enable_shared" = no; then
20599 # Fast installation is not necessary
20600 enable_fast_install=needless
20601 fi
20602
20603
20604
20605
20606
20607
20608
20609 fi # test -n "$compiler"
20610
20611 CC=$lt_save_CC
20612 LDCXX=$LD
20613 LD=$lt_save_LD
20614 GCC=$lt_save_GCC
20615 with_gnu_ld=$lt_save_with_gnu_ld
20616 lt_cv_path_LDCXX=$lt_cv_path_LD
20617 lt_cv_path_LD=$lt_save_path_LD
20618 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20619 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20620 fi # test "$_lt_caught_CXX_error" != yes
20621
20622 ac_ext=c
20623 ac_cpp='$CPP $CPPFLAGS'
20624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643 # Only expand once:
20644
20645
20646
20647
20648
20649 # Identify the assembler which will work hand-in-glove with the newly
20650 # built GCC, so that we can examine its features. This is the assembler
20651 # which will be driven by the driver program.
20652 #
20653 # If build != host, and we aren't building gas in-tree, we identify a
20654 # build->target assembler and hope that it will have the same features
20655 # as the host->target assembler we'll be using.
20656 gcc_cv_gas_major_version=
20657 gcc_cv_gas_minor_version=
20658 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20659
20660 if test "${gcc_cv_as+set}" = set; then :
20661
20662 else
20663
20664 if test -x "$DEFAULT_ASSEMBLER"; then
20665 gcc_cv_as="$DEFAULT_ASSEMBLER"
20666 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20667 && test -f ../gas/Makefile \
20668 && test x$build = x$host; then
20669 gcc_cv_as=../gas/as-new$build_exeext
20670 elif test -x as$build_exeext; then
20671 # Build using assembler in the current directory.
20672 gcc_cv_as=./as$build_exeext
20673 elif test -x $AS_FOR_TARGET; then
20674 gcc_cv_as="$AS_FOR_TARGET"
20675 else
20676 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20677 set dummy $AS_FOR_TARGET; ac_word=$2
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20679 $as_echo_n "checking for $ac_word... " >&6; }
20680 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20681 $as_echo_n "(cached) " >&6
20682 else
20683 case $gcc_cv_as in
20684 [\\/]* | ?:[\\/]*)
20685 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20686 ;;
20687 *)
20688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20689 for as_dir in $PATH
20690 do
20691 IFS=$as_save_IFS
20692 test -z "$as_dir" && as_dir=.
20693 for ac_exec_ext in '' $ac_executable_extensions; do
20694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20695 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20697 break 2
20698 fi
20699 done
20700 done
20701 IFS=$as_save_IFS
20702
20703 ;;
20704 esac
20705 fi
20706 gcc_cv_as=$ac_cv_path_gcc_cv_as
20707 if test -n "$gcc_cv_as"; then
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20709 $as_echo "$gcc_cv_as" >&6; }
20710 else
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20712 $as_echo "no" >&6; }
20713 fi
20714
20715
20716 fi
20717 fi
20718
20719 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20720
20721 case "$ORIGINAL_AS_FOR_TARGET" in
20722 ./as | ./as$build_exeext) ;;
20723 *) ac_config_files="$ac_config_files as:exec-tool.in"
20724 ;;
20725 esac
20726
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20728 $as_echo_n "checking what assembler to use... " >&6; }
20729 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20730 # Single tree build which includes gas. We want to prefer it
20731 # over whatever linker top-level may have detected, since
20732 # we'll use what we're building after installation anyway.
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20734 $as_echo "newly built gas" >&6; }
20735 in_tree_gas=yes
20736 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20737 for f in $gcc_cv_as_bfd_srcdir/configure \
20738 $gcc_cv_as_gas_srcdir/configure \
20739 $gcc_cv_as_gas_srcdir/configure.in \
20740 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20741 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20742 if test x$gcc_cv_gas_version != x; then
20743 break
20744 fi
20745 done
20746 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20747 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20748 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20749 case $gcc_cv_gas_patch_version in
20750 "") gcc_cv_gas_patch_version="0" ;;
20751 esac
20752 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20753 + $gcc_cv_gas_minor_version \) \* 1000 \
20754 + $gcc_cv_gas_patch_version`
20755
20756 in_tree_gas_is_elf=no
20757 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20758 || (grep 'obj_format = multi' ../gas/Makefile \
20759 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20760 then
20761 in_tree_gas_is_elf=yes
20762 fi
20763 else
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20765 $as_echo "$gcc_cv_as" >&6; }
20766 in_tree_gas=no
20767 fi
20768
20769 # Identify the linker which will work hand-in-glove with the newly
20770 # built GCC, so that we can examine its features. This is the linker
20771 # which will be driven by the driver program.
20772 #
20773 # If build != host, and we aren't building gas in-tree, we identify a
20774 # build->target linker and hope that it will have the same features
20775 # as the host->target linker we'll be using.
20776 gcc_cv_gld_major_version=
20777 gcc_cv_gld_minor_version=
20778 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20779 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20780
20781 if test "${gcc_cv_ld+set}" = set; then :
20782
20783 else
20784
20785 if test -x "$DEFAULT_LINKER"; then
20786 gcc_cv_ld="$DEFAULT_LINKER"
20787 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20788 && test -f ../ld/Makefile \
20789 && test x$build = x$host; then
20790 gcc_cv_ld=../ld/ld-new$build_exeext
20791 elif test -x collect-ld$build_exeext; then
20792 # Build using linker in the current directory.
20793 gcc_cv_ld=./collect-ld$build_exeext
20794 elif test -x $LD_FOR_TARGET; then
20795 gcc_cv_ld="$LD_FOR_TARGET"
20796 else
20797 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20798 set dummy $LD_FOR_TARGET; ac_word=$2
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20800 $as_echo_n "checking for $ac_word... " >&6; }
20801 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20802 $as_echo_n "(cached) " >&6
20803 else
20804 case $gcc_cv_ld in
20805 [\\/]* | ?:[\\/]*)
20806 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20807 ;;
20808 *)
20809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20810 for as_dir in $PATH
20811 do
20812 IFS=$as_save_IFS
20813 test -z "$as_dir" && as_dir=.
20814 for ac_exec_ext in '' $ac_executable_extensions; do
20815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20816 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20818 break 2
20819 fi
20820 done
20821 done
20822 IFS=$as_save_IFS
20823
20824 ;;
20825 esac
20826 fi
20827 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20828 if test -n "$gcc_cv_ld"; then
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20830 $as_echo "$gcc_cv_ld" >&6; }
20831 else
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20833 $as_echo "no" >&6; }
20834 fi
20835
20836
20837 fi
20838 fi
20839
20840 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20841 PLUGIN_LD=`basename $gcc_cv_ld`
20842
20843 # Check whether --with-plugin-ld was given.
20844 if test "${with_plugin_ld+set}" = set; then :
20845 withval=$with_plugin_ld; if test x"$withval" != x; then
20846 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20847 PLUGIN_LD="$withval"
20848 fi
20849 fi
20850
20851
20852
20853 cat >>confdefs.h <<_ACEOF
20854 #define PLUGIN_LD "$PLUGIN_LD"
20855 _ACEOF
20856
20857
20858 # Check to see if we are using gold instead of ld
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20860 $as_echo_n "checking whether we are using gold... " >&6; }
20861 ld_is_gold=no
20862 if test x$gcc_cv_ld != x; then
20863 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20864 | grep "GNU gold" > /dev/null; then
20865 ld_is_gold=yes
20866 fi
20867 fi
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20869 $as_echo "$ld_is_gold" >&6; }
20870
20871 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20872
20873 case "$ORIGINAL_LD_FOR_TARGET" in
20874 ./collect-ld | ./collect-ld$build_exeext) ;;
20875 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20876 ;;
20877 esac
20878
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20880 $as_echo_n "checking what linker to use... " >&6; }
20881 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20882 # Single tree build which includes ld. We want to prefer it
20883 # over whatever linker top-level may have detected, since
20884 # we'll use what we're building after installation anyway.
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20886 $as_echo "newly built ld" >&6; }
20887 in_tree_ld=yes
20888 in_tree_ld_is_elf=no
20889 if (grep 'EMUL = .*elf' ../ld/Makefile \
20890 || grep 'EMUL = .*linux' ../ld/Makefile \
20891 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20892 in_tree_ld_is_elf=yes
20893 fi
20894 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
20895 do
20896 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20897 if test x$gcc_cv_gld_version != x; then
20898 break
20899 fi
20900 done
20901 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20902 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20903 else
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20905 $as_echo "$gcc_cv_ld" >&6; }
20906 in_tree_ld=no
20907 fi
20908
20909 # Figure out what nm we will be using.
20910 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20911 if test "${gcc_cv_nm+set}" = set; then :
20912
20913 else
20914
20915 if test -f $gcc_cv_binutils_srcdir/configure.in \
20916 && test -f ../binutils/Makefile \
20917 && test x$build = x$host; then
20918 gcc_cv_nm=../binutils/nm-new$build_exeext
20919 elif test -x nm$build_exeext; then
20920 gcc_cv_nm=./nm$build_exeext
20921 elif test -x $NM_FOR_TARGET; then
20922 gcc_cv_nm="$NM_FOR_TARGET"
20923 else
20924 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20925 set dummy $NM_FOR_TARGET; ac_word=$2
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20927 $as_echo_n "checking for $ac_word... " >&6; }
20928 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20929 $as_echo_n "(cached) " >&6
20930 else
20931 case $gcc_cv_nm in
20932 [\\/]* | ?:[\\/]*)
20933 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20934 ;;
20935 *)
20936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20937 for as_dir in $PATH
20938 do
20939 IFS=$as_save_IFS
20940 test -z "$as_dir" && as_dir=.
20941 for ac_exec_ext in '' $ac_executable_extensions; do
20942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20943 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20945 break 2
20946 fi
20947 done
20948 done
20949 IFS=$as_save_IFS
20950
20951 ;;
20952 esac
20953 fi
20954 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20955 if test -n "$gcc_cv_nm"; then
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20957 $as_echo "$gcc_cv_nm" >&6; }
20958 else
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20960 $as_echo "no" >&6; }
20961 fi
20962
20963
20964 fi
20965 fi
20966
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20968 $as_echo_n "checking what nm to use... " >&6; }
20969 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20970 # Single tree build which includes binutils.
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20972 $as_echo "newly built nm" >&6; }
20973 in_tree_nm=yes
20974 else
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20976 $as_echo "$gcc_cv_nm" >&6; }
20977 in_tree_nm=no
20978 fi
20979
20980 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20981
20982 case "$ORIGINAL_NM_FOR_TARGET" in
20983 ./nm | ./nm$build_exeext) ;;
20984 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20985 ;;
20986 esac
20987
20988
20989 # Figure out what objdump we will be using.
20990 if test "${gcc_cv_objdump+set}" = set; then :
20991
20992 else
20993
20994 if test -f $gcc_cv_binutils_srcdir/configure.in \
20995 && test -f ../binutils/Makefile \
20996 && test x$build = x$host; then
20997 # Single tree build which includes binutils.
20998 gcc_cv_objdump=../binutils/objdump$build_exeext
20999 elif test -x objdump$build_exeext; then
21000 gcc_cv_objdump=./objdump$build_exeext
21001 elif test -x $OBJDUMP_FOR_TARGET; then
21002 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21003 else
21004 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21005 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21007 $as_echo_n "checking for $ac_word... " >&6; }
21008 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21009 $as_echo_n "(cached) " >&6
21010 else
21011 case $gcc_cv_objdump in
21012 [\\/]* | ?:[\\/]*)
21013 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21014 ;;
21015 *)
21016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21017 for as_dir in $PATH
21018 do
21019 IFS=$as_save_IFS
21020 test -z "$as_dir" && as_dir=.
21021 for ac_exec_ext in '' $ac_executable_extensions; do
21022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21023 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21025 break 2
21026 fi
21027 done
21028 done
21029 IFS=$as_save_IFS
21030
21031 ;;
21032 esac
21033 fi
21034 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21035 if test -n "$gcc_cv_objdump"; then
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21037 $as_echo "$gcc_cv_objdump" >&6; }
21038 else
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21040 $as_echo "no" >&6; }
21041 fi
21042
21043
21044 fi
21045 fi
21046
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21048 $as_echo_n "checking what objdump to use... " >&6; }
21049 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21050 # Single tree build which includes binutils.
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21052 $as_echo "newly built objdump" >&6; }
21053 elif test x$gcc_cv_objdump = x; then
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21055 $as_echo "not found" >&6; }
21056 else
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21058 $as_echo "$gcc_cv_objdump" >&6; }
21059 fi
21060
21061 # Figure out what readelf we will be using.
21062 if test "${gcc_cv_readelf+set}" = set; then :
21063
21064 else
21065
21066 if test -f $gcc_cv_binutils_srcdir/configure.in \
21067 && test -f ../binutils/Makefile \
21068 && test x$build = x$host; then
21069 # Single tree build which includes binutils.
21070 gcc_cv_readelf=../binutils/readelf$build_exeext
21071 elif test -x readelf$build_exeext; then
21072 gcc_cv_readelf=./readelf$build_exeext
21073 else
21074 # Extract the first word of "readelf", so it can be a program name with args.
21075 set dummy readelf; ac_word=$2
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21077 $as_echo_n "checking for $ac_word... " >&6; }
21078 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21079 $as_echo_n "(cached) " >&6
21080 else
21081 case $gcc_cv_readelf in
21082 [\\/]* | ?:[\\/]*)
21083 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21084 ;;
21085 *)
21086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21087 for as_dir in $PATH
21088 do
21089 IFS=$as_save_IFS
21090 test -z "$as_dir" && as_dir=.
21091 for ac_exec_ext in '' $ac_executable_extensions; do
21092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21093 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21095 break 2
21096 fi
21097 done
21098 done
21099 IFS=$as_save_IFS
21100
21101 ;;
21102 esac
21103 fi
21104 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21105 if test -n "$gcc_cv_readelf"; then
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21107 $as_echo "$gcc_cv_readelf" >&6; }
21108 else
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21110 $as_echo "no" >&6; }
21111 fi
21112
21113
21114 fi
21115 fi
21116
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21118 $as_echo_n "checking what readelf to use... " >&6; }
21119 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21120 # Single tree build which includes binutils.
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21122 $as_echo "newly built readelf" >&6; }
21123 elif test x$gcc_cv_readelf = x; then
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21125 $as_echo "not found" >&6; }
21126 else
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21128 $as_echo "$gcc_cv_readelf" >&6; }
21129 fi
21130
21131 # Figure out what assembler alignment features are present.
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21133 $as_echo_n "checking assembler flags... " >&6; }
21134 if test "${gcc_cv_as_flags+set}" = set; then :
21135 $as_echo_n "(cached) " >&6
21136 else
21137 case "$target" in
21138 i[34567]86-*-linux*)
21139 gcc_cv_as_flags="--32"
21140 ;;
21141 *)
21142 gcc_cv_as_flags=" "
21143 ;;
21144 esac
21145 fi
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21147 $as_echo "$gcc_cv_as_flags" >&6; }
21148
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21150 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21151 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21152 $as_echo_n "(cached) " >&6
21153 else
21154 gcc_cv_as_balign_and_p2align=no
21155 if test $in_tree_gas = yes; then
21156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21157 then gcc_cv_as_balign_and_p2align=yes
21158 fi
21159 elif test x$gcc_cv_as != x; then
21160 echo '.balign 4
21161 .p2align 2' > conftest.s
21162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21164 (eval $ac_try) 2>&5
21165 ac_status=$?
21166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21167 test $ac_status = 0; }; }
21168 then
21169 gcc_cv_as_balign_and_p2align=yes
21170 else
21171 echo "configure: failed program was" >&5
21172 cat conftest.s >&5
21173 fi
21174 rm -f conftest.o conftest.s
21175 fi
21176 fi
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21178 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21179 if test $gcc_cv_as_balign_and_p2align = yes; then
21180
21181 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21182
21183 fi
21184
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21186 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21187 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21188 $as_echo_n "(cached) " >&6
21189 else
21190 gcc_cv_as_max_skip_p2align=no
21191 if test $in_tree_gas = yes; then
21192 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21193 then gcc_cv_as_max_skip_p2align=yes
21194 fi
21195 elif test x$gcc_cv_as != x; then
21196 echo '.p2align 4,,7' > conftest.s
21197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21202 test $ac_status = 0; }; }
21203 then
21204 gcc_cv_as_max_skip_p2align=yes
21205 else
21206 echo "configure: failed program was" >&5
21207 cat conftest.s >&5
21208 fi
21209 rm -f conftest.o conftest.s
21210 fi
21211 fi
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21213 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21214 if test $gcc_cv_as_max_skip_p2align = yes; then
21215
21216 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21217
21218 fi
21219
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21221 $as_echo_n "checking assembler for .literal16... " >&6; }
21222 if test "${gcc_cv_as_literal16+set}" = set; then :
21223 $as_echo_n "(cached) " >&6
21224 else
21225 gcc_cv_as_literal16=no
21226 if test $in_tree_gas = yes; then
21227 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21228 then gcc_cv_as_literal16=yes
21229 fi
21230 elif test x$gcc_cv_as != x; then
21231 echo '.literal16' > conftest.s
21232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21234 (eval $ac_try) 2>&5
21235 ac_status=$?
21236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21237 test $ac_status = 0; }; }
21238 then
21239 gcc_cv_as_literal16=yes
21240 else
21241 echo "configure: failed program was" >&5
21242 cat conftest.s >&5
21243 fi
21244 rm -f conftest.o conftest.s
21245 fi
21246 fi
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21248 $as_echo "$gcc_cv_as_literal16" >&6; }
21249 if test $gcc_cv_as_literal16 = yes; then
21250
21251 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21252
21253 fi
21254
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21256 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21257 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21258 $as_echo_n "(cached) " >&6
21259 else
21260 gcc_cv_as_subsection_m1=no
21261 if test $in_tree_gas = yes; then
21262 if test $in_tree_gas_is_elf = yes \
21263 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21264 then gcc_cv_as_subsection_m1=yes
21265 fi
21266 elif test x$gcc_cv_as != x; then
21267 echo 'conftest_label1: .word 0
21268 .subsection -1
21269 conftest_label2: .word 0
21270 .previous' > conftest.s
21271 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21273 (eval $ac_try) 2>&5
21274 ac_status=$?
21275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21276 test $ac_status = 0; }; }
21277 then
21278 if test x$gcc_cv_nm != x; then
21279 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21280 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21281 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21282 then :
21283 else gcc_cv_as_subsection_m1=yes
21284 fi
21285 rm -f conftest.nm1 conftest.nm2
21286 fi
21287 else
21288 echo "configure: failed program was" >&5
21289 cat conftest.s >&5
21290 fi
21291 rm -f conftest.o conftest.s
21292 fi
21293 fi
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21295 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21296 if test $gcc_cv_as_subsection_m1 = yes; then
21297
21298 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21299
21300 fi
21301
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21303 $as_echo_n "checking assembler for .weak... " >&6; }
21304 if test "${gcc_cv_as_weak+set}" = set; then :
21305 $as_echo_n "(cached) " >&6
21306 else
21307 gcc_cv_as_weak=no
21308 if test $in_tree_gas = yes; then
21309 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21310 then gcc_cv_as_weak=yes
21311 fi
21312 elif test x$gcc_cv_as != x; then
21313 echo ' .weak foobar' > conftest.s
21314 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21316 (eval $ac_try) 2>&5
21317 ac_status=$?
21318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21319 test $ac_status = 0; }; }
21320 then
21321 gcc_cv_as_weak=yes
21322 else
21323 echo "configure: failed program was" >&5
21324 cat conftest.s >&5
21325 fi
21326 rm -f conftest.o conftest.s
21327 fi
21328 fi
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21330 $as_echo "$gcc_cv_as_weak" >&6; }
21331 if test $gcc_cv_as_weak = yes; then
21332
21333 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21334
21335 fi
21336
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21338 $as_echo_n "checking assembler for .weakref... " >&6; }
21339 if test "${gcc_cv_as_weakref+set}" = set; then :
21340 $as_echo_n "(cached) " >&6
21341 else
21342 gcc_cv_as_weakref=no
21343 if test $in_tree_gas = yes; then
21344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21345 then gcc_cv_as_weakref=yes
21346 fi
21347 elif test x$gcc_cv_as != x; then
21348 echo ' .weakref foobar, barfnot' > conftest.s
21349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21351 (eval $ac_try) 2>&5
21352 ac_status=$?
21353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21354 test $ac_status = 0; }; }
21355 then
21356 gcc_cv_as_weakref=yes
21357 else
21358 echo "configure: failed program was" >&5
21359 cat conftest.s >&5
21360 fi
21361 rm -f conftest.o conftest.s
21362 fi
21363 fi
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21365 $as_echo "$gcc_cv_as_weakref" >&6; }
21366 if test $gcc_cv_as_weakref = yes; then
21367
21368 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21369
21370 fi
21371
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21373 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21374 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21375 $as_echo_n "(cached) " >&6
21376 else
21377 gcc_cv_as_nsubspa_comdat=no
21378 if test $in_tree_gas = yes; then
21379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21380 then gcc_cv_as_nsubspa_comdat=yes
21381 fi
21382 elif test x$gcc_cv_as != x; then
21383 echo ' .SPACE $TEXT$
21384 .NSUBSPA $CODE$,COMDAT' > conftest.s
21385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21387 (eval $ac_try) 2>&5
21388 ac_status=$?
21389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21390 test $ac_status = 0; }; }
21391 then
21392 gcc_cv_as_nsubspa_comdat=yes
21393 else
21394 echo "configure: failed program was" >&5
21395 cat conftest.s >&5
21396 fi
21397 rm -f conftest.o conftest.s
21398 fi
21399 fi
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21401 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21402 if test $gcc_cv_as_nsubspa_comdat = yes; then
21403
21404 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21405
21406 fi
21407
21408 # .hidden needs to be supported in both the assembler and the linker,
21409 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21410 # This is irritatingly difficult to feature test for; we have to check the
21411 # date string after the version number. If we've got an in-tree
21412 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21413 # to be safe.
21414 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21416 $as_echo_n "checking assembler for .hidden... " >&6; }
21417 if test "${gcc_cv_as_hidden+set}" = set; then :
21418 $as_echo_n "(cached) " >&6
21419 else
21420 gcc_cv_as_hidden=no
21421 if test $in_tree_gas = yes; then
21422 if test $in_tree_gas_is_elf = yes \
21423 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21424 then gcc_cv_as_hidden=yes
21425 fi
21426 elif test x$gcc_cv_as != x; then
21427 echo ' .hidden foobar
21428 foobar:' > conftest.s
21429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21434 test $ac_status = 0; }; }
21435 then
21436
21437 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21438 # STV_HIDDEN, so disable .hidden support if so.
21439 case "${target}" in
21440 i?86-*-solaris2*)
21441 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21442 cat > conftest.s <<EOF
21443 .globl hidden
21444 .hidden hidden
21445 hidden:
21446 .globl default
21447 .set default,hidden
21448 EOF
21449 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21450 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21451 grep '\.hidden default' > /dev/null; then
21452 gcc_cv_as_hidden=no
21453 else
21454 gcc_cv_as_hidden=yes
21455 fi
21456 else
21457 # Assume bug is present if objdump is missing.
21458 gcc_cv_as_hidden=no
21459 fi
21460 ;;
21461 *)
21462 gcc_cv_as_hidden=yes
21463 ;;
21464 esac
21465 else
21466 echo "configure: failed program was" >&5
21467 cat conftest.s >&5
21468 fi
21469 rm -f conftest.o conftest.s
21470 fi
21471 fi
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21473 $as_echo "$gcc_cv_as_hidden" >&6; }
21474
21475
21476 # gnu_indirect_function type is an extension proposed at
21477 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21478 # selection of function implementation
21479 # Check whether --enable-gnu-indirect-function was given.
21480 if test "${enable_gnu_indirect_function+set}" = set; then :
21481 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21482 yes | no) ;;
21483 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21484 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21485 esac
21486 else
21487 enable_gnu_indirect_function="$default_gnu_indirect_function"
21488 fi
21489
21490 if test x$enable_gnu_indirect_function = xyes; then
21491
21492 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21493
21494 fi
21495
21496 if test $in_tree_ld != yes ; then
21497 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21498 if test x"$ld_is_gold" = xyes; then
21499 gcc_cv_ld_hidden=yes
21500 elif echo "$ld_ver" | grep GNU > /dev/null; then
21501 ld_vers=`echo $ld_ver | sed -n \
21502 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21503 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'`
21504 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21505 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21506 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21507 else
21508 case "${target}" in
21509 *-*-solaris2*)
21510 #
21511 # Solaris 2 ld -V output looks like this for a regular version:
21512 #
21513 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21514 #
21515 # but test versions add stuff at the end:
21516 #
21517 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21518 #
21519 ld_ver=`$gcc_cv_ld -V 2>&1`
21520 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21521 ld_vers=`echo $ld_ver | sed -n \
21522 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21523 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21524 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21525 fi
21526 ;;
21527 esac
21528 fi
21529 fi
21530
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21532 $as_echo_n "checking linker for .hidden support... " >&6; }
21533 if test "${gcc_cv_ld_hidden+set}" = set; then :
21534 $as_echo_n "(cached) " >&6
21535 else
21536 if test $in_tree_ld = yes ; then
21537 gcc_cv_ld_hidden=no
21538 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 \
21539 && test $in_tree_ld_is_elf = yes; then
21540 gcc_cv_ld_hidden=yes
21541 fi
21542 else
21543 gcc_cv_ld_hidden=yes
21544 if echo "$ld_ver" | grep GNU > /dev/null; then
21545 if test 0"$ld_date" -lt 20020404; then
21546 if test -n "$ld_date"; then
21547 # If there was date string, but was earlier than 2002-04-04, fail
21548 gcc_cv_ld_hidden=no
21549 elif test -z "$ld_vers"; then
21550 # If there was no date string nor ld version number, something is wrong
21551 gcc_cv_ld_hidden=no
21552 else
21553 test -z "$ld_vers_patch" && ld_vers_patch=0
21554 if test "$ld_vers_major" -lt 2; then
21555 gcc_cv_ld_hidden=no
21556 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21557 gcc_cv_ld_hidden="no"
21558 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21559 gcc_cv_ld_hidden=no
21560 fi
21561 fi
21562 fi
21563 else
21564 case "${target}" in
21565 hppa64*-*-hpux* | ia64*-*-hpux*)
21566 gcc_cv_ld_hidden=yes
21567 ;;
21568 *-*-solaris2.8*)
21569 # .hidden support was backported to Solaris 8, starting with ld
21570 # version 1.276.
21571 if test "$ld_vers_minor" -ge 276; then
21572 gcc_cv_ld_hidden=yes
21573 else
21574 gcc_cv_ld_hidden=no
21575 fi
21576 ;;
21577 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21578 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21579 # .symbolic was only added in Solaris 9 12/02.
21580 gcc_cv_ld_hidden=yes
21581 ;;
21582 *)
21583 gcc_cv_ld_hidden=no
21584 ;;
21585 esac
21586 fi
21587 fi
21588 fi
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21590 $as_echo "$gcc_cv_ld_hidden" >&6; }
21591 libgcc_visibility=no
21592
21593
21594 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21595 libgcc_visibility=yes
21596
21597 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21598
21599 fi
21600
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21602 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21603 gcc_cv_ld_ro_rw_mix=unknown
21604 if test $in_tree_ld = yes ; then
21605 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 \
21606 && test $in_tree_ld_is_elf = yes; then
21607 gcc_cv_ld_ro_rw_mix=read-write
21608 fi
21609 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21610 echo '.section myfoosect, "a"' > conftest1.s
21611 echo '.section myfoosect, "aw"' > conftest2.s
21612 echo '.byte 1' >> conftest2.s
21613 echo '.section myfoosect, "a"' > conftest3.s
21614 echo '.byte 0' >> conftest3.s
21615 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21616 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21617 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21618 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21619 conftest2.o conftest3.o > /dev/null 2>&1; then
21620 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21621 | sed -e '/myfoosect/!d' -e N`
21622 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21623 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21624 gcc_cv_ld_ro_rw_mix=read-only
21625 else
21626 gcc_cv_ld_ro_rw_mix=read-write
21627 fi
21628 fi
21629 fi
21630 rm -f conftest.* conftest[123].*
21631 fi
21632 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21633
21634 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21635
21636 fi
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21638 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21639
21640 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21642 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21643 if test "${gcc_cv_as_leb128+set}" = set; then :
21644 $as_echo_n "(cached) " >&6
21645 else
21646 gcc_cv_as_leb128=no
21647 if test $in_tree_gas = yes; then
21648 if test $in_tree_gas_is_elf = yes \
21649 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21650 then gcc_cv_as_leb128=yes
21651 fi
21652 elif test x$gcc_cv_as != x; then
21653 echo ' .data
21654 .uleb128 L2 - L1
21655 L1:
21656 .uleb128 1280
21657 .sleb128 -1010
21658 L2:' > conftest.s
21659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21661 (eval $ac_try) 2>&5
21662 ac_status=$?
21663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21664 test $ac_status = 0; }; }
21665 then
21666 # GAS versions before 2.11 do not support uleb128,
21667 # despite appearing to.
21668 # ??? There exists an elf-specific test that will crash
21669 # the assembler. Perhaps it's better to figure out whether
21670 # arbitrary sections are supported and try the test.
21671 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21672 if echo "$as_ver" | grep GNU > /dev/null; then
21673 as_vers=`echo $as_ver | sed -n \
21674 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21675 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21676 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21677 if test $as_major -eq 2 && test $as_minor -lt 11
21678 then :
21679 else gcc_cv_as_leb128=yes
21680 fi
21681 fi
21682 else
21683 echo "configure: failed program was" >&5
21684 cat conftest.s >&5
21685 fi
21686 rm -f conftest.o conftest.s
21687 fi
21688 fi
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21690 $as_echo "$gcc_cv_as_leb128" >&6; }
21691 if test $gcc_cv_as_leb128 = yes; then
21692
21693 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21694
21695 fi
21696
21697 # Check if we have assembler support for unwind directives.
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21699 $as_echo_n "checking assembler for cfi directives... " >&6; }
21700 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21701 $as_echo_n "(cached) " >&6
21702 else
21703 gcc_cv_as_cfi_directive=no
21704 if test x$gcc_cv_as != x; then
21705 echo ' .text
21706 .cfi_startproc
21707 .cfi_offset 0, 0
21708 .cfi_same_value 1
21709 .cfi_def_cfa 1, 2
21710 .cfi_escape 1, 2, 3, 4, 5
21711 .cfi_endproc' > conftest.s
21712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21714 (eval $ac_try) 2>&5
21715 ac_status=$?
21716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21717 test $ac_status = 0; }; }
21718 then
21719 case "$target" in
21720 *-*-solaris*)
21721 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21722 # read-only and read-write sections, we need to make sure that the
21723 # assembler used emits read-write .eh_frame sections.
21724 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21725 if test "x$gcc_cv_objdump" != x; then
21726 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21727 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21728 gcc_cv_as_cfi_directive=no
21729 else
21730 case "$target" in
21731 i?86-*-solaris2.1[0-9]*)
21732 # On Solaris/x86, make sure that GCC and gas agree on using
21733 # read-only .eh_frame sections for 64-bit.
21734 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21735 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21736 sed -e /.eh_frame/!d -e N | \
21737 grep READONLY > /dev/null; then
21738 gcc_cv_as_cfi_directive=yes
21739 else
21740 gcc_cv_as_cfi_directive=no
21741 fi
21742 ;;
21743 *)
21744 gcc_cv_as_cfi_directive=yes
21745 ;;
21746 esac
21747 fi
21748 else
21749 # no objdump, err on the side of caution
21750 gcc_cv_as_cfi_directive=no
21751 fi
21752 else
21753 gcc_cv_as_cfi_directive=yes
21754 fi
21755 ;;
21756 *-*-*)
21757 gcc_cv_as_cfi_directive=yes
21758 ;;
21759 esac
21760 else
21761 echo "configure: failed program was" >&5
21762 cat conftest.s >&5
21763 fi
21764 rm -f conftest.o conftest.s
21765 fi
21766 fi
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21768 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21769
21770 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21772 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21773 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21774 $as_echo_n "(cached) " >&6
21775 else
21776 gcc_cv_as_cfi_advance_working=no
21777 if test x$gcc_cv_as != x; then
21778 echo ' .text
21779 .cfi_startproc
21780 .cfi_adjust_cfa_offset 64
21781 .skip 75040, 0
21782 .cfi_adjust_cfa_offset 128
21783 .cfi_endproc' > conftest.s
21784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21786 (eval $ac_try) 2>&5
21787 ac_status=$?
21788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21789 test $ac_status = 0; }; }
21790 then
21791
21792 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
21793 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21794 gcc_cv_as_cfi_advance_working=yes
21795 fi
21796
21797 else
21798 echo "configure: failed program was" >&5
21799 cat conftest.s >&5
21800 fi
21801 rm -f conftest.o conftest.s
21802 fi
21803 fi
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21805 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21806
21807 else
21808 # no objdump, err on the side of caution
21809 gcc_cv_as_cfi_advance_working=no
21810 fi
21811
21812
21813 cat >>confdefs.h <<_ACEOF
21814 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21815 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21816 _ACEOF
21817
21818
21819
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21821 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21822 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21823 $as_echo_n "(cached) " >&6
21824 else
21825 gcc_cv_as_cfi_personality_directive=no
21826 if test x$gcc_cv_as != x; then
21827 echo ' .text
21828 .cfi_startproc
21829 .cfi_personality 0, symbol
21830 .cfi_endproc' > conftest.s
21831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21833 (eval $ac_try) 2>&5
21834 ac_status=$?
21835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21836 test $ac_status = 0; }; }
21837 then
21838 gcc_cv_as_cfi_personality_directive=yes
21839 else
21840 echo "configure: failed program was" >&5
21841 cat conftest.s >&5
21842 fi
21843 rm -f conftest.o conftest.s
21844 fi
21845 fi
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21847 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21848
21849
21850 cat >>confdefs.h <<_ACEOF
21851 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21852 then echo 1; else echo 0; fi`
21853 _ACEOF
21854
21855
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21857 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21858 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21859 $as_echo_n "(cached) " >&6
21860 else
21861 gcc_cv_as_cfi_sections_directive=no
21862 if test x$gcc_cv_as != x; then
21863 echo ' .text
21864 .cfi_sections .debug_frame, .eh_frame
21865 .cfi_startproc
21866 .cfi_endproc' > conftest.s
21867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21872 test $ac_status = 0; }; }
21873 then
21874 case $target_os in
21875 win32 | pe | cygwin* | mingw32* | uwin*)
21876 # Need to check that we generated the correct relocation for the
21877 # .debug_frame section. This was fixed for binutils 2.21.
21878 gcc_cv_as_cfi_sections_directive=no
21879 if test "x$gcc_cv_objdump" != x; then
21880 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
21881 grep secrel > /dev/null; then
21882 gcc_cv_as_cfi_sections_directive=yes
21883 fi
21884 fi
21885 ;;
21886 *)
21887 gcc_cv_as_cfi_sections_directive=yes
21888 ;;
21889 esac
21890 else
21891 echo "configure: failed program was" >&5
21892 cat conftest.s >&5
21893 fi
21894 rm -f conftest.o conftest.s
21895 fi
21896 fi
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21898 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21899
21900
21901
21902 cat >>confdefs.h <<_ACEOF
21903 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21904 then echo 1; else echo 0; fi`
21905 _ACEOF
21906
21907
21908 # GAS versions up to and including 2.11.0 may mis-optimize
21909 # .eh_frame data.
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21911 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21912 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21913 $as_echo_n "(cached) " >&6
21914 else
21915 gcc_cv_as_eh_frame=no
21916 if test $in_tree_gas = yes; then
21917 if test $in_tree_gas_is_elf = yes \
21918 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21919 then gcc_cv_as_eh_frame=yes
21920 fi
21921 elif test x$gcc_cv_as != x; then
21922 echo ' .text
21923 .LFB1:
21924 .4byte 0
21925 .L1:
21926 .4byte 0
21927 .LFE1:
21928 .section .eh_frame,"aw",@progbits
21929 __FRAME_BEGIN__:
21930 .4byte .LECIE1-.LSCIE1
21931 .LSCIE1:
21932 .4byte 0x0
21933 .byte 0x1
21934 .ascii "z\0"
21935 .byte 0x1
21936 .byte 0x78
21937 .byte 0x1a
21938 .byte 0x0
21939 .byte 0x4
21940 .4byte 1
21941 .p2align 1
21942 .LECIE1:
21943 .LSFDE1:
21944 .4byte .LEFDE1-.LASFDE1
21945 .LASFDE1:
21946 .4byte .LASFDE1-__FRAME_BEGIN__
21947 .4byte .LFB1
21948 .4byte .LFE1-.LFB1
21949 .byte 0x4
21950 .4byte .LFE1-.LFB1
21951 .byte 0x4
21952 .4byte .L1-.LFB1
21953 .LEFDE1:' > conftest.s
21954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21956 (eval $ac_try) 2>&5
21957 ac_status=$?
21958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21959 test $ac_status = 0; }; }
21960 then
21961 cat > conftest.lit <<EOF
21962 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21963 0010 01000000 12000000 18000000 00000000 ................
21964 0020 08000000 04080000 0044 .........D
21965 EOF
21966 cat > conftest.big <<EOF
21967 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21968 0010 00000001 00000012 00000018 00000000 ................
21969 0020 00000008 04000000 0844 .........D
21970 EOF
21971 # If the assembler didn't choke, and we can objdump,
21972 # and we got the correct data, then succeed.
21973 # The text in the here-document typically retains its unix-style line
21974 # endings, while the output of objdump will use host line endings.
21975 # Therefore, use diff -b for the comparisons.
21976 if test x$gcc_cv_objdump != x \
21977 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21978 | tail -3 > conftest.got \
21979 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21980 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21981 then
21982 gcc_cv_as_eh_frame=yes
21983 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21985 (eval $ac_try) 2>&5
21986 ac_status=$?
21987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21988 test $ac_status = 0; }; }; then
21989 gcc_cv_as_eh_frame=buggy
21990 else
21991 # Uh oh, what do we do now?
21992 gcc_cv_as_eh_frame=no
21993 fi
21994 else
21995 echo "configure: failed program was" >&5
21996 cat conftest.s >&5
21997 fi
21998 rm -f conftest.o conftest.s
21999 fi
22000 fi
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22002 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22003
22004
22005 if test $gcc_cv_as_eh_frame = buggy; then
22006
22007 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22008
22009 fi
22010
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22012 $as_echo_n "checking assembler for section merging support... " >&6; }
22013 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22014 $as_echo_n "(cached) " >&6
22015 else
22016 gcc_cv_as_shf_merge=no
22017 if test $in_tree_gas = yes; then
22018 if test $in_tree_gas_is_elf = yes \
22019 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22020 then gcc_cv_as_shf_merge=yes
22021 fi
22022 elif test x$gcc_cv_as != x; then
22023 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22024 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22026 (eval $ac_try) 2>&5
22027 ac_status=$?
22028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22029 test $ac_status = 0; }; }
22030 then
22031 gcc_cv_as_shf_merge=yes
22032 else
22033 echo "configure: failed program was" >&5
22034 cat conftest.s >&5
22035 fi
22036 rm -f conftest.o conftest.s
22037 fi
22038 fi
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22040 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22041
22042 if test $gcc_cv_as_shf_merge = no; then
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22044 $as_echo_n "checking assembler for section merging support... " >&6; }
22045 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22046 $as_echo_n "(cached) " >&6
22047 else
22048 gcc_cv_as_shf_merge=no
22049 if test $in_tree_gas = yes; then
22050 if test $in_tree_gas_is_elf = yes \
22051 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22052 then gcc_cv_as_shf_merge=yes
22053 fi
22054 elif test x$gcc_cv_as != x; then
22055 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22061 test $ac_status = 0; }; }
22062 then
22063 gcc_cv_as_shf_merge=yes
22064 else
22065 echo "configure: failed program was" >&5
22066 cat conftest.s >&5
22067 fi
22068 rm -f conftest.o conftest.s
22069 fi
22070 fi
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22072 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22073
22074 fi
22075
22076 cat >>confdefs.h <<_ACEOF
22077 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22078 _ACEOF
22079
22080
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22082 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22083 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22084 $as_echo_n "(cached) " >&6
22085 else
22086 gcc_cv_as_comdat_group=no
22087 if test $in_tree_gas = yes; then
22088 if test $in_tree_gas_is_elf = yes \
22089 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22090 then gcc_cv_as_comdat_group=yes
22091 fi
22092 elif test x$gcc_cv_as != x; then
22093 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22096 (eval $ac_try) 2>&5
22097 ac_status=$?
22098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22099 test $ac_status = 0; }; }
22100 then
22101 gcc_cv_as_comdat_group=yes
22102 else
22103 echo "configure: failed program was" >&5
22104 cat conftest.s >&5
22105 fi
22106 rm -f conftest.o conftest.s
22107 fi
22108 fi
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22110 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22111
22112 if test $gcc_cv_as_comdat_group = yes; then
22113 gcc_cv_as_comdat_group_percent=no
22114 else
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22116 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22117 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22118 $as_echo_n "(cached) " >&6
22119 else
22120 gcc_cv_as_comdat_group_percent=no
22121 if test $in_tree_gas = yes; then
22122 if test $in_tree_gas_is_elf = yes \
22123 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22124 then gcc_cv_as_comdat_group_percent=yes
22125 fi
22126 elif test x$gcc_cv_as != x; then
22127 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22130 (eval $ac_try) 2>&5
22131 ac_status=$?
22132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22133 test $ac_status = 0; }; }
22134 then
22135 gcc_cv_as_comdat_group_percent=yes
22136 else
22137 echo "configure: failed program was" >&5
22138 cat conftest.s >&5
22139 fi
22140 rm -f conftest.o conftest.s
22141 fi
22142 fi
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22144 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22145
22146 fi
22147 if test x"$ld_is_gold" = xyes; then
22148 comdat_group=yes
22149 elif test $in_tree_ld = yes ; then
22150 comdat_group=no
22151 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 \
22152 && test $in_tree_ld_is_elf = yes; then
22153 comdat_group=yes
22154 fi
22155 elif echo "$ld_ver" | grep GNU > /dev/null; then
22156 comdat_group=yes
22157 if test 0"$ld_date" -lt 20050308; then
22158 if test -n "$ld_date"; then
22159 # If there was date string, but was earlier than 2005-03-08, fail
22160 comdat_group=no
22161 elif test "$ld_vers_major" -lt 2; then
22162 comdat_group=no
22163 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22164 comdat_group=no
22165 fi
22166 fi
22167 else
22168 case "${target}" in
22169 *-*-solaris2.1[1-9]*)
22170 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22171 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22172 # version 1.688.
22173 #
22174 # FIXME: Maybe need to refine later when COMDAT group support with
22175 # Sun as is implemented.
22176 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22177 comdat_group=yes
22178 else
22179 comdat_group=no
22180 fi
22181 ;;
22182 *)
22183 # Assume linkers other than GNU ld don't support COMDAT group.
22184 comdat_group=no
22185 ;;
22186 esac
22187 fi
22188 # Allow overriding the automatic COMDAT group tests above.
22189 # Check whether --enable-comdat was given.
22190 if test "${enable_comdat+set}" = set; then :
22191 enableval=$enable_comdat; comdat_group="$enable_comdat"
22192 fi
22193
22194 if test $comdat_group = no; then
22195 gcc_cv_as_comdat_group=no
22196 gcc_cv_as_comdat_group_percent=no
22197 fi
22198
22199 cat >>confdefs.h <<_ACEOF
22200 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22201 _ACEOF
22202
22203
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22205 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22206 if test "${gcc_cv_as_discriminator+set}" = set; then :
22207 $as_echo_n "(cached) " >&6
22208 else
22209 gcc_cv_as_discriminator=no
22210 if test $in_tree_gas = yes; then
22211 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22212 then gcc_cv_as_discriminator=yes
22213 fi
22214 elif test x$gcc_cv_as != x; then
22215 echo ' .text
22216 .file 1 "conf.c"
22217 .loc 1 1 0 discriminator 1' > conftest.s
22218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22220 (eval $ac_try) 2>&5
22221 ac_status=$?
22222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22223 test $ac_status = 0; }; }
22224 then
22225 gcc_cv_as_discriminator=yes
22226 else
22227 echo "configure: failed program was" >&5
22228 cat conftest.s >&5
22229 fi
22230 rm -f conftest.o conftest.s
22231 fi
22232 fi
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22234 $as_echo "$gcc_cv_as_discriminator" >&6; }
22235 if test $gcc_cv_as_discriminator = yes; then
22236
22237 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22238
22239 fi
22240
22241 # Thread-local storage - the check is heavily parameterized.
22242 conftest_s=
22243 tls_first_major=
22244 tls_first_minor=
22245 tls_as_opt=
22246 case "$target" in
22247 alpha*-*-*)
22248 conftest_s='
22249 .section ".tdata","awT",@progbits
22250 foo: .long 25
22251 .text
22252 ldq $27,__tls_get_addr($29) !literal!1
22253 lda $16,foo($29) !tlsgd!1
22254 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22255 ldq $27,__tls_get_addr($29) !literal!2
22256 lda $16,foo($29) !tlsldm!2
22257 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22258 ldq $1,foo($29) !gotdtprel
22259 ldah $2,foo($29) !dtprelhi
22260 lda $3,foo($2) !dtprello
22261 lda $4,foo($29) !dtprel
22262 ldq $1,foo($29) !gottprel
22263 ldah $2,foo($29) !tprelhi
22264 lda $3,foo($2) !tprello
22265 lda $4,foo($29) !tprel'
22266 tls_first_major=2
22267 tls_first_minor=13
22268 tls_as_opt=--fatal-warnings
22269 ;;
22270 cris-*-*|crisv32-*-*)
22271 conftest_s='
22272 .section ".tdata","awT",@progbits
22273 x: .long 25
22274 .text
22275 move.d x:IE,$r10
22276 nop'
22277 tls_first_major=2
22278 tls_first_minor=20
22279 tls_as_opt=--fatal-warnings
22280 ;;
22281 frv*-*-*)
22282 conftest_s='
22283 .section ".tdata","awT",@progbits
22284 x: .long 25
22285 .text
22286 call #gettlsoff(x)'
22287 tls_first_major=2
22288 tls_first_minor=14
22289 ;;
22290 hppa*-*-linux*)
22291 conftest_s='
22292 t1: .reg %r20
22293 t2: .reg %r21
22294 gp: .reg %r19
22295 .section ".tdata","awT",@progbits
22296 foo: .long 25
22297 .text
22298 .align 4
22299 addil LT%foo-$tls_gdidx$,gp
22300 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22301 b __tls_get_addr
22302 nop
22303 addil LT%foo-$tls_ldidx$,gp
22304 b __tls_get_addr
22305 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22306 addil LR%foo-$tls_dtpoff$,%ret0
22307 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22308 mfctl %cr27,%t1
22309 addil LT%foo-$tls_ieoff$,gp
22310 ldw RT%foo-$tls_ieoff$(%r1),%t2
22311 add %t1,%t2,%t3
22312 mfctl %cr27,%t1
22313 addil LR%foo-$tls_leoff$,%t1
22314 ldo RR%foo-$tls_leoff$(%r1),%t2'
22315 tls_first_major=2
22316 tls_first_minor=15
22317 tls_as_opt=--fatal-warnings
22318 ;;
22319 arm*-*-*)
22320 conftest_s='
22321 .section ".tdata","awT",%progbits
22322 foo: .long 25
22323 .text
22324 .word foo(gottpoff)
22325 .word foo(tpoff)
22326 .word foo(tlsgd)
22327 .word foo(tlsldm)
22328 .word foo(tlsldo)'
22329 tls_first_major=2
22330 tls_first_minor=17
22331 ;;
22332 i[34567]86-*-*)
22333 case "$target" in
22334 i[34567]86-*-solaris2.*)
22335 on_solaris=yes
22336 tga_func=___tls_get_addr
22337 ;;
22338 *)
22339 on_solaris=no
22340 ;;
22341 esac
22342 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22343 conftest_s='
22344 .section .tdata,"awt",@progbits'
22345 tls_first_major=0
22346 tls_first_minor=0
22347
22348 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22349
22350 else
22351 conftest_s='
22352 .section ".tdata","awT",@progbits'
22353 tls_first_major=2
22354 tls_first_minor=14
22355 tls_as_opt="--fatal-warnings"
22356 fi
22357 conftest_s="$conftest_s
22358 foo: .long 25
22359 .text
22360 movl %gs:0, %eax
22361 leal foo@tlsgd(,%ebx,1), %eax
22362 leal foo@tlsldm(%ebx), %eax
22363 leal foo@dtpoff(%eax), %edx
22364 movl foo@gottpoff(%ebx), %eax
22365 subl foo@gottpoff(%ebx), %eax
22366 addl foo@gotntpoff(%ebx), %eax
22367 movl foo@indntpoff, %eax
22368 movl \$foo@tpoff, %eax
22369 subl \$foo@tpoff, %eax
22370 leal foo@ntpoff(%ecx), %eax"
22371 ;;
22372 x86_64-*-*)
22373 conftest_s='
22374 .section ".tdata","awT",@progbits
22375 foo: .long 25
22376 .text
22377 movq %fs:0, %rax
22378 leaq foo@TLSGD(%rip), %rdi
22379 leaq foo@TLSLD(%rip), %rdi
22380 leaq foo@DTPOFF(%rax), %rdx
22381 movq foo@GOTTPOFF(%rip), %rax
22382 movq $foo@TPOFF, %rax'
22383 tls_first_major=2
22384 tls_first_minor=14
22385 tls_as_opt=--fatal-warnings
22386 ;;
22387 ia64-*-*)
22388 conftest_s='
22389 .section ".tdata","awT",@progbits
22390 foo: data8 25
22391 .text
22392 addl r16 = @ltoff(@dtpmod(foo#)), gp
22393 addl r17 = @ltoff(@dtprel(foo#)), gp
22394 addl r18 = @ltoff(@tprel(foo#)), gp
22395 addl r19 = @dtprel(foo#), gp
22396 adds r21 = @dtprel(foo#), r13
22397 movl r23 = @dtprel(foo#)
22398 addl r20 = @tprel(foo#), gp
22399 adds r22 = @tprel(foo#), r13
22400 movl r24 = @tprel(foo#)'
22401 tls_first_major=2
22402 tls_first_minor=13
22403 tls_as_opt=--fatal-warnings
22404 ;;
22405 mips*-*-*)
22406 conftest_s='
22407 .section .tdata,"awT",@progbits
22408 x:
22409 .word 2
22410 .text
22411 addiu $4, $28, %tlsgd(x)
22412 addiu $4, $28, %tlsldm(x)
22413 lui $4, %dtprel_hi(x)
22414 addiu $4, $4, %dtprel_lo(x)
22415 lw $4, %gottprel(x)($28)
22416 lui $4, %tprel_hi(x)
22417 addiu $4, $4, %tprel_lo(x)'
22418 tls_first_major=2
22419 tls_first_minor=16
22420 tls_as_opt='-32 --fatal-warnings'
22421 ;;
22422 m68k-*-*)
22423 conftest_s='
22424 .section .tdata,"awT",@progbits
22425 x:
22426 .word 2
22427 .text
22428 foo:
22429 move.l x@TLSGD(%a5),%a0
22430 move.l x@TLSLDM(%a5),%a0
22431 move.l x@TLSLDO(%a5),%a0
22432 move.l x@TLSIE(%a5),%a0
22433 move.l x@TLSLE(%a5),%a0'
22434 tls_first_major=2
22435 tls_first_minor=19
22436 tls_as_opt='--fatal-warnings'
22437 ;;
22438 powerpc-*-*)
22439 conftest_s='
22440 .section ".tdata","awT",@progbits
22441 .align 2
22442 ld0: .space 4
22443 ld1: .space 4
22444 x1: .space 4
22445 x2: .space 4
22446 x3: .space 4
22447 .text
22448 addi 3,31,ld0@got@tlsgd
22449 bl __tls_get_addr
22450 addi 3,31,x1@got@tlsld
22451 bl __tls_get_addr
22452 addi 9,3,x1@dtprel
22453 addis 9,3,x2@dtprel@ha
22454 addi 9,9,x2@dtprel@l
22455 lwz 9,x3@got@tprel(31)
22456 add 9,9,x@tls
22457 addi 9,2,x1@tprel
22458 addis 9,2,x2@tprel@ha
22459 addi 9,9,x2@tprel@l'
22460 tls_first_major=2
22461 tls_first_minor=14
22462 tls_as_opt="-a32 --fatal-warnings"
22463 ;;
22464 powerpc64-*-*)
22465 conftest_s='
22466 .section ".tdata","awT",@progbits
22467 .align 3
22468 ld0: .space 8
22469 ld1: .space 8
22470 x1: .space 8
22471 x2: .space 8
22472 x3: .space 8
22473 .text
22474 addi 3,2,ld0@got@tlsgd
22475 bl .__tls_get_addr
22476 nop
22477 addi 3,2,ld1@toc
22478 bl .__tls_get_addr
22479 nop
22480 addi 3,2,x1@got@tlsld
22481 bl .__tls_get_addr
22482 nop
22483 addi 9,3,x1@dtprel
22484 bl .__tls_get_addr
22485 nop
22486 addis 9,3,x2@dtprel@ha
22487 addi 9,9,x2@dtprel@l
22488 bl .__tls_get_addr
22489 nop
22490 ld 9,x3@got@dtprel(2)
22491 add 9,9,3
22492 bl .__tls_get_addr
22493 nop'
22494 tls_first_major=2
22495 tls_first_minor=14
22496 tls_as_opt="-a64 --fatal-warnings"
22497 ;;
22498 s390-*-*)
22499 conftest_s='
22500 .section ".tdata","awT",@progbits
22501 foo: .long 25
22502 .text
22503 .long foo@TLSGD
22504 .long foo@TLSLDM
22505 .long foo@DTPOFF
22506 .long foo@NTPOFF
22507 .long foo@GOTNTPOFF
22508 .long foo@INDNTPOFF
22509 l %r1,foo@GOTNTPOFF(%r12)
22510 l %r1,0(%r1):tls_load:foo
22511 bas %r14,0(%r1,%r13):tls_gdcall:foo
22512 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22513 tls_first_major=2
22514 tls_first_minor=14
22515 tls_as_opt="-m31 --fatal-warnings"
22516 ;;
22517 s390x-*-*)
22518 conftest_s='
22519 .section ".tdata","awT",@progbits
22520 foo: .long 25
22521 .text
22522 .quad foo@TLSGD
22523 .quad foo@TLSLDM
22524 .quad foo@DTPOFF
22525 .quad foo@NTPOFF
22526 .quad foo@GOTNTPOFF
22527 lg %r1,foo@GOTNTPOFF(%r12)
22528 larl %r1,foo@INDNTPOFF
22529 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22530 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22531 tls_first_major=2
22532 tls_first_minor=14
22533 tls_as_opt="-m64 -Aesame --fatal-warnings"
22534 ;;
22535 sh-*-* | sh[34]-*-*)
22536 conftest_s='
22537 .section ".tdata","awT",@progbits
22538 foo: .long 25
22539 .text
22540 .long foo@TLSGD
22541 .long foo@TLSLDM
22542 .long foo@DTPOFF
22543 .long foo@GOTTPOFF
22544 .long foo@TPOFF'
22545 tls_first_major=2
22546 tls_first_minor=13
22547 tls_as_opt=--fatal-warnings
22548 ;;
22549 sparc*-*-*)
22550 case "$target" in
22551 sparc*-sun-solaris2.*)
22552 on_solaris=yes
22553 tga_func=__tls_get_addr
22554 ;;
22555 *)
22556 on_solaris=no
22557 ;;
22558 esac
22559 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22560 conftest_s='
22561 .section ".tdata",#alloc,#write,#tls'
22562 tls_first_major=0
22563 tls_first_minor=0
22564 else
22565 conftest_s='
22566 .section ".tdata","awT",@progbits'
22567 tls_first_major=2
22568 tls_first_minor=14
22569 tls_as_opt="-32 --fatal-warnings"
22570 fi
22571 conftest_s="$conftest_s
22572 foo: .long 25
22573 .text
22574 sethi %tgd_hi22(foo), %o0
22575 add %o0, %tgd_lo10(foo), %o1
22576 add %l7, %o1, %o0, %tgd_add(foo)
22577 call __tls_get_addr, %tgd_call(foo)
22578 sethi %tldm_hi22(foo), %l1
22579 add %l1, %tldm_lo10(foo), %l2
22580 add %l7, %l2, %o0, %tldm_add(foo)
22581 call __tls_get_addr, %tldm_call(foo)
22582 sethi %tldo_hix22(foo), %l3
22583 xor %l3, %tldo_lox10(foo), %l4
22584 add %o0, %l4, %l5, %tldo_add(foo)
22585 sethi %tie_hi22(foo), %o3
22586 add %o3, %tie_lo10(foo), %o3
22587 ld [%l7 + %o3], %o2, %tie_ld(foo)
22588 add %g7, %o2, %o4, %tie_add(foo)
22589 sethi %tle_hix22(foo), %l1
22590 xor %l1, %tle_lox10(foo), %o5
22591 ld [%g7 + %o5], %o1"
22592 ;;
22593 xtensa*-*-*)
22594 conftest_s='
22595 .section ".tdata","awT",@progbits
22596 foo: .long 25
22597 .text
22598 movi a8, foo@TLSFUNC
22599 movi a10, foo@TLSARG
22600 callx8.tls a8, foo@TLSCALL'
22601 tls_first_major=2
22602 tls_first_minor=19
22603 ;;
22604 esac
22605 set_have_as_tls=no
22606 if test "x$enable_tls" = xno ; then
22607 : # TLS explicitly disabled.
22608 elif test "x$enable_tls" = xyes ; then
22609 set_have_as_tls=yes # TLS explicitly enabled.
22610 elif test -z "$tls_first_major"; then
22611 : # If we don't have a check, assume no support.
22612 else
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22614 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22615 if test "${gcc_cv_as_tls+set}" = set; then :
22616 $as_echo_n "(cached) " >&6
22617 else
22618 gcc_cv_as_tls=no
22619 if test $in_tree_gas = yes; then
22620 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22621 then gcc_cv_as_tls=yes
22622 fi
22623 elif test x$gcc_cv_as != x; then
22624 echo "$conftest_s" > conftest.s
22625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22627 (eval $ac_try) 2>&5
22628 ac_status=$?
22629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22630 test $ac_status = 0; }; }
22631 then
22632 gcc_cv_as_tls=yes
22633 else
22634 echo "configure: failed program was" >&5
22635 cat conftest.s >&5
22636 fi
22637 rm -f conftest.o conftest.s
22638 fi
22639 fi
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22641 $as_echo "$gcc_cv_as_tls" >&6; }
22642 if test $gcc_cv_as_tls = yes; then
22643 set_have_as_tls=yes
22644 fi
22645 fi
22646 case "$target" in
22647 *-*-irix6*)
22648 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22649 # with TLS support are in use, native TLS cannot work.
22650 set_have_as_tls=no
22651 ;;
22652 *-*-osf*)
22653 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22654 # gld with TLS support are in use, native TLS cannot work.
22655 set_have_as_tls=no
22656 ;;
22657 # TLS was introduced in the Solaris 9 FCS release and backported to
22658 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22659 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22660 # ld and GCC don't support any longer.
22661 *-*-solaris2.*)
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22663 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22664 ld_tls_support=no
22665 # Check ld and ld.so.1 TLS support.
22666 if echo "$ld_ver" | grep GNU > /dev/null; then
22667 # Assume all interesting versions of GNU ld have TLS support.
22668 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22669 ld_tls_support=yes
22670 else
22671 case "$target" in
22672 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22673 i?86-*-solaris2.8)
22674 min_tls_ld_vers_minor=280
22675 ;;
22676 # Solaris 8/SPARC ld has TLS support since version 1.272.
22677 sparc*-*-solaris2.8)
22678 min_tls_ld_vers_minor=272
22679 ;;
22680 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22681 i?86-*-solaris2.9)
22682 min_tls_ld_vers_minor=374
22683 ;;
22684 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22685 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22686 min_tls_ld_vers_minor=343
22687 ;;
22688 esac
22689 if test "$ld_vers_major" -gt 1 || \
22690 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22691 ld_tls_support=yes
22692 else
22693 set_have_as_tls=no
22694 fi
22695 fi
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22697 $as_echo "$ld_tls_support" >&6; }
22698
22699 save_LIBS="$LIBS"
22700 save_LDFLAGS="$LDFLAGS"
22701 LIBS=
22702 LDFLAGS=
22703
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22705 $as_echo_n "checking alternate thread library... " >&6; }
22706 case "$target" in
22707 # TLS support was backported to Solaris 8 patches, but only lives in
22708 # the alternate thread library which became the default in Solaris 9.
22709 # We want to always use that, irrespective of TLS support.
22710 *-*-solaris2.8)
22711 # Take multilib subdir into account. There's no spec to handle
22712 # this. The 64 symlink exists since Solaris 8.
22713 lwp_dir=/usr/lib/lwp
22714 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22715 LDFLAGS="-L$lwp_dir -R$lwp_dir"
22716 ;;
22717 *-*-solaris2*)
22718 lwp_dir="none"
22719 lwp_spec=""
22720 ;;
22721 esac
22722 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22723
22724 cat >>confdefs.h <<_ACEOF
22725 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22726 _ACEOF
22727
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22729 $as_echo "$lwp_dir" >&6; }
22730
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22732 $as_echo_n "checking library containing $tga_func... " >&6; }
22733 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22734 # (32-bit x86) only lived in libthread, so check for that. Keep
22735 # set_have_as_tls if found, disable if not.
22736 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22738 $as_echo_n "checking for library containing $tga_func... " >&6; }
22739 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22740 $as_echo_n "(cached) " >&6
22741 else
22742 ac_func_search_save_LIBS=$LIBS
22743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22744 /* end confdefs.h. */
22745
22746 /* Override any GCC internal prototype to avoid an error.
22747 Use char because int might match the return type of a GCC
22748 builtin and then its argument prototype would still apply. */
22749 #ifdef __cplusplus
22750 extern "C"
22751 #endif
22752 char $tga_func ();
22753 int
22754 main ()
22755 {
22756 return $tga_func ();
22757 ;
22758 return 0;
22759 }
22760 _ACEOF
22761 for ac_lib in '' thread; do
22762 if test -z "$ac_lib"; then
22763 ac_res="none required"
22764 else
22765 ac_res=-l$ac_lib
22766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22767 fi
22768 if ac_fn_c_try_link "$LINENO"; then :
22769 eval "$as_ac_Search=\$ac_res"
22770 fi
22771 rm -f core conftest.err conftest.$ac_objext \
22772 conftest$ac_exeext
22773 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22774 break
22775 fi
22776 done
22777 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22778
22779 else
22780 eval "$as_ac_Search=no"
22781 fi
22782 rm conftest.$ac_ext
22783 LIBS=$ac_func_search_save_LIBS
22784 fi
22785 eval ac_res=\$$as_ac_Search
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22787 $as_echo "$ac_res" >&6; }
22788 eval ac_res=\$$as_ac_Search
22789 if test "$ac_res" != no; then :
22790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22791
22792 else
22793 set_have_as_tls=no
22794 fi
22795
22796 # Clear LIBS if we cannot support TLS.
22797 if test $set_have_as_tls = no; then
22798 LIBS=
22799 fi
22800 # Always define LIB_TLS_SPEC, even without TLS support.
22801
22802 cat >>confdefs.h <<_ACEOF
22803 #define LIB_TLS_SPEC "$LIBS"
22804 _ACEOF
22805
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22807 $as_echo "$LIBS" >&6; }
22808
22809 LIBS="$save_LIBS"
22810 LDFLAGS="$save_LDFLAGS"
22811 ;;
22812 esac
22813 if test $set_have_as_tls = yes ; then
22814
22815 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22816
22817 fi
22818
22819 # Target-specific assembler checks.
22820
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22822 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22823 gcc_cv_ld_static_dynamic=no
22824 if test $in_tree_ld = yes ; then
22825 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
22826 gcc_cv_ld_static_dynamic=yes
22827 fi
22828 elif test x$gcc_cv_ld != x; then
22829 # Check if linker supports -Bstatic/-Bdynamic option
22830 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22831 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22832 gcc_cv_ld_static_dynamic=yes
22833 fi
22834 fi
22835 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22836
22837 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22838
22839 fi
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22841 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22842
22843 if test x"$demangler_in_ld" = xyes; then
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22845 $as_echo_n "checking linker --demangle support... " >&6; }
22846 gcc_cv_ld_demangle=no
22847 if test $in_tree_ld = yes; then
22848 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 \
22849 gcc_cv_ld_demangle=yes
22850 fi
22851 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22852 # Check if the GNU linker supports --demangle option
22853 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22854 gcc_cv_ld_demangle=yes
22855 fi
22856 fi
22857 if test x"$gcc_cv_ld_demangle" = xyes; then
22858
22859 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22860
22861 fi
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22863 $as_echo "$gcc_cv_ld_demangle" >&6; }
22864 fi
22865
22866 case "$target" in
22867 # All TARGET_ABI_OSF targets.
22868 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22870 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22871 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22872 $as_echo_n "(cached) " >&6
22873 else
22874 gcc_cv_as_alpha_explicit_relocs=no
22875 if test $in_tree_gas = yes; then
22876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22877 then gcc_cv_as_alpha_explicit_relocs=yes
22878 fi
22879 elif test x$gcc_cv_as != x; then
22880 echo ' .set nomacro
22881 .text
22882 extbl $3, $2, $3 !lituse_bytoff!1
22883 ldq $2, a($29) !literal!1
22884 ldq $4, b($29) !literal!2
22885 ldq_u $3, 0($2) !lituse_base!1
22886 ldq $27, f($29) !literal!5
22887 jsr $26, ($27), f !lituse_jsr!5
22888 ldah $29, 0($26) !gpdisp!3
22889 lda $0, c($29) !gprel
22890 ldah $1, d($29) !gprelhigh
22891 lda $1, d($1) !gprellow
22892 lda $29, 0($29) !gpdisp!3' > conftest.s
22893 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22895 (eval $ac_try) 2>&5
22896 ac_status=$?
22897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22898 test $ac_status = 0; }; }
22899 then
22900 gcc_cv_as_alpha_explicit_relocs=yes
22901 else
22902 echo "configure: failed program was" >&5
22903 cat conftest.s >&5
22904 fi
22905 rm -f conftest.o conftest.s
22906 fi
22907 fi
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22909 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22910 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22911
22912 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22913
22914 fi
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22916 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22917 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22918 $as_echo_n "(cached) " >&6
22919 else
22920 gcc_cv_as_alpha_jsrdirect_relocs=no
22921 if test $in_tree_gas = yes; then
22922 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22923 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22924 fi
22925 elif test x$gcc_cv_as != x; then
22926 echo ' .set nomacro
22927 .text
22928 ldq $27, a($29) !literal!1
22929 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22930 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22932 (eval $ac_try) 2>&5
22933 ac_status=$?
22934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22935 test $ac_status = 0; }; }
22936 then
22937 gcc_cv_as_alpha_jsrdirect_relocs=yes
22938 else
22939 echo "configure: failed program was" >&5
22940 cat conftest.s >&5
22941 fi
22942 rm -f conftest.o conftest.s
22943 fi
22944 fi
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22946 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22947 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22948
22949 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22950
22951 fi
22952 ;;
22953
22954 cris-*-*)
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22956 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22957 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22958 $as_echo_n "(cached) " >&6
22959 else
22960 gcc_cv_as_cris_no_mul_bug=no
22961 if test $in_tree_gas = yes; then
22962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22963 then gcc_cv_as_cris_no_mul_bug=yes
22964 fi
22965 elif test x$gcc_cv_as != x; then
22966 echo '.text' > conftest.s
22967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22969 (eval $ac_try) 2>&5
22970 ac_status=$?
22971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22972 test $ac_status = 0; }; }
22973 then
22974 gcc_cv_as_cris_no_mul_bug=yes
22975 else
22976 echo "configure: failed program was" >&5
22977 cat conftest.s >&5
22978 fi
22979 rm -f conftest.o conftest.s
22980 fi
22981 fi
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22983 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22984 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22985
22986 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22987
22988 fi
22989 ;;
22990
22991 sparc*-*-*)
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22993 $as_echo_n "checking assembler for .register... " >&6; }
22994 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22995 $as_echo_n "(cached) " >&6
22996 else
22997 gcc_cv_as_sparc_register_op=no
22998 if test x$gcc_cv_as != x; then
22999 echo '.register %g2, #scratch' > conftest.s
23000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23002 (eval $ac_try) 2>&5
23003 ac_status=$?
23004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23005 test $ac_status = 0; }; }
23006 then
23007 gcc_cv_as_sparc_register_op=yes
23008 else
23009 echo "configure: failed program was" >&5
23010 cat conftest.s >&5
23011 fi
23012 rm -f conftest.o conftest.s
23013 fi
23014 fi
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23016 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23017 if test $gcc_cv_as_sparc_register_op = yes; then
23018
23019 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23020
23021 fi
23022
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23024 $as_echo_n "checking assembler for -relax option... " >&6; }
23025 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23026 $as_echo_n "(cached) " >&6
23027 else
23028 gcc_cv_as_sparc_relax=no
23029 if test x$gcc_cv_as != x; then
23030 echo '.text' > conftest.s
23031 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23033 (eval $ac_try) 2>&5
23034 ac_status=$?
23035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23036 test $ac_status = 0; }; }
23037 then
23038 gcc_cv_as_sparc_relax=yes
23039 else
23040 echo "configure: failed program was" >&5
23041 cat conftest.s >&5
23042 fi
23043 rm -f conftest.o conftest.s
23044 fi
23045 fi
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23047 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23048 if test $gcc_cv_as_sparc_relax = yes; then
23049
23050 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23051
23052 fi
23053
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23055 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23056 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23057 $as_echo_n "(cached) " >&6
23058 else
23059 gcc_cv_as_sparc_gotdata_op=no
23060 if test x$gcc_cv_as != x; then
23061 echo '.text
23062 foo:
23063 nop
23064 bar:
23065 sethi %gdop_hix22(foo), %g1
23066 xor %g1, %gdop_lox10(foo), %g1
23067 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23070 (eval $ac_try) 2>&5
23071 ac_status=$?
23072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23073 test $ac_status = 0; }; }
23074 then
23075 if test x$gcc_cv_ld != x \
23076 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23077 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
23078 if test x$gcc_cv_objdump != x; then
23079 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23080 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23081 gcc_cv_as_sparc_gotdata_op=no
23082 else
23083 gcc_cv_as_sparc_gotdata_op=yes
23084 fi
23085 fi
23086 else
23087 gcc_cv_as_sparc_gotdata_op=yes
23088 fi
23089 fi
23090 rm -f conftest
23091 else
23092 echo "configure: failed program was" >&5
23093 cat conftest.s >&5
23094 fi
23095 rm -f conftest.o conftest.s
23096 fi
23097 fi
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23099 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23100 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23101
23102 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23103
23104 fi
23105
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23107 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23108 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23109 $as_echo_n "(cached) " >&6
23110 else
23111 gcc_cv_as_sparc_ua_pcrel=no
23112 if test x$gcc_cv_as != x; then
23113 echo '.text
23114 foo:
23115 nop
23116 .data
23117 .align 4
23118 .byte 0
23119 .uaword %r_disp32(foo)' > conftest.s
23120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23122 (eval $ac_try) 2>&5
23123 ac_status=$?
23124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23125 test $ac_status = 0; }; }
23126 then
23127 if test x$gcc_cv_ld != x \
23128 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23129 gcc_cv_as_sparc_ua_pcrel=yes
23130 fi
23131 rm -f conftest
23132 else
23133 echo "configure: failed program was" >&5
23134 cat conftest.s >&5
23135 fi
23136 rm -f conftest.o conftest.s
23137 fi
23138 fi
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23140 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23141 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23142
23143 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23144
23145
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23147 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23148 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23149 $as_echo_n "(cached) " >&6
23150 else
23151 gcc_cv_as_sparc_ua_pcrel_hidden=no
23152 if test x$gcc_cv_as != x; then
23153 echo '.data
23154 .align 4
23155 .byte 0x31
23156 .uaword %r_disp32(foo)
23157 .byte 0x32, 0x33, 0x34
23158 .global foo
23159 .hidden foo
23160 foo:
23161 .skip 4' > conftest.s
23162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23164 (eval $ac_try) 2>&5
23165 ac_status=$?
23166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23167 test $ac_status = 0; }; }
23168 then
23169 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23170 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23171 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23172 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23173 if $gcc_cv_objdump -R conftest 2> /dev/null \
23174 | grep 'DISP32' > /dev/null 2>&1; then
23175 :
23176 else
23177 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23178 fi
23179 fi
23180 rm -f conftest
23181 else
23182 echo "configure: failed program was" >&5
23183 cat conftest.s >&5
23184 fi
23185 rm -f conftest.o conftest.s
23186 fi
23187 fi
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23189 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23190 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23191
23192 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23193
23194 fi
23195
23196 fi # unaligned pcrel relocs
23197
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23199 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23200 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23201 $as_echo_n "(cached) " >&6
23202 else
23203 gcc_cv_as_sparc_offsetable_lo10=no
23204 if test x$gcc_cv_as != x; then
23205 echo '.text
23206 or %g1, %lo(ab) + 12, %g1
23207 or %g1, %lo(ab + 12), %g1' > conftest.s
23208 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23210 (eval $ac_try) 2>&5
23211 ac_status=$?
23212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23213 test $ac_status = 0; }; }
23214 then
23215 if test x$gcc_cv_objdump != x \
23216 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23217 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23218 gcc_cv_as_sparc_offsetable_lo10=yes
23219 fi
23220 else
23221 echo "configure: failed program was" >&5
23222 cat conftest.s >&5
23223 fi
23224 rm -f conftest.o conftest.s
23225 fi
23226 fi
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23228 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23229 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23230
23231 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23232
23233 fi
23234 ;;
23235
23236 i[34567]86-*-* | x86_64-*-*)
23237 case $target_os in
23238 cygwin*)
23239 # Full C++ conformance when using a shared libstdc++-v3 requires some
23240 # support from the Cygwin DLL, which in more recent versions exports
23241 # wrappers to aid in interposing and redirecting operators new, delete,
23242 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23243 # are configuring for a version of Cygwin that exports the wrappers.
23244 if test x$host = x$target; then
23245 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23246 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23247 gcc_ac_cygwin_dll_wrappers=yes
23248 else
23249 gcc_ac_cygwin_dll_wrappers=no
23250 fi
23251
23252 else
23253 # Can't check presence of libc functions during cross-compile, so
23254 # we just have to assume we're building for an up-to-date target.
23255 gcc_ac_cygwin_dll_wrappers=yes
23256 fi
23257
23258 cat >>confdefs.h <<_ACEOF
23259 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23260 _ACEOF
23261
23262 esac
23263 case $target_os in
23264 cygwin* | pe | mingw32*)
23265 # Recent binutils allows the three-operand form of ".comm" on PE. This
23266 # definition is used unconditionally to initialise the default state of
23267 # the target option variable that governs usage of the feature.
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23269 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23270 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23271 $as_echo_n "(cached) " >&6
23272 else
23273 gcc_cv_as_comm_has_align=no
23274 if test $in_tree_gas = yes; then
23275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23276 then gcc_cv_as_comm_has_align=yes
23277 fi
23278 elif test x$gcc_cv_as != x; then
23279 echo '.comm foo,1,32' > conftest.s
23280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23282 (eval $ac_try) 2>&5
23283 ac_status=$?
23284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23285 test $ac_status = 0; }; }
23286 then
23287 gcc_cv_as_comm_has_align=yes
23288 else
23289 echo "configure: failed program was" >&5
23290 cat conftest.s >&5
23291 fi
23292 rm -f conftest.o conftest.s
23293 fi
23294 fi
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23296 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23297
23298
23299 cat >>confdefs.h <<_ACEOF
23300 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23301 _ACEOF
23302
23303 # Used for DWARF 2 in PE
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23305 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23306 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23307 $as_echo_n "(cached) " >&6
23308 else
23309 gcc_cv_as_ix86_pe_secrel32=no
23310 if test $in_tree_gas = yes; then
23311 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23312 then gcc_cv_as_ix86_pe_secrel32=yes
23313 fi
23314 elif test x$gcc_cv_as != x; then
23315 echo '.text
23316 foo: nop
23317 .data
23318 .secrel32 foo' > conftest.s
23319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23321 (eval $ac_try) 2>&5
23322 ac_status=$?
23323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23324 test $ac_status = 0; }; }
23325 then
23326 if test x$gcc_cv_ld != x \
23327 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23328 gcc_cv_as_ix86_pe_secrel32=yes
23329 fi
23330 rm -f conftest
23331 else
23332 echo "configure: failed program was" >&5
23333 cat conftest.s >&5
23334 fi
23335 rm -f conftest.o conftest.s
23336 fi
23337 fi
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23339 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23340 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23341
23342 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23343
23344 fi
23345 # Test if the assembler supports the extended form of the .section
23346 # directive that specifies section alignment. LTO support uses this,
23347 # but normally only after installation, so we warn but don't fail the
23348 # configure if LTO is enabled but the assembler does not support it.
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23350 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23351 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23352 $as_echo_n "(cached) " >&6
23353 else
23354 gcc_cv_as_section_has_align=no
23355 if test $in_tree_gas = yes; then
23356 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23357 then gcc_cv_as_section_has_align=yes
23358 fi
23359 elif test x$gcc_cv_as != x; then
23360 echo '.section lto_test,"dr0"' > conftest.s
23361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23363 (eval $ac_try) 2>&5
23364 ac_status=$?
23365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23366 test $ac_status = 0; }; }
23367 then
23368 gcc_cv_as_section_has_align=yes
23369 else
23370 echo "configure: failed program was" >&5
23371 cat conftest.s >&5
23372 fi
23373 rm -f conftest.o conftest.s
23374 fi
23375 fi
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23377 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23378
23379 if test x$gcc_cv_as_section_has_align != xyes; then
23380 case ",$enable_languages," in
23381 *,lto,*)
23382 { $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
23383 $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;}
23384 ;;
23385 esac
23386 fi
23387 ;;
23388 esac
23389
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23391 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23392 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23393 $as_echo_n "(cached) " >&6
23394 else
23395 gcc_cv_as_ix86_filds=no
23396 if test x$gcc_cv_as != x; then
23397 echo 'filds mem; fists mem' > conftest.s
23398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23400 (eval $ac_try) 2>&5
23401 ac_status=$?
23402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23403 test $ac_status = 0; }; }
23404 then
23405 gcc_cv_as_ix86_filds=yes
23406 else
23407 echo "configure: failed program was" >&5
23408 cat conftest.s >&5
23409 fi
23410 rm -f conftest.o conftest.s
23411 fi
23412 fi
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23414 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23415 if test $gcc_cv_as_ix86_filds = yes; then
23416
23417 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23418
23419 fi
23420
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23422 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23423 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23424 $as_echo_n "(cached) " >&6
23425 else
23426 gcc_cv_as_ix86_fildq=no
23427 if test x$gcc_cv_as != x; then
23428 echo 'fildq mem; fistpq mem' > conftest.s
23429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23431 (eval $ac_try) 2>&5
23432 ac_status=$?
23433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23434 test $ac_status = 0; }; }
23435 then
23436 gcc_cv_as_ix86_fildq=yes
23437 else
23438 echo "configure: failed program was" >&5
23439 cat conftest.s >&5
23440 fi
23441 rm -f conftest.o conftest.s
23442 fi
23443 fi
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23445 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23446 if test $gcc_cv_as_ix86_fildq = yes; then
23447
23448 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23449
23450 fi
23451
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23453 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23454 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23456 else
23457 gcc_cv_as_ix86_cmov_sun_syntax=no
23458 if test x$gcc_cv_as != x; then
23459 echo 'cmovl.l %edx, %eax' > conftest.s
23460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23462 (eval $ac_try) 2>&5
23463 ac_status=$?
23464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23465 test $ac_status = 0; }; }
23466 then
23467 gcc_cv_as_ix86_cmov_sun_syntax=yes
23468 else
23469 echo "configure: failed program was" >&5
23470 cat conftest.s >&5
23471 fi
23472 rm -f conftest.o conftest.s
23473 fi
23474 fi
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23476 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23477 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23478
23479 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23480
23481 fi
23482
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23484 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23485 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23486 $as_echo_n "(cached) " >&6
23487 else
23488 gcc_cv_as_ix86_ffreep=no
23489 if test x$gcc_cv_as != x; then
23490 echo 'ffreep %st(1)' > conftest.s
23491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23493 (eval $ac_try) 2>&5
23494 ac_status=$?
23495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23496 test $ac_status = 0; }; }
23497 then
23498 gcc_cv_as_ix86_ffreep=yes
23499 else
23500 echo "configure: failed program was" >&5
23501 cat conftest.s >&5
23502 fi
23503 rm -f conftest.o conftest.s
23504 fi
23505 fi
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23507 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23508 if test $gcc_cv_as_ix86_ffreep = yes; then
23509
23510 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23511
23512 fi
23513
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23515 $as_echo_n "checking assembler for .quad directive... " >&6; }
23516 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23517 $as_echo_n "(cached) " >&6
23518 else
23519 gcc_cv_as_ix86_quad=no
23520 if test x$gcc_cv_as != x; then
23521 echo '.quad 0' > conftest.s
23522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23527 test $ac_status = 0; }; }
23528 then
23529 gcc_cv_as_ix86_quad=yes
23530 else
23531 echo "configure: failed program was" >&5
23532 cat conftest.s >&5
23533 fi
23534 rm -f conftest.o conftest.s
23535 fi
23536 fi
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23538 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23539 if test $gcc_cv_as_ix86_quad = yes; then
23540
23541 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23542
23543 fi
23544
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23546 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23547 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23548 $as_echo_n "(cached) " >&6
23549 else
23550 gcc_cv_as_ix86_sahf=no
23551 if test x$gcc_cv_as != x; then
23552 echo '.code64
23553 sahf' > conftest.s
23554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23556 (eval $ac_try) 2>&5
23557 ac_status=$?
23558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23559 test $ac_status = 0; }; }
23560 then
23561 gcc_cv_as_ix86_sahf=yes
23562 else
23563 echo "configure: failed program was" >&5
23564 cat conftest.s >&5
23565 fi
23566 rm -f conftest.o conftest.s
23567 fi
23568 fi
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23570 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23571 if test $gcc_cv_as_ix86_sahf = yes; then
23572
23573 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23574
23575 fi
23576
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23578 $as_echo_n "checking assembler for swap suffix... " >&6; }
23579 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23580 $as_echo_n "(cached) " >&6
23581 else
23582 gcc_cv_as_ix86_swap=no
23583 if test x$gcc_cv_as != x; then
23584 echo 'movl.s %esp, %ebp' > conftest.s
23585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23587 (eval $ac_try) 2>&5
23588 ac_status=$?
23589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23590 test $ac_status = 0; }; }
23591 then
23592 gcc_cv_as_ix86_swap=yes
23593 else
23594 echo "configure: failed program was" >&5
23595 cat conftest.s >&5
23596 fi
23597 rm -f conftest.o conftest.s
23598 fi
23599 fi
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23601 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23602 if test $gcc_cv_as_ix86_swap = yes; then
23603
23604 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23605
23606 fi
23607
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23609 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23610 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23611 $as_echo_n "(cached) " >&6
23612 else
23613 gcc_cv_as_ix86_diff_sect_delta=no
23614 if test x$gcc_cv_as != x; then
23615 echo '.section .rodata
23616 .L1:
23617 .long .L2-.L1
23618 .long .L3-.L1
23619 .text
23620 .L3: nop
23621 .L2: nop' > conftest.s
23622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23624 (eval $ac_try) 2>&5
23625 ac_status=$?
23626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23627 test $ac_status = 0; }; }
23628 then
23629 gcc_cv_as_ix86_diff_sect_delta=yes
23630 else
23631 echo "configure: failed program was" >&5
23632 cat conftest.s >&5
23633 fi
23634 rm -f conftest.o conftest.s
23635 fi
23636 fi
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23638 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23639 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23640
23641 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23642
23643 fi
23644
23645 # These two are used unconditionally by i386.[ch]; it is to be defined
23646 # to 1 if the feature is present, 0 otherwise.
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23648 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23649 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23650 $as_echo_n "(cached) " >&6
23651 else
23652 gcc_cv_as_ix86_gotoff_in_data=no
23653 if test $in_tree_gas = yes; then
23654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23655 then gcc_cv_as_ix86_gotoff_in_data=yes
23656 fi
23657 elif test x$gcc_cv_as != x; then
23658 echo ' .text
23659 .L0:
23660 nop
23661 .data
23662 .long .L0@GOTOFF' > conftest.s
23663 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23665 (eval $ac_try) 2>&5
23666 ac_status=$?
23667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23668 test $ac_status = 0; }; }
23669 then
23670 gcc_cv_as_ix86_gotoff_in_data=yes
23671 else
23672 echo "configure: failed program was" >&5
23673 cat conftest.s >&5
23674 fi
23675 rm -f conftest.o conftest.s
23676 fi
23677 fi
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23679 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23680
23681
23682 cat >>confdefs.h <<_ACEOF
23683 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23684 _ACEOF
23685
23686
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23688 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23689 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23690 $as_echo_n "(cached) " >&6
23691 else
23692 gcc_cv_as_ix86_rep_lock_prefix=no
23693 if test x$gcc_cv_as != x; then
23694 echo 'rep movsl
23695 lock addl %edi, (%eax,%esi)
23696 lock orl $0, (%esp)' > conftest.s
23697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23699 (eval $ac_try) 2>&5
23700 ac_status=$?
23701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23702 test $ac_status = 0; }; }
23703 then
23704 gcc_cv_as_ix86_rep_lock_prefix=yes
23705 else
23706 echo "configure: failed program was" >&5
23707 cat conftest.s >&5
23708 fi
23709 rm -f conftest.o conftest.s
23710 fi
23711 fi
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23713 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23714 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23715
23716 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23717
23718 fi
23719
23720 ;;
23721
23722 ia64*-*-*)
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23724 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23725 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23726 $as_echo_n "(cached) " >&6
23727 else
23728 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23729 if test $in_tree_gas = yes; then
23730 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23731 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23732 fi
23733 elif test x$gcc_cv_as != x; then
23734 echo ' .text
23735 addl r15 = @ltoffx(x#), gp
23736 ;;
23737 ld8.mov r16 = [r15], x#' > conftest.s
23738 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23740 (eval $ac_try) 2>&5
23741 ac_status=$?
23742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23743 test $ac_status = 0; }; }
23744 then
23745 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23746 else
23747 echo "configure: failed program was" >&5
23748 cat conftest.s >&5
23749 fi
23750 rm -f conftest.o conftest.s
23751 fi
23752 fi
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23754 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23755 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23756
23757 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23758
23759 fi
23760
23761 ;;
23762
23763 powerpc*-*-*)
23764 case $target in
23765 *-*-aix*) conftest_s=' .machine "pwr5"
23766 .csect .text[PR]
23767 mfcr 3,128';;
23768 *-*-darwin*)
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23770 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23771 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23772 $as_echo_n "(cached) " >&6
23773 else
23774 gcc_cv_as_machine_directive=no
23775 if test x$gcc_cv_as != x; then
23776 echo ' .machine ppc7400' > conftest.s
23777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23779 (eval $ac_try) 2>&5
23780 ac_status=$?
23781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23782 test $ac_status = 0; }; }
23783 then
23784 gcc_cv_as_machine_directive=yes
23785 else
23786 echo "configure: failed program was" >&5
23787 cat conftest.s >&5
23788 fi
23789 rm -f conftest.o conftest.s
23790 fi
23791 fi
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23793 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23794
23795 if test x$gcc_cv_as_machine_directive != xyes; then
23796 echo "*** This target requires an assembler supporting \".machine\"" >&2
23797 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23798 test x$build = x$target && exit 1
23799 fi
23800 conftest_s=' .text
23801 mfcr r3,128';;
23802 *) conftest_s=' .machine power4
23803 .text
23804 mfcr 3,128';;
23805 esac
23806
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23808 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23809 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23810 $as_echo_n "(cached) " >&6
23811 else
23812 gcc_cv_as_powerpc_mfcrf=no
23813 if test $in_tree_gas = yes; then
23814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23815 then gcc_cv_as_powerpc_mfcrf=yes
23816 fi
23817 elif test x$gcc_cv_as != x; then
23818 echo "$conftest_s" > conftest.s
23819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23821 (eval $ac_try) 2>&5
23822 ac_status=$?
23823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23824 test $ac_status = 0; }; }
23825 then
23826 gcc_cv_as_powerpc_mfcrf=yes
23827 else
23828 echo "configure: failed program was" >&5
23829 cat conftest.s >&5
23830 fi
23831 rm -f conftest.o conftest.s
23832 fi
23833 fi
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23835 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23836 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23837
23838 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23839
23840 fi
23841
23842 case $target in
23843 *-*-aix*) conftest_s=' .machine "pwr5"
23844 .csect .text[PR]
23845 popcntb 3,3';;
23846 *) conftest_s=' .machine power5
23847 .text
23848 popcntb 3,3';;
23849 esac
23850
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23852 $as_echo_n "checking assembler for popcntb support... " >&6; }
23853 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23854 $as_echo_n "(cached) " >&6
23855 else
23856 gcc_cv_as_powerpc_popcntb=no
23857 if test $in_tree_gas = yes; then
23858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23859 then gcc_cv_as_powerpc_popcntb=yes
23860 fi
23861 elif test x$gcc_cv_as != x; then
23862 echo "$conftest_s" > conftest.s
23863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23866 ac_status=$?
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }
23869 then
23870 gcc_cv_as_powerpc_popcntb=yes
23871 else
23872 echo "configure: failed program was" >&5
23873 cat conftest.s >&5
23874 fi
23875 rm -f conftest.o conftest.s
23876 fi
23877 fi
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23879 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23880 if test $gcc_cv_as_powerpc_popcntb = yes; then
23881
23882 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23883
23884 fi
23885
23886 case $target in
23887 *-*-aix*) conftest_s=' .machine "pwr5x"
23888 .csect .text[PR]
23889 frin 1,1';;
23890 *) conftest_s=' .machine power5
23891 .text
23892 frin 1,1';;
23893 esac
23894
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23896 $as_echo_n "checking assembler for fp round support... " >&6; }
23897 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23898 $as_echo_n "(cached) " >&6
23899 else
23900 gcc_cv_as_powerpc_fprnd=no
23901 if test $in_tree_gas = yes; then
23902 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23903 then gcc_cv_as_powerpc_fprnd=yes
23904 fi
23905 elif test x$gcc_cv_as != x; then
23906 echo "$conftest_s" > conftest.s
23907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_powerpc_fprnd=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_powerpc_fprnd" >&5
23923 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23924 if test $gcc_cv_as_powerpc_fprnd = yes; then
23925
23926 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23927
23928 fi
23929
23930 case $target in
23931 *-*-aix*) conftest_s=' .machine "pwr6"
23932 .csect .text[PR]
23933 mffgpr 1,3';;
23934 *) conftest_s=' .machine power6
23935 .text
23936 mffgpr 1,3';;
23937 esac
23938
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23940 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23941 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23942 $as_echo_n "(cached) " >&6
23943 else
23944 gcc_cv_as_powerpc_mfpgpr=no
23945 if test $in_tree_gas = yes; then
23946 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23947 then gcc_cv_as_powerpc_mfpgpr=yes
23948 fi
23949 elif test x$gcc_cv_as != x; then
23950 echo "$conftest_s" > conftest.s
23951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23953 (eval $ac_try) 2>&5
23954 ac_status=$?
23955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23956 test $ac_status = 0; }; }
23957 then
23958 gcc_cv_as_powerpc_mfpgpr=yes
23959 else
23960 echo "configure: failed program was" >&5
23961 cat conftest.s >&5
23962 fi
23963 rm -f conftest.o conftest.s
23964 fi
23965 fi
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23967 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23968 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23969
23970 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23971
23972 fi
23973
23974 case $target in
23975 *-*-aix*) conftest_s=' .csect .text[PR]
23976 LCF..0:
23977 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23978 *-*-darwin*)
23979 conftest_s=' .text
23980 LCF0:
23981 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23982 *) conftest_s=' .text
23983 .LCF0:
23984 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23985 esac
23986
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23988 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23989 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23990 $as_echo_n "(cached) " >&6
23991 else
23992 gcc_cv_as_powerpc_rel16=no
23993 if test $in_tree_gas = yes; then
23994 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23995 then gcc_cv_as_powerpc_rel16=yes
23996 fi
23997 elif test x$gcc_cv_as != x; then
23998 echo "$conftest_s" > conftest.s
23999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24001 (eval $ac_try) 2>&5
24002 ac_status=$?
24003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24004 test $ac_status = 0; }; }
24005 then
24006 gcc_cv_as_powerpc_rel16=yes
24007 else
24008 echo "configure: failed program was" >&5
24009 cat conftest.s >&5
24010 fi
24011 rm -f conftest.o conftest.s
24012 fi
24013 fi
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24015 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24016 if test $gcc_cv_as_powerpc_rel16 = yes; then
24017
24018 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24019
24020 fi
24021
24022 case $target in
24023 *-*-aix*) conftest_s=' .machine "pwr6"
24024 .csect .text[PR]
24025 cmpb 3,4,5';;
24026 *) conftest_s=' .machine power6
24027 .text
24028 cmpb 3,4,5';;
24029 esac
24030
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24032 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24033 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24034 $as_echo_n "(cached) " >&6
24035 else
24036 gcc_cv_as_powerpc_cmpb=no
24037 if test $in_tree_gas = yes; then
24038 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24039 then gcc_cv_as_powerpc_cmpb=yes
24040 fi
24041 elif test x$gcc_cv_as != x; then
24042 echo "$conftest_s" > conftest.s
24043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24045 (eval $ac_try) 2>&5
24046 ac_status=$?
24047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24048 test $ac_status = 0; }; }
24049 then
24050 gcc_cv_as_powerpc_cmpb=yes
24051 else
24052 echo "configure: failed program was" >&5
24053 cat conftest.s >&5
24054 fi
24055 rm -f conftest.o conftest.s
24056 fi
24057 fi
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24059 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24060 if test $gcc_cv_as_powerpc_cmpb = yes; then
24061
24062 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24063
24064 fi
24065
24066 case $target in
24067 *-*-aix*) conftest_s=' .machine "pwr6"
24068 .csect .text[PR]
24069 dadd 1,2,3';;
24070 *) conftest_s=' .machine power6
24071 .text
24072 dadd 1,2,3';;
24073 esac
24074
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24076 $as_echo_n "checking assembler for decimal float support... " >&6; }
24077 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24078 $as_echo_n "(cached) " >&6
24079 else
24080 gcc_cv_as_powerpc_dfp=no
24081 if test $in_tree_gas = yes; then
24082 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24083 then gcc_cv_as_powerpc_dfp=yes
24084 fi
24085 elif test x$gcc_cv_as != x; then
24086 echo "$conftest_s" > conftest.s
24087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24089 (eval $ac_try) 2>&5
24090 ac_status=$?
24091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092 test $ac_status = 0; }; }
24093 then
24094 gcc_cv_as_powerpc_dfp=yes
24095 else
24096 echo "configure: failed program was" >&5
24097 cat conftest.s >&5
24098 fi
24099 rm -f conftest.o conftest.s
24100 fi
24101 fi
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24103 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24104 if test $gcc_cv_as_powerpc_dfp = yes; then
24105
24106 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24107
24108 fi
24109
24110 case $target in
24111 *-*-aix*) conftest_s=' .machine "pwr7"
24112 .csect .text[PR]
24113 lxvd2x 1,2,3';;
24114 *) conftest_s=' .machine power7
24115 .text
24116 lxvd2x 1,2,3';;
24117 esac
24118
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24120 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24121 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24122 $as_echo_n "(cached) " >&6
24123 else
24124 gcc_cv_as_powerpc_vsx=no
24125 if test $in_tree_gas = yes; then
24126 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24127 then gcc_cv_as_powerpc_vsx=yes
24128 fi
24129 elif test x$gcc_cv_as != x; then
24130 echo "$conftest_s" > conftest.s
24131 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24133 (eval $ac_try) 2>&5
24134 ac_status=$?
24135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24136 test $ac_status = 0; }; }
24137 then
24138 gcc_cv_as_powerpc_vsx=yes
24139 else
24140 echo "configure: failed program was" >&5
24141 cat conftest.s >&5
24142 fi
24143 rm -f conftest.o conftest.s
24144 fi
24145 fi
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24147 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24148 if test $gcc_cv_as_powerpc_vsx = yes; then
24149
24150 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24151
24152 fi
24153
24154 case $target in
24155 *-*-aix*) conftest_s=' .machine "pwr7"
24156 .csect .text[PR]
24157 popcntd 3,3';;
24158 *) conftest_s=' .machine power7
24159 .text
24160 popcntd 3,3';;
24161 esac
24162
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24164 $as_echo_n "checking assembler for popcntd support... " >&6; }
24165 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24166 $as_echo_n "(cached) " >&6
24167 else
24168 gcc_cv_as_powerpc_popcntd=no
24169 if test $in_tree_gas = yes; then
24170 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24171 then gcc_cv_as_powerpc_popcntd=yes
24172 fi
24173 elif test x$gcc_cv_as != x; then
24174 echo "$conftest_s" > conftest.s
24175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24177 (eval $ac_try) 2>&5
24178 ac_status=$?
24179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24180 test $ac_status = 0; }; }
24181 then
24182 gcc_cv_as_powerpc_popcntd=yes
24183 else
24184 echo "configure: failed program was" >&5
24185 cat conftest.s >&5
24186 fi
24187 rm -f conftest.o conftest.s
24188 fi
24189 fi
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24191 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24192 if test $gcc_cv_as_powerpc_popcntd = yes; then
24193
24194 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24195
24196 fi
24197
24198 case $target in
24199 *-*-aix*) conftest_s=' .csect .text[PR]
24200 lwsync';;
24201 *) conftest_s=' .text
24202 lwsync';;
24203 esac
24204
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24206 $as_echo_n "checking assembler for lwsync support... " >&6; }
24207 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24208 $as_echo_n "(cached) " >&6
24209 else
24210 gcc_cv_as_powerpc_lwsync=no
24211 if test $in_tree_gas = yes; then
24212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24213 then gcc_cv_as_powerpc_lwsync=yes
24214 fi
24215 elif test x$gcc_cv_as != x; then
24216 echo "$conftest_s" > conftest.s
24217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24219 (eval $ac_try) 2>&5
24220 ac_status=$?
24221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24222 test $ac_status = 0; }; }
24223 then
24224 gcc_cv_as_powerpc_lwsync=yes
24225 else
24226 echo "configure: failed program was" >&5
24227 cat conftest.s >&5
24228 fi
24229 rm -f conftest.o conftest.s
24230 fi
24231 fi
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24233 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24234 if test $gcc_cv_as_powerpc_lwsync = yes; then
24235
24236 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24237
24238 fi
24239
24240 case $target in
24241 *-*-aix*) conftest_s=' .machine "476"
24242 .csect .text[PR]
24243 dci 0';;
24244 *) conftest_s=' .machine "476"
24245 .text
24246 dci 0';;
24247 esac
24248
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24250 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24251 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24252 $as_echo_n "(cached) " >&6
24253 else
24254 gcc_cv_as_powerpc_dci=no
24255 if test $in_tree_gas = yes; then
24256 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24257 then gcc_cv_as_powerpc_dci=yes
24258 fi
24259 elif test x$gcc_cv_as != x; then
24260 echo "$conftest_s" > conftest.s
24261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24263 (eval $ac_try) 2>&5
24264 ac_status=$?
24265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24266 test $ac_status = 0; }; }
24267 then
24268 gcc_cv_as_powerpc_dci=yes
24269 else
24270 echo "configure: failed program was" >&5
24271 cat conftest.s >&5
24272 fi
24273 rm -f conftest.o conftest.s
24274 fi
24275 fi
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24277 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24278 if test $gcc_cv_as_powerpc_dci = yes; then
24279
24280 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24281
24282 fi
24283
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24285 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24286 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24287 $as_echo_n "(cached) " >&6
24288 else
24289 gcc_cv_as_powerpc_gnu_attribute=no
24290 if test $in_tree_gas = yes; then
24291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24292 then gcc_cv_as_powerpc_gnu_attribute=yes
24293 fi
24294 elif test x$gcc_cv_as != x; then
24295 echo '.gnu_attribute 4,1' > conftest.s
24296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24298 (eval $ac_try) 2>&5
24299 ac_status=$?
24300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24301 test $ac_status = 0; }; }
24302 then
24303 gcc_cv_as_powerpc_gnu_attribute=yes
24304 else
24305 echo "configure: failed program was" >&5
24306 cat conftest.s >&5
24307 fi
24308 rm -f conftest.o conftest.s
24309 fi
24310 fi
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24312 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24313 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24314
24315 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24316
24317 fi
24318
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24320 $as_echo_n "checking assembler for tls marker support... " >&6; }
24321 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24322 $as_echo_n "(cached) " >&6
24323 else
24324 gcc_cv_as_powerpc_tls_markers=no
24325 if test $in_tree_gas = yes; then
24326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24327 then gcc_cv_as_powerpc_tls_markers=yes
24328 fi
24329 elif test x$gcc_cv_as != x; then
24330 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24333 (eval $ac_try) 2>&5
24334 ac_status=$?
24335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24336 test $ac_status = 0; }; }
24337 then
24338 gcc_cv_as_powerpc_tls_markers=yes
24339 else
24340 echo "configure: failed program was" >&5
24341 cat conftest.s >&5
24342 fi
24343 rm -f conftest.o conftest.s
24344 fi
24345 fi
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24347 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24348 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24349
24350 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24351
24352 fi
24353
24354 case $target in
24355 *-*-aix*)
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24357 $as_echo_n "checking assembler for .ref support... " >&6; }
24358 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24359 $as_echo_n "(cached) " >&6
24360 else
24361 gcc_cv_as_aix_ref=no
24362 if test $in_tree_gas = yes; then
24363 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24364 then :
24365 fi
24366 elif test x$gcc_cv_as != x; then
24367 echo ' .csect stuff[rw]
24368 stuff:
24369 .long 1
24370 .extern sym
24371 .ref sym
24372 ' > conftest.s
24373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24375 (eval $ac_try) 2>&5
24376 ac_status=$?
24377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24378 test $ac_status = 0; }; }
24379 then
24380 gcc_cv_as_aix_ref=yes
24381 else
24382 echo "configure: failed program was" >&5
24383 cat conftest.s >&5
24384 fi
24385 rm -f conftest.o conftest.s
24386 fi
24387 fi
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24389 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24390 if test $gcc_cv_as_aix_ref = yes; then
24391
24392 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24393
24394 fi
24395 ;;
24396 esac
24397 ;;
24398
24399 mips*-*-*)
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24401 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24402 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24403 $as_echo_n "(cached) " >&6
24404 else
24405 gcc_cv_as_mips_explicit_relocs=no
24406 if test $in_tree_gas = yes; then
24407 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24408 then gcc_cv_as_mips_explicit_relocs=yes
24409 fi
24410 elif test x$gcc_cv_as != x; then
24411 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24414 (eval $ac_try) 2>&5
24415 ac_status=$?
24416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24417 test $ac_status = 0; }; }
24418 then
24419 gcc_cv_as_mips_explicit_relocs=yes
24420 else
24421 echo "configure: failed program was" >&5
24422 cat conftest.s >&5
24423 fi
24424 rm -f conftest.o conftest.s
24425 fi
24426 fi
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24428 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24429 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24430 if test x$target_cpu_default = x
24431 then target_cpu_default=MASK_EXPLICIT_RELOCS
24432 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24433 fi
24434 fi
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24436 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24437 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24438 $as_echo_n "(cached) " >&6
24439 else
24440 gcc_cv_as_mips_no_shared=no
24441 if test $in_tree_gas = yes; then
24442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24443 then gcc_cv_as_mips_no_shared=yes
24444 fi
24445 elif test x$gcc_cv_as != x; then
24446 echo 'nop' > conftest.s
24447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24449 (eval $ac_try) 2>&5
24450 ac_status=$?
24451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24452 test $ac_status = 0; }; }
24453 then
24454 gcc_cv_as_mips_no_shared=yes
24455 else
24456 echo "configure: failed program was" >&5
24457 cat conftest.s >&5
24458 fi
24459 rm -f conftest.o conftest.s
24460 fi
24461 fi
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24463 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24464 if test $gcc_cv_as_mips_no_shared = yes; then
24465
24466 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24467
24468 fi
24469
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24471 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24472 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24473 $as_echo_n "(cached) " >&6
24474 else
24475 gcc_cv_as_mips_gnu_attribute=no
24476 if test $in_tree_gas = yes; then
24477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24478 then gcc_cv_as_mips_gnu_attribute=yes
24479 fi
24480 elif test x$gcc_cv_as != x; then
24481 echo '.gnu_attribute 4,1' > conftest.s
24482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24484 (eval $ac_try) 2>&5
24485 ac_status=$?
24486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24487 test $ac_status = 0; }; }
24488 then
24489 gcc_cv_as_mips_gnu_attribute=yes
24490 else
24491 echo "configure: failed program was" >&5
24492 cat conftest.s >&5
24493 fi
24494 rm -f conftest.o conftest.s
24495 fi
24496 fi
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24498 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24499 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24500
24501 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24502
24503 fi
24504
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24506 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24507 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24508 $as_echo_n "(cached) " >&6
24509 else
24510 gcc_cv_as_mips_dtprelword=no
24511 if test $in_tree_gas = yes; then
24512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24513 then gcc_cv_as_mips_dtprelword=yes
24514 fi
24515 elif test x$gcc_cv_as != x; then
24516 echo '.section .tdata,"awT",@progbits
24517 x:
24518 .word 2
24519 .text
24520 .dtprelword x+0x8000' > conftest.s
24521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24523 (eval $ac_try) 2>&5
24524 ac_status=$?
24525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24526 test $ac_status = 0; }; }
24527 then
24528 gcc_cv_as_mips_dtprelword=yes
24529 else
24530 echo "configure: failed program was" >&5
24531 cat conftest.s >&5
24532 fi
24533 rm -f conftest.o conftest.s
24534 fi
24535 fi
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24537 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24538 if test $gcc_cv_as_mips_dtprelword = yes; then
24539
24540 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24541
24542 fi
24543
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24545 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24546 gcc_cv_as_ld_jalr_reloc=no
24547 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24548 if test $in_tree_ld = yes ; then
24549 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 \
24550 && test $in_tree_ld_is_elf = yes; then
24551 gcc_cv_as_ld_jalr_reloc=yes
24552 fi
24553 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24554 echo ' .ent x' > conftest.s
24555 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24556 echo ' ld $25,%call16(y)($28)' >> conftest.s
24557 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24558 echo '1: jalr $25' >> conftest.s
24559 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24560 echo '1: jalr $25' >> conftest.s
24561 echo ' .end x' >> conftest.s
24562 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24563 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24564 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24565 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24566 gcc_cv_as_ld_jalr_reloc=yes
24567 fi
24568 fi
24569 rm -f conftest.*
24570 fi
24571 fi
24572 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24573 if test x$target_cpu_default = x; then
24574 target_cpu_default=MASK_RELAX_PIC_CALLS
24575 else
24576 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24577 fi
24578 fi
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24580 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24581
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24583 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24584 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24585 $as_echo_n "(cached) " >&6
24586 else
24587 gcc_cv_ld_mips_personality_relaxation=no
24588 if test $in_tree_ld = yes ; then
24589 if test "$gcc_cv_gld_major_version" -eq 2 \
24590 -a "$gcc_cv_gld_minor_version" -ge 21 \
24591 -o "$gcc_cv_gld_major_version" -gt 2; then
24592 gcc_cv_ld_mips_personality_relaxation=yes
24593 fi
24594 elif test x$gcc_cv_as != x \
24595 -a x$gcc_cv_ld != x \
24596 -a x$gcc_cv_readelf != x ; then
24597 cat > conftest.s <<EOF
24598 .cfi_startproc
24599 .cfi_personality 0x80,indirect_ptr
24600 .ent test
24601 test:
24602 nop
24603 .end test
24604 .cfi_endproc
24605
24606 .section .data,"aw",@progbits
24607 indirect_ptr:
24608 .dc.a personality
24609 EOF
24610 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24611 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24612 if $gcc_cv_readelf -d conftest 2>&1 \
24613 | grep TEXTREL > /dev/null 2>&1; then
24614 :
24615 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24616 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24617 :
24618 else
24619 gcc_cv_ld_mips_personality_relaxation=yes
24620 fi
24621 fi
24622 fi
24623 rm -f conftest.s conftest.o conftest
24624 fi
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24626 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24627 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24628
24629 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24630
24631 fi
24632 ;;
24633 esac
24634
24635 # Mips and HP-UX need the GNU assembler.
24636 # Linux on IA64 might be able to use the Intel assembler.
24637
24638 case "$target" in
24639 mips*-*-* | *-*-hpux* )
24640 if test x$gas_flag = xyes \
24641 || test x"$host" != x"$build" \
24642 || test ! -x "$gcc_cv_as" \
24643 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24644 :
24645 else
24646 echo "*** This configuration requires the GNU assembler" >&2
24647 exit 1
24648 fi
24649 ;;
24650 esac
24651
24652 # ??? Not all targets support dwarf2 debug_line, even within a version
24653 # of gas. Moreover, we need to emit a valid instruction to trigger any
24654 # info to the output file. So, as supported targets are added to gas 2.11,
24655 # add some instruction here to (also) show we expect this might work.
24656 # ??? Once 2.11 is released, probably need to add first known working
24657 # version to the per-target configury.
24658 case "$cpu_type" in
24659 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
24660 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
24661 insn="nop"
24662 ;;
24663 ia64 | s390)
24664 insn="nop 0"
24665 ;;
24666 mmix)
24667 insn="swym 0"
24668 ;;
24669 esac
24670 if test x"$insn" != x; then
24671 conftest_s="\
24672 .file 1 \"conftest.s\"
24673 .loc 1 3 0
24674 $insn"
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24676 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24677 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24678 $as_echo_n "(cached) " >&6
24679 else
24680 gcc_cv_as_dwarf2_debug_line=no
24681 if test $in_tree_gas = yes; then
24682 if test $in_tree_gas_is_elf = yes \
24683 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24684 then gcc_cv_as_dwarf2_debug_line=yes
24685 fi
24686 elif test x$gcc_cv_as != x; then
24687 echo "$conftest_s" > conftest.s
24688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24690 (eval $ac_try) 2>&5
24691 ac_status=$?
24692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24693 test $ac_status = 0; }; }
24694 then
24695 if test x$gcc_cv_objdump != x \
24696 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24697 | grep debug_line > /dev/null 2>&1; then
24698 gcc_cv_as_dwarf2_debug_line=yes
24699 fi
24700 else
24701 echo "configure: failed program was" >&5
24702 cat conftest.s >&5
24703 fi
24704 rm -f conftest.o conftest.s
24705 fi
24706 fi
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24708 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24709
24710
24711 # The .debug_line file table must be in the exact order that
24712 # we specified the files, since these indices are also used
24713 # by DW_AT_decl_file. Approximate this test by testing if
24714 # the assembler bitches if the same index is assigned twice.
24715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24716 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24717 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24718 $as_echo_n "(cached) " >&6
24719 else
24720 gcc_cv_as_dwarf2_file_buggy=no
24721 if test x$gcc_cv_as != x; then
24722 echo ' .file 1 "foo.s"
24723 .file 1 "bar.s"' > conftest.s
24724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24726 (eval $ac_try) 2>&5
24727 ac_status=$?
24728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24729 test $ac_status = 0; }; }
24730 then
24731 gcc_cv_as_dwarf2_file_buggy=yes
24732 else
24733 echo "configure: failed program was" >&5
24734 cat conftest.s >&5
24735 fi
24736 rm -f conftest.o conftest.s
24737 fi
24738 fi
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24740 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24741
24742
24743 if test $gcc_cv_as_dwarf2_debug_line = yes \
24744 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24745
24746 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24747
24748 fi
24749
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24751 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24752 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24753 $as_echo_n "(cached) " >&6
24754 else
24755 gcc_cv_as_gdwarf2_flag=no
24756 if test $in_tree_gas = yes; then
24757 if test $in_tree_gas_is_elf = yes \
24758 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24759 then gcc_cv_as_gdwarf2_flag=yes
24760 fi
24761 elif test x$gcc_cv_as != x; then
24762 echo "$insn" > conftest.s
24763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24765 (eval $ac_try) 2>&5
24766 ac_status=$?
24767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24768 test $ac_status = 0; }; }
24769 then
24770 gcc_cv_as_gdwarf2_flag=yes
24771 else
24772 echo "configure: failed program was" >&5
24773 cat conftest.s >&5
24774 fi
24775 rm -f conftest.o conftest.s
24776 fi
24777 fi
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24779 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24780 if test $gcc_cv_as_gdwarf2_flag = yes; then
24781
24782 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24783
24784 fi
24785
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24787 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24788 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24789 $as_echo_n "(cached) " >&6
24790 else
24791 gcc_cv_as_gstabs_flag=no
24792 if test $in_tree_gas = yes; then
24793 if test $in_tree_gas_is_elf = yes \
24794 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24795 then gcc_cv_as_gstabs_flag=yes
24796 fi
24797 elif test x$gcc_cv_as != x; then
24798 echo "$insn" > conftest.s
24799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24801 (eval $ac_try) 2>&5
24802 ac_status=$?
24803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24804 test $ac_status = 0; }; }
24805 then
24806 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24807 # and warns about it, but still exits successfully. So check for
24808 # this.
24809 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24811 (eval $ac_try) 2>&5
24812 ac_status=$?
24813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24814 test $ac_status = 0; }; }
24815 then :
24816 else gcc_cv_as_gstabs_flag=yes
24817 fi
24818 else
24819 echo "configure: failed program was" >&5
24820 cat conftest.s >&5
24821 fi
24822 rm -f conftest.o conftest.s
24823 fi
24824 fi
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24826 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24827 if test $gcc_cv_as_gstabs_flag = yes; then
24828
24829 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24830
24831 fi
24832
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24834 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24835 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24836 $as_echo_n "(cached) " >&6
24837 else
24838 gcc_cv_as_debug_prefix_map_flag=no
24839 if test $in_tree_gas = yes; then
24840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24841 then gcc_cv_as_debug_prefix_map_flag=yes
24842 fi
24843 elif test x$gcc_cv_as != x; then
24844 echo "$insn" > conftest.s
24845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24850 test $ac_status = 0; }; }
24851 then
24852 gcc_cv_as_debug_prefix_map_flag=yes
24853 else
24854 echo "configure: failed program was" >&5
24855 cat conftest.s >&5
24856 fi
24857 rm -f conftest.o conftest.s
24858 fi
24859 fi
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24861 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24862 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24863
24864 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24865
24866 fi
24867 fi
24868
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24870 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24871 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24872 $as_echo_n "(cached) " >&6
24873 else
24874 gcc_cv_as_lcomm_with_alignment=no
24875 if test x$gcc_cv_as != x; then
24876 echo '.lcomm bar,4,16' > conftest.s
24877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24879 (eval $ac_try) 2>&5
24880 ac_status=$?
24881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24882 test $ac_status = 0; }; }
24883 then
24884 gcc_cv_as_lcomm_with_alignment=yes
24885 else
24886 echo "configure: failed program was" >&5
24887 cat conftest.s >&5
24888 fi
24889 rm -f conftest.o conftest.s
24890 fi
24891 fi
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24893 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24894 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24895
24896 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24897
24898 fi
24899
24900 # Check whether --enable-gnu-unique-object was given.
24901 if test "${enable_gnu_unique_object+set}" = set; then :
24902 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24903 yes | no) ;;
24904 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24905 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24906 esac
24907 else
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24909 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24910 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24911 $as_echo_n "(cached) " >&6
24912 else
24913 gcc_cv_as_gnu_unique_object=no
24914 if test $in_tree_gas = yes; then
24915 if test $in_tree_gas_is_elf = yes \
24916 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24917 then gcc_cv_as_gnu_unique_object=yes
24918 fi
24919 elif test x$gcc_cv_as != x; then
24920 echo '.type foo, @gnu_unique_object' > conftest.s
24921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24923 (eval $ac_try) 2>&5
24924 ac_status=$?
24925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24926 test $ac_status = 0; }; }
24927 then
24928 gcc_cv_as_gnu_unique_object=yes
24929 else
24930 echo "configure: failed program was" >&5
24931 cat conftest.s >&5
24932 fi
24933 rm -f conftest.o conftest.s
24934 fi
24935 fi
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24937 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24938 if test $gcc_cv_as_gnu_unique_object = yes; then
24939 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24940 if test x$host = x$build -a x$host = x$target &&
24941 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24942 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24943 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24944 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24945 if test "$glibcnum" -ge 2011 ; then
24946 enable_gnu_unique_object=yes
24947 fi
24948 fi
24949 fi
24950 fi
24951
24952 if test x$enable_gnu_unique_object = xyes; then
24953
24954 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24955
24956 fi
24957
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24959 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24960 if test "${gcc_cv_as_line_zero+set}" = set; then :
24961 $as_echo_n "(cached) " >&6
24962 else
24963 gcc_cv_as_line_zero=no
24964 if test $in_tree_gas = yes; then
24965 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24966 then gcc_cv_as_line_zero=yes
24967 fi
24968 elif test "x$gcc_cv_as" != x; then
24969 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24970 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24972 (eval $ac_try) 2>&5
24973 ac_status=$?
24974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24975 test $ac_status = 0; }; } &&
24976 test "x`cat conftest.out`" = x
24977 then
24978 gcc_cv_as_line_zero=yes
24979 else
24980 echo "configure: failed program was" >&5
24981 cat conftest.s >&5
24982 echo "configure: error output was" >&5
24983 cat conftest.out >&5
24984 fi
24985 rm -f conftest.o conftest.s conftest.out
24986 fi
24987 fi
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24989 $as_echo "$gcc_cv_as_line_zero" >&6; }
24990 if test "x$gcc_cv_as_line_zero" = xyes; then
24991
24992 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24993
24994 fi
24995
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24997 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24998 gcc_cv_ld_eh_frame_hdr=no
24999 if test $in_tree_ld = yes ; then
25000 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 \
25001 && test $in_tree_ld_is_elf = yes; then
25002 gcc_cv_ld_eh_frame_hdr=yes
25003 fi
25004 elif test x$gcc_cv_ld != x; then
25005 # Check if linker supports --eh-frame-hdr option
25006 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25007 gcc_cv_ld_eh_frame_hdr=yes
25008 fi
25009 fi
25010
25011 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25012
25013 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25014
25015 fi
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25017 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25018
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25020 $as_echo_n "checking linker position independent executable support... " >&6; }
25021 gcc_cv_ld_pie=no
25022 if test $in_tree_ld = yes ; then
25023 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
25024 && test $in_tree_ld_is_elf = yes; then
25025 gcc_cv_ld_pie=yes
25026 fi
25027 elif test x$gcc_cv_ld != x; then
25028 # Check if linker supports -pie option
25029 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25030 gcc_cv_ld_pie=yes
25031 fi
25032 fi
25033 if test x"$gcc_cv_ld_pie" = xyes; then
25034
25035 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25036
25037 fi
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25039 $as_echo "$gcc_cv_ld_pie" >&6; }
25040
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25042 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25043 gcc_cv_ld_eh_gc_sections=no
25044 if test $in_tree_ld = yes ; then
25045 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 \
25046 && test $in_tree_ld_is_elf = yes; then
25047 gcc_cv_ld_eh_gc_sections=yes
25048 fi
25049 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25050 cat > conftest.s <<EOF
25051 .section .text
25052 .globl _start
25053 .type _start, @function
25054 _start:
25055 .long foo
25056 .size _start, .-_start
25057 .section .text.foo,"ax",@progbits
25058 .type foo, @function
25059 foo:
25060 .long 0
25061 .size foo, .-foo
25062 .section .gcc_except_table.foo,"a",@progbits
25063 .L0:
25064 .long 0
25065 .section .eh_frame,"a",@progbits
25066 .long .L0
25067 EOF
25068 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25069 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25070 | grep "gc-sections option ignored" > /dev/null; then
25071 gcc_cv_ld_eh_gc_sections=no
25072 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25073 | grep gcc_except_table > /dev/null; then
25074 gcc_cv_ld_eh_gc_sections=yes
25075 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25076 if test x$gcc_cv_as_comdat_group != xyes; then
25077 gcc_cv_ld_eh_gc_sections=no
25078 cat > conftest.s <<EOF
25079 .section .text
25080 .globl _start
25081 .type _start, @function
25082 _start:
25083 .long foo
25084 .size _start, .-_start
25085 .section .gnu.linkonce.t.foo,"ax",@progbits
25086 .type foo, @function
25087 foo:
25088 .long 0
25089 .size foo, .-foo
25090 .section .gcc_except_table.foo,"a",@progbits
25091 .L0:
25092 .long 0
25093 .section .eh_frame,"a",@progbits
25094 .long .L0
25095 EOF
25096 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25097 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25098 | grep "gc-sections option ignored" > /dev/null; then
25099 gcc_cv_ld_eh_gc_sections=no
25100 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25101 | grep gcc_except_table > /dev/null; then
25102 gcc_cv_ld_eh_gc_sections=yes
25103 fi
25104 fi
25105 fi
25106 fi
25107 fi
25108 rm -f conftest.s conftest.o conftest
25109 fi
25110 case "$target" in
25111 hppa*-*-linux*)
25112 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25113 gcc_cv_ld_eh_gc_sections=no
25114 ;;
25115 esac
25116 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25117
25118 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25119
25120 fi
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25122 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25123
25124 # --------
25125 # UNSORTED
25126 # --------
25127
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25129 $as_echo_n "checking linker --as-needed support... " >&6; }
25130 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25131 $as_echo_n "(cached) " >&6
25132 else
25133 gcc_cv_ld_as_needed=no
25134 if test $in_tree_ld = yes ; then
25135 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 \
25136 && test $in_tree_ld_is_elf = yes; then
25137 gcc_cv_ld_as_needed=yes
25138 fi
25139 elif test x$gcc_cv_ld != x; then
25140 # Check if linker supports --as-needed and --no-as-needed options
25141 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25142 gcc_cv_ld_as_needed=yes
25143 fi
25144 fi
25145
25146 fi
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25148 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25149 if test x"$gcc_cv_ld_as_needed" = xyes; then
25150
25151 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25152
25153 fi
25154
25155 case "$target:$tm_file" in
25156 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25158 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25159 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25160 $as_echo_n "(cached) " >&6
25161 else
25162 gcc_cv_ld_no_dot_syms=no
25163 if test $in_tree_ld = yes ; then
25164 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
25165 gcc_cv_ld_no_dot_syms=yes
25166 fi
25167 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25168 cat > conftest1.s <<EOF
25169 .text
25170 bl .foo
25171 EOF
25172 cat > conftest2.s <<EOF
25173 .section ".opd","aw"
25174 .align 3
25175 .globl foo
25176 .type foo,@function
25177 foo:
25178 .quad .LEfoo,.TOC.@tocbase,0
25179 .text
25180 .LEfoo:
25181 blr
25182 .size foo,.-.LEfoo
25183 EOF
25184 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25185 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25186 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25187 gcc_cv_ld_no_dot_syms=yes
25188 fi
25189 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25190 fi
25191
25192 fi
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25194 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25195 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25196
25197 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25198
25199 fi
25200
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25202 $as_echo_n "checking linker large toc support... " >&6; }
25203 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25204 $as_echo_n "(cached) " >&6
25205 else
25206 gcc_cv_ld_large_toc=no
25207 if test $in_tree_ld = yes ; then
25208 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
25209 gcc_cv_ld_large_toc=yes
25210 fi
25211 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25212 cat > conftest.s <<EOF
25213 .section ".tbss","awT",@nobits
25214 .align 3
25215 ie0: .space 8
25216 .global _start
25217 .text
25218 _start:
25219 addis 9,13,ie0@got@tprel@ha
25220 ld 9,ie0@got@tprel@l(9)
25221 EOF
25222 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25223 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25224 gcc_cv_ld_large_toc=yes
25225 fi
25226 rm -f conftest conftest.o conftest.s
25227 fi
25228
25229 fi
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25231 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25232 if test x"$gcc_cv_ld_large_toc" = xyes; then
25233
25234 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25235
25236 fi
25237 ;;
25238 esac
25239
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25241 $as_echo_n "checking linker --build-id support... " >&6; }
25242 if test "${gcc_cv_ld_buildid+set}" = set; then :
25243 $as_echo_n "(cached) " >&6
25244 else
25245 gcc_cv_ld_buildid=no
25246 if test $in_tree_ld = yes ; then
25247 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25248 "$gcc_cv_gld_minor_version" -ge 18 -o \
25249 "$gcc_cv_gld_major_version" -gt 2 \
25250 && test $in_tree_ld_is_elf = yes; then
25251 gcc_cv_ld_buildid=yes
25252 fi
25253 elif test x$gcc_cv_ld != x; then
25254 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25255 gcc_cv_ld_buildid=yes
25256 fi
25257 fi
25258 fi
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25260 $as_echo "$gcc_cv_ld_buildid" >&6; }
25261 if test x"$gcc_cv_ld_buildid" = xyes; then
25262
25263 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25264
25265 fi
25266
25267 # Check whether --enable-linker-build-id was given.
25268 if test "${enable_linker_build_id+set}" = set; then :
25269 enableval=$enable_linker_build_id;
25270 else
25271 enable_linker_build_id=no
25272 fi
25273
25274
25275 if test x"$enable_linker_build_id" = xyes; then
25276 if test x"$gcc_cv_ld_buildid" = xyes; then
25277
25278 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25279
25280 else
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25282 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25283 fi
25284 fi
25285
25286 # In binutils 2.21, GNU ld gained support for new emulations fully
25287 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25289 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25290 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25291 $as_echo_n "(cached) " >&6
25292 else
25293 gcc_cv_ld_sol2_emulation=no
25294 if test $in_tree_ld = yes ; then
25295 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25296 "$gcc_cv_gld_minor_version" -ge 21 -o \
25297 "$gcc_cv_gld_major_version" -gt 2 \
25298 && test $in_tree_ld_is_elf = yes; then
25299 gcc_cv_ld_sol2_emulation=yes
25300 fi
25301 elif test x$gcc_cv_ld != x; then
25302 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25303 grep _sol2 > /dev/null; then
25304 gcc_cv_ld_sol2_emulation=yes
25305 fi
25306 fi
25307 fi
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25309 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25310 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25311
25312 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25313
25314 fi
25315
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25317 $as_echo_n "checking linker --sysroot support... " >&6; }
25318 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25319 $as_echo_n "(cached) " >&6
25320 else
25321 gcc_cv_ld_sysroot=no
25322 if test $in_tree_ld = yes ; then
25323 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
25324 gcc_cv_ld_sysroot=yes
25325 fi
25326 elif test x$gcc_cv_ld != x; then
25327 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25328 gcc_cv_ld_sysroot=yes
25329 fi
25330 fi
25331 fi
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25333 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25334 if test x"$gcc_cv_ld_sysroot" = xyes; then
25335
25336 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25337
25338 fi
25339
25340 if test x$with_sysroot = x && test x$host = x$target \
25341 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25342 && test "$prefix" != "NONE"; then
25343
25344 cat >>confdefs.h <<_ACEOF
25345 #define PREFIX_INCLUDE_DIR "$prefix/include"
25346 _ACEOF
25347
25348 fi
25349
25350 # Test for stack protector support in target C library.
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25352 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25353 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25354 $as_echo_n "(cached) " >&6
25355 else
25356 gcc_cv_libc_provides_ssp=no
25357 case "$target" in
25358 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25359 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25360 if test "x$with_headers" != x; then
25361 glibc_header_dir=$with_headers
25362 elif test "x$with_sysroot" = x; then
25363 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25364 elif test "x$with_build_sysroot" != "x"; then
25365 glibc_header_dir="${with_build_sysroot}/usr/include"
25366 elif test "x$with_sysroot" = xyes; then
25367 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25368 else
25369 glibc_header_dir="${with_sysroot}/usr/include"
25370 fi
25371 else
25372 glibc_header_dir=/usr/include
25373 fi
25374 # glibc 2.4 and later provides __stack_chk_fail and
25375 # either __stack_chk_guard, or TLS access to stack guard canary.
25376 if test -f $glibc_header_dir/features.h \
25377 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25378 $glibc_header_dir/features.h > /dev/null; then
25379 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25380 $glibc_header_dir/features.h > /dev/null; then
25381 gcc_cv_libc_provides_ssp=yes
25382 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25383 $glibc_header_dir/features.h > /dev/null \
25384 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25385 $glibc_header_dir/features.h > /dev/null; then
25386 gcc_cv_libc_provides_ssp=yes
25387 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25388 $glibc_header_dir/features.h > /dev/null && \
25389 test -f $glibc_header_dir/bits/uClibc_config.h && \
25390 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25391 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25392 gcc_cv_libc_provides_ssp=yes
25393 fi
25394 fi
25395 ;;
25396 *-*-gnu*)
25397 # Avoid complicated tests (see
25398 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25399 # simply assert that glibc does provide this, which is true for all
25400 # realistically usable GNU/Hurd configurations.
25401 gcc_cv_libc_provides_ssp=yes;;
25402 *-*-darwin* | *-*-freebsd*)
25403 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25404 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25405 gcc_cv_libc_provides_ssp=yes
25406 else
25407 echo "no __stack_chk_fail on this target"
25408 fi
25409
25410 ;;
25411 *) gcc_cv_libc_provides_ssp=no ;;
25412 esac
25413 fi
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25415 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25416
25417 if test x$gcc_cv_libc_provides_ssp = xyes; then
25418
25419 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25420
25421 fi
25422
25423 # Check if TFmode long double should be used by default or not.
25424 # Some glibc targets used DFmode long double, but with glibc 2.4
25425 # and later they can use TFmode.
25426 case "$target" in
25427 powerpc*-*-linux* | \
25428 powerpc*-*-gnu* | \
25429 sparc*-*-linux* | \
25430 s390*-*-linux* | \
25431 alpha*-*-linux*)
25432
25433 # Check whether --with-long-double-128 was given.
25434 if test "${with_long_double_128+set}" = set; then :
25435 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25436 else
25437 gcc_cv_target_ldbl128=no
25438 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25439 if test "x$with_sysroot" = x; then
25440 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25441 elif test "x$with_build_sysroot" != "x"; then
25442 glibc_header_dir="${with_build_sysroot}/usr/include"
25443 elif test "x$with_sysroot" = xyes; then
25444 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25445 else
25446 glibc_header_dir="${with_sysroot}/usr/include"
25447 fi
25448 else
25449 glibc_header_dir=/usr/include
25450 fi
25451 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25452 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25453 && gcc_cv_target_ldbl128=yes
25454
25455 fi
25456
25457 ;;
25458 esac
25459 if test x$gcc_cv_target_ldbl128 = xyes; then
25460
25461 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25462
25463 fi
25464
25465 # Find out what GC implementation we want, or may, use.
25466
25467 # Check whether --with-gc was given.
25468 if test "${with_gc+set}" = set; then :
25469 withval=$with_gc; case "$withval" in
25470 page)
25471 GGC=ggc-$withval
25472 ;;
25473 zone)
25474 GGC=ggc-$withval
25475
25476 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25477
25478 ;;
25479 *)
25480 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25481 ;;
25482 esac
25483 else
25484 GGC=ggc-page
25485 fi
25486
25487
25488 echo "Using $GGC for garbage collection."
25489
25490 # Libraries to use on the host. This will normally be set by the top
25491 # level Makefile. Here we simply capture the value for our Makefile.
25492 if test -z "${HOST_LIBS+set}"; then
25493 HOST_LIBS=
25494 fi
25495
25496
25497 # Use the system's zlib library.
25498 zlibdir=-L../zlib
25499 zlibinc="-I\$(srcdir)/../zlib"
25500
25501 # Check whether --with-system-zlib was given.
25502 if test "${with_system_zlib+set}" = set; then :
25503 withval=$with_system_zlib; zlibdir=
25504 zlibinc=
25505
25506 fi
25507
25508
25509
25510
25511
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25513 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25514 # Check whether --enable-maintainer-mode was given.
25515 if test "${enable_maintainer_mode+set}" = set; then :
25516 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25517 else
25518 maintainer_mode=no
25519 fi
25520
25521
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25523 $as_echo "$maintainer_mode" >&6; }
25524
25525 if test "$maintainer_mode" = "yes"; then
25526 MAINT=''
25527 else
25528 MAINT='#'
25529 fi
25530
25531 # --------------
25532 # Language hooks
25533 # --------------
25534
25535 # Make empty files to contain the specs and options for each language.
25536 # Then add #include lines to for a compiler that has specs and/or options.
25537
25538 subdirs=
25539 lang_opt_files=
25540 lang_specs_files=
25541 lang_tree_files=
25542 # These (without "all_") are set in each config-lang.in.
25543 # `language' must be a single word so is spelled singularly.
25544 all_languages=
25545 all_compilers=
25546 all_outputs='Makefile'
25547 # List of language makefile fragments.
25548 all_lang_makefrags=
25549 # Additional files for gengtype
25550 all_gtfiles="$target_gtfiles"
25551
25552 # These are the languages that are set in --enable-languages,
25553 # and are available in the GCC tree.
25554 all_selected_languages=
25555
25556 # Add the language fragments.
25557 # Languages are added via two mechanisms. Some information must be
25558 # recorded in makefile variables, these are defined in config-lang.in.
25559 # We accumulate them and plug them into the main Makefile.
25560 # The other mechanism is a set of hooks for each of the main targets
25561 # like `clean', `install', etc.
25562
25563 language_hooks="Make-hooks"
25564
25565 for lang in ${srcdir}/*/config-lang.in
25566 do
25567 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25568
25569 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25570 if test "x$lang_alias" = x
25571 then
25572 echo "$lang doesn't set \$language." 1>&2
25573 exit 1
25574 fi
25575 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25576 subdirs="$subdirs $subdir"
25577
25578 # $gcc_subdir is where the gcc integration files are to be found
25579 # for a language, both for internal compiler purposes (compiler
25580 # sources implementing front-end to GCC tree converters), and for
25581 # build infrastructure purposes (Make-lang.in, etc.)
25582 #
25583 # This will be <subdir> (relative to $srcdir) if a line like
25584 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25585 # is found in <langdir>/config-lang.in, and will remain <langdir>
25586 # otherwise.
25587 #
25588 # Except for the language alias (fetched above), the regular
25589 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25590 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25591 # only this and the language alias.
25592
25593 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25594 if [ "$gcc_subdir" = "" ]; then
25595 gcc_subdir="$subdir"
25596 fi
25597
25598 case ",$enable_languages," in
25599 *,$lang_alias,*)
25600 all_selected_languages="$all_selected_languages $lang_alias"
25601 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25602 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25603 fi
25604 ;;
25605 esac
25606
25607 language=
25608 boot_language=
25609 compilers=
25610 outputs=
25611 gtfiles=
25612 subdir_requires=
25613 . ${srcdir}/$gcc_subdir/config-lang.in
25614 if test "x$language" = x
25615 then
25616 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25617 exit 1
25618 fi
25619
25620 ok=:
25621 case ",$enable_languages," in
25622 *,$lang_alias,*) ;;
25623 *)
25624 for i in $subdir_requires; do
25625 test -f "${srcdir}/$i/config-lang.in" && continue
25626 ok=false
25627 break
25628 done
25629 ;;
25630 esac
25631 $ok || continue
25632
25633 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25634 if test -f $srcdir/$gcc_subdir/lang.opt; then
25635 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25636 fi
25637 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25638 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25639 fi
25640 all_languages="$all_languages $language"
25641 all_compilers="$all_compilers $compilers"
25642 all_outputs="$all_outputs $outputs"
25643 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25644 case ",$enable_languages," in
25645 *,lto,*)
25646
25647 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25648
25649 enable_lto=yes
25650
25651 ;;
25652 *) ;;
25653 esac
25654 done
25655
25656 # Pick up gtfiles for c
25657 gtfiles=
25658 . ${srcdir}/c-config-lang.in
25659 all_gtfiles="$all_gtfiles [c] $gtfiles"
25660
25661 check_languages=
25662 for language in $all_selected_languages
25663 do
25664 check_languages="$check_languages check-$language"
25665 done
25666
25667 # We link each language in with a set of hooks, reached indirectly via
25668 # lang.${target}. Only do so for selected languages.
25669
25670 rm -f Make-hooks
25671 touch Make-hooks
25672 target_list="all.cross start.encap rest.encap tags \
25673 install-common install-man install-info install-pdf install-html dvi \
25674 pdf html uninstall info man srcextra srcman srcinfo \
25675 mostlyclean clean distclean maintainer-clean install-plugin"
25676
25677 for t in $target_list
25678 do
25679 x=
25680 for lang in $all_selected_languages
25681 do
25682 x="$x $lang.$t"
25683 done
25684 echo "lang.$t: $x" >> Make-hooks
25685 done
25686
25687 # --------
25688 # UNSORTED
25689 # --------
25690
25691 # Create .gdbinit.
25692
25693 echo "dir ." > .gdbinit
25694 echo "dir ${srcdir}" >> .gdbinit
25695 if test x$gdb_needs_out_file_path = xyes
25696 then
25697 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25698 fi
25699 if test "x$subdirs" != x; then
25700 for s in $subdirs
25701 do
25702 echo "dir ${srcdir}/$s" >> .gdbinit
25703 done
25704 fi
25705 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25706
25707 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25708
25709
25710
25711 # Find a directory in which to install a shared libgcc.
25712
25713 # Check whether --enable-version-specific-runtime-libs was given.
25714 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25715 enableval=$enable_version_specific_runtime_libs;
25716 fi
25717
25718
25719
25720 # Check whether --with-slibdir was given.
25721 if test "${with_slibdir+set}" = set; then :
25722 withval=$with_slibdir; slibdir="$with_slibdir"
25723 else
25724 if test "${enable_version_specific_runtime_libs+set}" = set; then
25725 slibdir='$(libsubdir)'
25726 elif test "$host" != "$target"; then
25727 slibdir='$(build_tooldir)/lib'
25728 else
25729 slibdir='$(libdir)'
25730 fi
25731 fi
25732
25733
25734
25735 # Substitute configuration variables
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798 # Echo link setup.
25799 if test x${build} = x${host} ; then
25800 if test x${host} = x${target} ; then
25801 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25802 else
25803 echo "Links are now set up to build a cross-compiler" 1>&2
25804 echo " from ${host} to ${target}." 1>&2
25805 fi
25806 else
25807 if test x${host} = x${target} ; then
25808 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25809 echo " for ${target}." 1>&2
25810 else
25811 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25812 echo " from ${host} to ${target}." 1>&2
25813 fi
25814 fi
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824 if test "x${CLOOGLIBS}" != "x" ; then
25825
25826 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25827
25828 fi
25829
25830 # Check for plugin support
25831 # Check whether --enable-plugin was given.
25832 if test "${enable_plugin+set}" = set; then :
25833 enableval=$enable_plugin; enable_plugin=$enableval
25834 else
25835 enable_plugin=yes; default_plugin=yes
25836 fi
25837
25838
25839 pluginlibs=
25840
25841 case "${host}" in
25842 *-*-darwin*)
25843 if test x$build = x$host; then
25844 export_sym_check="nm${exeext} -g"
25845 elif test x$host = x$target; then
25846 export_sym_check="$gcc_cv_nm -g"
25847 else
25848 export_sym_check=
25849 fi
25850 ;;
25851 *)
25852 if test x$build = x$host; then
25853 export_sym_check="objdump${exeext} -T"
25854 elif test x$host = x$target; then
25855 export_sym_check="$gcc_cv_objdump -T"
25856 else
25857 export_sym_check=
25858 fi
25859 ;;
25860 esac
25861
25862 if test x"$enable_plugin" = x"yes"; then
25863
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25865 $as_echo_n "checking for exported symbols... " >&6; }
25866 if test "x$export_sym_check" != x; then
25867 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25868 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25869 if $export_sym_check conftest | grep foobar > /dev/null; then
25870 : # No need to use a flag
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25872 $as_echo "yes" >&6; }
25873 else
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25875 $as_echo "yes" >&6; }
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25877 $as_echo_n "checking for -rdynamic... " >&6; }
25878 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25879 if $export_sym_check conftest | grep foobar > /dev/null; then
25880 plugin_rdynamic=yes
25881 pluginlibs="-rdynamic"
25882 else
25883 plugin_rdynamic=no
25884 enable_plugin=no
25885 fi
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25887 $as_echo "$plugin_rdynamic" >&6; }
25888 fi
25889 else
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
25891 $as_echo "unable to check" >&6; }
25892 fi
25893
25894 # Check -ldl
25895 saved_LIBS="$LIBS"
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25897 $as_echo_n "checking for library containing dlopen... " >&6; }
25898 if test "${ac_cv_search_dlopen+set}" = set; then :
25899 $as_echo_n "(cached) " >&6
25900 else
25901 ac_func_search_save_LIBS=$LIBS
25902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25903 /* end confdefs.h. */
25904
25905 /* Override any GCC internal prototype to avoid an error.
25906 Use char because int might match the return type of a GCC
25907 builtin and then its argument prototype would still apply. */
25908 #ifdef __cplusplus
25909 extern "C"
25910 #endif
25911 char dlopen ();
25912 int
25913 main ()
25914 {
25915 return dlopen ();
25916 ;
25917 return 0;
25918 }
25919 _ACEOF
25920 for ac_lib in '' dl; do
25921 if test -z "$ac_lib"; then
25922 ac_res="none required"
25923 else
25924 ac_res=-l$ac_lib
25925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25926 fi
25927 if ac_fn_c_try_link "$LINENO"; then :
25928 ac_cv_search_dlopen=$ac_res
25929 fi
25930 rm -f core conftest.err conftest.$ac_objext \
25931 conftest$ac_exeext
25932 if test "${ac_cv_search_dlopen+set}" = set; then :
25933 break
25934 fi
25935 done
25936 if test "${ac_cv_search_dlopen+set}" = set; then :
25937
25938 else
25939 ac_cv_search_dlopen=no
25940 fi
25941 rm conftest.$ac_ext
25942 LIBS=$ac_func_search_save_LIBS
25943 fi
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25945 $as_echo "$ac_cv_search_dlopen" >&6; }
25946 ac_res=$ac_cv_search_dlopen
25947 if test "$ac_res" != no; then :
25948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25949
25950 fi
25951
25952 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25953 pluginlibs="$pluginlibs -ldl"
25954 fi
25955 LIBS="$saved_LIBS"
25956
25957 # Check that we can build shared objects with -fPIC -shared
25958 saved_LDFLAGS="$LDFLAGS"
25959 case "${host}" in
25960 *-*-darwin*)
25961 LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25962 ;;
25963 *)
25964 LDFLAGS="$LDFLAGS -fPIC -shared"
25965 ;;
25966 esac
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25968 $as_echo_n "checking for -fPIC -shared... " >&6; }
25969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25970 /* end confdefs.h. */
25971 extern int X;
25972 int
25973 main ()
25974 {
25975 return X == 0;
25976 ;
25977 return 0;
25978 }
25979 _ACEOF
25980 if ac_fn_c_try_link "$LINENO"; then :
25981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25982 $as_echo "yes" >&6; }; have_pic_shared=yes
25983 else
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25985 $as_echo "no" >&6; }; have_pic_shared=no
25986 fi
25987 rm -f core conftest.err conftest.$ac_objext \
25988 conftest$ac_exeext conftest.$ac_ext
25989 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25990 pluginlibs=
25991 enable_plugin=no
25992 fi
25993 LDFLAGS="$saved_LDFLAGS"
25994
25995 # If plugin support had been requested but not available, fail.
25996 if test x"$enable_plugin" = x"no" ; then
25997 if test x"$default_plugin" != x"yes"; then
25998 as_fn_error "
25999 Building GCC with plugin support requires a host that supports
26000 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26001 fi
26002 fi
26003 fi
26004
26005
26006
26007 if test x"$enable_plugin" = x"yes"; then
26008
26009 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26010
26011 fi
26012
26013 # Configure the subdirectories
26014 # AC_CONFIG_SUBDIRS($subdirs)
26015
26016 # Create the Makefile
26017 # and configure language subdirectories
26018 ac_config_files="$ac_config_files $all_outputs"
26019
26020
26021 ac_config_commands="$ac_config_commands default"
26022
26023 cat >confcache <<\_ACEOF
26024 # This file is a shell script that caches the results of configure
26025 # tests run on this system so they can be shared between configure
26026 # scripts and configure runs, see configure's option --config-cache.
26027 # It is not useful on other systems. If it contains results you don't
26028 # want to keep, you may remove or edit it.
26029 #
26030 # config.status only pays attention to the cache file if you give it
26031 # the --recheck option to rerun configure.
26032 #
26033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26035 # following values.
26036
26037 _ACEOF
26038
26039 # The following way of writing the cache mishandles newlines in values,
26040 # but we know of no workaround that is simple, portable, and efficient.
26041 # So, we kill variables containing newlines.
26042 # Ultrix sh set writes to stderr and can't be redirected directly,
26043 # and sets the high bit in the cache file unless we assign to the vars.
26044 (
26045 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26046 eval ac_val=\$$ac_var
26047 case $ac_val in #(
26048 *${as_nl}*)
26049 case $ac_var in #(
26050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26051 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26052 esac
26053 case $ac_var in #(
26054 _ | IFS | as_nl) ;; #(
26055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26056 *) { eval $ac_var=; unset $ac_var;} ;;
26057 esac ;;
26058 esac
26059 done
26060
26061 (set) 2>&1 |
26062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26063 *${as_nl}ac_space=\ *)
26064 # `set' does not quote correctly, so add quotes: double-quote
26065 # substitution turns \\\\ into \\, and sed turns \\ into \.
26066 sed -n \
26067 "s/'/'\\\\''/g;
26068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26069 ;; #(
26070 *)
26071 # `set' quotes correctly as required by POSIX, so do not add quotes.
26072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26073 ;;
26074 esac |
26075 sort
26076 ) |
26077 sed '
26078 /^ac_cv_env_/b end
26079 t clear
26080 :clear
26081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26082 t end
26083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26084 :end' >>confcache
26085 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26086 if test -w "$cache_file"; then
26087 test "x$cache_file" != "x/dev/null" &&
26088 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26089 $as_echo "$as_me: updating cache $cache_file" >&6;}
26090 cat confcache >$cache_file
26091 else
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26093 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26094 fi
26095 fi
26096 rm -f confcache
26097
26098 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26099 # Let make expand exec_prefix.
26100 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26101
26102 DEFS=-DHAVE_CONFIG_H
26103
26104 ac_libobjs=
26105 ac_ltlibobjs=
26106 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26107 # 1. Remove the extension, and $U if already installed.
26108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26109 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26111 # will be set to the directory where LIBOBJS objects are built.
26112 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26113 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26114 done
26115 LIBOBJS=$ac_libobjs
26116
26117 LTLIBOBJS=$ac_ltlibobjs
26118
26119
26120
26121
26122 : ${CONFIG_STATUS=./config.status}
26123 ac_write_fail=0
26124 ac_clean_files_save=$ac_clean_files
26125 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26127 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26128 as_write_fail=0
26129 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26130 #! $SHELL
26131 # Generated by $as_me.
26132 # Run this file to recreate the current configuration.
26133 # Compiler output produced by configure, useful for debugging
26134 # configure, is in config.log if it exists.
26135
26136 debug=false
26137 ac_cs_recheck=false
26138 ac_cs_silent=false
26139
26140 SHELL=\${CONFIG_SHELL-$SHELL}
26141 export SHELL
26142 _ASEOF
26143 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26144 ## -------------------- ##
26145 ## M4sh Initialization. ##
26146 ## -------------------- ##
26147
26148 # Be more Bourne compatible
26149 DUALCASE=1; export DUALCASE # for MKS sh
26150 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26151 emulate sh
26152 NULLCMD=:
26153 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26154 # is contrary to our usage. Disable this feature.
26155 alias -g '${1+"$@"}'='"$@"'
26156 setopt NO_GLOB_SUBST
26157 else
26158 case `(set -o) 2>/dev/null` in #(
26159 *posix*) :
26160 set -o posix ;; #(
26161 *) :
26162 ;;
26163 esac
26164 fi
26165
26166
26167 as_nl='
26168 '
26169 export as_nl
26170 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26171 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26172 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26173 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26174 # Prefer a ksh shell builtin over an external printf program on Solaris,
26175 # but without wasting forks for bash or zsh.
26176 if test -z "$BASH_VERSION$ZSH_VERSION" \
26177 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26178 as_echo='print -r --'
26179 as_echo_n='print -rn --'
26180 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26181 as_echo='printf %s\n'
26182 as_echo_n='printf %s'
26183 else
26184 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26185 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26186 as_echo_n='/usr/ucb/echo -n'
26187 else
26188 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26189 as_echo_n_body='eval
26190 arg=$1;
26191 case $arg in #(
26192 *"$as_nl"*)
26193 expr "X$arg" : "X\\(.*\\)$as_nl";
26194 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26195 esac;
26196 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26197 '
26198 export as_echo_n_body
26199 as_echo_n='sh -c $as_echo_n_body as_echo'
26200 fi
26201 export as_echo_body
26202 as_echo='sh -c $as_echo_body as_echo'
26203 fi
26204
26205 # The user is always right.
26206 if test "${PATH_SEPARATOR+set}" != set; then
26207 PATH_SEPARATOR=:
26208 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26209 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26210 PATH_SEPARATOR=';'
26211 }
26212 fi
26213
26214
26215 # IFS
26216 # We need space, tab and new line, in precisely that order. Quoting is
26217 # there to prevent editors from complaining about space-tab.
26218 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26219 # splitting by setting IFS to empty value.)
26220 IFS=" "" $as_nl"
26221
26222 # Find who we are. Look in the path if we contain no directory separator.
26223 case $0 in #((
26224 *[\\/]* ) as_myself=$0 ;;
26225 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26226 for as_dir in $PATH
26227 do
26228 IFS=$as_save_IFS
26229 test -z "$as_dir" && as_dir=.
26230 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26231 done
26232 IFS=$as_save_IFS
26233
26234 ;;
26235 esac
26236 # We did not find ourselves, most probably we were run as `sh COMMAND'
26237 # in which case we are not to be found in the path.
26238 if test "x$as_myself" = x; then
26239 as_myself=$0
26240 fi
26241 if test ! -f "$as_myself"; then
26242 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26243 exit 1
26244 fi
26245
26246 # Unset variables that we do not need and which cause bugs (e.g. in
26247 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26248 # suppresses any "Segmentation fault" message there. '((' could
26249 # trigger a bug in pdksh 5.2.14.
26250 for as_var in BASH_ENV ENV MAIL MAILPATH
26251 do eval test x\${$as_var+set} = xset \
26252 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26253 done
26254 PS1='$ '
26255 PS2='> '
26256 PS4='+ '
26257
26258 # NLS nuisances.
26259 LC_ALL=C
26260 export LC_ALL
26261 LANGUAGE=C
26262 export LANGUAGE
26263
26264 # CDPATH.
26265 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26266
26267
26268 # as_fn_error ERROR [LINENO LOG_FD]
26269 # ---------------------------------
26270 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26271 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26272 # script with status $?, using 1 if that was 0.
26273 as_fn_error ()
26274 {
26275 as_status=$?; test $as_status -eq 0 && as_status=1
26276 if test "$3"; then
26277 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26278 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26279 fi
26280 $as_echo "$as_me: error: $1" >&2
26281 as_fn_exit $as_status
26282 } # as_fn_error
26283
26284
26285 # as_fn_set_status STATUS
26286 # -----------------------
26287 # Set $? to STATUS, without forking.
26288 as_fn_set_status ()
26289 {
26290 return $1
26291 } # as_fn_set_status
26292
26293 # as_fn_exit STATUS
26294 # -----------------
26295 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26296 as_fn_exit ()
26297 {
26298 set +e
26299 as_fn_set_status $1
26300 exit $1
26301 } # as_fn_exit
26302
26303 # as_fn_unset VAR
26304 # ---------------
26305 # Portably unset VAR.
26306 as_fn_unset ()
26307 {
26308 { eval $1=; unset $1;}
26309 }
26310 as_unset=as_fn_unset
26311 # as_fn_append VAR VALUE
26312 # ----------------------
26313 # Append the text in VALUE to the end of the definition contained in VAR. Take
26314 # advantage of any shell optimizations that allow amortized linear growth over
26315 # repeated appends, instead of the typical quadratic growth present in naive
26316 # implementations.
26317 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26318 eval 'as_fn_append ()
26319 {
26320 eval $1+=\$2
26321 }'
26322 else
26323 as_fn_append ()
26324 {
26325 eval $1=\$$1\$2
26326 }
26327 fi # as_fn_append
26328
26329 # as_fn_arith ARG...
26330 # ------------------
26331 # Perform arithmetic evaluation on the ARGs, and store the result in the
26332 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26333 # must be portable across $(()) and expr.
26334 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26335 eval 'as_fn_arith ()
26336 {
26337 as_val=$(( $* ))
26338 }'
26339 else
26340 as_fn_arith ()
26341 {
26342 as_val=`expr "$@" || test $? -eq 1`
26343 }
26344 fi # as_fn_arith
26345
26346
26347 if expr a : '\(a\)' >/dev/null 2>&1 &&
26348 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26349 as_expr=expr
26350 else
26351 as_expr=false
26352 fi
26353
26354 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26355 as_basename=basename
26356 else
26357 as_basename=false
26358 fi
26359
26360 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26361 as_dirname=dirname
26362 else
26363 as_dirname=false
26364 fi
26365
26366 as_me=`$as_basename -- "$0" ||
26367 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26368 X"$0" : 'X\(//\)$' \| \
26369 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26370 $as_echo X/"$0" |
26371 sed '/^.*\/\([^/][^/]*\)\/*$/{
26372 s//\1/
26373 q
26374 }
26375 /^X\/\(\/\/\)$/{
26376 s//\1/
26377 q
26378 }
26379 /^X\/\(\/\).*/{
26380 s//\1/
26381 q
26382 }
26383 s/.*/./; q'`
26384
26385 # Avoid depending upon Character Ranges.
26386 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26387 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26388 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26389 as_cr_digits='0123456789'
26390 as_cr_alnum=$as_cr_Letters$as_cr_digits
26391
26392 ECHO_C= ECHO_N= ECHO_T=
26393 case `echo -n x` in #(((((
26394 -n*)
26395 case `echo 'xy\c'` in
26396 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26397 xy) ECHO_C='\c';;
26398 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26399 ECHO_T=' ';;
26400 esac;;
26401 *)
26402 ECHO_N='-n';;
26403 esac
26404
26405 rm -f conf$$ conf$$.exe conf$$.file
26406 if test -d conf$$.dir; then
26407 rm -f conf$$.dir/conf$$.file
26408 else
26409 rm -f conf$$.dir
26410 mkdir conf$$.dir 2>/dev/null
26411 fi
26412 if (echo >conf$$.file) 2>/dev/null; then
26413 if ln -s conf$$.file conf$$ 2>/dev/null; then
26414 as_ln_s='ln -s'
26415 # ... but there are two gotchas:
26416 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26417 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26418 # In both cases, we have to default to `cp -p'.
26419 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26420 as_ln_s='cp -p'
26421 elif ln conf$$.file conf$$ 2>/dev/null; then
26422 as_ln_s=ln
26423 else
26424 as_ln_s='cp -p'
26425 fi
26426 else
26427 as_ln_s='cp -p'
26428 fi
26429 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26430 rmdir conf$$.dir 2>/dev/null
26431
26432
26433 # as_fn_mkdir_p
26434 # -------------
26435 # Create "$as_dir" as a directory, including parents if necessary.
26436 as_fn_mkdir_p ()
26437 {
26438
26439 case $as_dir in #(
26440 -*) as_dir=./$as_dir;;
26441 esac
26442 test -d "$as_dir" || eval $as_mkdir_p || {
26443 as_dirs=
26444 while :; do
26445 case $as_dir in #(
26446 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26447 *) as_qdir=$as_dir;;
26448 esac
26449 as_dirs="'$as_qdir' $as_dirs"
26450 as_dir=`$as_dirname -- "$as_dir" ||
26451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26452 X"$as_dir" : 'X\(//\)[^/]' \| \
26453 X"$as_dir" : 'X\(//\)$' \| \
26454 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26455 $as_echo X"$as_dir" |
26456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26457 s//\1/
26458 q
26459 }
26460 /^X\(\/\/\)[^/].*/{
26461 s//\1/
26462 q
26463 }
26464 /^X\(\/\/\)$/{
26465 s//\1/
26466 q
26467 }
26468 /^X\(\/\).*/{
26469 s//\1/
26470 q
26471 }
26472 s/.*/./; q'`
26473 test -d "$as_dir" && break
26474 done
26475 test -z "$as_dirs" || eval "mkdir $as_dirs"
26476 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26477
26478
26479 } # as_fn_mkdir_p
26480 if mkdir -p . 2>/dev/null; then
26481 as_mkdir_p='mkdir -p "$as_dir"'
26482 else
26483 test -d ./-p && rmdir ./-p
26484 as_mkdir_p=false
26485 fi
26486
26487 if test -x / >/dev/null 2>&1; then
26488 as_test_x='test -x'
26489 else
26490 if ls -dL / >/dev/null 2>&1; then
26491 as_ls_L_option=L
26492 else
26493 as_ls_L_option=
26494 fi
26495 as_test_x='
26496 eval sh -c '\''
26497 if test -d "$1"; then
26498 test -d "$1/.";
26499 else
26500 case $1 in #(
26501 -*)set "./$1";;
26502 esac;
26503 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26504 ???[sx]*):;;*)false;;esac;fi
26505 '\'' sh
26506 '
26507 fi
26508 as_executable_p=$as_test_x
26509
26510 # Sed expression to map a string onto a valid CPP name.
26511 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26512
26513 # Sed expression to map a string onto a valid variable name.
26514 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26515
26516
26517 exec 6>&1
26518 ## ----------------------------------- ##
26519 ## Main body of $CONFIG_STATUS script. ##
26520 ## ----------------------------------- ##
26521 _ASEOF
26522 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26523
26524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26525 # Save the log message, to keep $0 and so on meaningful, and to
26526 # report actual input values of CONFIG_FILES etc. instead of their
26527 # values after options handling.
26528 ac_log="
26529 This file was extended by $as_me, which was
26530 generated by GNU Autoconf 2.64. Invocation command line was
26531
26532 CONFIG_FILES = $CONFIG_FILES
26533 CONFIG_HEADERS = $CONFIG_HEADERS
26534 CONFIG_LINKS = $CONFIG_LINKS
26535 CONFIG_COMMANDS = $CONFIG_COMMANDS
26536 $ $0 $@
26537
26538 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26539 "
26540
26541 _ACEOF
26542
26543 case $ac_config_files in *"
26544 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26545 esac
26546
26547 case $ac_config_headers in *"
26548 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26549 esac
26550
26551
26552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26553 # Files that config.status was made for.
26554 config_files="$ac_config_files"
26555 config_headers="$ac_config_headers"
26556 config_commands="$ac_config_commands"
26557
26558 _ACEOF
26559
26560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26561 ac_cs_usage="\
26562 \`$as_me' instantiates files and other configuration actions
26563 from templates according to the current configuration. Unless the files
26564 and actions are specified as TAGs, all are instantiated by default.
26565
26566 Usage: $0 [OPTION]... [TAG]...
26567
26568 -h, --help print this help, then exit
26569 -V, --version print version number and configuration settings, then exit
26570 -q, --quiet, --silent
26571 do not print progress messages
26572 -d, --debug don't remove temporary files
26573 --recheck update $as_me by reconfiguring in the same conditions
26574 --file=FILE[:TEMPLATE]
26575 instantiate the configuration file FILE
26576 --header=FILE[:TEMPLATE]
26577 instantiate the configuration header FILE
26578
26579 Configuration files:
26580 $config_files
26581
26582 Configuration headers:
26583 $config_headers
26584
26585 Configuration commands:
26586 $config_commands
26587
26588 Report bugs to the package provider."
26589
26590 _ACEOF
26591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26592 ac_cs_version="\\
26593 config.status
26594 configured by $0, generated by GNU Autoconf 2.64,
26595 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26596
26597 Copyright (C) 2009 Free Software Foundation, Inc.
26598 This config.status script is free software; the Free Software Foundation
26599 gives unlimited permission to copy, distribute and modify it."
26600
26601 ac_pwd='$ac_pwd'
26602 srcdir='$srcdir'
26603 AWK='$AWK'
26604 test -n "\$AWK" || AWK=awk
26605 _ACEOF
26606
26607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26608 # The default lists apply if the user does not specify any file.
26609 ac_need_defaults=:
26610 while test $# != 0
26611 do
26612 case $1 in
26613 --*=*)
26614 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26615 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26616 ac_shift=:
26617 ;;
26618 *)
26619 ac_option=$1
26620 ac_optarg=$2
26621 ac_shift=shift
26622 ;;
26623 esac
26624
26625 case $ac_option in
26626 # Handling of the options.
26627 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26628 ac_cs_recheck=: ;;
26629 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26630 $as_echo "$ac_cs_version"; exit ;;
26631 --debug | --debu | --deb | --de | --d | -d )
26632 debug=: ;;
26633 --file | --fil | --fi | --f )
26634 $ac_shift
26635 case $ac_optarg in
26636 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26637 esac
26638 as_fn_append CONFIG_FILES " '$ac_optarg'"
26639 ac_need_defaults=false;;
26640 --header | --heade | --head | --hea )
26641 $ac_shift
26642 case $ac_optarg in
26643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26644 esac
26645 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26646 ac_need_defaults=false;;
26647 --he | --h)
26648 # Conflict between --help and --header
26649 as_fn_error "ambiguous option: \`$1'
26650 Try \`$0 --help' for more information.";;
26651 --help | --hel | -h )
26652 $as_echo "$ac_cs_usage"; exit ;;
26653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26654 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26655 ac_cs_silent=: ;;
26656
26657 # This is an error.
26658 -*) as_fn_error "unrecognized option: \`$1'
26659 Try \`$0 --help' for more information." ;;
26660
26661 *) as_fn_append ac_config_targets " $1"
26662 ac_need_defaults=false ;;
26663
26664 esac
26665 shift
26666 done
26667
26668 ac_configure_extra_args=
26669
26670 if $ac_cs_silent; then
26671 exec 6>/dev/null
26672 ac_configure_extra_args="$ac_configure_extra_args --silent"
26673 fi
26674
26675 _ACEOF
26676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26677 if \$ac_cs_recheck; then
26678 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26679 shift
26680 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26681 CONFIG_SHELL='$SHELL'
26682 export CONFIG_SHELL
26683 exec "\$@"
26684 fi
26685
26686 _ACEOF
26687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26688 exec 5>>config.log
26689 {
26690 echo
26691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26692 ## Running $as_me. ##
26693 _ASBOX
26694 $as_echo "$ac_log"
26695 } >&5
26696
26697 _ACEOF
26698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26699 #
26700 # INIT-COMMANDS
26701 #
26702 subdirs='$subdirs'
26703
26704 _ACEOF
26705
26706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26707
26708 # Handling of arguments.
26709 for ac_config_target in $ac_config_targets
26710 do
26711 case $ac_config_target in
26712 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26713 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26714 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26715 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26716 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26717 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26718
26719 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26720 esac
26721 done
26722
26723
26724 # If the user did not use the arguments to specify the items to instantiate,
26725 # then the envvar interface is used. Set only those that are not.
26726 # We use the long form for the default assignment because of an extremely
26727 # bizarre bug on SunOS 4.1.3.
26728 if $ac_need_defaults; then
26729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26730 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26731 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26732 fi
26733
26734 # Have a temporary directory for convenience. Make it in the build tree
26735 # simply because there is no reason against having it here, and in addition,
26736 # creating and moving files from /tmp can sometimes cause problems.
26737 # Hook for its removal unless debugging.
26738 # Note that there is a small window in which the directory will not be cleaned:
26739 # after its creation but before its name has been assigned to `$tmp'.
26740 $debug ||
26741 {
26742 tmp=
26743 trap 'exit_status=$?
26744 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26745 ' 0
26746 trap 'as_fn_exit 1' 1 2 13 15
26747 }
26748 # Create a (secure) tmp directory for tmp files.
26749
26750 {
26751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26752 test -n "$tmp" && test -d "$tmp"
26753 } ||
26754 {
26755 tmp=./conf$$-$RANDOM
26756 (umask 077 && mkdir "$tmp")
26757 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26758
26759 # Set up the scripts for CONFIG_FILES section.
26760 # No need to generate them if there are no CONFIG_FILES.
26761 # This happens for instance with `./config.status config.h'.
26762 if test -n "$CONFIG_FILES"; then
26763
26764 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26765 ac_cs_awk_getline=:
26766 ac_cs_awk_pipe_init=
26767 ac_cs_awk_read_file='
26768 while ((getline aline < (F[key])) > 0)
26769 print(aline)
26770 close(F[key])'
26771 ac_cs_awk_pipe_fini=
26772 else
26773 ac_cs_awk_getline=false
26774 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26775 ac_cs_awk_read_file='
26776 print "|#_!!_#|"
26777 print "cat " F[key] " &&"
26778 '$ac_cs_awk_pipe_init
26779 # The final `:' finishes the AND list.
26780 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26781 fi
26782 ac_cr=`echo X | tr X '\015'`
26783 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26784 # But we know of no other shell where ac_cr would be empty at this
26785 # point, so we can use a bashism as a fallback.
26786 if test "x$ac_cr" = x; then
26787 eval ac_cr=\$\'\\r\'
26788 fi
26789 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26790 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26791 ac_cs_awk_cr='\r'
26792 else
26793 ac_cs_awk_cr=$ac_cr
26794 fi
26795
26796 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26797 _ACEOF
26798
26799 # Create commands to substitute file output variables.
26800 {
26801 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26802 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26803 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26804 echo "_ACAWK" &&
26805 echo "_ACEOF"
26806 } >conf$$files.sh &&
26807 . ./conf$$files.sh ||
26808 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26809 rm -f conf$$files.sh
26810
26811 {
26812 echo "cat >conf$$subs.awk <<_ACEOF" &&
26813 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26814 echo "_ACEOF"
26815 } >conf$$subs.sh ||
26816 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26817 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26818 ac_delim='%!_!# '
26819 for ac_last_try in false false false false false :; do
26820 . ./conf$$subs.sh ||
26821 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26822
26823 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26824 if test $ac_delim_n = $ac_delim_num; then
26825 break
26826 elif $ac_last_try; then
26827 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26828 else
26829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26830 fi
26831 done
26832 rm -f conf$$subs.sh
26833
26834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26835 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26836 _ACEOF
26837 sed -n '
26838 h
26839 s/^/S["/; s/!.*/"]=/
26840 p
26841 g
26842 s/^[^!]*!//
26843 :repl
26844 t repl
26845 s/'"$ac_delim"'$//
26846 t delim
26847 :nl
26848 h
26849 s/\(.\{148\}\).*/\1/
26850 t more1
26851 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26852 p
26853 n
26854 b repl
26855 :more1
26856 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26857 p
26858 g
26859 s/.\{148\}//
26860 t nl
26861 :delim
26862 h
26863 s/\(.\{148\}\).*/\1/
26864 t more2
26865 s/["\\]/\\&/g; s/^/"/; s/$/"/
26866 p
26867 b
26868 :more2
26869 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26870 p
26871 g
26872 s/.\{148\}//
26873 t delim
26874 ' <conf$$subs.awk | sed '
26875 /^[^""]/{
26876 N
26877 s/\n//
26878 }
26879 ' >>$CONFIG_STATUS || ac_write_fail=1
26880 rm -f conf$$subs.awk
26881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26882 _ACAWK
26883 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26884 for (key in S) S_is_set[key] = 1
26885 FS = "\a"
26886 \$ac_cs_awk_pipe_init
26887 }
26888 {
26889 line = $ 0
26890 nfields = split(line, field, "@")
26891 substed = 0
26892 len = length(field[1])
26893 for (i = 2; i < nfields; i++) {
26894 key = field[i]
26895 keylen = length(key)
26896 if (S_is_set[key]) {
26897 value = S[key]
26898 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26899 len += length(value) + length(field[++i])
26900 substed = 1
26901 } else
26902 len += 1 + keylen
26903 }
26904 if (nfields == 3 && !substed) {
26905 key = field[2]
26906 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26907 \$ac_cs_awk_read_file
26908 next
26909 }
26910 }
26911 print line
26912 }
26913 \$ac_cs_awk_pipe_fini
26914 _ACAWK
26915 _ACEOF
26916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26917 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26918 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26919 else
26920 cat
26921 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26922 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26923 _ACEOF
26924
26925 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26926 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26927 # trailing colons and then remove the whole line if VPATH becomes empty
26928 # (actually we leave an empty line to preserve line numbers).
26929 if test "x$srcdir" = x.; then
26930 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26931 s/:*\$(srcdir):*/:/
26932 s/:*\${srcdir}:*/:/
26933 s/:*@srcdir@:*/:/
26934 s/^\([^=]*=[ ]*\):*/\1/
26935 s/:*$//
26936 s/^[^=]*=[ ]*$//
26937 }'
26938 fi
26939
26940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26941 fi # test -n "$CONFIG_FILES"
26942
26943 # Set up the scripts for CONFIG_HEADERS section.
26944 # No need to generate them if there are no CONFIG_HEADERS.
26945 # This happens for instance with `./config.status Makefile'.
26946 if test -n "$CONFIG_HEADERS"; then
26947 cat >"$tmp/defines.awk" <<\_ACAWK ||
26948 BEGIN {
26949 _ACEOF
26950
26951 # Transform confdefs.h into an awk script `defines.awk', embedded as
26952 # here-document in config.status, that substitutes the proper values into
26953 # config.h.in to produce config.h.
26954
26955 # Create a delimiter string that does not exist in confdefs.h, to ease
26956 # handling of long lines.
26957 ac_delim='%!_!# '
26958 for ac_last_try in false false :; do
26959 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26960 if test -z "$ac_t"; then
26961 break
26962 elif $ac_last_try; then
26963 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26964 else
26965 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26966 fi
26967 done
26968
26969 # For the awk script, D is an array of macro values keyed by name,
26970 # likewise P contains macro parameters if any. Preserve backslash
26971 # newline sequences.
26972
26973 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26974 sed -n '
26975 s/.\{148\}/&'"$ac_delim"'/g
26976 t rset
26977 :rset
26978 s/^[ ]*#[ ]*define[ ][ ]*/ /
26979 t def
26980 d
26981 :def
26982 s/\\$//
26983 t bsnl
26984 s/["\\]/\\&/g
26985 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26986 D["\1"]=" \3"/p
26987 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26988 d
26989 :bsnl
26990 s/["\\]/\\&/g
26991 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26992 D["\1"]=" \3\\\\\\n"\\/p
26993 t cont
26994 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26995 t cont
26996 d
26997 :cont
26998 n
26999 s/.\{148\}/&'"$ac_delim"'/g
27000 t clear
27001 :clear
27002 s/\\$//
27003 t bsnlc
27004 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27005 d
27006 :bsnlc
27007 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27008 b cont
27009 ' <confdefs.h | sed '
27010 s/'"$ac_delim"'/"\\\
27011 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27012
27013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27014 for (key in D) D_is_set[key] = 1
27015 FS = "\a"
27016 }
27017 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27018 line = \$ 0
27019 split(line, arg, " ")
27020 if (arg[1] == "#") {
27021 defundef = arg[2]
27022 mac1 = arg[3]
27023 } else {
27024 defundef = substr(arg[1], 2)
27025 mac1 = arg[2]
27026 }
27027 split(mac1, mac2, "(") #)
27028 macro = mac2[1]
27029 prefix = substr(line, 1, index(line, defundef) - 1)
27030 if (D_is_set[macro]) {
27031 # Preserve the white space surrounding the "#".
27032 print prefix "define", macro P[macro] D[macro]
27033 next
27034 } else {
27035 # Replace #undef with comments. This is necessary, for example,
27036 # in the case of _POSIX_SOURCE, which is predefined and required
27037 # on some systems where configure will not decide to define it.
27038 if (defundef == "undef") {
27039 print "/*", prefix defundef, macro, "*/"
27040 next
27041 }
27042 }
27043 }
27044 { print }
27045 _ACAWK
27046 _ACEOF
27047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27048 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27049 fi # test -n "$CONFIG_HEADERS"
27050
27051
27052 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27053 shift
27054 for ac_tag
27055 do
27056 case $ac_tag in
27057 :[FHLC]) ac_mode=$ac_tag; continue;;
27058 esac
27059 case $ac_mode$ac_tag in
27060 :[FHL]*:*);;
27061 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27062 :[FH]-) ac_tag=-:-;;
27063 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27064 esac
27065 ac_save_IFS=$IFS
27066 IFS=:
27067 set x $ac_tag
27068 IFS=$ac_save_IFS
27069 shift
27070 ac_file=$1
27071 shift
27072
27073 case $ac_mode in
27074 :L) ac_source=$1;;
27075 :[FH])
27076 ac_file_inputs=
27077 for ac_f
27078 do
27079 case $ac_f in
27080 -) ac_f="$tmp/stdin";;
27081 *) # Look for the file first in the build tree, then in the source tree
27082 # (if the path is not absolute). The absolute path cannot be DOS-style,
27083 # because $ac_f cannot contain `:'.
27084 test -f "$ac_f" ||
27085 case $ac_f in
27086 [\\/$]*) false;;
27087 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27088 esac ||
27089 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27090 esac
27091 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27092 as_fn_append ac_file_inputs " '$ac_f'"
27093 done
27094
27095 # Let's still pretend it is `configure' which instantiates (i.e., don't
27096 # use $as_me), people would be surprised to read:
27097 # /* config.h. Generated by config.status. */
27098 configure_input='Generated from '`
27099 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27100 `' by configure.'
27101 if test x"$ac_file" != x-; then
27102 configure_input="$ac_file. $configure_input"
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27104 $as_echo "$as_me: creating $ac_file" >&6;}
27105 fi
27106 # Neutralize special characters interpreted by sed in replacement strings.
27107 case $configure_input in #(
27108 *\&* | *\|* | *\\* )
27109 ac_sed_conf_input=`$as_echo "$configure_input" |
27110 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27111 *) ac_sed_conf_input=$configure_input;;
27112 esac
27113
27114 case $ac_tag in
27115 *:-:* | *:-) cat >"$tmp/stdin" \
27116 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27117 esac
27118 ;;
27119 esac
27120
27121 ac_dir=`$as_dirname -- "$ac_file" ||
27122 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27123 X"$ac_file" : 'X\(//\)[^/]' \| \
27124 X"$ac_file" : 'X\(//\)$' \| \
27125 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27126 $as_echo X"$ac_file" |
27127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27128 s//\1/
27129 q
27130 }
27131 /^X\(\/\/\)[^/].*/{
27132 s//\1/
27133 q
27134 }
27135 /^X\(\/\/\)$/{
27136 s//\1/
27137 q
27138 }
27139 /^X\(\/\).*/{
27140 s//\1/
27141 q
27142 }
27143 s/.*/./; q'`
27144 as_dir="$ac_dir"; as_fn_mkdir_p
27145 ac_builddir=.
27146
27147 case "$ac_dir" in
27148 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27149 *)
27150 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27151 # A ".." for each directory in $ac_dir_suffix.
27152 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27153 case $ac_top_builddir_sub in
27154 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27155 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27156 esac ;;
27157 esac
27158 ac_abs_top_builddir=$ac_pwd
27159 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27160 # for backward compatibility:
27161 ac_top_builddir=$ac_top_build_prefix
27162
27163 case $srcdir in
27164 .) # We are building in place.
27165 ac_srcdir=.
27166 ac_top_srcdir=$ac_top_builddir_sub
27167 ac_abs_top_srcdir=$ac_pwd ;;
27168 [\\/]* | ?:[\\/]* ) # Absolute name.
27169 ac_srcdir=$srcdir$ac_dir_suffix;
27170 ac_top_srcdir=$srcdir
27171 ac_abs_top_srcdir=$srcdir ;;
27172 *) # Relative name.
27173 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27174 ac_top_srcdir=$ac_top_build_prefix$srcdir
27175 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27176 esac
27177 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27178
27179
27180 case $ac_mode in
27181 :F)
27182 #
27183 # CONFIG_FILE
27184 #
27185
27186 _ACEOF
27187
27188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27189 # If the template does not know about datarootdir, expand it.
27190 # FIXME: This hack should be removed a few years after 2.60.
27191 ac_datarootdir_hack=; ac_datarootdir_seen=
27192 ac_sed_dataroot='
27193 /datarootdir/ {
27194 p
27195 q
27196 }
27197 /@datadir@/p
27198 /@docdir@/p
27199 /@infodir@/p
27200 /@localedir@/p
27201 /@mandir@/p'
27202 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27203 *datarootdir*) ac_datarootdir_seen=yes;;
27204 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27206 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27207 _ACEOF
27208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27209 ac_datarootdir_hack='
27210 s&@datadir@&$datadir&g
27211 s&@docdir@&$docdir&g
27212 s&@infodir@&$infodir&g
27213 s&@localedir@&$localedir&g
27214 s&@mandir@&$mandir&g
27215 s&\\\${datarootdir}&$datarootdir&g' ;;
27216 esac
27217 _ACEOF
27218
27219 # Neutralize VPATH when `$srcdir' = `.'.
27220 # Shell code in configure.ac might set extrasub.
27221 # FIXME: do we really want to maintain this feature?
27222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27223 ac_sed_extra="$ac_vpsub
27224 $extrasub
27225 _ACEOF
27226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27227 :t
27228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27229 s|@configure_input@|$ac_sed_conf_input|;t t
27230 s&@top_builddir@&$ac_top_builddir_sub&;t t
27231 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27232 s&@srcdir@&$ac_srcdir&;t t
27233 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27234 s&@top_srcdir@&$ac_top_srcdir&;t t
27235 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27236 s&@builddir@&$ac_builddir&;t t
27237 s&@abs_builddir@&$ac_abs_builddir&;t t
27238 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27239 $ac_datarootdir_hack
27240 "
27241 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27242 if $ac_cs_awk_getline; then
27243 $AWK -f "$tmp/subs.awk"
27244 else
27245 $AWK -f "$tmp/subs.awk" | $SHELL
27246 fi >$tmp/out \
27247 || as_fn_error "could not create $ac_file" "$LINENO" 5
27248
27249 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27250 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27251 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27253 which seems to be undefined. Please make sure it is defined." >&5
27254 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27255 which seems to be undefined. Please make sure it is defined." >&2;}
27256
27257 rm -f "$tmp/stdin"
27258 case $ac_file in
27259 -) cat "$tmp/out" && rm -f "$tmp/out";;
27260 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27261 esac \
27262 || as_fn_error "could not create $ac_file" "$LINENO" 5
27263 ;;
27264 :H)
27265 #
27266 # CONFIG_HEADER
27267 #
27268 if test x"$ac_file" != x-; then
27269 {
27270 $as_echo "/* $configure_input */" \
27271 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27272 } >"$tmp/config.h" \
27273 || as_fn_error "could not create $ac_file" "$LINENO" 5
27274 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27276 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27277 else
27278 rm -f "$ac_file"
27279 mv "$tmp/config.h" "$ac_file" \
27280 || as_fn_error "could not create $ac_file" "$LINENO" 5
27281 fi
27282 else
27283 $as_echo "/* $configure_input */" \
27284 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27285 || as_fn_error "could not create -" "$LINENO" 5
27286 fi
27287 ;;
27288
27289 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27290 $as_echo "$as_me: executing $ac_file commands" >&6;}
27291 ;;
27292 esac
27293
27294
27295 case $ac_file$ac_mode in
27296 "as":F) chmod +x as ;;
27297 "collect-ld":F) chmod +x collect-ld ;;
27298 "nm":F) chmod +x nm ;;
27299 "default":C)
27300 case ${CONFIG_HEADERS} in
27301 *auto-host.h:config.in*)
27302 echo > cstamp-h ;;
27303 esac
27304 # Make sure all the subdirs exist.
27305 for d in $subdirs doc build c-family
27306 do
27307 test -d $d || mkdir $d
27308 done
27309 ;;
27310
27311 esac
27312 done # for ac_tag
27313
27314
27315 as_fn_exit 0
27316 _ACEOF
27317 ac_clean_files=$ac_clean_files_save
27318
27319 test $ac_write_fail = 0 ||
27320 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27321
27322
27323 # configure is writing to config.log, and then calls config.status.
27324 # config.status does its own redirection, appending to config.log.
27325 # Unfortunately, on DOS this fails, as config.log is still kept open
27326 # by configure, so config.status won't be able to write to it; its
27327 # output is simply discarded. So we exec the FD to /dev/null,
27328 # effectively closing config.log, so it can be properly (re)opened and
27329 # appended to by config.status. When coming back to configure, we
27330 # need to make the FD available again.
27331 if test "$no_create" != yes; then
27332 ac_cs_success=:
27333 ac_config_status_args=
27334 test "$silent" = yes &&
27335 ac_config_status_args="$ac_config_status_args --quiet"
27336 exec 5>/dev/null
27337 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27338 exec 5>>config.log
27339 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27340 # would make configure fail if this is the last instruction.
27341 $ac_cs_success || as_fn_exit $?
27342 fi
27343 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27345 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27346 fi
27347