]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
configure: Regenerate.
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 LIBELFINC
606 LIBELFLIBS
607 CLOOGINC
608 CLOOGLIBS
609 PPLINC
610 PPLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 out_object_file
628 out_file
629 objc_boehm_gc
630 md_file
631 local_prefix
632 lang_tree_files
633 lang_specs_files
634 lang_opt_files
635 install
636 out_host_hook_obj
637 host_xm_defines
638 host_xm_include_list
639 host_xm_file_list
640 host_exeext
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_parts
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 slibdir
673 dollar
674 gcc_tooldir
675 LTO_USE_LIBELF
676 LTO_BINARY_READER
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 GGC
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 CXXCPP
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 SED
708 LIBTOOL
709 collect2
710 STMP_FIXINC
711 BUILD_LDFLAGS
712 BUILD_CFLAGS
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
716 ALL
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 gthread_flags
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 GNAT_LIBEXC
740 COLLECT2_LIBS
741 AR
742 NM
743 BISON
744 FLEX
745 GENERATED_MANPAGES
746 BUILD_INFO
747 MAKEINFO
748 have_mktemp_command
749 make_compare_target
750 INSTALL_DATA
751 INSTALL_PROGRAM
752 INSTALL
753 ranlib_flags
754 RANLIB
755 LN
756 LN_S
757 AWK
758 SET_MAKE
759 REPORT_BUGS_TEXI
760 REPORT_BUGS_TO
761 PKGVERSION
762 onestep
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 enable_shared
768 enable_fixed_point
769 enable_decimal_float
770 enable_multilib
771 ENABLE_BUILD_WITH_CXX
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
786 CPP
787 OUTPUT_OPTION
788 NO_MINUS_C_MINUS_O
789 GNATMAKE
790 GNATBIND
791 ac_ct_CXX
792 CXXFLAGS
793 CXX
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 GENINSRC
802 target_subdir
803 host_subdir
804 build_subdir
805 build_libsubdir
806 target_noncanonical
807 target_os
808 target_vendor
809 target_cpu
810 target
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL'
857 ac_subst_files='language_hooks'
858 ac_user_opts='
859 enable_option_checking
860 with_build_libsubdir
861 with_local_prefix
862 with_gxx_include_dir
863 with_cpp_install_dir
864 enable_generated_files_in_srcdir
865 with_gnu_ld
866 with_ld
867 with_demangler_in_ld
868 with_gnu_as
869 with_as
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_build_sysroot
886 with_sysroot
887 with_specs
888 enable_intermodule
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_initfini_array
896 enable_sjlj_exceptions
897 with_system_libunwind
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 with_slibdir
917 enable_plugin
918 '
919 ac_precious_vars='build_alias
920 host_alias
921 target_alias
922 CC
923 CFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
927 CXX
928 CXXFLAGS
929 CCC
930 CPP
931 CXXCPP
932 GMPLIBS
933 GMPINC
934 PPLLIBS
935 PPLINC
936 CLOOGLIBS
937 CLOOGINC
938 LIBELFLIBS
939 LIBELFINC'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
997 ac_prev=
998 continue
999 fi
1000
1001 case $ac_option in
1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 *) ac_optarg=yes ;;
1004 esac
1005
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008 case $ac_dashdash$ac_option in
1009 --)
1010 ac_dashdash=yes ;;
1011
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 ac_prev=bindir ;;
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1016
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1021
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1028
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1031
1032 -datadir | --datadir | --datadi | --datad)
1033 ac_prev=datadir ;;
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1036
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1043
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=no ;;
1059
1060 -docdir | --docdir | --docdi | --doc | --do)
1061 ac_prev=docdir ;;
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1064
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 ac_prev=dvidir ;;
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1069
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid feature name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1094
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1098
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1105
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1110
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1116
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1123
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1128
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1133
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1140
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1145
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1152
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1157
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1161
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1164 no_create=yes ;;
1165
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1169
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1178
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1183
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1190
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1197
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1214
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1219
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1224
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1228
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
1233 sbindir=$ac_optarg ;;
1234
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
1244 sharedstatedir=$ac_optarg ;;
1245
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
1249 site=$ac_optarg ;;
1250
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1255
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1262
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1267
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1270
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1273
1274 -with-* | --with-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1282 *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=\$ac_optarg ;;
1289
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1298 *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=no ;;
1305
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1309
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1316
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1323
1324 -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1326 ;;
1327
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334 esac
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1337
1338 *)
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 ;;
1345
1346 esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error "missing argument to $ac_option"
1352 fi
1353
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1367 do
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1397 cross_compiling=yes
1398 fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error "pwd does not report name of working directory"
1413
1414
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\).*/{
1438 s//\1/
1439 q
1440 }
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1445 fi
1446 else
1447 ac_srcdir_defaulted=no
1448 fi
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1452 fi
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 srcdir=.
1460 fi
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1473
1474 #
1475 # Report the --help message.
1476 #
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1480 cat <<_ACEOF
1481 \`configure' configures this package to adapt to many kinds of systems.
1482
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1487
1488 Defaults for the options are specified in brackets.
1489
1490 Configuration:
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 [PREFIX]
1506
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1511
1512 For better control, use the options below.
1513
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1534 _ACEOF
1535
1536 cat <<\_ACEOF
1537
1538 Program names:
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542
1543 System types:
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546 --target=TARGET configure for building compilers for TARGET [HOST]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551
1552 cat <<\_ACEOF
1553
1554 Optional Features:
1555 --disable-option-checking ignore unrecognized --enable/--with options
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --enable-generated-files-in-srcdir
1559 put copies of generated files in source dir
1560 intended for creating source tarballs for users
1561 without texinfo bison or flex.
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking=LIST
1564 enable expensive run-time checks. With LIST,
1565 enable only specific categories of checks.
1566 Categories are: yes,no,all,none,release.
1567 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1568 rtlflag,rtl,runtime,tree,valgrind,types.
1569 --enable-coverage=LEVEL
1570 enable compiler's code coverage collection.
1571 Use to measure compiler performance and locate
1572 unused parts of the compiler. With LEVEL, specify
1573 optimization. Values are opt, noopt,
1574 default is noopt
1575 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1576 --enable-build-with-cxx build with C++ compiler instead of C compiler
1577 --enable-multilib enable library support for multiple ABIs
1578 --enable-__cxa_atexit enable __cxa_atexit for C++
1579 --enable-decimal-float={no,yes,bid,dpd}
1580 enable decimal float extension to C. Selecting 'bid'
1581 or 'dpd' choses which decimal floating point format
1582 to use
1583 --enable-fixed-point enable fixed-point arithmetic extension to C
1584 --enable-threads enable thread usage for target GCC
1585 --enable-threads=LIB use LIB thread package for target GCC
1586 --enable-tls enable or disable generation of tls code
1587 overriding the assembler check for tls support
1588 --enable-objc-gc enable the use of Boehm's garbage collector with
1589 the GNU Objective-C runtime
1590 --disable-shared don't provide a shared libgcc
1591 --enable-intermodule build the compiler in one step
1592 --enable-languages=LIST specify which front-ends to build
1593 --disable-rpath do not hardcode runtime library paths
1594 --enable-initfini-array use .init_array/.fini_array sections
1595 --enable-sjlj-exceptions
1596 arrange to use setjmp/longjmp exception handling
1597 --enable-secureplt enable -msecure-plt by default for PowerPC
1598 --enable-leading-mingw64-underscores
1599 Enable leading underscores on 64 bit mingw targets
1600 --enable-cld enable -mcld by default for 32bit x86
1601 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit x86
1602 --disable-win32-registry
1603 disable lookup of installation paths in the
1604 Registry on Windows hosts
1605 --enable-win32-registry enable registry lookup (default)
1606 --enable-win32-registry=KEY
1607 use KEY instead of GCC version as the last portion
1608 of the registry key
1609 --enable-shared[=PKGS] build shared libraries [default=yes]
1610 --enable-static[=PKGS] build static libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-libtool-lock avoid locking (might break parallel builds)
1614 --enable-comdat enable COMDAT group support
1615 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1616 glibc systems
1617 --enable-linker-build-id
1618 compiler will always pass --build-id to linker
1619 --enable-maintainer-mode
1620 enable make rules and dependencies not useful
1621 (and sometimes confusing) to the casual installer
1622 --enable-version-specific-runtime-libs
1623 specify that runtime libraries should be
1624 installed in a compiler-specific directory
1625 --enable-plugin enable plugin support
1626
1627 Optional Packages:
1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1630 --with-build-libsubdir=DIR Directory where to find libraries for build system
1631 --with-local-prefix=DIR specifies directory to put local include
1632 --with-gxx-include-dir=DIR
1633 specifies directory to put g++ header files
1634 --with-cpp-install-dir=DIR
1635 install the user visible C preprocessor in DIR
1636 (relative to PREFIX) as well as PREFIX/bin
1637 --with-gnu-ld arrange to work with GNU ld.
1638 --with-ld arrange to use the specified ld (full pathname)
1639 --with-demangler-in-ld try to use demangler in GNU ld.
1640 --with-gnu-as arrange to work with GNU as
1641 --with-as arrange to use the specified as (full pathname)
1642 --with-stabs arrange to use stabs instead of host debug format
1643 --with-dwarf2 force the default debug format to be DWARF 2
1644 --with-build-sysroot=sysroot
1645 use sysroot as the system root during the build
1646 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1647 --with-specs=SPECS add SPECS to driver command-line processing
1648 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1649 --with-bugurl=URL Direct users to URL to report a bug
1650 --with-multilib-list Select multilibs (SH only)
1651 --with-gnu-ld assume the C compiler uses GNU ld default=no
1652 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1653 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1654 --with-system-libunwind use installed libunwind
1655 --with-pic try to use only PIC/non-PIC objects [default=use
1656 both]
1657 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1658 --with-plugin-ld=[ARG] specify the plugin linker
1659 --with-long-double-128 Use 128-bit long double by default.
1660 --with-gc={page,zone} choose the garbage collection mechanism to use
1661 with the compiler
1662 --with-system-zlib use installed libz
1663 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1664
1665 Some influential environment variables:
1666 CC C compiler command
1667 CFLAGS C compiler flags
1668 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1669 nonstandard directory <lib dir>
1670 LIBS libraries to pass to the linker, e.g. -l<library>
1671 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1672 you have headers in a nonstandard directory <include dir>
1673 CXX C++ compiler command
1674 CXXFLAGS C++ compiler flags
1675 CPP C preprocessor
1676 CXXCPP C++ preprocessor
1677 GMPLIBS How to link GMP
1678 GMPINC How to find GMP include files
1679 PPLLIBS How to link PPL
1680 PPLINC How to find PPL include files
1681 CLOOGLIBS How to link CLOOG
1682 CLOOGINC How to find CLOOG include files
1683 LIBELFLIBS How to link libelf
1684 LIBELFINC How to find libelf include files
1685
1686 Use these variables to override the choices made by `configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1688
1689 Report bugs to the package provider.
1690 _ACEOF
1691 ac_status=$?
1692 fi
1693
1694 if test "$ac_init_help" = "recursive"; then
1695 # If there are subdirs, report their specific --help.
1696 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697 test -d "$ac_dir" ||
1698 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699 continue
1700 ac_builddir=.
1701
1702 case "$ac_dir" in
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *)
1705 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706 # A ".." for each directory in $ac_dir_suffix.
1707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708 case $ac_top_builddir_sub in
1709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711 esac ;;
1712 esac
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1717
1718 case $srcdir in
1719 .) # We are building in place.
1720 ac_srcdir=.
1721 ac_top_srcdir=$ac_top_builddir_sub
1722 ac_abs_top_srcdir=$ac_pwd ;;
1723 [\\/]* | ?:[\\/]* ) # Absolute name.
1724 ac_srcdir=$srcdir$ac_dir_suffix;
1725 ac_top_srcdir=$srcdir
1726 ac_abs_top_srcdir=$srcdir ;;
1727 *) # Relative name.
1728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729 ac_top_srcdir=$ac_top_build_prefix$srcdir
1730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 esac
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733
1734 cd "$ac_dir" || { ac_status=$?; continue; }
1735 # Check for guested configure.
1736 if test -f "$ac_srcdir/configure.gnu"; then
1737 echo &&
1738 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739 elif test -f "$ac_srcdir/configure"; then
1740 echo &&
1741 $SHELL "$ac_srcdir/configure" --help=recursive
1742 else
1743 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744 fi || ac_status=$?
1745 cd "$ac_pwd" || { ac_status=$?; break; }
1746 done
1747 fi
1748
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1751 cat <<\_ACEOF
1752 configure
1753 generated by GNU Autoconf 2.64
1754
1755 Copyright (C) 2009 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1758 _ACEOF
1759 exit
1760 fi
1761
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1765
1766 # ac_fn_c_try_compile LINENO
1767 # --------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_compile ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_compile") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1786 fi
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest.$ac_objext; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798 fi
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800 return $ac_retval
1801
1802 } # ac_fn_c_try_compile
1803
1804 # ac_fn_cxx_try_compile LINENO
1805 # ----------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_compile ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext
1811 if { { ac_try="$ac_compile"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1824 fi
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_cxx_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=1
1836 fi
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 return $ac_retval
1839
1840 } # ac_fn_cxx_try_compile
1841
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_cpp ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_cpp conftest.$ac_ext"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } >/dev/null && {
1864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1866 }; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873 fi
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 return $ac_retval
1876
1877 } # ac_fn_c_try_cpp
1878
1879 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882 # the include files in INCLUDES and setting the cache variable VAR
1883 # accordingly.
1884 ac_fn_c_check_header_mongrel ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892 fi
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 else
1897 # Is the header compilable?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899 $as_echo_n "checking $2 usability... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 $4
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 ac_header_compiler=yes
1907 else
1908 ac_header_compiler=no
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912 $as_echo "$ac_header_compiler" >&6; }
1913
1914 # Is the header present?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916 $as_echo_n "checking $2 presence... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_cpp "$LINENO"; then :
1922 ac_header_preproc=yes
1923 else
1924 ac_header_preproc=no
1925 fi
1926 rm -f conftest.err conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928 $as_echo "$ac_header_preproc" >&6; }
1929
1930 # So? What about this header?
1931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1932 yes:no: )
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 ;;
1938 no:yes:* )
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1942 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1946 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949 ;;
1950 esac
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 eval "$3=\$ac_header_compiler"
1957 fi
1958 eval ac_res=\$$3
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 fi
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963
1964 } # ac_fn_c_check_header_mongrel
1965
1966 # ac_fn_c_try_run LINENO
1967 # ----------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969 # that executables *can* be run.
1970 ac_fn_c_try_run ()
1971 {
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if { { ac_try="$ac_link"
1974 case "(($ac_try" in
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_link") 2>&5
1981 ac_status=$?
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984 { { case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_try") 2>&5
1991 ac_status=$?
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; }; }; then :
1994 ac_retval=0
1995 else
1996 $as_echo "$as_me: program exited with status $ac_status" >&5
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000 ac_retval=$ac_status
2001 fi
2002 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004 return $ac_retval
2005
2006 } # ac_fn_c_try_run
2007
2008 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists and can be compiled using the include files in
2011 # INCLUDES, setting the cache variable VAR accordingly.
2012 ac_fn_c_check_header_compile ()
2013 {
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 #include <$2>
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 eval "$3=yes"
2027 else
2028 eval "$3=no"
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 fi
2032 eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036
2037 } # ac_fn_c_check_header_compile
2038
2039 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2040 # --------------------------------------------
2041 # Tries to find the compile-time value of EXPR in a program that includes
2042 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2043 # computed
2044 ac_fn_c_compute_int ()
2045 {
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if test "$cross_compiling" = yes; then
2048 # Depending upon the size, compute the lo and hi bounds.
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2051 $4
2052 int
2053 main ()
2054 {
2055 static int test_array [1 - 2 * !(($2) >= 0)];
2056 test_array [0] = 0
2057
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 ac_lo=0 ac_mid=0
2064 while :; do
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 $4
2068 int
2069 main ()
2070 {
2071 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072 test_array [0] = 0
2073
2074 ;
2075 return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_hi=$ac_mid; break
2080 else
2081 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2082 if test $ac_lo -le $ac_mid; then
2083 ac_lo= ac_hi=
2084 break
2085 fi
2086 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 done
2090 else
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2093 $4
2094 int
2095 main ()
2096 {
2097 static int test_array [1 - 2 * !(($2) < 0)];
2098 test_array [0] = 0
2099
2100 ;
2101 return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_hi=-1 ac_mid=-1
2106 while :; do
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2114 test_array [0] = 0
2115
2116 ;
2117 return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_lo=$ac_mid; break
2122 else
2123 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2124 if test $ac_mid -le $ac_hi; then
2125 ac_lo= ac_hi=
2126 break
2127 fi
2128 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 done
2132 else
2133 ac_lo= ac_hi=
2134 fi
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 # Binary search between lo and hi bounds.
2139 while test "x$ac_lo" != "x$ac_hi"; do
2140 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 $4
2144 int
2145 main ()
2146 {
2147 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2148 test_array [0] = 0
2149
2150 ;
2151 return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155 ac_hi=$ac_mid
2156 else
2157 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161 case $ac_lo in #((
2162 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2163 '') ac_retval=1 ;;
2164 esac
2165 else
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2168 $4
2169 static long int longval () { return $2; }
2170 static unsigned long int ulongval () { return $2; }
2171 #include <stdio.h>
2172 #include <stdlib.h>
2173 int
2174 main ()
2175 {
2176
2177 FILE *f = fopen ("conftest.val", "w");
2178 if (! f)
2179 return 1;
2180 if (($2) < 0)
2181 {
2182 long int i = longval ();
2183 if (i != ($2))
2184 return 1;
2185 fprintf (f, "%ld", i);
2186 }
2187 else
2188 {
2189 unsigned long int i = ulongval ();
2190 if (i != ($2))
2191 return 1;
2192 fprintf (f, "%lu", i);
2193 }
2194 /* Do not output a trailing newline, as this causes \r\n confusion
2195 on some platforms. */
2196 return ferror (f) || fclose (f) != 0;
2197
2198 ;
2199 return 0;
2200 }
2201 _ACEOF
2202 if ac_fn_c_try_run "$LINENO"; then :
2203 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2204 else
2205 ac_retval=1
2206 fi
2207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2208 conftest.$ac_objext conftest.beam conftest.$ac_ext
2209 rm -f conftest.val
2210
2211 fi
2212 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213 return $ac_retval
2214
2215 } # ac_fn_c_compute_int
2216
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type ()
2222 {
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227 $as_echo_n "(cached) " >&6
2228 else
2229 eval "$3=no"
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2232 $4
2233 int
2234 main ()
2235 {
2236 if (sizeof ($2))
2237 return 0;
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2245 $4
2246 int
2247 main ()
2248 {
2249 if (sizeof (($2)))
2250 return 0;
2251 ;
2252 return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256
2257 else
2258 eval "$3=yes"
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2268
2269 } # ac_fn_c_check_type
2270
2271 # ac_fn_c_find_intX_t LINENO BITS VAR
2272 # -----------------------------------
2273 # Finds a signed integer type with width BITS, setting cache variable VAR
2274 # accordingly.
2275 ac_fn_c_find_intX_t ()
2276 {
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2279 $as_echo_n "checking for int$2_t... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 eval "$3=no"
2284 for ac_type in int$2_t 'int' 'long int' \
2285 'long long int' 'short int' 'signed char'; do
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2288 $ac_includes_default
2289 int
2290 main ()
2291 {
2292 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2293 test_array [0] = 0
2294
2295 ;
2296 return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 $ac_includes_default
2303 int
2304 main ()
2305 {
2306 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2307 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2308 test_array [0] = 0
2309
2310 ;
2311 return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315
2316 else
2317 case $ac_type in #(
2318 int$2_t) :
2319 eval "$3=yes" ;; #(
2320 *) :
2321 eval "$3=\$ac_type" ;;
2322 esac
2323 fi
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 eval as_val=\$$3
2328 if test "x$as_val" = x""no; then :
2329
2330 else
2331 break
2332 fi
2333 done
2334 fi
2335 eval ac_res=\$$3
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2339
2340 } # ac_fn_c_find_intX_t
2341
2342 # ac_fn_c_try_link LINENO
2343 # -----------------------
2344 # Try to link conftest.$ac_ext, and return whether this succeeded.
2345 ac_fn_c_try_link ()
2346 {
2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348 rm -f conftest.$ac_objext conftest$ac_exeext
2349 if { { ac_try="$ac_link"
2350 case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353 esac
2354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2355 $as_echo "$ac_try_echo"; } >&5
2356 (eval "$ac_link") 2>conftest.err
2357 ac_status=$?
2358 if test -s conftest.err; then
2359 grep -v '^ *+' conftest.err >conftest.er1
2360 cat conftest.er1 >&5
2361 mv -f conftest.er1 conftest.err
2362 fi
2363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2364 test $ac_status = 0; } && {
2365 test -z "$ac_c_werror_flag" ||
2366 test ! -s conftest.err
2367 } && test -s conftest$ac_exeext && {
2368 test "$cross_compiling" = yes ||
2369 $as_test_x conftest$ac_exeext
2370 }; then :
2371 ac_retval=0
2372 else
2373 $as_echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 ac_retval=1
2377 fi
2378 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2379 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2380 # interfere with the next link command; also delete a directory that is
2381 # left behind by Apple's compiler. We do this before executing the actions.
2382 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384 return $ac_retval
2385
2386 } # ac_fn_c_try_link
2387
2388 # ac_fn_c_find_uintX_t LINENO BITS VAR
2389 # ------------------------------------
2390 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2391 # accordingly.
2392 ac_fn_c_find_uintX_t ()
2393 {
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2396 $as_echo_n "checking for uint$2_t... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 eval "$3=no"
2401 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2402 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 $ac_includes_default
2406 int
2407 main ()
2408 {
2409 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2410 test_array [0] = 0
2411
2412 ;
2413 return 0;
2414 }
2415 _ACEOF
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417 case $ac_type in #(
2418 uint$2_t) :
2419 eval "$3=yes" ;; #(
2420 *) :
2421 eval "$3=\$ac_type" ;;
2422 esac
2423 fi
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 eval as_val=\$$3
2426 if test "x$as_val" = x""no; then :
2427
2428 else
2429 break
2430 fi
2431 done
2432 fi
2433 eval ac_res=\$$3
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2437
2438 } # ac_fn_c_find_uintX_t
2439
2440 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2441 # ----------------------------------------------
2442 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2443 ac_fn_c_check_header_preproc ()
2444 {
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2453 #include <$2>
2454 _ACEOF
2455 if ac_fn_c_try_cpp "$LINENO"; then :
2456 eval "$3=yes"
2457 else
2458 eval "$3=no"
2459 fi
2460 rm -f conftest.err conftest.$ac_ext
2461 fi
2462 eval ac_res=\$$3
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2466
2467 } # ac_fn_c_check_header_preproc
2468
2469 # ac_fn_c_check_func LINENO FUNC VAR
2470 # ----------------------------------
2471 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2472 ac_fn_c_check_func ()
2473 {
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2482 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2484 #define $2 innocuous_$2
2485
2486 /* System header to define __stub macros and hopefully few prototypes,
2487 which can conflict with char $2 (); below.
2488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2489 <limits.h> exists even on freestanding compilers. */
2490
2491 #ifdef __STDC__
2492 # include <limits.h>
2493 #else
2494 # include <assert.h>
2495 #endif
2496
2497 #undef $2
2498
2499 /* Override any GCC internal prototype to avoid an error.
2500 Use char because int might match the return type of a GCC
2501 builtin and then its argument prototype would still apply. */
2502 #ifdef __cplusplus
2503 extern "C"
2504 #endif
2505 char $2 ();
2506 /* The GNU C library defines this for functions which it implements
2507 to always fail with ENOSYS. Some functions are actually named
2508 something starting with __ and the normal name is an alias. */
2509 #if defined __stub_$2 || defined __stub___$2
2510 choke me
2511 #endif
2512
2513 int
2514 main ()
2515 {
2516 return $2 ();
2517 ;
2518 return 0;
2519 }
2520 _ACEOF
2521 if ac_fn_c_try_link "$LINENO"; then :
2522 eval "$3=yes"
2523 else
2524 eval "$3=no"
2525 fi
2526 rm -f core conftest.err conftest.$ac_objext \
2527 conftest$ac_exeext conftest.$ac_ext
2528 fi
2529 eval ac_res=\$$3
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2533
2534 } # ac_fn_c_check_func
2535
2536 # ac_fn_cxx_try_cpp LINENO
2537 # ------------------------
2538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2539 ac_fn_cxx_try_cpp ()
2540 {
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 if { { ac_try="$ac_cpp conftest.$ac_ext"
2543 case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2546 esac
2547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2550 ac_status=$?
2551 if test -s conftest.err; then
2552 grep -v '^ *+' conftest.err >conftest.er1
2553 cat conftest.er1 >&5
2554 mv -f conftest.er1 conftest.err
2555 fi
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; } >/dev/null && {
2558 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2559 test ! -s conftest.err
2560 }; then :
2561 ac_retval=0
2562 else
2563 $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 ac_retval=1
2567 fi
2568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 return $ac_retval
2570
2571 } # ac_fn_cxx_try_cpp
2572
2573 # ac_fn_cxx_try_link LINENO
2574 # -------------------------
2575 # Try to link conftest.$ac_ext, and return whether this succeeded.
2576 ac_fn_cxx_try_link ()
2577 {
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { { ac_try="$ac_link"
2581 case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_link") 2>conftest.err
2588 ac_status=$?
2589 if test -s conftest.err; then
2590 grep -v '^ *+' conftest.err >conftest.er1
2591 cat conftest.er1 >&5
2592 mv -f conftest.er1 conftest.err
2593 fi
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; } && {
2596 test -z "$ac_cxx_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest$ac_exeext && {
2599 test "$cross_compiling" = yes ||
2600 $as_test_x conftest$ac_exeext
2601 }; then :
2602 ac_retval=0
2603 else
2604 $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607 ac_retval=1
2608 fi
2609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611 # interfere with the next link command; also delete a directory that is
2612 # left behind by Apple's compiler. We do this before executing the actions.
2613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615 return $ac_retval
2616
2617 } # ac_fn_cxx_try_link
2618 cat >config.log <<_ACEOF
2619 This file contains any messages produced by compilers while
2620 running configure, to aid debugging if configure makes a mistake.
2621
2622 It was created by $as_me, which was
2623 generated by GNU Autoconf 2.64. Invocation command line was
2624
2625 $ $0 $@
2626
2627 _ACEOF
2628 exec 5>>config.log
2629 {
2630 cat <<_ASUNAME
2631 ## --------- ##
2632 ## Platform. ##
2633 ## --------- ##
2634
2635 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2636 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2637 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2638 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2639 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2640
2641 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2642 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2643
2644 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2645 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2646 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2647 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2648 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2649 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2650 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2651
2652 _ASUNAME
2653
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 $as_echo "PATH: $as_dir"
2660 done
2661 IFS=$as_save_IFS
2662
2663 } >&5
2664
2665 cat >&5 <<_ACEOF
2666
2667
2668 ## ----------- ##
2669 ## Core tests. ##
2670 ## ----------- ##
2671
2672 _ACEOF
2673
2674
2675 # Keep a trace of the command line.
2676 # Strip out --no-create and --no-recursion so they do not pile up.
2677 # Strip out --silent because we don't want to record it for future runs.
2678 # Also quote any args containing shell meta-characters.
2679 # Make two passes to allow for proper duplicate-argument suppression.
2680 ac_configure_args=
2681 ac_configure_args0=
2682 ac_configure_args1=
2683 ac_must_keep_next=false
2684 for ac_pass in 1 2
2685 do
2686 for ac_arg
2687 do
2688 case $ac_arg in
2689 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2691 | -silent | --silent | --silen | --sile | --sil)
2692 continue ;;
2693 *\'*)
2694 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2695 esac
2696 case $ac_pass in
2697 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2698 2)
2699 as_fn_append ac_configure_args1 " '$ac_arg'"
2700 if test $ac_must_keep_next = true; then
2701 ac_must_keep_next=false # Got value, back to normal.
2702 else
2703 case $ac_arg in
2704 *=* | --config-cache | -C | -disable-* | --disable-* \
2705 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2706 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2707 | -with-* | --with-* | -without-* | --without-* | --x)
2708 case "$ac_configure_args0 " in
2709 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2710 esac
2711 ;;
2712 -* ) ac_must_keep_next=true ;;
2713 esac
2714 fi
2715 as_fn_append ac_configure_args " '$ac_arg'"
2716 ;;
2717 esac
2718 done
2719 done
2720 { ac_configure_args0=; unset ac_configure_args0;}
2721 { ac_configure_args1=; unset ac_configure_args1;}
2722
2723 # When interrupted or exit'd, cleanup temporary files, and complete
2724 # config.log. We remove comments because anyway the quotes in there
2725 # would cause problems or look ugly.
2726 # WARNING: Use '\'' to represent an apostrophe within the trap.
2727 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2728 trap 'exit_status=$?
2729 # Save into config.log some information that might help in debugging.
2730 {
2731 echo
2732
2733 cat <<\_ASBOX
2734 ## ---------------- ##
2735 ## Cache variables. ##
2736 ## ---------------- ##
2737 _ASBOX
2738 echo
2739 # The following way of writing the cache mishandles newlines in values,
2740 (
2741 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2742 eval ac_val=\$$ac_var
2743 case $ac_val in #(
2744 *${as_nl}*)
2745 case $ac_var in #(
2746 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2747 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2748 esac
2749 case $ac_var in #(
2750 _ | IFS | as_nl) ;; #(
2751 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2752 *) { eval $ac_var=; unset $ac_var;} ;;
2753 esac ;;
2754 esac
2755 done
2756 (set) 2>&1 |
2757 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2758 *${as_nl}ac_space=\ *)
2759 sed -n \
2760 "s/'\''/'\''\\\\'\'''\''/g;
2761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2762 ;; #(
2763 *)
2764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2765 ;;
2766 esac |
2767 sort
2768 )
2769 echo
2770
2771 cat <<\_ASBOX
2772 ## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##
2775 _ASBOX
2776 echo
2777 for ac_var in $ac_subst_vars
2778 do
2779 eval ac_val=\$$ac_var
2780 case $ac_val in
2781 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2782 esac
2783 $as_echo "$ac_var='\''$ac_val'\''"
2784 done | sort
2785 echo
2786
2787 if test -n "$ac_subst_files"; then
2788 cat <<\_ASBOX
2789 ## ------------------- ##
2790 ## File substitutions. ##
2791 ## ------------------- ##
2792 _ASBOX
2793 echo
2794 for ac_var in $ac_subst_files
2795 do
2796 eval ac_val=\$$ac_var
2797 case $ac_val in
2798 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2799 esac
2800 $as_echo "$ac_var='\''$ac_val'\''"
2801 done | sort
2802 echo
2803 fi
2804
2805 if test -s confdefs.h; then
2806 cat <<\_ASBOX
2807 ## ----------- ##
2808 ## confdefs.h. ##
2809 ## ----------- ##
2810 _ASBOX
2811 echo
2812 cat confdefs.h
2813 echo
2814 fi
2815 test "$ac_signal" != 0 &&
2816 $as_echo "$as_me: caught signal $ac_signal"
2817 $as_echo "$as_me: exit $exit_status"
2818 } >&5
2819 rm -f core *.core core.conftest.* &&
2820 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2821 exit $exit_status
2822 ' 0
2823 for ac_signal in 1 2 13 15; do
2824 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2825 done
2826 ac_signal=0
2827
2828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2829 rm -f -r conftest* confdefs.h
2830
2831 $as_echo "/* confdefs.h */" > confdefs.h
2832
2833 # Predefined preprocessor variables.
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_NAME "$PACKAGE_NAME"
2837 _ACEOF
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2841 _ACEOF
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2845 _ACEOF
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_STRING "$PACKAGE_STRING"
2849 _ACEOF
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2853 _ACEOF
2854
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_URL "$PACKAGE_URL"
2857 _ACEOF
2858
2859
2860 # Let the site file select an alternate cache file if it wants to.
2861 # Prefer an explicitly selected file to automatically selected ones.
2862 ac_site_file1=NONE
2863 ac_site_file2=NONE
2864 if test -n "$CONFIG_SITE"; then
2865 ac_site_file1=$CONFIG_SITE
2866 elif test "x$prefix" != xNONE; then
2867 ac_site_file1=$prefix/share/config.site
2868 ac_site_file2=$prefix/etc/config.site
2869 else
2870 ac_site_file1=$ac_default_prefix/share/config.site
2871 ac_site_file2=$ac_default_prefix/etc/config.site
2872 fi
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2874 do
2875 test "x$ac_site_file" = xNONE && continue
2876 if test -r "$ac_site_file"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879 sed 's/^/| /' "$ac_site_file" >&5
2880 . "$ac_site_file"
2881 fi
2882 done
2883
2884 if test -r "$cache_file"; then
2885 # Some versions of bash will fail to source /dev/null (special
2886 # files actually), so we avoid doing that.
2887 if test -f "$cache_file"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2889 $as_echo "$as_me: loading cache $cache_file" >&6;}
2890 case $cache_file in
2891 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2892 *) . "./$cache_file";;
2893 esac
2894 fi
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2897 $as_echo "$as_me: creating cache $cache_file" >&6;}
2898 >$cache_file
2899 fi
2900
2901 # Check that the precious variables saved in the cache have kept the same
2902 # value.
2903 ac_cache_corrupted=false
2904 for ac_var in $ac_precious_vars; do
2905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2906 eval ac_new_set=\$ac_env_${ac_var}_set
2907 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2908 eval ac_new_val=\$ac_env_${ac_var}_value
2909 case $ac_old_set,$ac_new_set in
2910 set,)
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2913 ac_cache_corrupted=: ;;
2914 ,set)
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2917 ac_cache_corrupted=: ;;
2918 ,);;
2919 *)
2920 if test "x$ac_old_val" != "x$ac_new_val"; then
2921 # differences in whitespace do not lead to failure.
2922 ac_old_val_w=`echo x $ac_old_val`
2923 ac_new_val_w=`echo x $ac_new_val`
2924 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2926 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2927 ac_cache_corrupted=:
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2930 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2931 eval $ac_var=\$ac_old_val
2932 fi
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2934 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2936 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2937 fi;;
2938 esac
2939 # Pass precious variables to config.status.
2940 if test "$ac_new_set" = set; then
2941 case $ac_new_val in
2942 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2943 *) ac_arg=$ac_var=$ac_new_val ;;
2944 esac
2945 case " $ac_configure_args " in
2946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2947 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2948 esac
2949 fi
2950 done
2951 if $ac_cache_corrupted; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2956 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2957 fi
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2961
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967
2968
2969
2970
2971
2972
2973 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2974
2975
2976 gcc_version=`cat $srcdir/BASE-VER`
2977
2978 # Determine the host, build, and target systems
2979 ac_aux_dir=
2980 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2981 for ac_t in install-sh install.sh shtool; do
2982 if test -f "$ac_dir/$ac_t"; then
2983 ac_aux_dir=$ac_dir
2984 ac_install_sh="$ac_aux_dir/$ac_t -c"
2985 break 2
2986 fi
2987 done
2988 done
2989 if test -z "$ac_aux_dir"; then
2990 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2991 fi
2992
2993 # These three variables are undocumented and unsupported,
2994 # and are intended to be withdrawn in a future Autoconf release.
2995 # They can cause serious problems if a builder's source tree is in a directory
2996 # whose full name contains unusual characters.
2997 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2998 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2999 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3000
3001
3002 # Make sure we can run config.sub.
3003 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3004 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3007 $as_echo_n "checking build system type... " >&6; }
3008 if test "${ac_cv_build+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 ac_build_alias=$build_alias
3012 test "x$ac_build_alias" = x &&
3013 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3014 test "x$ac_build_alias" = x &&
3015 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3017 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3018
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3021 $as_echo "$ac_cv_build" >&6; }
3022 case $ac_cv_build in
3023 *-*-*) ;;
3024 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3025 esac
3026 build=$ac_cv_build
3027 ac_save_IFS=$IFS; IFS='-'
3028 set x $ac_cv_build
3029 shift
3030 build_cpu=$1
3031 build_vendor=$2
3032 shift; shift
3033 # Remember, the first character of IFS is used to create $*,
3034 # except with old shells:
3035 build_os=$*
3036 IFS=$ac_save_IFS
3037 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3038
3039
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3041 $as_echo_n "checking host system type... " >&6; }
3042 if test "${ac_cv_host+set}" = set; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if test "x$host_alias" = x; then
3046 ac_cv_host=$ac_cv_build
3047 else
3048 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3049 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3050 fi
3051
3052 fi
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3054 $as_echo "$ac_cv_host" >&6; }
3055 case $ac_cv_host in
3056 *-*-*) ;;
3057 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3058 esac
3059 host=$ac_cv_host
3060 ac_save_IFS=$IFS; IFS='-'
3061 set x $ac_cv_host
3062 shift
3063 host_cpu=$1
3064 host_vendor=$2
3065 shift; shift
3066 # Remember, the first character of IFS is used to create $*,
3067 # except with old shells:
3068 host_os=$*
3069 IFS=$ac_save_IFS
3070 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3071
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3074 $as_echo_n "checking target system type... " >&6; }
3075 if test "${ac_cv_target+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if test "x$target_alias" = x; then
3079 ac_cv_target=$ac_cv_host
3080 else
3081 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3082 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3083 fi
3084
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3087 $as_echo "$ac_cv_target" >&6; }
3088 case $ac_cv_target in
3089 *-*-*) ;;
3090 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3091 esac
3092 target=$ac_cv_target
3093 ac_save_IFS=$IFS; IFS='-'
3094 set x $ac_cv_target
3095 shift
3096 target_cpu=$1
3097 target_vendor=$2
3098 shift; shift
3099 # Remember, the first character of IFS is used to create $*,
3100 # except with old shells:
3101 target_os=$*
3102 IFS=$ac_save_IFS
3103 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3104
3105
3106 # The aliases save the names the user supplied, while $host etc.
3107 # will get canonicalized.
3108 test -n "$target_alias" &&
3109 test "$program_prefix$program_suffix$program_transform_name" = \
3110 NONENONEs,x,x, &&
3111 program_prefix=${target_alias}-
3112
3113 # Determine the noncanonical target name, for directory use.
3114 case ${build_alias} in
3115 "") build_noncanonical=${build} ;;
3116 *) build_noncanonical=${build_alias} ;;
3117 esac
3118
3119 case ${host_alias} in
3120 "") host_noncanonical=${build_noncanonical} ;;
3121 *) host_noncanonical=${host_alias} ;;
3122 esac
3123
3124 case ${target_alias} in
3125 "") target_noncanonical=${host_noncanonical} ;;
3126 *) target_noncanonical=${target_alias} ;;
3127 esac
3128
3129
3130
3131
3132 # Determine the target- and build-specific subdirectories
3133
3134 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3135 # have matching libraries, they should use host libraries: Makefile.tpl
3136 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3137 # However, they still use the build modules, because the corresponding
3138 # host modules (e.g. bison) are only built for the host when bootstrap
3139 # finishes. So:
3140 # - build_subdir is where we find build modules, and never changes.
3141 # - build_libsubdir is where we find build libraries, and can be overridden.
3142
3143 # Prefix 'build-' so this never conflicts with target_subdir.
3144 build_subdir="build-${build_noncanonical}"
3145
3146 # Check whether --with-build-libsubdir was given.
3147 if test "${with_build_libsubdir+set}" = set; then :
3148 withval=$with_build_libsubdir; build_libsubdir="$withval"
3149 else
3150 build_libsubdir="$build_subdir"
3151 fi
3152
3153 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3154 if ( test $srcdir = . && test -d gcc ) \
3155 || test -d $srcdir/../host-${host_noncanonical}; then
3156 host_subdir="host-${host_noncanonical}"
3157 else
3158 host_subdir=.
3159 fi
3160 # No prefix.
3161 target_subdir=${target_noncanonical}
3162
3163
3164 # Set program_transform_name
3165 test "$program_prefix" != NONE &&
3166 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3167 # Use a double $ so make ignores it.
3168 test "$program_suffix" != NONE &&
3169 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3170 # Double any \ or $.
3171 # By default was `s,x,x', remove it if useless.
3172 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3173 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3174
3175
3176 # Check for bogus environment variables.
3177 # Test if LIBRARY_PATH contains the notation for the current directory
3178 # since this would lead to problems installing/building glibc.
3179 # LIBRARY_PATH contains the current directory if one of the following
3180 # is true:
3181 # - one of the terminals (":" and ";") is the first or last sign
3182 # - two terminals occur directly after each other
3183 # - the path contains an element with a dot in it
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3185 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3186 case ${LIBRARY_PATH} in
3187 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3188 library_path_setting="contains current directory"
3189 ;;
3190 *)
3191 library_path_setting="ok"
3192 ;;
3193 esac
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3195 $as_echo "$library_path_setting" >&6; }
3196 if test "$library_path_setting" != "ok"; then
3197 as_fn_error "
3198 *** LIBRARY_PATH shouldn't contain the current directory when
3199 *** building gcc. Please change the environment variable
3200 *** and run configure again." "$LINENO" 5
3201 fi
3202
3203 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3204 # since this would lead to problems installing/building glibc.
3205 # GCC_EXEC_PREFIX contains the current directory if one of the following
3206 # is true:
3207 # - one of the terminals (":" and ";") is the first or last sign
3208 # - two terminals occur directly after each other
3209 # - the path contains an element with a dot in it
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3211 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3212 case ${GCC_EXEC_PREFIX} in
3213 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3214 gcc_exec_prefix_setting="contains current directory"
3215 ;;
3216 *)
3217 gcc_exec_prefix_setting="ok"
3218 ;;
3219 esac
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3221 $as_echo "$gcc_exec_prefix_setting" >&6; }
3222 if test "$gcc_exec_prefix_setting" != "ok"; then
3223 as_fn_error "
3224 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3225 *** building gcc. Please change the environment variable
3226 *** and run configure again." "$LINENO" 5
3227 fi
3228
3229 # -----------
3230 # Directories
3231 # -----------
3232
3233 # Specify the local prefix
3234 local_prefix=
3235
3236 # Check whether --with-local-prefix was given.
3237 if test "${with_local_prefix+set}" = set; then :
3238 withval=$with_local_prefix; case "${withval}" in
3239 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3240 no) ;;
3241 *) local_prefix=$with_local_prefix ;;
3242 esac
3243 fi
3244
3245
3246 # Default local prefix if it is empty
3247 if test x$local_prefix = x; then
3248 local_prefix=/usr/local
3249 fi
3250
3251 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3252 # passed in by the toplevel make and thus we'd get different behavior
3253 # depending on where we built the sources.
3254 gcc_gxx_include_dir=
3255 # Specify the g++ header file directory
3256
3257 # Check whether --with-gxx-include-dir was given.
3258 if test "${with_gxx_include_dir+set}" = set; then :
3259 withval=$with_gxx_include_dir; case "${withval}" in
3260 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3261 no) ;;
3262 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3263 esac
3264 fi
3265
3266
3267 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3268 if test x${gcc_gxx_include_dir} = x; then
3269 if test x${enable_version_specific_runtime_libs} = xyes; then
3270 gcc_gxx_include_dir='${libsubdir}/include/c++'
3271 else
3272 libstdcxx_incdir='include/c++/$(version)'
3273 if test x$host != x$target; then
3274 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3275 fi
3276 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3277 fi
3278 fi
3279
3280
3281 # Check whether --with-cpp_install_dir was given.
3282 if test "${with_cpp_install_dir+set}" = set; then :
3283 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3284 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3285 elif test x$withval != xno; then
3286 cpp_install_dir=$withval
3287 fi
3288 fi
3289
3290
3291 # We would like to our source tree to be readonly. However when releases or
3292 # pre-releases are generated, the flex/bison generated files as well as the
3293 # various formats of manuals need to be included along with the rest of the
3294 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3295 # just that.
3296
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3298 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3299 # Check whether --enable-generated-files-in-srcdir was given.
3300 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3301 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3302 else
3303 generated_files_in_srcdir=no
3304 fi
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3308 $as_echo "$generated_files_in_srcdir" >&6; }
3309
3310 if test "$generated_files_in_srcdir" = "yes"; then
3311 GENINSRC=''
3312 else
3313 GENINSRC='#'
3314 fi
3315
3316
3317 # -------------------
3318 # Find default linker
3319 # -------------------
3320
3321 # With GNU ld
3322
3323 # Check whether --with-gnu-ld was given.
3324 if test "${with_gnu_ld+set}" = set; then :
3325 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3326 else
3327 gnu_ld_flag=no
3328 fi
3329
3330
3331 # With pre-defined ld
3332
3333 # Check whether --with-ld was given.
3334 if test "${with_ld+set}" = set; then :
3335 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3336 fi
3337
3338 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3339 if test ! -x "$DEFAULT_LINKER"; then
3340 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3341 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3342 gnu_ld_flag=yes
3343 fi
3344
3345 cat >>confdefs.h <<_ACEOF
3346 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3347 _ACEOF
3348
3349 fi
3350
3351 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3352
3353 cat >>confdefs.h <<_ACEOF
3354 #define HAVE_GNU_LD $gnu_ld
3355 _ACEOF
3356
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3359 $as_echo_n "checking whether a default linker was specified... " >&6; }
3360 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3361 if test x"$gnu_ld_flag" = x"no"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3363 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3364 else
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3366 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3367 fi
3368 else
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 fi
3372
3373 # With demangler in GNU ld
3374
3375 # Check whether --with-demangler-in-ld was given.
3376 if test "${with_demangler_in_ld+set}" = set; then :
3377 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3378 else
3379 demangler_in_ld=no
3380 fi
3381
3382
3383 # ----------------------
3384 # Find default assembler
3385 # ----------------------
3386
3387 # With GNU as
3388
3389 # Check whether --with-gnu-as was given.
3390 if test "${with_gnu_as+set}" = set; then :
3391 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3392 else
3393 gas_flag=no
3394 fi
3395
3396
3397
3398 # Check whether --with-as was given.
3399 if test "${with_as+set}" = set; then :
3400 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3401 fi
3402
3403 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3404 if test ! -x "$DEFAULT_ASSEMBLER"; then
3405 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3406 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3407 gas_flag=yes
3408 fi
3409
3410 cat >>confdefs.h <<_ACEOF
3411 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3412 _ACEOF
3413
3414 fi
3415
3416 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3417
3418 cat >>confdefs.h <<_ACEOF
3419 #define HAVE_GNU_AS $gnu_as
3420 _ACEOF
3421
3422
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3424 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3425 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3426 if test x"$gas_flag" = x"no"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3428 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3431 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3432 fi
3433 else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438 # ---------------
3439 # Find C compiler
3440 # ---------------
3441
3442 # If a non-executable a.out is present (e.g. created by GNU as above even if
3443 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3444 # file, even when creating an executable, so an execution test fails.
3445 # Remove possible default executable files to avoid this.
3446 #
3447 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3448 # Autoconf includes it.
3449 rm -f a.out a.exe b.out
3450
3451 # Find the native compiler
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3478 fi
3479 done
3480 done
3481 IFS=$as_save_IFS
3482
3483 fi
3484 fi
3485 CC=$ac_cv_prog_CC
3486 if test -n "$CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3489 else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492 fi
3493
3494
3495 fi
3496 if test -z "$ac_cv_prog_CC"; then
3497 ac_ct_CC=$CC
3498 # Extract the first word of "gcc", so it can be a program name with args.
3499 set dummy gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 if test -n "$ac_ct_CC"; then
3506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_ac_ct_CC="gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3518 fi
3519 done
3520 done
3521 IFS=$as_save_IFS
3522
3523 fi
3524 fi
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3529 else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 fi
3533
3534 if test "x$ac_ct_CC" = x; then
3535 CC=""
3536 else
3537 case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543 CC=$ac_ct_CC
3544 fi
3545 else
3546 CC="$ac_cv_prog_CC"
3547 fi
3548
3549 if test -z "$CC"; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}cc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CC="${ac_tool_prefix}cc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572 done
3573 done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587
3588 fi
3589 fi
3590 if test -z "$CC"; then
3591 # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601 ac_prog_rejected=no
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610 ac_prog_rejected=yes
3611 continue
3612 fi
3613 ac_cv_prog_CC="cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3616 fi
3617 done
3618 done
3619 IFS=$as_save_IFS
3620
3621 if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy $ac_cv_prog_CC
3624 shift
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3629 shift
3630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3631 fi
3632 fi
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 fi
3643
3644
3645 fi
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 for ac_prog in cl.exe
3649 do
3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_CC+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC="$CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671 done
3672 done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3684 fi
3685
3686
3687 test -n "$CC" && break
3688 done
3689 fi
3690 if test -z "$CC"; then
3691 ac_ct_CC=$CC
3692 for ac_prog in cl.exe
3693 do
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -n "$ac_ct_CC"; then
3702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_ac_ct_CC="$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3714 fi
3715 done
3716 done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731 test -n "$ac_ct_CC" && break
3732 done
3733
3734 if test "x$ac_ct_CC" = x; then
3735 CC=""
3736 else
3737 case $cross_compiling:$ac_tool_warned in
3738 yes:)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3742 esac
3743 CC=$ac_ct_CC
3744 fi
3745 fi
3746
3747 fi
3748
3749
3750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error "no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." "$LINENO" 5; }
3754
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3757 set X $ac_compile
3758 ac_compiler=$2
3759 for ac_option in --version -v -V -qversion; do
3760 { { ac_try="$ac_compiler $ac_option >&5"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3768 ac_status=$?
3769 if test -s conftest.err; then
3770 sed '10a\
3771 ... rest of stderr output deleted ...
3772 10q' conftest.err >conftest.er1
3773 cat conftest.er1 >&5
3774 rm -f conftest.er1 conftest.err
3775 fi
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3778 done
3779
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782
3783 int
3784 main ()
3785 {
3786
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3795 # of exeext.
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3797 $as_echo_n "checking for C compiler default output file name... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3799
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3802
3803 ac_rmfiles=
3804 for ac_file in $ac_files
3805 do
3806 case $ac_file in
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3809 esac
3810 done
3811 rm -f $ac_rmfiles
3812
3813 if { { ac_try="$ac_link_default"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link_default") 2>&5
3821 ac_status=$?
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3828 # Autoconf.
3829 for ac_file in $ac_files ''
3830 do
3831 test -f "$ac_file" || continue
3832 case $ac_file in
3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3834 ;;
3835 [ab].out )
3836 # We found the default executable, but exeext='' is most
3837 # certainly right.
3838 break;;
3839 *.* )
3840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3841 then :; else
3842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843 fi
3844 # We set ac_cv_exeext here because the later test for it is not
3845 # safe: cross compilers may not add the suffix if given an `-o'
3846 # argument, so we may need to know it at that point already.
3847 # Even if this section looks crufty: it has the advantage of
3848 # actually working.
3849 break;;
3850 * )
3851 break;;
3852 esac
3853 done
3854 test "$ac_cv_exeext" = no && ac_cv_exeext=
3855
3856 else
3857 ac_file=''
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3860 $as_echo "$ac_file" >&6; }
3861 if test -z "$ac_file"; then :
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status 77
3868 as_fn_error "C compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3870 fi
3871 ac_exeext=$ac_cv_exeext
3872
3873 # Check that the compiler produces executables we can run. If not, either
3874 # the compiler is broken, or we cross compile.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3876 $as_echo_n "checking whether the C compiler works... " >&6; }
3877 # If not cross compiling, check that we can run a simple program.
3878 if test "$cross_compiling" != yes; then
3879 if { ac_try='./$ac_file'
3880 { { case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883 esac
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886 (eval "$ac_try") 2>&5
3887 ac_status=$?
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }; }; then
3890 cross_compiling=no
3891 else
3892 if test "$cross_compiling" = maybe; then
3893 cross_compiling=yes
3894 else
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error "cannot run C compiled programs.
3898 If you meant to cross compile, use \`--host'.
3899 See \`config.log' for more details." "$LINENO" 5; }
3900 fi
3901 fi
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3905
3906 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3907 ac_clean_files=$ac_clean_files_save
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 $as_echo_n "checking whether we are cross compiling... " >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3914
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3916 $as_echo_n "checking for suffix of executables... " >&6; }
3917 if { { ac_try="$ac_link"
3918 case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_link") 2>&5
3925 ac_status=$?
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; then :
3928 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3929 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3930 # work properly (i.e., refer to `conftest.exe'), while it won't with
3931 # `rm'.
3932 for ac_file in conftest.exe conftest conftest.*; do
3933 test -f "$ac_file" || continue
3934 case $ac_file in
3935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937 break;;
3938 * ) break;;
3939 esac
3940 done
3941 else
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error "cannot compute suffix of executables: cannot compile and link
3945 See \`config.log' for more details." "$LINENO" 5; }
3946 fi
3947 rm -f conftest$ac_cv_exeext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3949 $as_echo "$ac_cv_exeext" >&6; }
3950
3951 rm -f conftest.$ac_ext
3952 EXEEXT=$ac_cv_exeext
3953 ac_exeext=$EXEEXT
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if test "${ac_cv_objext+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961
3962 int
3963 main ()
3964 {
3965
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try="$ac_compile"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_compile") 2>&5
3979 ac_status=$?
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
3982 for ac_file in conftest.o conftest.obj conftest.*; do
3983 test -f "$ac_file" || continue;
3984 case $ac_file in
3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3987 break;;
3988 esac
3989 done
3990 else
3991 $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error "cannot compute suffix of object files: cannot compile
3997 See \`config.log' for more details." "$LINENO" 5; }
3998 fi
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4004 ac_objext=$OBJEXT
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012
4013 int
4014 main ()
4015 {
4016 #ifndef __GNUC__
4017 choke me
4018 #endif
4019
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_compiler_gnu=yes
4026 else
4027 ac_compiler_gnu=no
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4031
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4036 GCC=yes
4037 else
4038 GCC=
4039 fi
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if test "${ac_cv_prog_cc_g+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 ac_save_c_werror_flag=$ac_c_werror_flag
4048 ac_c_werror_flag=yes
4049 ac_cv_prog_cc_g=no
4050 CFLAGS="-g"
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4053
4054 int
4055 main ()
4056 {
4057
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_prog_cc_g=yes
4064 else
4065 CFLAGS=""
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4068
4069 int
4070 main ()
4071 {
4072
4073 ;
4074 return 0;
4075 }
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078
4079 else
4080 ac_c_werror_flag=$ac_save_c_werror_flag
4081 CFLAGS="-g"
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084
4085 int
4086 main ()
4087 {
4088
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_prog_cc_g=yes
4095 fi
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 ac_c_werror_flag=$ac_save_c_werror_flag
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106 CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108 if test "$GCC" = yes; then
4109 CFLAGS="-g -O2"
4110 else
4111 CFLAGS="-g"
4112 fi
4113 else
4114 if test "$GCC" = yes; then
4115 CFLAGS="-O2"
4116 else
4117 CFLAGS=
4118 fi
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 ac_cv_prog_cc_c89=no
4126 ac_save_CC=$CC
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129 #include <stdarg.h>
4130 #include <stdio.h>
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4137 char **p;
4138 int i;
4139 {
4140 return p[i];
4141 }
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4143 {
4144 char *s;
4145 va_list v;
4146 va_start (v,p);
4147 s = g (p, va_arg (v,int));
4148 va_end (v);
4149 return s;
4150 }
4151
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4153 function prototypes and stuff, but not '\xHH' hex character constants.
4154 These don't provoke an error unfortunately, instead are silently treated
4155 as 'x'. The following induces an error, until -std is added to get
4156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4157 array size at least. It's necessary to write '\x00'==0 to get something
4158 that's true only with -std. */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4160
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162 inside strings and character constants. */
4163 #define FOO(x) 'x'
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4165
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170 int argc;
4171 char **argv;
4172 int
4173 main ()
4174 {
4175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4176 ;
4177 return 0;
4178 }
4179 _ACEOF
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4182 do
4183 CC="$ac_save_CC $ac_arg"
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_c89=$ac_arg
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext
4188 test "x$ac_cv_prog_cc_c89" != "xno" && break
4189 done
4190 rm -f conftest.$ac_ext
4191 CC=$ac_save_CC
4192
4193 fi
4194 # AC_CACHE_VAL
4195 case "x$ac_cv_prog_cc_c89" in
4196 x)
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4199 xno)
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4202 *)
4203 CC="$CC $ac_cv_prog_cc_c89"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4206 esac
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4208
4209 fi
4210
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216
4217 if test "x$CC" != xcc; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4219 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4222 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4223 fi
4224 set dummy $CC; ac_cc=`$as_echo "$2" |
4225 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4226 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231
4232 int
4233 main ()
4234 {
4235
4236 ;
4237 return 0;
4238 }
4239 _ACEOF
4240 # Make sure it works both with $CC and with simple cc.
4241 # We do the test twice because some compilers refuse to overwrite an
4242 # existing .o file with -o, though they will create one.
4243 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4244 rm -f conftest2.*
4245 if { { case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; } &&
4255 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261 (eval "$ac_try") 2>&5
4262 ac_status=$?
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; };
4265 then
4266 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4267 if test "x$CC" != xcc; then
4268 # Test first that cc exists at all.
4269 if { ac_try='cc -c conftest.$ac_ext >&5'
4270 { { case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276 (eval "$ac_try") 2>&5
4277 ac_status=$?
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }; }; then
4280 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 rm -f conftest2.*
4282 if { { case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4302 then
4303 # cc works too.
4304 :
4305 else
4306 # cc exists but doesn't like -o.
4307 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4308 fi
4309 fi
4310 fi
4311 else
4312 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4313 fi
4314 rm -f core conftest*
4315
4316 fi
4317 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319 $as_echo "yes" >&6; }
4320 else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323
4324 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4325
4326 fi
4327
4328 # expand $ac_aux_dir to an absolute path
4329 am_aux_dir=`cd $ac_aux_dir && pwd`
4330
4331 # FIXME: we rely on the cache variable name because
4332 # there is no other way.
4333 set dummy $CC
4334 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4335 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4336 if test "$am_t" != yes; then
4337 # Losing compiler, so override with the script.
4338 # FIXME: It is wrong to rewrite CC.
4339 # But if we don't then we get into trouble of one sort or another.
4340 # A longer-term fix would be to have automake use am__CC in this case,
4341 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4342 CC="$am_aux_dir/compile $CC"
4343 fi
4344
4345
4346 ac_ext=cpp
4347 ac_cpp='$CXXCPP $CPPFLAGS'
4348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4351 if test -z "$CXX"; then
4352 if test -n "$CCC"; then
4353 CXX=$CCC
4354 else
4355 if test -n "$ac_tool_prefix"; then
4356 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4357 do
4358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_CXX+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 if test -n "$CXX"; then
4366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379 done
4380 done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 CXX=$ac_cv_prog_CXX
4386 if test -n "$CXX"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4388 $as_echo "$CXX" >&6; }
4389 else
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395 test -n "$CXX" && break
4396 done
4397 fi
4398 if test -z "$CXX"; then
4399 ac_ct_CXX=$CXX
4400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4401 do
4402 # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy $ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if test -n "$ac_ct_CXX"; then
4410 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_ac_ct_CXX="$ac_prog"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4422 fi
4423 done
4424 done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4430 if test -n "$ac_ct_CXX"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4432 $as_echo "$ac_ct_CXX" >&6; }
4433 else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439 test -n "$ac_ct_CXX" && break
4440 done
4441
4442 if test "x$ac_ct_CXX" = x; then
4443 CXX="g++"
4444 else
4445 case $cross_compiling:$ac_tool_warned in
4446 yes:)
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned=yes ;;
4450 esac
4451 CXX=$ac_ct_CXX
4452 fi
4453 fi
4454
4455 fi
4456 fi
4457 # Provide some information about the compiler.
4458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4459 set X $ac_compile
4460 ac_compiler=$2
4461 for ac_option in --version -v -V -qversion; do
4462 { { ac_try="$ac_compiler $ac_option >&5"
4463 case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4470 ac_status=$?
4471 if test -s conftest.err; then
4472 sed '10a\
4473 ... rest of stderr output deleted ...
4474 10q' conftest.err >conftest.er1
4475 cat conftest.er1 >&5
4476 rm -f conftest.er1 conftest.err
4477 fi
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; }
4480 done
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4484 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489
4490 int
4491 main ()
4492 {
4493 #ifndef __GNUC__
4494 choke me
4495 #endif
4496
4497 ;
4498 return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4502 ac_compiler_gnu=yes
4503 else
4504 ac_compiler_gnu=no
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4508
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4512 if test $ac_compiler_gnu = yes; then
4513 GXX=yes
4514 else
4515 GXX=
4516 fi
4517 ac_test_CXXFLAGS=${CXXFLAGS+set}
4518 ac_save_CXXFLAGS=$CXXFLAGS
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4521 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4525 ac_cxx_werror_flag=yes
4526 ac_cv_prog_cxx_g=no
4527 CXXFLAGS="-g"
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530
4531 int
4532 main ()
4533 {
4534
4535 ;
4536 return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540 ac_cv_prog_cxx_g=yes
4541 else
4542 CXXFLAGS=""
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545
4546 int
4547 main ()
4548 {
4549
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4555
4556 else
4557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4558 CXXFLAGS="-g"
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561
4562 int
4563 main ()
4564 {
4565
4566 ;
4567 return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571 ac_cv_prog_cxx_g=yes
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4582 if test "$ac_test_CXXFLAGS" = set; then
4583 CXXFLAGS=$ac_save_CXXFLAGS
4584 elif test $ac_cv_prog_cxx_g = yes; then
4585 if test "$GXX" = yes; then
4586 CXXFLAGS="-g -O2"
4587 else
4588 CXXFLAGS="-g"
4589 fi
4590 else
4591 if test "$GXX" = yes; then
4592 CXXFLAGS="-O2"
4593 else
4594 CXXFLAGS=
4595 fi
4596 fi
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603
4604
4605
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -n "$GNATBIND"; then
4615 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628 done
4629 done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 GNATBIND=$ac_cv_prog_GNATBIND
4635 if test -n "$GNATBIND"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4637 $as_echo "$GNATBIND" >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 fi
4642
4643
4644 fi
4645 if test -z "$ac_cv_prog_GNATBIND"; then
4646 ac_ct_GNATBIND=$GNATBIND
4647 # Extract the first word of "gnatbind", so it can be a program name with args.
4648 set dummy gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$ac_ct_GNATBIND"; then
4655 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668 done
4669 done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4675 if test -n "$ac_ct_GNATBIND"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4677 $as_echo "$ac_ct_GNATBIND" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683 if test "x$ac_ct_GNATBIND" = x; then
4684 GNATBIND="no"
4685 else
4686 case $cross_compiling:$ac_tool_warned in
4687 yes:)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4691 esac
4692 GNATBIND=$ac_ct_GNATBIND
4693 fi
4694 else
4695 GNATBIND="$ac_cv_prog_GNATBIND"
4696 fi
4697
4698 if test -n "$ac_tool_prefix"; then
4699 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 if test -n "$GNATMAKE"; then
4707 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 GNATMAKE=$ac_cv_prog_GNATMAKE
4727 if test -n "$GNATMAKE"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4729 $as_echo "$GNATMAKE" >&6; }
4730 else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735
4736 fi
4737 if test -z "$ac_cv_prog_GNATMAKE"; then
4738 ac_ct_GNATMAKE=$GNATMAKE
4739 # Extract the first word of "gnatmake", so it can be a program name with args.
4740 set dummy gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if test -n "$ac_ct_GNATMAKE"; then
4747 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764 fi
4765 fi
4766 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4767 if test -n "$ac_ct_GNATMAKE"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4769 $as_echo "$ac_ct_GNATMAKE" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774
4775 if test "x$ac_ct_GNATMAKE" = x; then
4776 GNATMAKE="no"
4777 else
4778 case $cross_compiling:$ac_tool_warned in
4779 yes:)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4783 esac
4784 GNATMAKE=$ac_ct_GNATMAKE
4785 fi
4786 else
4787 GNATMAKE="$ac_cv_prog_GNATMAKE"
4788 fi
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4791 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4792 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 cat >conftest.adb <<EOF
4796 procedure conftest is begin null; end conftest;
4797 EOF
4798 acx_cv_cc_gcc_supports_ada=no
4799 # There is a bug in old released versions of GCC which causes the
4800 # driver to exit successfully when the appropriate language module
4801 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4802 # Therefore we must check for the error message as well as an
4803 # unsuccessful exit.
4804 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4805 # given a .adb file, but produce no object file. So we must check
4806 # if an object file was really produced to guard against this.
4807 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4808 if test x"$errors" = x && test -f conftest.$ac_objext; then
4809 acx_cv_cc_gcc_supports_ada=yes
4810 fi
4811 rm -f conftest.*
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4814 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4815
4816 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4817 have_gnat=yes
4818 else
4819 have_gnat=no
4820 fi
4821
4822
4823 # autoconf is lame and doesn't give us any substitution variable for this.
4824 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4825 NO_MINUS_C_MINUS_O=yes
4826 else
4827 OUTPUT_OPTION='-o $@'
4828 fi
4829
4830
4831
4832 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4833 # optimizations to be activated explicitly by the toplevel.
4834 case "$CC" in
4835 */prev-gcc/xgcc*) ;;
4836 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4837 esac
4838
4839
4840 # -------------------------
4841 # Check C compiler features
4842 # -------------------------
4843
4844
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4851 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4852 # On Suns, sometimes $CPP names a directory.
4853 if test -n "$CPP" && test -d "$CPP"; then
4854 CPP=
4855 fi
4856 if test -z "$CPP"; then
4857 if test "${ac_cv_prog_CPP+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 # Double quotes because CPP needs to be expanded
4861 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4862 do
4863 ac_preproc_ok=false
4864 for ac_c_preproc_warn_flag in '' yes
4865 do
4866 # Use a header file that comes with gcc, so configuring glibc
4867 # with a fresh cross-compiler works.
4868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869 # <limits.h> exists even on freestanding compilers.
4870 # On the NeXT, cc -E runs the code through the compiler's parser,
4871 # not just through cpp. "Syntax error" is here to catch this case.
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4874 #ifdef __STDC__
4875 # include <limits.h>
4876 #else
4877 # include <assert.h>
4878 #endif
4879 Syntax error
4880 _ACEOF
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4882
4883 else
4884 # Broken: fails on valid input.
4885 continue
4886 fi
4887 rm -f conftest.err conftest.$ac_ext
4888
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896 # Broken: success on invalid input.
4897 continue
4898 else
4899 # Passes both tests.
4900 ac_preproc_ok=:
4901 break
4902 fi
4903 rm -f conftest.err conftest.$ac_ext
4904
4905 done
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then :
4909 break
4910 fi
4911
4912 done
4913 ac_cv_prog_CPP=$CPP
4914
4915 fi
4916 CPP=$ac_cv_prog_CPP
4917 else
4918 ac_cv_prog_CPP=$CPP
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4921 $as_echo "$CPP" >&6; }
4922 ac_preproc_ok=false
4923 for ac_c_preproc_warn_flag in '' yes
4924 do
4925 # Use a header file that comes with gcc, so configuring glibc
4926 # with a fresh cross-compiler works.
4927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928 # <limits.h> exists even on freestanding compilers.
4929 # On the NeXT, cc -E runs the code through the compiler's parser,
4930 # not just through cpp. "Syntax error" is here to catch this case.
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933 #ifdef __STDC__
4934 # include <limits.h>
4935 #else
4936 # include <assert.h>
4937 #endif
4938 Syntax error
4939 _ACEOF
4940 if ac_fn_c_try_cpp "$LINENO"; then :
4941
4942 else
4943 # Broken: fails on valid input.
4944 continue
4945 fi
4946 rm -f conftest.err conftest.$ac_ext
4947
4948 # OK, works on sane cases. Now check whether nonexistent headers
4949 # can be detected and how.
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 #include <ac_nonexistent.h>
4953 _ACEOF
4954 if ac_fn_c_try_cpp "$LINENO"; then :
4955 # Broken: success on invalid input.
4956 continue
4957 else
4958 # Passes both tests.
4959 ac_preproc_ok=:
4960 break
4961 fi
4962 rm -f conftest.err conftest.$ac_ext
4963
4964 done
4965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4966 rm -f conftest.err conftest.$ac_ext
4967 if $ac_preproc_ok; then :
4968
4969 else
4970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4973 See \`config.log' for more details." "$LINENO" 5; }
4974 fi
4975
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4984 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4985 if test "${ac_cv_path_GREP+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -z "$GREP"; then
4989 ac_path_GREP_found=false
4990 # Loop through the user's path and test for each of PROGNAME-LIST
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4993 do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_prog in grep ggrep; do
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4999 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5000 # Check for GNU ac_path_GREP and select it if it is found.
5001 # Check for GNU $ac_path_GREP
5002 case `"$ac_path_GREP" --version 2>&1` in
5003 *GNU*)
5004 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5005 *)
5006 ac_count=0
5007 $as_echo_n 0123456789 >"conftest.in"
5008 while :
5009 do
5010 cat "conftest.in" "conftest.in" >"conftest.tmp"
5011 mv "conftest.tmp" "conftest.in"
5012 cp "conftest.in" "conftest.nl"
5013 $as_echo 'GREP' >> "conftest.nl"
5014 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5016 as_fn_arith $ac_count + 1 && ac_count=$as_val
5017 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5018 # Best one so far, save it but keep looking for a better one
5019 ac_cv_path_GREP="$ac_path_GREP"
5020 ac_path_GREP_max=$ac_count
5021 fi
5022 # 10*(2^10) chars as input seems more than enough
5023 test $ac_count -gt 10 && break
5024 done
5025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5026 esac
5027
5028 $ac_path_GREP_found && break 3
5029 done
5030 done
5031 done
5032 IFS=$as_save_IFS
5033 if test -z "$ac_cv_path_GREP"; then
5034 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5035 fi
5036 else
5037 ac_cv_path_GREP=$GREP
5038 fi
5039
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5042 $as_echo "$ac_cv_path_GREP" >&6; }
5043 GREP="$ac_cv_path_GREP"
5044
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5047 $as_echo_n "checking for egrep... " >&6; }
5048 if test "${ac_cv_path_EGREP+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5052 then ac_cv_path_EGREP="$GREP -E"
5053 else
5054 if test -z "$EGREP"; then
5055 ac_path_EGREP_found=false
5056 # Loop through the user's path and test for each of PROGNAME-LIST
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5059 do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_prog in egrep; do
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5065 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5066 # Check for GNU ac_path_EGREP and select it if it is found.
5067 # Check for GNU $ac_path_EGREP
5068 case `"$ac_path_EGREP" --version 2>&1` in
5069 *GNU*)
5070 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5071 *)
5072 ac_count=0
5073 $as_echo_n 0123456789 >"conftest.in"
5074 while :
5075 do
5076 cat "conftest.in" "conftest.in" >"conftest.tmp"
5077 mv "conftest.tmp" "conftest.in"
5078 cp "conftest.in" "conftest.nl"
5079 $as_echo 'EGREP' >> "conftest.nl"
5080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5082 as_fn_arith $ac_count + 1 && ac_count=$as_val
5083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5084 # Best one so far, save it but keep looking for a better one
5085 ac_cv_path_EGREP="$ac_path_EGREP"
5086 ac_path_EGREP_max=$ac_count
5087 fi
5088 # 10*(2^10) chars as input seems more than enough
5089 test $ac_count -gt 10 && break
5090 done
5091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5092 esac
5093
5094 $ac_path_EGREP_found && break 3
5095 done
5096 done
5097 done
5098 IFS=$as_save_IFS
5099 if test -z "$ac_cv_path_EGREP"; then
5100 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5101 fi
5102 else
5103 ac_cv_path_EGREP=$EGREP
5104 fi
5105
5106 fi
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5109 $as_echo "$ac_cv_path_EGREP" >&6; }
5110 EGREP="$ac_cv_path_EGREP"
5111
5112
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5114 $as_echo_n "checking for ANSI C header files... " >&6; }
5115 if test "${ac_cv_header_stdc+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120 #include <stdlib.h>
5121 #include <stdarg.h>
5122 #include <string.h>
5123 #include <float.h>
5124
5125 int
5126 main ()
5127 {
5128
5129 ;
5130 return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134 ac_cv_header_stdc=yes
5135 else
5136 ac_cv_header_stdc=no
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139
5140 if test $ac_cv_header_stdc = yes; then
5141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #include <string.h>
5145
5146 _ACEOF
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148 $EGREP "memchr" >/dev/null 2>&1; then :
5149
5150 else
5151 ac_cv_header_stdc=no
5152 fi
5153 rm -f conftest*
5154
5155 fi
5156
5157 if test $ac_cv_header_stdc = yes; then
5158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 #include <stdlib.h>
5162
5163 _ACEOF
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165 $EGREP "free" >/dev/null 2>&1; then :
5166
5167 else
5168 ac_cv_header_stdc=no
5169 fi
5170 rm -f conftest*
5171
5172 fi
5173
5174 if test $ac_cv_header_stdc = yes; then
5175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5176 if test "$cross_compiling" = yes; then :
5177 :
5178 else
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 #include <ctype.h>
5182 #include <stdlib.h>
5183 #if ((' ' & 0x0FF) == 0x020)
5184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5186 #else
5187 # define ISLOWER(c) \
5188 (('a' <= (c) && (c) <= 'i') \
5189 || ('j' <= (c) && (c) <= 'r') \
5190 || ('s' <= (c) && (c) <= 'z'))
5191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5192 #endif
5193
5194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195 int
5196 main ()
5197 {
5198 int i;
5199 for (i = 0; i < 256; i++)
5200 if (XOR (islower (i), ISLOWER (i))
5201 || toupper (i) != TOUPPER (i))
5202 return 2;
5203 return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_run "$LINENO"; then :
5207
5208 else
5209 ac_cv_header_stdc=no
5210 fi
5211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5212 conftest.$ac_objext conftest.beam conftest.$ac_ext
5213 fi
5214
5215 fi
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5218 $as_echo "$ac_cv_header_stdc" >&6; }
5219 if test $ac_cv_header_stdc = yes; then
5220
5221 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5222
5223 fi
5224
5225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5227 inttypes.h stdint.h unistd.h
5228 do :
5229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5230 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5231 "
5232 eval as_val=\$$as_ac_Header
5233 if test "x$as_val" = x""yes; then :
5234 cat >>confdefs.h <<_ACEOF
5235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5236 _ACEOF
5237
5238 fi
5239
5240 done
5241
5242
5243
5244 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5245 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5246 MINIX=yes
5247 else
5248 MINIX=
5249 fi
5250
5251
5252 if test "$MINIX" = yes; then
5253
5254 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5255
5256
5257 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5258
5259
5260 $as_echo "#define _MINIX 1" >>confdefs.h
5261
5262 fi
5263
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5266 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5267 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272
5273 # define __EXTENSIONS__ 1
5274 $ac_includes_default
5275 int
5276 main ()
5277 {
5278
5279 ;
5280 return 0;
5281 }
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284 ac_cv_safe_to_define___extensions__=yes
5285 else
5286 ac_cv_safe_to_define___extensions__=no
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5291 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5292 test $ac_cv_safe_to_define___extensions__ = yes &&
5293 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5294
5295 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5296
5297 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5298
5299 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5300
5301 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5302
5303
5304 ac_ext=c
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5313 CPP=
5314 fi
5315 if test -z "$CPP"; then
5316 if test "${ac_cv_prog_CPP+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 # Double quotes because CPP needs to be expanded
5320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5321 do
5322 ac_preproc_ok=false
5323 for ac_c_preproc_warn_flag in '' yes
5324 do
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 #ifdef __STDC__
5334 # include <limits.h>
5335 #else
5336 # include <assert.h>
5337 #endif
5338 Syntax error
5339 _ACEOF
5340 if ac_fn_c_try_cpp "$LINENO"; then :
5341
5342 else
5343 # Broken: fails on valid input.
5344 continue
5345 fi
5346 rm -f conftest.err conftest.$ac_ext
5347
5348 # OK, works on sane cases. Now check whether nonexistent headers
5349 # can be detected and how.
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #include <ac_nonexistent.h>
5353 _ACEOF
5354 if ac_fn_c_try_cpp "$LINENO"; then :
5355 # Broken: success on invalid input.
5356 continue
5357 else
5358 # Passes both tests.
5359 ac_preproc_ok=:
5360 break
5361 fi
5362 rm -f conftest.err conftest.$ac_ext
5363
5364 done
5365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5366 rm -f conftest.err conftest.$ac_ext
5367 if $ac_preproc_ok; then :
5368 break
5369 fi
5370
5371 done
5372 ac_cv_prog_CPP=$CPP
5373
5374 fi
5375 CPP=$ac_cv_prog_CPP
5376 else
5377 ac_cv_prog_CPP=$CPP
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5380 $as_echo "$CPP" >&6; }
5381 ac_preproc_ok=false
5382 for ac_c_preproc_warn_flag in '' yes
5383 do
5384 # Use a header file that comes with gcc, so configuring glibc
5385 # with a fresh cross-compiler works.
5386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387 # <limits.h> exists even on freestanding compilers.
5388 # On the NeXT, cc -E runs the code through the compiler's parser,
5389 # not just through cpp. "Syntax error" is here to catch this case.
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 #ifdef __STDC__
5393 # include <limits.h>
5394 #else
5395 # include <assert.h>
5396 #endif
5397 Syntax error
5398 _ACEOF
5399 if ac_fn_c_try_cpp "$LINENO"; then :
5400
5401 else
5402 # Broken: fails on valid input.
5403 continue
5404 fi
5405 rm -f conftest.err conftest.$ac_ext
5406
5407 # OK, works on sane cases. Now check whether nonexistent headers
5408 # can be detected and how.
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 #include <ac_nonexistent.h>
5412 _ACEOF
5413 if ac_fn_c_try_cpp "$LINENO"; then :
5414 # Broken: success on invalid input.
5415 continue
5416 else
5417 # Passes both tests.
5418 ac_preproc_ok=:
5419 break
5420 fi
5421 rm -f conftest.err conftest.$ac_ext
5422
5423 done
5424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5425 rm -f conftest.err conftest.$ac_ext
5426 if $ac_preproc_ok; then :
5427
5428 else
5429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5431 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5432 See \`config.log' for more details." "$LINENO" 5; }
5433 fi
5434
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5442 $as_echo_n "checking for inline... " >&6; }
5443 if test "${ac_cv_c_inline+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 ac_cv_c_inline=no
5447 for ac_kw in inline __inline__ __inline; do
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #ifndef __cplusplus
5451 typedef int foo_t;
5452 static $ac_kw foo_t static_foo () {return 0; }
5453 $ac_kw foo_t foo () {return 0; }
5454 #endif
5455
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458 ac_cv_c_inline=$ac_kw
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 test "$ac_cv_c_inline" != no && break
5462 done
5463
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5466 $as_echo "$ac_cv_c_inline" >&6; }
5467
5468 case $ac_cv_c_inline in
5469 inline | yes) ;;
5470 *)
5471 case $ac_cv_c_inline in
5472 no) ac_val=;;
5473 *) ac_val=$ac_cv_c_inline;;
5474 esac
5475 cat >>confdefs.h <<_ACEOF
5476 #ifndef __cplusplus
5477 #define inline $ac_val
5478 #endif
5479 _ACEOF
5480 ;;
5481 esac
5482
5483
5484 # sizeof(char) is 1 by definition.
5485 # The cast to long int works around a bug in the HP C Compiler
5486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5488 # This bug is HP SR number 8606223364.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5490 $as_echo_n "checking size of void *... " >&6; }
5491 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5495
5496 else
5497 if test "$ac_cv_type_void_p" = yes; then
5498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5500 { as_fn_set_status 77
5501 as_fn_error "cannot compute sizeof (void *)
5502 See \`config.log' for more details." "$LINENO" 5; }; }
5503 else
5504 ac_cv_sizeof_void_p=0
5505 fi
5506 fi
5507
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5510 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5511
5512
5513
5514 cat >>confdefs.h <<_ACEOF
5515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5516 _ACEOF
5517
5518
5519 # The cast to long int works around a bug in the HP C Compiler
5520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5522 # This bug is HP SR number 8606223364.
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5524 $as_echo_n "checking size of short... " >&6; }
5525 if test "${ac_cv_sizeof_short+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5529
5530 else
5531 if test "$ac_cv_type_short" = yes; then
5532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5534 { as_fn_set_status 77
5535 as_fn_error "cannot compute sizeof (short)
5536 See \`config.log' for more details." "$LINENO" 5; }; }
5537 else
5538 ac_cv_sizeof_short=0
5539 fi
5540 fi
5541
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5544 $as_echo "$ac_cv_sizeof_short" >&6; }
5545
5546
5547
5548 cat >>confdefs.h <<_ACEOF
5549 #define SIZEOF_SHORT $ac_cv_sizeof_short
5550 _ACEOF
5551
5552
5553 # The cast to long int works around a bug in the HP C Compiler
5554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5556 # This bug is HP SR number 8606223364.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5558 $as_echo_n "checking size of int... " >&6; }
5559 if test "${ac_cv_sizeof_int+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5563
5564 else
5565 if test "$ac_cv_type_int" = yes; then
5566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568 { as_fn_set_status 77
5569 as_fn_error "cannot compute sizeof (int)
5570 See \`config.log' for more details." "$LINENO" 5; }; }
5571 else
5572 ac_cv_sizeof_int=0
5573 fi
5574 fi
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5578 $as_echo "$ac_cv_sizeof_int" >&6; }
5579
5580
5581
5582 cat >>confdefs.h <<_ACEOF
5583 #define SIZEOF_INT $ac_cv_sizeof_int
5584 _ACEOF
5585
5586
5587 # The cast to long int works around a bug in the HP C Compiler
5588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5590 # This bug is HP SR number 8606223364.
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5592 $as_echo_n "checking size of long... " >&6; }
5593 if test "${ac_cv_sizeof_long+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5597
5598 else
5599 if test "$ac_cv_type_long" = yes; then
5600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5602 { as_fn_set_status 77
5603 as_fn_error "cannot compute sizeof (long)
5604 See \`config.log' for more details." "$LINENO" 5; }; }
5605 else
5606 ac_cv_sizeof_long=0
5607 fi
5608 fi
5609
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5612 $as_echo "$ac_cv_sizeof_long" >&6; }
5613
5614
5615
5616 cat >>confdefs.h <<_ACEOF
5617 #define SIZEOF_LONG $ac_cv_sizeof_long
5618 _ACEOF
5619
5620
5621 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5622 if test "x$ac_cv_type_long_long" = x""yes; then :
5623
5624 cat >>confdefs.h <<_ACEOF
5625 #define HAVE_LONG_LONG 1
5626 _ACEOF
5627
5628 # The cast to long int works around a bug in the HP C Compiler
5629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5631 # This bug is HP SR number 8606223364.
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5633 $as_echo_n "checking size of long long... " >&6; }
5634 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5638
5639 else
5640 if test "$ac_cv_type_long_long" = yes; then
5641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643 { as_fn_set_status 77
5644 as_fn_error "cannot compute sizeof (long long)
5645 See \`config.log' for more details." "$LINENO" 5; }; }
5646 else
5647 ac_cv_sizeof_long_long=0
5648 fi
5649 fi
5650
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5653 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5654
5655
5656
5657 cat >>confdefs.h <<_ACEOF
5658 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5659 _ACEOF
5660
5661
5662 fi
5663
5664 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5665 if test "x$ac_cv_type___int64" = x""yes; then :
5666
5667 cat >>confdefs.h <<_ACEOF
5668 #define HAVE___INT64 1
5669 _ACEOF
5670
5671 # The cast to long int works around a bug in the HP C Compiler
5672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5674 # This bug is HP SR number 8606223364.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5676 $as_echo_n "checking size of __int64... " >&6; }
5677 if test "${ac_cv_sizeof___int64+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5681
5682 else
5683 if test "$ac_cv_type___int64" = yes; then
5684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5686 { as_fn_set_status 77
5687 as_fn_error "cannot compute sizeof (__int64)
5688 See \`config.log' for more details." "$LINENO" 5; }; }
5689 else
5690 ac_cv_sizeof___int64=0
5691 fi
5692 fi
5693
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5696 $as_echo "$ac_cv_sizeof___int64" >&6; }
5697
5698
5699
5700 cat >>confdefs.h <<_ACEOF
5701 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5702 _ACEOF
5703
5704
5705 fi
5706
5707 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5708 case $ac_cv_c_int8_t in #(
5709 no|yes) ;; #(
5710 *)
5711
5712 cat >>confdefs.h <<_ACEOF
5713 #define int8_t $ac_cv_c_int8_t
5714 _ACEOF
5715 ;;
5716 esac
5717
5718 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5719 case $ac_cv_c_int16_t in #(
5720 no|yes) ;; #(
5721 *)
5722
5723 cat >>confdefs.h <<_ACEOF
5724 #define int16_t $ac_cv_c_int16_t
5725 _ACEOF
5726 ;;
5727 esac
5728
5729 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5730 case $ac_cv_c_int32_t in #(
5731 no|yes) ;; #(
5732 *)
5733
5734 cat >>confdefs.h <<_ACEOF
5735 #define int32_t $ac_cv_c_int32_t
5736 _ACEOF
5737 ;;
5738 esac
5739
5740 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5741 case $ac_cv_c_int64_t in #(
5742 no|yes) ;; #(
5743 *)
5744
5745 cat >>confdefs.h <<_ACEOF
5746 #define int64_t $ac_cv_c_int64_t
5747 _ACEOF
5748 ;;
5749 esac
5750
5751
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5753 $as_echo_n "checking for long long int... " >&6; }
5754 if test "${ac_cv_type_long_long_int+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759
5760 /* For now, do not test the preprocessor; as of 2007 there are too many
5761 implementations with broken preprocessors. Perhaps this can
5762 be revisited in 2012. In the meantime, code should not expect
5763 #if to work with literals wider than 32 bits. */
5764 /* Test literals. */
5765 long long int ll = 9223372036854775807ll;
5766 long long int nll = -9223372036854775807LL;
5767 unsigned long long int ull = 18446744073709551615ULL;
5768 /* Test constant expressions. */
5769 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5770 ? 1 : -1)];
5771 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5772 ? 1 : -1)];
5773 int i = 63;
5774 int
5775 main ()
5776 {
5777 /* Test availability of runtime routines for shift and division. */
5778 long long int llmax = 9223372036854775807ll;
5779 unsigned long long int ullmax = 18446744073709551615ull;
5780 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5781 | (llmax / ll) | (llmax % ll)
5782 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5783 | (ullmax / ull) | (ullmax % ull));
5784 ;
5785 return 0;
5786 }
5787
5788 _ACEOF
5789 if ac_fn_c_try_link "$LINENO"; then :
5790 if test "$cross_compiling" = yes; then :
5791 ac_cv_type_long_long_int=yes
5792 else
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795 #include <limits.h>
5796 #ifndef LLONG_MAX
5797 # define HALF \
5798 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5799 # define LLONG_MAX (HALF - 1 + HALF)
5800 #endif
5801 int
5802 main ()
5803 {
5804 long long int n = 1;
5805 int i;
5806 for (i = 0; ; i++)
5807 {
5808 long long int m = n << i;
5809 if (m >> i != n)
5810 return 1;
5811 if (LLONG_MAX / 2 < m)
5812 break;
5813 }
5814 return 0;
5815 ;
5816 return 0;
5817 }
5818 _ACEOF
5819 if ac_fn_c_try_run "$LINENO"; then :
5820 ac_cv_type_long_long_int=yes
5821 else
5822 ac_cv_type_long_long_int=no
5823 fi
5824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5825 conftest.$ac_objext conftest.beam conftest.$ac_ext
5826 fi
5827
5828 else
5829 ac_cv_type_long_long_int=no
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext \
5832 conftest$ac_exeext conftest.$ac_ext
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5835 $as_echo "$ac_cv_type_long_long_int" >&6; }
5836 if test $ac_cv_type_long_long_int = yes; then
5837
5838 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5839
5840 fi
5841
5842
5843
5844 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5845 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5846
5847 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5848
5849 else
5850 test $ac_cv_type_long_long_int = yes \
5851 && ac_type='long long int' \
5852 || ac_type='long int'
5853
5854 cat >>confdefs.h <<_ACEOF
5855 #define intmax_t $ac_type
5856 _ACEOF
5857
5858 fi
5859
5860
5861
5862 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5863 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5864
5865 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5866
5867 else
5868 for ac_type in 'int' 'long int' 'long long int'; do
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871 $ac_includes_default
5872 int
5873 main ()
5874 {
5875 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5876 test_array [0] = 0
5877
5878 ;
5879 return 0;
5880 }
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883
5884 cat >>confdefs.h <<_ACEOF
5885 #define intptr_t $ac_type
5886 _ACEOF
5887
5888 ac_type=
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 test -z "$ac_type" && break
5892 done
5893 fi
5894
5895
5896 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5897 case $ac_cv_c_uint8_t in #(
5898 no|yes) ;; #(
5899 *)
5900
5901 $as_echo "#define _UINT8_T 1" >>confdefs.h
5902
5903
5904 cat >>confdefs.h <<_ACEOF
5905 #define uint8_t $ac_cv_c_uint8_t
5906 _ACEOF
5907 ;;
5908 esac
5909
5910 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5911 case $ac_cv_c_uint16_t in #(
5912 no|yes) ;; #(
5913 *)
5914
5915
5916 cat >>confdefs.h <<_ACEOF
5917 #define uint16_t $ac_cv_c_uint16_t
5918 _ACEOF
5919 ;;
5920 esac
5921
5922 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5923 case $ac_cv_c_uint32_t in #(
5924 no|yes) ;; #(
5925 *)
5926
5927 $as_echo "#define _UINT32_T 1" >>confdefs.h
5928
5929
5930 cat >>confdefs.h <<_ACEOF
5931 #define uint32_t $ac_cv_c_uint32_t
5932 _ACEOF
5933 ;;
5934 esac
5935
5936 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5937 case $ac_cv_c_uint64_t in #(
5938 no|yes) ;; #(
5939 *)
5940
5941 $as_echo "#define _UINT64_T 1" >>confdefs.h
5942
5943
5944 cat >>confdefs.h <<_ACEOF
5945 #define uint64_t $ac_cv_c_uint64_t
5946 _ACEOF
5947 ;;
5948 esac
5949
5950
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5952 $as_echo_n "checking for unsigned long long int... " >&6; }
5953 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5958
5959 /* For now, do not test the preprocessor; as of 2007 there are too many
5960 implementations with broken preprocessors. Perhaps this can
5961 be revisited in 2012. In the meantime, code should not expect
5962 #if to work with literals wider than 32 bits. */
5963 /* Test literals. */
5964 long long int ll = 9223372036854775807ll;
5965 long long int nll = -9223372036854775807LL;
5966 unsigned long long int ull = 18446744073709551615ULL;
5967 /* Test constant expressions. */
5968 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5969 ? 1 : -1)];
5970 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5971 ? 1 : -1)];
5972 int i = 63;
5973 int
5974 main ()
5975 {
5976 /* Test availability of runtime routines for shift and division. */
5977 long long int llmax = 9223372036854775807ll;
5978 unsigned long long int ullmax = 18446744073709551615ull;
5979 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5980 | (llmax / ll) | (llmax % ll)
5981 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5982 | (ullmax / ull) | (ullmax % ull));
5983 ;
5984 return 0;
5985 }
5986
5987 _ACEOF
5988 if ac_fn_c_try_link "$LINENO"; then :
5989 ac_cv_type_unsigned_long_long_int=yes
5990 else
5991 ac_cv_type_unsigned_long_long_int=no
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext \
5994 conftest$ac_exeext conftest.$ac_ext
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5997 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5998 if test $ac_cv_type_unsigned_long_long_int = yes; then
5999
6000 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6001
6002 fi
6003
6004
6005
6006 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6007 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6008
6009 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6010
6011 else
6012 test $ac_cv_type_unsigned_long_long_int = yes \
6013 && ac_type='unsigned long long int' \
6014 || ac_type='unsigned long int'
6015
6016 cat >>confdefs.h <<_ACEOF
6017 #define uintmax_t $ac_type
6018 _ACEOF
6019
6020 fi
6021
6022
6023
6024 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6025 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6026
6027 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6028
6029 else
6030 for ac_type in 'unsigned int' 'unsigned long int' \
6031 'unsigned long long int'; do
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 $ac_includes_default
6035 int
6036 main ()
6037 {
6038 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6039 test_array [0] = 0
6040
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"; then :
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define uintptr_t $ac_type
6049 _ACEOF
6050
6051 ac_type=
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 test -z "$ac_type" && break
6055 done
6056 fi
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072 # ---------------------
6073 # Warnings and checking
6074 # ---------------------
6075
6076 # Check $CC warning features (if it's GCC).
6077 # We want to use -pedantic, but we don't want warnings about
6078 # * 'long long'
6079 # * variadic macros
6080 # * overlong strings
6081 # So, we only use -pedantic if we can disable those warnings.
6082
6083 loose_warn=
6084 save_CFLAGS="$CFLAGS"
6085 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6086 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6087
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6089 $as_echo_n "checking whether $CC supports $option... " >&6; }
6090 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 CFLAGS="$option"
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096
6097 int
6098 main ()
6099 {
6100
6101 ;
6102 return 0;
6103 }
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"; then :
6106 eval "$as_acx_Woption=yes"
6107 else
6108 eval "$as_acx_Woption=no"
6109 fi
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111
6112 fi
6113 eval ac_res=\$$as_acx_Woption
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6115 $as_echo "$ac_res" >&6; }
6116 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6117 loose_warn="$loose_warn${loose_warn:+ }$option"
6118 fi
6119 done
6120 CFLAGS="$save_CFLAGS"
6121
6122 c_loose_warn=
6123 save_CFLAGS="$CFLAGS"
6124 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6125 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6126
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6128 $as_echo_n "checking whether $CC supports $option... " >&6; }
6129 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 CFLAGS="$option"
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135
6136 int
6137 main ()
6138 {
6139
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145 eval "$as_acx_Woption=yes"
6146 else
6147 eval "$as_acx_Woption=no"
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150
6151 fi
6152 eval ac_res=\$$as_acx_Woption
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6154 $as_echo "$ac_res" >&6; }
6155 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6156 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6157 fi
6158 done
6159 CFLAGS="$save_CFLAGS"
6160
6161 strict_warn=
6162 save_CFLAGS="$CFLAGS"
6163 for option in -Wmissing-format-attribute; do
6164 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6167 $as_echo_n "checking whether $CC supports $option... " >&6; }
6168 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 CFLAGS="$option"
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6174
6175 int
6176 main ()
6177 {
6178
6179 ;
6180 return 0;
6181 }
6182 _ACEOF
6183 if ac_fn_c_try_compile "$LINENO"; then :
6184 eval "$as_acx_Woption=yes"
6185 else
6186 eval "$as_acx_Woption=no"
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189
6190 fi
6191 eval ac_res=\$$as_acx_Woption
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6193 $as_echo "$ac_res" >&6; }
6194 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6195 strict_warn="$strict_warn${strict_warn:+ }$option"
6196 fi
6197 done
6198 CFLAGS="$save_CFLAGS"
6199
6200 c_strict_warn=
6201 save_CFLAGS="$CFLAGS"
6202 for option in -Wold-style-definition -Wc++-compat; do
6203 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6204
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6206 $as_echo_n "checking whether $CC supports $option... " >&6; }
6207 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 CFLAGS="$option"
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213
6214 int
6215 main ()
6216 {
6217
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"; then :
6223 eval "$as_acx_Woption=yes"
6224 else
6225 eval "$as_acx_Woption=no"
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228
6229 fi
6230 eval ac_res=\$$as_acx_Woption
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6232 $as_echo "$ac_res" >&6; }
6233 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6234 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6235 fi
6236 done
6237 CFLAGS="$save_CFLAGS"
6238
6239 if test "$GCC" = yes; then :
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6241 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6242 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 save_CFLAGS="$CFLAGS"
6246 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249
6250 int
6251 main ()
6252 {
6253
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 if ac_fn_c_try_compile "$LINENO"; then :
6259 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6260 else
6261 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6262 fi
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 CFLAGS="$save_CFLAGS"
6265 fi
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6267 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6268 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6269 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6270 fi
6271
6272 fi
6273
6274 # Check whether --enable-werror-always was given.
6275 if test "${enable_werror_always+set}" = set; then :
6276 enableval=$enable_werror_always;
6277 else
6278 enable_werror_always=no
6279 fi
6280
6281 if test $enable_werror_always = yes; then :
6282 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6283 fi
6284
6285
6286
6287 # The above macros do nothing if the compiler is not GCC. However, the
6288 # Makefile has more goo to add other flags, so these variables are used
6289 # to enable warnings only for GCC.
6290 warn_cflags=
6291 warn_cxxflags=
6292 if test "x$GCC" = "xyes"; then
6293 warn_cflags='$(GCC_WARN_CFLAGS)'
6294 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6295 fi
6296
6297
6298
6299 # Enable expensive internal checks
6300 is_release=
6301 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6302 is_release=yes
6303 fi
6304
6305 # Check whether --enable-checking was given.
6306 if test "${enable_checking+set}" = set; then :
6307 enableval=$enable_checking; ac_checking_flags="${enableval}"
6308 else
6309
6310 # Determine the default checks.
6311 if test x$is_release = x ; then
6312 ac_checking_flags=yes
6313 else
6314 ac_checking_flags=release
6315 fi
6316 fi
6317
6318 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6319 for check in release $ac_checking_flags
6320 do
6321 case $check in
6322 # these set all the flags to specific states
6323 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6324 ac_fold_checking= ; ac_gc_checking=1 ;
6325 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6326 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6327 ac_tree_checking=1 ; ac_valgrind_checking= ;
6328 ac_types_checking=1 ;;
6329 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6330 ac_fold_checking= ; ac_gc_checking= ;
6331 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6332 ac_rtlflag_checking= ; ac_runtime_checking= ;
6333 ac_tree_checking= ; ac_valgrind_checking= ;
6334 ac_types_checking= ;;
6335 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6336 ac_fold_checking=1 ; ac_gc_checking=1 ;
6337 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6338 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6339 ac_tree_checking=1 ; ac_valgrind_checking= ;
6340 ac_types_checking=1 ;;
6341 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6342 ac_fold_checking= ; ac_gc_checking= ;
6343 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6344 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6345 ac_tree_checking= ; ac_valgrind_checking= ;
6346 ac_types_checking= ;;
6347 # these enable particular checks
6348 assert) ac_assert_checking=1 ;;
6349 df) ac_df_checking=1 ;;
6350 fold) ac_fold_checking=1 ;;
6351 gc) ac_gc_checking=1 ;;
6352 gcac) ac_gc_always_collect=1 ;;
6353 gimple) ac_gimple_checking=1 ;;
6354 misc) ac_checking=1 ;;
6355 rtl) ac_rtl_checking=1 ;;
6356 rtlflag) ac_rtlflag_checking=1 ;;
6357 runtime) ac_runtime_checking=1 ;;
6358 tree) ac_tree_checking=1 ;;
6359 types) ac_types_checking=1 ;;
6360 valgrind) ac_valgrind_checking=1 ;;
6361 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6362 esac
6363 done
6364 IFS="$ac_save_IFS"
6365
6366 nocommon_flag=""
6367 if test x$ac_checking != x ; then
6368
6369 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6370
6371 nocommon_flag=-fno-common
6372 fi
6373
6374 if test x$ac_df_checking != x ; then
6375
6376 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6377
6378 fi
6379 if test x$ac_assert_checking != x ; then
6380
6381 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6382
6383 fi
6384 if test x$ac_gimple_checking != x ; then
6385
6386 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6387
6388 fi
6389
6390 if test x$ac_runtime_checking != x ; then
6391
6392 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6393
6394 fi
6395 if test x$ac_tree_checking != x ; then
6396
6397 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6398
6399 TREEBROWSER=tree-browser.o
6400 fi
6401 if test x$ac_types_checking != x ; then
6402
6403 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6404
6405 fi
6406
6407 if test x$ac_rtl_checking != x ; then
6408
6409 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6410
6411 fi
6412 if test x$ac_rtlflag_checking != x ; then
6413
6414 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6415
6416 fi
6417 if test x$ac_gc_checking != x ; then
6418
6419 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6420
6421 fi
6422 if test x$ac_gc_always_collect != x ; then
6423
6424 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6425
6426 fi
6427 if test x$ac_fold_checking != x ; then
6428
6429 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6430
6431 fi
6432 valgrind_path_defines=
6433 valgrind_command=
6434
6435 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6436 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6437 have_valgrind_h=yes
6438 else
6439 have_valgrind_h=no
6440 fi
6441
6442
6443
6444 if test x$ac_valgrind_checking != x ; then
6445 # It is certainly possible that there's valgrind but no valgrind.h.
6446 # GCC relies on making annotations so we must have both.
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6448 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 #include <valgrind/memcheck.h>
6452 #ifndef VALGRIND_DISCARD
6453 #error VALGRIND_DISCARD not defined
6454 #endif
6455 _ACEOF
6456 if ac_fn_c_try_cpp "$LINENO"; then :
6457 gcc_cv_header_valgrind_memcheck_h=yes
6458 else
6459 gcc_cv_header_valgrind_memcheck_h=no
6460 fi
6461 rm -f conftest.err conftest.$ac_ext
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6463 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6465 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #include <memcheck.h>
6469 #ifndef VALGRIND_DISCARD
6470 #error VALGRIND_DISCARD not defined
6471 #endif
6472 _ACEOF
6473 if ac_fn_c_try_cpp "$LINENO"; then :
6474 gcc_cv_header_memcheck_h=yes
6475 else
6476 gcc_cv_header_memcheck_h=no
6477 fi
6478 rm -f conftest.err conftest.$ac_ext
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6480 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6481
6482 # Prepare PATH_SEPARATOR.
6483 # The user is always right.
6484 if test "${PATH_SEPARATOR+set}" != set; then
6485 echo "#! /bin/sh" >conf$$.sh
6486 echo "exit 0" >>conf$$.sh
6487 chmod +x conf$$.sh
6488 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6489 PATH_SEPARATOR=';'
6490 else
6491 PATH_SEPARATOR=:
6492 fi
6493 rm -f conf$$.sh
6494 fi
6495
6496 # Find out how to test for executable files. Don't use a zero-byte file,
6497 # as systems may use methods other than mode bits to determine executability.
6498 cat >conf$$.file <<_ASEOF
6499 #! /bin/sh
6500 exit 0
6501 _ASEOF
6502 chmod +x conf$$.file
6503 if test -x conf$$.file >/dev/null 2>&1; then
6504 ac_executable_p="test -x"
6505 else
6506 ac_executable_p="test -f"
6507 fi
6508 rm -f conf$$.file
6509
6510 # Extract the first word of "valgrind", so it can be a program name with args.
6511 set dummy valgrind; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 case "$valgrind_path" in
6518 [\\/]* | ?:[\\/]*)
6519 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6520 ;;
6521 *)
6522 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6523 for ac_dir in $PATH; do
6524 IFS="$ac_save_IFS"
6525 test -z "$ac_dir" && ac_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6528 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6529 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6530 break 2
6531 fi
6532 fi
6533 done
6534 done
6535 IFS="$ac_save_IFS"
6536 ;;
6537 esac
6538 fi
6539 valgrind_path="$ac_cv_path_valgrind_path"
6540 if test -n "$valgrind_path"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6542 $as_echo "$valgrind_path" >&6; }
6543 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548 if test "x$valgrind_path" = "x" \
6549 || (test $have_valgrind_h = no \
6550 && test $gcc_cv_header_memcheck_h = no \
6551 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6552 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6553 fi
6554 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6555 valgrind_command="$valgrind_path -q"
6556
6557 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6558
6559 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6560
6561 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6562
6563 fi
6564 if test $gcc_cv_header_memcheck_h = yes; then
6565
6566 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6567
6568 fi
6569 fi
6570
6571
6572
6573 # Enable code coverage collection
6574 # Check whether --enable-coverage was given.
6575 if test "${enable_coverage+set}" = set; then :
6576 enableval=$enable_coverage; case "${enableval}" in
6577 yes|noopt)
6578 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6579 ;;
6580 opt)
6581 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6582 ;;
6583 no)
6584 # a.k.a. --disable-coverage
6585 coverage_flags=""
6586 ;;
6587 *)
6588 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6589 ;;
6590 esac
6591 else
6592 coverage_flags=""
6593 fi
6594
6595
6596
6597 # Check whether --enable-gather-detailed-mem-stats was given.
6598 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6599 enableval=$enable_gather_detailed_mem_stats;
6600 else
6601 enable_gather_detailed_mem_stats=no
6602 fi
6603
6604 if test x$enable_gather_detailed_mem_stats = xyes ; then
6605
6606 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6607
6608 fi
6609
6610 # -------------------------------
6611 # Miscenalleous configure options
6612 # -------------------------------
6613
6614 # See if we are building gcc with C++.
6615 # Check whether --enable-build-with-cxx was given.
6616 if test "${enable_build_with_cxx+set}" = set; then :
6617 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6618 else
6619 ENABLE_BUILD_WITH_CXX=no
6620 fi
6621
6622
6623
6624 # With stabs
6625
6626 # Check whether --with-stabs was given.
6627 if test "${with_stabs+set}" = set; then :
6628 withval=$with_stabs; stabs="$with_stabs"
6629 else
6630 stabs=no
6631 fi
6632
6633
6634 # Determine whether or not multilibs are enabled.
6635 # Check whether --enable-multilib was given.
6636 if test "${enable_multilib+set}" = set; then :
6637 enableval=$enable_multilib;
6638 else
6639 enable_multilib=yes
6640 fi
6641
6642
6643
6644 # Enable __cxa_atexit for C++.
6645 # Check whether --enable-__cxa_atexit was given.
6646 if test "${enable___cxa_atexit+set}" = set; then :
6647 enableval=$enable___cxa_atexit;
6648 fi
6649
6650
6651 # Enable C extension for decimal float if target supports it.
6652
6653 # Check whether --enable-decimal-float was given.
6654 if test "${enable_decimal_float+set}" = set; then :
6655 enableval=$enable_decimal_float;
6656 case $enable_decimal_float in
6657 yes | no | bid | dpd) ;;
6658 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6659 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6660 esac
6661
6662 else
6663
6664 case $target in
6665 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux*)
6666 enable_decimal_float=yes
6667 ;;
6668 *)
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6670 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6671 enable_decimal_float=no
6672 ;;
6673 esac
6674
6675 fi
6676
6677
6678 # x86's use BID format instead of DPD
6679 case x$enable_decimal_float in
6680 xyes)
6681 case $target in
6682 i?86*-*-* | x86_64*-*-*)
6683 enable_decimal_float=bid
6684 ;;
6685 *)
6686 enable_decimal_float=dpd
6687 ;;
6688 esac
6689 ;;
6690 xno)
6691 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6692 # dependency on libdecnumber.
6693 enable_decimal_float=dpd
6694 ;;
6695 esac
6696
6697
6698
6699
6700 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6701
6702 cat >>confdefs.h <<_ACEOF
6703 #define ENABLE_DECIMAL_FLOAT $dfp
6704 _ACEOF
6705
6706
6707 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6708
6709 cat >>confdefs.h <<_ACEOF
6710 #define ENABLE_DECIMAL_BID_FORMAT $bid
6711 _ACEOF
6712
6713
6714 # Enable C extension for fixed-point arithmetic.
6715 # Check whether --enable-fixed-point was given.
6716 if test "${enable_fixed_point+set}" = set; then :
6717 enableval=$enable_fixed_point;
6718
6719 else
6720
6721 case $target in
6722 mips*-*-*)
6723 case $host in
6724 mips*-sgi-irix*)
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6726 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6727 enable_fixed_point=no
6728 ;;
6729 *)
6730 enable_fixed_point=yes
6731 ;;
6732 esac
6733 ;;
6734 *)
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6736 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6737 enable_fixed_point=no
6738 ;;
6739 esac
6740
6741 fi
6742
6743
6744
6745 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6746
6747 cat >>confdefs.h <<_ACEOF
6748 #define ENABLE_FIXED_POINT $fixedpoint
6749 _ACEOF
6750
6751
6752 # Enable threads
6753 # Pass with no value to take the default
6754 # Pass with a value to specify a thread package
6755 # Check whether --enable-threads was given.
6756 if test "${enable_threads+set}" = set; then :
6757 enableval=$enable_threads;
6758 else
6759 enable_threads=''
6760 fi
6761
6762
6763 # Check whether --enable-tls was given.
6764 if test "${enable_tls+set}" = set; then :
6765 enableval=$enable_tls;
6766 case $enable_tls in
6767 yes | no) ;;
6768 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6769 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6770 esac
6771
6772 else
6773 enable_tls=''
6774 fi
6775
6776
6777 # Check whether --enable-objc-gc was given.
6778 if test "${enable_objc_gc+set}" = set; then :
6779 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6780 objc_boehm_gc=''
6781 else
6782 objc_boehm_gc=1
6783 fi
6784 else
6785 objc_boehm_gc=''
6786 fi
6787
6788
6789
6790 # Check whether --with-dwarf2 was given.
6791 if test "${with_dwarf2+set}" = set; then :
6792 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6793 else
6794 dwarf2=no
6795 fi
6796
6797
6798 # Check whether --enable-shared was given.
6799 if test "${enable_shared+set}" = set; then :
6800 enableval=$enable_shared;
6801 case $enable_shared in
6802 yes | no) ;;
6803 *)
6804 enable_shared=no
6805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6806 for pkg in $enableval; do
6807 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6808 enable_shared=yes
6809 fi
6810 done
6811 IFS="$ac_save_ifs"
6812 ;;
6813 esac
6814
6815 else
6816 enable_shared=yes
6817 fi
6818
6819
6820
6821
6822 # Check whether --with-build-sysroot was given.
6823 if test "${with_build_sysroot+set}" = set; then :
6824 withval=$with_build_sysroot;
6825 fi
6826
6827
6828
6829 # Check whether --with-sysroot was given.
6830 if test "${with_sysroot+set}" = set; then :
6831 withval=$with_sysroot;
6832 case ${with_sysroot} in
6833 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6834 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6835 esac
6836
6837 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6838 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6839
6840 if test "x$prefix" = xNONE; then
6841 test_prefix=/usr/local
6842 else
6843 test_prefix=$prefix
6844 fi
6845 if test "x$exec_prefix" = xNONE; then
6846 test_exec_prefix=$test_prefix
6847 else
6848 test_exec_prefix=$exec_prefix
6849 fi
6850 case ${TARGET_SYSTEM_ROOT} in
6851 "${test_prefix}"|"${test_prefix}/"*|\
6852 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6853 '${prefix}'|'${prefix}/'*|\
6854 '${exec_prefix}'|'${exec_prefix}/'*)
6855 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6856 TARGET_SYSTEM_ROOT_DEFINE="$t"
6857 ;;
6858 esac
6859
6860 else
6861
6862 TARGET_SYSTEM_ROOT=
6863 TARGET_SYSTEM_ROOT_DEFINE=
6864 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6865
6866 fi
6867
6868
6869
6870
6871
6872
6873 # Check whether --with-specs was given.
6874 if test "${with_specs+set}" = set; then :
6875 withval=$with_specs; CONFIGURE_SPECS=$withval
6876 else
6877 CONFIGURE_SPECS=
6878
6879 fi
6880
6881
6882
6883 # Build with intermodule optimisations
6884 # Check whether --enable-intermodule was given.
6885 if test "${enable_intermodule+set}" = set; then :
6886 enableval=$enable_intermodule; case ${enable_intermodule} in
6887 yes) onestep="-onestep";;
6888 *) onestep="";;
6889 esac
6890 else
6891 onestep=""
6892 fi
6893
6894
6895
6896
6897
6898 # Check whether --with-pkgversion was given.
6899 if test "${with_pkgversion+set}" = set; then :
6900 withval=$with_pkgversion; case "$withval" in
6901 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6902 no) PKGVERSION= ;;
6903 *) PKGVERSION="($withval) " ;;
6904 esac
6905 else
6906 PKGVERSION="(GCC) "
6907
6908 fi
6909
6910
6911
6912
6913
6914 # Check whether --with-bugurl was given.
6915 if test "${with_bugurl+set}" = set; then :
6916 withval=$with_bugurl; case "$withval" in
6917 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6918 no) BUGURL=
6919 ;;
6920 *) BUGURL="$withval"
6921 ;;
6922 esac
6923 else
6924 BUGURL="http://gcc.gnu.org/bugs.html"
6925
6926 fi
6927
6928 case ${BUGURL} in
6929 "")
6930 REPORT_BUGS_TO=
6931 REPORT_BUGS_TEXI=
6932 ;;
6933 *)
6934 REPORT_BUGS_TO="<$BUGURL>"
6935 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6936 ;;
6937 esac;
6938
6939
6940
6941
6942 # Sanity check enable_languages in case someone does not run the toplevel
6943 # configure # script.
6944 # Check whether --enable-languages was given.
6945 if test "${enable_languages+set}" = set; then :
6946 enableval=$enable_languages; case ,${enable_languages}, in
6947 ,,|,yes,)
6948 # go safe -- we cannot be much sure without the toplevel
6949 # configure's
6950 # analysis of which target libs are present and usable
6951 enable_languages=c
6952 ;;
6953 *,all,*)
6954 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6955 ;;
6956 *,c,*)
6957 ;;
6958 *)
6959 enable_languages=c,${enable_languages}
6960 ;;
6961 esac
6962 else
6963 enable_languages=c
6964 fi
6965
6966
6967
6968 # Check whether --with-multilib-list was given.
6969 if test "${with_multilib_list+set}" = set; then :
6970 withval=$with_multilib_list; :
6971 else
6972 with_multilib_list=default
6973 fi
6974
6975
6976 # -------------------------
6977 # Checks for other programs
6978 # -------------------------
6979
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6981 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6982 set x ${MAKE-make}
6983 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6984 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6985 $as_echo_n "(cached) " >&6
6986 else
6987 cat >conftest.make <<\_ACEOF
6988 SHELL = /bin/sh
6989 all:
6990 @echo '@@@%%%=$(MAKE)=@@@%%%'
6991 _ACEOF
6992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6993 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6994 *@@@%%%=?*=@@@%%%*)
6995 eval ac_cv_prog_make_${ac_make}_set=yes;;
6996 *)
6997 eval ac_cv_prog_make_${ac_make}_set=no;;
6998 esac
6999 rm -f conftest.make
7000 fi
7001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7003 $as_echo "yes" >&6; }
7004 SET_MAKE=
7005 else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7008 SET_MAKE="MAKE=${MAKE-make}"
7009 fi
7010
7011
7012 # Find some useful tools
7013 for ac_prog in gawk mawk nawk awk
7014 do
7015 # Extract the first word of "$ac_prog", so it can be a program name with args.
7016 set dummy $ac_prog; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if test "${ac_cv_prog_AWK+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 if test -n "$AWK"; then
7023 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_prog_AWK="$ac_prog"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036 done
7037 done
7038 IFS=$as_save_IFS
7039
7040 fi
7041 fi
7042 AWK=$ac_cv_prog_AWK
7043 if test -n "$AWK"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7045 $as_echo "$AWK" >&6; }
7046 else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 fi
7050
7051
7052 test -n "$AWK" && break
7053 done
7054
7055 # We need awk to create options.c and options.h.
7056 # Bail out if it's missing.
7057 case ${AWK} in
7058 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7059 esac
7060
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7062 $as_echo_n "checking whether ln -s works... " >&6; }
7063 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 rm -f conftestdata_t
7067 echo >conftestdata_f
7068 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7069 then
7070 gcc_cv_prog_LN_S="ln -s"
7071 else
7072 if ln conftestdata_f conftestdata_t 2>/dev/null
7073 then
7074 gcc_cv_prog_LN_S=ln
7075 else
7076 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7077 then
7078 gcc_cv_prog_LN_S="cp -p"
7079 else
7080 gcc_cv_prog_LN_S=cp
7081 fi
7082 fi
7083 fi
7084 rm -f conftestdata_f conftestdata_t
7085
7086 fi
7087 LN_S="$gcc_cv_prog_LN_S"
7088 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7090 $as_echo "yes" >&6; }
7091 else
7092 if test "$gcc_cv_prog_LN_S" = "ln"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7094 $as_echo "no, using ln" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7097 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7098 fi
7099 fi
7100
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7102 $as_echo_n "checking whether ln works... " >&6; }
7103 if test "${acx_cv_prog_LN+set}" = set; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 rm -f conftestdata_t
7107 echo >conftestdata_f
7108 if ln conftestdata_f conftestdata_t 2>/dev/null
7109 then
7110 acx_cv_prog_LN=ln
7111 else
7112 acx_cv_prog_LN=no
7113 fi
7114 rm -f conftestdata_f conftestdata_t
7115
7116 fi
7117 if test $acx_cv_prog_LN = no; then
7118 LN="$LN_S"
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7120 $as_echo "no, using $LN" >&6; }
7121 else
7122 LN="$acx_cv_prog_LN"
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7124 $as_echo "yes" >&6; }
7125 fi
7126
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7129 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 if test -n "$RANLIB"; then
7136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149 done
7150 done
7151 IFS=$as_save_IFS
7152
7153 fi
7154 fi
7155 RANLIB=$ac_cv_prog_RANLIB
7156 if test -n "$RANLIB"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7158 $as_echo "$RANLIB" >&6; }
7159 else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7162 fi
7163
7164
7165 fi
7166 if test -z "$ac_cv_prog_RANLIB"; then
7167 ac_ct_RANLIB=$RANLIB
7168 # Extract the first word of "ranlib", so it can be a program name with args.
7169 set dummy ranlib; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 if test -n "$ac_ct_RANLIB"; then
7176 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_prog_ac_ct_RANLIB="ranlib"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189 done
7190 done
7191 IFS=$as_save_IFS
7192
7193 fi
7194 fi
7195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7196 if test -n "$ac_ct_RANLIB"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7198 $as_echo "$ac_ct_RANLIB" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7202 fi
7203
7204 if test "x$ac_ct_RANLIB" = x; then
7205 RANLIB=":"
7206 else
7207 case $cross_compiling:$ac_tool_warned in
7208 yes:)
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211 ac_tool_warned=yes ;;
7212 esac
7213 RANLIB=$ac_ct_RANLIB
7214 fi
7215 else
7216 RANLIB="$ac_cv_prog_RANLIB"
7217 fi
7218
7219 case "${host}" in
7220 *-*-darwin*)
7221 # By default, the Darwin ranlib will not treat common symbols as
7222 # definitions when building the archive table of contents. Other
7223 # ranlibs do that; pass an option to the Darwin ranlib that makes
7224 # it behave similarly.
7225 ranlib_flags="-c"
7226 ;;
7227 *)
7228 ranlib_flags=""
7229 esac
7230
7231
7232 # Find a good install program. We prefer a C program (faster),
7233 # so one script is as good as another. But avoid the broken or
7234 # incompatible versions:
7235 # SysV /etc/install, /usr/sbin/install
7236 # SunOS /usr/etc/install
7237 # IRIX /sbin/install
7238 # AIX /bin/install
7239 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7240 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7241 # ./install, which can be erroneously created by make from ./install.sh.
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7243 $as_echo_n "checking for a BSD compatible install... " >&6; }
7244 if test -z "$INSTALL"; then
7245 if test "${ac_cv_path_install+set}" = set; then :
7246 $as_echo_n "(cached) " >&6
7247 else
7248 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7249 for ac_dir in $PATH; do
7250 # Account for people who put trailing slashes in PATH elements.
7251 case "$ac_dir/" in
7252 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7253 *)
7254 # OSF1 and SCO ODT 3.0 have their own names for install.
7255 for ac_prog in ginstall scoinst install; do
7256 if test -f $ac_dir/$ac_prog; then
7257 if test $ac_prog = install &&
7258 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7259 # AIX install. It has an incompatible calling convention.
7260 # OSF/1 installbsd also uses dspmsg, but is usable.
7261 :
7262 else
7263 ac_cv_path_install="$ac_dir/$ac_prog -c"
7264 break 2
7265 fi
7266 fi
7267 done
7268 ;;
7269 esac
7270 done
7271 IFS="$ac_save_IFS"
7272
7273 fi
7274 if test "${ac_cv_path_install+set}" = set; then
7275 INSTALL="$ac_cv_path_install"
7276 else
7277 # As a last resort, use the slow shell script. We don't cache a
7278 # path for INSTALL within a source directory, because that will
7279 # break other packages using the cache if that directory is
7280 # removed, or if the path is relative.
7281 INSTALL="$ac_install_sh"
7282 fi
7283 fi
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7285 $as_echo "$INSTALL" >&6; }
7286
7287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7288 # It thinks the first close brace ends the variable substitution.
7289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7290
7291 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7292
7293
7294 # See if cmp has --ignore-initial.
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7296 $as_echo_n "checking for cmp's capabilities... " >&6; }
7297 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 echo abfoo >t1
7301 echo cdfoo >t2
7302 gcc_cv_prog_cmp_skip=slowcompare
7303 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7304 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7305 :
7306 else
7307 gcc_cv_prog_cmp_skip=gnucompare
7308 fi
7309 fi
7310 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7311 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7312 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7313 :
7314 else
7315 gcc_cv_prog_cmp_skip=fastcompare
7316 fi
7317 fi
7318 fi
7319 rm t1 t2
7320
7321 fi
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7323 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7324 make_compare_target=$gcc_cv_prog_cmp_skip
7325
7326
7327
7328 # See if we have the mktemp command.
7329 # Extract the first word of "mktemp", so it can be a program name with args.
7330 set dummy mktemp; ac_word=$2
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332 $as_echo_n "checking for $ac_word... " >&6; }
7333 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7334 $as_echo_n "(cached) " >&6
7335 else
7336 if test -n "$have_mktemp_command"; then
7337 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7338 else
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH
7341 do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7346 ac_cv_prog_have_mktemp_command="yes"
7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7349 fi
7350 done
7351 done
7352 IFS=$as_save_IFS
7353
7354 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7355 fi
7356 fi
7357 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7358 if test -n "$have_mktemp_command"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7360 $as_echo "$have_mktemp_command" >&6; }
7361 else
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366
7367
7368 # See if makeinfo has been installed and is modern enough
7369 # that we can use it.
7370
7371 # Extract the first word of "makeinfo", so it can be a program name with args.
7372 set dummy makeinfo; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 if test -n "$MAKEINFO"; then
7379 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388 ac_cv_prog_MAKEINFO="makeinfo"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 break 2
7391 fi
7392 done
7393 done
7394 IFS=$as_save_IFS
7395
7396 fi
7397 fi
7398 MAKEINFO=$ac_cv_prog_MAKEINFO
7399 if test -n "$MAKEINFO"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7401 $as_echo "$MAKEINFO" >&6; }
7402 else
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7405 fi
7406
7407
7408 if test -n "$MAKEINFO"; then
7409 # Found it, now check the version.
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7411 $as_echo_n "checking for modern makeinfo... " >&6; }
7412 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7416 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7417
7418 case $ac_prog_version in
7419 '') gcc_cv_prog_makeinfo_modern=no;;
7420 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7421 *) gcc_cv_prog_makeinfo_modern=no;;
7422 esac
7423
7424 fi
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7426 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7427 else
7428 gcc_cv_prog_makeinfo_modern=no
7429 fi
7430 if test $gcc_cv_prog_makeinfo_modern = no; then
7431 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7432 fi
7433
7434 if test $gcc_cv_prog_makeinfo_modern = no; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7436 *** Makeinfo is missing or too old.
7437 *** Info documentation will not be built." >&5
7438 $as_echo "$as_me: WARNING:
7439 *** Makeinfo is missing or too old.
7440 *** Info documentation will not be built." >&2;}
7441 BUILD_INFO=
7442 else
7443 BUILD_INFO=info
7444 fi
7445
7446
7447 # Is pod2man recent enough to regenerate manpages?
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7449 $as_echo_n "checking for recent Pod::Man... " >&6; }
7450 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7452 $as_echo "yes" >&6; }
7453 GENERATED_MANPAGES=generated-manpages
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7457 GENERATED_MANPAGES=
7458 fi
7459
7460
7461 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7462
7463 # How about lex?
7464 for ac_prog in flex
7465 do
7466 # Extract the first word of "$ac_prog", so it can be a program name with args.
7467 set dummy $ac_prog; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if test "${ac_cv_prog_FLEX+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$FLEX"; then
7474 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_FLEX="$ac_prog"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487 done
7488 done
7489 IFS=$as_save_IFS
7490
7491 fi
7492 fi
7493 FLEX=$ac_cv_prog_FLEX
7494 if test -n "$FLEX"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7496 $as_echo "$FLEX" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502
7503 test -n "$FLEX" && break
7504 done
7505 test -n "$FLEX" || FLEX="$MISSING flex"
7506
7507
7508 # Bison?
7509 for ac_prog in bison
7510 do
7511 # Extract the first word of "$ac_prog", so it can be a program name with args.
7512 set dummy $ac_prog; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if test "${ac_cv_prog_BISON+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 if test -n "$BISON"; then
7519 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_prog_BISON="$ac_prog"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7531 fi
7532 done
7533 done
7534 IFS=$as_save_IFS
7535
7536 fi
7537 fi
7538 BISON=$ac_cv_prog_BISON
7539 if test -n "$BISON"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7541 $as_echo "$BISON" >&6; }
7542 else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7545 fi
7546
7547
7548 test -n "$BISON" && break
7549 done
7550 test -n "$BISON" || BISON="$MISSING bison"
7551
7552
7553 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7554 # check for build == host before using them.
7555
7556 # NM
7557 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7558 && test -d ../binutils ; then
7559 NM='${objdir}/../binutils/nm-new'
7560 else
7561 # Extract the first word of "nm", so it can be a program name with args.
7562 set dummy nm; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if test "${ac_cv_prog_NM+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 if test -n "$NM"; then
7569 ac_cv_prog_NM="$NM" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7573 do
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_prog_NM="nm"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7581 fi
7582 done
7583 done
7584 IFS=$as_save_IFS
7585
7586 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7587 fi
7588 fi
7589 NM=$ac_cv_prog_NM
7590 if test -n "$NM"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7592 $as_echo "$NM" >&6; }
7593 else
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7596 fi
7597
7598
7599 fi
7600
7601 # AR
7602 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7603 && test -d ../binutils ; then
7604 AR='${objdir}/../binutils/ar'
7605 else
7606 # Extract the first word of "ar", so it can be a program name with args.
7607 set dummy ar; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if test "${ac_cv_prog_AR+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$AR"; then
7614 ac_cv_prog_AR="$AR" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623 ac_cv_prog_AR="ar"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7626 fi
7627 done
7628 done
7629 IFS=$as_save_IFS
7630
7631 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7632 fi
7633 fi
7634 AR=$ac_cv_prog_AR
7635 if test -n "$AR"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7637 $as_echo "$AR" >&6; }
7638 else
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7641 fi
7642
7643
7644 fi
7645
7646
7647 # --------------------
7648 # Checks for C headers
7649 # --------------------
7650
7651 # Need to reject headers which give warnings, so that the -Werror bootstrap
7652 # works later. *sigh* This needs to come before all header checks.
7653
7654 ac_c_preproc_warn_flag=yes
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7657 $as_echo_n "checking for ANSI C header files... " >&6; }
7658 if test "${ac_cv_header_stdc+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 #include <stdlib.h>
7664 #include <stdarg.h>
7665 #include <string.h>
7666 #include <float.h>
7667
7668 int
7669 main ()
7670 {
7671
7672 ;
7673 return 0;
7674 }
7675 _ACEOF
7676 if ac_fn_c_try_compile "$LINENO"; then :
7677 ac_cv_header_stdc=yes
7678 else
7679 ac_cv_header_stdc=no
7680 fi
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682
7683 if test $ac_cv_header_stdc = yes; then
7684 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7687 #include <string.h>
7688
7689 _ACEOF
7690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7691 $EGREP "memchr" >/dev/null 2>&1; then :
7692
7693 else
7694 ac_cv_header_stdc=no
7695 fi
7696 rm -f conftest*
7697
7698 fi
7699
7700 if test $ac_cv_header_stdc = yes; then
7701 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704 #include <stdlib.h>
7705
7706 _ACEOF
7707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7708 $EGREP "free" >/dev/null 2>&1; then :
7709
7710 else
7711 ac_cv_header_stdc=no
7712 fi
7713 rm -f conftest*
7714
7715 fi
7716
7717 if test $ac_cv_header_stdc = yes; then
7718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7719 if test "$cross_compiling" = yes; then :
7720 :
7721 else
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 #include <ctype.h>
7725 #include <stdlib.h>
7726 #if ((' ' & 0x0FF) == 0x020)
7727 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7728 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7729 #else
7730 # define ISLOWER(c) \
7731 (('a' <= (c) && (c) <= 'i') \
7732 || ('j' <= (c) && (c) <= 'r') \
7733 || ('s' <= (c) && (c) <= 'z'))
7734 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7735 #endif
7736
7737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7738 int
7739 main ()
7740 {
7741 int i;
7742 for (i = 0; i < 256; i++)
7743 if (XOR (islower (i), ISLOWER (i))
7744 || toupper (i) != TOUPPER (i))
7745 return 2;
7746 return 0;
7747 }
7748 _ACEOF
7749 if ac_fn_c_try_run "$LINENO"; then :
7750
7751 else
7752 ac_cv_header_stdc=no
7753 fi
7754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7755 conftest.$ac_objext conftest.beam conftest.$ac_ext
7756 fi
7757
7758 fi
7759 fi
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7761 $as_echo "$ac_cv_header_stdc" >&6; }
7762 if test $ac_cv_header_stdc = yes; then
7763
7764 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7765
7766 fi
7767
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7769 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7770 if test "${ac_cv_header_time+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 #include <sys/types.h>
7776 #include <sys/time.h>
7777 #include <time.h>
7778
7779 int
7780 main ()
7781 {
7782 if ((struct tm *) 0)
7783 return 0;
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789 ac_cv_header_time=yes
7790 else
7791 ac_cv_header_time=no
7792 fi
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 fi
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7796 $as_echo "$ac_cv_header_time" >&6; }
7797 if test $ac_cv_header_time = yes; then
7798
7799 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7800
7801 fi
7802
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7804 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7805 if test "${gcc_cv_header_string+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810 #include <string.h>
7811 #include <strings.h>
7812 int
7813 main ()
7814 {
7815
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 if ac_fn_c_try_compile "$LINENO"; then :
7821 gcc_cv_header_string=yes
7822 else
7823 gcc_cv_header_string=no
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826 fi
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7828 $as_echo "$gcc_cv_header_string" >&6; }
7829 if test $gcc_cv_header_string = yes; then
7830
7831 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7832
7833 fi
7834
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7836 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7837 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7838 $as_echo_n "(cached) " >&6
7839 else
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7842 #include <sys/types.h>
7843 #include <sys/wait.h>
7844 #ifndef WEXITSTATUS
7845 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7846 #endif
7847 #ifndef WIFEXITED
7848 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7849 #endif
7850
7851 int
7852 main ()
7853 {
7854 int s;
7855 wait (&s);
7856 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7857 ;
7858 return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_compile "$LINENO"; then :
7862 ac_cv_header_sys_wait_h=yes
7863 else
7864 ac_cv_header_sys_wait_h=no
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 fi
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7869 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7870 if test $ac_cv_header_sys_wait_h = yes; then
7871
7872 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7873
7874 fi
7875
7876 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7877 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7878 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7879 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7880 do :
7881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7882 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7883 eval as_val=\$$as_ac_Header
7884 if test "x$as_val" = x""yes; then :
7885 cat >>confdefs.h <<_ACEOF
7886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7887 _ACEOF
7888
7889 fi
7890 done
7891
7892
7893 # Check for thread headers.
7894 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7895 if test "x$ac_cv_header_thread_h" = x""yes; then :
7896 have_thread_h=yes
7897 else
7898 have_thread_h=
7899 fi
7900
7901 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7902 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7903 have_pthread_h=yes
7904 else
7905 have_pthread_h=
7906 fi
7907
7908
7909 # These tests can't be done till we know if we have limits.h.
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7911 $as_echo_n "checking for CHAR_BIT... " >&6; }
7912 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7913 $as_echo_n "(cached) " >&6
7914 else
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7917 #ifdef HAVE_LIMITS_H
7918 #include <limits.h>
7919 #endif
7920 #ifdef CHAR_BIT
7921 found
7922 #endif
7923 _ACEOF
7924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7925 $EGREP "found" >/dev/null 2>&1; then :
7926 gcc_cv_decl_char_bit=yes
7927 else
7928 gcc_cv_decl_char_bit=no
7929 fi
7930 rm -f conftest*
7931
7932
7933 fi
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7935 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7936 if test $gcc_cv_decl_char_bit = no; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7938 $as_echo_n "checking number of bits in a byte... " >&6; }
7939 if test "${gcc_cv_c_nbby+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 i=8
7943 gcc_cv_c_nbby=
7944 while test $i -lt 65; do
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947
7948 int
7949 main ()
7950 {
7951 switch(0) {
7952 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7953 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7954 ; }
7955 ;
7956 return 0;
7957 }
7958 _ACEOF
7959 if ac_fn_c_try_compile "$LINENO"; then :
7960 gcc_cv_c_nbby=$i; break
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 i=`expr $i + 1`
7964 done
7965 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7966
7967 fi
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7969 $as_echo "$gcc_cv_c_nbby" >&6; }
7970 if test $gcc_cv_c_nbby = failed; then
7971 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7972 else
7973
7974 cat >>confdefs.h <<_ACEOF
7975 #define CHAR_BIT $gcc_cv_c_nbby
7976 _ACEOF
7977
7978 fi
7979 fi
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7981 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7982 if test "${ac_cv_c_bigendian+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 ac_cv_c_bigendian=unknown
7986 # See if we're dealing with a universal compiler.
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 #ifndef __APPLE_CC__
7990 not a universal capable compiler
7991 #endif
7992 typedef int dummy;
7993
7994 _ACEOF
7995 if ac_fn_c_try_compile "$LINENO"; then :
7996
7997 # Check for potential -arch flags. It is not universal unless
7998 # there are at least two -arch flags with different values.
7999 ac_arch=
8000 ac_prev=
8001 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8002 if test -n "$ac_prev"; then
8003 case $ac_word in
8004 i?86 | x86_64 | ppc | ppc64)
8005 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8006 ac_arch=$ac_word
8007 else
8008 ac_cv_c_bigendian=universal
8009 break
8010 fi
8011 ;;
8012 esac
8013 ac_prev=
8014 elif test "x$ac_word" = "x-arch"; then
8015 ac_prev=arch
8016 fi
8017 done
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020 if test $ac_cv_c_bigendian = unknown; then
8021 # See if sys/param.h defines the BYTE_ORDER macro.
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024 #include <sys/types.h>
8025 #include <sys/param.h>
8026
8027 int
8028 main ()
8029 {
8030 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8031 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8032 && LITTLE_ENDIAN)
8033 bogus endian macros
8034 #endif
8035
8036 ;
8037 return 0;
8038 }
8039 _ACEOF
8040 if ac_fn_c_try_compile "$LINENO"; then :
8041 # It does; now see whether it defined to BIG_ENDIAN or not.
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044 #include <sys/types.h>
8045 #include <sys/param.h>
8046
8047 int
8048 main ()
8049 {
8050 #if BYTE_ORDER != BIG_ENDIAN
8051 not big endian
8052 #endif
8053
8054 ;
8055 return 0;
8056 }
8057 _ACEOF
8058 if ac_fn_c_try_compile "$LINENO"; then :
8059 ac_cv_c_bigendian=yes
8060 else
8061 ac_cv_c_bigendian=no
8062 fi
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 fi
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 fi
8067 if test $ac_cv_c_bigendian = unknown; then
8068 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 #include <limits.h>
8072
8073 int
8074 main ()
8075 {
8076 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8077 bogus endian macros
8078 #endif
8079
8080 ;
8081 return 0;
8082 }
8083 _ACEOF
8084 if ac_fn_c_try_compile "$LINENO"; then :
8085 # It does; now see whether it defined to _BIG_ENDIAN or not.
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 #include <limits.h>
8089
8090 int
8091 main ()
8092 {
8093 #ifndef _BIG_ENDIAN
8094 not big endian
8095 #endif
8096
8097 ;
8098 return 0;
8099 }
8100 _ACEOF
8101 if ac_fn_c_try_compile "$LINENO"; then :
8102 ac_cv_c_bigendian=yes
8103 else
8104 ac_cv_c_bigendian=no
8105 fi
8106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 fi
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 fi
8110 if test $ac_cv_c_bigendian = unknown; then
8111 # Compile a test program.
8112 if test "$cross_compiling" = yes; then :
8113 # Try to guess by grepping values from an object file.
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116 short int ascii_mm[] =
8117 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8118 short int ascii_ii[] =
8119 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8120 int use_ascii (int i) {
8121 return ascii_mm[i] + ascii_ii[i];
8122 }
8123 short int ebcdic_ii[] =
8124 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8125 short int ebcdic_mm[] =
8126 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8127 int use_ebcdic (int i) {
8128 return ebcdic_mm[i] + ebcdic_ii[i];
8129 }
8130 extern int foo;
8131
8132 int
8133 main ()
8134 {
8135 return use_ascii (foo) == use_ebcdic (foo);
8136 ;
8137 return 0;
8138 }
8139 _ACEOF
8140 if ac_fn_c_try_compile "$LINENO"; then :
8141 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8142 ac_cv_c_bigendian=yes
8143 fi
8144 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8145 if test "$ac_cv_c_bigendian" = unknown; then
8146 ac_cv_c_bigendian=no
8147 else
8148 # finding both strings is unlikely to happen, but who knows?
8149 ac_cv_c_bigendian=unknown
8150 fi
8151 fi
8152 fi
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 else
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 $ac_includes_default
8158 int
8159 main ()
8160 {
8161
8162 /* Are we little or big endian? From Harbison&Steele. */
8163 union
8164 {
8165 long int l;
8166 char c[sizeof (long int)];
8167 } u;
8168 u.l = 1;
8169 return u.c[sizeof (long int) - 1] == 1;
8170
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_run "$LINENO"; then :
8176 ac_cv_c_bigendian=no
8177 else
8178 ac_cv_c_bigendian=yes
8179 fi
8180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8181 conftest.$ac_objext conftest.beam conftest.$ac_ext
8182 fi
8183
8184 fi
8185 fi
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8187 $as_echo "$ac_cv_c_bigendian" >&6; }
8188 case $ac_cv_c_bigendian in #(
8189 yes)
8190 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8191 ;; #(
8192 no)
8193 ;; #(
8194 universal)
8195
8196 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8197
8198 ;; #(
8199 *)
8200 as_fn_error "unknown endianness
8201 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8202 esac
8203
8204
8205 # --------
8206 # UNSORTED
8207 # --------
8208
8209
8210 # These libraries may be used by collect2.
8211 # We may need a special search path to get them linked.
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8213 $as_echo_n "checking for collect2 libraries... " >&6; }
8214 if test "${gcc_cv_collect2_libs+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 save_LIBS="$LIBS"
8218 for libs in '' -lld -lmld \
8219 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8220 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8221 do
8222 LIBS="$libs"
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225
8226 /* Override any GCC internal prototype to avoid an error.
8227 Use char because int might match the return type of a GCC
8228 builtin and then its argument prototype would still apply. */
8229 #ifdef __cplusplus
8230 extern "C"
8231 #endif
8232 char ldopen ();
8233 int
8234 main ()
8235 {
8236 return ldopen ();
8237 ;
8238 return 0;
8239 }
8240 _ACEOF
8241 if ac_fn_c_try_link "$LINENO"; then :
8242 gcc_cv_collect2_libs="$libs"; break
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext \
8245 conftest$ac_exeext conftest.$ac_ext
8246 done
8247 LIBS="$save_LIBS"
8248 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8249 fi
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8251 $as_echo "$gcc_cv_collect2_libs" >&6; }
8252 case $gcc_cv_collect2_libs in
8253 "none required") ;;
8254 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8255 esac
8256
8257
8258 # When building Ada code on Alpha, we need exc_resume which is usually in
8259 # -lexc. So test for it.
8260 save_LIBS="$LIBS"
8261 LIBS=
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8263 $as_echo_n "checking for library containing exc_resume... " >&6; }
8264 if test "${ac_cv_search_exc_resume+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 ac_func_search_save_LIBS=$LIBS
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8270
8271 /* Override any GCC internal prototype to avoid an error.
8272 Use char because int might match the return type of a GCC
8273 builtin and then its argument prototype would still apply. */
8274 #ifdef __cplusplus
8275 extern "C"
8276 #endif
8277 char exc_resume ();
8278 int
8279 main ()
8280 {
8281 return exc_resume ();
8282 ;
8283 return 0;
8284 }
8285 _ACEOF
8286 for ac_lib in '' exc; do
8287 if test -z "$ac_lib"; then
8288 ac_res="none required"
8289 else
8290 ac_res=-l$ac_lib
8291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8292 fi
8293 if ac_fn_c_try_link "$LINENO"; then :
8294 ac_cv_search_exc_resume=$ac_res
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext
8298 if test "${ac_cv_search_exc_resume+set}" = set; then :
8299 break
8300 fi
8301 done
8302 if test "${ac_cv_search_exc_resume+set}" = set; then :
8303
8304 else
8305 ac_cv_search_exc_resume=no
8306 fi
8307 rm conftest.$ac_ext
8308 LIBS=$ac_func_search_save_LIBS
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8311 $as_echo "$ac_cv_search_exc_resume" >&6; }
8312 ac_res=$ac_cv_search_exc_resume
8313 if test "$ac_res" != no; then :
8314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8315
8316 fi
8317
8318 GNAT_LIBEXC="$LIBS"
8319 LIBS="$save_LIBS"
8320
8321
8322 # Some systems put ldexp and frexp in libm instead of libc; assume
8323 # they're both in the same place. jcf-dump needs them.
8324 save_LIBS="$LIBS"
8325 LIBS=
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8327 $as_echo_n "checking for library containing ldexp... " >&6; }
8328 if test "${ac_cv_search_ldexp+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
8330 else
8331 ac_func_search_save_LIBS=$LIBS
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334
8335 /* Override any GCC internal prototype to avoid an error.
8336 Use char because int might match the return type of a GCC
8337 builtin and then its argument prototype would still apply. */
8338 #ifdef __cplusplus
8339 extern "C"
8340 #endif
8341 char ldexp ();
8342 int
8343 main ()
8344 {
8345 return ldexp ();
8346 ;
8347 return 0;
8348 }
8349 _ACEOF
8350 for ac_lib in '' m; do
8351 if test -z "$ac_lib"; then
8352 ac_res="none required"
8353 else
8354 ac_res=-l$ac_lib
8355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8356 fi
8357 if ac_fn_c_try_link "$LINENO"; then :
8358 ac_cv_search_ldexp=$ac_res
8359 fi
8360 rm -f core conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext
8362 if test "${ac_cv_search_ldexp+set}" = set; then :
8363 break
8364 fi
8365 done
8366 if test "${ac_cv_search_ldexp+set}" = set; then :
8367
8368 else
8369 ac_cv_search_ldexp=no
8370 fi
8371 rm conftest.$ac_ext
8372 LIBS=$ac_func_search_save_LIBS
8373 fi
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8375 $as_echo "$ac_cv_search_ldexp" >&6; }
8376 ac_res=$ac_cv_search_ldexp
8377 if test "$ac_res" != no; then :
8378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8379
8380 fi
8381
8382 LDEXP_LIB="$LIBS"
8383 LIBS="$save_LIBS"
8384
8385
8386 # Use <inttypes.h> only if it exists,
8387 # doesn't clash with <sys/types.h>, and declares intmax_t.
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8389 $as_echo_n "checking for inttypes.h... " >&6; }
8390 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #include <sys/types.h>
8396 #include <inttypes.h>
8397 int
8398 main ()
8399 {
8400 intmax_t i = -1;
8401 ;
8402 return 0;
8403 }
8404 _ACEOF
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406 gcc_cv_header_inttypes_h=yes
8407 else
8408 gcc_cv_header_inttypes_h=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 fi
8412
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8414 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8415 if test $gcc_cv_header_inttypes_h = yes; then
8416
8417 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8418
8419 fi
8420
8421
8422
8423 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8424 sysconf strsignal getrusage nl_langinfo \
8425 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8426 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
8427 do :
8428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8430 eval as_val=\$$as_ac_var
8431 if test "x$as_val" = x""yes; then :
8432 cat >>confdefs.h <<_ACEOF
8433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8434 _ACEOF
8435
8436 fi
8437 done
8438
8439
8440 save_CPPFLAGS="$CPPFLAGS"
8441 save_LIBS="$LIBS"
8442 LIBS="$LIBS $LIBELFLIBS"
8443 for ac_func in elf_getshdrstrndx
8444 do :
8445 ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8446 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8447 cat >>confdefs.h <<_ACEOF
8448 #define HAVE_ELF_GETSHDRSTRNDX 1
8449 _ACEOF
8450
8451 else
8452 for ac_func in elf_getshstrndx
8453 do :
8454 ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8455 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8456 cat >>confdefs.h <<_ACEOF
8457 #define HAVE_ELF_GETSHSTRNDX 1
8458 _ACEOF
8459 if test "$cross_compiling" = yes; then :
8460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8462 as_fn_error "cannot run test program while cross compiling
8463 See \`config.log' for more details." "$LINENO" 5; }
8464 else
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #include <stdlib.h>
8468 #include <libelf.h>
8469 int main()
8470 {
8471 return elf_getshstrndx (NULL, 0) == 0;
8472 }
8473 _ACEOF
8474 if ac_fn_c_try_run "$LINENO"; then :
8475
8476 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8477
8478 fi
8479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8480 conftest.$ac_objext conftest.beam conftest.$ac_ext
8481 fi
8482
8483 fi
8484 done
8485
8486
8487 fi
8488 done
8489
8490 LIBS="$save_LIBS"
8491 CPPFLAGS="$save_CPPFLAGS"
8492
8493 if test x$ac_cv_func_mbstowcs = xyes; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8495 $as_echo_n "checking whether mbstowcs works... " >&6; }
8496 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 if test "$cross_compiling" = yes; then :
8500 gcc_cv_func_mbstowcs_works=yes
8501 else
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <stdlib.h>
8505 int main()
8506 {
8507 mbstowcs(0, "", 0);
8508 return 0;
8509 }
8510 _ACEOF
8511 if ac_fn_c_try_run "$LINENO"; then :
8512 gcc_cv_func_mbstowcs_works=yes
8513 else
8514 gcc_cv_func_mbstowcs_works=no
8515 fi
8516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8517 conftest.$ac_objext conftest.beam conftest.$ac_ext
8518 fi
8519
8520 fi
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8522 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8523 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8524
8525 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8526
8527 fi
8528 fi
8529
8530 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8531 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8532
8533 else
8534
8535 cat >>confdefs.h <<_ACEOF
8536 #define ssize_t int
8537 _ACEOF
8538
8539 fi
8540
8541 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8542 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8543
8544 else
8545
8546 cat >>confdefs.h <<_ACEOF
8547 #define caddr_t char *
8548 _ACEOF
8549
8550 fi
8551
8552
8553
8554 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8555 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8556 gcc_header_sys_mman_h=yes
8557 else
8558 gcc_header_sys_mman_h=no
8559 fi
8560
8561 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8562 if test "x$ac_cv_func_mmap" = x""yes; then :
8563 gcc_func_mmap=yes
8564 else
8565 gcc_func_mmap=no
8566 fi
8567
8568 if test "$gcc_header_sys_mman_h" != yes \
8569 || test "$gcc_func_mmap" != yes; then
8570 gcc_cv_func_mmap_file=no
8571 gcc_cv_func_mmap_dev_zero=no
8572 gcc_cv_func_mmap_anon=no
8573 else
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8575 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8576 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 # Add a system to this blacklist if
8580 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8581 # memory area containing the same data that you'd get if you applied
8582 # read() to the same fd. The only system known to have a problem here
8583 # is VMS, where text files have record structure.
8584 case "$host_os" in
8585 vms* | ultrix*)
8586 gcc_cv_func_mmap_file=no ;;
8587 *)
8588 gcc_cv_func_mmap_file=yes;;
8589 esac
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8592 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8594 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8595 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 # Add a system to this blacklist if it has mmap() but /dev/zero
8599 # does not exist, or if mmapping /dev/zero does not give anonymous
8600 # zeroed pages with both the following properties:
8601 # 1. If you map N consecutive pages in with one call, and then
8602 # unmap any subset of those pages, the pages that were not
8603 # explicitly unmapped remain accessible.
8604 # 2. If you map two adjacent blocks of memory and then unmap them
8605 # both at once, they must both go away.
8606 # Systems known to be in this category are Windows (all variants),
8607 # VMS, and Darwin.
8608 case "$host_os" in
8609 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8610 gcc_cv_func_mmap_dev_zero=no ;;
8611 *)
8612 gcc_cv_func_mmap_dev_zero=yes;;
8613 esac
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8616 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8617
8618 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8620 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8621 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626 #include <sys/types.h>
8627 #include <sys/mman.h>
8628 #include <unistd.h>
8629
8630 #ifndef MAP_ANONYMOUS
8631 #define MAP_ANONYMOUS MAP_ANON
8632 #endif
8633
8634 int
8635 main ()
8636 {
8637 int n = MAP_ANONYMOUS;
8638 ;
8639 return 0;
8640 }
8641 _ACEOF
8642 if ac_fn_c_try_compile "$LINENO"; then :
8643 gcc_cv_decl_map_anon=yes
8644 else
8645 gcc_cv_decl_map_anon=no
8646 fi
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 fi
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8650 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8651
8652 if test $gcc_cv_decl_map_anon = no; then
8653 gcc_cv_func_mmap_anon=no
8654 else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8656 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8657 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8661 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8662 # doesn't give anonymous zeroed pages with the same properties listed
8663 # above for use of /dev/zero.
8664 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8665 case "$host_os" in
8666 vms* | cygwin* | pe | mingw* | sco* | udk* )
8667 gcc_cv_func_mmap_anon=no ;;
8668 *)
8669 gcc_cv_func_mmap_anon=yes;;
8670 esac
8671 fi
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8673 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8674 fi
8675 fi
8676
8677 if test $gcc_cv_func_mmap_file = yes; then
8678
8679 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8680
8681 fi
8682 if test $gcc_cv_func_mmap_dev_zero = yes; then
8683
8684 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8685
8686 fi
8687 if test $gcc_cv_func_mmap_anon = yes; then
8688
8689 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8690
8691 fi
8692
8693
8694 case "${host}" in
8695 *-*-*vms*)
8696 # Under VMS, vfork works very differently than on Unix. The standard test
8697 # won't work, and it isn't easily adaptable. It makes more sense to
8698 # just force it.
8699 ac_cv_func_vfork_works=yes
8700 ;;
8701 esac
8702 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8703 if test "x$ac_cv_type_pid_t" = x""yes; then :
8704
8705 else
8706
8707 cat >>confdefs.h <<_ACEOF
8708 #define pid_t int
8709 _ACEOF
8710
8711 fi
8712
8713 for ac_header in vfork.h
8714 do :
8715 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8716 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8717 cat >>confdefs.h <<_ACEOF
8718 #define HAVE_VFORK_H 1
8719 _ACEOF
8720
8721 fi
8722 done
8723
8724 for ac_func in fork vfork
8725 do :
8726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8727 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8728 eval as_val=\$$as_ac_var
8729 if test "x$as_val" = x""yes; then :
8730 cat >>confdefs.h <<_ACEOF
8731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8732 _ACEOF
8733
8734 fi
8735 done
8736
8737 if test "x$ac_cv_func_fork" = xyes; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8739 $as_echo_n "checking for working fork... " >&6; }
8740 if test "${ac_cv_func_fork_works+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 if test "$cross_compiling" = yes; then :
8744 ac_cv_func_fork_works=cross
8745 else
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748 $ac_includes_default
8749 int
8750 main ()
8751 {
8752
8753 /* By Ruediger Kuhlmann. */
8754 return fork () < 0;
8755
8756 ;
8757 return 0;
8758 }
8759 _ACEOF
8760 if ac_fn_c_try_run "$LINENO"; then :
8761 ac_cv_func_fork_works=yes
8762 else
8763 ac_cv_func_fork_works=no
8764 fi
8765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8766 conftest.$ac_objext conftest.beam conftest.$ac_ext
8767 fi
8768
8769 fi
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8771 $as_echo "$ac_cv_func_fork_works" >&6; }
8772
8773 else
8774 ac_cv_func_fork_works=$ac_cv_func_fork
8775 fi
8776 if test "x$ac_cv_func_fork_works" = xcross; then
8777 case $host in
8778 *-*-amigaos* | *-*-msdosdjgpp*)
8779 # Override, as these systems have only a dummy fork() stub
8780 ac_cv_func_fork_works=no
8781 ;;
8782 *)
8783 ac_cv_func_fork_works=yes
8784 ;;
8785 esac
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8787 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8788 fi
8789 ac_cv_func_vfork_works=$ac_cv_func_vfork
8790 if test "x$ac_cv_func_vfork" = xyes; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8792 $as_echo_n "checking for working vfork... " >&6; }
8793 if test "${ac_cv_func_vfork_works+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 if test "$cross_compiling" = yes; then :
8797 ac_cv_func_vfork_works=cross
8798 else
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8801 /* Thanks to Paul Eggert for this test. */
8802 $ac_includes_default
8803 #include <sys/wait.h>
8804 #ifdef HAVE_VFORK_H
8805 # include <vfork.h>
8806 #endif
8807 /* On some sparc systems, changes by the child to local and incoming
8808 argument registers are propagated back to the parent. The compiler
8809 is told about this with #include <vfork.h>, but some compilers
8810 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8811 static variable whose address is put into a register that is
8812 clobbered by the vfork. */
8813 static void
8814 #ifdef __cplusplus
8815 sparc_address_test (int arg)
8816 # else
8817 sparc_address_test (arg) int arg;
8818 #endif
8819 {
8820 static pid_t child;
8821 if (!child) {
8822 child = vfork ();
8823 if (child < 0) {
8824 perror ("vfork");
8825 _exit(2);
8826 }
8827 if (!child) {
8828 arg = getpid();
8829 write(-1, "", 0);
8830 _exit (arg);
8831 }
8832 }
8833 }
8834
8835 int
8836 main ()
8837 {
8838 pid_t parent = getpid ();
8839 pid_t child;
8840
8841 sparc_address_test (0);
8842
8843 child = vfork ();
8844
8845 if (child == 0) {
8846 /* Here is another test for sparc vfork register problems. This
8847 test uses lots of local variables, at least as many local
8848 variables as main has allocated so far including compiler
8849 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8850 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8851 reuse the register of parent for one of the local variables,
8852 since it will think that parent can't possibly be used any more
8853 in this routine. Assigning to the local variable will thus
8854 munge parent in the parent process. */
8855 pid_t
8856 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8857 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8858 /* Convince the compiler that p..p7 are live; otherwise, it might
8859 use the same hardware register for all 8 local variables. */
8860 if (p != p1 || p != p2 || p != p3 || p != p4
8861 || p != p5 || p != p6 || p != p7)
8862 _exit(1);
8863
8864 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8865 from child file descriptors. If the child closes a descriptor
8866 before it execs or exits, this munges the parent's descriptor
8867 as well. Test for this by closing stdout in the child. */
8868 _exit(close(fileno(stdout)) != 0);
8869 } else {
8870 int status;
8871 struct stat st;
8872
8873 while (wait(&status) != child)
8874 ;
8875 return (
8876 /* Was there some problem with vforking? */
8877 child < 0
8878
8879 /* Did the child fail? (This shouldn't happen.) */
8880 || status
8881
8882 /* Did the vfork/compiler bug occur? */
8883 || parent != getpid()
8884
8885 /* Did the file descriptor bug occur? */
8886 || fstat(fileno(stdout), &st) != 0
8887 );
8888 }
8889 }
8890 _ACEOF
8891 if ac_fn_c_try_run "$LINENO"; then :
8892 ac_cv_func_vfork_works=yes
8893 else
8894 ac_cv_func_vfork_works=no
8895 fi
8896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8897 conftest.$ac_objext conftest.beam conftest.$ac_ext
8898 fi
8899
8900 fi
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8902 $as_echo "$ac_cv_func_vfork_works" >&6; }
8903
8904 fi;
8905 if test "x$ac_cv_func_fork_works" = xcross; then
8906 ac_cv_func_vfork_works=$ac_cv_func_vfork
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8908 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8909 fi
8910
8911 if test "x$ac_cv_func_vfork_works" = xyes; then
8912
8913 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8914
8915 else
8916
8917 $as_echo "#define vfork fork" >>confdefs.h
8918
8919 fi
8920 if test "x$ac_cv_func_fork_works" = xyes; then
8921
8922 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8923
8924 fi
8925
8926
8927
8928 if test "X$prefix" = "XNONE"; then
8929 acl_final_prefix="$ac_default_prefix"
8930 else
8931 acl_final_prefix="$prefix"
8932 fi
8933 if test "X$exec_prefix" = "XNONE"; then
8934 acl_final_exec_prefix='${prefix}'
8935 else
8936 acl_final_exec_prefix="$exec_prefix"
8937 fi
8938 acl_save_prefix="$prefix"
8939 prefix="$acl_final_prefix"
8940 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8941 prefix="$acl_save_prefix"
8942
8943
8944 # Check whether --with-gnu-ld was given.
8945 if test "${with_gnu_ld+set}" = set; then :
8946 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8947 else
8948 with_gnu_ld=no
8949 fi
8950
8951 # Prepare PATH_SEPARATOR.
8952 # The user is always right.
8953 if test "${PATH_SEPARATOR+set}" != set; then
8954 echo "#! /bin/sh" >conf$$.sh
8955 echo "exit 0" >>conf$$.sh
8956 chmod +x conf$$.sh
8957 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8958 PATH_SEPARATOR=';'
8959 else
8960 PATH_SEPARATOR=:
8961 fi
8962 rm -f conf$$.sh
8963 fi
8964 ac_prog=ld
8965 if test "$GCC" = yes; then
8966 # Check if gcc -print-prog-name=ld gives a path.
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8968 $as_echo_n "checking for ld used by GCC... " >&6; }
8969 case $host in
8970 *-*-mingw*)
8971 # gcc leaves a trailing carriage return which upsets mingw
8972 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8973 *)
8974 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8975 esac
8976 case $ac_prog in
8977 # Accept absolute paths.
8978 [\\/]* | [A-Za-z]:[\\/]*)
8979 re_direlt='/[^/][^/]*/\.\./'
8980 # Canonicalize the path of ld
8981 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8982 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8983 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8984 done
8985 test -z "$LD" && LD="$ac_prog"
8986 ;;
8987 "")
8988 # If it fails, then pretend we aren't using GCC.
8989 ac_prog=ld
8990 ;;
8991 *)
8992 # If it is relative, then search for the first ld in PATH.
8993 with_gnu_ld=unknown
8994 ;;
8995 esac
8996 elif test "$with_gnu_ld" = yes; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8998 $as_echo_n "checking for GNU ld... " >&6; }
8999 else
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9001 $as_echo_n "checking for non-GNU ld... " >&6; }
9002 fi
9003 if test "${acl_cv_path_LD+set}" = set; then :
9004 $as_echo_n "(cached) " >&6
9005 else
9006 if test -z "$LD"; then
9007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9008 for ac_dir in $PATH; do
9009 test -z "$ac_dir" && ac_dir=.
9010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9011 acl_cv_path_LD="$ac_dir/$ac_prog"
9012 # Check to see if the program is GNU ld. I'd rather use --version,
9013 # but apparently some GNU ld's only accept -v.
9014 # Break only if it was the GNU/non-GNU ld that we prefer.
9015 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9016 test "$with_gnu_ld" != no && break
9017 else
9018 test "$with_gnu_ld" != yes && break
9019 fi
9020 fi
9021 done
9022 IFS="$ac_save_ifs"
9023 else
9024 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9025 fi
9026 fi
9027
9028 LD="$acl_cv_path_LD"
9029 if test -n "$LD"; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9031 $as_echo "$LD" >&6; }
9032 else
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 $as_echo "no" >&6; }
9035 fi
9036 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9038 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9039 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9043 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9044 acl_cv_prog_gnu_ld=yes
9045 else
9046 acl_cv_prog_gnu_ld=no
9047 fi
9048 fi
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9050 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9051 with_gnu_ld=$acl_cv_prog_gnu_ld
9052
9053
9054
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9056 $as_echo_n "checking for shared library run path origin... " >&6; }
9057 if test "${acl_cv_rpath+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060
9061 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9062 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9063 . ./conftest.sh
9064 rm -f ./conftest.sh
9065 acl_cv_rpath=done
9066
9067 fi
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9069 $as_echo "$acl_cv_rpath" >&6; }
9070 wl="$acl_cv_wl"
9071 libext="$acl_cv_libext"
9072 shlibext="$acl_cv_shlibext"
9073 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9074 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9075 hardcode_direct="$acl_cv_hardcode_direct"
9076 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9077 # Check whether --enable-rpath was given.
9078 if test "${enable_rpath+set}" = set; then :
9079 enableval=$enable_rpath; :
9080 else
9081 enable_rpath=yes
9082 fi
9083
9084
9085
9086
9087
9088
9089
9090
9091 use_additional=yes
9092
9093 acl_save_prefix="$prefix"
9094 prefix="$acl_final_prefix"
9095 acl_save_exec_prefix="$exec_prefix"
9096 exec_prefix="$acl_final_exec_prefix"
9097
9098 eval additional_includedir=\"$includedir\"
9099 eval additional_libdir=\"$libdir\"
9100
9101 exec_prefix="$acl_save_exec_prefix"
9102 prefix="$acl_save_prefix"
9103
9104
9105 # Check whether --with-libiconv-prefix was given.
9106 if test "${with_libiconv_prefix+set}" = set; then :
9107 withval=$with_libiconv_prefix;
9108 if test "X$withval" = "Xno"; then
9109 use_additional=no
9110 else
9111 if test "X$withval" = "X"; then
9112
9113 acl_save_prefix="$prefix"
9114 prefix="$acl_final_prefix"
9115 acl_save_exec_prefix="$exec_prefix"
9116 exec_prefix="$acl_final_exec_prefix"
9117
9118 eval additional_includedir=\"$includedir\"
9119 eval additional_libdir=\"$libdir\"
9120
9121 exec_prefix="$acl_save_exec_prefix"
9122 prefix="$acl_save_prefix"
9123
9124 else
9125 additional_includedir="$withval/include"
9126 additional_libdir="$withval/lib"
9127 fi
9128 fi
9129
9130 fi
9131
9132 LIBICONV=
9133 LTLIBICONV=
9134 INCICONV=
9135 rpathdirs=
9136 ltrpathdirs=
9137 names_already_handled=
9138 names_next_round='iconv '
9139 while test -n "$names_next_round"; do
9140 names_this_round="$names_next_round"
9141 names_next_round=
9142 for name in $names_this_round; do
9143 already_handled=
9144 for n in $names_already_handled; do
9145 if test "$n" = "$name"; then
9146 already_handled=yes
9147 break
9148 fi
9149 done
9150 if test -z "$already_handled"; then
9151 names_already_handled="$names_already_handled $name"
9152 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9153 eval value=\"\$HAVE_LIB$uppername\"
9154 if test -n "$value"; then
9155 if test "$value" = yes; then
9156 eval value=\"\$LIB$uppername\"
9157 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9158 eval value=\"\$LTLIB$uppername\"
9159 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9160 else
9161 :
9162 fi
9163 else
9164 found_dir=
9165 found_la=
9166 found_so=
9167 found_a=
9168 if test $use_additional = yes; then
9169 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9170 found_dir="$additional_libdir"
9171 found_so="$additional_libdir/lib$name.$shlibext"
9172 if test -f "$additional_libdir/lib$name.la"; then
9173 found_la="$additional_libdir/lib$name.la"
9174 fi
9175 else
9176 if test -f "$additional_libdir/lib$name.$libext"; then
9177 found_dir="$additional_libdir"
9178 found_a="$additional_libdir/lib$name.$libext"
9179 if test -f "$additional_libdir/lib$name.la"; then
9180 found_la="$additional_libdir/lib$name.la"
9181 fi
9182 fi
9183 fi
9184 fi
9185 if test "X$found_dir" = "X"; then
9186 for x in $LDFLAGS $LTLIBICONV; do
9187
9188 acl_save_prefix="$prefix"
9189 prefix="$acl_final_prefix"
9190 acl_save_exec_prefix="$exec_prefix"
9191 exec_prefix="$acl_final_exec_prefix"
9192 eval x=\"$x\"
9193 exec_prefix="$acl_save_exec_prefix"
9194 prefix="$acl_save_prefix"
9195
9196 case "$x" in
9197 -L*)
9198 dir=`echo "X$x" | sed -e 's/^X-L//'`
9199 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9200 found_dir="$dir"
9201 found_so="$dir/lib$name.$shlibext"
9202 if test -f "$dir/lib$name.la"; then
9203 found_la="$dir/lib$name.la"
9204 fi
9205 else
9206 if test -f "$dir/lib$name.$libext"; then
9207 found_dir="$dir"
9208 found_a="$dir/lib$name.$libext"
9209 if test -f "$dir/lib$name.la"; then
9210 found_la="$dir/lib$name.la"
9211 fi
9212 fi
9213 fi
9214 ;;
9215 esac
9216 if test "X$found_dir" != "X"; then
9217 break
9218 fi
9219 done
9220 fi
9221 if test "X$found_dir" != "X"; then
9222 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9223 if test "X$found_so" != "X"; then
9224 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9225 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9226 else
9227 haveit=
9228 for x in $ltrpathdirs; do
9229 if test "X$x" = "X$found_dir"; then
9230 haveit=yes
9231 break
9232 fi
9233 done
9234 if test -z "$haveit"; then
9235 ltrpathdirs="$ltrpathdirs $found_dir"
9236 fi
9237 if test "$hardcode_direct" = yes; then
9238 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9239 else
9240 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9241 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9242 haveit=
9243 for x in $rpathdirs; do
9244 if test "X$x" = "X$found_dir"; then
9245 haveit=yes
9246 break
9247 fi
9248 done
9249 if test -z "$haveit"; then
9250 rpathdirs="$rpathdirs $found_dir"
9251 fi
9252 else
9253 haveit=
9254 for x in $LDFLAGS $LIBICONV; do
9255
9256 acl_save_prefix="$prefix"
9257 prefix="$acl_final_prefix"
9258 acl_save_exec_prefix="$exec_prefix"
9259 exec_prefix="$acl_final_exec_prefix"
9260 eval x=\"$x\"
9261 exec_prefix="$acl_save_exec_prefix"
9262 prefix="$acl_save_prefix"
9263
9264 if test "X$x" = "X-L$found_dir"; then
9265 haveit=yes
9266 break
9267 fi
9268 done
9269 if test -z "$haveit"; then
9270 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9271 fi
9272 if test "$hardcode_minus_L" != no; then
9273 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9274 else
9275 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9276 fi
9277 fi
9278 fi
9279 fi
9280 else
9281 if test "X$found_a" != "X"; then
9282 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9283 else
9284 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9285 fi
9286 fi
9287 additional_includedir=
9288 case "$found_dir" in
9289 */lib | */lib/)
9290 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9291 additional_includedir="$basedir/include"
9292 ;;
9293 esac
9294 if test "X$additional_includedir" != "X"; then
9295 if test "X$additional_includedir" != "X/usr/include"; then
9296 haveit=
9297 if test "X$additional_includedir" = "X/usr/local/include"; then
9298 if test -n "$GCC"; then
9299 case $host_os in
9300 linux*) haveit=yes;;
9301 esac
9302 fi
9303 fi
9304 if test -z "$haveit"; then
9305 for x in $CPPFLAGS $INCICONV; do
9306
9307 acl_save_prefix="$prefix"
9308 prefix="$acl_final_prefix"
9309 acl_save_exec_prefix="$exec_prefix"
9310 exec_prefix="$acl_final_exec_prefix"
9311 eval x=\"$x\"
9312 exec_prefix="$acl_save_exec_prefix"
9313 prefix="$acl_save_prefix"
9314
9315 if test "X$x" = "X-I$additional_includedir"; then
9316 haveit=yes
9317 break
9318 fi
9319 done
9320 if test -z "$haveit"; then
9321 if test -d "$additional_includedir"; then
9322 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9323 fi
9324 fi
9325 fi
9326 fi
9327 fi
9328 if test -n "$found_la"; then
9329 save_libdir="$libdir"
9330 case "$found_la" in
9331 */* | *\\*) . "$found_la" ;;
9332 *) . "./$found_la" ;;
9333 esac
9334 libdir="$save_libdir"
9335 for dep in $dependency_libs; do
9336 case "$dep" in
9337 -L*)
9338 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9339 if test "X$additional_libdir" != "X/usr/lib"; then
9340 haveit=
9341 if test "X$additional_libdir" = "X/usr/local/lib"; then
9342 if test -n "$GCC"; then
9343 case $host_os in
9344 linux*) haveit=yes;;
9345 esac
9346 fi
9347 fi
9348 if test -z "$haveit"; then
9349 haveit=
9350 for x in $LDFLAGS $LIBICONV; do
9351
9352 acl_save_prefix="$prefix"
9353 prefix="$acl_final_prefix"
9354 acl_save_exec_prefix="$exec_prefix"
9355 exec_prefix="$acl_final_exec_prefix"
9356 eval x=\"$x\"
9357 exec_prefix="$acl_save_exec_prefix"
9358 prefix="$acl_save_prefix"
9359
9360 if test "X$x" = "X-L$additional_libdir"; then
9361 haveit=yes
9362 break
9363 fi
9364 done
9365 if test -z "$haveit"; then
9366 if test -d "$additional_libdir"; then
9367 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9368 fi
9369 fi
9370 haveit=
9371 for x in $LDFLAGS $LTLIBICONV; do
9372
9373 acl_save_prefix="$prefix"
9374 prefix="$acl_final_prefix"
9375 acl_save_exec_prefix="$exec_prefix"
9376 exec_prefix="$acl_final_exec_prefix"
9377 eval x=\"$x\"
9378 exec_prefix="$acl_save_exec_prefix"
9379 prefix="$acl_save_prefix"
9380
9381 if test "X$x" = "X-L$additional_libdir"; then
9382 haveit=yes
9383 break
9384 fi
9385 done
9386 if test -z "$haveit"; then
9387 if test -d "$additional_libdir"; then
9388 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9389 fi
9390 fi
9391 fi
9392 fi
9393 ;;
9394 -R*)
9395 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9396 if test "$enable_rpath" != no; then
9397 haveit=
9398 for x in $rpathdirs; do
9399 if test "X$x" = "X$dir"; then
9400 haveit=yes
9401 break
9402 fi
9403 done
9404 if test -z "$haveit"; then
9405 rpathdirs="$rpathdirs $dir"
9406 fi
9407 haveit=
9408 for x in $ltrpathdirs; do
9409 if test "X$x" = "X$dir"; then
9410 haveit=yes
9411 break
9412 fi
9413 done
9414 if test -z "$haveit"; then
9415 ltrpathdirs="$ltrpathdirs $dir"
9416 fi
9417 fi
9418 ;;
9419 -l*)
9420 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9421 ;;
9422 *.la)
9423 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9424 ;;
9425 *)
9426 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9428 ;;
9429 esac
9430 done
9431 fi
9432 else
9433 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9434 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9435 fi
9436 fi
9437 fi
9438 done
9439 done
9440 if test "X$rpathdirs" != "X"; then
9441 if test -n "$hardcode_libdir_separator"; then
9442 alldirs=
9443 for found_dir in $rpathdirs; do
9444 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9445 done
9446 acl_save_libdir="$libdir"
9447 libdir="$alldirs"
9448 eval flag=\"$hardcode_libdir_flag_spec\"
9449 libdir="$acl_save_libdir"
9450 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9451 else
9452 for found_dir in $rpathdirs; do
9453 acl_save_libdir="$libdir"
9454 libdir="$found_dir"
9455 eval flag=\"$hardcode_libdir_flag_spec\"
9456 libdir="$acl_save_libdir"
9457 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9458 done
9459 fi
9460 fi
9461 if test "X$ltrpathdirs" != "X"; then
9462 for found_dir in $ltrpathdirs; do
9463 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9464 done
9465 fi
9466
9467
9468
9469
9470
9471
9472
9473 am_save_CPPFLAGS="$CPPFLAGS"
9474
9475 for element in $INCICONV; do
9476 haveit=
9477 for x in $CPPFLAGS; do
9478
9479 acl_save_prefix="$prefix"
9480 prefix="$acl_final_prefix"
9481 acl_save_exec_prefix="$exec_prefix"
9482 exec_prefix="$acl_final_exec_prefix"
9483 eval x=\"$x\"
9484 exec_prefix="$acl_save_exec_prefix"
9485 prefix="$acl_save_prefix"
9486
9487 if test "X$x" = "X$element"; then
9488 haveit=yes
9489 break
9490 fi
9491 done
9492 if test -z "$haveit"; then
9493 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9494 fi
9495 done
9496
9497
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9499 $as_echo_n "checking for iconv... " >&6; }
9500 if test "${am_cv_func_iconv+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503
9504 am_cv_func_iconv="no, consider installing GNU libiconv"
9505 am_cv_lib_iconv=no
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9508 #include <stdlib.h>
9509 #include <iconv.h>
9510 int
9511 main ()
9512 {
9513 iconv_t cd = iconv_open("","");
9514 iconv(cd,NULL,NULL,NULL,NULL);
9515 iconv_close(cd);
9516 ;
9517 return 0;
9518 }
9519 _ACEOF
9520 if ac_fn_c_try_link "$LINENO"; then :
9521 am_cv_func_iconv=yes
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
9525 if test "$am_cv_func_iconv" != yes; then
9526 am_save_LIBS="$LIBS"
9527 LIBS="$LIBS $LIBICONV"
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530 #include <stdlib.h>
9531 #include <iconv.h>
9532 int
9533 main ()
9534 {
9535 iconv_t cd = iconv_open("","");
9536 iconv(cd,NULL,NULL,NULL,NULL);
9537 iconv_close(cd);
9538 ;
9539 return 0;
9540 }
9541 _ACEOF
9542 if ac_fn_c_try_link "$LINENO"; then :
9543 am_cv_lib_iconv=yes
9544 am_cv_func_iconv=yes
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9548 LIBS="$am_save_LIBS"
9549 fi
9550
9551 fi
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9553 $as_echo "$am_cv_func_iconv" >&6; }
9554 if test "$am_cv_func_iconv" = yes; then
9555
9556 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9557
9558 fi
9559 if test "$am_cv_lib_iconv" = yes; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9561 $as_echo_n "checking how to link with libiconv... " >&6; }
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9563 $as_echo "$LIBICONV" >&6; }
9564 else
9565 CPPFLAGS="$am_save_CPPFLAGS"
9566 LIBICONV=
9567 LTLIBICONV=
9568 fi
9569
9570
9571
9572 if test "$am_cv_func_iconv" = yes; then
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9574 $as_echo_n "checking for iconv declaration... " >&6; }
9575 if test "${am_cv_proto_iconv+set}" = set; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581
9582 #include <stdlib.h>
9583 #include <iconv.h>
9584 extern
9585 #ifdef __cplusplus
9586 "C"
9587 #endif
9588 #if defined(__STDC__) || defined(__cplusplus)
9589 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9590 #else
9591 size_t iconv();
9592 #endif
9593
9594 int
9595 main ()
9596 {
9597
9598 ;
9599 return 0;
9600 }
9601 _ACEOF
9602 if ac_fn_c_try_compile "$LINENO"; then :
9603 am_cv_proto_iconv_arg1=""
9604 else
9605 am_cv_proto_iconv_arg1="const"
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9608 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);"
9609 fi
9610
9611 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9613 }$am_cv_proto_iconv" >&5
9614 $as_echo "${ac_t:-
9615 }$am_cv_proto_iconv" >&6; }
9616
9617 cat >>confdefs.h <<_ACEOF
9618 #define ICONV_CONST $am_cv_proto_iconv_arg1
9619 _ACEOF
9620
9621 fi
9622
9623 # Until we have in-tree GNU iconv:
9624 LIBICONV_DEP=
9625
9626
9627
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9629 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9630 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 #include <locale.h>
9636 int
9637 main ()
9638 {
9639 return LC_MESSAGES
9640 ;
9641 return 0;
9642 }
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9645 am_cv_val_LC_MESSAGES=yes
9646 else
9647 am_cv_val_LC_MESSAGES=no
9648 fi
9649 rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9651 fi
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9653 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9654 if test $am_cv_val_LC_MESSAGES = yes; then
9655
9656 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9657
9658 fi
9659
9660
9661
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9663 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9664 if test "${am_cv_langinfo_codeset+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666 else
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9669 #include <langinfo.h>
9670 int
9671 main ()
9672 {
9673 char* cs = nl_langinfo(CODESET);
9674 ;
9675 return 0;
9676 }
9677 _ACEOF
9678 if ac_fn_c_try_link "$LINENO"; then :
9679 am_cv_langinfo_codeset=yes
9680 else
9681 am_cv_langinfo_codeset=no
9682 fi
9683 rm -f core conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9685
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9688 $as_echo "$am_cv_langinfo_codeset" >&6; }
9689 if test $am_cv_langinfo_codeset = yes; then
9690
9691 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9692
9693 fi
9694
9695
9696 # We will need to find libiberty.h and ansidecl.h
9697 saved_CFLAGS="$CFLAGS"
9698 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9699 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9700 strsignal strstr strverscmp \
9701 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9702 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
9703 do
9704 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9706 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9707 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712 #undef $ac_tr_decl
9713 #define $ac_tr_decl 1
9714
9715 #include "ansidecl.h"
9716 #include "system.h"
9717
9718 int
9719 main ()
9720 {
9721 #ifndef $ac_func
9722 char *(*pfn) = (char *(*)) $ac_func ;
9723 #endif
9724 ;
9725 return 0;
9726 }
9727 _ACEOF
9728 if ac_fn_c_try_compile "$LINENO"; then :
9729 eval "gcc_cv_have_decl_$ac_func=yes"
9730 else
9731 eval "gcc_cv_have_decl_$ac_func=no"
9732 fi
9733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9734 fi
9735
9736 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9738 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9739 #define $ac_tr_decl 1
9740 _ACEOF
9741
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9745 #define $ac_tr_decl 0
9746 _ACEOF
9747
9748 fi
9749
9750 done
9751
9752
9753 for ac_func in getrlimit setrlimit getrusage
9754 do
9755 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9757 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9758 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9763 #undef $ac_tr_decl
9764 #define $ac_tr_decl 1
9765
9766 #include "ansidecl.h"
9767 #include "system.h"
9768 #ifdef HAVE_SYS_RESOURCE_H
9769 #include <sys/resource.h>
9770 #endif
9771
9772
9773 int
9774 main ()
9775 {
9776 #ifndef $ac_func
9777 char *(*pfn) = (char *(*)) $ac_func ;
9778 #endif
9779 ;
9780 return 0;
9781 }
9782 _ACEOF
9783 if ac_fn_c_try_compile "$LINENO"; then :
9784 eval "gcc_cv_have_decl_$ac_func=yes"
9785 else
9786 eval "gcc_cv_have_decl_$ac_func=no"
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789 fi
9790
9791 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9793 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9794 #define $ac_tr_decl 1
9795 _ACEOF
9796
9797 else
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9800 #define $ac_tr_decl 0
9801 _ACEOF
9802
9803 fi
9804
9805 done
9806
9807
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9810
9811 #include "ansidecl.h"
9812 #include "system.h"
9813 #ifdef HAVE_SYS_RESOURCE_H
9814 #include <sys/resource.h>
9815 #endif
9816
9817 int
9818 main ()
9819 {
9820 rlim_t l = 0;
9821 ;
9822 return 0;
9823 }
9824 _ACEOF
9825 if ac_fn_c_try_compile "$LINENO"; then :
9826
9827 else
9828
9829 $as_echo "#define rlim_t long" >>confdefs.h
9830
9831 fi
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833
9834 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9835 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9836 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9837 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9838 for ac_func in ldgetname
9839 do
9840 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9842 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9843 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9848 #undef $ac_tr_decl
9849 #define $ac_tr_decl 1
9850
9851 #include "ansidecl.h"
9852 #include "system.h"
9853 #ifdef HAVE_LDFCN_H
9854 #undef FREAD
9855 #undef FWRITE
9856 #include <ldfcn.h>
9857 #endif
9858
9859
9860 int
9861 main ()
9862 {
9863 #ifndef $ac_func
9864 char *(*pfn) = (char *(*)) $ac_func ;
9865 #endif
9866 ;
9867 return 0;
9868 }
9869 _ACEOF
9870 if ac_fn_c_try_compile "$LINENO"; then :
9871 eval "gcc_cv_have_decl_$ac_func=yes"
9872 else
9873 eval "gcc_cv_have_decl_$ac_func=no"
9874 fi
9875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9876 fi
9877
9878 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9880 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9881 #define $ac_tr_decl 1
9882 _ACEOF
9883
9884 else
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9887 #define $ac_tr_decl 0
9888 _ACEOF
9889
9890 fi
9891
9892 done
9893
9894
9895 for ac_func in times
9896 do
9897 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9899 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9900 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905 #undef $ac_tr_decl
9906 #define $ac_tr_decl 1
9907
9908 #include "ansidecl.h"
9909 #include "system.h"
9910 #ifdef HAVE_SYS_TIMES_H
9911 #include <sys/times.h>
9912 #endif
9913
9914
9915 int
9916 main ()
9917 {
9918 #ifndef $ac_func
9919 char *(*pfn) = (char *(*)) $ac_func ;
9920 #endif
9921 ;
9922 return 0;
9923 }
9924 _ACEOF
9925 if ac_fn_c_try_compile "$LINENO"; then :
9926 eval "gcc_cv_have_decl_$ac_func=yes"
9927 else
9928 eval "gcc_cv_have_decl_$ac_func=no"
9929 fi
9930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931 fi
9932
9933 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9935 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9936 #define $ac_tr_decl 1
9937 _ACEOF
9938
9939 else
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9942 #define $ac_tr_decl 0
9943 _ACEOF
9944
9945 fi
9946
9947 done
9948
9949
9950 for ac_func in sigaltstack
9951 do
9952 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9954 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9955 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9956 $as_echo_n "(cached) " >&6
9957 else
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9960 #undef $ac_tr_decl
9961 #define $ac_tr_decl 1
9962
9963 #include "ansidecl.h"
9964 #include "system.h"
9965 #include <signal.h>
9966
9967
9968 int
9969 main ()
9970 {
9971 #ifndef $ac_func
9972 char *(*pfn) = (char *(*)) $ac_func ;
9973 #endif
9974 ;
9975 return 0;
9976 }
9977 _ACEOF
9978 if ac_fn_c_try_compile "$LINENO"; then :
9979 eval "gcc_cv_have_decl_$ac_func=yes"
9980 else
9981 eval "gcc_cv_have_decl_$ac_func=no"
9982 fi
9983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9984 fi
9985
9986 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9988 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9989 #define $ac_tr_decl 1
9990 _ACEOF
9991
9992 else
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9994 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9995 #define $ac_tr_decl 0
9996 _ACEOF
9997
9998 fi
9999
10000 done
10001
10002
10003 # More time-related stuff.
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10005 $as_echo_n "checking for struct tms... " >&6; }
10006 if test "${ac_cv_struct_tms+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
10008 else
10009
10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011 /* end confdefs.h. */
10012
10013 #include "ansidecl.h"
10014 #include "system.h"
10015 #ifdef HAVE_SYS_TIMES_H
10016 #include <sys/times.h>
10017 #endif
10018
10019 int
10020 main ()
10021 {
10022 struct tms tms;
10023 ;
10024 return 0;
10025 }
10026 _ACEOF
10027 if ac_fn_c_try_compile "$LINENO"; then :
10028 ac_cv_struct_tms=yes
10029 else
10030 ac_cv_struct_tms=no
10031 fi
10032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10033 fi
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10035 $as_echo "$ac_cv_struct_tms" >&6; }
10036 if test $ac_cv_struct_tms = yes; then
10037
10038 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10039
10040 fi
10041
10042 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10043 # revisit after autoconf 2.50.
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10045 $as_echo_n "checking for clock_t... " >&6; }
10046 if test "${gcc_cv_type_clock_t+set}" = set; then :
10047 $as_echo_n "(cached) " >&6
10048 else
10049
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052
10053 #include "ansidecl.h"
10054 #include "system.h"
10055
10056 int
10057 main ()
10058 {
10059 clock_t x;
10060 ;
10061 return 0;
10062 }
10063 _ACEOF
10064 if ac_fn_c_try_compile "$LINENO"; then :
10065 gcc_cv_type_clock_t=yes
10066 else
10067 gcc_cv_type_clock_t=no
10068 fi
10069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070 fi
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10072 $as_echo "$gcc_cv_type_clock_t" >&6; }
10073 if test $gcc_cv_type_clock_t = yes; then
10074
10075 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10076
10077 fi
10078
10079 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10080 CFLAGS="$saved_CFLAGS"
10081
10082 # Check whether --enable-initfini-array was given.
10083 if test "${enable_initfini_array+set}" = set; then :
10084 enableval=$enable_initfini_array;
10085 else
10086
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10088 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10089 if test "${gcc_cv_initfini_array+set}" = set; then :
10090 $as_echo_n "(cached) " >&6
10091 else
10092 if test "$cross_compiling" = yes; then :
10093 gcc_cv_initfini_array=no
10094 else
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10097
10098 static int x = -1;
10099 int main (void) { return x; }
10100 int foo (void) { x = 0; }
10101 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10102 _ACEOF
10103 if ac_fn_c_try_run "$LINENO"; then :
10104 gcc_cv_initfini_array=yes
10105 else
10106 gcc_cv_initfini_array=no
10107 fi
10108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10109 conftest.$ac_objext conftest.beam conftest.$ac_ext
10110 fi
10111
10112 fi
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10114 $as_echo "$gcc_cv_initfini_array" >&6; }
10115 enable_initfini_array=$gcc_cv_initfini_array
10116
10117 fi
10118
10119 if test $enable_initfini_array = yes; then
10120
10121 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10122
10123 fi
10124
10125 # mkdir takes a single argument on some systems.
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10127 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10128 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10129 $as_echo_n "(cached) " >&6
10130 else
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10133
10134 #include <sys/types.h>
10135 #ifdef HAVE_SYS_STAT_H
10136 # include <sys/stat.h>
10137 #endif
10138 #ifdef HAVE_UNISTD_H
10139 # include <unistd.h>
10140 #endif
10141 #ifdef HAVE_DIRECT_H
10142 # include <direct.h>
10143 #endif
10144 int
10145 main ()
10146 {
10147 mkdir ("foo", 0);
10148 ;
10149 return 0;
10150 }
10151 _ACEOF
10152 if ac_fn_c_try_compile "$LINENO"; then :
10153 gcc_cv_mkdir_takes_one_arg=no
10154 else
10155 gcc_cv_mkdir_takes_one_arg=yes
10156 fi
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158 fi
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10160 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10161 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10162
10163 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10164
10165 fi
10166
10167
10168 # File extensions
10169 manext='.1'
10170 objext='.o'
10171
10172
10173
10174 # With Setjmp/Longjmp based exception handling.
10175 # Check whether --enable-sjlj-exceptions was given.
10176 if test "${enable_sjlj_exceptions+set}" = set; then :
10177 enableval=$enable_sjlj_exceptions; case $target in
10178 *-*-hpux10*)
10179 if test $enableval != yes; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10181 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10182 enableval=yes
10183 fi
10184 ;;
10185 esac
10186 force_sjlj_exceptions=yes
10187 else
10188 case $target in
10189 *-*-hpux10*)
10190 force_sjlj_exceptions=yes
10191 enableval=yes
10192 ;;
10193 *)
10194 force_sjlj_exceptions=no
10195 ;;
10196 esac
10197 fi
10198
10199 if test $force_sjlj_exceptions = yes; then
10200 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10201
10202 cat >>confdefs.h <<_ACEOF
10203 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10204 _ACEOF
10205
10206 fi
10207
10208 # For platforms with the unwind ABI which includes an unwind library,
10209 # libunwind, we can choose to use the system libunwind.
10210 # config.gcc also contains tests of with_system_libunwind.
10211
10212
10213 # Check whether --with-system-libunwind was given.
10214 if test "${with_system_libunwind+set}" = set; then :
10215 withval=$with_system_libunwind;
10216 fi
10217
10218 # If system-libunwind was not specifically set, pick a default setting.
10219 if test x$with_system_libunwind = x; then
10220 case ${target} in
10221 ia64-*-hpux*) with_system_libunwind=yes ;;
10222 *) with_system_libunwind=no ;;
10223 esac
10224 fi
10225 # Based on system-libunwind and target, do we have ipinfo?
10226 if test x$with_system_libunwind = xyes; then
10227 case ${target} in
10228 ia64-*-*) have_unwind_getipinfo=no ;;
10229 *) have_unwind_getipinfo=yes ;;
10230 esac
10231 else
10232 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10233
10234 case ${target} in
10235 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10236 *) have_unwind_getipinfo=yes ;;
10237 esac
10238
10239 fi
10240
10241 if test x$have_unwind_getipinfo = xyes; then
10242
10243 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10244
10245 fi
10246
10247
10248 # --------------------------------------------------------
10249 # Build, host, and target specific configuration fragments
10250 # --------------------------------------------------------
10251
10252 # Collect build-machine-specific information.
10253 . ${srcdir}/config.build
10254
10255 # Collect host-machine-specific information.
10256 . ${srcdir}/config.host
10257
10258 target_gtfiles=
10259
10260 # Collect target-machine-specific information.
10261 . ${srcdir}/config.gcc
10262
10263 extra_objs="${host_extra_objs} ${extra_objs}"
10264 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10265
10266 # Default the target-machine variables that were not explicitly set.
10267 if test x"$tm_file" = x
10268 then tm_file=$cpu_type/$cpu_type.h; fi
10269
10270 if test x"$extra_headers" = x
10271 then extra_headers=; fi
10272
10273 if test x$md_file = x
10274 then md_file=$cpu_type/$cpu_type.md; fi
10275
10276 if test x$out_file = x
10277 then out_file=$cpu_type/$cpu_type.c; fi
10278
10279 if test x"$tmake_file" = x
10280 then tmake_file=$cpu_type/t-$cpu_type
10281 fi
10282
10283 if test x"$dwarf2" = xyes
10284 then tm_file="$tm_file tm-dwarf2.h"
10285 fi
10286
10287 # Say what files are being used for the output code and MD file.
10288 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10289 echo "Using \`$srcdir/config/$md_file' as machine description file."
10290
10291 # If any of the xm_file variables contain nonexistent files, warn
10292 # about them and drop them.
10293
10294 bx=
10295 for x in $build_xm_file; do
10296 if test -f $srcdir/config/$x
10297 then bx="$bx $x"
10298 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10299 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10300 fi
10301 done
10302 build_xm_file="$bx"
10303
10304 hx=
10305 for x in $host_xm_file; do
10306 if test -f $srcdir/config/$x
10307 then hx="$hx $x"
10308 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10309 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10310 fi
10311 done
10312 host_xm_file="$hx"
10313
10314 tx=
10315 for x in $xm_file; do
10316 if test -f $srcdir/config/$x
10317 then tx="$tx $x"
10318 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10319 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10320 fi
10321 done
10322 xm_file="$tx"
10323
10324 count=a
10325 for f in $tm_file; do
10326 count=${count}x
10327 done
10328 if test $count = ax; then
10329 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10330 else
10331 echo "Using the following target machine macro files:"
10332 for f in $tm_file; do
10333 echo " $srcdir/config/$f"
10334 done
10335 fi
10336
10337 if test x$need_64bit_hwint = xyes; then
10338
10339 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10340
10341 fi
10342
10343 if test x$use_long_long_for_widest_fast_int = xyes; then
10344
10345 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10346
10347 fi
10348
10349 count=a
10350 for f in $host_xm_file; do
10351 count=${count}x
10352 done
10353 if test $count = a; then
10354 :
10355 elif test $count = ax; then
10356 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10357 else
10358 echo "Using the following host machine macro files:"
10359 for f in $host_xm_file; do
10360 echo " $srcdir/config/$f"
10361 done
10362 fi
10363 echo "Using ${out_host_hook_obj} for host machine hooks."
10364
10365 if test "$host_xm_file" != "$build_xm_file"; then
10366 count=a
10367 for f in $build_xm_file; do
10368 count=${count}x
10369 done
10370 if test $count = a; then
10371 :
10372 elif test $count = ax; then
10373 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10374 else
10375 echo "Using the following build machine macro files:"
10376 for f in $build_xm_file; do
10377 echo " $srcdir/config/$f"
10378 done
10379 fi
10380 fi
10381
10382 case ${host} in
10383 powerpc*-*-darwin*)
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10385 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10386 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10387 $as_echo_n "(cached) " >&6
10388 else
10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10391
10392 #include <sys/cdefs.h>
10393 #include <sys/signal.h>
10394 #include <ucontext.h>
10395 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10396
10397 _ACEOF
10398 if ac_fn_c_try_compile "$LINENO"; then :
10399 gcc_cv_mcontext_underscores=no
10400 else
10401 gcc_cv_mcontext_underscores=yes
10402 fi
10403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10404 fi
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10406 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10407 if test $gcc_cv_mcontext_underscores = yes; then
10408
10409 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10410
10411 fi
10412 ;;
10413 esac
10414
10415 # ---------
10416 # Threading
10417 # ---------
10418
10419 # Check if a valid thread package
10420 case ${enable_threads} in
10421 "" | no)
10422 # No threads
10423 target_thread_file='single'
10424 ;;
10425 yes)
10426 # default
10427 target_thread_file='single'
10428 ;;
10429 aix | dce | gnat | irix | posix | posix95 | rtems | \
10430 single | solaris | vxworks | win32 | mipssde)
10431 target_thread_file=${enable_threads}
10432 ;;
10433 *)
10434 echo "${enable_threads} is an unknown thread package" 1>&2
10435 exit 1
10436 ;;
10437 esac
10438
10439 if test x${thread_file} = x; then
10440 # No thread file set by target-specific clauses in config.gcc,
10441 # so use file chosen by default logic above
10442 thread_file=${target_thread_file}
10443 fi
10444
10445 # Make gthr-default.h if we have a thread file.
10446 gthread_flags=
10447 if test $thread_file != single; then
10448 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10449 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10450 rm -f gthr-default.h-t
10451 else
10452 mv -f gthr-default.h-t gthr-default.h
10453 fi
10454 gthread_flags=-DHAVE_GTHR_DEFAULT
10455 fi
10456
10457
10458 # --------
10459 # UNSORTED
10460 # --------
10461
10462 use_cxa_atexit=no
10463 if test x$enable___cxa_atexit = xyes || \
10464 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10465 if test x$host = x$target; then
10466 case $host in
10467 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10468 # keyed to flag_use_cxa_atexit
10469 *-*-mingw32*)
10470 use_cxa_atexit=yes
10471 ;;
10472 *)
10473 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10474 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10475 use_cxa_atexit=yes
10476 else
10477 echo "__cxa_atexit can't be enabled on this target"
10478 fi
10479
10480 ;;
10481 esac
10482 else
10483 # We can't check for __cxa_atexit when building a cross, so assume
10484 # it is available
10485 use_cxa_atexit=yes
10486 fi
10487 if test x$use_cxa_atexit = xyes; then
10488
10489 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10490
10491 fi
10492 fi
10493
10494 # Look for a file containing extra machine modes.
10495 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10496 extra_modes_file='$(srcdir)'/config/${extra_modes}
10497
10498
10499 cat >>confdefs.h <<_ACEOF
10500 #define EXTRA_MODES_FILE "config/$extra_modes"
10501 _ACEOF
10502
10503 fi
10504
10505 # Convert extra_options into a form suitable for Makefile use.
10506 extra_opt_files=
10507 for f in $extra_options; do
10508 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10509 done
10510
10511
10512 # auto-host.h is the file containing items generated by autoconf and is
10513 # the first file included by config.h.
10514 # If host=build, it is correct to have bconfig include auto-host.h
10515 # as well. If host!=build, we are in error and need to do more
10516 # work to find out the build config parameters.
10517 if test x$host = x$build
10518 then
10519 build_auto=auto-host.h
10520 else
10521 # We create a subdir, then run autoconf in the subdir.
10522 # To prevent recursion we set host and build for the new
10523 # invocation of configure to the build for this invocation
10524 # of configure.
10525 tempdir=build.$$
10526 rm -rf $tempdir
10527 mkdir $tempdir
10528 cd $tempdir
10529 case ${srcdir} in
10530 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10531 *) realsrcdir=../${srcdir};;
10532 esac
10533 saved_CFLAGS="${CFLAGS}"
10534 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10535 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10536 ${realsrcdir}/configure \
10537 --enable-languages=${enable_languages-all} \
10538 --target=$target_alias --host=$build_alias --build=$build_alias
10539 CFLAGS="${saved_CFLAGS}"
10540
10541 # We just finished tests for the build machine, so rename
10542 # the file auto-build.h in the gcc directory.
10543 mv auto-host.h ../auto-build.h
10544 cd ..
10545 rm -rf $tempdir
10546 build_auto=auto-build.h
10547 fi
10548
10549
10550 tm_file="${tm_file} defaults.h"
10551 tm_p_file="${tm_p_file} tm-preds.h"
10552 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10553 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10554 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10555 # put this back in temporarily.
10556 xm_file="auto-host.h ansidecl.h ${xm_file}"
10557
10558 # --------
10559 # UNSORTED
10560 # --------
10561
10562 # Compile in configure arguments.
10563 if test -f configargs.h ; then
10564 # Being re-configured.
10565 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10566 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10567 else
10568 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10569 fi
10570
10571 # Double all backslashes and backslash all quotes to turn
10572 # gcc_config_arguments into a C string.
10573 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10574 $gcc_config_arguments
10575 EOF
10576 gcc_config_arguments_str=`cat conftest.out`
10577 rm -f conftest.out
10578
10579 cat > configargs.h <<EOF
10580 /* Generated automatically. */
10581 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10582 static const char thread_model[] = "$thread_file";
10583
10584 static const struct {
10585 const char *name, *value;
10586 } configure_default_options[] = $configure_default_options;
10587 EOF
10588
10589 gcc_BASEVER=`cat $srcdir/BASE-VER`
10590 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10591 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10592 if test -f $srcdir/REVISION ; then
10593 gcc_REVISION=`cat $srcdir/REVISION`
10594 else
10595 gcc_REVISION=""
10596 fi
10597 cat > plugin-version.h <<EOF
10598 #include "configargs.h"
10599
10600 static char basever[] = "$gcc_BASEVER";
10601 static char datestamp[] = "$gcc_DATESTAMP";
10602 static char devphase[] = "$gcc_DEVPHASE";
10603 static char revision[] = "$gcc_REVISION";
10604
10605 /* FIXME plugins: We should make the version information more precise.
10606 One way to do is to add a checksum. */
10607
10608 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10609 devphase, revision,
10610 configuration_arguments};
10611 EOF
10612
10613 # Internationalization
10614 # If we haven't got the data from the intl directory,
10615 # assume NLS is disabled.
10616 USE_NLS=no
10617 LIBINTL=
10618 LIBINTL_DEP=
10619 INCINTL=
10620 XGETTEXT=
10621 GMSGFMT=
10622 POSUB=
10623
10624 if test -f ../intl/config.intl; then
10625 . ../intl/config.intl
10626 fi
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10628 $as_echo_n "checking whether NLS is requested... " >&6; }
10629 if test x"$USE_NLS" != xyes; then
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10632 else
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10634 $as_echo "yes" >&6; }
10635
10636 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10637
10638
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10640 $as_echo_n "checking for catalogs to be installed... " >&6; }
10641 # Look for .po and .gmo files in the source directory.
10642 CATALOGS=
10643 XLINGUAS=
10644 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10645 # If there aren't any .gmo files the shell will give us the
10646 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10647 # weeded out.
10648 case "$cat" in *\**)
10649 continue;;
10650 esac
10651 # The quadruple backslash is collapsed to a double backslash
10652 # by the backticks, then collapsed again by the double quotes,
10653 # leaving us with one backslash in the sed expression (right
10654 # before the dot that mustn't act as a wildcard).
10655 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10656 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10657 # The user is allowed to set LINGUAS to a list of languages to
10658 # install catalogs for. If it's empty that means "all of them."
10659 if test "x$LINGUAS" = x; then
10660 CATALOGS="$CATALOGS $cat"
10661 XLINGUAS="$XLINGUAS $lang"
10662 else
10663 case "$LINGUAS" in *$lang*)
10664 CATALOGS="$CATALOGS $cat"
10665 XLINGUAS="$XLINGUAS $lang"
10666 ;;
10667 esac
10668 fi
10669 done
10670 LINGUAS="$XLINGUAS"
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10672 $as_echo "$LINGUAS" >&6; }
10673
10674
10675 DATADIRNAME=share
10676
10677 INSTOBJEXT=.mo
10678
10679 GENCAT=gencat
10680
10681 CATOBJEXT=.gmo
10682
10683 fi
10684
10685 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10686 # -liconv on the link line twice.
10687 case "$LIBINTL" in *$LIBICONV*)
10688 LIBICONV= ;;
10689 esac
10690
10691 # Check whether --enable-secureplt was given.
10692 if test "${enable_secureplt+set}" = set; then :
10693 enableval=$enable_secureplt;
10694 fi
10695
10696
10697 # Check whether --enable-leading-mingw64-underscores was given.
10698 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10699 enableval=$enable_leading_mingw64_underscores;
10700 fi
10701
10702 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
10703
10704 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10705
10706 fi
10707
10708 # Check whether --enable-cld was given.
10709 if test "${enable_cld+set}" = set; then :
10710 enableval=$enable_cld;
10711 else
10712 enable_cld=no
10713 fi
10714
10715
10716 # Check whether --enable-frame-pointer was given.
10717 if test "${enable_frame_pointer+set}" = set; then :
10718 enableval=$enable_frame_pointer;
10719 else
10720
10721 case $target_os in
10722 linux* | darwin[8912]*)
10723 # Enable -fomit-frame-pointer by default for Linux and Darwin with
10724 # DWARF2.
10725 enable_frame_pointer=no
10726 ;;
10727 *)
10728 enable_frame_pointer=yes
10729 ;;
10730 esac
10731
10732 fi
10733
10734
10735 # Windows32 Registry support for specifying GCC installation paths.
10736 # Check whether --enable-win32-registry was given.
10737 if test "${enable_win32_registry+set}" = set; then :
10738 enableval=$enable_win32_registry;
10739 fi
10740
10741
10742 case $host_os in
10743 win32 | pe | cygwin* | mingw32* | uwin*)
10744 if test "x$enable_win32_registry" != xno; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10746 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10747 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 ac_func_search_save_LIBS=$LIBS
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753
10754 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10757 #ifdef __cplusplus
10758 extern "C"
10759 #endif
10760 char RegOpenKeyExA ();
10761 int
10762 main ()
10763 {
10764 return RegOpenKeyExA ();
10765 ;
10766 return 0;
10767 }
10768 _ACEOF
10769 for ac_lib in '' advapi32; do
10770 if test -z "$ac_lib"; then
10771 ac_res="none required"
10772 else
10773 ac_res=-l$ac_lib
10774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10775 fi
10776 if ac_fn_c_try_link "$LINENO"; then :
10777 ac_cv_search_RegOpenKeyExA=$ac_res
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext
10781 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10782 break
10783 fi
10784 done
10785 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10786
10787 else
10788 ac_cv_search_RegOpenKeyExA=no
10789 fi
10790 rm conftest.$ac_ext
10791 LIBS=$ac_func_search_save_LIBS
10792 fi
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10794 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10795 ac_res=$ac_cv_search_RegOpenKeyExA
10796 if test "$ac_res" != no; then :
10797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10798
10799 else
10800 enable_win32_registry=no
10801 fi
10802
10803 fi
10804
10805 if test "x$enable_win32_registry" != xno; then
10806
10807 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10808
10809
10810 if test "x$enable_win32_registry" != xyes \
10811 && test "x$enable_win32_registry" != x; then
10812
10813 cat >>confdefs.h <<_ACEOF
10814 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10815 _ACEOF
10816
10817 fi
10818 fi
10819 ;;
10820 esac
10821
10822 # Get an absolute path to the GCC top-level source directory
10823 holddir=`${PWDCMD-pwd}`
10824 cd $srcdir
10825 topdir=`${PWDCMD-pwd}`
10826 cd $holddir
10827
10828 # Conditionalize the makefile for this host machine.
10829 xmake_file=
10830 for f in ${host_xmake_file}
10831 do
10832 if test -f ${srcdir}/config/$f
10833 then
10834 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10835 fi
10836 done
10837
10838 # Conditionalize the makefile for this target machine.
10839 tmake_file_=
10840 for f in ${tmake_file}
10841 do
10842 if test -f ${srcdir}/config/$f
10843 then
10844 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10845 fi
10846 done
10847 tmake_file="${tmake_file_}"
10848
10849 out_object_file=`basename $out_file .c`.o
10850
10851 tm_file_list="options.h"
10852 tm_include_list="options.h insn-constants.h"
10853 for f in $tm_file; do
10854 case $f in
10855 ./* )
10856 f=`echo $f | sed 's/^..//'`
10857 tm_file_list="${tm_file_list} $f"
10858 tm_include_list="${tm_include_list} $f"
10859 ;;
10860 defaults.h )
10861 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10862 tm_include_list="${tm_include_list} $f"
10863 ;;
10864 * )
10865 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10866 tm_include_list="${tm_include_list} config/$f"
10867 ;;
10868 esac
10869 done
10870
10871 tm_p_file_list=
10872 tm_p_include_list=
10873 for f in $tm_p_file; do
10874 case $f in
10875 tm-preds.h )
10876 tm_p_file_list="${tm_p_file_list} $f"
10877 tm_p_include_list="${tm_p_include_list} $f"
10878 ;;
10879 * )
10880 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10881 tm_p_include_list="${tm_p_include_list} config/$f"
10882 esac
10883 done
10884
10885 xm_file_list=
10886 xm_include_list=
10887 for f in $xm_file; do
10888 case $f in
10889 ansidecl.h )
10890 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10891 xm_include_list="${xm_include_list} $f"
10892 ;;
10893 auto-host.h )
10894 xm_file_list="${xm_file_list} $f"
10895 xm_include_list="${xm_include_list} $f"
10896 ;;
10897 * )
10898 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10899 xm_include_list="${xm_include_list} config/$f"
10900 ;;
10901 esac
10902 done
10903
10904 host_xm_file_list=
10905 host_xm_include_list=
10906 for f in $host_xm_file; do
10907 case $f in
10908 ansidecl.h )
10909 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10910 host_xm_include_list="${host_xm_include_list} $f"
10911 ;;
10912 auto-host.h )
10913 host_xm_file_list="${host_xm_file_list} $f"
10914 host_xm_include_list="${host_xm_include_list} $f"
10915 ;;
10916 * )
10917 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10918 host_xm_include_list="${host_xm_include_list} config/$f"
10919 ;;
10920 esac
10921 done
10922
10923 build_xm_file_list=
10924 for f in $build_xm_file; do
10925 case $f in
10926 ansidecl.h )
10927 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10928 build_xm_include_list="${build_xm_include_list} $f"
10929 ;;
10930 auto-build.h | auto-host.h )
10931 build_xm_file_list="${build_xm_file_list} $f"
10932 build_xm_include_list="${build_xm_include_list} $f"
10933 ;;
10934 * )
10935 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10936 build_xm_include_list="${build_xm_include_list} config/$f"
10937 ;;
10938 esac
10939 done
10940
10941 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10942 # cross-compiler which does not use the native headers and libraries.
10943 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10944 CROSS=
10945 ALL=all.internal
10946 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10947
10948 if test "x$with_build_sysroot" != x; then
10949 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10950 else
10951 # This value is used, even on a native system, because
10952 # CROSS_SYSTEM_HEADER_DIR is just
10953 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10954 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10955 fi
10956
10957 if test x$host != x$target
10958 then
10959 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10960 ALL=all.cross
10961 SYSTEM_HEADER_DIR=$build_system_header_dir
10962 case "$host","$target" in
10963 # Darwin crosses can use the host system's libraries and headers,
10964 # because of the fat library support. Of course, it must be the
10965 # same version of Darwin on both sides. Allow the user to
10966 # just say --target=foo-darwin without a version number to mean
10967 # "the version on this system".
10968 *-*-darwin*,*-*-darwin*)
10969 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10970 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10971 if test $hostos = $targetos -o $targetos = darwin ; then
10972 CROSS=
10973 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10974 with_headers=yes
10975 fi
10976 ;;
10977
10978 i?86-*-*,x86_64-*-* \
10979 | powerpc*-*-*,powerpc64*-*-*)
10980 CROSS="$CROSS -DNATIVE_CROSS" ;;
10981 esac
10982 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10983 SYSTEM_HEADER_DIR=$build_system_header_dir
10984 fi
10985
10986 # If this is a cross-compiler that does not
10987 # have its own set of headers then define
10988 # inhibit_libc
10989
10990 # If this is using newlib, without having the headers available now,
10991 # then define inhibit_libc in LIBGCC2_CFLAGS.
10992 # This prevents libgcc2 from containing any code which requires libc
10993 # support.
10994 : ${inhibit_libc=false}
10995 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10996 test x$with_newlib = xyes ; } &&
10997 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10998 inhibit_libc=true
10999 fi
11000
11001
11002 # When building gcc with a cross-compiler, we need to adjust things so
11003 # that the generator programs are still built with the native compiler.
11004 # Also, we cannot run fixincludes.
11005
11006 # These are the normal (build=host) settings:
11007 CC_FOR_BUILD='$(CC)'
11008 BUILD_CFLAGS='$(ALL_CFLAGS)'
11009 BUILD_LDFLAGS='$(LDFLAGS)'
11010 STMP_FIXINC=stmp-fixinc
11011
11012 # And these apply if build != host, or we are generating coverage data
11013 if test x$build != x$host || test "x$coverage_flags" != x
11014 then
11015 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11016 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11017 fi
11018
11019 # Expand extra_headers to include complete path.
11020 # This substitutes for lots of t-* files.
11021 extra_headers_list=
11022 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11023 for file in ${extra_headers} ; do
11024 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11025 done
11026
11027 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11028 if test x"$use_gcc_tgmath" = xyes
11029 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11030 fi
11031
11032 # Define collect2 in Makefile.
11033 case $host_can_use_collect2 in
11034 no) collect2= ;;
11035 *) collect2='collect2$(exeext)' ;;
11036 esac
11037
11038
11039 # Add a definition of USE_COLLECT2 if system wants one.
11040 case $use_collect2 in
11041 no) use_collect2= ;;
11042 "") ;;
11043 *)
11044 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11045 xm_defines="${xm_defines} USE_COLLECT2"
11046 case $host_can_use_collect2 in
11047 no)
11048 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11049 ;;
11050 esac
11051 ;;
11052 esac
11053
11054 # ---------------------------
11055 # Assembler & linker features
11056 # ---------------------------
11057
11058 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11059 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11060 # However when ld-new is first executed from the build tree, libtool will
11061 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11062 # to the build tree. While doing this we need to use the previous-stage
11063 # linker, or we have an infinite loop. The presence of a shell script as
11064 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11065 # the gcc/collect-ld script. So we need to know how libtool works, or
11066 # exec-tool will fail.
11067
11068
11069 case `pwd` in
11070 *\ * | *\ *)
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11072 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11073 esac
11074
11075
11076
11077 macro_version='2.2.7a'
11078 macro_revision='1.3134'
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092 ltmain="$ac_aux_dir/ltmain.sh"
11093
11094 # Backslashify metacharacters that are still active within
11095 # double-quoted strings.
11096 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11097
11098 # Same as above, but do not quote variable references.
11099 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11100
11101 # Sed substitution to delay expansion of an escaped shell variable in a
11102 # double_quote_subst'ed string.
11103 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11104
11105 # Sed substitution to delay expansion of an escaped single quote.
11106 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11107
11108 # Sed substitution to avoid accidental globbing in evaled expressions
11109 no_glob_subst='s/\*/\\\*/g'
11110
11111 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11112 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11113 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11114
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11116 $as_echo_n "checking how to print strings... " >&6; }
11117 # Test print first, because it will be a builtin if present.
11118 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11119 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11120 ECHO='print -r --'
11121 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11122 ECHO='printf %s\n'
11123 else
11124 # Use this function as a fallback that always works.
11125 func_fallback_echo ()
11126 {
11127 eval 'cat <<_LTECHO_EOF
11128 $1
11129 _LTECHO_EOF'
11130 }
11131 ECHO='func_fallback_echo'
11132 fi
11133
11134 # func_echo_all arg...
11135 # Invoke $ECHO with all args, space-separated.
11136 func_echo_all ()
11137 {
11138 $ECHO ""
11139 }
11140
11141 case "$ECHO" in
11142 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11143 $as_echo "printf" >&6; } ;;
11144 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11145 $as_echo "print -r" >&6; } ;;
11146 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11147 $as_echo "cat" >&6; } ;;
11148 esac
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11164 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11165 if test "${ac_cv_path_SED+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11169 for ac_i in 1 2 3 4 5 6 7; do
11170 ac_script="$ac_script$as_nl$ac_script"
11171 done
11172 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11173 { ac_script=; unset ac_script;}
11174 if test -z "$SED"; then
11175 ac_path_SED_found=false
11176 # Loop through the user's path and test for each of PROGNAME-LIST
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $PATH
11179 do
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
11182 for ac_prog in sed gsed; do
11183 for ac_exec_ext in '' $ac_executable_extensions; do
11184 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11185 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11186 # Check for GNU ac_path_SED and select it if it is found.
11187 # Check for GNU $ac_path_SED
11188 case `"$ac_path_SED" --version 2>&1` in
11189 *GNU*)
11190 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11191 *)
11192 ac_count=0
11193 $as_echo_n 0123456789 >"conftest.in"
11194 while :
11195 do
11196 cat "conftest.in" "conftest.in" >"conftest.tmp"
11197 mv "conftest.tmp" "conftest.in"
11198 cp "conftest.in" "conftest.nl"
11199 $as_echo '' >> "conftest.nl"
11200 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11202 as_fn_arith $ac_count + 1 && ac_count=$as_val
11203 if test $ac_count -gt ${ac_path_SED_max-0}; then
11204 # Best one so far, save it but keep looking for a better one
11205 ac_cv_path_SED="$ac_path_SED"
11206 ac_path_SED_max=$ac_count
11207 fi
11208 # 10*(2^10) chars as input seems more than enough
11209 test $ac_count -gt 10 && break
11210 done
11211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11212 esac
11213
11214 $ac_path_SED_found && break 3
11215 done
11216 done
11217 done
11218 IFS=$as_save_IFS
11219 if test -z "$ac_cv_path_SED"; then
11220 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11221 fi
11222 else
11223 ac_cv_path_SED=$SED
11224 fi
11225
11226 fi
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11228 $as_echo "$ac_cv_path_SED" >&6; }
11229 SED="$ac_cv_path_SED"
11230 rm -f conftest.sed
11231
11232 test -z "$SED" && SED=sed
11233 Xsed="$SED -e 1s/^X//"
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11246 $as_echo_n "checking for fgrep... " >&6; }
11247 if test "${ac_cv_path_FGREP+set}" = set; then :
11248 $as_echo_n "(cached) " >&6
11249 else
11250 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11251 then ac_cv_path_FGREP="$GREP -F"
11252 else
11253 if test -z "$FGREP"; then
11254 ac_path_FGREP_found=false
11255 # Loop through the user's path and test for each of PROGNAME-LIST
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11258 do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
11261 for ac_prog in fgrep; do
11262 for ac_exec_ext in '' $ac_executable_extensions; do
11263 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11264 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11265 # Check for GNU ac_path_FGREP and select it if it is found.
11266 # Check for GNU $ac_path_FGREP
11267 case `"$ac_path_FGREP" --version 2>&1` in
11268 *GNU*)
11269 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11270 *)
11271 ac_count=0
11272 $as_echo_n 0123456789 >"conftest.in"
11273 while :
11274 do
11275 cat "conftest.in" "conftest.in" >"conftest.tmp"
11276 mv "conftest.tmp" "conftest.in"
11277 cp "conftest.in" "conftest.nl"
11278 $as_echo 'FGREP' >> "conftest.nl"
11279 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11281 as_fn_arith $ac_count + 1 && ac_count=$as_val
11282 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11283 # Best one so far, save it but keep looking for a better one
11284 ac_cv_path_FGREP="$ac_path_FGREP"
11285 ac_path_FGREP_max=$ac_count
11286 fi
11287 # 10*(2^10) chars as input seems more than enough
11288 test $ac_count -gt 10 && break
11289 done
11290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11291 esac
11292
11293 $ac_path_FGREP_found && break 3
11294 done
11295 done
11296 done
11297 IFS=$as_save_IFS
11298 if test -z "$ac_cv_path_FGREP"; then
11299 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11300 fi
11301 else
11302 ac_cv_path_FGREP=$FGREP
11303 fi
11304
11305 fi
11306 fi
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11308 $as_echo "$ac_cv_path_FGREP" >&6; }
11309 FGREP="$ac_cv_path_FGREP"
11310
11311
11312 test -z "$GREP" && GREP=grep
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332 # Check whether --with-gnu-ld was given.
11333 if test "${with_gnu_ld+set}" = set; then :
11334 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11335 else
11336 with_gnu_ld=no
11337 fi
11338
11339 ac_prog=ld
11340 if test "$GCC" = yes; then
11341 # Check if gcc -print-prog-name=ld gives a path.
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11343 $as_echo_n "checking for ld used by $CC... " >&6; }
11344 case $host in
11345 *-*-mingw*)
11346 # gcc leaves a trailing carriage return which upsets mingw
11347 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11348 *)
11349 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11350 esac
11351 case $ac_prog in
11352 # Accept absolute paths.
11353 [\\/]* | ?:[\\/]*)
11354 re_direlt='/[^/][^/]*/\.\./'
11355 # Canonicalize the pathname of ld
11356 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11357 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11358 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11359 done
11360 test -z "$LD" && LD="$ac_prog"
11361 ;;
11362 "")
11363 # If it fails, then pretend we aren't using GCC.
11364 ac_prog=ld
11365 ;;
11366 *)
11367 # If it is relative, then search for the first ld in PATH.
11368 with_gnu_ld=unknown
11369 ;;
11370 esac
11371 elif test "$with_gnu_ld" = yes; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11373 $as_echo_n "checking for GNU ld... " >&6; }
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11376 $as_echo_n "checking for non-GNU ld... " >&6; }
11377 fi
11378 if test "${lt_cv_path_LD+set}" = set; then :
11379 $as_echo_n "(cached) " >&6
11380 else
11381 if test -z "$LD"; then
11382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11383 for ac_dir in $PATH; do
11384 IFS="$lt_save_ifs"
11385 test -z "$ac_dir" && ac_dir=.
11386 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11387 lt_cv_path_LD="$ac_dir/$ac_prog"
11388 # Check to see if the program is GNU ld. I'd rather use --version,
11389 # but apparently some variants of GNU ld only accept -v.
11390 # Break only if it was the GNU/non-GNU ld that we prefer.
11391 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11392 *GNU* | *'with BFD'*)
11393 test "$with_gnu_ld" != no && break
11394 ;;
11395 *)
11396 test "$with_gnu_ld" != yes && break
11397 ;;
11398 esac
11399 fi
11400 done
11401 IFS="$lt_save_ifs"
11402 else
11403 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11404 fi
11405 fi
11406
11407 LD="$lt_cv_path_LD"
11408 if test -n "$LD"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11410 $as_echo "$LD" >&6; }
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11414 fi
11415 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11417 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11418 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11422 case `$LD -v 2>&1 </dev/null` in
11423 *GNU* | *'with BFD'*)
11424 lt_cv_prog_gnu_ld=yes
11425 ;;
11426 *)
11427 lt_cv_prog_gnu_ld=no
11428 ;;
11429 esac
11430 fi
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11432 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11433 with_gnu_ld=$lt_cv_prog_gnu_ld
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11444 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11445 if test "${lt_cv_path_NM+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 if test -n "$NM"; then
11449 # Let the user override the test.
11450 lt_cv_path_NM="$NM"
11451 else
11452 lt_nm_to_check="${ac_tool_prefix}nm"
11453 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11454 lt_nm_to_check="$lt_nm_to_check nm"
11455 fi
11456 for lt_tmp_nm in $lt_nm_to_check; do
11457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11458 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11459 IFS="$lt_save_ifs"
11460 test -z "$ac_dir" && ac_dir=.
11461 tmp_nm="$ac_dir/$lt_tmp_nm"
11462 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11463 # Check to see if the nm accepts a BSD-compat flag.
11464 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11465 # nm: unknown option "B" ignored
11466 # Tru64's nm complains that /dev/null is an invalid object file
11467 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11468 */dev/null* | *'Invalid file or object type'*)
11469 lt_cv_path_NM="$tmp_nm -B"
11470 break
11471 ;;
11472 *)
11473 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11474 */dev/null*)
11475 lt_cv_path_NM="$tmp_nm -p"
11476 break
11477 ;;
11478 *)
11479 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11480 continue # so that we can try to find one that supports BSD flags
11481 ;;
11482 esac
11483 ;;
11484 esac
11485 fi
11486 done
11487 IFS="$lt_save_ifs"
11488 done
11489 : ${lt_cv_path_NM=no}
11490 fi
11491 fi
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11493 $as_echo "$lt_cv_path_NM" >&6; }
11494 if test "$lt_cv_path_NM" != "no"; then
11495 NM="$lt_cv_path_NM"
11496 else
11497 # Didn't find any BSD compatible name lister, look for dumpbin.
11498 if test -n "$DUMPBIN"; then :
11499 # Let the user override the test.
11500 else
11501 if test -n "$ac_tool_prefix"; then
11502 for ac_prog in dumpbin "link -dump"
11503 do
11504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507 $as_echo_n "checking for $ac_word... " >&6; }
11508 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 if test -n "$DUMPBIN"; then
11512 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11513 else
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11516 do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11524 fi
11525 done
11526 done
11527 IFS=$as_save_IFS
11528
11529 fi
11530 fi
11531 DUMPBIN=$ac_cv_prog_DUMPBIN
11532 if test -n "$DUMPBIN"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11534 $as_echo "$DUMPBIN" >&6; }
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538 fi
11539
11540
11541 test -n "$DUMPBIN" && break
11542 done
11543 fi
11544 if test -z "$DUMPBIN"; then
11545 ac_ct_DUMPBIN=$DUMPBIN
11546 for ac_prog in dumpbin "link -dump"
11547 do
11548 # Extract the first word of "$ac_prog", so it can be a program name with args.
11549 set dummy $ac_prog; ac_word=$2
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11551 $as_echo_n "checking for $ac_word... " >&6; }
11552 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11554 else
11555 if test -n "$ac_ct_DUMPBIN"; then
11556 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11557 else
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11560 do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11565 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11568 fi
11569 done
11570 done
11571 IFS=$as_save_IFS
11572
11573 fi
11574 fi
11575 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11576 if test -n "$ac_ct_DUMPBIN"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11578 $as_echo "$ac_ct_DUMPBIN" >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11582 fi
11583
11584
11585 test -n "$ac_ct_DUMPBIN" && break
11586 done
11587
11588 if test "x$ac_ct_DUMPBIN" = x; then
11589 DUMPBIN=":"
11590 else
11591 case $cross_compiling:$ac_tool_warned in
11592 yes:)
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11595 ac_tool_warned=yes ;;
11596 esac
11597 DUMPBIN=$ac_ct_DUMPBIN
11598 fi
11599 fi
11600
11601 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11602 *COFF*)
11603 DUMPBIN="$DUMPBIN -symbols"
11604 ;;
11605 *)
11606 DUMPBIN=:
11607 ;;
11608 esac
11609 fi
11610
11611 if test "$DUMPBIN" != ":"; then
11612 NM="$DUMPBIN"
11613 fi
11614 fi
11615 test -z "$NM" && NM=nm
11616
11617
11618
11619
11620
11621
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11623 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11624 if test "${lt_cv_nm_interface+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 lt_cv_nm_interface="BSD nm"
11628 echo "int some_variable = 0;" > conftest.$ac_ext
11629 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11630 (eval "$ac_compile" 2>conftest.err)
11631 cat conftest.err >&5
11632 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11633 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11634 cat conftest.err >&5
11635 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11636 cat conftest.out >&5
11637 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11638 lt_cv_nm_interface="MS dumpbin"
11639 fi
11640 rm -f conftest*
11641 fi
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11643 $as_echo "$lt_cv_nm_interface" >&6; }
11644
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11646 $as_echo_n "checking whether ln -s works... " >&6; }
11647 LN_S=$as_ln_s
11648 if test "$LN_S" = "ln -s"; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11650 $as_echo "yes" >&6; }
11651 else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11653 $as_echo "no, using $LN_S" >&6; }
11654 fi
11655
11656 # find the maximum length of command line arguments
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11658 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11659 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 i=0
11663 teststring="ABCD"
11664
11665 case $build_os in
11666 msdosdjgpp*)
11667 # On DJGPP, this test can blow up pretty badly due to problems in libc
11668 # (any single argument exceeding 2000 bytes causes a buffer overrun
11669 # during glob expansion). Even if it were fixed, the result of this
11670 # check would be larger than it should be.
11671 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11672 ;;
11673
11674 gnu*)
11675 # Under GNU Hurd, this test is not required because there is
11676 # no limit to the length of command line arguments.
11677 # Libtool will interpret -1 as no limit whatsoever
11678 lt_cv_sys_max_cmd_len=-1;
11679 ;;
11680
11681 cygwin* | mingw* | cegcc*)
11682 # On Win9x/ME, this test blows up -- it succeeds, but takes
11683 # about 5 minutes as the teststring grows exponentially.
11684 # Worse, since 9x/ME are not pre-emptively multitasking,
11685 # you end up with a "frozen" computer, even though with patience
11686 # the test eventually succeeds (with a max line length of 256k).
11687 # Instead, let's just punt: use the minimum linelength reported by
11688 # all of the supported platforms: 8192 (on NT/2K/XP).
11689 lt_cv_sys_max_cmd_len=8192;
11690 ;;
11691
11692 mint*)
11693 # On MiNT this can take a long time and run out of memory.
11694 lt_cv_sys_max_cmd_len=8192;
11695 ;;
11696
11697 amigaos*)
11698 # On AmigaOS with pdksh, this test takes hours, literally.
11699 # So we just punt and use a minimum line length of 8192.
11700 lt_cv_sys_max_cmd_len=8192;
11701 ;;
11702
11703 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11704 # This has been around since 386BSD, at least. Likely further.
11705 if test -x /sbin/sysctl; then
11706 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11707 elif test -x /usr/sbin/sysctl; then
11708 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11709 else
11710 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11711 fi
11712 # And add a safety zone
11713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11715 ;;
11716
11717 interix*)
11718 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11719 lt_cv_sys_max_cmd_len=196608
11720 ;;
11721
11722 osf*)
11723 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11724 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11725 # nice to cause kernel panics so lets avoid the loop below.
11726 # First set a reasonable default.
11727 lt_cv_sys_max_cmd_len=16384
11728 #
11729 if test -x /sbin/sysconfig; then
11730 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11731 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11732 esac
11733 fi
11734 ;;
11735 sco3.2v5*)
11736 lt_cv_sys_max_cmd_len=102400
11737 ;;
11738 sysv5* | sco5v6* | sysv4.2uw2*)
11739 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11740 if test -n "$kargmax"; then
11741 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11742 else
11743 lt_cv_sys_max_cmd_len=32768
11744 fi
11745 ;;
11746 *)
11747 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11748 if test -n "$lt_cv_sys_max_cmd_len"; then
11749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11751 else
11752 # Make teststring a little bigger before we do anything with it.
11753 # a 1K string should be a reasonable start.
11754 for i in 1 2 3 4 5 6 7 8 ; do
11755 teststring=$teststring$teststring
11756 done
11757 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11758 # If test is not a shell built-in, we'll probably end up computing a
11759 # maximum length that is only half of the actual maximum length, but
11760 # we can't tell.
11761 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11762 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11763 test $i != 17 # 1/2 MB should be enough
11764 do
11765 i=`expr $i + 1`
11766 teststring=$teststring$teststring
11767 done
11768 # Only check the string length outside the loop.
11769 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11770 teststring=
11771 # Add a significant safety factor because C++ compilers can tack on
11772 # massive amounts of additional arguments before passing them to the
11773 # linker. It appears as though 1/2 is a usable value.
11774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11775 fi
11776 ;;
11777 esac
11778
11779 fi
11780
11781 if test -n $lt_cv_sys_max_cmd_len ; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11783 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11784 else
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11786 $as_echo "none" >&6; }
11787 fi
11788 max_cmd_len=$lt_cv_sys_max_cmd_len
11789
11790
11791
11792
11793
11794
11795 : ${CP="cp -f"}
11796 : ${MV="mv -f"}
11797 : ${RM="rm -f"}
11798
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11800 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11801 # Try some XSI features
11802 xsi_shell=no
11803 ( _lt_dummy="a/b/c"
11804 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11805 = c,a/b,, \
11806 && eval 'test $(( 1 + 1 )) -eq 2 \
11807 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11808 && xsi_shell=yes
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11810 $as_echo "$xsi_shell" >&6; }
11811
11812
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11814 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11815 lt_shell_append=no
11816 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11817 >/dev/null 2>&1 \
11818 && lt_shell_append=yes
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11820 $as_echo "$lt_shell_append" >&6; }
11821
11822
11823 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11824 lt_unset=unset
11825 else
11826 lt_unset=false
11827 fi
11828
11829
11830
11831
11832
11833 # test EBCDIC or ASCII
11834 case `echo X|tr X '\101'` in
11835 A) # ASCII based system
11836 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11837 lt_SP2NL='tr \040 \012'
11838 lt_NL2SP='tr \015\012 \040\040'
11839 ;;
11840 *) # EBCDIC based system
11841 lt_SP2NL='tr \100 \n'
11842 lt_NL2SP='tr \r\n \100\100'
11843 ;;
11844 esac
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11855 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11856 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 lt_cv_ld_reload_flag='-r'
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11862 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11863 reload_flag=$lt_cv_ld_reload_flag
11864 case $reload_flag in
11865 "" | " "*) ;;
11866 *) reload_flag=" $reload_flag" ;;
11867 esac
11868 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11869 case $host_os in
11870 darwin*)
11871 if test "$GCC" = yes; then
11872 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11873 else
11874 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11875 fi
11876 ;;
11877 esac
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887 if test -n "$ac_tool_prefix"; then
11888 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11889 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891 $as_echo_n "checking for $ac_word... " >&6; }
11892 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 if test -n "$OBJDUMP"; then
11896 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11897 else
11898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $PATH
11900 do
11901 IFS=$as_save_IFS
11902 test -z "$as_dir" && as_dir=.
11903 for ac_exec_ext in '' $ac_executable_extensions; do
11904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11905 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11907 break 2
11908 fi
11909 done
11910 done
11911 IFS=$as_save_IFS
11912
11913 fi
11914 fi
11915 OBJDUMP=$ac_cv_prog_OBJDUMP
11916 if test -n "$OBJDUMP"; then
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11918 $as_echo "$OBJDUMP" >&6; }
11919 else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11922 fi
11923
11924
11925 fi
11926 if test -z "$ac_cv_prog_OBJDUMP"; then
11927 ac_ct_OBJDUMP=$OBJDUMP
11928 # Extract the first word of "objdump", so it can be a program name with args.
11929 set dummy objdump; ac_word=$2
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931 $as_echo_n "checking for $ac_word... " >&6; }
11932 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 if test -n "$ac_ct_OBJDUMP"; then
11936 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11937 else
11938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939 for as_dir in $PATH
11940 do
11941 IFS=$as_save_IFS
11942 test -z "$as_dir" && as_dir=.
11943 for ac_exec_ext in '' $ac_executable_extensions; do
11944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11945 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11947 break 2
11948 fi
11949 done
11950 done
11951 IFS=$as_save_IFS
11952
11953 fi
11954 fi
11955 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11956 if test -n "$ac_ct_OBJDUMP"; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11958 $as_echo "$ac_ct_OBJDUMP" >&6; }
11959 else
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 $as_echo "no" >&6; }
11962 fi
11963
11964 if test "x$ac_ct_OBJDUMP" = x; then
11965 OBJDUMP="false"
11966 else
11967 case $cross_compiling:$ac_tool_warned in
11968 yes:)
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11971 ac_tool_warned=yes ;;
11972 esac
11973 OBJDUMP=$ac_ct_OBJDUMP
11974 fi
11975 else
11976 OBJDUMP="$ac_cv_prog_OBJDUMP"
11977 fi
11978
11979 test -z "$OBJDUMP" && OBJDUMP=objdump
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11990 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11991 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 lt_cv_file_magic_cmd='$MAGIC_CMD'
11995 lt_cv_file_magic_test_file=
11996 lt_cv_deplibs_check_method='unknown'
11997 # Need to set the preceding variable on all platforms that support
11998 # interlibrary dependencies.
11999 # 'none' -- dependencies not supported.
12000 # `unknown' -- same as none, but documents that we really don't know.
12001 # 'pass_all' -- all dependencies passed with no checks.
12002 # 'test_compile' -- check by making test program.
12003 # 'file_magic [[regex]]' -- check by looking for files in library path
12004 # which responds to the $file_magic_cmd with a given extended regex.
12005 # If you have `file' or equivalent on your system and you're not sure
12006 # whether `pass_all' will *always* work, you probably want this one.
12007
12008 case $host_os in
12009 aix[4-9]*)
12010 lt_cv_deplibs_check_method=pass_all
12011 ;;
12012
12013 beos*)
12014 lt_cv_deplibs_check_method=pass_all
12015 ;;
12016
12017 bsdi[45]*)
12018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12019 lt_cv_file_magic_cmd='/usr/bin/file -L'
12020 lt_cv_file_magic_test_file=/shlib/libc.so
12021 ;;
12022
12023 cygwin*)
12024 # func_win32_libid is a shell function defined in ltmain.sh
12025 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12026 lt_cv_file_magic_cmd='func_win32_libid'
12027 ;;
12028
12029 mingw* | pw32*)
12030 # Base MSYS/MinGW do not provide the 'file' command needed by
12031 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12032 # unless we find 'file', for example because we are cross-compiling.
12033 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12034 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12035 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12036 lt_cv_file_magic_cmd='func_win32_libid'
12037 else
12038 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12039 lt_cv_file_magic_cmd='$OBJDUMP -f'
12040 fi
12041 ;;
12042
12043 cegcc*)
12044 # use the weaker test based on 'objdump'. See mingw*.
12045 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12046 lt_cv_file_magic_cmd='$OBJDUMP -f'
12047 ;;
12048
12049 darwin* | rhapsody*)
12050 lt_cv_deplibs_check_method=pass_all
12051 ;;
12052
12053 freebsd* | dragonfly*)
12054 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12055 case $host_cpu in
12056 i*86 )
12057 # Not sure whether the presence of OpenBSD here was a mistake.
12058 # Let's accept both of them until this is cleared up.
12059 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12060 lt_cv_file_magic_cmd=/usr/bin/file
12061 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12062 ;;
12063 esac
12064 else
12065 lt_cv_deplibs_check_method=pass_all
12066 fi
12067 ;;
12068
12069 gnu*)
12070 lt_cv_deplibs_check_method=pass_all
12071 ;;
12072
12073 haiku*)
12074 lt_cv_deplibs_check_method=pass_all
12075 ;;
12076
12077 hpux10.20* | hpux11*)
12078 lt_cv_file_magic_cmd=/usr/bin/file
12079 case $host_cpu in
12080 ia64*)
12081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12082 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12083 ;;
12084 hppa*64*)
12085 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]'
12086 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12087 ;;
12088 *)
12089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12090 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12091 ;;
12092 esac
12093 ;;
12094
12095 interix[3-9]*)
12096 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12098 ;;
12099
12100 irix5* | irix6* | nonstopux*)
12101 case $LD in
12102 *-32|*"-32 ") libmagic=32-bit;;
12103 *-n32|*"-n32 ") libmagic=N32;;
12104 *-64|*"-64 ") libmagic=64-bit;;
12105 *) libmagic=never-match;;
12106 esac
12107 lt_cv_deplibs_check_method=pass_all
12108 ;;
12109
12110 # This must be Linux ELF.
12111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12112 lt_cv_deplibs_check_method=pass_all
12113 ;;
12114
12115 netbsd*)
12116 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12118 else
12119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12120 fi
12121 ;;
12122
12123 newos6*)
12124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12125 lt_cv_file_magic_cmd=/usr/bin/file
12126 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12127 ;;
12128
12129 *nto* | *qnx*)
12130 lt_cv_deplibs_check_method=pass_all
12131 ;;
12132
12133 openbsd*)
12134 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12136 else
12137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12138 fi
12139 ;;
12140
12141 osf3* | osf4* | osf5*)
12142 lt_cv_deplibs_check_method=pass_all
12143 ;;
12144
12145 rdos*)
12146 lt_cv_deplibs_check_method=pass_all
12147 ;;
12148
12149 solaris*)
12150 lt_cv_deplibs_check_method=pass_all
12151 ;;
12152
12153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12154 lt_cv_deplibs_check_method=pass_all
12155 ;;
12156
12157 sysv4 | sysv4.3*)
12158 case $host_vendor in
12159 motorola)
12160 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]'
12161 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12162 ;;
12163 ncr)
12164 lt_cv_deplibs_check_method=pass_all
12165 ;;
12166 sequent)
12167 lt_cv_file_magic_cmd='/bin/file'
12168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12169 ;;
12170 sni)
12171 lt_cv_file_magic_cmd='/bin/file'
12172 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12173 lt_cv_file_magic_test_file=/lib/libc.so
12174 ;;
12175 siemens)
12176 lt_cv_deplibs_check_method=pass_all
12177 ;;
12178 pc)
12179 lt_cv_deplibs_check_method=pass_all
12180 ;;
12181 esac
12182 ;;
12183
12184 tpf*)
12185 lt_cv_deplibs_check_method=pass_all
12186 ;;
12187 esac
12188
12189 fi
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12191 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12192 file_magic_cmd=$lt_cv_file_magic_cmd
12193 deplibs_check_method=$lt_cv_deplibs_check_method
12194 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207 if test -n "$ac_tool_prefix"; then
12208 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12209 set dummy ${ac_tool_prefix}ar; ac_word=$2
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12211 $as_echo_n "checking for $ac_word... " >&6; }
12212 if test "${ac_cv_prog_AR+set}" = set; then :
12213 $as_echo_n "(cached) " >&6
12214 else
12215 if test -n "$AR"; then
12216 ac_cv_prog_AR="$AR" # Let the user override the test.
12217 else
12218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219 for as_dir in $PATH
12220 do
12221 IFS=$as_save_IFS
12222 test -z "$as_dir" && as_dir=.
12223 for ac_exec_ext in '' $ac_executable_extensions; do
12224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12225 ac_cv_prog_AR="${ac_tool_prefix}ar"
12226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12227 break 2
12228 fi
12229 done
12230 done
12231 IFS=$as_save_IFS
12232
12233 fi
12234 fi
12235 AR=$ac_cv_prog_AR
12236 if test -n "$AR"; then
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12238 $as_echo "$AR" >&6; }
12239 else
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; }
12242 fi
12243
12244
12245 fi
12246 if test -z "$ac_cv_prog_AR"; then
12247 ac_ct_AR=$AR
12248 # Extract the first word of "ar", so it can be a program name with args.
12249 set dummy ar; ac_word=$2
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251 $as_echo_n "checking for $ac_word... " >&6; }
12252 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 if test -n "$ac_ct_AR"; then
12256 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12257 else
12258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259 for as_dir in $PATH
12260 do
12261 IFS=$as_save_IFS
12262 test -z "$as_dir" && as_dir=.
12263 for ac_exec_ext in '' $ac_executable_extensions; do
12264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12265 ac_cv_prog_ac_ct_AR="ar"
12266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12267 break 2
12268 fi
12269 done
12270 done
12271 IFS=$as_save_IFS
12272
12273 fi
12274 fi
12275 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12276 if test -n "$ac_ct_AR"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12278 $as_echo "$ac_ct_AR" >&6; }
12279 else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12282 fi
12283
12284 if test "x$ac_ct_AR" = x; then
12285 AR="false"
12286 else
12287 case $cross_compiling:$ac_tool_warned in
12288 yes:)
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12291 ac_tool_warned=yes ;;
12292 esac
12293 AR=$ac_ct_AR
12294 fi
12295 else
12296 AR="$ac_cv_prog_AR"
12297 fi
12298
12299 test -z "$AR" && AR=ar
12300 test -z "$AR_FLAGS" && AR_FLAGS=cru
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312 if test -n "$ac_tool_prefix"; then
12313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12314 set dummy ${ac_tool_prefix}strip; ac_word=$2
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316 $as_echo_n "checking for $ac_word... " >&6; }
12317 if test "${ac_cv_prog_STRIP+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 if test -n "$STRIP"; then
12321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12322 else
12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $PATH
12325 do
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 break 2
12333 fi
12334 done
12335 done
12336 IFS=$as_save_IFS
12337
12338 fi
12339 fi
12340 STRIP=$ac_cv_prog_STRIP
12341 if test -n "$STRIP"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12343 $as_echo "$STRIP" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12347 fi
12348
12349
12350 fi
12351 if test -z "$ac_cv_prog_STRIP"; then
12352 ac_ct_STRIP=$STRIP
12353 # Extract the first word of "strip", so it can be a program name with args.
12354 set dummy strip; ac_word=$2
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12356 $as_echo_n "checking for $ac_word... " >&6; }
12357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 if test -n "$ac_ct_STRIP"; then
12361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12362 else
12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364 for as_dir in $PATH
12365 do
12366 IFS=$as_save_IFS
12367 test -z "$as_dir" && as_dir=.
12368 for ac_exec_ext in '' $ac_executable_extensions; do
12369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12370 ac_cv_prog_ac_ct_STRIP="strip"
12371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12372 break 2
12373 fi
12374 done
12375 done
12376 IFS=$as_save_IFS
12377
12378 fi
12379 fi
12380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12381 if test -n "$ac_ct_STRIP"; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12383 $as_echo "$ac_ct_STRIP" >&6; }
12384 else
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12387 fi
12388
12389 if test "x$ac_ct_STRIP" = x; then
12390 STRIP=":"
12391 else
12392 case $cross_compiling:$ac_tool_warned in
12393 yes:)
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12396 ac_tool_warned=yes ;;
12397 esac
12398 STRIP=$ac_ct_STRIP
12399 fi
12400 else
12401 STRIP="$ac_cv_prog_STRIP"
12402 fi
12403
12404 test -z "$STRIP" && STRIP=:
12405
12406
12407
12408
12409
12410
12411 if test -n "$ac_tool_prefix"; then
12412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12415 $as_echo_n "checking for $ac_word... " >&6; }
12416 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 if test -n "$RANLIB"; then
12420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12421 else
12422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423 for as_dir in $PATH
12424 do
12425 IFS=$as_save_IFS
12426 test -z "$as_dir" && as_dir=.
12427 for ac_exec_ext in '' $ac_executable_extensions; do
12428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12431 break 2
12432 fi
12433 done
12434 done
12435 IFS=$as_save_IFS
12436
12437 fi
12438 fi
12439 RANLIB=$ac_cv_prog_RANLIB
12440 if test -n "$RANLIB"; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12442 $as_echo "$RANLIB" >&6; }
12443 else
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445 $as_echo "no" >&6; }
12446 fi
12447
12448
12449 fi
12450 if test -z "$ac_cv_prog_RANLIB"; then
12451 ac_ct_RANLIB=$RANLIB
12452 # Extract the first word of "ranlib", so it can be a program name with args.
12453 set dummy ranlib; ac_word=$2
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455 $as_echo_n "checking for $ac_word... " >&6; }
12456 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 if test -n "$ac_ct_RANLIB"; then
12460 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12461 else
12462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12464 do
12465 IFS=$as_save_IFS
12466 test -z "$as_dir" && as_dir=.
12467 for ac_exec_ext in '' $ac_executable_extensions; do
12468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12469 ac_cv_prog_ac_ct_RANLIB="ranlib"
12470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12471 break 2
12472 fi
12473 done
12474 done
12475 IFS=$as_save_IFS
12476
12477 fi
12478 fi
12479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12480 if test -n "$ac_ct_RANLIB"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12482 $as_echo "$ac_ct_RANLIB" >&6; }
12483 else
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12486 fi
12487
12488 if test "x$ac_ct_RANLIB" = x; then
12489 RANLIB=":"
12490 else
12491 case $cross_compiling:$ac_tool_warned in
12492 yes:)
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12495 ac_tool_warned=yes ;;
12496 esac
12497 RANLIB=$ac_ct_RANLIB
12498 fi
12499 else
12500 RANLIB="$ac_cv_prog_RANLIB"
12501 fi
12502
12503 test -z "$RANLIB" && RANLIB=:
12504
12505
12506
12507
12508
12509
12510 # Determine commands to create old-style static archives.
12511 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12512 old_postinstall_cmds='chmod 644 $oldlib'
12513 old_postuninstall_cmds=
12514
12515 if test -n "$RANLIB"; then
12516 case $host_os in
12517 openbsd*)
12518 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12519 ;;
12520 *)
12521 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12522 ;;
12523 esac
12524 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12525 fi
12526
12527 case $host_os in
12528 darwin*)
12529 lock_old_archive_extraction=yes ;;
12530 *)
12531 lock_old_archive_extraction=no ;;
12532 esac
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572 # If no C compiler was specified, use CC.
12573 LTCC=${LTCC-"$CC"}
12574
12575 # If no C compiler flags were specified, use CFLAGS.
12576 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12577
12578 # Allow CC to be a program name with arguments.
12579 compiler=$CC
12580
12581
12582 # Check for command to grab the raw symbol name followed by C symbol from nm.
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12584 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12585 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
12587 else
12588
12589 # These are sane defaults that work on at least a few old systems.
12590 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12591
12592 # Character class describing NM global symbol codes.
12593 symcode='[BCDEGRST]'
12594
12595 # Regexp to match symbols that can be accessed directly from C.
12596 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12597
12598 # Define system-specific variables.
12599 case $host_os in
12600 aix*)
12601 symcode='[BCDT]'
12602 ;;
12603 cygwin* | mingw* | pw32* | cegcc*)
12604 symcode='[ABCDGISTW]'
12605 ;;
12606 hpux*)
12607 if test "$host_cpu" = ia64; then
12608 symcode='[ABCDEGRST]'
12609 fi
12610 ;;
12611 irix* | nonstopux*)
12612 symcode='[BCDEGRST]'
12613 ;;
12614 osf*)
12615 symcode='[BCDEGQRST]'
12616 ;;
12617 solaris*)
12618 symcode='[BDRT]'
12619 ;;
12620 sco3.2v5*)
12621 symcode='[DT]'
12622 ;;
12623 sysv4.2uw2*)
12624 symcode='[DT]'
12625 ;;
12626 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12627 symcode='[ABDT]'
12628 ;;
12629 sysv4)
12630 symcode='[DFNSTU]'
12631 ;;
12632 esac
12633
12634 # If we're using GNU nm, then use its standard symbol codes.
12635 case `$NM -V 2>&1` in
12636 *GNU* | *'with BFD'*)
12637 symcode='[ABCDGIRSTW]' ;;
12638 esac
12639
12640 # Transform an extracted symbol line into a proper C declaration.
12641 # Some systems (esp. on ia64) link data and code symbols differently,
12642 # so use this general approach.
12643 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12644
12645 # Transform an extracted symbol line into symbol name and symbol address
12646 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12647 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'"
12648
12649 # Handle CRLF in mingw tool chain
12650 opt_cr=
12651 case $build_os in
12652 mingw*)
12653 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12654 ;;
12655 esac
12656
12657 # Try without a prefix underscore, then with it.
12658 for ac_symprfx in "" "_"; do
12659
12660 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12661 symxfrm="\\1 $ac_symprfx\\2 \\2"
12662
12663 # Write the raw and C identifiers.
12664 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12665 # Fake it for dumpbin and say T for any non-static function
12666 # and D for any global variable.
12667 # Also find C++ and __fastcall symbols from MSVC++,
12668 # which start with @ or ?.
12669 lt_cv_sys_global_symbol_pipe="$AWK '"\
12670 " {last_section=section; section=\$ 3};"\
12671 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12672 " \$ 0!~/External *\|/{next};"\
12673 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12674 " {if(hide[section]) next};"\
12675 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12676 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12677 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12678 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12679 " ' prfx=^$ac_symprfx"
12680 else
12681 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12682 fi
12683
12684 # Check to see that the pipe works correctly.
12685 pipe_works=no
12686
12687 rm -f conftest*
12688 cat > conftest.$ac_ext <<_LT_EOF
12689 #ifdef __cplusplus
12690 extern "C" {
12691 #endif
12692 char nm_test_var;
12693 void nm_test_func(void);
12694 void nm_test_func(void){}
12695 #ifdef __cplusplus
12696 }
12697 #endif
12698 int main(){nm_test_var='a';nm_test_func();return(0);}
12699 _LT_EOF
12700
12701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12702 (eval $ac_compile) 2>&5
12703 ac_status=$?
12704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12705 test $ac_status = 0; }; then
12706 # Now try to grab the symbols.
12707 nlist=conftest.nm
12708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12709 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12710 ac_status=$?
12711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12712 test $ac_status = 0; } && test -s "$nlist"; then
12713 # Try sorting and uniquifying the output.
12714 if sort "$nlist" | uniq > "$nlist"T; then
12715 mv -f "$nlist"T "$nlist"
12716 else
12717 rm -f "$nlist"T
12718 fi
12719
12720 # Make sure that we snagged all the symbols we need.
12721 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12722 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12723 cat <<_LT_EOF > conftest.$ac_ext
12724 #ifdef __cplusplus
12725 extern "C" {
12726 #endif
12727
12728 _LT_EOF
12729 # Now generate the symbol file.
12730 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12731
12732 cat <<_LT_EOF >> conftest.$ac_ext
12733
12734 /* The mapping between symbol names and symbols. */
12735 const struct {
12736 const char *name;
12737 void *address;
12738 }
12739 lt__PROGRAM__LTX_preloaded_symbols[] =
12740 {
12741 { "@PROGRAM@", (void *) 0 },
12742 _LT_EOF
12743 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12744 cat <<\_LT_EOF >> conftest.$ac_ext
12745 {0, (void *) 0}
12746 };
12747
12748 /* This works around a problem in FreeBSD linker */
12749 #ifdef FREEBSD_WORKAROUND
12750 static const void *lt_preloaded_setup() {
12751 return lt__PROGRAM__LTX_preloaded_symbols;
12752 }
12753 #endif
12754
12755 #ifdef __cplusplus
12756 }
12757 #endif
12758 _LT_EOF
12759 # Now try linking the two files.
12760 mv conftest.$ac_objext conftstm.$ac_objext
12761 lt_save_LIBS="$LIBS"
12762 lt_save_CFLAGS="$CFLAGS"
12763 LIBS="conftstm.$ac_objext"
12764 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12766 (eval $ac_link) 2>&5
12767 ac_status=$?
12768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12769 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12770 pipe_works=yes
12771 fi
12772 LIBS="$lt_save_LIBS"
12773 CFLAGS="$lt_save_CFLAGS"
12774 else
12775 echo "cannot find nm_test_func in $nlist" >&5
12776 fi
12777 else
12778 echo "cannot find nm_test_var in $nlist" >&5
12779 fi
12780 else
12781 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12782 fi
12783 else
12784 echo "$progname: failed program was:" >&5
12785 cat conftest.$ac_ext >&5
12786 fi
12787 rm -rf conftest* conftst*
12788
12789 # Do not use the global_symbol_pipe unless it works.
12790 if test "$pipe_works" = yes; then
12791 break
12792 else
12793 lt_cv_sys_global_symbol_pipe=
12794 fi
12795 done
12796
12797 fi
12798
12799 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12800 lt_cv_sys_global_symbol_to_cdecl=
12801 fi
12802 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12804 $as_echo "failed" >&6; }
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12807 $as_echo "ok" >&6; }
12808 fi
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831 # Check whether --enable-libtool-lock was given.
12832 if test "${enable_libtool_lock+set}" = set; then :
12833 enableval=$enable_libtool_lock;
12834 fi
12835
12836 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12837
12838 # Some flags need to be propagated to the compiler or linker for good
12839 # libtool support.
12840 case $host in
12841 ia64-*-hpux*)
12842 # Find out which ABI we are using.
12843 echo 'int i;' > conftest.$ac_ext
12844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12845 (eval $ac_compile) 2>&5
12846 ac_status=$?
12847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12848 test $ac_status = 0; }; then
12849 case `/usr/bin/file conftest.$ac_objext` in
12850 *ELF-32*)
12851 HPUX_IA64_MODE="32"
12852 ;;
12853 *ELF-64*)
12854 HPUX_IA64_MODE="64"
12855 ;;
12856 esac
12857 fi
12858 rm -rf conftest*
12859 ;;
12860 *-*-irix6*)
12861 # Find out which ABI we are using.
12862 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12864 (eval $ac_compile) 2>&5
12865 ac_status=$?
12866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867 test $ac_status = 0; }; then
12868 if test "$lt_cv_prog_gnu_ld" = yes; then
12869 case `/usr/bin/file conftest.$ac_objext` in
12870 *32-bit*)
12871 LD="${LD-ld} -melf32bsmip"
12872 ;;
12873 *N32*)
12874 LD="${LD-ld} -melf32bmipn32"
12875 ;;
12876 *64-bit*)
12877 LD="${LD-ld} -melf64bmip"
12878 ;;
12879 esac
12880 else
12881 case `/usr/bin/file conftest.$ac_objext` in
12882 *32-bit*)
12883 LD="${LD-ld} -32"
12884 ;;
12885 *N32*)
12886 LD="${LD-ld} -n32"
12887 ;;
12888 *64-bit*)
12889 LD="${LD-ld} -64"
12890 ;;
12891 esac
12892 fi
12893 fi
12894 rm -rf conftest*
12895 ;;
12896
12897 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12898 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12899 # Find out which ABI we are using.
12900 echo 'int i;' > conftest.$ac_ext
12901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12902 (eval $ac_compile) 2>&5
12903 ac_status=$?
12904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12905 test $ac_status = 0; }; then
12906 case `/usr/bin/file conftest.o` in
12907 *32-bit*)
12908 case $host in
12909 x86_64-*kfreebsd*-gnu)
12910 LD="${LD-ld} -m elf_i386_fbsd"
12911 ;;
12912 x86_64-*linux*)
12913 LD="${LD-ld} -m elf_i386"
12914 ;;
12915 ppc64-*linux*|powerpc64-*linux*)
12916 LD="${LD-ld} -m elf32ppclinux"
12917 ;;
12918 s390x-*linux*)
12919 LD="${LD-ld} -m elf_s390"
12920 ;;
12921 sparc64-*linux*)
12922 LD="${LD-ld} -m elf32_sparc"
12923 ;;
12924 esac
12925 ;;
12926 *64-bit*)
12927 case $host in
12928 x86_64-*kfreebsd*-gnu)
12929 LD="${LD-ld} -m elf_x86_64_fbsd"
12930 ;;
12931 x86_64-*linux*)
12932 LD="${LD-ld} -m elf_x86_64"
12933 ;;
12934 ppc*-*linux*|powerpc*-*linux*)
12935 LD="${LD-ld} -m elf64ppc"
12936 ;;
12937 s390*-*linux*|s390*-*tpf*)
12938 LD="${LD-ld} -m elf64_s390"
12939 ;;
12940 sparc*-*linux*)
12941 LD="${LD-ld} -m elf64_sparc"
12942 ;;
12943 esac
12944 ;;
12945 esac
12946 fi
12947 rm -rf conftest*
12948 ;;
12949
12950 *-*-sco3.2v5*)
12951 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12952 SAVE_CFLAGS="$CFLAGS"
12953 CFLAGS="$CFLAGS -belf"
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12955 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12956 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959 ac_ext=c
12960 ac_cpp='$CPP $CPPFLAGS'
12961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12964
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967
12968 int
12969 main ()
12970 {
12971
12972 ;
12973 return 0;
12974 }
12975 _ACEOF
12976 if ac_fn_c_try_link "$LINENO"; then :
12977 lt_cv_cc_needs_belf=yes
12978 else
12979 lt_cv_cc_needs_belf=no
12980 fi
12981 rm -f core conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12983 ac_ext=c
12984 ac_cpp='$CPP $CPPFLAGS'
12985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12988
12989 fi
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12991 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12992 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12993 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12994 CFLAGS="$SAVE_CFLAGS"
12995 fi
12996 ;;
12997 sparc*-*solaris*)
12998 # Find out which ABI we are using.
12999 echo 'int i;' > conftest.$ac_ext
13000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13001 (eval $ac_compile) 2>&5
13002 ac_status=$?
13003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13004 test $ac_status = 0; }; then
13005 case `/usr/bin/file conftest.o` in
13006 *64-bit*)
13007 case $lt_cv_prog_gnu_ld in
13008 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13009 *)
13010 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13011 LD="${LD-ld} -64"
13012 fi
13013 ;;
13014 esac
13015 ;;
13016 esac
13017 fi
13018 rm -rf conftest*
13019 ;;
13020 esac
13021
13022 need_locks="$enable_libtool_lock"
13023
13024
13025 case $host_os in
13026 rhapsody* | darwin*)
13027 if test -n "$ac_tool_prefix"; then
13028 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13029 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13031 $as_echo_n "checking for $ac_word... " >&6; }
13032 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13033 $as_echo_n "(cached) " >&6
13034 else
13035 if test -n "$DSYMUTIL"; then
13036 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13037 else
13038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13039 for as_dir in $PATH
13040 do
13041 IFS=$as_save_IFS
13042 test -z "$as_dir" && as_dir=.
13043 for ac_exec_ext in '' $ac_executable_extensions; do
13044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13045 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13047 break 2
13048 fi
13049 done
13050 done
13051 IFS=$as_save_IFS
13052
13053 fi
13054 fi
13055 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13056 if test -n "$DSYMUTIL"; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13058 $as_echo "$DSYMUTIL" >&6; }
13059 else
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061 $as_echo "no" >&6; }
13062 fi
13063
13064
13065 fi
13066 if test -z "$ac_cv_prog_DSYMUTIL"; then
13067 ac_ct_DSYMUTIL=$DSYMUTIL
13068 # Extract the first word of "dsymutil", so it can be a program name with args.
13069 set dummy dsymutil; ac_word=$2
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13071 $as_echo_n "checking for $ac_word... " >&6; }
13072 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 if test -n "$ac_ct_DSYMUTIL"; then
13076 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13077 else
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13080 do
13081 IFS=$as_save_IFS
13082 test -z "$as_dir" && as_dir=.
13083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13085 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13087 break 2
13088 fi
13089 done
13090 done
13091 IFS=$as_save_IFS
13092
13093 fi
13094 fi
13095 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13096 if test -n "$ac_ct_DSYMUTIL"; then
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13098 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13099 else
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101 $as_echo "no" >&6; }
13102 fi
13103
13104 if test "x$ac_ct_DSYMUTIL" = x; then
13105 DSYMUTIL=":"
13106 else
13107 case $cross_compiling:$ac_tool_warned in
13108 yes:)
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13111 ac_tool_warned=yes ;;
13112 esac
13113 DSYMUTIL=$ac_ct_DSYMUTIL
13114 fi
13115 else
13116 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13117 fi
13118
13119 if test -n "$ac_tool_prefix"; then
13120 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13121 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123 $as_echo_n "checking for $ac_word... " >&6; }
13124 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 if test -n "$NMEDIT"; then
13128 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13129 else
13130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131 for as_dir in $PATH
13132 do
13133 IFS=$as_save_IFS
13134 test -z "$as_dir" && as_dir=.
13135 for ac_exec_ext in '' $ac_executable_extensions; do
13136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13137 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13139 break 2
13140 fi
13141 done
13142 done
13143 IFS=$as_save_IFS
13144
13145 fi
13146 fi
13147 NMEDIT=$ac_cv_prog_NMEDIT
13148 if test -n "$NMEDIT"; then
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13150 $as_echo "$NMEDIT" >&6; }
13151 else
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13154 fi
13155
13156
13157 fi
13158 if test -z "$ac_cv_prog_NMEDIT"; then
13159 ac_ct_NMEDIT=$NMEDIT
13160 # Extract the first word of "nmedit", so it can be a program name with args.
13161 set dummy nmedit; ac_word=$2
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163 $as_echo_n "checking for $ac_word... " >&6; }
13164 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13165 $as_echo_n "(cached) " >&6
13166 else
13167 if test -n "$ac_ct_NMEDIT"; then
13168 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13169 else
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13172 do
13173 IFS=$as_save_IFS
13174 test -z "$as_dir" && as_dir=.
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13177 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179 break 2
13180 fi
13181 done
13182 done
13183 IFS=$as_save_IFS
13184
13185 fi
13186 fi
13187 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13188 if test -n "$ac_ct_NMEDIT"; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13190 $as_echo "$ac_ct_NMEDIT" >&6; }
13191 else
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193 $as_echo "no" >&6; }
13194 fi
13195
13196 if test "x$ac_ct_NMEDIT" = x; then
13197 NMEDIT=":"
13198 else
13199 case $cross_compiling:$ac_tool_warned in
13200 yes:)
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13203 ac_tool_warned=yes ;;
13204 esac
13205 NMEDIT=$ac_ct_NMEDIT
13206 fi
13207 else
13208 NMEDIT="$ac_cv_prog_NMEDIT"
13209 fi
13210
13211 if test -n "$ac_tool_prefix"; then
13212 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13213 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13215 $as_echo_n "checking for $ac_word... " >&6; }
13216 if test "${ac_cv_prog_LIPO+set}" = set; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 if test -n "$LIPO"; then
13220 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13221 else
13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223 for as_dir in $PATH
13224 do
13225 IFS=$as_save_IFS
13226 test -z "$as_dir" && as_dir=.
13227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13229 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13231 break 2
13232 fi
13233 done
13234 done
13235 IFS=$as_save_IFS
13236
13237 fi
13238 fi
13239 LIPO=$ac_cv_prog_LIPO
13240 if test -n "$LIPO"; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13242 $as_echo "$LIPO" >&6; }
13243 else
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13246 fi
13247
13248
13249 fi
13250 if test -z "$ac_cv_prog_LIPO"; then
13251 ac_ct_LIPO=$LIPO
13252 # Extract the first word of "lipo", so it can be a program name with args.
13253 set dummy lipo; ac_word=$2
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 $as_echo_n "checking for $ac_word... " >&6; }
13256 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 if test -n "$ac_ct_LIPO"; then
13260 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13261 else
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $PATH
13264 do
13265 IFS=$as_save_IFS
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13269 ac_cv_prog_ac_ct_LIPO="lipo"
13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13271 break 2
13272 fi
13273 done
13274 done
13275 IFS=$as_save_IFS
13276
13277 fi
13278 fi
13279 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13280 if test -n "$ac_ct_LIPO"; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13282 $as_echo "$ac_ct_LIPO" >&6; }
13283 else
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285 $as_echo "no" >&6; }
13286 fi
13287
13288 if test "x$ac_ct_LIPO" = x; then
13289 LIPO=":"
13290 else
13291 case $cross_compiling:$ac_tool_warned in
13292 yes:)
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13295 ac_tool_warned=yes ;;
13296 esac
13297 LIPO=$ac_ct_LIPO
13298 fi
13299 else
13300 LIPO="$ac_cv_prog_LIPO"
13301 fi
13302
13303 if test -n "$ac_tool_prefix"; then
13304 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13305 set dummy ${ac_tool_prefix}otool; ac_word=$2
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307 $as_echo_n "checking for $ac_word... " >&6; }
13308 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 if test -n "$OTOOL"; then
13312 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13313 else
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13316 do
13317 IFS=$as_save_IFS
13318 test -z "$as_dir" && as_dir=.
13319 for ac_exec_ext in '' $ac_executable_extensions; do
13320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13321 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13323 break 2
13324 fi
13325 done
13326 done
13327 IFS=$as_save_IFS
13328
13329 fi
13330 fi
13331 OTOOL=$ac_cv_prog_OTOOL
13332 if test -n "$OTOOL"; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13334 $as_echo "$OTOOL" >&6; }
13335 else
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337 $as_echo "no" >&6; }
13338 fi
13339
13340
13341 fi
13342 if test -z "$ac_cv_prog_OTOOL"; then
13343 ac_ct_OTOOL=$OTOOL
13344 # Extract the first word of "otool", so it can be a program name with args.
13345 set dummy otool; ac_word=$2
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13347 $as_echo_n "checking for $ac_word... " >&6; }
13348 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 if test -n "$ac_ct_OTOOL"; then
13352 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13353 else
13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355 for as_dir in $PATH
13356 do
13357 IFS=$as_save_IFS
13358 test -z "$as_dir" && as_dir=.
13359 for ac_exec_ext in '' $ac_executable_extensions; do
13360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13361 ac_cv_prog_ac_ct_OTOOL="otool"
13362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13363 break 2
13364 fi
13365 done
13366 done
13367 IFS=$as_save_IFS
13368
13369 fi
13370 fi
13371 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13372 if test -n "$ac_ct_OTOOL"; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13374 $as_echo "$ac_ct_OTOOL" >&6; }
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13378 fi
13379
13380 if test "x$ac_ct_OTOOL" = x; then
13381 OTOOL=":"
13382 else
13383 case $cross_compiling:$ac_tool_warned in
13384 yes:)
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13387 ac_tool_warned=yes ;;
13388 esac
13389 OTOOL=$ac_ct_OTOOL
13390 fi
13391 else
13392 OTOOL="$ac_cv_prog_OTOOL"
13393 fi
13394
13395 if test -n "$ac_tool_prefix"; then
13396 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13397 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399 $as_echo_n "checking for $ac_word... " >&6; }
13400 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13401 $as_echo_n "(cached) " >&6
13402 else
13403 if test -n "$OTOOL64"; then
13404 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13405 else
13406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $PATH
13408 do
13409 IFS=$as_save_IFS
13410 test -z "$as_dir" && as_dir=.
13411 for ac_exec_ext in '' $ac_executable_extensions; do
13412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13413 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415 break 2
13416 fi
13417 done
13418 done
13419 IFS=$as_save_IFS
13420
13421 fi
13422 fi
13423 OTOOL64=$ac_cv_prog_OTOOL64
13424 if test -n "$OTOOL64"; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13426 $as_echo "$OTOOL64" >&6; }
13427 else
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429 $as_echo "no" >&6; }
13430 fi
13431
13432
13433 fi
13434 if test -z "$ac_cv_prog_OTOOL64"; then
13435 ac_ct_OTOOL64=$OTOOL64
13436 # Extract the first word of "otool64", so it can be a program name with args.
13437 set dummy otool64; ac_word=$2
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13439 $as_echo_n "checking for $ac_word... " >&6; }
13440 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13441 $as_echo_n "(cached) " >&6
13442 else
13443 if test -n "$ac_ct_OTOOL64"; then
13444 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13445 else
13446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447 for as_dir in $PATH
13448 do
13449 IFS=$as_save_IFS
13450 test -z "$as_dir" && as_dir=.
13451 for ac_exec_ext in '' $ac_executable_extensions; do
13452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13453 ac_cv_prog_ac_ct_OTOOL64="otool64"
13454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 break 2
13456 fi
13457 done
13458 done
13459 IFS=$as_save_IFS
13460
13461 fi
13462 fi
13463 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13464 if test -n "$ac_ct_OTOOL64"; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13466 $as_echo "$ac_ct_OTOOL64" >&6; }
13467 else
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469 $as_echo "no" >&6; }
13470 fi
13471
13472 if test "x$ac_ct_OTOOL64" = x; then
13473 OTOOL64=":"
13474 else
13475 case $cross_compiling:$ac_tool_warned in
13476 yes:)
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13479 ac_tool_warned=yes ;;
13480 esac
13481 OTOOL64=$ac_ct_OTOOL64
13482 fi
13483 else
13484 OTOOL64="$ac_cv_prog_OTOOL64"
13485 fi
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13514 $as_echo_n "checking for -single_module linker flag... " >&6; }
13515 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13516 $as_echo_n "(cached) " >&6
13517 else
13518 lt_cv_apple_cc_single_mod=no
13519 if test -z "${LT_MULTI_MODULE}"; then
13520 # By default we will add the -single_module flag. You can override
13521 # by either setting the environment variable LT_MULTI_MODULE
13522 # non-empty at configure time, or by adding -multi_module to the
13523 # link flags.
13524 rm -rf libconftest.dylib*
13525 echo "int foo(void){return 1;}" > conftest.c
13526 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13527 -dynamiclib -Wl,-single_module conftest.c" >&5
13528 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13529 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13530 _lt_result=$?
13531 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13532 lt_cv_apple_cc_single_mod=yes
13533 else
13534 cat conftest.err >&5
13535 fi
13536 rm -rf libconftest.dylib*
13537 rm -f conftest.*
13538 fi
13539 fi
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13541 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13543 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13544 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13545 $as_echo_n "(cached) " >&6
13546 else
13547 lt_cv_ld_exported_symbols_list=no
13548 save_LDFLAGS=$LDFLAGS
13549 echo "_main" > conftest.sym
13550 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553
13554 int
13555 main ()
13556 {
13557
13558 ;
13559 return 0;
13560 }
13561 _ACEOF
13562 if ac_fn_c_try_link "$LINENO"; then :
13563 lt_cv_ld_exported_symbols_list=yes
13564 else
13565 lt_cv_ld_exported_symbols_list=no
13566 fi
13567 rm -f core conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13569 LDFLAGS="$save_LDFLAGS"
13570
13571 fi
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13573 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13575 $as_echo_n "checking for -force_load linker flag... " >&6; }
13576 if test "${lt_cv_ld_force_load+set}" = set; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 lt_cv_ld_force_load=no
13580 cat > conftest.c << _LT_EOF
13581 int forced_loaded() { return 2;}
13582 _LT_EOF
13583 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13584 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13585 echo "$AR cru libconftest.a conftest.o" >&5
13586 $AR cru libconftest.a conftest.o 2>&5
13587 cat > conftest.c << _LT_EOF
13588 int main() { return 0;}
13589 _LT_EOF
13590 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13591 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13592 _lt_result=$?
13593 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13594 lt_cv_ld_force_load=yes
13595 else
13596 cat conftest.err >&5
13597 fi
13598 rm -f conftest.err libconftest.a conftest conftest.c
13599 rm -rf conftest.dSYM
13600
13601 fi
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13603 $as_echo "$lt_cv_ld_force_load" >&6; }
13604 case $host_os in
13605 rhapsody* | darwin1.[012])
13606 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13607 darwin1.*)
13608 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13609 darwin*) # darwin 5.x on
13610 # if running on 10.5 or later, the deployment target defaults
13611 # to the OS version, if on x86, and 10.4, the deployment
13612 # target defaults to 10.4. Don't you love it?
13613 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13614 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13615 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13616 10.[012]*)
13617 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13618 10.*)
13619 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13620 esac
13621 ;;
13622 esac
13623 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13624 _lt_dar_single_mod='$single_module'
13625 fi
13626 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13627 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13628 else
13629 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13630 fi
13631 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13632 _lt_dsymutil='~$DSYMUTIL $lib || :'
13633 else
13634 _lt_dsymutil=
13635 fi
13636 ;;
13637 esac
13638
13639 for ac_header in dlfcn.h
13640 do :
13641 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13642 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13643 cat >>confdefs.h <<_ACEOF
13644 #define HAVE_DLFCN_H 1
13645 _ACEOF
13646
13647 fi
13648 done
13649
13650
13651
13652
13653
13654
13655 # Set options
13656
13657
13658
13659 enable_dlopen=no
13660
13661
13662 enable_win32_dll=no
13663
13664
13665 # Check whether --enable-shared was given.
13666 if test "${enable_shared+set}" = set; then :
13667 enableval=$enable_shared; p=${PACKAGE-default}
13668 case $enableval in
13669 yes) enable_shared=yes ;;
13670 no) enable_shared=no ;;
13671 *)
13672 enable_shared=no
13673 # Look at the argument we got. We use all the common list separators.
13674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13675 for pkg in $enableval; do
13676 IFS="$lt_save_ifs"
13677 if test "X$pkg" = "X$p"; then
13678 enable_shared=yes
13679 fi
13680 done
13681 IFS="$lt_save_ifs"
13682 ;;
13683 esac
13684 else
13685 enable_shared=yes
13686 fi
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696 # Check whether --enable-static was given.
13697 if test "${enable_static+set}" = set; then :
13698 enableval=$enable_static; p=${PACKAGE-default}
13699 case $enableval in
13700 yes) enable_static=yes ;;
13701 no) enable_static=no ;;
13702 *)
13703 enable_static=no
13704 # Look at the argument we got. We use all the common list separators.
13705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13706 for pkg in $enableval; do
13707 IFS="$lt_save_ifs"
13708 if test "X$pkg" = "X$p"; then
13709 enable_static=yes
13710 fi
13711 done
13712 IFS="$lt_save_ifs"
13713 ;;
13714 esac
13715 else
13716 enable_static=yes
13717 fi
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728 # Check whether --with-pic was given.
13729 if test "${with_pic+set}" = set; then :
13730 withval=$with_pic; pic_mode="$withval"
13731 else
13732 pic_mode=default
13733 fi
13734
13735
13736 test -z "$pic_mode" && pic_mode=default
13737
13738
13739
13740
13741
13742
13743
13744 # Check whether --enable-fast-install was given.
13745 if test "${enable_fast_install+set}" = set; then :
13746 enableval=$enable_fast_install; p=${PACKAGE-default}
13747 case $enableval in
13748 yes) enable_fast_install=yes ;;
13749 no) enable_fast_install=no ;;
13750 *)
13751 enable_fast_install=no
13752 # Look at the argument we got. We use all the common list separators.
13753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13754 for pkg in $enableval; do
13755 IFS="$lt_save_ifs"
13756 if test "X$pkg" = "X$p"; then
13757 enable_fast_install=yes
13758 fi
13759 done
13760 IFS="$lt_save_ifs"
13761 ;;
13762 esac
13763 else
13764 enable_fast_install=yes
13765 fi
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777 # This can be used to rebuild libtool when needed
13778 LIBTOOL_DEPS="$ltmain"
13779
13780 # Always use our own libtool.
13781 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808 test -z "$LN_S" && LN_S="ln -s"
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823 if test -n "${ZSH_VERSION+set}" ; then
13824 setopt NO_GLOB_SUBST
13825 fi
13826
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13828 $as_echo_n "checking for objdir... " >&6; }
13829 if test "${lt_cv_objdir+set}" = set; then :
13830 $as_echo_n "(cached) " >&6
13831 else
13832 rm -f .libs 2>/dev/null
13833 mkdir .libs 2>/dev/null
13834 if test -d .libs; then
13835 lt_cv_objdir=.libs
13836 else
13837 # MS-DOS does not allow filenames that begin with a dot.
13838 lt_cv_objdir=_libs
13839 fi
13840 rmdir .libs 2>/dev/null
13841 fi
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13843 $as_echo "$lt_cv_objdir" >&6; }
13844 objdir=$lt_cv_objdir
13845
13846
13847
13848
13849
13850 cat >>confdefs.h <<_ACEOF
13851 #define LT_OBJDIR "$lt_cv_objdir/"
13852 _ACEOF
13853
13854
13855
13856
13857 case $host_os in
13858 aix3*)
13859 # AIX sometimes has problems with the GCC collect2 program. For some
13860 # reason, if we set the COLLECT_NAMES environment variable, the problems
13861 # vanish in a puff of smoke.
13862 if test "X${COLLECT_NAMES+set}" != Xset; then
13863 COLLECT_NAMES=
13864 export COLLECT_NAMES
13865 fi
13866 ;;
13867 esac
13868
13869 # Global variables:
13870 ofile=libtool
13871 can_build_shared=yes
13872
13873 # All known linkers require a `.a' archive for static linking (except MSVC,
13874 # which needs '.lib').
13875 libext=a
13876
13877 with_gnu_ld="$lt_cv_prog_gnu_ld"
13878
13879 old_CC="$CC"
13880 old_CFLAGS="$CFLAGS"
13881
13882 # Set sane defaults for various variables
13883 test -z "$CC" && CC=cc
13884 test -z "$LTCC" && LTCC=$CC
13885 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13886 test -z "$LD" && LD=ld
13887 test -z "$ac_objext" && ac_objext=o
13888
13889 for cc_temp in $compiler""; do
13890 case $cc_temp in
13891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13893 \-*) ;;
13894 *) break;;
13895 esac
13896 done
13897 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13898
13899
13900 # Only perform the check for file, if the check method requires it
13901 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13902 case $deplibs_check_method in
13903 file_magic*)
13904 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13906 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13907 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13908 $as_echo_n "(cached) " >&6
13909 else
13910 case $MAGIC_CMD in
13911 [\\/*] | ?:[\\/]*)
13912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13913 ;;
13914 *)
13915 lt_save_MAGIC_CMD="$MAGIC_CMD"
13916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13917 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13918 for ac_dir in $ac_dummy; do
13919 IFS="$lt_save_ifs"
13920 test -z "$ac_dir" && ac_dir=.
13921 if test -f $ac_dir/${ac_tool_prefix}file; then
13922 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13923 if test -n "$file_magic_test_file"; then
13924 case $deplibs_check_method in
13925 "file_magic "*)
13926 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13929 $EGREP "$file_magic_regex" > /dev/null; then
13930 :
13931 else
13932 cat <<_LT_EOF 1>&2
13933
13934 *** Warning: the command libtool uses to detect shared libraries,
13935 *** $file_magic_cmd, produces output that libtool cannot recognize.
13936 *** The result is that libtool may fail to recognize shared libraries
13937 *** as such. This will affect the creation of libtool libraries that
13938 *** depend on shared libraries, but programs linked with such libtool
13939 *** libraries will work regardless of this problem. Nevertheless, you
13940 *** may want to report the problem to your system manager and/or to
13941 *** bug-libtool@gnu.org
13942
13943 _LT_EOF
13944 fi ;;
13945 esac
13946 fi
13947 break
13948 fi
13949 done
13950 IFS="$lt_save_ifs"
13951 MAGIC_CMD="$lt_save_MAGIC_CMD"
13952 ;;
13953 esac
13954 fi
13955
13956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13957 if test -n "$MAGIC_CMD"; then
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13959 $as_echo "$MAGIC_CMD" >&6; }
13960 else
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13962 $as_echo "no" >&6; }
13963 fi
13964
13965
13966
13967
13968
13969 if test -z "$lt_cv_path_MAGIC_CMD"; then
13970 if test -n "$ac_tool_prefix"; then
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13972 $as_echo_n "checking for file... " >&6; }
13973 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13974 $as_echo_n "(cached) " >&6
13975 else
13976 case $MAGIC_CMD in
13977 [\\/*] | ?:[\\/]*)
13978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13979 ;;
13980 *)
13981 lt_save_MAGIC_CMD="$MAGIC_CMD"
13982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13984 for ac_dir in $ac_dummy; do
13985 IFS="$lt_save_ifs"
13986 test -z "$ac_dir" && ac_dir=.
13987 if test -f $ac_dir/file; then
13988 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13989 if test -n "$file_magic_test_file"; then
13990 case $deplibs_check_method in
13991 "file_magic "*)
13992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13995 $EGREP "$file_magic_regex" > /dev/null; then
13996 :
13997 else
13998 cat <<_LT_EOF 1>&2
13999
14000 *** Warning: the command libtool uses to detect shared libraries,
14001 *** $file_magic_cmd, produces output that libtool cannot recognize.
14002 *** The result is that libtool may fail to recognize shared libraries
14003 *** as such. This will affect the creation of libtool libraries that
14004 *** depend on shared libraries, but programs linked with such libtool
14005 *** libraries will work regardless of this problem. Nevertheless, you
14006 *** may want to report the problem to your system manager and/or to
14007 *** bug-libtool@gnu.org
14008
14009 _LT_EOF
14010 fi ;;
14011 esac
14012 fi
14013 break
14014 fi
14015 done
14016 IFS="$lt_save_ifs"
14017 MAGIC_CMD="$lt_save_MAGIC_CMD"
14018 ;;
14019 esac
14020 fi
14021
14022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14023 if test -n "$MAGIC_CMD"; then
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14025 $as_echo "$MAGIC_CMD" >&6; }
14026 else
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14028 $as_echo "no" >&6; }
14029 fi
14030
14031
14032 else
14033 MAGIC_CMD=:
14034 fi
14035 fi
14036
14037 fi
14038 ;;
14039 esac
14040
14041 # Use C for the default configuration in the libtool script
14042
14043 lt_save_CC="$CC"
14044 ac_ext=c
14045 ac_cpp='$CPP $CPPFLAGS'
14046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14049
14050
14051 # Source file extension for C test sources.
14052 ac_ext=c
14053
14054 # Object file extension for compiled C test sources.
14055 objext=o
14056 objext=$objext
14057
14058 # Code to be used in simple compile tests
14059 lt_simple_compile_test_code="int some_variable = 0;"
14060
14061 # Code to be used in simple link tests
14062 lt_simple_link_test_code='int main(){return(0);}'
14063
14064
14065
14066
14067
14068
14069
14070 # If no C compiler was specified, use CC.
14071 LTCC=${LTCC-"$CC"}
14072
14073 # If no C compiler flags were specified, use CFLAGS.
14074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14075
14076 # Allow CC to be a program name with arguments.
14077 compiler=$CC
14078
14079 # Save the default compiler, since it gets overwritten when the other
14080 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14081 compiler_DEFAULT=$CC
14082
14083 # save warnings/boilerplate of simple test code
14084 ac_outfile=conftest.$ac_objext
14085 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14087 _lt_compiler_boilerplate=`cat conftest.err`
14088 $RM conftest*
14089
14090 ac_outfile=conftest.$ac_objext
14091 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14093 _lt_linker_boilerplate=`cat conftest.err`
14094 $RM -r conftest*
14095
14096
14097 ## CAVEAT EMPTOR:
14098 ## There is no encapsulation within the following macros, do not change
14099 ## the running order or otherwise move them around unless you know exactly
14100 ## what you are doing...
14101 if test -n "$compiler"; then
14102
14103 lt_prog_compiler_no_builtin_flag=
14104
14105 if test "$GCC" = yes; then
14106 case $cc_basename in
14107 nvcc*)
14108 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14109 *)
14110 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14111 esac
14112
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14114 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14115 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14116 $as_echo_n "(cached) " >&6
14117 else
14118 lt_cv_prog_compiler_rtti_exceptions=no
14119 ac_outfile=conftest.$ac_objext
14120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14121 lt_compiler_flag="-fno-rtti -fno-exceptions"
14122 # Insert the option either (1) after the last *FLAGS variable, or
14123 # (2) before a word containing "conftest.", or (3) at the end.
14124 # Note that $ac_compile itself does not contain backslashes and begins
14125 # with a dollar sign (not a hyphen), so the echo should work correctly.
14126 # The option is referenced via a variable to avoid confusing sed.
14127 lt_compile=`echo "$ac_compile" | $SED \
14128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14130 -e 's:$: $lt_compiler_flag:'`
14131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14132 (eval "$lt_compile" 2>conftest.err)
14133 ac_status=$?
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 if (exit $ac_status) && test -s "$ac_outfile"; then
14137 # The compiler can only warn and ignore the option if not recognized
14138 # So say no if there are warnings other than the usual output.
14139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14142 lt_cv_prog_compiler_rtti_exceptions=yes
14143 fi
14144 fi
14145 $RM conftest*
14146
14147 fi
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14149 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14150
14151 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14152 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14153 else
14154 :
14155 fi
14156
14157 fi
14158
14159
14160
14161
14162
14163
14164 lt_prog_compiler_wl=
14165 lt_prog_compiler_pic=
14166 lt_prog_compiler_static=
14167
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14169 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14170
14171 if test "$GCC" = yes; then
14172 lt_prog_compiler_wl='-Wl,'
14173 lt_prog_compiler_static='-static'
14174
14175 case $host_os in
14176 aix*)
14177 # All AIX code is PIC.
14178 if test "$host_cpu" = ia64; then
14179 # AIX 5 now supports IA64 processor
14180 lt_prog_compiler_static='-Bstatic'
14181 fi
14182 ;;
14183
14184 amigaos*)
14185 case $host_cpu in
14186 powerpc)
14187 # see comment about AmigaOS4 .so support
14188 lt_prog_compiler_pic='-fPIC'
14189 ;;
14190 m68k)
14191 # FIXME: we need at least 68020 code to build shared libraries, but
14192 # adding the `-m68020' flag to GCC prevents building anything better,
14193 # like `-m68040'.
14194 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14195 ;;
14196 esac
14197 ;;
14198
14199 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14200 # PIC is the default for these OSes.
14201 ;;
14202
14203 mingw* | cygwin* | pw32* | os2* | cegcc*)
14204 # This hack is so that the source file can tell whether it is being
14205 # built for inclusion in a dll (and should export symbols for example).
14206 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14207 # (--disable-auto-import) libraries
14208 lt_prog_compiler_pic='-DDLL_EXPORT'
14209 ;;
14210
14211 darwin* | rhapsody*)
14212 # PIC is the default on this platform
14213 # Common symbols not allowed in MH_DYLIB files
14214 lt_prog_compiler_pic='-fno-common'
14215 ;;
14216
14217 haiku*)
14218 # PIC is the default for Haiku.
14219 # The "-static" flag exists, but is broken.
14220 lt_prog_compiler_static=
14221 ;;
14222
14223 hpux*)
14224 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14225 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14226 # sets the default TLS model and affects inlining.
14227 case $host_cpu in
14228 hppa*64*)
14229 # +Z the default
14230 ;;
14231 *)
14232 lt_prog_compiler_pic='-fPIC'
14233 ;;
14234 esac
14235 ;;
14236
14237 interix[3-9]*)
14238 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14239 # Instead, we relocate shared libraries at runtime.
14240 ;;
14241
14242 msdosdjgpp*)
14243 # Just because we use GCC doesn't mean we suddenly get shared libraries
14244 # on systems that don't support them.
14245 lt_prog_compiler_can_build_shared=no
14246 enable_shared=no
14247 ;;
14248
14249 *nto* | *qnx*)
14250 # QNX uses GNU C++, but need to define -shared option too, otherwise
14251 # it will coredump.
14252 lt_prog_compiler_pic='-fPIC -shared'
14253 ;;
14254
14255 sysv4*MP*)
14256 if test -d /usr/nec; then
14257 lt_prog_compiler_pic=-Kconform_pic
14258 fi
14259 ;;
14260
14261 *)
14262 lt_prog_compiler_pic='-fPIC'
14263 ;;
14264 esac
14265
14266 case $cc_basename in
14267 nvcc*) # Cuda Compiler Driver 2.2
14268 lt_prog_compiler_wl='-Xlinker '
14269 lt_prog_compiler_pic='-Xcompiler -fPIC'
14270 ;;
14271 esac
14272 else
14273 # PORTME Check for flag to pass linker flags through the system compiler.
14274 case $host_os in
14275 aix*)
14276 lt_prog_compiler_wl='-Wl,'
14277 if test "$host_cpu" = ia64; then
14278 # AIX 5 now supports IA64 processor
14279 lt_prog_compiler_static='-Bstatic'
14280 else
14281 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14282 fi
14283 ;;
14284
14285 mingw* | cygwin* | pw32* | os2* | cegcc*)
14286 # This hack is so that the source file can tell whether it is being
14287 # built for inclusion in a dll (and should export symbols for example).
14288 lt_prog_compiler_pic='-DDLL_EXPORT'
14289 ;;
14290
14291 hpux9* | hpux10* | hpux11*)
14292 lt_prog_compiler_wl='-Wl,'
14293 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14294 # not for PA HP-UX.
14295 case $host_cpu in
14296 hppa*64*|ia64*)
14297 # +Z the default
14298 ;;
14299 *)
14300 lt_prog_compiler_pic='+Z'
14301 ;;
14302 esac
14303 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14304 lt_prog_compiler_static='${wl}-a ${wl}archive'
14305 ;;
14306
14307 irix5* | irix6* | nonstopux*)
14308 lt_prog_compiler_wl='-Wl,'
14309 # PIC (with -KPIC) is the default.
14310 lt_prog_compiler_static='-non_shared'
14311 ;;
14312
14313 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14314 case $cc_basename in
14315 # old Intel for x86_64 which still supported -KPIC.
14316 ecc*)
14317 lt_prog_compiler_wl='-Wl,'
14318 lt_prog_compiler_pic='-KPIC'
14319 lt_prog_compiler_static='-static'
14320 ;;
14321 # icc used to be incompatible with GCC.
14322 # ICC 10 doesn't accept -KPIC any more.
14323 icc* | ifort*)
14324 lt_prog_compiler_wl='-Wl,'
14325 lt_prog_compiler_pic='-fPIC'
14326 lt_prog_compiler_static='-static'
14327 ;;
14328 # Lahey Fortran 8.1.
14329 lf95*)
14330 lt_prog_compiler_wl='-Wl,'
14331 lt_prog_compiler_pic='--shared'
14332 lt_prog_compiler_static='--static'
14333 ;;
14334 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14335 # Portland Group compilers (*not* the Pentium gcc compiler,
14336 # which looks to be a dead project)
14337 lt_prog_compiler_wl='-Wl,'
14338 lt_prog_compiler_pic='-fpic'
14339 lt_prog_compiler_static='-Bstatic'
14340 ;;
14341 ccc*)
14342 lt_prog_compiler_wl='-Wl,'
14343 # All Alpha code is PIC.
14344 lt_prog_compiler_static='-non_shared'
14345 ;;
14346 xl* | bgxl* | bgf* | mpixl*)
14347 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14348 lt_prog_compiler_wl='-Wl,'
14349 lt_prog_compiler_pic='-qpic'
14350 lt_prog_compiler_static='-qstaticlink'
14351 ;;
14352 *)
14353 case `$CC -V 2>&1 | sed 5q` in
14354 *Sun\ F* | *Sun*Fortran*)
14355 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14356 lt_prog_compiler_pic='-KPIC'
14357 lt_prog_compiler_static='-Bstatic'
14358 lt_prog_compiler_wl=''
14359 ;;
14360 *Sun\ C*)
14361 # Sun C 5.9
14362 lt_prog_compiler_pic='-KPIC'
14363 lt_prog_compiler_static='-Bstatic'
14364 lt_prog_compiler_wl='-Wl,'
14365 ;;
14366 esac
14367 ;;
14368 esac
14369 ;;
14370
14371 newsos6)
14372 lt_prog_compiler_pic='-KPIC'
14373 lt_prog_compiler_static='-Bstatic'
14374 ;;
14375
14376 *nto* | *qnx*)
14377 # QNX uses GNU C++, but need to define -shared option too, otherwise
14378 # it will coredump.
14379 lt_prog_compiler_pic='-fPIC -shared'
14380 ;;
14381
14382 osf3* | osf4* | osf5*)
14383 lt_prog_compiler_wl='-Wl,'
14384 # All OSF/1 code is PIC.
14385 lt_prog_compiler_static='-non_shared'
14386 ;;
14387
14388 rdos*)
14389 lt_prog_compiler_static='-non_shared'
14390 ;;
14391
14392 solaris*)
14393 lt_prog_compiler_pic='-KPIC'
14394 lt_prog_compiler_static='-Bstatic'
14395 case $cc_basename in
14396 f77* | f90* | f95*)
14397 lt_prog_compiler_wl='-Qoption ld ';;
14398 *)
14399 lt_prog_compiler_wl='-Wl,';;
14400 esac
14401 ;;
14402
14403 sunos4*)
14404 lt_prog_compiler_wl='-Qoption ld '
14405 lt_prog_compiler_pic='-PIC'
14406 lt_prog_compiler_static='-Bstatic'
14407 ;;
14408
14409 sysv4 | sysv4.2uw2* | sysv4.3*)
14410 lt_prog_compiler_wl='-Wl,'
14411 lt_prog_compiler_pic='-KPIC'
14412 lt_prog_compiler_static='-Bstatic'
14413 ;;
14414
14415 sysv4*MP*)
14416 if test -d /usr/nec ;then
14417 lt_prog_compiler_pic='-Kconform_pic'
14418 lt_prog_compiler_static='-Bstatic'
14419 fi
14420 ;;
14421
14422 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14423 lt_prog_compiler_wl='-Wl,'
14424 lt_prog_compiler_pic='-KPIC'
14425 lt_prog_compiler_static='-Bstatic'
14426 ;;
14427
14428 unicos*)
14429 lt_prog_compiler_wl='-Wl,'
14430 lt_prog_compiler_can_build_shared=no
14431 ;;
14432
14433 uts4*)
14434 lt_prog_compiler_pic='-pic'
14435 lt_prog_compiler_static='-Bstatic'
14436 ;;
14437
14438 *)
14439 lt_prog_compiler_can_build_shared=no
14440 ;;
14441 esac
14442 fi
14443
14444 case $host_os in
14445 # For platforms which do not support PIC, -DPIC is meaningless:
14446 *djgpp*)
14447 lt_prog_compiler_pic=
14448 ;;
14449 *)
14450 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14451 ;;
14452 esac
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14454 $as_echo "$lt_prog_compiler_pic" >&6; }
14455
14456
14457
14458
14459
14460
14461 #
14462 # Check to make sure the PIC flag actually works.
14463 #
14464 if test -n "$lt_prog_compiler_pic"; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14466 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14467 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14468 $as_echo_n "(cached) " >&6
14469 else
14470 lt_cv_prog_compiler_pic_works=no
14471 ac_outfile=conftest.$ac_objext
14472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14473 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14474 # Insert the option either (1) after the last *FLAGS variable, or
14475 # (2) before a word containing "conftest.", or (3) at the end.
14476 # Note that $ac_compile itself does not contain backslashes and begins
14477 # with a dollar sign (not a hyphen), so the echo should work correctly.
14478 # The option is referenced via a variable to avoid confusing sed.
14479 lt_compile=`echo "$ac_compile" | $SED \
14480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14482 -e 's:$: $lt_compiler_flag:'`
14483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14484 (eval "$lt_compile" 2>conftest.err)
14485 ac_status=$?
14486 cat conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 if (exit $ac_status) && test -s "$ac_outfile"; then
14489 # The compiler can only warn and ignore the option if not recognized
14490 # So say no if there are warnings other than the usual output.
14491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14493 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14494 lt_cv_prog_compiler_pic_works=yes
14495 fi
14496 fi
14497 $RM conftest*
14498
14499 fi
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14501 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14502
14503 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14504 case $lt_prog_compiler_pic in
14505 "" | " "*) ;;
14506 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14507 esac
14508 else
14509 lt_prog_compiler_pic=
14510 lt_prog_compiler_can_build_shared=no
14511 fi
14512
14513 fi
14514
14515
14516
14517
14518
14519
14520 #
14521 # Check to make sure the static flag actually works.
14522 #
14523 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14525 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14526 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14527 $as_echo_n "(cached) " >&6
14528 else
14529 lt_cv_prog_compiler_static_works=no
14530 save_LDFLAGS="$LDFLAGS"
14531 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14532 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14533 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14534 # The linker can only warn and ignore the option if not recognized
14535 # So say no if there are warnings
14536 if test -s conftest.err; then
14537 # Append any errors to the config.log.
14538 cat conftest.err 1>&5
14539 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14541 if diff conftest.exp conftest.er2 >/dev/null; then
14542 lt_cv_prog_compiler_static_works=yes
14543 fi
14544 else
14545 lt_cv_prog_compiler_static_works=yes
14546 fi
14547 fi
14548 $RM -r conftest*
14549 LDFLAGS="$save_LDFLAGS"
14550
14551 fi
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14553 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14554
14555 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14556 :
14557 else
14558 lt_prog_compiler_static=
14559 fi
14560
14561
14562
14563
14564
14565
14566
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14568 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14569 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 lt_cv_prog_compiler_c_o=no
14573 $RM -r conftest 2>/dev/null
14574 mkdir conftest
14575 cd conftest
14576 mkdir out
14577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14578
14579 lt_compiler_flag="-o out/conftest2.$ac_objext"
14580 # Insert the option either (1) after the last *FLAGS variable, or
14581 # (2) before a word containing "conftest.", or (3) at the end.
14582 # Note that $ac_compile itself does not contain backslashes and begins
14583 # with a dollar sign (not a hyphen), so the echo should work correctly.
14584 lt_compile=`echo "$ac_compile" | $SED \
14585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14587 -e 's:$: $lt_compiler_flag:'`
14588 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14589 (eval "$lt_compile" 2>out/conftest.err)
14590 ac_status=$?
14591 cat out/conftest.err >&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14594 then
14595 # The compiler can only warn and ignore the option if not recognized
14596 # So say no if there are warnings
14597 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14598 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14599 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14600 lt_cv_prog_compiler_c_o=yes
14601 fi
14602 fi
14603 chmod u+w . 2>&5
14604 $RM conftest*
14605 # SGI C++ compiler will create directory out/ii_files/ for
14606 # template instantiation
14607 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14608 $RM out/* && rmdir out
14609 cd ..
14610 $RM -r conftest
14611 $RM conftest*
14612
14613 fi
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14615 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14616
14617
14618
14619
14620
14621
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14623 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14624 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 lt_cv_prog_compiler_c_o=no
14628 $RM -r conftest 2>/dev/null
14629 mkdir conftest
14630 cd conftest
14631 mkdir out
14632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14633
14634 lt_compiler_flag="-o out/conftest2.$ac_objext"
14635 # Insert the option either (1) after the last *FLAGS variable, or
14636 # (2) before a word containing "conftest.", or (3) at the end.
14637 # Note that $ac_compile itself does not contain backslashes and begins
14638 # with a dollar sign (not a hyphen), so the echo should work correctly.
14639 lt_compile=`echo "$ac_compile" | $SED \
14640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14642 -e 's:$: $lt_compiler_flag:'`
14643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14644 (eval "$lt_compile" 2>out/conftest.err)
14645 ac_status=$?
14646 cat out/conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14649 then
14650 # The compiler can only warn and ignore the option if not recognized
14651 # So say no if there are warnings
14652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14653 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14654 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14655 lt_cv_prog_compiler_c_o=yes
14656 fi
14657 fi
14658 chmod u+w . 2>&5
14659 $RM conftest*
14660 # SGI C++ compiler will create directory out/ii_files/ for
14661 # template instantiation
14662 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14663 $RM out/* && rmdir out
14664 cd ..
14665 $RM -r conftest
14666 $RM conftest*
14667
14668 fi
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14670 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14671
14672
14673
14674
14675 hard_links="nottested"
14676 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14677 # do not overwrite the value of need_locks provided by the user
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14679 $as_echo_n "checking if we can lock with hard links... " >&6; }
14680 hard_links=yes
14681 $RM conftest*
14682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14683 touch conftest.a
14684 ln conftest.a conftest.b 2>&5 || hard_links=no
14685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14687 $as_echo "$hard_links" >&6; }
14688 if test "$hard_links" = no; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14690 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14691 need_locks=warn
14692 fi
14693 else
14694 need_locks=no
14695 fi
14696
14697
14698
14699
14700
14701
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14703 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14704
14705 runpath_var=
14706 allow_undefined_flag=
14707 always_export_symbols=no
14708 archive_cmds=
14709 archive_expsym_cmds=
14710 compiler_needs_object=no
14711 enable_shared_with_static_runtimes=no
14712 export_dynamic_flag_spec=
14713 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14714 hardcode_automatic=no
14715 hardcode_direct=no
14716 hardcode_direct_absolute=no
14717 hardcode_libdir_flag_spec=
14718 hardcode_libdir_flag_spec_ld=
14719 hardcode_libdir_separator=
14720 hardcode_minus_L=no
14721 hardcode_shlibpath_var=unsupported
14722 inherit_rpath=no
14723 link_all_deplibs=unknown
14724 module_cmds=
14725 module_expsym_cmds=
14726 old_archive_from_new_cmds=
14727 old_archive_from_expsyms_cmds=
14728 thread_safe_flag_spec=
14729 whole_archive_flag_spec=
14730 # include_expsyms should be a list of space-separated symbols to be *always*
14731 # included in the symbol list
14732 include_expsyms=
14733 # exclude_expsyms can be an extended regexp of symbols to exclude
14734 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14735 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14736 # as well as any symbol that contains `d'.
14737 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14738 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14739 # platforms (ab)use it in PIC code, but their linkers get confused if
14740 # the symbol is explicitly referenced. Since portable code cannot
14741 # rely on this symbol name, it's probably fine to never include it in
14742 # preloaded symbol tables.
14743 # Exclude shared library initialization/finalization symbols.
14744 extract_expsyms_cmds=
14745
14746 case $host_os in
14747 cygwin* | mingw* | pw32* | cegcc*)
14748 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14749 # When not using gcc, we currently assume that we are using
14750 # Microsoft Visual C++.
14751 if test "$GCC" != yes; then
14752 with_gnu_ld=no
14753 fi
14754 ;;
14755 interix*)
14756 # we just hope/assume this is gcc and not c89 (= MSVC++)
14757 with_gnu_ld=yes
14758 ;;
14759 openbsd*)
14760 with_gnu_ld=no
14761 ;;
14762 esac
14763
14764 ld_shlibs=yes
14765
14766 # On some targets, GNU ld is compatible enough with the native linker
14767 # that we're better off using the native interface for both.
14768 lt_use_gnu_ld_interface=no
14769 if test "$with_gnu_ld" = yes; then
14770 case $host_os in
14771 aix*)
14772 # The AIX port of GNU ld has always aspired to compatibility
14773 # with the native linker. However, as the warning in the GNU ld
14774 # block says, versions before 2.19.5* couldn't really create working
14775 # shared libraries, regardless of the interface used.
14776 case `$LD -v 2>&1` in
14777 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14778 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14779 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14780 *)
14781 lt_use_gnu_ld_interface=yes
14782 ;;
14783 esac
14784 ;;
14785 *)
14786 lt_use_gnu_ld_interface=yes
14787 ;;
14788 esac
14789 fi
14790
14791 if test "$lt_use_gnu_ld_interface" = yes; then
14792 # If archive_cmds runs LD, not CC, wlarc should be empty
14793 wlarc='${wl}'
14794
14795 # Set some defaults for GNU ld with shared library support. These
14796 # are reset later if shared libraries are not supported. Putting them
14797 # here allows them to be overridden if necessary.
14798 runpath_var=LD_RUN_PATH
14799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14800 export_dynamic_flag_spec='${wl}--export-dynamic'
14801 # ancient GNU ld didn't support --whole-archive et. al.
14802 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14803 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14804 else
14805 whole_archive_flag_spec=
14806 fi
14807 supports_anon_versioning=no
14808 case `$LD -v 2>&1` in
14809 *GNU\ gold*) supports_anon_versioning=yes ;;
14810 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14811 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14812 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14813 *\ 2.11.*) ;; # other 2.11 versions
14814 *) supports_anon_versioning=yes ;;
14815 esac
14816
14817 # See if GNU ld supports shared libraries.
14818 case $host_os in
14819 aix[3-9]*)
14820 # On AIX/PPC, the GNU linker is very broken
14821 if test "$host_cpu" != ia64; then
14822 ld_shlibs=no
14823 cat <<_LT_EOF 1>&2
14824
14825 *** Warning: the GNU linker, at least up to release 2.19, is reported
14826 *** to be unable to reliably create shared libraries on AIX.
14827 *** Therefore, libtool is disabling shared libraries support. If you
14828 *** really care for shared libraries, you may want to install binutils
14829 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14830 *** You will then need to restart the configuration process.
14831
14832 _LT_EOF
14833 fi
14834 ;;
14835
14836 amigaos*)
14837 case $host_cpu in
14838 powerpc)
14839 # see comment about AmigaOS4 .so support
14840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14841 archive_expsym_cmds=''
14842 ;;
14843 m68k)
14844 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)'
14845 hardcode_libdir_flag_spec='-L$libdir'
14846 hardcode_minus_L=yes
14847 ;;
14848 esac
14849 ;;
14850
14851 beos*)
14852 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14853 allow_undefined_flag=unsupported
14854 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14855 # support --undefined. This deserves some investigation. FIXME
14856 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14857 else
14858 ld_shlibs=no
14859 fi
14860 ;;
14861
14862 cygwin* | mingw* | pw32* | cegcc*)
14863 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14864 # as there is no search path for DLLs.
14865 hardcode_libdir_flag_spec='-L$libdir'
14866 export_dynamic_flag_spec='${wl}--export-all-symbols'
14867 allow_undefined_flag=unsupported
14868 always_export_symbols=no
14869 enable_shared_with_static_runtimes=yes
14870 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14871
14872 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14874 # If the export-symbols file already is a .def file (1st line
14875 # is EXPORTS), use it as is; otherwise, prepend...
14876 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14877 cp $export_symbols $output_objdir/$soname.def;
14878 else
14879 echo EXPORTS > $output_objdir/$soname.def;
14880 cat $export_symbols >> $output_objdir/$soname.def;
14881 fi~
14882 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14883 else
14884 ld_shlibs=no
14885 fi
14886 ;;
14887
14888 haiku*)
14889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14890 link_all_deplibs=yes
14891 ;;
14892
14893 interix[3-9]*)
14894 hardcode_direct=no
14895 hardcode_shlibpath_var=no
14896 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14897 export_dynamic_flag_spec='${wl}-E'
14898 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14899 # Instead, shared libraries are loaded at an image base (0x10000000 by
14900 # default) and relocated if they conflict, which is a slow very memory
14901 # consuming and fragmenting process. To avoid this, we pick a random,
14902 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14903 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14904 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14905 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'
14906 ;;
14907
14908 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14909 tmp_diet=no
14910 if test "$host_os" = linux-dietlibc; then
14911 case $cc_basename in
14912 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14913 esac
14914 fi
14915 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14916 && test "$tmp_diet" = no
14917 then
14918 tmp_addflag=
14919 tmp_sharedflag='-shared'
14920 case $cc_basename,$host_cpu in
14921 pgcc*) # Portland Group C compiler
14922 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'
14923 tmp_addflag=' $pic_flag'
14924 ;;
14925 pgf77* | pgf90* | pgf95* | pgfortran*)
14926 # Portland Group f77 and f90 compilers
14927 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'
14928 tmp_addflag=' $pic_flag -Mnomain' ;;
14929 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14930 tmp_addflag=' -i_dynamic' ;;
14931 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14932 tmp_addflag=' -i_dynamic -nofor_main' ;;
14933 ifc* | ifort*) # Intel Fortran compiler
14934 tmp_addflag=' -nofor_main' ;;
14935 lf95*) # Lahey Fortran 8.1
14936 whole_archive_flag_spec=
14937 tmp_sharedflag='--shared' ;;
14938 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14939 tmp_sharedflag='-qmkshrobj'
14940 tmp_addflag= ;;
14941 nvcc*) # Cuda Compiler Driver 2.2
14942 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'
14943 compiler_needs_object=yes
14944 ;;
14945 esac
14946 case `$CC -V 2>&1 | sed 5q` in
14947 *Sun\ C*) # Sun C 5.9
14948 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'
14949 compiler_needs_object=yes
14950 tmp_sharedflag='-G' ;;
14951 *Sun\ F*) # Sun Fortran 8.3
14952 tmp_sharedflag='-G' ;;
14953 esac
14954 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14955
14956 if test "x$supports_anon_versioning" = xyes; then
14957 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14959 echo "local: *; };" >> $output_objdir/$libname.ver~
14960 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14961 fi
14962
14963 case $cc_basename in
14964 xlf* | bgf* | bgxlf* | mpixlf*)
14965 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14966 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14967 hardcode_libdir_flag_spec=
14968 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14969 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14970 if test "x$supports_anon_versioning" = xyes; then
14971 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14972 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14973 echo "local: *; };" >> $output_objdir/$libname.ver~
14974 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14975 fi
14976 ;;
14977 esac
14978 else
14979 ld_shlibs=no
14980 fi
14981 ;;
14982
14983 netbsd*)
14984 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14985 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14986 wlarc=
14987 else
14988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14990 fi
14991 ;;
14992
14993 solaris*)
14994 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14995 ld_shlibs=no
14996 cat <<_LT_EOF 1>&2
14997
14998 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14999 *** create shared libraries on Solaris systems. Therefore, libtool
15000 *** is disabling shared libraries support. We urge you to upgrade GNU
15001 *** binutils to release 2.9.1 or newer. Another option is to modify
15002 *** your PATH or compiler configuration so that the native linker is
15003 *** used, and then restart.
15004
15005 _LT_EOF
15006 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15009 else
15010 ld_shlibs=no
15011 fi
15012 ;;
15013
15014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15015 case `$LD -v 2>&1` in
15016 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15017 ld_shlibs=no
15018 cat <<_LT_EOF 1>&2
15019
15020 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15021 *** reliably create shared libraries on SCO systems. Therefore, libtool
15022 *** is disabling shared libraries support. We urge you to upgrade GNU
15023 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15024 *** your PATH or compiler configuration so that the native linker is
15025 *** used, and then restart.
15026
15027 _LT_EOF
15028 ;;
15029 *)
15030 # For security reasons, it is highly recommended that you always
15031 # use absolute paths for naming shared libraries, and exclude the
15032 # DT_RUNPATH tag from executables and libraries. But doing so
15033 # requires that you compile everything twice, which is a pain.
15034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15037 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15038 else
15039 ld_shlibs=no
15040 fi
15041 ;;
15042 esac
15043 ;;
15044
15045 sunos4*)
15046 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15047 wlarc=
15048 hardcode_direct=yes
15049 hardcode_shlibpath_var=no
15050 ;;
15051
15052 *)
15053 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15056 else
15057 ld_shlibs=no
15058 fi
15059 ;;
15060 esac
15061
15062 if test "$ld_shlibs" = no; then
15063 runpath_var=
15064 hardcode_libdir_flag_spec=
15065 export_dynamic_flag_spec=
15066 whole_archive_flag_spec=
15067 fi
15068 else
15069 # PORTME fill in a description of your system's linker (not GNU ld)
15070 case $host_os in
15071 aix3*)
15072 allow_undefined_flag=unsupported
15073 always_export_symbols=yes
15074 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'
15075 # Note: this linker hardcodes the directories in LIBPATH if there
15076 # are no directories specified by -L.
15077 hardcode_minus_L=yes
15078 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15079 # Neither direct hardcoding nor static linking is supported with a
15080 # broken collect2.
15081 hardcode_direct=unsupported
15082 fi
15083 ;;
15084
15085 aix[4-9]*)
15086 if test "$host_cpu" = ia64; then
15087 # On IA64, the linker does run time linking by default, so we don't
15088 # have to do anything special.
15089 aix_use_runtimelinking=no
15090 exp_sym_flag='-Bexport'
15091 no_entry_flag=""
15092 else
15093 # If we're using GNU nm, then we don't want the "-C" option.
15094 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15095 # Also, AIX nm treats weak defined symbols like other global
15096 # defined symbols, whereas GNU nm marks them as "W".
15097 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15098 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'
15099 else
15100 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'
15101 fi
15102 aix_use_runtimelinking=no
15103
15104 # Test if we are trying to use run time linking or normal
15105 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15106 # need to do runtime linking.
15107 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15108 for ld_flag in $LDFLAGS; do
15109 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15110 aix_use_runtimelinking=yes
15111 break
15112 fi
15113 done
15114 ;;
15115 esac
15116
15117 exp_sym_flag='-bexport'
15118 no_entry_flag='-bnoentry'
15119 fi
15120
15121 # When large executables or shared objects are built, AIX ld can
15122 # have problems creating the table of contents. If linking a library
15123 # or program results in "error TOC overflow" add -mminimal-toc to
15124 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15125 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15126
15127 archive_cmds=''
15128 hardcode_direct=yes
15129 hardcode_direct_absolute=yes
15130 hardcode_libdir_separator=':'
15131 link_all_deplibs=yes
15132 file_list_spec='${wl}-f,'
15133
15134 if test "$GCC" = yes; then
15135 case $host_os in aix4.[012]|aix4.[012].*)
15136 # We only want to do this on AIX 4.2 and lower, the check
15137 # below for broken collect2 doesn't work under 4.3+
15138 collect2name=`${CC} -print-prog-name=collect2`
15139 if test -f "$collect2name" &&
15140 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15141 then
15142 # We have reworked collect2
15143 :
15144 else
15145 # We have old collect2
15146 hardcode_direct=unsupported
15147 # It fails to find uninstalled libraries when the uninstalled
15148 # path is not listed in the libpath. Setting hardcode_minus_L
15149 # to unsupported forces relinking
15150 hardcode_minus_L=yes
15151 hardcode_libdir_flag_spec='-L$libdir'
15152 hardcode_libdir_separator=
15153 fi
15154 ;;
15155 esac
15156 shared_flag='-shared'
15157 if test "$aix_use_runtimelinking" = yes; then
15158 shared_flag="$shared_flag "'${wl}-G'
15159 fi
15160 else
15161 # not using gcc
15162 if test "$host_cpu" = ia64; then
15163 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15164 # chokes on -Wl,-G. The following line is correct:
15165 shared_flag='-G'
15166 else
15167 if test "$aix_use_runtimelinking" = yes; then
15168 shared_flag='${wl}-G'
15169 else
15170 shared_flag='${wl}-bM:SRE'
15171 fi
15172 fi
15173 fi
15174
15175 export_dynamic_flag_spec='${wl}-bexpall'
15176 # It seems that -bexpall does not export symbols beginning with
15177 # underscore (_), so it is better to generate a list of symbols to export.
15178 always_export_symbols=yes
15179 if test "$aix_use_runtimelinking" = yes; then
15180 # Warning - without using the other runtime loading flags (-brtl),
15181 # -berok will link without error, but may produce a broken library.
15182 allow_undefined_flag='-berok'
15183 # Determine the default libpath from the value encoded in an
15184 # empty executable.
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15187
15188 int
15189 main ()
15190 {
15191
15192 ;
15193 return 0;
15194 }
15195 _ACEOF
15196 if ac_fn_c_try_link "$LINENO"; then :
15197
15198 lt_aix_libpath_sed='
15199 /Import File Strings/,/^$/ {
15200 /^0/ {
15201 s/^0 *\(.*\)$/\1/
15202 p
15203 }
15204 }'
15205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15206 # Check for a 64-bit object if we didn't find anything.
15207 if test -z "$aix_libpath"; then
15208 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15209 fi
15210 fi
15211 rm -f core conftest.err conftest.$ac_objext \
15212 conftest$ac_exeext conftest.$ac_ext
15213 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15214
15215 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15216 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"
15217 else
15218 if test "$host_cpu" = ia64; then
15219 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15220 allow_undefined_flag="-z nodefs"
15221 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"
15222 else
15223 # Determine the default libpath from the value encoded in an
15224 # empty executable.
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227
15228 int
15229 main ()
15230 {
15231
15232 ;
15233 return 0;
15234 }
15235 _ACEOF
15236 if ac_fn_c_try_link "$LINENO"; then :
15237
15238 lt_aix_libpath_sed='
15239 /Import File Strings/,/^$/ {
15240 /^0/ {
15241 s/^0 *\(.*\)$/\1/
15242 p
15243 }
15244 }'
15245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15246 # Check for a 64-bit object if we didn't find anything.
15247 if test -z "$aix_libpath"; then
15248 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15249 fi
15250 fi
15251 rm -f core conftest.err conftest.$ac_objext \
15252 conftest$ac_exeext conftest.$ac_ext
15253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15254
15255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15256 # Warning - without using the other run time loading flags,
15257 # -berok will link without error, but may produce a broken library.
15258 no_undefined_flag=' ${wl}-bernotok'
15259 allow_undefined_flag=' ${wl}-berok'
15260 if test "$with_gnu_ld" = yes; then
15261 # We only use this code for GNU lds that support --whole-archive.
15262 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15263 else
15264 # Exported symbols can be pulled into shared objects from archives
15265 whole_archive_flag_spec='$convenience'
15266 fi
15267 archive_cmds_need_lc=yes
15268 # This is similar to how AIX traditionally builds its shared libraries.
15269 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'
15270 fi
15271 fi
15272 ;;
15273
15274 amigaos*)
15275 case $host_cpu in
15276 powerpc)
15277 # see comment about AmigaOS4 .so support
15278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15279 archive_expsym_cmds=''
15280 ;;
15281 m68k)
15282 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)'
15283 hardcode_libdir_flag_spec='-L$libdir'
15284 hardcode_minus_L=yes
15285 ;;
15286 esac
15287 ;;
15288
15289 bsdi[45]*)
15290 export_dynamic_flag_spec=-rdynamic
15291 ;;
15292
15293 cygwin* | mingw* | pw32* | cegcc*)
15294 # When not using gcc, we currently assume that we are using
15295 # Microsoft Visual C++.
15296 # hardcode_libdir_flag_spec is actually meaningless, as there is
15297 # no search path for DLLs.
15298 hardcode_libdir_flag_spec=' '
15299 allow_undefined_flag=unsupported
15300 # Tell ltmain to make .lib files, not .a files.
15301 libext=lib
15302 # Tell ltmain to make .dll files, not .so files.
15303 shrext_cmds=".dll"
15304 # FIXME: Setting linknames here is a bad hack.
15305 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15306 # The linker will automatically build a .lib file if we build a DLL.
15307 old_archive_from_new_cmds='true'
15308 # FIXME: Should let the user specify the lib program.
15309 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15310 fix_srcfile_path='`cygpath -w "$srcfile"`'
15311 enable_shared_with_static_runtimes=yes
15312 ;;
15313
15314 darwin* | rhapsody*)
15315
15316
15317 archive_cmds_need_lc=no
15318 hardcode_direct=no
15319 hardcode_automatic=yes
15320 hardcode_shlibpath_var=unsupported
15321 if test "$lt_cv_ld_force_load" = "yes"; then
15322 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\"`'
15323 else
15324 whole_archive_flag_spec=''
15325 fi
15326 link_all_deplibs=yes
15327 allow_undefined_flag="$_lt_dar_allow_undefined"
15328 case $cc_basename in
15329 ifort*) _lt_dar_can_shared=yes ;;
15330 *) _lt_dar_can_shared=$GCC ;;
15331 esac
15332 if test "$_lt_dar_can_shared" = "yes"; then
15333 output_verbose_link_cmd=func_echo_all
15334 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15335 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15336 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}"
15337 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}"
15338
15339 else
15340 ld_shlibs=no
15341 fi
15342
15343 ;;
15344
15345 dgux*)
15346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15347 hardcode_libdir_flag_spec='-L$libdir'
15348 hardcode_shlibpath_var=no
15349 ;;
15350
15351 freebsd1*)
15352 ld_shlibs=no
15353 ;;
15354
15355 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15356 # support. Future versions do this automatically, but an explicit c++rt0.o
15357 # does not break anything, and helps significantly (at the cost of a little
15358 # extra space).
15359 freebsd2.2*)
15360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15361 hardcode_libdir_flag_spec='-R$libdir'
15362 hardcode_direct=yes
15363 hardcode_shlibpath_var=no
15364 ;;
15365
15366 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15367 freebsd2*)
15368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15369 hardcode_direct=yes
15370 hardcode_minus_L=yes
15371 hardcode_shlibpath_var=no
15372 ;;
15373
15374 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15375 freebsd* | dragonfly*)
15376 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15377 hardcode_libdir_flag_spec='-R$libdir'
15378 hardcode_direct=yes
15379 hardcode_shlibpath_var=no
15380 ;;
15381
15382 hpux9*)
15383 if test "$GCC" = yes; then
15384 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'
15385 else
15386 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'
15387 fi
15388 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15389 hardcode_libdir_separator=:
15390 hardcode_direct=yes
15391
15392 # hardcode_minus_L: Not really in the search PATH,
15393 # but as the default location of the library.
15394 hardcode_minus_L=yes
15395 export_dynamic_flag_spec='${wl}-E'
15396 ;;
15397
15398 hpux10*)
15399 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15400 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15401 else
15402 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15403 fi
15404 if test "$with_gnu_ld" = no; then
15405 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15406 hardcode_libdir_flag_spec_ld='+b $libdir'
15407 hardcode_libdir_separator=:
15408 hardcode_direct=yes
15409 hardcode_direct_absolute=yes
15410 export_dynamic_flag_spec='${wl}-E'
15411 # hardcode_minus_L: Not really in the search PATH,
15412 # but as the default location of the library.
15413 hardcode_minus_L=yes
15414 fi
15415 ;;
15416
15417 hpux11*)
15418 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15419 case $host_cpu in
15420 hppa*64*)
15421 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15422 ;;
15423 ia64*)
15424 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15425 ;;
15426 *)
15427 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15428 ;;
15429 esac
15430 else
15431 case $host_cpu in
15432 hppa*64*)
15433 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15434 ;;
15435 ia64*)
15436 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15437 ;;
15438 *)
15439
15440 # Older versions of the 11.00 compiler do not understand -b yet
15441 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15443 $as_echo_n "checking if $CC understands -b... " >&6; }
15444 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15445 $as_echo_n "(cached) " >&6
15446 else
15447 lt_cv_prog_compiler__b=no
15448 save_LDFLAGS="$LDFLAGS"
15449 LDFLAGS="$LDFLAGS -b"
15450 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15451 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15452 # The linker can only warn and ignore the option if not recognized
15453 # So say no if there are warnings
15454 if test -s conftest.err; then
15455 # Append any errors to the config.log.
15456 cat conftest.err 1>&5
15457 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15459 if diff conftest.exp conftest.er2 >/dev/null; then
15460 lt_cv_prog_compiler__b=yes
15461 fi
15462 else
15463 lt_cv_prog_compiler__b=yes
15464 fi
15465 fi
15466 $RM -r conftest*
15467 LDFLAGS="$save_LDFLAGS"
15468
15469 fi
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15471 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15472
15473 if test x"$lt_cv_prog_compiler__b" = xyes; then
15474 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15475 else
15476 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15477 fi
15478
15479 ;;
15480 esac
15481 fi
15482 if test "$with_gnu_ld" = no; then
15483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15484 hardcode_libdir_separator=:
15485
15486 case $host_cpu in
15487 hppa*64*|ia64*)
15488 hardcode_direct=no
15489 hardcode_shlibpath_var=no
15490 ;;
15491 *)
15492 hardcode_direct=yes
15493 hardcode_direct_absolute=yes
15494 export_dynamic_flag_spec='${wl}-E'
15495
15496 # hardcode_minus_L: Not really in the search PATH,
15497 # but as the default location of the library.
15498 hardcode_minus_L=yes
15499 ;;
15500 esac
15501 fi
15502 ;;
15503
15504 irix5* | irix6* | nonstopux*)
15505 if test "$GCC" = yes; then
15506 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'
15507 # Try to use the -exported_symbol ld option, if it does not
15508 # work, assume that -exports_file does not work either and
15509 # implicitly export all symbols.
15510 save_LDFLAGS="$LDFLAGS"
15511 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h. */
15514 int foo(void) {}
15515 _ACEOF
15516 if ac_fn_c_try_link "$LINENO"; then :
15517 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'
15518
15519 fi
15520 rm -f core conftest.err conftest.$ac_objext \
15521 conftest$ac_exeext conftest.$ac_ext
15522 LDFLAGS="$save_LDFLAGS"
15523 else
15524 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'
15525 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'
15526 fi
15527 archive_cmds_need_lc='no'
15528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15529 hardcode_libdir_separator=:
15530 inherit_rpath=yes
15531 link_all_deplibs=yes
15532 ;;
15533
15534 netbsd*)
15535 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15537 else
15538 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15539 fi
15540 hardcode_libdir_flag_spec='-R$libdir'
15541 hardcode_direct=yes
15542 hardcode_shlibpath_var=no
15543 ;;
15544
15545 newsos6)
15546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15547 hardcode_direct=yes
15548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15549 hardcode_libdir_separator=:
15550 hardcode_shlibpath_var=no
15551 ;;
15552
15553 *nto* | *qnx*)
15554 ;;
15555
15556 openbsd*)
15557 if test -f /usr/libexec/ld.so; then
15558 hardcode_direct=yes
15559 hardcode_shlibpath_var=no
15560 hardcode_direct_absolute=yes
15561 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15563 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15564 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15565 export_dynamic_flag_spec='${wl}-E'
15566 else
15567 case $host_os in
15568 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15570 hardcode_libdir_flag_spec='-R$libdir'
15571 ;;
15572 *)
15573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15575 ;;
15576 esac
15577 fi
15578 else
15579 ld_shlibs=no
15580 fi
15581 ;;
15582
15583 os2*)
15584 hardcode_libdir_flag_spec='-L$libdir'
15585 hardcode_minus_L=yes
15586 allow_undefined_flag=unsupported
15587 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'
15588 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15589 ;;
15590
15591 osf3*)
15592 if test "$GCC" = yes; then
15593 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15594 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'
15595 else
15596 allow_undefined_flag=' -expect_unresolved \*'
15597 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'
15598 fi
15599 archive_cmds_need_lc='no'
15600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15601 hardcode_libdir_separator=:
15602 ;;
15603
15604 osf4* | osf5*) # as osf3* with the addition of -msym flag
15605 if test "$GCC" = yes; then
15606 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15607 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'
15608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15609 else
15610 allow_undefined_flag=' -expect_unresolved \*'
15611 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'
15612 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~
15613 $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'
15614
15615 # Both c and cxx compiler support -rpath directly
15616 hardcode_libdir_flag_spec='-rpath $libdir'
15617 fi
15618 archive_cmds_need_lc='no'
15619 hardcode_libdir_separator=:
15620 ;;
15621
15622 solaris*)
15623 no_undefined_flag=' -z defs'
15624 if test "$GCC" = yes; then
15625 wlarc='${wl}'
15626 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15627 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15628 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15629 else
15630 case `$CC -V 2>&1` in
15631 *"Compilers 5.0"*)
15632 wlarc=''
15633 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15635 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15636 ;;
15637 *)
15638 wlarc='${wl}'
15639 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15640 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15641 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15642 ;;
15643 esac
15644 fi
15645 hardcode_libdir_flag_spec='-R$libdir'
15646 hardcode_shlibpath_var=no
15647 case $host_os in
15648 solaris2.[0-5] | solaris2.[0-5].*) ;;
15649 *)
15650 # The compiler driver will combine and reorder linker options,
15651 # but understands `-z linker_flag'. GCC discards it without `$wl',
15652 # but is careful enough not to reorder.
15653 # Supported since Solaris 2.6 (maybe 2.5.1?)
15654 if test "$GCC" = yes; then
15655 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15656 else
15657 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15658 fi
15659 ;;
15660 esac
15661 link_all_deplibs=yes
15662 ;;
15663
15664 sunos4*)
15665 if test "x$host_vendor" = xsequent; then
15666 # Use $CC to link under sequent, because it throws in some extra .o
15667 # files that make .init and .fini sections work.
15668 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15669 else
15670 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15671 fi
15672 hardcode_libdir_flag_spec='-L$libdir'
15673 hardcode_direct=yes
15674 hardcode_minus_L=yes
15675 hardcode_shlibpath_var=no
15676 ;;
15677
15678 sysv4)
15679 case $host_vendor in
15680 sni)
15681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15682 hardcode_direct=yes # is this really true???
15683 ;;
15684 siemens)
15685 ## LD is ld it makes a PLAMLIB
15686 ## CC just makes a GrossModule.
15687 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15688 reload_cmds='$CC -r -o $output$reload_objs'
15689 hardcode_direct=no
15690 ;;
15691 motorola)
15692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15693 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15694 ;;
15695 esac
15696 runpath_var='LD_RUN_PATH'
15697 hardcode_shlibpath_var=no
15698 ;;
15699
15700 sysv4.3*)
15701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15702 hardcode_shlibpath_var=no
15703 export_dynamic_flag_spec='-Bexport'
15704 ;;
15705
15706 sysv4*MP*)
15707 if test -d /usr/nec; then
15708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15709 hardcode_shlibpath_var=no
15710 runpath_var=LD_RUN_PATH
15711 hardcode_runpath_var=yes
15712 ld_shlibs=yes
15713 fi
15714 ;;
15715
15716 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15717 no_undefined_flag='${wl}-z,text'
15718 archive_cmds_need_lc=no
15719 hardcode_shlibpath_var=no
15720 runpath_var='LD_RUN_PATH'
15721
15722 if test "$GCC" = yes; then
15723 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725 else
15726 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728 fi
15729 ;;
15730
15731 sysv5* | sco3.2v5* | sco5v6*)
15732 # Note: We can NOT use -z defs as we might desire, because we do not
15733 # link with -lc, and that would cause any symbols used from libc to
15734 # always be unresolved, which means just about no library would
15735 # ever link correctly. If we're not using GNU ld we use -z text
15736 # though, which does catch some bad symbols but isn't as heavy-handed
15737 # as -z defs.
15738 no_undefined_flag='${wl}-z,text'
15739 allow_undefined_flag='${wl}-z,nodefs'
15740 archive_cmds_need_lc=no
15741 hardcode_shlibpath_var=no
15742 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15743 hardcode_libdir_separator=':'
15744 link_all_deplibs=yes
15745 export_dynamic_flag_spec='${wl}-Bexport'
15746 runpath_var='LD_RUN_PATH'
15747
15748 if test "$GCC" = yes; then
15749 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15751 else
15752 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15753 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15754 fi
15755 ;;
15756
15757 uts4*)
15758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759 hardcode_libdir_flag_spec='-L$libdir'
15760 hardcode_shlibpath_var=no
15761 ;;
15762
15763 *)
15764 ld_shlibs=no
15765 ;;
15766 esac
15767
15768 if test x$host_vendor = xsni; then
15769 case $host in
15770 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15771 export_dynamic_flag_spec='${wl}-Blargedynsym'
15772 ;;
15773 esac
15774 fi
15775 fi
15776
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15778 $as_echo "$ld_shlibs" >&6; }
15779 test "$ld_shlibs" = no && can_build_shared=no
15780
15781 with_gnu_ld=$with_gnu_ld
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797 #
15798 # Do we need to explicitly link libc?
15799 #
15800 case "x$archive_cmds_need_lc" in
15801 x|xyes)
15802 # Assume -lc should be added
15803 archive_cmds_need_lc=yes
15804
15805 if test "$enable_shared" = yes && test "$GCC" = yes; then
15806 case $archive_cmds in
15807 *'~'*)
15808 # FIXME: we may have to deal with multi-command sequences.
15809 ;;
15810 '$CC '*)
15811 # Test whether the compiler implicitly links with -lc since on some
15812 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15813 # to ld, don't add -lc before -lgcc.
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15815 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15816 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15817 $as_echo_n "(cached) " >&6
15818 else
15819 $RM conftest*
15820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15821
15822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15823 (eval $ac_compile) 2>&5
15824 ac_status=$?
15825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15826 test $ac_status = 0; } 2>conftest.err; then
15827 soname=conftest
15828 lib=conftest
15829 libobjs=conftest.$ac_objext
15830 deplibs=
15831 wl=$lt_prog_compiler_wl
15832 pic_flag=$lt_prog_compiler_pic
15833 compiler_flags=-v
15834 linker_flags=-v
15835 verstring=
15836 output_objdir=.
15837 libname=conftest
15838 lt_save_allow_undefined_flag=$allow_undefined_flag
15839 allow_undefined_flag=
15840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15841 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15842 ac_status=$?
15843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15844 test $ac_status = 0; }
15845 then
15846 lt_cv_archive_cmds_need_lc=no
15847 else
15848 lt_cv_archive_cmds_need_lc=yes
15849 fi
15850 allow_undefined_flag=$lt_save_allow_undefined_flag
15851 else
15852 cat conftest.err 1>&5
15853 fi
15854 $RM conftest*
15855
15856 fi
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15858 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15859 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15860 ;;
15861 esac
15862 fi
15863 ;;
15864 esac
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16023 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16024
16025 if test "$GCC" = yes; then
16026 case $host_os in
16027 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16028 *) lt_awk_arg="/^libraries:/" ;;
16029 esac
16030 case $host_os in
16031 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16032 *) lt_sed_strip_eq="s,=/,/,g" ;;
16033 esac
16034 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16035 case $lt_search_path_spec in
16036 *\;*)
16037 # if the path contains ";" then we assume it to be the separator
16038 # otherwise default to the standard path separator (i.e. ":") - it is
16039 # assumed that no part of a normal pathname contains ";" but that should
16040 # okay in the real world where ";" in dirpaths is itself problematic.
16041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16042 ;;
16043 *)
16044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16045 ;;
16046 esac
16047 # Ok, now we have the path, separated by spaces, we can step through it
16048 # and add multilib dir if necessary.
16049 lt_tmp_lt_search_path_spec=
16050 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16051 for lt_sys_path in $lt_search_path_spec; do
16052 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16054 else
16055 test -d "$lt_sys_path" && \
16056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16057 fi
16058 done
16059 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16060 BEGIN {RS=" "; FS="/|\n";} {
16061 lt_foo="";
16062 lt_count=0;
16063 for (lt_i = NF; lt_i > 0; lt_i--) {
16064 if ($lt_i != "" && $lt_i != ".") {
16065 if ($lt_i == "..") {
16066 lt_count++;
16067 } else {
16068 if (lt_count == 0) {
16069 lt_foo="/" $lt_i lt_foo;
16070 } else {
16071 lt_count--;
16072 }
16073 }
16074 }
16075 }
16076 if (lt_foo != "") { lt_freq[lt_foo]++; }
16077 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16078 }'`
16079 # AWK program above erroneously prepends '/' to C:/dos/paths
16080 # for these hosts.
16081 case $host_os in
16082 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16083 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16084 esac
16085 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16086 else
16087 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16088 fi
16089 library_names_spec=
16090 libname_spec='lib$name'
16091 soname_spec=
16092 shrext_cmds=".so"
16093 postinstall_cmds=
16094 postuninstall_cmds=
16095 finish_cmds=
16096 finish_eval=
16097 shlibpath_var=
16098 shlibpath_overrides_runpath=unknown
16099 version_type=none
16100 dynamic_linker="$host_os ld.so"
16101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16102 need_lib_prefix=unknown
16103 hardcode_into_libs=no
16104
16105 # when you set need_version to no, make sure it does not cause -set_version
16106 # flags to be left without arguments
16107 need_version=unknown
16108
16109 case $host_os in
16110 aix3*)
16111 version_type=linux
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16113 shlibpath_var=LIBPATH
16114
16115 # AIX 3 has no versioning support, so we append a major version to the name.
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 ;;
16118
16119 aix[4-9]*)
16120 version_type=linux
16121 need_lib_prefix=no
16122 need_version=no
16123 hardcode_into_libs=yes
16124 if test "$host_cpu" = ia64; then
16125 # AIX 5 supports IA64
16126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16127 shlibpath_var=LD_LIBRARY_PATH
16128 else
16129 # With GCC up to 2.95.x, collect2 would create an import file
16130 # for dependence libraries. The import file would start with
16131 # the line `#! .'. This would cause the generated library to
16132 # depend on `.', always an invalid library. This was fixed in
16133 # development snapshots of GCC prior to 3.0.
16134 case $host_os in
16135 aix4 | aix4.[01] | aix4.[01].*)
16136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16137 echo ' yes '
16138 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16139 :
16140 else
16141 can_build_shared=no
16142 fi
16143 ;;
16144 esac
16145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16146 # soname into executable. Probably we can add versioning support to
16147 # collect2, so additional links can be useful in future.
16148 if test "$aix_use_runtimelinking" = yes; then
16149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16150 # instead of lib<name>.a to let people know that these are not
16151 # typical AIX shared libraries.
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153 else
16154 # We preserve .a as extension for shared libraries through AIX4.2
16155 # and later when we are not doing run time linking.
16156 library_names_spec='${libname}${release}.a $libname.a'
16157 soname_spec='${libname}${release}${shared_ext}$major'
16158 fi
16159 shlibpath_var=LIBPATH
16160 fi
16161 ;;
16162
16163 amigaos*)
16164 case $host_cpu in
16165 powerpc)
16166 # Since July 2007 AmigaOS4 officially supports .so libraries.
16167 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169 ;;
16170 m68k)
16171 library_names_spec='$libname.ixlibrary $libname.a'
16172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16173 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'
16174 ;;
16175 esac
16176 ;;
16177
16178 beos*)
16179 library_names_spec='${libname}${shared_ext}'
16180 dynamic_linker="$host_os ld.so"
16181 shlibpath_var=LIBRARY_PATH
16182 ;;
16183
16184 bsdi[45]*)
16185 version_type=linux
16186 need_version=no
16187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188 soname_spec='${libname}${release}${shared_ext}$major'
16189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16190 shlibpath_var=LD_LIBRARY_PATH
16191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16193 # the default ld.so.conf also contains /usr/contrib/lib and
16194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16195 # libtool to hard-code these into programs
16196 ;;
16197
16198 cygwin* | mingw* | pw32* | cegcc*)
16199 version_type=windows
16200 shrext_cmds=".dll"
16201 need_version=no
16202 need_lib_prefix=no
16203
16204 case $GCC,$host_os in
16205 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16206 library_names_spec='$libname.dll.a'
16207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16208 postinstall_cmds='base_file=`basename \${file}`~
16209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16210 dldir=$destdir/`dirname \$dlpath`~
16211 test -d \$dldir || mkdir -p \$dldir~
16212 $install_prog $dir/$dlname \$dldir/$dlname~
16213 chmod a+x \$dldir/$dlname~
16214 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16215 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16216 fi'
16217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16218 dlpath=$dir/\$dldll~
16219 $RM \$dlpath'
16220 shlibpath_overrides_runpath=yes
16221
16222 case $host_os in
16223 cygwin*)
16224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16225 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16226
16227 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16228 ;;
16229 mingw* | cegcc*)
16230 # MinGW DLLs use traditional 'lib' prefix
16231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16232 ;;
16233 pw32*)
16234 # pw32 DLLs use 'pw' prefix rather than 'lib'
16235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16236 ;;
16237 esac
16238 ;;
16239
16240 *)
16241 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16242 ;;
16243 esac
16244 dynamic_linker='Win32 ld.exe'
16245 # FIXME: first we should search . and the directory the executable is in
16246 shlibpath_var=PATH
16247 ;;
16248
16249 darwin* | rhapsody*)
16250 dynamic_linker="$host_os dyld"
16251 version_type=darwin
16252 need_lib_prefix=no
16253 need_version=no
16254 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16255 soname_spec='${libname}${release}${major}$shared_ext'
16256 shlibpath_overrides_runpath=yes
16257 shlibpath_var=DYLD_LIBRARY_PATH
16258 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16259
16260 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16262 ;;
16263
16264 dgux*)
16265 version_type=linux
16266 need_lib_prefix=no
16267 need_version=no
16268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16269 soname_spec='${libname}${release}${shared_ext}$major'
16270 shlibpath_var=LD_LIBRARY_PATH
16271 ;;
16272
16273 freebsd1*)
16274 dynamic_linker=no
16275 ;;
16276
16277 freebsd* | dragonfly*)
16278 # DragonFly does not have aout. When/if they implement a new
16279 # versioning mechanism, adjust this.
16280 if test -x /usr/bin/objformat; then
16281 objformat=`/usr/bin/objformat`
16282 else
16283 case $host_os in
16284 freebsd[123]*) objformat=aout ;;
16285 *) objformat=elf ;;
16286 esac
16287 fi
16288 version_type=freebsd-$objformat
16289 case $version_type in
16290 freebsd-elf*)
16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16292 need_version=no
16293 need_lib_prefix=no
16294 ;;
16295 freebsd-*)
16296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16297 need_version=yes
16298 ;;
16299 esac
16300 shlibpath_var=LD_LIBRARY_PATH
16301 case $host_os in
16302 freebsd2*)
16303 shlibpath_overrides_runpath=yes
16304 ;;
16305 freebsd3.[01]* | freebsdelf3.[01]*)
16306 shlibpath_overrides_runpath=yes
16307 hardcode_into_libs=yes
16308 ;;
16309 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16310 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16311 shlibpath_overrides_runpath=no
16312 hardcode_into_libs=yes
16313 ;;
16314 *) # from 4.6 on, and DragonFly
16315 shlibpath_overrides_runpath=yes
16316 hardcode_into_libs=yes
16317 ;;
16318 esac
16319 ;;
16320
16321 gnu*)
16322 version_type=linux
16323 need_lib_prefix=no
16324 need_version=no
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16326 soname_spec='${libname}${release}${shared_ext}$major'
16327 shlibpath_var=LD_LIBRARY_PATH
16328 hardcode_into_libs=yes
16329 ;;
16330
16331 haiku*)
16332 version_type=linux
16333 need_lib_prefix=no
16334 need_version=no
16335 dynamic_linker="$host_os runtime_loader"
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 shlibpath_var=LIBRARY_PATH
16339 shlibpath_overrides_runpath=yes
16340 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16341 hardcode_into_libs=yes
16342 ;;
16343
16344 hpux9* | hpux10* | hpux11*)
16345 # Give a soname corresponding to the major version so that dld.sl refuses to
16346 # link against other versions.
16347 version_type=sunos
16348 need_lib_prefix=no
16349 need_version=no
16350 case $host_cpu in
16351 ia64*)
16352 shrext_cmds='.so'
16353 hardcode_into_libs=yes
16354 dynamic_linker="$host_os dld.so"
16355 shlibpath_var=LD_LIBRARY_PATH
16356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 if test "X$HPUX_IA64_MODE" = X32; then
16360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16361 else
16362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16363 fi
16364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16365 ;;
16366 hppa*64*)
16367 shrext_cmds='.sl'
16368 hardcode_into_libs=yes
16369 dynamic_linker="$host_os dld.sl"
16370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16376 ;;
16377 *)
16378 shrext_cmds='.sl'
16379 dynamic_linker="$host_os dld.sl"
16380 shlibpath_var=SHLIB_PATH
16381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383 soname_spec='${libname}${release}${shared_ext}$major'
16384 ;;
16385 esac
16386 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16387 postinstall_cmds='chmod 555 $lib'
16388 # or fails outright, so override atomically:
16389 install_override_mode=555
16390 ;;
16391
16392 interix[3-9]*)
16393 version_type=linux
16394 need_lib_prefix=no
16395 need_version=no
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 shlibpath_overrides_runpath=no
16401 hardcode_into_libs=yes
16402 ;;
16403
16404 irix5* | irix6* | nonstopux*)
16405 case $host_os in
16406 nonstopux*) version_type=nonstopux ;;
16407 *)
16408 if test "$lt_cv_prog_gnu_ld" = yes; then
16409 version_type=linux
16410 else
16411 version_type=irix
16412 fi ;;
16413 esac
16414 need_lib_prefix=no
16415 need_version=no
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16418 case $host_os in
16419 irix5* | nonstopux*)
16420 libsuff= shlibsuff=
16421 ;;
16422 *)
16423 case $LD in # libtool.m4 will add one of these switches to LD
16424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16425 libsuff= shlibsuff= libmagic=32-bit;;
16426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16427 libsuff=32 shlibsuff=N32 libmagic=N32;;
16428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16429 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16430 *) libsuff= shlibsuff= libmagic=never-match;;
16431 esac
16432 ;;
16433 esac
16434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16435 shlibpath_overrides_runpath=no
16436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16438 hardcode_into_libs=yes
16439 ;;
16440
16441 # No shared lib support for Linux oldld, aout, or coff.
16442 linux*oldld* | linux*aout* | linux*coff*)
16443 dynamic_linker=no
16444 ;;
16445
16446 # This must be Linux ELF.
16447 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16448 version_type=linux
16449 need_lib_prefix=no
16450 need_version=no
16451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16452 soname_spec='${libname}${release}${shared_ext}$major'
16453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16454 shlibpath_var=LD_LIBRARY_PATH
16455 shlibpath_overrides_runpath=no
16456
16457 # Some binutils ld are patched to set DT_RUNPATH
16458 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16459 $as_echo_n "(cached) " >&6
16460 else
16461 lt_cv_shlibpath_overrides_runpath=no
16462 save_LDFLAGS=$LDFLAGS
16463 save_libdir=$libdir
16464 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16465 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h. */
16468
16469 int
16470 main ()
16471 {
16472
16473 ;
16474 return 0;
16475 }
16476 _ACEOF
16477 if ac_fn_c_try_link "$LINENO"; then :
16478 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16479 lt_cv_shlibpath_overrides_runpath=yes
16480 fi
16481 fi
16482 rm -f core conftest.err conftest.$ac_objext \
16483 conftest$ac_exeext conftest.$ac_ext
16484 LDFLAGS=$save_LDFLAGS
16485 libdir=$save_libdir
16486
16487 fi
16488
16489 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16490
16491 # This implies no fast_install, which is unacceptable.
16492 # Some rework will be needed to allow for fast_install
16493 # before this can be enabled.
16494 hardcode_into_libs=yes
16495
16496 # Append ld.so.conf contents to the search path
16497 if test -f /etc/ld.so.conf; then
16498 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' ' '`
16499 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16500 fi
16501
16502 # We used to test for /lib/ld.so.1 and disable shared libraries on
16503 # powerpc, because MkLinux only supported shared libraries with the
16504 # GNU dynamic linker. Since this was broken with cross compilers,
16505 # most powerpc-linux boxes support dynamic linking these days and
16506 # people can always --disable-shared, the test was removed, and we
16507 # assume the GNU/Linux dynamic linker is in use.
16508 dynamic_linker='GNU/Linux ld.so'
16509 ;;
16510
16511 netbsd*)
16512 version_type=sunos
16513 need_lib_prefix=no
16514 need_version=no
16515 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16518 dynamic_linker='NetBSD (a.out) ld.so'
16519 else
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16521 soname_spec='${libname}${release}${shared_ext}$major'
16522 dynamic_linker='NetBSD ld.elf_so'
16523 fi
16524 shlibpath_var=LD_LIBRARY_PATH
16525 shlibpath_overrides_runpath=yes
16526 hardcode_into_libs=yes
16527 ;;
16528
16529 newsos6)
16530 version_type=linux
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16532 shlibpath_var=LD_LIBRARY_PATH
16533 shlibpath_overrides_runpath=yes
16534 ;;
16535
16536 *nto* | *qnx*)
16537 version_type=qnx
16538 need_lib_prefix=no
16539 need_version=no
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16541 soname_spec='${libname}${release}${shared_ext}$major'
16542 shlibpath_var=LD_LIBRARY_PATH
16543 shlibpath_overrides_runpath=no
16544 hardcode_into_libs=yes
16545 dynamic_linker='ldqnx.so'
16546 ;;
16547
16548 openbsd*)
16549 version_type=sunos
16550 sys_lib_dlsearch_path_spec="/usr/lib"
16551 need_lib_prefix=no
16552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16553 case $host_os in
16554 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16555 *) need_version=no ;;
16556 esac
16557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16559 shlibpath_var=LD_LIBRARY_PATH
16560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16561 case $host_os in
16562 openbsd2.[89] | openbsd2.[89].*)
16563 shlibpath_overrides_runpath=no
16564 ;;
16565 *)
16566 shlibpath_overrides_runpath=yes
16567 ;;
16568 esac
16569 else
16570 shlibpath_overrides_runpath=yes
16571 fi
16572 ;;
16573
16574 os2*)
16575 libname_spec='$name'
16576 shrext_cmds=".dll"
16577 need_lib_prefix=no
16578 library_names_spec='$libname${shared_ext} $libname.a'
16579 dynamic_linker='OS/2 ld.exe'
16580 shlibpath_var=LIBPATH
16581 ;;
16582
16583 osf3* | osf4* | osf5*)
16584 version_type=osf
16585 need_lib_prefix=no
16586 need_version=no
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16592 ;;
16593
16594 rdos*)
16595 dynamic_linker=no
16596 ;;
16597
16598 solaris*)
16599 version_type=linux
16600 need_lib_prefix=no
16601 need_version=no
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 soname_spec='${libname}${release}${shared_ext}$major'
16604 shlibpath_var=LD_LIBRARY_PATH
16605 shlibpath_overrides_runpath=yes
16606 hardcode_into_libs=yes
16607 # ldd complains unless libraries are executable
16608 postinstall_cmds='chmod +x $lib'
16609 ;;
16610
16611 sunos4*)
16612 version_type=sunos
16613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16614 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16615 shlibpath_var=LD_LIBRARY_PATH
16616 shlibpath_overrides_runpath=yes
16617 if test "$with_gnu_ld" = yes; then
16618 need_lib_prefix=no
16619 fi
16620 need_version=yes
16621 ;;
16622
16623 sysv4 | sysv4.3*)
16624 version_type=linux
16625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626 soname_spec='${libname}${release}${shared_ext}$major'
16627 shlibpath_var=LD_LIBRARY_PATH
16628 case $host_vendor in
16629 sni)
16630 shlibpath_overrides_runpath=no
16631 need_lib_prefix=no
16632 runpath_var=LD_RUN_PATH
16633 ;;
16634 siemens)
16635 need_lib_prefix=no
16636 ;;
16637 motorola)
16638 need_lib_prefix=no
16639 need_version=no
16640 shlibpath_overrides_runpath=no
16641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16642 ;;
16643 esac
16644 ;;
16645
16646 sysv4*MP*)
16647 if test -d /usr/nec ;then
16648 version_type=linux
16649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16650 soname_spec='$libname${shared_ext}.$major'
16651 shlibpath_var=LD_LIBRARY_PATH
16652 fi
16653 ;;
16654
16655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16656 version_type=freebsd-elf
16657 need_lib_prefix=no
16658 need_version=no
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16660 soname_spec='${libname}${release}${shared_ext}$major'
16661 shlibpath_var=LD_LIBRARY_PATH
16662 shlibpath_overrides_runpath=yes
16663 hardcode_into_libs=yes
16664 if test "$with_gnu_ld" = yes; then
16665 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16666 else
16667 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16668 case $host_os in
16669 sco3.2v5*)
16670 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16671 ;;
16672 esac
16673 fi
16674 sys_lib_dlsearch_path_spec='/usr/lib'
16675 ;;
16676
16677 tpf*)
16678 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16679 version_type=linux
16680 need_lib_prefix=no
16681 need_version=no
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16683 shlibpath_var=LD_LIBRARY_PATH
16684 shlibpath_overrides_runpath=no
16685 hardcode_into_libs=yes
16686 ;;
16687
16688 uts4*)
16689 version_type=linux
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 ;;
16694
16695 *)
16696 dynamic_linker=no
16697 ;;
16698 esac
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16700 $as_echo "$dynamic_linker" >&6; }
16701 test "$dynamic_linker" = no && can_build_shared=no
16702
16703 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16704 if test "$GCC" = yes; then
16705 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16706 fi
16707
16708 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16709 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16710 fi
16711 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16712 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16713 fi
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16807 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16808 hardcode_action=
16809 if test -n "$hardcode_libdir_flag_spec" ||
16810 test -n "$runpath_var" ||
16811 test "X$hardcode_automatic" = "Xyes" ; then
16812
16813 # We can hardcode non-existent directories.
16814 if test "$hardcode_direct" != no &&
16815 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16816 # have to relink, otherwise we might link with an installed library
16817 # when we should be linking with a yet-to-be-installed one
16818 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16819 test "$hardcode_minus_L" != no; then
16820 # Linking always hardcodes the temporary library directory.
16821 hardcode_action=relink
16822 else
16823 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16824 hardcode_action=immediate
16825 fi
16826 else
16827 # We cannot hardcode anything, or else we can only hardcode existing
16828 # directories.
16829 hardcode_action=unsupported
16830 fi
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16832 $as_echo "$hardcode_action" >&6; }
16833
16834 if test "$hardcode_action" = relink ||
16835 test "$inherit_rpath" = yes; then
16836 # Fast installation is not supported
16837 enable_fast_install=no
16838 elif test "$shlibpath_overrides_runpath" = yes ||
16839 test "$enable_shared" = no; then
16840 # Fast installation is not necessary
16841 enable_fast_install=needless
16842 fi
16843
16844
16845
16846
16847
16848
16849 if test "x$enable_dlopen" != xyes; then
16850 enable_dlopen=unknown
16851 enable_dlopen_self=unknown
16852 enable_dlopen_self_static=unknown
16853 else
16854 lt_cv_dlopen=no
16855 lt_cv_dlopen_libs=
16856
16857 case $host_os in
16858 beos*)
16859 lt_cv_dlopen="load_add_on"
16860 lt_cv_dlopen_libs=
16861 lt_cv_dlopen_self=yes
16862 ;;
16863
16864 mingw* | pw32* | cegcc*)
16865 lt_cv_dlopen="LoadLibrary"
16866 lt_cv_dlopen_libs=
16867 ;;
16868
16869 cygwin*)
16870 lt_cv_dlopen="dlopen"
16871 lt_cv_dlopen_libs=
16872 ;;
16873
16874 darwin*)
16875 # if libdl is installed we need to link against it
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16877 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16878 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16879 $as_echo_n "(cached) " >&6
16880 else
16881 ac_check_lib_save_LIBS=$LIBS
16882 LIBS="-ldl $LIBS"
16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884 /* end confdefs.h. */
16885
16886 /* Override any GCC internal prototype to avoid an error.
16887 Use char because int might match the return type of a GCC
16888 builtin and then its argument prototype would still apply. */
16889 #ifdef __cplusplus
16890 extern "C"
16891 #endif
16892 char dlopen ();
16893 int
16894 main ()
16895 {
16896 return dlopen ();
16897 ;
16898 return 0;
16899 }
16900 _ACEOF
16901 if ac_fn_c_try_link "$LINENO"; then :
16902 ac_cv_lib_dl_dlopen=yes
16903 else
16904 ac_cv_lib_dl_dlopen=no
16905 fi
16906 rm -f core conftest.err conftest.$ac_objext \
16907 conftest$ac_exeext conftest.$ac_ext
16908 LIBS=$ac_check_lib_save_LIBS
16909 fi
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16911 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16912 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16914 else
16915
16916 lt_cv_dlopen="dyld"
16917 lt_cv_dlopen_libs=
16918 lt_cv_dlopen_self=yes
16919
16920 fi
16921
16922 ;;
16923
16924 *)
16925 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16926 if test "x$ac_cv_func_shl_load" = x""yes; then :
16927 lt_cv_dlopen="shl_load"
16928 else
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16930 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16931 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16932 $as_echo_n "(cached) " >&6
16933 else
16934 ac_check_lib_save_LIBS=$LIBS
16935 LIBS="-ldld $LIBS"
16936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937 /* end confdefs.h. */
16938
16939 /* Override any GCC internal prototype to avoid an error.
16940 Use char because int might match the return type of a GCC
16941 builtin and then its argument prototype would still apply. */
16942 #ifdef __cplusplus
16943 extern "C"
16944 #endif
16945 char shl_load ();
16946 int
16947 main ()
16948 {
16949 return shl_load ();
16950 ;
16951 return 0;
16952 }
16953 _ACEOF
16954 if ac_fn_c_try_link "$LINENO"; then :
16955 ac_cv_lib_dld_shl_load=yes
16956 else
16957 ac_cv_lib_dld_shl_load=no
16958 fi
16959 rm -f core conftest.err conftest.$ac_objext \
16960 conftest$ac_exeext conftest.$ac_ext
16961 LIBS=$ac_check_lib_save_LIBS
16962 fi
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16964 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16965 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16966 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16967 else
16968 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16969 if test "x$ac_cv_func_dlopen" = x""yes; then :
16970 lt_cv_dlopen="dlopen"
16971 else
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16973 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16974 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16975 $as_echo_n "(cached) " >&6
16976 else
16977 ac_check_lib_save_LIBS=$LIBS
16978 LIBS="-ldl $LIBS"
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16981
16982 /* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply. */
16985 #ifdef __cplusplus
16986 extern "C"
16987 #endif
16988 char dlopen ();
16989 int
16990 main ()
16991 {
16992 return dlopen ();
16993 ;
16994 return 0;
16995 }
16996 _ACEOF
16997 if ac_fn_c_try_link "$LINENO"; then :
16998 ac_cv_lib_dl_dlopen=yes
16999 else
17000 ac_cv_lib_dl_dlopen=no
17001 fi
17002 rm -f core conftest.err conftest.$ac_objext \
17003 conftest$ac_exeext conftest.$ac_ext
17004 LIBS=$ac_check_lib_save_LIBS
17005 fi
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17007 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17008 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17010 else
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17012 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17013 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17014 $as_echo_n "(cached) " >&6
17015 else
17016 ac_check_lib_save_LIBS=$LIBS
17017 LIBS="-lsvld $LIBS"
17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019 /* end confdefs.h. */
17020
17021 /* Override any GCC internal prototype to avoid an error.
17022 Use char because int might match the return type of a GCC
17023 builtin and then its argument prototype would still apply. */
17024 #ifdef __cplusplus
17025 extern "C"
17026 #endif
17027 char dlopen ();
17028 int
17029 main ()
17030 {
17031 return dlopen ();
17032 ;
17033 return 0;
17034 }
17035 _ACEOF
17036 if ac_fn_c_try_link "$LINENO"; then :
17037 ac_cv_lib_svld_dlopen=yes
17038 else
17039 ac_cv_lib_svld_dlopen=no
17040 fi
17041 rm -f core conftest.err conftest.$ac_objext \
17042 conftest$ac_exeext conftest.$ac_ext
17043 LIBS=$ac_check_lib_save_LIBS
17044 fi
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17046 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17047 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17049 else
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17051 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17052 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17053 $as_echo_n "(cached) " >&6
17054 else
17055 ac_check_lib_save_LIBS=$LIBS
17056 LIBS="-ldld $LIBS"
17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17059
17060 /* Override any GCC internal prototype to avoid an error.
17061 Use char because int might match the return type of a GCC
17062 builtin and then its argument prototype would still apply. */
17063 #ifdef __cplusplus
17064 extern "C"
17065 #endif
17066 char dld_link ();
17067 int
17068 main ()
17069 {
17070 return dld_link ();
17071 ;
17072 return 0;
17073 }
17074 _ACEOF
17075 if ac_fn_c_try_link "$LINENO"; then :
17076 ac_cv_lib_dld_dld_link=yes
17077 else
17078 ac_cv_lib_dld_dld_link=no
17079 fi
17080 rm -f core conftest.err conftest.$ac_objext \
17081 conftest$ac_exeext conftest.$ac_ext
17082 LIBS=$ac_check_lib_save_LIBS
17083 fi
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17085 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17086 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17087 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17088 fi
17089
17090
17091 fi
17092
17093
17094 fi
17095
17096
17097 fi
17098
17099
17100 fi
17101
17102
17103 fi
17104
17105 ;;
17106 esac
17107
17108 if test "x$lt_cv_dlopen" != xno; then
17109 enable_dlopen=yes
17110 else
17111 enable_dlopen=no
17112 fi
17113
17114 case $lt_cv_dlopen in
17115 dlopen)
17116 save_CPPFLAGS="$CPPFLAGS"
17117 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17118
17119 save_LDFLAGS="$LDFLAGS"
17120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17121
17122 save_LIBS="$LIBS"
17123 LIBS="$lt_cv_dlopen_libs $LIBS"
17124
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17126 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17127 if test "${lt_cv_dlopen_self+set}" = set; then :
17128 $as_echo_n "(cached) " >&6
17129 else
17130 if test "$cross_compiling" = yes; then :
17131 lt_cv_dlopen_self=cross
17132 else
17133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17134 lt_status=$lt_dlunknown
17135 cat > conftest.$ac_ext <<_LT_EOF
17136 #line 17136 "configure"
17137 #include "confdefs.h"
17138
17139 #if HAVE_DLFCN_H
17140 #include <dlfcn.h>
17141 #endif
17142
17143 #include <stdio.h>
17144
17145 #ifdef RTLD_GLOBAL
17146 # define LT_DLGLOBAL RTLD_GLOBAL
17147 #else
17148 # ifdef DL_GLOBAL
17149 # define LT_DLGLOBAL DL_GLOBAL
17150 # else
17151 # define LT_DLGLOBAL 0
17152 # endif
17153 #endif
17154
17155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17156 find out it does not work in some platform. */
17157 #ifndef LT_DLLAZY_OR_NOW
17158 # ifdef RTLD_LAZY
17159 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17160 # else
17161 # ifdef DL_LAZY
17162 # define LT_DLLAZY_OR_NOW DL_LAZY
17163 # else
17164 # ifdef RTLD_NOW
17165 # define LT_DLLAZY_OR_NOW RTLD_NOW
17166 # else
17167 # ifdef DL_NOW
17168 # define LT_DLLAZY_OR_NOW DL_NOW
17169 # else
17170 # define LT_DLLAZY_OR_NOW 0
17171 # endif
17172 # endif
17173 # endif
17174 # endif
17175 #endif
17176
17177 /* When -fvisbility=hidden is used, assume the code has been annotated
17178 correspondingly for the symbols needed. */
17179 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17180 void fnord () __attribute__((visibility("default")));
17181 #endif
17182
17183 void fnord () { int i=42; }
17184 int main ()
17185 {
17186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17187 int status = $lt_dlunknown;
17188
17189 if (self)
17190 {
17191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17192 else
17193 {
17194 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17195 else puts (dlerror ());
17196 }
17197 /* dlclose (self); */
17198 }
17199 else
17200 puts (dlerror ());
17201
17202 return status;
17203 }
17204 _LT_EOF
17205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17206 (eval $ac_link) 2>&5
17207 ac_status=$?
17208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17209 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17210 (./conftest; exit; ) >&5 2>/dev/null
17211 lt_status=$?
17212 case x$lt_status in
17213 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17214 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17215 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17216 esac
17217 else :
17218 # compilation failed
17219 lt_cv_dlopen_self=no
17220 fi
17221 fi
17222 rm -fr conftest*
17223
17224
17225 fi
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17227 $as_echo "$lt_cv_dlopen_self" >&6; }
17228
17229 if test "x$lt_cv_dlopen_self" = xyes; then
17230 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17232 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17233 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17234 $as_echo_n "(cached) " >&6
17235 else
17236 if test "$cross_compiling" = yes; then :
17237 lt_cv_dlopen_self_static=cross
17238 else
17239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17240 lt_status=$lt_dlunknown
17241 cat > conftest.$ac_ext <<_LT_EOF
17242 #line 17242 "configure"
17243 #include "confdefs.h"
17244
17245 #if HAVE_DLFCN_H
17246 #include <dlfcn.h>
17247 #endif
17248
17249 #include <stdio.h>
17250
17251 #ifdef RTLD_GLOBAL
17252 # define LT_DLGLOBAL RTLD_GLOBAL
17253 #else
17254 # ifdef DL_GLOBAL
17255 # define LT_DLGLOBAL DL_GLOBAL
17256 # else
17257 # define LT_DLGLOBAL 0
17258 # endif
17259 #endif
17260
17261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17262 find out it does not work in some platform. */
17263 #ifndef LT_DLLAZY_OR_NOW
17264 # ifdef RTLD_LAZY
17265 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17266 # else
17267 # ifdef DL_LAZY
17268 # define LT_DLLAZY_OR_NOW DL_LAZY
17269 # else
17270 # ifdef RTLD_NOW
17271 # define LT_DLLAZY_OR_NOW RTLD_NOW
17272 # else
17273 # ifdef DL_NOW
17274 # define LT_DLLAZY_OR_NOW DL_NOW
17275 # else
17276 # define LT_DLLAZY_OR_NOW 0
17277 # endif
17278 # endif
17279 # endif
17280 # endif
17281 #endif
17282
17283 /* When -fvisbility=hidden is used, assume the code has been annotated
17284 correspondingly for the symbols needed. */
17285 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17286 void fnord () __attribute__((visibility("default")));
17287 #endif
17288
17289 void fnord () { int i=42; }
17290 int main ()
17291 {
17292 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17293 int status = $lt_dlunknown;
17294
17295 if (self)
17296 {
17297 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17298 else
17299 {
17300 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17301 else puts (dlerror ());
17302 }
17303 /* dlclose (self); */
17304 }
17305 else
17306 puts (dlerror ());
17307
17308 return status;
17309 }
17310 _LT_EOF
17311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17312 (eval $ac_link) 2>&5
17313 ac_status=$?
17314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17315 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17316 (./conftest; exit; ) >&5 2>/dev/null
17317 lt_status=$?
17318 case x$lt_status in
17319 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17320 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17321 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17322 esac
17323 else :
17324 # compilation failed
17325 lt_cv_dlopen_self_static=no
17326 fi
17327 fi
17328 rm -fr conftest*
17329
17330
17331 fi
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17333 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17334 fi
17335
17336 CPPFLAGS="$save_CPPFLAGS"
17337 LDFLAGS="$save_LDFLAGS"
17338 LIBS="$save_LIBS"
17339 ;;
17340 esac
17341
17342 case $lt_cv_dlopen_self in
17343 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17344 *) enable_dlopen_self=unknown ;;
17345 esac
17346
17347 case $lt_cv_dlopen_self_static in
17348 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17349 *) enable_dlopen_self_static=unknown ;;
17350 esac
17351 fi
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369 striplib=
17370 old_striplib=
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17372 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17373 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17374 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17375 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17377 $as_echo "yes" >&6; }
17378 else
17379 # FIXME - insert some real tests, host_os isn't really good enough
17380 case $host_os in
17381 darwin*)
17382 if test -n "$STRIP" ; then
17383 striplib="$STRIP -x"
17384 old_striplib="$STRIP -S"
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17386 $as_echo "yes" >&6; }
17387 else
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17389 $as_echo "no" >&6; }
17390 fi
17391 ;;
17392 *)
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17394 $as_echo "no" >&6; }
17395 ;;
17396 esac
17397 fi
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410 # Report which library types will actually be built
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17412 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17414 $as_echo "$can_build_shared" >&6; }
17415
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17417 $as_echo_n "checking whether to build shared libraries... " >&6; }
17418 test "$can_build_shared" = "no" && enable_shared=no
17419
17420 # On AIX, shared libraries and static libraries use the same namespace, and
17421 # are all built from PIC.
17422 case $host_os in
17423 aix3*)
17424 test "$enable_shared" = yes && enable_static=no
17425 if test -n "$RANLIB"; then
17426 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17427 postinstall_cmds='$RANLIB $lib'
17428 fi
17429 ;;
17430
17431 aix[4-9]*)
17432 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17433 test "$enable_shared" = yes && enable_static=no
17434 fi
17435 ;;
17436 esac
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17438 $as_echo "$enable_shared" >&6; }
17439
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17441 $as_echo_n "checking whether to build static libraries... " >&6; }
17442 # Make sure either enable_shared or enable_static is yes.
17443 test "$enable_shared" = yes || enable_static=yes
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17445 $as_echo "$enable_static" >&6; }
17446
17447
17448
17449
17450 fi
17451 ac_ext=c
17452 ac_cpp='$CPP $CPPFLAGS'
17453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17456
17457 CC="$lt_save_CC"
17458
17459 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17460 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17461 (test "X$CXX" != "Xg++"))) ; then
17462 ac_ext=cpp
17463 ac_cpp='$CXXCPP $CPPFLAGS'
17464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17468 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17469 if test -z "$CXXCPP"; then
17470 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17471 $as_echo_n "(cached) " >&6
17472 else
17473 # Double quotes because CXXCPP needs to be expanded
17474 for CXXCPP in "$CXX -E" "/lib/cpp"
17475 do
17476 ac_preproc_ok=false
17477 for ac_cxx_preproc_warn_flag in '' yes
17478 do
17479 # Use a header file that comes with gcc, so configuring glibc
17480 # with a fresh cross-compiler works.
17481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17482 # <limits.h> exists even on freestanding compilers.
17483 # On the NeXT, cc -E runs the code through the compiler's parser,
17484 # not just through cpp. "Syntax error" is here to catch this case.
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17487 #ifdef __STDC__
17488 # include <limits.h>
17489 #else
17490 # include <assert.h>
17491 #endif
17492 Syntax error
17493 _ACEOF
17494 if ac_fn_cxx_try_cpp "$LINENO"; then :
17495
17496 else
17497 # Broken: fails on valid input.
17498 continue
17499 fi
17500 rm -f conftest.err conftest.$ac_ext
17501
17502 # OK, works on sane cases. Now check whether nonexistent headers
17503 # can be detected and how.
17504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h. */
17506 #include <ac_nonexistent.h>
17507 _ACEOF
17508 if ac_fn_cxx_try_cpp "$LINENO"; then :
17509 # Broken: success on invalid input.
17510 continue
17511 else
17512 # Passes both tests.
17513 ac_preproc_ok=:
17514 break
17515 fi
17516 rm -f conftest.err conftest.$ac_ext
17517
17518 done
17519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17520 rm -f conftest.err conftest.$ac_ext
17521 if $ac_preproc_ok; then :
17522 break
17523 fi
17524
17525 done
17526 ac_cv_prog_CXXCPP=$CXXCPP
17527
17528 fi
17529 CXXCPP=$ac_cv_prog_CXXCPP
17530 else
17531 ac_cv_prog_CXXCPP=$CXXCPP
17532 fi
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17534 $as_echo "$CXXCPP" >&6; }
17535 ac_preproc_ok=false
17536 for ac_cxx_preproc_warn_flag in '' yes
17537 do
17538 # Use a header file that comes with gcc, so configuring glibc
17539 # with a fresh cross-compiler works.
17540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17541 # <limits.h> exists even on freestanding compilers.
17542 # On the NeXT, cc -E runs the code through the compiler's parser,
17543 # not just through cpp. "Syntax error" is here to catch this case.
17544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17546 #ifdef __STDC__
17547 # include <limits.h>
17548 #else
17549 # include <assert.h>
17550 #endif
17551 Syntax error
17552 _ACEOF
17553 if ac_fn_cxx_try_cpp "$LINENO"; then :
17554
17555 else
17556 # Broken: fails on valid input.
17557 continue
17558 fi
17559 rm -f conftest.err conftest.$ac_ext
17560
17561 # OK, works on sane cases. Now check whether nonexistent headers
17562 # can be detected and how.
17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564 /* end confdefs.h. */
17565 #include <ac_nonexistent.h>
17566 _ACEOF
17567 if ac_fn_cxx_try_cpp "$LINENO"; then :
17568 # Broken: success on invalid input.
17569 continue
17570 else
17571 # Passes both tests.
17572 ac_preproc_ok=:
17573 break
17574 fi
17575 rm -f conftest.err conftest.$ac_ext
17576
17577 done
17578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17579 rm -f conftest.err conftest.$ac_ext
17580 if $ac_preproc_ok; then :
17581
17582 else
17583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17585 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17586 See \`config.log' for more details." "$LINENO" 5; }
17587 fi
17588
17589 ac_ext=c
17590 ac_cpp='$CPP $CPPFLAGS'
17591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17594
17595 else
17596 _lt_caught_CXX_error=yes
17597 fi
17598
17599 ac_ext=cpp
17600 ac_cpp='$CXXCPP $CPPFLAGS'
17601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17604
17605 archive_cmds_need_lc_CXX=no
17606 allow_undefined_flag_CXX=
17607 always_export_symbols_CXX=no
17608 archive_expsym_cmds_CXX=
17609 compiler_needs_object_CXX=no
17610 export_dynamic_flag_spec_CXX=
17611 hardcode_direct_CXX=no
17612 hardcode_direct_absolute_CXX=no
17613 hardcode_libdir_flag_spec_CXX=
17614 hardcode_libdir_flag_spec_ld_CXX=
17615 hardcode_libdir_separator_CXX=
17616 hardcode_minus_L_CXX=no
17617 hardcode_shlibpath_var_CXX=unsupported
17618 hardcode_automatic_CXX=no
17619 inherit_rpath_CXX=no
17620 module_cmds_CXX=
17621 module_expsym_cmds_CXX=
17622 link_all_deplibs_CXX=unknown
17623 old_archive_cmds_CXX=$old_archive_cmds
17624 reload_flag_CXX=$reload_flag
17625 reload_cmds_CXX=$reload_cmds
17626 no_undefined_flag_CXX=
17627 whole_archive_flag_spec_CXX=
17628 enable_shared_with_static_runtimes_CXX=no
17629
17630 # Source file extension for C++ test sources.
17631 ac_ext=cpp
17632
17633 # Object file extension for compiled C++ test sources.
17634 objext=o
17635 objext_CXX=$objext
17636
17637 # No sense in running all these tests if we already determined that
17638 # the CXX compiler isn't working. Some variables (like enable_shared)
17639 # are currently assumed to apply to all compilers on this platform,
17640 # and will be corrupted by setting them based on a non-working compiler.
17641 if test "$_lt_caught_CXX_error" != yes; then
17642 # Code to be used in simple compile tests
17643 lt_simple_compile_test_code="int some_variable = 0;"
17644
17645 # Code to be used in simple link tests
17646 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17647
17648 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17649
17650
17651
17652
17653
17654
17655 # If no C compiler was specified, use CC.
17656 LTCC=${LTCC-"$CC"}
17657
17658 # If no C compiler flags were specified, use CFLAGS.
17659 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17660
17661 # Allow CC to be a program name with arguments.
17662 compiler=$CC
17663
17664
17665 # save warnings/boilerplate of simple test code
17666 ac_outfile=conftest.$ac_objext
17667 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17668 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17669 _lt_compiler_boilerplate=`cat conftest.err`
17670 $RM conftest*
17671
17672 ac_outfile=conftest.$ac_objext
17673 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17674 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17675 _lt_linker_boilerplate=`cat conftest.err`
17676 $RM -r conftest*
17677
17678
17679 # Allow CC to be a program name with arguments.
17680 lt_save_CC=$CC
17681 lt_save_LD=$LD
17682 lt_save_GCC=$GCC
17683 GCC=$GXX
17684 lt_save_with_gnu_ld=$with_gnu_ld
17685 lt_save_path_LD=$lt_cv_path_LD
17686 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17687 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17688 else
17689 $as_unset lt_cv_prog_gnu_ld
17690 fi
17691 if test -n "${lt_cv_path_LDCXX+set}"; then
17692 lt_cv_path_LD=$lt_cv_path_LDCXX
17693 else
17694 $as_unset lt_cv_path_LD
17695 fi
17696 test -z "${LDCXX+set}" || LD=$LDCXX
17697 CC=${CXX-"c++"}
17698 compiler=$CC
17699 compiler_CXX=$CC
17700 for cc_temp in $compiler""; do
17701 case $cc_temp in
17702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17704 \-*) ;;
17705 *) break;;
17706 esac
17707 done
17708 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17709
17710
17711 if test -n "$compiler"; then
17712 # We don't want -fno-exception when compiling C++ code, so set the
17713 # no_builtin_flag separately
17714 if test "$GXX" = yes; then
17715 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17716 else
17717 lt_prog_compiler_no_builtin_flag_CXX=
17718 fi
17719
17720 if test "$GXX" = yes; then
17721 # Set up default GNU C++ configuration
17722
17723
17724
17725 # Check whether --with-gnu-ld was given.
17726 if test "${with_gnu_ld+set}" = set; then :
17727 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17728 else
17729 with_gnu_ld=no
17730 fi
17731
17732 ac_prog=ld
17733 if test "$GCC" = yes; then
17734 # Check if gcc -print-prog-name=ld gives a path.
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17736 $as_echo_n "checking for ld used by $CC... " >&6; }
17737 case $host in
17738 *-*-mingw*)
17739 # gcc leaves a trailing carriage return which upsets mingw
17740 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17741 *)
17742 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17743 esac
17744 case $ac_prog in
17745 # Accept absolute paths.
17746 [\\/]* | ?:[\\/]*)
17747 re_direlt='/[^/][^/]*/\.\./'
17748 # Canonicalize the pathname of ld
17749 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17750 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17751 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17752 done
17753 test -z "$LD" && LD="$ac_prog"
17754 ;;
17755 "")
17756 # If it fails, then pretend we aren't using GCC.
17757 ac_prog=ld
17758 ;;
17759 *)
17760 # If it is relative, then search for the first ld in PATH.
17761 with_gnu_ld=unknown
17762 ;;
17763 esac
17764 elif test "$with_gnu_ld" = yes; then
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17766 $as_echo_n "checking for GNU ld... " >&6; }
17767 else
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17769 $as_echo_n "checking for non-GNU ld... " >&6; }
17770 fi
17771 if test "${lt_cv_path_LD+set}" = set; then :
17772 $as_echo_n "(cached) " >&6
17773 else
17774 if test -z "$LD"; then
17775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17776 for ac_dir in $PATH; do
17777 IFS="$lt_save_ifs"
17778 test -z "$ac_dir" && ac_dir=.
17779 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17780 lt_cv_path_LD="$ac_dir/$ac_prog"
17781 # Check to see if the program is GNU ld. I'd rather use --version,
17782 # but apparently some variants of GNU ld only accept -v.
17783 # Break only if it was the GNU/non-GNU ld that we prefer.
17784 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17785 *GNU* | *'with BFD'*)
17786 test "$with_gnu_ld" != no && break
17787 ;;
17788 *)
17789 test "$with_gnu_ld" != yes && break
17790 ;;
17791 esac
17792 fi
17793 done
17794 IFS="$lt_save_ifs"
17795 else
17796 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17797 fi
17798 fi
17799
17800 LD="$lt_cv_path_LD"
17801 if test -n "$LD"; then
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17803 $as_echo "$LD" >&6; }
17804 else
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17806 $as_echo "no" >&6; }
17807 fi
17808 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17810 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17811 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17812 $as_echo_n "(cached) " >&6
17813 else
17814 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17815 case `$LD -v 2>&1 </dev/null` in
17816 *GNU* | *'with BFD'*)
17817 lt_cv_prog_gnu_ld=yes
17818 ;;
17819 *)
17820 lt_cv_prog_gnu_ld=no
17821 ;;
17822 esac
17823 fi
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17825 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17826 with_gnu_ld=$lt_cv_prog_gnu_ld
17827
17828
17829
17830
17831
17832
17833
17834 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17835 # archiving commands below assume that GNU ld is being used.
17836 if test "$with_gnu_ld" = yes; then
17837 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17838 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'
17839
17840 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17841 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17842
17843 # If archive_cmds runs LD, not CC, wlarc should be empty
17844 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17845 # investigate it a little bit more. (MM)
17846 wlarc='${wl}'
17847
17848 # ancient GNU ld didn't support --whole-archive et. al.
17849 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17850 $GREP 'no-whole-archive' > /dev/null; then
17851 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17852 else
17853 whole_archive_flag_spec_CXX=
17854 fi
17855 else
17856 with_gnu_ld=no
17857 wlarc=
17858
17859 # A generic and very simple default shared library creation
17860 # command for GNU C++ for the case where it uses the native
17861 # linker, instead of GNU ld. If possible, this setting should
17862 # overridden to take advantage of the native linker features on
17863 # the platform it is being used on.
17864 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17865 fi
17866
17867 # Commands to make compiler produce verbose output that lists
17868 # what "hidden" libraries, object files and flags are used when
17869 # linking a shared library.
17870 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17871
17872 else
17873 GXX=no
17874 with_gnu_ld=no
17875 wlarc=
17876 fi
17877
17878 # PORTME: fill in a description of your system's C++ link characteristics
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17880 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17881 ld_shlibs_CXX=yes
17882 case $host_os in
17883 aix3*)
17884 # FIXME: insert proper C++ library support
17885 ld_shlibs_CXX=no
17886 ;;
17887 aix[4-9]*)
17888 if test "$host_cpu" = ia64; then
17889 # On IA64, the linker does run time linking by default, so we don't
17890 # have to do anything special.
17891 aix_use_runtimelinking=no
17892 exp_sym_flag='-Bexport'
17893 no_entry_flag=""
17894 else
17895 aix_use_runtimelinking=no
17896
17897 # Test if we are trying to use run time linking or normal
17898 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17899 # need to do runtime linking.
17900 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17901 for ld_flag in $LDFLAGS; do
17902 case $ld_flag in
17903 *-brtl*)
17904 aix_use_runtimelinking=yes
17905 break
17906 ;;
17907 esac
17908 done
17909 ;;
17910 esac
17911
17912 exp_sym_flag='-bexport'
17913 no_entry_flag='-bnoentry'
17914 fi
17915
17916 # When large executables or shared objects are built, AIX ld can
17917 # have problems creating the table of contents. If linking a library
17918 # or program results in "error TOC overflow" add -mminimal-toc to
17919 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17920 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17921
17922 archive_cmds_CXX=''
17923 hardcode_direct_CXX=yes
17924 hardcode_direct_absolute_CXX=yes
17925 hardcode_libdir_separator_CXX=':'
17926 link_all_deplibs_CXX=yes
17927 file_list_spec_CXX='${wl}-f,'
17928
17929 if test "$GXX" = yes; then
17930 case $host_os in aix4.[012]|aix4.[012].*)
17931 # We only want to do this on AIX 4.2 and lower, the check
17932 # below for broken collect2 doesn't work under 4.3+
17933 collect2name=`${CC} -print-prog-name=collect2`
17934 if test -f "$collect2name" &&
17935 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17936 then
17937 # We have reworked collect2
17938 :
17939 else
17940 # We have old collect2
17941 hardcode_direct_CXX=unsupported
17942 # It fails to find uninstalled libraries when the uninstalled
17943 # path is not listed in the libpath. Setting hardcode_minus_L
17944 # to unsupported forces relinking
17945 hardcode_minus_L_CXX=yes
17946 hardcode_libdir_flag_spec_CXX='-L$libdir'
17947 hardcode_libdir_separator_CXX=
17948 fi
17949 esac
17950 shared_flag='-shared'
17951 if test "$aix_use_runtimelinking" = yes; then
17952 shared_flag="$shared_flag "'${wl}-G'
17953 fi
17954 else
17955 # not using gcc
17956 if test "$host_cpu" = ia64; then
17957 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17958 # chokes on -Wl,-G. The following line is correct:
17959 shared_flag='-G'
17960 else
17961 if test "$aix_use_runtimelinking" = yes; then
17962 shared_flag='${wl}-G'
17963 else
17964 shared_flag='${wl}-bM:SRE'
17965 fi
17966 fi
17967 fi
17968
17969 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17970 # It seems that -bexpall does not export symbols beginning with
17971 # underscore (_), so it is better to generate a list of symbols to
17972 # export.
17973 always_export_symbols_CXX=yes
17974 if test "$aix_use_runtimelinking" = yes; then
17975 # Warning - without using the other runtime loading flags (-brtl),
17976 # -berok will link without error, but may produce a broken library.
17977 allow_undefined_flag_CXX='-berok'
17978 # Determine the default libpath from the value encoded in an empty
17979 # executable.
17980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17981 /* end confdefs.h. */
17982
17983 int
17984 main ()
17985 {
17986
17987 ;
17988 return 0;
17989 }
17990 _ACEOF
17991 if ac_fn_cxx_try_link "$LINENO"; then :
17992
17993 lt_aix_libpath_sed='
17994 /Import File Strings/,/^$/ {
17995 /^0/ {
17996 s/^0 *\(.*\)$/\1/
17997 p
17998 }
17999 }'
18000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18001 # Check for a 64-bit object if we didn't find anything.
18002 if test -z "$aix_libpath"; then
18003 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18004 fi
18005 fi
18006 rm -f core conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18009
18010 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18011
18012 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"
18013 else
18014 if test "$host_cpu" = ia64; then
18015 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18016 allow_undefined_flag_CXX="-z nodefs"
18017 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"
18018 else
18019 # Determine the default libpath from the value encoded in an
18020 # empty executable.
18021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18022 /* end confdefs.h. */
18023
18024 int
18025 main ()
18026 {
18027
18028 ;
18029 return 0;
18030 }
18031 _ACEOF
18032 if ac_fn_cxx_try_link "$LINENO"; then :
18033
18034 lt_aix_libpath_sed='
18035 /Import File Strings/,/^$/ {
18036 /^0/ {
18037 s/^0 *\(.*\)$/\1/
18038 p
18039 }
18040 }'
18041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18042 # Check for a 64-bit object if we didn't find anything.
18043 if test -z "$aix_libpath"; then
18044 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18045 fi
18046 fi
18047 rm -f core conftest.err conftest.$ac_objext \
18048 conftest$ac_exeext conftest.$ac_ext
18049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18050
18051 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18052 # Warning - without using the other run time loading flags,
18053 # -berok will link without error, but may produce a broken library.
18054 no_undefined_flag_CXX=' ${wl}-bernotok'
18055 allow_undefined_flag_CXX=' ${wl}-berok'
18056 if test "$with_gnu_ld" = yes; then
18057 # We only use this code for GNU lds that support --whole-archive.
18058 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18059 else
18060 # Exported symbols can be pulled into shared objects from archives
18061 whole_archive_flag_spec_CXX='$convenience'
18062 fi
18063 archive_cmds_need_lc_CXX=yes
18064 # This is similar to how AIX traditionally builds its shared
18065 # libraries.
18066 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'
18067 fi
18068 fi
18069 ;;
18070
18071 beos*)
18072 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18073 allow_undefined_flag_CXX=unsupported
18074 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18075 # support --undefined. This deserves some investigation. FIXME
18076 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18077 else
18078 ld_shlibs_CXX=no
18079 fi
18080 ;;
18081
18082 chorus*)
18083 case $cc_basename in
18084 *)
18085 # FIXME: insert proper C++ library support
18086 ld_shlibs_CXX=no
18087 ;;
18088 esac
18089 ;;
18090
18091 cygwin* | mingw* | pw32* | cegcc*)
18092 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18093 # as there is no search path for DLLs.
18094 hardcode_libdir_flag_spec_CXX='-L$libdir'
18095 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18096 allow_undefined_flag_CXX=unsupported
18097 always_export_symbols_CXX=no
18098 enable_shared_with_static_runtimes_CXX=yes
18099
18100 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18101 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'
18102 # If the export-symbols file already is a .def file (1st line
18103 # is EXPORTS), use it as is; otherwise, prepend...
18104 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18105 cp $export_symbols $output_objdir/$soname.def;
18106 else
18107 echo EXPORTS > $output_objdir/$soname.def;
18108 cat $export_symbols >> $output_objdir/$soname.def;
18109 fi~
18110 $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'
18111 else
18112 ld_shlibs_CXX=no
18113 fi
18114 ;;
18115 darwin* | rhapsody*)
18116
18117
18118 archive_cmds_need_lc_CXX=no
18119 hardcode_direct_CXX=no
18120 hardcode_automatic_CXX=yes
18121 hardcode_shlibpath_var_CXX=unsupported
18122 if test "$lt_cv_ld_force_load" = "yes"; then
18123 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\"`'
18124 else
18125 whole_archive_flag_spec_CXX=''
18126 fi
18127 link_all_deplibs_CXX=yes
18128 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18129 case $cc_basename in
18130 ifort*) _lt_dar_can_shared=yes ;;
18131 *) _lt_dar_can_shared=$GCC ;;
18132 esac
18133 if test "$_lt_dar_can_shared" = "yes"; then
18134 output_verbose_link_cmd=func_echo_all
18135 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}"
18136 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18137 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}"
18138 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}"
18139 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18140 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}"
18141 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}"
18142 fi
18143
18144 else
18145 ld_shlibs_CXX=no
18146 fi
18147
18148 ;;
18149
18150 dgux*)
18151 case $cc_basename in
18152 ec++*)
18153 # FIXME: insert proper C++ library support
18154 ld_shlibs_CXX=no
18155 ;;
18156 ghcx*)
18157 # Green Hills C++ Compiler
18158 # FIXME: insert proper C++ library support
18159 ld_shlibs_CXX=no
18160 ;;
18161 *)
18162 # FIXME: insert proper C++ library support
18163 ld_shlibs_CXX=no
18164 ;;
18165 esac
18166 ;;
18167
18168 freebsd[12]*)
18169 # C++ shared libraries reported to be fairly broken before
18170 # switch to ELF
18171 ld_shlibs_CXX=no
18172 ;;
18173
18174 freebsd-elf*)
18175 archive_cmds_need_lc_CXX=no
18176 ;;
18177
18178 freebsd* | dragonfly*)
18179 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18180 # conventions
18181 ld_shlibs_CXX=yes
18182 ;;
18183
18184 gnu*)
18185 ;;
18186
18187 haiku*)
18188 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18189 link_all_deplibs_CXX=yes
18190 ;;
18191
18192 hpux9*)
18193 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18194 hardcode_libdir_separator_CXX=:
18195 export_dynamic_flag_spec_CXX='${wl}-E'
18196 hardcode_direct_CXX=yes
18197 hardcode_minus_L_CXX=yes # Not in the search PATH,
18198 # but as the default
18199 # location of the library.
18200
18201 case $cc_basename in
18202 CC*)
18203 # FIXME: insert proper C++ library support
18204 ld_shlibs_CXX=no
18205 ;;
18206 aCC*)
18207 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'
18208 # Commands to make compiler produce verbose output that lists
18209 # what "hidden" libraries, object files and flags are used when
18210 # linking a shared library.
18211 #
18212 # There doesn't appear to be a way to prevent this compiler from
18213 # explicitly linking system object files so we need to strip them
18214 # from the output so that they don't get included in the library
18215 # dependencies.
18216 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"'
18217 ;;
18218 *)
18219 if test "$GXX" = yes; then
18220 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'
18221 else
18222 # FIXME: insert proper C++ library support
18223 ld_shlibs_CXX=no
18224 fi
18225 ;;
18226 esac
18227 ;;
18228
18229 hpux10*|hpux11*)
18230 if test $with_gnu_ld = no; then
18231 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18232 hardcode_libdir_separator_CXX=:
18233
18234 case $host_cpu in
18235 hppa*64*|ia64*)
18236 ;;
18237 *)
18238 export_dynamic_flag_spec_CXX='${wl}-E'
18239 ;;
18240 esac
18241 fi
18242 case $host_cpu in
18243 hppa*64*|ia64*)
18244 hardcode_direct_CXX=no
18245 hardcode_shlibpath_var_CXX=no
18246 ;;
18247 *)
18248 hardcode_direct_CXX=yes
18249 hardcode_direct_absolute_CXX=yes
18250 hardcode_minus_L_CXX=yes # Not in the search PATH,
18251 # but as the default
18252 # location of the library.
18253 ;;
18254 esac
18255
18256 case $cc_basename in
18257 CC*)
18258 # FIXME: insert proper C++ library support
18259 ld_shlibs_CXX=no
18260 ;;
18261 aCC*)
18262 case $host_cpu in
18263 hppa*64*)
18264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18265 ;;
18266 ia64*)
18267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18268 ;;
18269 *)
18270 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18271 ;;
18272 esac
18273 # Commands to make compiler produce verbose output that lists
18274 # what "hidden" libraries, object files and flags are used when
18275 # linking a shared library.
18276 #
18277 # There doesn't appear to be a way to prevent this compiler from
18278 # explicitly linking system object files so we need to strip them
18279 # from the output so that they don't get included in the library
18280 # dependencies.
18281 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"'
18282 ;;
18283 *)
18284 if test "$GXX" = yes; then
18285 if test $with_gnu_ld = no; then
18286 case $host_cpu in
18287 hppa*64*)
18288 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18289 ;;
18290 ia64*)
18291 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18292 ;;
18293 *)
18294 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'
18295 ;;
18296 esac
18297 fi
18298 else
18299 # FIXME: insert proper C++ library support
18300 ld_shlibs_CXX=no
18301 fi
18302 ;;
18303 esac
18304 ;;
18305
18306 interix[3-9]*)
18307 hardcode_direct_CXX=no
18308 hardcode_shlibpath_var_CXX=no
18309 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18310 export_dynamic_flag_spec_CXX='${wl}-E'
18311 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18312 # Instead, shared libraries are loaded at an image base (0x10000000 by
18313 # default) and relocated if they conflict, which is a slow very memory
18314 # consuming and fragmenting process. To avoid this, we pick a random,
18315 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18316 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18317 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'
18318 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'
18319 ;;
18320 irix5* | irix6*)
18321 case $cc_basename in
18322 CC*)
18323 # SGI C++
18324 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'
18325
18326 # Archives containing C++ object files must be created using
18327 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18328 # necessary to make sure instantiated templates are included
18329 # in the archive.
18330 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18331 ;;
18332 *)
18333 if test "$GXX" = yes; then
18334 if test "$with_gnu_ld" = no; then
18335 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'
18336 else
18337 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'
18338 fi
18339 fi
18340 link_all_deplibs_CXX=yes
18341 ;;
18342 esac
18343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18344 hardcode_libdir_separator_CXX=:
18345 inherit_rpath_CXX=yes
18346 ;;
18347
18348 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18349 case $cc_basename in
18350 KCC*)
18351 # Kuck and Associates, Inc. (KAI) C++ Compiler
18352
18353 # KCC will only create a shared library if the output file
18354 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18355 # to its proper name (with version) after linking.
18356 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'
18357 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'
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 $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"'
18367
18368 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18369 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18370
18371 # Archives containing C++ object files must be created using
18372 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18373 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18374 ;;
18375 icpc* | ecpc* )
18376 # Intel C++
18377 with_gnu_ld=yes
18378 # version 8.0 and above of icpc choke on multiply defined symbols
18379 # if we add $predep_objects and $postdep_objects, however 7.1 and
18380 # earlier do not add the objects themselves.
18381 case `$CC -V 2>&1` in
18382 *"Version 7."*)
18383 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18384 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'
18385 ;;
18386 *) # Version 8.0 or newer
18387 tmp_idyn=
18388 case $host_cpu in
18389 ia64*) tmp_idyn=' -i_dynamic';;
18390 esac
18391 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18392 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'
18393 ;;
18394 esac
18395 archive_cmds_need_lc_CXX=no
18396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18397 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18398 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18399 ;;
18400 pgCC* | pgcpp*)
18401 # Portland Group C++ compiler
18402 case `$CC -V` in
18403 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18404 prelink_cmds_CXX='tpldir=Template.dir~
18405 rm -rf $tpldir~
18406 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18407 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18408 old_archive_cmds_CXX='tpldir=Template.dir~
18409 rm -rf $tpldir~
18410 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18411 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18412 $RANLIB $oldlib'
18413 archive_cmds_CXX='tpldir=Template.dir~
18414 rm -rf $tpldir~
18415 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18416 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18417 archive_expsym_cmds_CXX='tpldir=Template.dir~
18418 rm -rf $tpldir~
18419 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18420 $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'
18421 ;;
18422 *) # Version 6 and above use weak symbols
18423 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18424 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'
18425 ;;
18426 esac
18427
18428 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18429 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18430 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'
18431 ;;
18432 cxx*)
18433 # Compaq C++
18434 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18435 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'
18436
18437 runpath_var=LD_RUN_PATH
18438 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18439 hardcode_libdir_separator_CXX=:
18440
18441 # Commands to make compiler produce verbose output that lists
18442 # what "hidden" libraries, object files and flags are used when
18443 # linking a shared library.
18444 #
18445 # There doesn't appear to be a way to prevent this compiler from
18446 # explicitly linking system object files so we need to strip them
18447 # from the output so that they don't get included in the library
18448 # dependencies.
18449 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'
18450 ;;
18451 xl* | mpixl* | bgxl*)
18452 # IBM XL 8.0 on PPC, with GNU ld
18453 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18454 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18455 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18456 if test "x$supports_anon_versioning" = xyes; then
18457 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18458 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18459 echo "local: *; };" >> $output_objdir/$libname.ver~
18460 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18461 fi
18462 ;;
18463 *)
18464 case `$CC -V 2>&1 | sed 5q` in
18465 *Sun\ C*)
18466 # Sun C++ 5.9
18467 no_undefined_flag_CXX=' -zdefs'
18468 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18469 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'
18470 hardcode_libdir_flag_spec_CXX='-R$libdir'
18471 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'
18472 compiler_needs_object_CXX=yes
18473
18474 # Not sure whether something based on
18475 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18476 # would be better.
18477 output_verbose_link_cmd='func_echo_all'
18478
18479 # Archives containing C++ object files must be created using
18480 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18481 # necessary to make sure instantiated templates are included
18482 # in the archive.
18483 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18484 ;;
18485 esac
18486 ;;
18487 esac
18488 ;;
18489
18490 lynxos*)
18491 # FIXME: insert proper C++ library support
18492 ld_shlibs_CXX=no
18493 ;;
18494
18495 m88k*)
18496 # FIXME: insert proper C++ library support
18497 ld_shlibs_CXX=no
18498 ;;
18499
18500 mvs*)
18501 case $cc_basename in
18502 cxx*)
18503 # FIXME: insert proper C++ library support
18504 ld_shlibs_CXX=no
18505 ;;
18506 *)
18507 # FIXME: insert proper C++ library support
18508 ld_shlibs_CXX=no
18509 ;;
18510 esac
18511 ;;
18512
18513 netbsd*)
18514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18515 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18516 wlarc=
18517 hardcode_libdir_flag_spec_CXX='-R$libdir'
18518 hardcode_direct_CXX=yes
18519 hardcode_shlibpath_var_CXX=no
18520 fi
18521 # Workaround some broken pre-1.5 toolchains
18522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18523 ;;
18524
18525 *nto* | *qnx*)
18526 ld_shlibs_CXX=yes
18527 ;;
18528
18529 openbsd2*)
18530 # C++ shared libraries are fairly broken
18531 ld_shlibs_CXX=no
18532 ;;
18533
18534 openbsd*)
18535 if test -f /usr/libexec/ld.so; then
18536 hardcode_direct_CXX=yes
18537 hardcode_shlibpath_var_CXX=no
18538 hardcode_direct_absolute_CXX=yes
18539 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18540 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18541 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18542 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18543 export_dynamic_flag_spec_CXX='${wl}-E'
18544 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18545 fi
18546 output_verbose_link_cmd=func_echo_all
18547 else
18548 ld_shlibs_CXX=no
18549 fi
18550 ;;
18551
18552 osf3* | osf4* | osf5*)
18553 case $cc_basename in
18554 KCC*)
18555 # Kuck and Associates, Inc. (KAI) C++ Compiler
18556
18557 # KCC will only create a shared library if the output file
18558 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18559 # to its proper name (with version) after linking.
18560 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'
18561
18562 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18563 hardcode_libdir_separator_CXX=:
18564
18565 # Archives containing C++ object files must be created using
18566 # the KAI C++ compiler.
18567 case $host in
18568 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18569 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18570 esac
18571 ;;
18572 RCC*)
18573 # Rational C++ 2.4.1
18574 # FIXME: insert proper C++ library support
18575 ld_shlibs_CXX=no
18576 ;;
18577 cxx*)
18578 case $host in
18579 osf3*)
18580 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18581 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'
18582 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18583 ;;
18584 *)
18585 allow_undefined_flag_CXX=' -expect_unresolved \*'
18586 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'
18587 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18588 echo "-hidden">> $lib.exp~
18589 $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~
18590 $RM $lib.exp'
18591 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18592 ;;
18593 esac
18594
18595 hardcode_libdir_separator_CXX=:
18596
18597 # Commands to make compiler produce verbose output that lists
18598 # what "hidden" libraries, object files and flags are used when
18599 # linking a shared library.
18600 #
18601 # There doesn't appear to be a way to prevent this compiler from
18602 # explicitly linking system object files so we need to strip them
18603 # from the output so that they don't get included in the library
18604 # dependencies.
18605 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"'
18606 ;;
18607 *)
18608 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18609 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18610 case $host in
18611 osf3*)
18612 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'
18613 ;;
18614 *)
18615 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'
18616 ;;
18617 esac
18618
18619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18620 hardcode_libdir_separator_CXX=:
18621
18622 # Commands to make compiler produce verbose output that lists
18623 # what "hidden" libraries, object files and flags are used when
18624 # linking a shared library.
18625 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18626
18627 else
18628 # FIXME: insert proper C++ library support
18629 ld_shlibs_CXX=no
18630 fi
18631 ;;
18632 esac
18633 ;;
18634
18635 psos*)
18636 # FIXME: insert proper C++ library support
18637 ld_shlibs_CXX=no
18638 ;;
18639
18640 sunos4*)
18641 case $cc_basename in
18642 CC*)
18643 # Sun C++ 4.x
18644 # FIXME: insert proper C++ library support
18645 ld_shlibs_CXX=no
18646 ;;
18647 lcc*)
18648 # Lucid
18649 # FIXME: insert proper C++ library support
18650 ld_shlibs_CXX=no
18651 ;;
18652 *)
18653 # FIXME: insert proper C++ library support
18654 ld_shlibs_CXX=no
18655 ;;
18656 esac
18657 ;;
18658
18659 solaris*)
18660 case $cc_basename in
18661 CC*)
18662 # Sun C++ 4.2, 5.x and Centerline C++
18663 archive_cmds_need_lc_CXX=yes
18664 no_undefined_flag_CXX=' -zdefs'
18665 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18666 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18667 $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'
18668
18669 hardcode_libdir_flag_spec_CXX='-R$libdir'
18670 hardcode_shlibpath_var_CXX=no
18671 case $host_os in
18672 solaris2.[0-5] | solaris2.[0-5].*) ;;
18673 *)
18674 # The compiler driver will combine and reorder linker options,
18675 # but understands `-z linker_flag'.
18676 # Supported since Solaris 2.6 (maybe 2.5.1?)
18677 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18678 ;;
18679 esac
18680 link_all_deplibs_CXX=yes
18681
18682 output_verbose_link_cmd='func_echo_all'
18683
18684 # Archives containing C++ object files must be created using
18685 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18686 # necessary to make sure instantiated templates are included
18687 # in the archive.
18688 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18689 ;;
18690 gcx*)
18691 # Green Hills C++ Compiler
18692 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18693
18694 # The C++ compiler must be used to create the archive.
18695 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18696 ;;
18697 *)
18698 # GNU C++ compiler with Solaris linker
18699 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18700 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18701 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18702 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18703 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18704 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18705
18706 # Commands to make compiler produce verbose output that lists
18707 # what "hidden" libraries, object files and flags are used when
18708 # linking a shared library.
18709 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18710 else
18711 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18712 # platform.
18713 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18714 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18715 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18716
18717 # Commands to make compiler produce verbose output that lists
18718 # what "hidden" libraries, object files and flags are used when
18719 # linking a shared library.
18720 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18721 fi
18722
18723 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18724 case $host_os in
18725 solaris2.[0-5] | solaris2.[0-5].*) ;;
18726 *)
18727 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18728 ;;
18729 esac
18730 fi
18731 ;;
18732 esac
18733 ;;
18734
18735 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18736 no_undefined_flag_CXX='${wl}-z,text'
18737 archive_cmds_need_lc_CXX=no
18738 hardcode_shlibpath_var_CXX=no
18739 runpath_var='LD_RUN_PATH'
18740
18741 case $cc_basename in
18742 CC*)
18743 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18744 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18745 ;;
18746 *)
18747 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18748 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18749 ;;
18750 esac
18751 ;;
18752
18753 sysv5* | sco3.2v5* | sco5v6*)
18754 # Note: We can NOT use -z defs as we might desire, because we do not
18755 # link with -lc, and that would cause any symbols used from libc to
18756 # always be unresolved, which means just about no library would
18757 # ever link correctly. If we're not using GNU ld we use -z text
18758 # though, which does catch some bad symbols but isn't as heavy-handed
18759 # as -z defs.
18760 no_undefined_flag_CXX='${wl}-z,text'
18761 allow_undefined_flag_CXX='${wl}-z,nodefs'
18762 archive_cmds_need_lc_CXX=no
18763 hardcode_shlibpath_var_CXX=no
18764 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18765 hardcode_libdir_separator_CXX=':'
18766 link_all_deplibs_CXX=yes
18767 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18768 runpath_var='LD_RUN_PATH'
18769
18770 case $cc_basename in
18771 CC*)
18772 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18773 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18774 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18775 '"$old_archive_cmds_CXX"
18776 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18777 '"$reload_cmds_CXX"
18778 ;;
18779 *)
18780 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18781 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18782 ;;
18783 esac
18784 ;;
18785
18786 tandem*)
18787 case $cc_basename in
18788 NCC*)
18789 # NonStop-UX NCC 3.20
18790 # FIXME: insert proper C++ library support
18791 ld_shlibs_CXX=no
18792 ;;
18793 *)
18794 # FIXME: insert proper C++ library support
18795 ld_shlibs_CXX=no
18796 ;;
18797 esac
18798 ;;
18799
18800 vxworks*)
18801 # FIXME: insert proper C++ library support
18802 ld_shlibs_CXX=no
18803 ;;
18804
18805 *)
18806 # FIXME: insert proper C++ library support
18807 ld_shlibs_CXX=no
18808 ;;
18809 esac
18810
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18812 $as_echo "$ld_shlibs_CXX" >&6; }
18813 test "$ld_shlibs_CXX" = no && can_build_shared=no
18814
18815 GCC_CXX="$GXX"
18816 LD_CXX="$LD"
18817
18818 ## CAVEAT EMPTOR:
18819 ## There is no encapsulation within the following macros, do not change
18820 ## the running order or otherwise move them around unless you know exactly
18821 ## what you are doing...
18822 # Dependencies to place before and after the object being linked:
18823 predep_objects_CXX=
18824 postdep_objects_CXX=
18825 predeps_CXX=
18826 postdeps_CXX=
18827 compiler_lib_search_path_CXX=
18828
18829 cat > conftest.$ac_ext <<_LT_EOF
18830 class Foo
18831 {
18832 public:
18833 Foo (void) { a = 0; }
18834 private:
18835 int a;
18836 };
18837 _LT_EOF
18838
18839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18840 (eval $ac_compile) 2>&5
18841 ac_status=$?
18842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18843 test $ac_status = 0; }; then
18844 # Parse the compiler output and extract the necessary
18845 # objects, libraries and library flags.
18846
18847 # Sentinel used to keep track of whether or not we are before
18848 # the conftest object file.
18849 pre_test_object_deps_done=no
18850
18851 for p in `eval "$output_verbose_link_cmd"`; do
18852 case $p in
18853
18854 -L* | -R* | -l*)
18855 # Some compilers place space between "-{L,R}" and the path.
18856 # Remove the space.
18857 if test $p = "-L" ||
18858 test $p = "-R"; then
18859 prev=$p
18860 continue
18861 else
18862 prev=
18863 fi
18864
18865 if test "$pre_test_object_deps_done" = no; then
18866 case $p in
18867 -L* | -R*)
18868 # Internal compiler library paths should come after those
18869 # provided the user. The postdeps already come after the
18870 # user supplied libs so there is no need to process them.
18871 if test -z "$compiler_lib_search_path_CXX"; then
18872 compiler_lib_search_path_CXX="${prev}${p}"
18873 else
18874 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18875 fi
18876 ;;
18877 # The "-l" case would never come before the object being
18878 # linked, so don't bother handling this case.
18879 esac
18880 else
18881 if test -z "$postdeps_CXX"; then
18882 postdeps_CXX="${prev}${p}"
18883 else
18884 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18885 fi
18886 fi
18887 ;;
18888
18889 *.$objext)
18890 # This assumes that the test object file only shows up
18891 # once in the compiler output.
18892 if test "$p" = "conftest.$objext"; then
18893 pre_test_object_deps_done=yes
18894 continue
18895 fi
18896
18897 if test "$pre_test_object_deps_done" = no; then
18898 if test -z "$predep_objects_CXX"; then
18899 predep_objects_CXX="$p"
18900 else
18901 predep_objects_CXX="$predep_objects_CXX $p"
18902 fi
18903 else
18904 if test -z "$postdep_objects_CXX"; then
18905 postdep_objects_CXX="$p"
18906 else
18907 postdep_objects_CXX="$postdep_objects_CXX $p"
18908 fi
18909 fi
18910 ;;
18911
18912 *) ;; # Ignore the rest.
18913
18914 esac
18915 done
18916
18917 # Clean up.
18918 rm -f a.out a.exe
18919 else
18920 echo "libtool.m4: error: problem compiling CXX test program"
18921 fi
18922
18923 $RM -f confest.$objext
18924
18925 # PORTME: override above test on systems where it is broken
18926 case $host_os in
18927 interix[3-9]*)
18928 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18929 # hack all around it, let's just trust "g++" to DTRT.
18930 predep_objects_CXX=
18931 postdep_objects_CXX=
18932 postdeps_CXX=
18933 ;;
18934
18935 linux*)
18936 case `$CC -V 2>&1 | sed 5q` in
18937 *Sun\ C*)
18938 # Sun C++ 5.9
18939
18940 # The more standards-conforming stlport4 library is
18941 # incompatible with the Cstd library. Avoid specifying
18942 # it if it's in CXXFLAGS. Ignore libCrun as
18943 # -library=stlport4 depends on it.
18944 case " $CXX $CXXFLAGS " in
18945 *" -library=stlport4 "*)
18946 solaris_use_stlport4=yes
18947 ;;
18948 esac
18949
18950 if test "$solaris_use_stlport4" != yes; then
18951 postdeps_CXX='-library=Cstd -library=Crun'
18952 fi
18953 ;;
18954 esac
18955 ;;
18956
18957 solaris*)
18958 case $cc_basename in
18959 CC*)
18960 # The more standards-conforming stlport4 library is
18961 # incompatible with the Cstd library. Avoid specifying
18962 # it if it's in CXXFLAGS. Ignore libCrun as
18963 # -library=stlport4 depends on it.
18964 case " $CXX $CXXFLAGS " in
18965 *" -library=stlport4 "*)
18966 solaris_use_stlport4=yes
18967 ;;
18968 esac
18969
18970 # Adding this requires a known-good setup of shared libraries for
18971 # Sun compiler versions before 5.6, else PIC objects from an old
18972 # archive will be linked into the output, leading to subtle bugs.
18973 if test "$solaris_use_stlport4" != yes; then
18974 postdeps_CXX='-library=Cstd -library=Crun'
18975 fi
18976 ;;
18977 esac
18978 ;;
18979 esac
18980
18981
18982 case " $postdeps_CXX " in
18983 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18984 esac
18985 compiler_lib_search_dirs_CXX=
18986 if test -n "${compiler_lib_search_path_CXX}"; then
18987 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18988 fi
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020 lt_prog_compiler_wl_CXX=
19021 lt_prog_compiler_pic_CXX=
19022 lt_prog_compiler_static_CXX=
19023
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19025 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19026
19027 # C++ specific cases for pic, static, wl, etc.
19028 if test "$GXX" = yes; then
19029 lt_prog_compiler_wl_CXX='-Wl,'
19030 lt_prog_compiler_static_CXX='-static'
19031
19032 case $host_os in
19033 aix*)
19034 # All AIX code is PIC.
19035 if test "$host_cpu" = ia64; then
19036 # AIX 5 now supports IA64 processor
19037 lt_prog_compiler_static_CXX='-Bstatic'
19038 fi
19039 ;;
19040
19041 amigaos*)
19042 case $host_cpu in
19043 powerpc)
19044 # see comment about AmigaOS4 .so support
19045 lt_prog_compiler_pic_CXX='-fPIC'
19046 ;;
19047 m68k)
19048 # FIXME: we need at least 68020 code to build shared libraries, but
19049 # adding the `-m68020' flag to GCC prevents building anything better,
19050 # like `-m68040'.
19051 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19052 ;;
19053 esac
19054 ;;
19055
19056 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19057 # PIC is the default for these OSes.
19058 ;;
19059 mingw* | cygwin* | os2* | pw32* | cegcc*)
19060 # This hack is so that the source file can tell whether it is being
19061 # built for inclusion in a dll (and should export symbols for example).
19062 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19063 # (--disable-auto-import) libraries
19064 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19065 ;;
19066 darwin* | rhapsody*)
19067 # PIC is the default on this platform
19068 # Common symbols not allowed in MH_DYLIB files
19069 lt_prog_compiler_pic_CXX='-fno-common'
19070 ;;
19071 *djgpp*)
19072 # DJGPP does not support shared libraries at all
19073 lt_prog_compiler_pic_CXX=
19074 ;;
19075 haiku*)
19076 # PIC is the default for Haiku.
19077 # The "-static" flag exists, but is broken.
19078 lt_prog_compiler_static_CXX=
19079 ;;
19080 interix[3-9]*)
19081 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19082 # Instead, we relocate shared libraries at runtime.
19083 ;;
19084 sysv4*MP*)
19085 if test -d /usr/nec; then
19086 lt_prog_compiler_pic_CXX=-Kconform_pic
19087 fi
19088 ;;
19089 hpux*)
19090 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19091 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19092 # sets the default TLS model and affects inlining.
19093 case $host_cpu in
19094 hppa*64*)
19095 ;;
19096 *)
19097 lt_prog_compiler_pic_CXX='-fPIC'
19098 ;;
19099 esac
19100 ;;
19101 *qnx* | *nto*)
19102 # QNX uses GNU C++, but need to define -shared option too, otherwise
19103 # it will coredump.
19104 lt_prog_compiler_pic_CXX='-fPIC -shared'
19105 ;;
19106 *)
19107 lt_prog_compiler_pic_CXX='-fPIC'
19108 ;;
19109 esac
19110 else
19111 case $host_os in
19112 aix[4-9]*)
19113 # All AIX code is PIC.
19114 if test "$host_cpu" = ia64; then
19115 # AIX 5 now supports IA64 processor
19116 lt_prog_compiler_static_CXX='-Bstatic'
19117 else
19118 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19119 fi
19120 ;;
19121 chorus*)
19122 case $cc_basename in
19123 cxch68*)
19124 # Green Hills C++ Compiler
19125 # _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"
19126 ;;
19127 esac
19128 ;;
19129 dgux*)
19130 case $cc_basename in
19131 ec++*)
19132 lt_prog_compiler_pic_CXX='-KPIC'
19133 ;;
19134 ghcx*)
19135 # Green Hills C++ Compiler
19136 lt_prog_compiler_pic_CXX='-pic'
19137 ;;
19138 *)
19139 ;;
19140 esac
19141 ;;
19142 freebsd* | dragonfly*)
19143 # FreeBSD uses GNU C++
19144 ;;
19145 hpux9* | hpux10* | hpux11*)
19146 case $cc_basename in
19147 CC*)
19148 lt_prog_compiler_wl_CXX='-Wl,'
19149 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19150 if test "$host_cpu" != ia64; then
19151 lt_prog_compiler_pic_CXX='+Z'
19152 fi
19153 ;;
19154 aCC*)
19155 lt_prog_compiler_wl_CXX='-Wl,'
19156 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19157 case $host_cpu in
19158 hppa*64*|ia64*)
19159 # +Z the default
19160 ;;
19161 *)
19162 lt_prog_compiler_pic_CXX='+Z'
19163 ;;
19164 esac
19165 ;;
19166 *)
19167 ;;
19168 esac
19169 ;;
19170 interix*)
19171 # This is c89, which is MS Visual C++ (no shared libs)
19172 # Anyone wants to do a port?
19173 ;;
19174 irix5* | irix6* | nonstopux*)
19175 case $cc_basename in
19176 CC*)
19177 lt_prog_compiler_wl_CXX='-Wl,'
19178 lt_prog_compiler_static_CXX='-non_shared'
19179 # CC pic flag -KPIC is the default.
19180 ;;
19181 *)
19182 ;;
19183 esac
19184 ;;
19185 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19186 case $cc_basename in
19187 KCC*)
19188 # KAI C++ Compiler
19189 lt_prog_compiler_wl_CXX='--backend -Wl,'
19190 lt_prog_compiler_pic_CXX='-fPIC'
19191 ;;
19192 ecpc* )
19193 # old Intel C++ for x86_64 which still supported -KPIC.
19194 lt_prog_compiler_wl_CXX='-Wl,'
19195 lt_prog_compiler_pic_CXX='-KPIC'
19196 lt_prog_compiler_static_CXX='-static'
19197 ;;
19198 icpc* )
19199 # Intel C++, used to be incompatible with GCC.
19200 # ICC 10 doesn't accept -KPIC any more.
19201 lt_prog_compiler_wl_CXX='-Wl,'
19202 lt_prog_compiler_pic_CXX='-fPIC'
19203 lt_prog_compiler_static_CXX='-static'
19204 ;;
19205 pgCC* | pgcpp*)
19206 # Portland Group C++ compiler
19207 lt_prog_compiler_wl_CXX='-Wl,'
19208 lt_prog_compiler_pic_CXX='-fpic'
19209 lt_prog_compiler_static_CXX='-Bstatic'
19210 ;;
19211 cxx*)
19212 # Compaq C++
19213 # Make sure the PIC flag is empty. It appears that all Alpha
19214 # Linux and Compaq Tru64 Unix objects are PIC.
19215 lt_prog_compiler_pic_CXX=
19216 lt_prog_compiler_static_CXX='-non_shared'
19217 ;;
19218 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19219 # IBM XL 8.0, 9.0 on PPC and BlueGene
19220 lt_prog_compiler_wl_CXX='-Wl,'
19221 lt_prog_compiler_pic_CXX='-qpic'
19222 lt_prog_compiler_static_CXX='-qstaticlink'
19223 ;;
19224 *)
19225 case `$CC -V 2>&1 | sed 5q` in
19226 *Sun\ C*)
19227 # Sun C++ 5.9
19228 lt_prog_compiler_pic_CXX='-KPIC'
19229 lt_prog_compiler_static_CXX='-Bstatic'
19230 lt_prog_compiler_wl_CXX='-Qoption ld '
19231 ;;
19232 esac
19233 ;;
19234 esac
19235 ;;
19236 lynxos*)
19237 ;;
19238 m88k*)
19239 ;;
19240 mvs*)
19241 case $cc_basename in
19242 cxx*)
19243 lt_prog_compiler_pic_CXX='-W c,exportall'
19244 ;;
19245 *)
19246 ;;
19247 esac
19248 ;;
19249 netbsd*)
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 osf3* | osf4* | osf5*)
19257 case $cc_basename in
19258 KCC*)
19259 lt_prog_compiler_wl_CXX='--backend -Wl,'
19260 ;;
19261 RCC*)
19262 # Rational C++ 2.4.1
19263 lt_prog_compiler_pic_CXX='-pic'
19264 ;;
19265 cxx*)
19266 # Digital/Compaq C++
19267 lt_prog_compiler_wl_CXX='-Wl,'
19268 # Make sure the PIC flag is empty. It appears that all Alpha
19269 # Linux and Compaq Tru64 Unix objects are PIC.
19270 lt_prog_compiler_pic_CXX=
19271 lt_prog_compiler_static_CXX='-non_shared'
19272 ;;
19273 *)
19274 ;;
19275 esac
19276 ;;
19277 psos*)
19278 ;;
19279 solaris*)
19280 case $cc_basename in
19281 CC*)
19282 # Sun C++ 4.2, 5.x and Centerline C++
19283 lt_prog_compiler_pic_CXX='-KPIC'
19284 lt_prog_compiler_static_CXX='-Bstatic'
19285 lt_prog_compiler_wl_CXX='-Qoption ld '
19286 ;;
19287 gcx*)
19288 # Green Hills C++ Compiler
19289 lt_prog_compiler_pic_CXX='-PIC'
19290 ;;
19291 *)
19292 ;;
19293 esac
19294 ;;
19295 sunos4*)
19296 case $cc_basename in
19297 CC*)
19298 # Sun C++ 4.x
19299 lt_prog_compiler_pic_CXX='-pic'
19300 lt_prog_compiler_static_CXX='-Bstatic'
19301 ;;
19302 lcc*)
19303 # Lucid
19304 lt_prog_compiler_pic_CXX='-pic'
19305 ;;
19306 *)
19307 ;;
19308 esac
19309 ;;
19310 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19311 case $cc_basename in
19312 CC*)
19313 lt_prog_compiler_wl_CXX='-Wl,'
19314 lt_prog_compiler_pic_CXX='-KPIC'
19315 lt_prog_compiler_static_CXX='-Bstatic'
19316 ;;
19317 esac
19318 ;;
19319 tandem*)
19320 case $cc_basename in
19321 NCC*)
19322 # NonStop-UX NCC 3.20
19323 lt_prog_compiler_pic_CXX='-KPIC'
19324 ;;
19325 *)
19326 ;;
19327 esac
19328 ;;
19329 vxworks*)
19330 ;;
19331 *)
19332 lt_prog_compiler_can_build_shared_CXX=no
19333 ;;
19334 esac
19335 fi
19336
19337 case $host_os in
19338 # For platforms which do not support PIC, -DPIC is meaningless:
19339 *djgpp*)
19340 lt_prog_compiler_pic_CXX=
19341 ;;
19342 *)
19343 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19344 ;;
19345 esac
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19347 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19348
19349
19350
19351 #
19352 # Check to make sure the PIC flag actually works.
19353 #
19354 if test -n "$lt_prog_compiler_pic_CXX"; then
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19356 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19357 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19358 $as_echo_n "(cached) " >&6
19359 else
19360 lt_cv_prog_compiler_pic_works_CXX=no
19361 ac_outfile=conftest.$ac_objext
19362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19363 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19364 # Insert the option either (1) after the last *FLAGS variable, or
19365 # (2) before a word containing "conftest.", or (3) at the end.
19366 # Note that $ac_compile itself does not contain backslashes and begins
19367 # with a dollar sign (not a hyphen), so the echo should work correctly.
19368 # The option is referenced via a variable to avoid confusing sed.
19369 lt_compile=`echo "$ac_compile" | $SED \
19370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19372 -e 's:$: $lt_compiler_flag:'`
19373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19374 (eval "$lt_compile" 2>conftest.err)
19375 ac_status=$?
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 if (exit $ac_status) && test -s "$ac_outfile"; then
19379 # The compiler can only warn and ignore the option if not recognized
19380 # So say no if there are warnings other than the usual output.
19381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19383 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19384 lt_cv_prog_compiler_pic_works_CXX=yes
19385 fi
19386 fi
19387 $RM conftest*
19388
19389 fi
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19391 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19392
19393 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19394 case $lt_prog_compiler_pic_CXX in
19395 "" | " "*) ;;
19396 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19397 esac
19398 else
19399 lt_prog_compiler_pic_CXX=
19400 lt_prog_compiler_can_build_shared_CXX=no
19401 fi
19402
19403 fi
19404
19405
19406
19407 #
19408 # Check to make sure the static flag actually works.
19409 #
19410 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19412 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19413 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19414 $as_echo_n "(cached) " >&6
19415 else
19416 lt_cv_prog_compiler_static_works_CXX=no
19417 save_LDFLAGS="$LDFLAGS"
19418 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19419 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19420 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19421 # The linker can only warn and ignore the option if not recognized
19422 # So say no if there are warnings
19423 if test -s conftest.err; then
19424 # Append any errors to the config.log.
19425 cat conftest.err 1>&5
19426 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19428 if diff conftest.exp conftest.er2 >/dev/null; then
19429 lt_cv_prog_compiler_static_works_CXX=yes
19430 fi
19431 else
19432 lt_cv_prog_compiler_static_works_CXX=yes
19433 fi
19434 fi
19435 $RM -r conftest*
19436 LDFLAGS="$save_LDFLAGS"
19437
19438 fi
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19440 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19441
19442 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19443 :
19444 else
19445 lt_prog_compiler_static_CXX=
19446 fi
19447
19448
19449
19450
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19452 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19453 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19454 $as_echo_n "(cached) " >&6
19455 else
19456 lt_cv_prog_compiler_c_o_CXX=no
19457 $RM -r conftest 2>/dev/null
19458 mkdir conftest
19459 cd conftest
19460 mkdir out
19461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19462
19463 lt_compiler_flag="-o out/conftest2.$ac_objext"
19464 # Insert the option either (1) after the last *FLAGS variable, or
19465 # (2) before a word containing "conftest.", or (3) at the end.
19466 # Note that $ac_compile itself does not contain backslashes and begins
19467 # with a dollar sign (not a hyphen), so the echo should work correctly.
19468 lt_compile=`echo "$ac_compile" | $SED \
19469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19471 -e 's:$: $lt_compiler_flag:'`
19472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19473 (eval "$lt_compile" 2>out/conftest.err)
19474 ac_status=$?
19475 cat out/conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19478 then
19479 # The compiler can only warn and ignore the option if not recognized
19480 # So say no if there are warnings
19481 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19484 lt_cv_prog_compiler_c_o_CXX=yes
19485 fi
19486 fi
19487 chmod u+w . 2>&5
19488 $RM conftest*
19489 # SGI C++ compiler will create directory out/ii_files/ for
19490 # template instantiation
19491 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19492 $RM out/* && rmdir out
19493 cd ..
19494 $RM -r conftest
19495 $RM conftest*
19496
19497 fi
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19499 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19500
19501
19502
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19504 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19505 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19506 $as_echo_n "(cached) " >&6
19507 else
19508 lt_cv_prog_compiler_c_o_CXX=no
19509 $RM -r conftest 2>/dev/null
19510 mkdir conftest
19511 cd conftest
19512 mkdir out
19513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19514
19515 lt_compiler_flag="-o out/conftest2.$ac_objext"
19516 # Insert the option either (1) after the last *FLAGS variable, or
19517 # (2) before a word containing "conftest.", or (3) at the end.
19518 # Note that $ac_compile itself does not contain backslashes and begins
19519 # with a dollar sign (not a hyphen), so the echo should work correctly.
19520 lt_compile=`echo "$ac_compile" | $SED \
19521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19523 -e 's:$: $lt_compiler_flag:'`
19524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19525 (eval "$lt_compile" 2>out/conftest.err)
19526 ac_status=$?
19527 cat out/conftest.err >&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19530 then
19531 # The compiler can only warn and ignore the option if not recognized
19532 # So say no if there are warnings
19533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19534 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19535 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19536 lt_cv_prog_compiler_c_o_CXX=yes
19537 fi
19538 fi
19539 chmod u+w . 2>&5
19540 $RM conftest*
19541 # SGI C++ compiler will create directory out/ii_files/ for
19542 # template instantiation
19543 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19544 $RM out/* && rmdir out
19545 cd ..
19546 $RM -r conftest
19547 $RM conftest*
19548
19549 fi
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19551 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19552
19553
19554
19555
19556 hard_links="nottested"
19557 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19558 # do not overwrite the value of need_locks provided by the user
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19560 $as_echo_n "checking if we can lock with hard links... " >&6; }
19561 hard_links=yes
19562 $RM conftest*
19563 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19564 touch conftest.a
19565 ln conftest.a conftest.b 2>&5 || hard_links=no
19566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19568 $as_echo "$hard_links" >&6; }
19569 if test "$hard_links" = no; then
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19571 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19572 need_locks=warn
19573 fi
19574 else
19575 need_locks=no
19576 fi
19577
19578
19579
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19581 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19582
19583 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19584 case $host_os in
19585 aix[4-9]*)
19586 # If we're using GNU nm, then we don't want the "-C" option.
19587 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19588 # Also, AIX nm treats weak defined symbols like other global defined
19589 # symbols, whereas GNU nm marks them as "W".
19590 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19591 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'
19592 else
19593 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'
19594 fi
19595 ;;
19596 pw32*)
19597 export_symbols_cmds_CXX="$ltdll_cmds"
19598 ;;
19599 cygwin* | mingw* | cegcc*)
19600 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'
19601 ;;
19602 *)
19603 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19604 ;;
19605 esac
19606 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19607
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19609 $as_echo "$ld_shlibs_CXX" >&6; }
19610 test "$ld_shlibs_CXX" = no && can_build_shared=no
19611
19612 with_gnu_ld_CXX=$with_gnu_ld
19613
19614
19615
19616
19617
19618
19619 #
19620 # Do we need to explicitly link libc?
19621 #
19622 case "x$archive_cmds_need_lc_CXX" in
19623 x|xyes)
19624 # Assume -lc should be added
19625 archive_cmds_need_lc_CXX=yes
19626
19627 if test "$enable_shared" = yes && test "$GCC" = yes; then
19628 case $archive_cmds_CXX in
19629 *'~'*)
19630 # FIXME: we may have to deal with multi-command sequences.
19631 ;;
19632 '$CC '*)
19633 # Test whether the compiler implicitly links with -lc since on some
19634 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19635 # to ld, don't add -lc before -lgcc.
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19637 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19638 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19639 $as_echo_n "(cached) " >&6
19640 else
19641 $RM conftest*
19642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19643
19644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19645 (eval $ac_compile) 2>&5
19646 ac_status=$?
19647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19648 test $ac_status = 0; } 2>conftest.err; then
19649 soname=conftest
19650 lib=conftest
19651 libobjs=conftest.$ac_objext
19652 deplibs=
19653 wl=$lt_prog_compiler_wl_CXX
19654 pic_flag=$lt_prog_compiler_pic_CXX
19655 compiler_flags=-v
19656 linker_flags=-v
19657 verstring=
19658 output_objdir=.
19659 libname=conftest
19660 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19661 allow_undefined_flag_CXX=
19662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19663 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19664 ac_status=$?
19665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19666 test $ac_status = 0; }
19667 then
19668 lt_cv_archive_cmds_need_lc_CXX=no
19669 else
19670 lt_cv_archive_cmds_need_lc_CXX=yes
19671 fi
19672 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19673 else
19674 cat conftest.err 1>&5
19675 fi
19676 $RM conftest*
19677
19678 fi
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19680 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19681 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19682 ;;
19683 esac
19684 fi
19685 ;;
19686 esac
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19752 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19753
19754 library_names_spec=
19755 libname_spec='lib$name'
19756 soname_spec=
19757 shrext_cmds=".so"
19758 postinstall_cmds=
19759 postuninstall_cmds=
19760 finish_cmds=
19761 finish_eval=
19762 shlibpath_var=
19763 shlibpath_overrides_runpath=unknown
19764 version_type=none
19765 dynamic_linker="$host_os ld.so"
19766 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19767 need_lib_prefix=unknown
19768 hardcode_into_libs=no
19769
19770 # when you set need_version to no, make sure it does not cause -set_version
19771 # flags to be left without arguments
19772 need_version=unknown
19773
19774 case $host_os in
19775 aix3*)
19776 version_type=linux
19777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19778 shlibpath_var=LIBPATH
19779
19780 # AIX 3 has no versioning support, so we append a major version to the name.
19781 soname_spec='${libname}${release}${shared_ext}$major'
19782 ;;
19783
19784 aix[4-9]*)
19785 version_type=linux
19786 need_lib_prefix=no
19787 need_version=no
19788 hardcode_into_libs=yes
19789 if test "$host_cpu" = ia64; then
19790 # AIX 5 supports IA64
19791 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19792 shlibpath_var=LD_LIBRARY_PATH
19793 else
19794 # With GCC up to 2.95.x, collect2 would create an import file
19795 # for dependence libraries. The import file would start with
19796 # the line `#! .'. This would cause the generated library to
19797 # depend on `.', always an invalid library. This was fixed in
19798 # development snapshots of GCC prior to 3.0.
19799 case $host_os in
19800 aix4 | aix4.[01] | aix4.[01].*)
19801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19802 echo ' yes '
19803 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19804 :
19805 else
19806 can_build_shared=no
19807 fi
19808 ;;
19809 esac
19810 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19811 # soname into executable. Probably we can add versioning support to
19812 # collect2, so additional links can be useful in future.
19813 if test "$aix_use_runtimelinking" = yes; then
19814 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19815 # instead of lib<name>.a to let people know that these are not
19816 # typical AIX shared libraries.
19817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19818 else
19819 # We preserve .a as extension for shared libraries through AIX4.2
19820 # and later when we are not doing run time linking.
19821 library_names_spec='${libname}${release}.a $libname.a'
19822 soname_spec='${libname}${release}${shared_ext}$major'
19823 fi
19824 shlibpath_var=LIBPATH
19825 fi
19826 ;;
19827
19828 amigaos*)
19829 case $host_cpu in
19830 powerpc)
19831 # Since July 2007 AmigaOS4 officially supports .so libraries.
19832 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19834 ;;
19835 m68k)
19836 library_names_spec='$libname.ixlibrary $libname.a'
19837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19838 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'
19839 ;;
19840 esac
19841 ;;
19842
19843 beos*)
19844 library_names_spec='${libname}${shared_ext}'
19845 dynamic_linker="$host_os ld.so"
19846 shlibpath_var=LIBRARY_PATH
19847 ;;
19848
19849 bsdi[45]*)
19850 version_type=linux
19851 need_version=no
19852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19853 soname_spec='${libname}${release}${shared_ext}$major'
19854 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19855 shlibpath_var=LD_LIBRARY_PATH
19856 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19857 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19858 # the default ld.so.conf also contains /usr/contrib/lib and
19859 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19860 # libtool to hard-code these into programs
19861 ;;
19862
19863 cygwin* | mingw* | pw32* | cegcc*)
19864 version_type=windows
19865 shrext_cmds=".dll"
19866 need_version=no
19867 need_lib_prefix=no
19868
19869 case $GCC,$host_os in
19870 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19871 library_names_spec='$libname.dll.a'
19872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19873 postinstall_cmds='base_file=`basename \${file}`~
19874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19875 dldir=$destdir/`dirname \$dlpath`~
19876 test -d \$dldir || mkdir -p \$dldir~
19877 $install_prog $dir/$dlname \$dldir/$dlname~
19878 chmod a+x \$dldir/$dlname~
19879 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19880 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19881 fi'
19882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19883 dlpath=$dir/\$dldll~
19884 $RM \$dlpath'
19885 shlibpath_overrides_runpath=yes
19886
19887 case $host_os in
19888 cygwin*)
19889 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19890 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19891
19892 ;;
19893 mingw* | cegcc*)
19894 # MinGW DLLs use traditional 'lib' prefix
19895 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19896 ;;
19897 pw32*)
19898 # pw32 DLLs use 'pw' prefix rather than 'lib'
19899 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19900 ;;
19901 esac
19902 ;;
19903
19904 *)
19905 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19906 ;;
19907 esac
19908 dynamic_linker='Win32 ld.exe'
19909 # FIXME: first we should search . and the directory the executable is in
19910 shlibpath_var=PATH
19911 ;;
19912
19913 darwin* | rhapsody*)
19914 dynamic_linker="$host_os dyld"
19915 version_type=darwin
19916 need_lib_prefix=no
19917 need_version=no
19918 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19919 soname_spec='${libname}${release}${major}$shared_ext'
19920 shlibpath_overrides_runpath=yes
19921 shlibpath_var=DYLD_LIBRARY_PATH
19922 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19923
19924 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19925 ;;
19926
19927 dgux*)
19928 version_type=linux
19929 need_lib_prefix=no
19930 need_version=no
19931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19932 soname_spec='${libname}${release}${shared_ext}$major'
19933 shlibpath_var=LD_LIBRARY_PATH
19934 ;;
19935
19936 freebsd1*)
19937 dynamic_linker=no
19938 ;;
19939
19940 freebsd* | dragonfly*)
19941 # DragonFly does not have aout. When/if they implement a new
19942 # versioning mechanism, adjust this.
19943 if test -x /usr/bin/objformat; then
19944 objformat=`/usr/bin/objformat`
19945 else
19946 case $host_os in
19947 freebsd[123]*) objformat=aout ;;
19948 *) objformat=elf ;;
19949 esac
19950 fi
19951 version_type=freebsd-$objformat
19952 case $version_type in
19953 freebsd-elf*)
19954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19955 need_version=no
19956 need_lib_prefix=no
19957 ;;
19958 freebsd-*)
19959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19960 need_version=yes
19961 ;;
19962 esac
19963 shlibpath_var=LD_LIBRARY_PATH
19964 case $host_os in
19965 freebsd2*)
19966 shlibpath_overrides_runpath=yes
19967 ;;
19968 freebsd3.[01]* | freebsdelf3.[01]*)
19969 shlibpath_overrides_runpath=yes
19970 hardcode_into_libs=yes
19971 ;;
19972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19974 shlibpath_overrides_runpath=no
19975 hardcode_into_libs=yes
19976 ;;
19977 *) # from 4.6 on, and DragonFly
19978 shlibpath_overrides_runpath=yes
19979 hardcode_into_libs=yes
19980 ;;
19981 esac
19982 ;;
19983
19984 gnu*)
19985 version_type=linux
19986 need_lib_prefix=no
19987 need_version=no
19988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19989 soname_spec='${libname}${release}${shared_ext}$major'
19990 shlibpath_var=LD_LIBRARY_PATH
19991 hardcode_into_libs=yes
19992 ;;
19993
19994 haiku*)
19995 version_type=linux
19996 need_lib_prefix=no
19997 need_version=no
19998 dynamic_linker="$host_os runtime_loader"
19999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20000 soname_spec='${libname}${release}${shared_ext}$major'
20001 shlibpath_var=LIBRARY_PATH
20002 shlibpath_overrides_runpath=yes
20003 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20004 hardcode_into_libs=yes
20005 ;;
20006
20007 hpux9* | hpux10* | hpux11*)
20008 # Give a soname corresponding to the major version so that dld.sl refuses to
20009 # link against other versions.
20010 version_type=sunos
20011 need_lib_prefix=no
20012 need_version=no
20013 case $host_cpu in
20014 ia64*)
20015 shrext_cmds='.so'
20016 hardcode_into_libs=yes
20017 dynamic_linker="$host_os dld.so"
20018 shlibpath_var=LD_LIBRARY_PATH
20019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20021 soname_spec='${libname}${release}${shared_ext}$major'
20022 if test "X$HPUX_IA64_MODE" = X32; then
20023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20024 else
20025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20026 fi
20027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20028 ;;
20029 hppa*64*)
20030 shrext_cmds='.sl'
20031 hardcode_into_libs=yes
20032 dynamic_linker="$host_os dld.sl"
20033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20036 soname_spec='${libname}${release}${shared_ext}$major'
20037 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20039 ;;
20040 *)
20041 shrext_cmds='.sl'
20042 dynamic_linker="$host_os dld.sl"
20043 shlibpath_var=SHLIB_PATH
20044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20046 soname_spec='${libname}${release}${shared_ext}$major'
20047 ;;
20048 esac
20049 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20050 postinstall_cmds='chmod 555 $lib'
20051 # or fails outright, so override atomically:
20052 install_override_mode=555
20053 ;;
20054
20055 interix[3-9]*)
20056 version_type=linux
20057 need_lib_prefix=no
20058 need_version=no
20059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20060 soname_spec='${libname}${release}${shared_ext}$major'
20061 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20062 shlibpath_var=LD_LIBRARY_PATH
20063 shlibpath_overrides_runpath=no
20064 hardcode_into_libs=yes
20065 ;;
20066
20067 irix5* | irix6* | nonstopux*)
20068 case $host_os in
20069 nonstopux*) version_type=nonstopux ;;
20070 *)
20071 if test "$lt_cv_prog_gnu_ld" = yes; then
20072 version_type=linux
20073 else
20074 version_type=irix
20075 fi ;;
20076 esac
20077 need_lib_prefix=no
20078 need_version=no
20079 soname_spec='${libname}${release}${shared_ext}$major'
20080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20081 case $host_os in
20082 irix5* | nonstopux*)
20083 libsuff= shlibsuff=
20084 ;;
20085 *)
20086 case $LD in # libtool.m4 will add one of these switches to LD
20087 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20088 libsuff= shlibsuff= libmagic=32-bit;;
20089 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20090 libsuff=32 shlibsuff=N32 libmagic=N32;;
20091 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20092 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20093 *) libsuff= shlibsuff= libmagic=never-match;;
20094 esac
20095 ;;
20096 esac
20097 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20098 shlibpath_overrides_runpath=no
20099 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20100 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20101 hardcode_into_libs=yes
20102 ;;
20103
20104 # No shared lib support for Linux oldld, aout, or coff.
20105 linux*oldld* | linux*aout* | linux*coff*)
20106 dynamic_linker=no
20107 ;;
20108
20109 # This must be Linux ELF.
20110 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20111 version_type=linux
20112 need_lib_prefix=no
20113 need_version=no
20114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20115 soname_spec='${libname}${release}${shared_ext}$major'
20116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20117 shlibpath_var=LD_LIBRARY_PATH
20118 shlibpath_overrides_runpath=no
20119
20120 # Some binutils ld are patched to set DT_RUNPATH
20121 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20122 $as_echo_n "(cached) " >&6
20123 else
20124 lt_cv_shlibpath_overrides_runpath=no
20125 save_LDFLAGS=$LDFLAGS
20126 save_libdir=$libdir
20127 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20128 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20130 /* end confdefs.h. */
20131
20132 int
20133 main ()
20134 {
20135
20136 ;
20137 return 0;
20138 }
20139 _ACEOF
20140 if ac_fn_cxx_try_link "$LINENO"; then :
20141 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20142 lt_cv_shlibpath_overrides_runpath=yes
20143 fi
20144 fi
20145 rm -f core conftest.err conftest.$ac_objext \
20146 conftest$ac_exeext conftest.$ac_ext
20147 LDFLAGS=$save_LDFLAGS
20148 libdir=$save_libdir
20149
20150 fi
20151
20152 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20153
20154 # This implies no fast_install, which is unacceptable.
20155 # Some rework will be needed to allow for fast_install
20156 # before this can be enabled.
20157 hardcode_into_libs=yes
20158
20159 # Append ld.so.conf contents to the search path
20160 if test -f /etc/ld.so.conf; then
20161 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' ' '`
20162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20163 fi
20164
20165 # We used to test for /lib/ld.so.1 and disable shared libraries on
20166 # powerpc, because MkLinux only supported shared libraries with the
20167 # GNU dynamic linker. Since this was broken with cross compilers,
20168 # most powerpc-linux boxes support dynamic linking these days and
20169 # people can always --disable-shared, the test was removed, and we
20170 # assume the GNU/Linux dynamic linker is in use.
20171 dynamic_linker='GNU/Linux ld.so'
20172 ;;
20173
20174 netbsd*)
20175 version_type=sunos
20176 need_lib_prefix=no
20177 need_version=no
20178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20181 dynamic_linker='NetBSD (a.out) ld.so'
20182 else
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20184 soname_spec='${libname}${release}${shared_ext}$major'
20185 dynamic_linker='NetBSD ld.elf_so'
20186 fi
20187 shlibpath_var=LD_LIBRARY_PATH
20188 shlibpath_overrides_runpath=yes
20189 hardcode_into_libs=yes
20190 ;;
20191
20192 newsos6)
20193 version_type=linux
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 shlibpath_var=LD_LIBRARY_PATH
20196 shlibpath_overrides_runpath=yes
20197 ;;
20198
20199 *nto* | *qnx*)
20200 version_type=qnx
20201 need_lib_prefix=no
20202 need_version=no
20203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20204 soname_spec='${libname}${release}${shared_ext}$major'
20205 shlibpath_var=LD_LIBRARY_PATH
20206 shlibpath_overrides_runpath=no
20207 hardcode_into_libs=yes
20208 dynamic_linker='ldqnx.so'
20209 ;;
20210
20211 openbsd*)
20212 version_type=sunos
20213 sys_lib_dlsearch_path_spec="/usr/lib"
20214 need_lib_prefix=no
20215 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20216 case $host_os in
20217 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20218 *) need_version=no ;;
20219 esac
20220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20222 shlibpath_var=LD_LIBRARY_PATH
20223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20224 case $host_os in
20225 openbsd2.[89] | openbsd2.[89].*)
20226 shlibpath_overrides_runpath=no
20227 ;;
20228 *)
20229 shlibpath_overrides_runpath=yes
20230 ;;
20231 esac
20232 else
20233 shlibpath_overrides_runpath=yes
20234 fi
20235 ;;
20236
20237 os2*)
20238 libname_spec='$name'
20239 shrext_cmds=".dll"
20240 need_lib_prefix=no
20241 library_names_spec='$libname${shared_ext} $libname.a'
20242 dynamic_linker='OS/2 ld.exe'
20243 shlibpath_var=LIBPATH
20244 ;;
20245
20246 osf3* | osf4* | osf5*)
20247 version_type=osf
20248 need_lib_prefix=no
20249 need_version=no
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 shlibpath_var=LD_LIBRARY_PATH
20253 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20254 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20255 ;;
20256
20257 rdos*)
20258 dynamic_linker=no
20259 ;;
20260
20261 solaris*)
20262 version_type=linux
20263 need_lib_prefix=no
20264 need_version=no
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266 soname_spec='${libname}${release}${shared_ext}$major'
20267 shlibpath_var=LD_LIBRARY_PATH
20268 shlibpath_overrides_runpath=yes
20269 hardcode_into_libs=yes
20270 # ldd complains unless libraries are executable
20271 postinstall_cmds='chmod +x $lib'
20272 ;;
20273
20274 sunos4*)
20275 version_type=sunos
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20277 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20278 shlibpath_var=LD_LIBRARY_PATH
20279 shlibpath_overrides_runpath=yes
20280 if test "$with_gnu_ld" = yes; then
20281 need_lib_prefix=no
20282 fi
20283 need_version=yes
20284 ;;
20285
20286 sysv4 | sysv4.3*)
20287 version_type=linux
20288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20289 soname_spec='${libname}${release}${shared_ext}$major'
20290 shlibpath_var=LD_LIBRARY_PATH
20291 case $host_vendor in
20292 sni)
20293 shlibpath_overrides_runpath=no
20294 need_lib_prefix=no
20295 runpath_var=LD_RUN_PATH
20296 ;;
20297 siemens)
20298 need_lib_prefix=no
20299 ;;
20300 motorola)
20301 need_lib_prefix=no
20302 need_version=no
20303 shlibpath_overrides_runpath=no
20304 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20305 ;;
20306 esac
20307 ;;
20308
20309 sysv4*MP*)
20310 if test -d /usr/nec ;then
20311 version_type=linux
20312 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20313 soname_spec='$libname${shared_ext}.$major'
20314 shlibpath_var=LD_LIBRARY_PATH
20315 fi
20316 ;;
20317
20318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20319 version_type=freebsd-elf
20320 need_lib_prefix=no
20321 need_version=no
20322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20323 soname_spec='${libname}${release}${shared_ext}$major'
20324 shlibpath_var=LD_LIBRARY_PATH
20325 shlibpath_overrides_runpath=yes
20326 hardcode_into_libs=yes
20327 if test "$with_gnu_ld" = yes; then
20328 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20329 else
20330 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20331 case $host_os in
20332 sco3.2v5*)
20333 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20334 ;;
20335 esac
20336 fi
20337 sys_lib_dlsearch_path_spec='/usr/lib'
20338 ;;
20339
20340 tpf*)
20341 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20342 version_type=linux
20343 need_lib_prefix=no
20344 need_version=no
20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346 shlibpath_var=LD_LIBRARY_PATH
20347 shlibpath_overrides_runpath=no
20348 hardcode_into_libs=yes
20349 ;;
20350
20351 uts4*)
20352 version_type=linux
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 ;;
20357
20358 *)
20359 dynamic_linker=no
20360 ;;
20361 esac
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20363 $as_echo "$dynamic_linker" >&6; }
20364 test "$dynamic_linker" = no && can_build_shared=no
20365
20366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20367 if test "$GCC" = yes; then
20368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20369 fi
20370
20371 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20372 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20373 fi
20374 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20375 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20376 fi
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20416 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20417 hardcode_action_CXX=
20418 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20419 test -n "$runpath_var_CXX" ||
20420 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20421
20422 # We can hardcode non-existent directories.
20423 if test "$hardcode_direct_CXX" != no &&
20424 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20425 # have to relink, otherwise we might link with an installed library
20426 # when we should be linking with a yet-to-be-installed one
20427 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20428 test "$hardcode_minus_L_CXX" != no; then
20429 # Linking always hardcodes the temporary library directory.
20430 hardcode_action_CXX=relink
20431 else
20432 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20433 hardcode_action_CXX=immediate
20434 fi
20435 else
20436 # We cannot hardcode anything, or else we can only hardcode existing
20437 # directories.
20438 hardcode_action_CXX=unsupported
20439 fi
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20441 $as_echo "$hardcode_action_CXX" >&6; }
20442
20443 if test "$hardcode_action_CXX" = relink ||
20444 test "$inherit_rpath_CXX" = yes; then
20445 # Fast installation is not supported
20446 enable_fast_install=no
20447 elif test "$shlibpath_overrides_runpath" = yes ||
20448 test "$enable_shared" = no; then
20449 # Fast installation is not necessary
20450 enable_fast_install=needless
20451 fi
20452
20453
20454
20455
20456
20457
20458
20459 fi # test -n "$compiler"
20460
20461 CC=$lt_save_CC
20462 LDCXX=$LD
20463 LD=$lt_save_LD
20464 GCC=$lt_save_GCC
20465 with_gnu_ld=$lt_save_with_gnu_ld
20466 lt_cv_path_LDCXX=$lt_cv_path_LD
20467 lt_cv_path_LD=$lt_save_path_LD
20468 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20469 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20470 fi # test "$_lt_caught_CXX_error" != yes
20471
20472 ac_ext=c
20473 ac_cpp='$CPP $CPPFLAGS'
20474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493 # Only expand once:
20494
20495
20496
20497
20498
20499 # Identify the assembler which will work hand-in-glove with the newly
20500 # built GCC, so that we can examine its features. This is the assembler
20501 # which will be driven by the driver program.
20502 #
20503 # If build != host, and we aren't building gas in-tree, we identify a
20504 # build->target assembler and hope that it will have the same features
20505 # as the host->target assembler we'll be using.
20506 gcc_cv_gas_major_version=
20507 gcc_cv_gas_minor_version=
20508 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20509
20510 if test "${gcc_cv_as+set}" = set; then :
20511
20512 else
20513
20514 if test -x "$DEFAULT_ASSEMBLER"; then
20515 gcc_cv_as="$DEFAULT_ASSEMBLER"
20516 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20517 && test -f ../gas/Makefile \
20518 && test x$build = x$host; then
20519 gcc_cv_as=../gas/as-new$build_exeext
20520 elif test -x as$build_exeext; then
20521 # Build using assembler in the current directory.
20522 gcc_cv_as=./as$build_exeext
20523 elif test -x $AS_FOR_TARGET; then
20524 gcc_cv_as="$AS_FOR_TARGET"
20525 else
20526 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20527 set dummy $AS_FOR_TARGET; ac_word=$2
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20529 $as_echo_n "checking for $ac_word... " >&6; }
20530 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20531 $as_echo_n "(cached) " >&6
20532 else
20533 case $gcc_cv_as in
20534 [\\/]* | ?:[\\/]*)
20535 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20536 ;;
20537 *)
20538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20539 for as_dir in $PATH
20540 do
20541 IFS=$as_save_IFS
20542 test -z "$as_dir" && as_dir=.
20543 for ac_exec_ext in '' $ac_executable_extensions; do
20544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20545 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20547 break 2
20548 fi
20549 done
20550 done
20551 IFS=$as_save_IFS
20552
20553 ;;
20554 esac
20555 fi
20556 gcc_cv_as=$ac_cv_path_gcc_cv_as
20557 if test -n "$gcc_cv_as"; then
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20559 $as_echo "$gcc_cv_as" >&6; }
20560 else
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20562 $as_echo "no" >&6; }
20563 fi
20564
20565
20566 fi
20567 fi
20568
20569 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20570
20571 case "$ORIGINAL_AS_FOR_TARGET" in
20572 ./as | ./as$build_exeext) ;;
20573 *) ac_config_files="$ac_config_files as:exec-tool.in"
20574 ;;
20575 esac
20576
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20578 $as_echo_n "checking what assembler to use... " >&6; }
20579 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20580 # Single tree build which includes gas. We want to prefer it
20581 # over whatever linker top-level may have detected, since
20582 # we'll use what we're building after installation anyway.
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20584 $as_echo "newly built gas" >&6; }
20585 in_tree_gas=yes
20586 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20587 for f in $gcc_cv_as_bfd_srcdir/configure \
20588 $gcc_cv_as_gas_srcdir/configure \
20589 $gcc_cv_as_gas_srcdir/configure.in \
20590 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20591 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20592 if test x$gcc_cv_gas_version != x; then
20593 break
20594 fi
20595 done
20596 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20597 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20598 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20599 case $gcc_cv_gas_patch_version in
20600 "") gcc_cv_gas_patch_version="0" ;;
20601 esac
20602 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20603 + $gcc_cv_gas_minor_version \) \* 1000 \
20604 + $gcc_cv_gas_patch_version`
20605
20606 in_tree_gas_is_elf=no
20607 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20608 || (grep 'obj_format = multi' ../gas/Makefile \
20609 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20610 then
20611 in_tree_gas_is_elf=yes
20612 fi
20613 else
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20615 $as_echo "$gcc_cv_as" >&6; }
20616 in_tree_gas=no
20617 fi
20618
20619 # Identify the linker which will work hand-in-glove with the newly
20620 # built GCC, so that we can examine its features. This is the linker
20621 # which will be driven by the driver program.
20622 #
20623 # If build != host, and we aren't building gas in-tree, we identify a
20624 # build->target linker and hope that it will have the same features
20625 # as the host->target linker we'll be using.
20626 gcc_cv_gld_major_version=
20627 gcc_cv_gld_minor_version=
20628 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20629 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20630
20631 if test "${gcc_cv_ld+set}" = set; then :
20632
20633 else
20634
20635 if test -x "$DEFAULT_LINKER"; then
20636 gcc_cv_ld="$DEFAULT_LINKER"
20637 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20638 && test -f ../ld/Makefile \
20639 && test x$build = x$host; then
20640 gcc_cv_ld=../ld/ld-new$build_exeext
20641 elif test -x collect-ld$build_exeext; then
20642 # Build using linker in the current directory.
20643 gcc_cv_ld=./collect-ld$build_exeext
20644 elif test -x $LD_FOR_TARGET; then
20645 gcc_cv_ld="$LD_FOR_TARGET"
20646 else
20647 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20648 set dummy $LD_FOR_TARGET; ac_word=$2
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20650 $as_echo_n "checking for $ac_word... " >&6; }
20651 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20652 $as_echo_n "(cached) " >&6
20653 else
20654 case $gcc_cv_ld in
20655 [\\/]* | ?:[\\/]*)
20656 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20657 ;;
20658 *)
20659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20660 for as_dir in $PATH
20661 do
20662 IFS=$as_save_IFS
20663 test -z "$as_dir" && as_dir=.
20664 for ac_exec_ext in '' $ac_executable_extensions; do
20665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20666 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20668 break 2
20669 fi
20670 done
20671 done
20672 IFS=$as_save_IFS
20673
20674 ;;
20675 esac
20676 fi
20677 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20678 if test -n "$gcc_cv_ld"; then
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20680 $as_echo "$gcc_cv_ld" >&6; }
20681 else
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20683 $as_echo "no" >&6; }
20684 fi
20685
20686
20687 fi
20688 fi
20689
20690 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20691 PLUGIN_LD=`basename $gcc_cv_ld`
20692
20693 # Check whether --with-plugin-ld was given.
20694 if test "${with_plugin_ld+set}" = set; then :
20695 withval=$with_plugin_ld; if test x"$withval" != x; then
20696 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20697 PLUGIN_LD="$withval"
20698 fi
20699 fi
20700
20701
20702
20703 cat >>confdefs.h <<_ACEOF
20704 #define PLUGIN_LD "$PLUGIN_LD"
20705 _ACEOF
20706
20707
20708 # Check to see if we are using gold instead of ld
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20710 $as_echo_n "checking whether we are using gold... " >&6; }
20711 ld_is_gold=no
20712 if test x$gcc_cv_ld != x; then
20713 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20714 | grep "GNU gold" > /dev/null; then
20715 ld_is_gold=yes
20716 fi
20717 fi
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20719 $as_echo "$ld_is_gold" >&6; }
20720
20721 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20722
20723 case "$ORIGINAL_LD_FOR_TARGET" in
20724 ./collect-ld | ./collect-ld$build_exeext) ;;
20725 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20726 ;;
20727 esac
20728
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20730 $as_echo_n "checking what linker to use... " >&6; }
20731 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20732 # Single tree build which includes ld. We want to prefer it
20733 # over whatever linker top-level may have detected, since
20734 # we'll use what we're building after installation anyway.
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20736 $as_echo "newly built ld" >&6; }
20737 in_tree_ld=yes
20738 in_tree_ld_is_elf=no
20739 if (grep 'EMUL = .*elf' ../ld/Makefile \
20740 || grep 'EMUL = .*linux' ../ld/Makefile \
20741 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20742 in_tree_ld_is_elf=yes
20743 fi
20744 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
20745 do
20746 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20747 if test x$gcc_cv_gld_version != x; then
20748 break
20749 fi
20750 done
20751 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20752 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20753 else
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20755 $as_echo "$gcc_cv_ld" >&6; }
20756 in_tree_ld=no
20757 fi
20758
20759 # Figure out what nm we will be using.
20760 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20761 if test "${gcc_cv_nm+set}" = set; then :
20762
20763 else
20764
20765 if test -f $gcc_cv_binutils_srcdir/configure.in \
20766 && test -f ../binutils/Makefile \
20767 && test x$build = x$host; then
20768 gcc_cv_nm=../binutils/nm-new$build_exeext
20769 elif test -x nm$build_exeext; then
20770 gcc_cv_nm=./nm$build_exeext
20771 elif test -x $NM_FOR_TARGET; then
20772 gcc_cv_nm="$NM_FOR_TARGET"
20773 else
20774 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20775 set dummy $NM_FOR_TARGET; ac_word=$2
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20777 $as_echo_n "checking for $ac_word... " >&6; }
20778 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20779 $as_echo_n "(cached) " >&6
20780 else
20781 case $gcc_cv_nm in
20782 [\\/]* | ?:[\\/]*)
20783 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20784 ;;
20785 *)
20786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20787 for as_dir in $PATH
20788 do
20789 IFS=$as_save_IFS
20790 test -z "$as_dir" && as_dir=.
20791 for ac_exec_ext in '' $ac_executable_extensions; do
20792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20793 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20795 break 2
20796 fi
20797 done
20798 done
20799 IFS=$as_save_IFS
20800
20801 ;;
20802 esac
20803 fi
20804 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20805 if test -n "$gcc_cv_nm"; then
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20807 $as_echo "$gcc_cv_nm" >&6; }
20808 else
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20810 $as_echo "no" >&6; }
20811 fi
20812
20813
20814 fi
20815 fi
20816
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20818 $as_echo_n "checking what nm to use... " >&6; }
20819 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20820 # Single tree build which includes binutils.
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20822 $as_echo "newly built nm" >&6; }
20823 in_tree_nm=yes
20824 else
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20826 $as_echo "$gcc_cv_nm" >&6; }
20827 in_tree_nm=no
20828 fi
20829
20830 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20831
20832 case "$ORIGINAL_NM_FOR_TARGET" in
20833 ./nm | ./nm$build_exeext) ;;
20834 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20835 ;;
20836 esac
20837
20838
20839 # Figure out what objdump we will be using.
20840 if test "${gcc_cv_objdump+set}" = set; then :
20841
20842 else
20843
20844 if test -f $gcc_cv_binutils_srcdir/configure.in \
20845 && test -f ../binutils/Makefile \
20846 && test x$build = x$host; then
20847 # Single tree build which includes binutils.
20848 gcc_cv_objdump=../binutils/objdump$build_exeext
20849 elif test -x objdump$build_exeext; then
20850 gcc_cv_objdump=./objdump$build_exeext
20851 elif test -x $OBJDUMP_FOR_TARGET; then
20852 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20853 else
20854 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20855 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20857 $as_echo_n "checking for $ac_word... " >&6; }
20858 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20859 $as_echo_n "(cached) " >&6
20860 else
20861 case $gcc_cv_objdump in
20862 [\\/]* | ?:[\\/]*)
20863 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20864 ;;
20865 *)
20866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20867 for as_dir in $PATH
20868 do
20869 IFS=$as_save_IFS
20870 test -z "$as_dir" && as_dir=.
20871 for ac_exec_ext in '' $ac_executable_extensions; do
20872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20873 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20875 break 2
20876 fi
20877 done
20878 done
20879 IFS=$as_save_IFS
20880
20881 ;;
20882 esac
20883 fi
20884 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20885 if test -n "$gcc_cv_objdump"; then
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20887 $as_echo "$gcc_cv_objdump" >&6; }
20888 else
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20890 $as_echo "no" >&6; }
20891 fi
20892
20893
20894 fi
20895 fi
20896
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20898 $as_echo_n "checking what objdump to use... " >&6; }
20899 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20900 # Single tree build which includes binutils.
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20902 $as_echo "newly built objdump" >&6; }
20903 elif test x$gcc_cv_objdump = x; then
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20905 $as_echo "not found" >&6; }
20906 else
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20908 $as_echo "$gcc_cv_objdump" >&6; }
20909 fi
20910
20911 # Figure out what readelf we will be using.
20912 if test "${gcc_cv_readelf+set}" = set; then :
20913
20914 else
20915
20916 if test -f $gcc_cv_binutils_srcdir/configure.in \
20917 && test -f ../binutils/Makefile \
20918 && test x$build = x$host; then
20919 # Single tree build which includes binutils.
20920 gcc_cv_readelf=../binutils/readelf$build_exeext
20921 elif test -x readelf$build_exeext; then
20922 gcc_cv_readelf=./readelf$build_exeext
20923 else
20924 # Extract the first word of "readelf", so it can be a program name with args.
20925 set dummy readelf; 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_readelf+set}" = set; then :
20929 $as_echo_n "(cached) " >&6
20930 else
20931 case $gcc_cv_readelf in
20932 [\\/]* | ?:[\\/]*)
20933 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # 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_readelf="$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_readelf=$ac_cv_path_gcc_cv_readelf
20955 if test -n "$gcc_cv_readelf"; then
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20957 $as_echo "$gcc_cv_readelf" >&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 readelf to use" >&5
20968 $as_echo_n "checking what readelf to use... " >&6; }
20969 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20970 # Single tree build which includes binutils.
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20972 $as_echo "newly built readelf" >&6; }
20973 elif test x$gcc_cv_readelf = x; then
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20975 $as_echo "not found" >&6; }
20976 else
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20978 $as_echo "$gcc_cv_readelf" >&6; }
20979 fi
20980
20981 # Figure out what assembler alignment features are present.
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20983 $as_echo_n "checking assembler flags... " >&6; }
20984 if test "${gcc_cv_as_flags+set}" = set; then :
20985 $as_echo_n "(cached) " >&6
20986 else
20987 case "$target" in
20988 i[34567]86-*-linux*)
20989 gcc_cv_as_flags="--32"
20990 ;;
20991 *)
20992 gcc_cv_as_flags=" "
20993 ;;
20994 esac
20995 fi
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20997 $as_echo "$gcc_cv_as_flags" >&6; }
20998
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21000 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21001 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21002 $as_echo_n "(cached) " >&6
21003 else
21004 gcc_cv_as_balign_and_p2align=no
21005 if test $in_tree_gas = yes; then
21006 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21007 then gcc_cv_as_balign_and_p2align=yes
21008 fi
21009 elif test x$gcc_cv_as != x; then
21010 echo '.balign 4
21011 .p2align 2' > conftest.s
21012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21014 (eval $ac_try) 2>&5
21015 ac_status=$?
21016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21017 test $ac_status = 0; }; }
21018 then
21019 gcc_cv_as_balign_and_p2align=yes
21020 else
21021 echo "configure: failed program was" >&5
21022 cat conftest.s >&5
21023 fi
21024 rm -f conftest.o conftest.s
21025 fi
21026 fi
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21028 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21029 if test $gcc_cv_as_balign_and_p2align = yes; then
21030
21031 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21032
21033 fi
21034
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21036 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21037 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21038 $as_echo_n "(cached) " >&6
21039 else
21040 gcc_cv_as_max_skip_p2align=no
21041 if test $in_tree_gas = yes; then
21042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21043 then gcc_cv_as_max_skip_p2align=yes
21044 fi
21045 elif test x$gcc_cv_as != x; then
21046 echo '.p2align 4,,7' > conftest.s
21047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21049 (eval $ac_try) 2>&5
21050 ac_status=$?
21051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21052 test $ac_status = 0; }; }
21053 then
21054 gcc_cv_as_max_skip_p2align=yes
21055 else
21056 echo "configure: failed program was" >&5
21057 cat conftest.s >&5
21058 fi
21059 rm -f conftest.o conftest.s
21060 fi
21061 fi
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21063 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21064 if test $gcc_cv_as_max_skip_p2align = yes; then
21065
21066 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21067
21068 fi
21069
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21071 $as_echo_n "checking assembler for .literal16... " >&6; }
21072 if test "${gcc_cv_as_literal16+set}" = set; then :
21073 $as_echo_n "(cached) " >&6
21074 else
21075 gcc_cv_as_literal16=no
21076 if test $in_tree_gas = yes; then
21077 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21078 then gcc_cv_as_literal16=yes
21079 fi
21080 elif test x$gcc_cv_as != x; then
21081 echo '.literal16' > conftest.s
21082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21084 (eval $ac_try) 2>&5
21085 ac_status=$?
21086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21087 test $ac_status = 0; }; }
21088 then
21089 gcc_cv_as_literal16=yes
21090 else
21091 echo "configure: failed program was" >&5
21092 cat conftest.s >&5
21093 fi
21094 rm -f conftest.o conftest.s
21095 fi
21096 fi
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21098 $as_echo "$gcc_cv_as_literal16" >&6; }
21099 if test $gcc_cv_as_literal16 = yes; then
21100
21101 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21102
21103 fi
21104
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21106 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21107 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21108 $as_echo_n "(cached) " >&6
21109 else
21110 gcc_cv_as_subsection_m1=no
21111 if test $in_tree_gas = yes; then
21112 if test $in_tree_gas_is_elf = yes \
21113 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21114 then gcc_cv_as_subsection_m1=yes
21115 fi
21116 elif test x$gcc_cv_as != x; then
21117 echo 'conftest_label1: .word 0
21118 .subsection -1
21119 conftest_label2: .word 0
21120 .previous' > conftest.s
21121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21123 (eval $ac_try) 2>&5
21124 ac_status=$?
21125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21126 test $ac_status = 0; }; }
21127 then
21128 if test x$gcc_cv_nm != x; then
21129 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21130 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21131 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21132 then :
21133 else gcc_cv_as_subsection_m1=yes
21134 fi
21135 rm -f conftest.nm1 conftest.nm2
21136 fi
21137 else
21138 echo "configure: failed program was" >&5
21139 cat conftest.s >&5
21140 fi
21141 rm -f conftest.o conftest.s
21142 fi
21143 fi
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21145 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21146 if test $gcc_cv_as_subsection_m1 = yes; then
21147
21148 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21149
21150 fi
21151
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21153 $as_echo_n "checking assembler for .weak... " >&6; }
21154 if test "${gcc_cv_as_weak+set}" = set; then :
21155 $as_echo_n "(cached) " >&6
21156 else
21157 gcc_cv_as_weak=no
21158 if test $in_tree_gas = yes; then
21159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21160 then gcc_cv_as_weak=yes
21161 fi
21162 elif test x$gcc_cv_as != x; then
21163 echo ' .weak foobar' > conftest.s
21164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21166 (eval $ac_try) 2>&5
21167 ac_status=$?
21168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21169 test $ac_status = 0; }; }
21170 then
21171 gcc_cv_as_weak=yes
21172 else
21173 echo "configure: failed program was" >&5
21174 cat conftest.s >&5
21175 fi
21176 rm -f conftest.o conftest.s
21177 fi
21178 fi
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21180 $as_echo "$gcc_cv_as_weak" >&6; }
21181 if test $gcc_cv_as_weak = yes; then
21182
21183 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21184
21185 fi
21186
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21188 $as_echo_n "checking assembler for .weakref... " >&6; }
21189 if test "${gcc_cv_as_weakref+set}" = set; then :
21190 $as_echo_n "(cached) " >&6
21191 else
21192 gcc_cv_as_weakref=no
21193 if test $in_tree_gas = yes; then
21194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21195 then gcc_cv_as_weakref=yes
21196 fi
21197 elif test x$gcc_cv_as != x; then
21198 echo ' .weakref foobar, barfnot' > conftest.s
21199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21204 test $ac_status = 0; }; }
21205 then
21206 gcc_cv_as_weakref=yes
21207 else
21208 echo "configure: failed program was" >&5
21209 cat conftest.s >&5
21210 fi
21211 rm -f conftest.o conftest.s
21212 fi
21213 fi
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21215 $as_echo "$gcc_cv_as_weakref" >&6; }
21216 if test $gcc_cv_as_weakref = yes; then
21217
21218 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21219
21220 fi
21221
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21223 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21224 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21225 $as_echo_n "(cached) " >&6
21226 else
21227 gcc_cv_as_nsubspa_comdat=no
21228 if test $in_tree_gas = yes; then
21229 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21230 then gcc_cv_as_nsubspa_comdat=yes
21231 fi
21232 elif test x$gcc_cv_as != x; then
21233 echo ' .SPACE $TEXT$
21234 .NSUBSPA $CODE$,COMDAT' > conftest.s
21235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21237 (eval $ac_try) 2>&5
21238 ac_status=$?
21239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21240 test $ac_status = 0; }; }
21241 then
21242 gcc_cv_as_nsubspa_comdat=yes
21243 else
21244 echo "configure: failed program was" >&5
21245 cat conftest.s >&5
21246 fi
21247 rm -f conftest.o conftest.s
21248 fi
21249 fi
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21251 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21252 if test $gcc_cv_as_nsubspa_comdat = yes; then
21253
21254 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21255
21256 fi
21257
21258 # .hidden needs to be supported in both the assembler and the linker,
21259 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21260 # This is irritatingly difficult to feature test for; we have to check the
21261 # date string after the version number. If we've got an in-tree
21262 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21263 # to be safe.
21264 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21266 $as_echo_n "checking assembler for .hidden... " >&6; }
21267 if test "${gcc_cv_as_hidden+set}" = set; then :
21268 $as_echo_n "(cached) " >&6
21269 else
21270 gcc_cv_as_hidden=no
21271 if test $in_tree_gas = yes; then
21272 if test $in_tree_gas_is_elf = yes \
21273 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21274 then gcc_cv_as_hidden=yes
21275 fi
21276 elif test x$gcc_cv_as != x; then
21277 echo ' .hidden foobar
21278 foobar:' > conftest.s
21279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21284 test $ac_status = 0; }; }
21285 then
21286
21287 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21288 # STV_HIDDEN, so disable .hidden support if so.
21289 case "${target}" in
21290 i?86-*-solaris2*)
21291 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21292 cat > conftest.s <<EOF
21293 .globl hidden
21294 .hidden hidden
21295 hidden:
21296 .globl default
21297 .set default,hidden
21298 EOF
21299 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21300 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21301 grep '\.hidden default' > /dev/null; then
21302 gcc_cv_as_hidden=no
21303 else
21304 gcc_cv_as_hidden=yes
21305 fi
21306 else
21307 # Assume bug is present if objdump is missing.
21308 gcc_cv_as_hidden=no
21309 fi
21310 ;;
21311 *)
21312 gcc_cv_as_hidden=yes
21313 ;;
21314 esac
21315 else
21316 echo "configure: failed program was" >&5
21317 cat conftest.s >&5
21318 fi
21319 rm -f conftest.o conftest.s
21320 fi
21321 fi
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21323 $as_echo "$gcc_cv_as_hidden" >&6; }
21324
21325
21326 if test $in_tree_ld != yes ; then
21327 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21328 if test x"$ld_is_gold" = xyes; then
21329 gcc_cv_ld_hidden=yes
21330 elif echo "$ld_ver" | grep GNU > /dev/null; then
21331 ld_vers=`echo $ld_ver | sed -n \
21332 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21333 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'`
21334 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21335 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21336 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21337 else
21338 case "${target}" in
21339 *-*-solaris2*)
21340 #
21341 # Solaris 2 ld -V output looks like this for a regular version:
21342 #
21343 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21344 #
21345 # but test versions add stuff at the end:
21346 #
21347 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21348 #
21349 ld_ver=`$gcc_cv_ld -V 2>&1`
21350 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21351 ld_vers=`echo $ld_ver | sed -n \
21352 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21353 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21354 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21355 fi
21356 ;;
21357 esac
21358 fi
21359 fi
21360
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21362 $as_echo_n "checking linker for .hidden support... " >&6; }
21363 if test "${gcc_cv_ld_hidden+set}" = set; then :
21364 $as_echo_n "(cached) " >&6
21365 else
21366 if test $in_tree_ld = yes ; then
21367 gcc_cv_ld_hidden=no
21368 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 \
21369 && test $in_tree_ld_is_elf = yes; then
21370 gcc_cv_ld_hidden=yes
21371 fi
21372 else
21373 gcc_cv_ld_hidden=yes
21374 if echo "$ld_ver" | grep GNU > /dev/null; then
21375 if test 0"$ld_date" -lt 20020404; then
21376 if test -n "$ld_date"; then
21377 # If there was date string, but was earlier than 2002-04-04, fail
21378 gcc_cv_ld_hidden=no
21379 elif test -z "$ld_vers"; then
21380 # If there was no date string nor ld version number, something is wrong
21381 gcc_cv_ld_hidden=no
21382 else
21383 test -z "$ld_vers_patch" && ld_vers_patch=0
21384 if test "$ld_vers_major" -lt 2; then
21385 gcc_cv_ld_hidden=no
21386 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21387 gcc_cv_ld_hidden="no"
21388 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21389 gcc_cv_ld_hidden=no
21390 fi
21391 fi
21392 fi
21393 else
21394 case "${target}" in
21395 hppa64*-*-hpux* | ia64*-*-hpux*)
21396 gcc_cv_ld_hidden=yes
21397 ;;
21398 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21399 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21400 # .symbolic was only added in Solaris 9 12/02.
21401 gcc_cv_ld_hidden=yes
21402 ;;
21403 *)
21404 gcc_cv_ld_hidden=no
21405 ;;
21406 esac
21407 fi
21408 fi
21409 fi
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21411 $as_echo "$gcc_cv_ld_hidden" >&6; }
21412 libgcc_visibility=no
21413
21414
21415 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21416 libgcc_visibility=yes
21417
21418 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21419
21420 fi
21421
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21423 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21424 gcc_cv_ld_ro_rw_mix=unknown
21425 if test $in_tree_ld = yes ; then
21426 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 \
21427 && test $in_tree_ld_is_elf = yes; then
21428 gcc_cv_ld_ro_rw_mix=read-write
21429 fi
21430 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21431 echo '.section myfoosect, "a"' > conftest1.s
21432 echo '.section myfoosect, "aw"' > conftest2.s
21433 echo '.byte 1' >> conftest2.s
21434 echo '.section myfoosect, "a"' > conftest3.s
21435 echo '.byte 0' >> conftest3.s
21436 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21437 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21438 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21439 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21440 conftest2.o conftest3.o > /dev/null 2>&1; then
21441 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21442 | sed -e '/myfoosect/!d' -e N`
21443 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21444 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21445 gcc_cv_ld_ro_rw_mix=read-only
21446 else
21447 gcc_cv_ld_ro_rw_mix=read-write
21448 fi
21449 fi
21450 fi
21451 rm -f conftest.* conftest[123].*
21452 fi
21453 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21454
21455 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21456
21457 fi
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21459 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21460
21461 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21463 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21464 if test "${gcc_cv_as_leb128+set}" = set; then :
21465 $as_echo_n "(cached) " >&6
21466 else
21467 gcc_cv_as_leb128=no
21468 if test $in_tree_gas = yes; then
21469 if test $in_tree_gas_is_elf = yes \
21470 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21471 then gcc_cv_as_leb128=yes
21472 fi
21473 elif test x$gcc_cv_as != x; then
21474 echo ' .data
21475 .uleb128 L2 - L1
21476 L1:
21477 .uleb128 1280
21478 .sleb128 -1010
21479 L2:' > conftest.s
21480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21485 test $ac_status = 0; }; }
21486 then
21487 # GAS versions before 2.11 do not support uleb128,
21488 # despite appearing to.
21489 # ??? There exists an elf-specific test that will crash
21490 # the assembler. Perhaps it's better to figure out whether
21491 # arbitrary sections are supported and try the test.
21492 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21493 if echo "$as_ver" | grep GNU > /dev/null; then
21494 as_vers=`echo $as_ver | sed -n \
21495 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21496 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21497 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21498 if test $as_major -eq 2 && test $as_minor -lt 11
21499 then :
21500 else gcc_cv_as_leb128=yes
21501 fi
21502 fi
21503 else
21504 echo "configure: failed program was" >&5
21505 cat conftest.s >&5
21506 fi
21507 rm -f conftest.o conftest.s
21508 fi
21509 fi
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21511 $as_echo "$gcc_cv_as_leb128" >&6; }
21512 if test $gcc_cv_as_leb128 = yes; then
21513
21514 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21515
21516 fi
21517
21518 # Check if we have assembler support for unwind directives.
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21520 $as_echo_n "checking assembler for cfi directives... " >&6; }
21521 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21522 $as_echo_n "(cached) " >&6
21523 else
21524 gcc_cv_as_cfi_directive=no
21525 if test x$gcc_cv_as != x; then
21526 echo ' .text
21527 .cfi_startproc
21528 .cfi_offset 0, 0
21529 .cfi_same_value 1
21530 .cfi_def_cfa 1, 2
21531 .cfi_escape 1, 2, 3, 4, 5
21532 .cfi_endproc' > conftest.s
21533 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21535 (eval $ac_try) 2>&5
21536 ac_status=$?
21537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21538 test $ac_status = 0; }; }
21539 then
21540 case "$target" in
21541 *-*-solaris*)
21542 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21543 # read-only and read-write sections, we need to make sure that the
21544 # assembler used emits read-write .eh_frame sections.
21545 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21546 if test "x$gcc_cv_objdump" != x; then
21547 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21548 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21549 gcc_cv_as_cfi_directive=no
21550 else
21551 case "$target" in
21552 i?86-*-solaris2.1[0-9]*)
21553 # On Solaris/x86, make sure that GCC and gas agree on using
21554 # read-only .eh_frame sections for 64-bit.
21555 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21556 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21557 sed -e /.eh_frame/!d -e N | \
21558 grep READONLY > /dev/null; then
21559 gcc_cv_as_cfi_directive=yes
21560 else
21561 gcc_cv_as_cfi_directive=no
21562 fi
21563 ;;
21564 *)
21565 gcc_cv_as_cfi_directive=yes
21566 ;;
21567 esac
21568 fi
21569 else
21570 # no objdump, err on the side of caution
21571 gcc_cv_as_cfi_directive=no
21572 fi
21573 else
21574 gcc_cv_as_cfi_directive=yes
21575 fi
21576 ;;
21577 *-*-*)
21578 gcc_cv_as_cfi_directive=yes
21579 ;;
21580 esac
21581 else
21582 echo "configure: failed program was" >&5
21583 cat conftest.s >&5
21584 fi
21585 rm -f conftest.o conftest.s
21586 fi
21587 fi
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21589 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21590
21591 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21593 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21594 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21595 $as_echo_n "(cached) " >&6
21596 else
21597 gcc_cv_as_cfi_advance_working=no
21598 if test x$gcc_cv_as != x; then
21599 echo ' .text
21600 .cfi_startproc
21601 .cfi_adjust_cfa_offset 64
21602 .skip 75040, 0
21603 .cfi_adjust_cfa_offset 128
21604 .cfi_endproc' > conftest.s
21605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21610 test $ac_status = 0; }; }
21611 then
21612
21613 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
21614 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21615 gcc_cv_as_cfi_advance_working=yes
21616 fi
21617
21618 else
21619 echo "configure: failed program was" >&5
21620 cat conftest.s >&5
21621 fi
21622 rm -f conftest.o conftest.s
21623 fi
21624 fi
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21626 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21627
21628 else
21629 # no objdump, err on the side of caution
21630 gcc_cv_as_cfi_advance_working=no
21631 fi
21632
21633 cat >>confdefs.h <<_ACEOF
21634 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21635 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21636 _ACEOF
21637
21638
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21640 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21641 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21642 $as_echo_n "(cached) " >&6
21643 else
21644 gcc_cv_as_cfi_personality_directive=no
21645 if test x$gcc_cv_as != x; then
21646 echo ' .text
21647 .cfi_startproc
21648 .cfi_personality 0, symbol
21649 .cfi_endproc' > conftest.s
21650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21655 test $ac_status = 0; }; }
21656 then
21657 gcc_cv_as_cfi_personality_directive=yes
21658 else
21659 echo "configure: failed program was" >&5
21660 cat conftest.s >&5
21661 fi
21662 rm -f conftest.o conftest.s
21663 fi
21664 fi
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21666 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21667
21668
21669 cat >>confdefs.h <<_ACEOF
21670 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21671 then echo 1; else echo 0; fi`
21672 _ACEOF
21673
21674
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21676 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21677 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21678 $as_echo_n "(cached) " >&6
21679 else
21680 gcc_cv_as_cfi_sections_directive=no
21681 if test x$gcc_cv_as != x; then
21682 echo ' .text
21683 .cfi_sections .debug_frame, .eh_frame
21684 .cfi_startproc
21685 .cfi_endproc' > conftest.s
21686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21691 test $ac_status = 0; }; }
21692 then
21693 case $target_os in
21694 win32 | pe | cygwin* | mingw32* | uwin*)
21695 # Need to check that we generated the correct relocation for the
21696 # .debug_frame section. This was fixed for binutils 2.21.
21697 gcc_cv_as_cfi_sections_directive=no
21698 if test "x$gcc_cv_objdump" != x; then
21699 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
21700 grep secrel > /dev/null; then
21701 gcc_cv_as_cfi_sections_directive=yes
21702 fi
21703 fi
21704 ;;
21705 *)
21706 gcc_cv_as_cfi_sections_directive=yes
21707 ;;
21708 esac
21709 else
21710 echo "configure: failed program was" >&5
21711 cat conftest.s >&5
21712 fi
21713 rm -f conftest.o conftest.s
21714 fi
21715 fi
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21717 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21718
21719
21720 cat >>confdefs.h <<_ACEOF
21721 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21722 then echo 1; else echo 0; fi`
21723 _ACEOF
21724
21725
21726 # GAS versions up to and including 2.11.0 may mis-optimize
21727 # .eh_frame data.
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21729 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21730 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21731 $as_echo_n "(cached) " >&6
21732 else
21733 gcc_cv_as_eh_frame=no
21734 if test $in_tree_gas = yes; then
21735 if test $in_tree_gas_is_elf = yes \
21736 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21737 then gcc_cv_as_eh_frame=yes
21738 fi
21739 elif test x$gcc_cv_as != x; then
21740 echo ' .text
21741 .LFB1:
21742 .4byte 0
21743 .L1:
21744 .4byte 0
21745 .LFE1:
21746 .section .eh_frame,"aw",@progbits
21747 __FRAME_BEGIN__:
21748 .4byte .LECIE1-.LSCIE1
21749 .LSCIE1:
21750 .4byte 0x0
21751 .byte 0x1
21752 .ascii "z\0"
21753 .byte 0x1
21754 .byte 0x78
21755 .byte 0x1a
21756 .byte 0x0
21757 .byte 0x4
21758 .4byte 1
21759 .p2align 1
21760 .LECIE1:
21761 .LSFDE1:
21762 .4byte .LEFDE1-.LASFDE1
21763 .LASFDE1:
21764 .4byte .LASFDE1-__FRAME_BEGIN__
21765 .4byte .LFB1
21766 .4byte .LFE1-.LFB1
21767 .byte 0x4
21768 .4byte .LFE1-.LFB1
21769 .byte 0x4
21770 .4byte .L1-.LFB1
21771 .LEFDE1:' > conftest.s
21772 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21774 (eval $ac_try) 2>&5
21775 ac_status=$?
21776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21777 test $ac_status = 0; }; }
21778 then
21779 cat > conftest.lit <<EOF
21780 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21781 0010 01000000 12000000 18000000 00000000 ................
21782 0020 08000000 04080000 0044 .........D
21783 EOF
21784 cat > conftest.big <<EOF
21785 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21786 0010 00000001 00000012 00000018 00000000 ................
21787 0020 00000008 04000000 0844 .........D
21788 EOF
21789 # If the assembler didn't choke, and we can objdump,
21790 # and we got the correct data, then succeed.
21791 # The text in the here-document typically retains its unix-style line
21792 # endings, while the output of objdump will use host line endings.
21793 # Therefore, use diff -b for the comparisons.
21794 if test x$gcc_cv_objdump != x \
21795 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21796 | tail -3 > conftest.got \
21797 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21798 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21799 then
21800 gcc_cv_as_eh_frame=yes
21801 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21803 (eval $ac_try) 2>&5
21804 ac_status=$?
21805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21806 test $ac_status = 0; }; }; then
21807 gcc_cv_as_eh_frame=buggy
21808 else
21809 # Uh oh, what do we do now?
21810 gcc_cv_as_eh_frame=no
21811 fi
21812 else
21813 echo "configure: failed program was" >&5
21814 cat conftest.s >&5
21815 fi
21816 rm -f conftest.o conftest.s
21817 fi
21818 fi
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21820 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21821
21822
21823 if test $gcc_cv_as_eh_frame = buggy; then
21824
21825 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21826
21827 fi
21828
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21830 $as_echo_n "checking assembler for section merging support... " >&6; }
21831 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21832 $as_echo_n "(cached) " >&6
21833 else
21834 gcc_cv_as_shf_merge=no
21835 if test $in_tree_gas = yes; then
21836 if test $in_tree_gas_is_elf = yes \
21837 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21838 then gcc_cv_as_shf_merge=yes
21839 fi
21840 elif test x$gcc_cv_as != x; then
21841 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21844 (eval $ac_try) 2>&5
21845 ac_status=$?
21846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21847 test $ac_status = 0; }; }
21848 then
21849 gcc_cv_as_shf_merge=yes
21850 else
21851 echo "configure: failed program was" >&5
21852 cat conftest.s >&5
21853 fi
21854 rm -f conftest.o conftest.s
21855 fi
21856 fi
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21858 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21859
21860 if test $gcc_cv_as_shf_merge = no; then
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21862 $as_echo_n "checking assembler for section merging support... " >&6; }
21863 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21864 $as_echo_n "(cached) " >&6
21865 else
21866 gcc_cv_as_shf_merge=no
21867 if test $in_tree_gas = yes; then
21868 if test $in_tree_gas_is_elf = yes \
21869 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21870 then gcc_cv_as_shf_merge=yes
21871 fi
21872 elif test x$gcc_cv_as != x; then
21873 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21874 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21876 (eval $ac_try) 2>&5
21877 ac_status=$?
21878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21879 test $ac_status = 0; }; }
21880 then
21881 gcc_cv_as_shf_merge=yes
21882 else
21883 echo "configure: failed program was" >&5
21884 cat conftest.s >&5
21885 fi
21886 rm -f conftest.o conftest.s
21887 fi
21888 fi
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21890 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21891
21892 fi
21893
21894 cat >>confdefs.h <<_ACEOF
21895 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21896 _ACEOF
21897
21898
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21900 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21901 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21902 $as_echo_n "(cached) " >&6
21903 else
21904 gcc_cv_as_comdat_group=no
21905 if test $in_tree_gas = yes; then
21906 if test $in_tree_gas_is_elf = yes \
21907 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21908 then gcc_cv_as_comdat_group=yes
21909 fi
21910 elif test x$gcc_cv_as != x; then
21911 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21914 (eval $ac_try) 2>&5
21915 ac_status=$?
21916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21917 test $ac_status = 0; }; }
21918 then
21919 gcc_cv_as_comdat_group=yes
21920 else
21921 echo "configure: failed program was" >&5
21922 cat conftest.s >&5
21923 fi
21924 rm -f conftest.o conftest.s
21925 fi
21926 fi
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21928 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21929
21930 if test $gcc_cv_as_comdat_group = yes; then
21931 gcc_cv_as_comdat_group_percent=no
21932 else
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21934 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21935 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21936 $as_echo_n "(cached) " >&6
21937 else
21938 gcc_cv_as_comdat_group_percent=no
21939 if test $in_tree_gas = yes; then
21940 if test $in_tree_gas_is_elf = yes \
21941 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21942 then gcc_cv_as_comdat_group_percent=yes
21943 fi
21944 elif test x$gcc_cv_as != x; then
21945 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21951 test $ac_status = 0; }; }
21952 then
21953 gcc_cv_as_comdat_group_percent=yes
21954 else
21955 echo "configure: failed program was" >&5
21956 cat conftest.s >&5
21957 fi
21958 rm -f conftest.o conftest.s
21959 fi
21960 fi
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21962 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21963
21964 fi
21965 if test x"$ld_is_gold" = xyes; then
21966 comdat_group=yes
21967 elif test $in_tree_ld = yes ; then
21968 comdat_group=no
21969 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 \
21970 && test $in_tree_ld_is_elf = yes; then
21971 comdat_group=yes
21972 fi
21973 elif echo "$ld_ver" | grep GNU > /dev/null; then
21974 comdat_group=yes
21975 if test 0"$ld_date" -lt 20050308; then
21976 if test -n "$ld_date"; then
21977 # If there was date string, but was earlier than 2005-03-08, fail
21978 comdat_group=no
21979 elif test "$ld_vers_major" -lt 2; then
21980 comdat_group=no
21981 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21982 comdat_group=no
21983 fi
21984 fi
21985 else
21986 case "${target}" in
21987 *-*-solaris2.1[1-9]*)
21988 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21989 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21990 # version 1.688.
21991 #
21992 # FIXME: Maybe need to refine later when COMDAT group support with
21993 # Sun as is implemented.
21994 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
21995 comdat_group=yes
21996 else
21997 comdat_group=no
21998 fi
21999 ;;
22000 *)
22001 # Assume linkers other than GNU ld don't support COMDAT group.
22002 comdat_group=no
22003 ;;
22004 esac
22005 fi
22006 # Allow overriding the automatic COMDAT group tests above.
22007 # Check whether --enable-comdat was given.
22008 if test "${enable_comdat+set}" = set; then :
22009 enableval=$enable_comdat; comdat_group="$enable_comdat"
22010 fi
22011
22012 if test $comdat_group = no; then
22013 gcc_cv_as_comdat_group=no
22014 gcc_cv_as_comdat_group_percent=no
22015 fi
22016
22017 cat >>confdefs.h <<_ACEOF
22018 #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`
22019 _ACEOF
22020
22021
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22023 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22024 if test "${gcc_cv_as_discriminator+set}" = set; then :
22025 $as_echo_n "(cached) " >&6
22026 else
22027 gcc_cv_as_discriminator=no
22028 if test $in_tree_gas = yes; then
22029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22030 then gcc_cv_as_discriminator=yes
22031 fi
22032 elif test x$gcc_cv_as != x; then
22033 echo ' .text
22034 .file 1 "conf.c"
22035 .loc 1 1 0 discriminator 1' > conftest.s
22036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22038 (eval $ac_try) 2>&5
22039 ac_status=$?
22040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22041 test $ac_status = 0; }; }
22042 then
22043 gcc_cv_as_discriminator=yes
22044 else
22045 echo "configure: failed program was" >&5
22046 cat conftest.s >&5
22047 fi
22048 rm -f conftest.o conftest.s
22049 fi
22050 fi
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22052 $as_echo "$gcc_cv_as_discriminator" >&6; }
22053 if test $gcc_cv_as_discriminator = yes; then
22054
22055 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22056
22057 fi
22058
22059 # Thread-local storage - the check is heavily parameterized.
22060 conftest_s=
22061 tls_first_major=
22062 tls_first_minor=
22063 tls_as_opt=
22064 case "$target" in
22065 alpha*-*-*)
22066 conftest_s='
22067 .section ".tdata","awT",@progbits
22068 foo: .long 25
22069 .text
22070 ldq $27,__tls_get_addr($29) !literal!1
22071 lda $16,foo($29) !tlsgd!1
22072 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22073 ldq $27,__tls_get_addr($29) !literal!2
22074 lda $16,foo($29) !tlsldm!2
22075 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22076 ldq $1,foo($29) !gotdtprel
22077 ldah $2,foo($29) !dtprelhi
22078 lda $3,foo($2) !dtprello
22079 lda $4,foo($29) !dtprel
22080 ldq $1,foo($29) !gottprel
22081 ldah $2,foo($29) !tprelhi
22082 lda $3,foo($2) !tprello
22083 lda $4,foo($29) !tprel'
22084 tls_first_major=2
22085 tls_first_minor=13
22086 tls_as_opt=--fatal-warnings
22087 ;;
22088 cris-*-*|crisv32-*-*)
22089 conftest_s='
22090 .section ".tdata","awT",@progbits
22091 x: .long 25
22092 .text
22093 move.d x:IE,$r10
22094 nop'
22095 tls_first_major=2
22096 tls_first_minor=20
22097 tls_as_opt=--fatal-warnings
22098 ;;
22099 frv*-*-*)
22100 conftest_s='
22101 .section ".tdata","awT",@progbits
22102 x: .long 25
22103 .text
22104 call #gettlsoff(x)'
22105 tls_first_major=2
22106 tls_first_minor=14
22107 ;;
22108 hppa*-*-linux*)
22109 conftest_s='
22110 t1: .reg %r20
22111 t2: .reg %r21
22112 gp: .reg %r19
22113 .section ".tdata","awT",@progbits
22114 foo: .long 25
22115 .text
22116 .align 4
22117 addil LT%foo-$tls_gdidx$,gp
22118 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22119 b __tls_get_addr
22120 nop
22121 addil LT%foo-$tls_ldidx$,gp
22122 b __tls_get_addr
22123 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22124 addil LR%foo-$tls_dtpoff$,%ret0
22125 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22126 mfctl %cr27,%t1
22127 addil LT%foo-$tls_ieoff$,gp
22128 ldw RT%foo-$tls_ieoff$(%r1),%t2
22129 add %t1,%t2,%t3
22130 mfctl %cr27,%t1
22131 addil LR%foo-$tls_leoff$,%t1
22132 ldo RR%foo-$tls_leoff$(%r1),%t2'
22133 tls_first_major=2
22134 tls_first_minor=15
22135 tls_as_opt=--fatal-warnings
22136 ;;
22137 arm*-*-*)
22138 conftest_s='
22139 .section ".tdata","awT",%progbits
22140 foo: .long 25
22141 .text
22142 .word foo(gottpoff)
22143 .word foo(tpoff)
22144 .word foo(tlsgd)
22145 .word foo(tlsldm)
22146 .word foo(tlsldo)'
22147 tls_first_major=2
22148 tls_first_minor=17
22149 ;;
22150 i[34567]86-*-*)
22151 case "$target" in
22152 i[34567]86-*-solaris2.*)
22153 on_solaris=yes
22154 tga_func=___tls_get_addr
22155 ;;
22156 *)
22157 on_solaris=no
22158 ;;
22159 esac
22160 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22161 conftest_s='
22162 .section .tdata,"awt",@progbits'
22163 tls_first_major=0
22164 tls_first_minor=0
22165
22166 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22167
22168 else
22169 conftest_s='
22170 .section ".tdata","awT",@progbits'
22171 tls_first_major=2
22172 tls_first_minor=14
22173 tls_as_opt="--fatal-warnings"
22174 fi
22175 conftest_s="$conftest_s
22176 foo: .long 25
22177 .text
22178 movl %gs:0, %eax
22179 leal foo@tlsgd(,%ebx,1), %eax
22180 leal foo@tlsldm(%ebx), %eax
22181 leal foo@dtpoff(%eax), %edx
22182 movl foo@gottpoff(%ebx), %eax
22183 subl foo@gottpoff(%ebx), %eax
22184 addl foo@gotntpoff(%ebx), %eax
22185 movl foo@indntpoff, %eax
22186 movl \$foo@tpoff, %eax
22187 subl \$foo@tpoff, %eax
22188 leal foo@ntpoff(%ecx), %eax"
22189 ;;
22190 x86_64-*-*)
22191 conftest_s='
22192 .section ".tdata","awT",@progbits
22193 foo: .long 25
22194 .text
22195 movq %fs:0, %rax
22196 leaq foo@TLSGD(%rip), %rdi
22197 leaq foo@TLSLD(%rip), %rdi
22198 leaq foo@DTPOFF(%rax), %rdx
22199 movq foo@GOTTPOFF(%rip), %rax
22200 movq $foo@TPOFF, %rax'
22201 tls_first_major=2
22202 tls_first_minor=14
22203 tls_as_opt=--fatal-warnings
22204 ;;
22205 ia64-*-*)
22206 conftest_s='
22207 .section ".tdata","awT",@progbits
22208 foo: data8 25
22209 .text
22210 addl r16 = @ltoff(@dtpmod(foo#)), gp
22211 addl r17 = @ltoff(@dtprel(foo#)), gp
22212 addl r18 = @ltoff(@tprel(foo#)), gp
22213 addl r19 = @dtprel(foo#), gp
22214 adds r21 = @dtprel(foo#), r13
22215 movl r23 = @dtprel(foo#)
22216 addl r20 = @tprel(foo#), gp
22217 adds r22 = @tprel(foo#), r13
22218 movl r24 = @tprel(foo#)'
22219 tls_first_major=2
22220 tls_first_minor=13
22221 tls_as_opt=--fatal-warnings
22222 ;;
22223 mips*-*-*)
22224 conftest_s='
22225 .section .tdata,"awT",@progbits
22226 x:
22227 .word 2
22228 .text
22229 addiu $4, $28, %tlsgd(x)
22230 addiu $4, $28, %tlsldm(x)
22231 lui $4, %dtprel_hi(x)
22232 addiu $4, $4, %dtprel_lo(x)
22233 lw $4, %gottprel(x)($28)
22234 lui $4, %tprel_hi(x)
22235 addiu $4, $4, %tprel_lo(x)'
22236 tls_first_major=2
22237 tls_first_minor=16
22238 tls_as_opt='-32 --fatal-warnings'
22239 ;;
22240 m68k-*-*)
22241 conftest_s='
22242 .section .tdata,"awT",@progbits
22243 x:
22244 .word 2
22245 .text
22246 foo:
22247 move.l x@TLSGD(%a5),%a0
22248 move.l x@TLSLDM(%a5),%a0
22249 move.l x@TLSLDO(%a5),%a0
22250 move.l x@TLSIE(%a5),%a0
22251 move.l x@TLSLE(%a5),%a0'
22252 tls_first_major=2
22253 tls_first_minor=19
22254 tls_as_opt='--fatal-warnings'
22255 ;;
22256 powerpc-*-*)
22257 conftest_s='
22258 .section ".tdata","awT",@progbits
22259 .align 2
22260 ld0: .space 4
22261 ld1: .space 4
22262 x1: .space 4
22263 x2: .space 4
22264 x3: .space 4
22265 .text
22266 addi 3,31,ld0@got@tlsgd
22267 bl __tls_get_addr
22268 addi 3,31,x1@got@tlsld
22269 bl __tls_get_addr
22270 addi 9,3,x1@dtprel
22271 addis 9,3,x2@dtprel@ha
22272 addi 9,9,x2@dtprel@l
22273 lwz 9,x3@got@tprel(31)
22274 add 9,9,x@tls
22275 addi 9,2,x1@tprel
22276 addis 9,2,x2@tprel@ha
22277 addi 9,9,x2@tprel@l'
22278 tls_first_major=2
22279 tls_first_minor=14
22280 tls_as_opt="-a32 --fatal-warnings"
22281 ;;
22282 powerpc64-*-*)
22283 conftest_s='
22284 .section ".tdata","awT",@progbits
22285 .align 3
22286 ld0: .space 8
22287 ld1: .space 8
22288 x1: .space 8
22289 x2: .space 8
22290 x3: .space 8
22291 .text
22292 addi 3,2,ld0@got@tlsgd
22293 bl .__tls_get_addr
22294 nop
22295 addi 3,2,ld1@toc
22296 bl .__tls_get_addr
22297 nop
22298 addi 3,2,x1@got@tlsld
22299 bl .__tls_get_addr
22300 nop
22301 addi 9,3,x1@dtprel
22302 bl .__tls_get_addr
22303 nop
22304 addis 9,3,x2@dtprel@ha
22305 addi 9,9,x2@dtprel@l
22306 bl .__tls_get_addr
22307 nop
22308 ld 9,x3@got@dtprel(2)
22309 add 9,9,3
22310 bl .__tls_get_addr
22311 nop'
22312 tls_first_major=2
22313 tls_first_minor=14
22314 tls_as_opt="-a64 --fatal-warnings"
22315 ;;
22316 s390-*-*)
22317 conftest_s='
22318 .section ".tdata","awT",@progbits
22319 foo: .long 25
22320 .text
22321 .long foo@TLSGD
22322 .long foo@TLSLDM
22323 .long foo@DTPOFF
22324 .long foo@NTPOFF
22325 .long foo@GOTNTPOFF
22326 .long foo@INDNTPOFF
22327 l %r1,foo@GOTNTPOFF(%r12)
22328 l %r1,0(%r1):tls_load:foo
22329 bas %r14,0(%r1,%r13):tls_gdcall:foo
22330 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22331 tls_first_major=2
22332 tls_first_minor=14
22333 tls_as_opt="-m31 --fatal-warnings"
22334 ;;
22335 s390x-*-*)
22336 conftest_s='
22337 .section ".tdata","awT",@progbits
22338 foo: .long 25
22339 .text
22340 .quad foo@TLSGD
22341 .quad foo@TLSLDM
22342 .quad foo@DTPOFF
22343 .quad foo@NTPOFF
22344 .quad foo@GOTNTPOFF
22345 lg %r1,foo@GOTNTPOFF(%r12)
22346 larl %r1,foo@INDNTPOFF
22347 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22348 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22349 tls_first_major=2
22350 tls_first_minor=14
22351 tls_as_opt="-m64 -Aesame --fatal-warnings"
22352 ;;
22353 sh-*-* | sh[34]-*-*)
22354 conftest_s='
22355 .section ".tdata","awT",@progbits
22356 foo: .long 25
22357 .text
22358 .long foo@TLSGD
22359 .long foo@TLSLDM
22360 .long foo@DTPOFF
22361 .long foo@GOTTPOFF
22362 .long foo@TPOFF'
22363 tls_first_major=2
22364 tls_first_minor=13
22365 tls_as_opt=--fatal-warnings
22366 ;;
22367 sparc*-*-*)
22368 case "$target" in
22369 sparc*-sun-solaris2.*)
22370 on_solaris=yes
22371 tga_func=__tls_get_addr
22372 ;;
22373 *)
22374 on_solaris=no
22375 ;;
22376 esac
22377 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22378 conftest_s='
22379 .section ".tdata",#alloc,#write,#tls'
22380 tls_first_major=0
22381 tls_first_minor=0
22382 else
22383 conftest_s='
22384 .section ".tdata","awT",@progbits'
22385 tls_first_major=2
22386 tls_first_minor=14
22387 tls_as_opt="-32 --fatal-warnings"
22388 fi
22389 conftest_s="$conftest_s
22390 foo: .long 25
22391 .text
22392 sethi %tgd_hi22(foo), %o0
22393 add %o0, %tgd_lo10(foo), %o1
22394 add %l7, %o1, %o0, %tgd_add(foo)
22395 call __tls_get_addr, %tgd_call(foo)
22396 sethi %tldm_hi22(foo), %l1
22397 add %l1, %tldm_lo10(foo), %l2
22398 add %l7, %l2, %o0, %tldm_add(foo)
22399 call __tls_get_addr, %tldm_call(foo)
22400 sethi %tldo_hix22(foo), %l3
22401 xor %l3, %tldo_lox10(foo), %l4
22402 add %o0, %l4, %l5, %tldo_add(foo)
22403 sethi %tie_hi22(foo), %o3
22404 add %o3, %tie_lo10(foo), %o3
22405 ld [%l7 + %o3], %o2, %tie_ld(foo)
22406 add %g7, %o2, %o4, %tie_add(foo)
22407 sethi %tle_hix22(foo), %l1
22408 xor %l1, %tle_lox10(foo), %o5
22409 ld [%g7 + %o5], %o1"
22410 ;;
22411 xtensa*-*-*)
22412 conftest_s='
22413 .section ".tdata","awT",@progbits
22414 foo: .long 25
22415 .text
22416 movi a8, foo@TLSFUNC
22417 movi a10, foo@TLSARG
22418 callx8.tls a8, foo@TLSCALL'
22419 tls_first_major=2
22420 tls_first_minor=19
22421 ;;
22422 esac
22423 set_have_as_tls=no
22424 if test "x$enable_tls" = xno ; then
22425 : # TLS explicitly disabled.
22426 elif test "x$enable_tls" = xyes ; then
22427 set_have_as_tls=yes # TLS explicitly enabled.
22428 elif test -z "$tls_first_major"; then
22429 : # If we don't have a check, assume no support.
22430 else
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22432 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22433 if test "${gcc_cv_as_tls+set}" = set; then :
22434 $as_echo_n "(cached) " >&6
22435 else
22436 gcc_cv_as_tls=no
22437 if test $in_tree_gas = yes; then
22438 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22439 then gcc_cv_as_tls=yes
22440 fi
22441 elif test x$gcc_cv_as != x; then
22442 echo "$conftest_s" > conftest.s
22443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22445 (eval $ac_try) 2>&5
22446 ac_status=$?
22447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22448 test $ac_status = 0; }; }
22449 then
22450 gcc_cv_as_tls=yes
22451 else
22452 echo "configure: failed program was" >&5
22453 cat conftest.s >&5
22454 fi
22455 rm -f conftest.o conftest.s
22456 fi
22457 fi
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22459 $as_echo "$gcc_cv_as_tls" >&6; }
22460 if test $gcc_cv_as_tls = yes; then
22461 set_have_as_tls=yes
22462 fi
22463 fi
22464 case "$target" in
22465 # TLS was introduced in the Solaris 9 FCS release and backported to
22466 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22467 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22468 # ld and GCC don't support any longer.
22469 *-*-solaris2.*)
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22471 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22472 ld_tls_support=no
22473 # Check ld and ld.so.1 TLS support.
22474 if echo "$ld_ver" | grep GNU > /dev/null; then
22475 # Assume all interesting versions of GNU ld have TLS support.
22476 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22477 ld_tls_support=yes
22478 else
22479 case "$target" in
22480 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22481 i?86-*-solaris2.8)
22482 min_tls_ld_vers_minor=280
22483 ;;
22484 # Solaris 8/SPARC ld has TLS support since version 1.272.
22485 sparc*-*-solaris2.8)
22486 min_tls_ld_vers_minor=272
22487 ;;
22488 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22489 i?86-*-solaris2.9)
22490 min_tls_ld_vers_minor=374
22491 ;;
22492 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22493 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22494 min_tls_ld_vers_minor=343
22495 ;;
22496 esac
22497 if test "$ls_vers_major" -gt 1 || \
22498 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22499 ld_tls_support=yes
22500 else
22501 set_have_as_tls=no
22502 fi
22503 fi
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22505 $as_echo "$ld_tls_support" >&6; }
22506
22507 save_LIBS="$LIBS"
22508 save_LDFLAGS="$LDFLAGS"
22509 LIBS=
22510 LDFLAGS=
22511
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22513 $as_echo_n "checking alternate thread library... " >&6; }
22514 case "$target" in
22515 # TLS support was backported to Solaris 8 patches, but only lives in
22516 # the alternate thread library which became the default in Solaris 9.
22517 # We want to always use that, irrespective of TLS support.
22518 *-*-solaris2.8)
22519 # Take multilib subdir into account. There's no spec to handle
22520 # this. The 64 symlink exists since Solaris 8.
22521 lwp_dir=/usr/lib/lwp
22522 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22523 LDFLAGS="-L$lwp_dir -R$lwp_dir"
22524 ;;
22525 *-*-solaris2*)
22526 lwp_dir="none"
22527 lwp_spec=""
22528 ;;
22529 esac
22530 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22531
22532 cat >>confdefs.h <<_ACEOF
22533 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22534 _ACEOF
22535
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22537 $as_echo "$lwp_dir" >&6; }
22538
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22540 $as_echo_n "checking library containing $tga_func... " >&6; }
22541 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22542 # (32-bit x86) only lived in libthread, so check for that. Keep
22543 # set_have_as_tls if found, disable if not.
22544 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22546 $as_echo_n "checking for library containing $tga_func... " >&6; }
22547 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22548 $as_echo_n "(cached) " >&6
22549 else
22550 ac_func_search_save_LIBS=$LIBS
22551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22552 /* end confdefs.h. */
22553
22554 /* Override any GCC internal prototype to avoid an error.
22555 Use char because int might match the return type of a GCC
22556 builtin and then its argument prototype would still apply. */
22557 #ifdef __cplusplus
22558 extern "C"
22559 #endif
22560 char $tga_func ();
22561 int
22562 main ()
22563 {
22564 return $tga_func ();
22565 ;
22566 return 0;
22567 }
22568 _ACEOF
22569 for ac_lib in '' thread; do
22570 if test -z "$ac_lib"; then
22571 ac_res="none required"
22572 else
22573 ac_res=-l$ac_lib
22574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22575 fi
22576 if ac_fn_c_try_link "$LINENO"; then :
22577 eval "$as_ac_Search=\$ac_res"
22578 fi
22579 rm -f core conftest.err conftest.$ac_objext \
22580 conftest$ac_exeext
22581 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22582 break
22583 fi
22584 done
22585 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22586
22587 else
22588 eval "$as_ac_Search=no"
22589 fi
22590 rm conftest.$ac_ext
22591 LIBS=$ac_func_search_save_LIBS
22592 fi
22593 eval ac_res=\$$as_ac_Search
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22595 $as_echo "$ac_res" >&6; }
22596 eval ac_res=\$$as_ac_Search
22597 if test "$ac_res" != no; then :
22598 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22599
22600 else
22601 set_have_as_tls=no
22602 fi
22603
22604 # Clear LIBS if we cannot support TLS.
22605 if test $set_have_as_tls = no; then
22606 LIBS=
22607 fi
22608 # Always define LIB_TLS_SPEC, even without TLS support.
22609
22610 cat >>confdefs.h <<_ACEOF
22611 #define LIB_TLS_SPEC "$LIBS"
22612 _ACEOF
22613
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22615 $as_echo "$LIBS" >&6; }
22616
22617 LIBS="$save_LIBS"
22618 LDFLAGS="$save_LDFLAGS"
22619 ;;
22620 esac
22621 if test $set_have_as_tls = yes ; then
22622
22623 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22624
22625 fi
22626
22627 # Target-specific assembler checks.
22628
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22630 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22631 gcc_cv_ld_static_dynamic=no
22632 if test $in_tree_ld = yes ; then
22633 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
22634 gcc_cv_ld_static_dynamic=yes
22635 fi
22636 elif test x$gcc_cv_ld != x; then
22637 # Check if linker supports -Bstatic/-Bdynamic option
22638 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22639 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22640 gcc_cv_ld_static_dynamic=yes
22641 fi
22642 fi
22643 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22644
22645 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22646
22647 fi
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22649 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22650
22651 if test x"$demangler_in_ld" = xyes; then
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22653 $as_echo_n "checking linker --demangle support... " >&6; }
22654 gcc_cv_ld_demangle=no
22655 if test $in_tree_ld = yes; then
22656 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 \
22657 gcc_cv_ld_demangle=yes
22658 fi
22659 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22660 # Check if the GNU linker supports --demangle option
22661 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22662 gcc_cv_ld_demangle=yes
22663 fi
22664 fi
22665 if test x"$gcc_cv_ld_demangle" = xyes; then
22666
22667 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22668
22669 fi
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22671 $as_echo "$gcc_cv_ld_demangle" >&6; }
22672 fi
22673
22674 case "$target" in
22675 # All TARGET_ABI_OSF targets.
22676 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22678 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22679 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22680 $as_echo_n "(cached) " >&6
22681 else
22682 gcc_cv_as_alpha_explicit_relocs=no
22683 if test $in_tree_gas = yes; then
22684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22685 then gcc_cv_as_alpha_explicit_relocs=yes
22686 fi
22687 elif test x$gcc_cv_as != x; then
22688 echo ' .set nomacro
22689 .text
22690 extbl $3, $2, $3 !lituse_bytoff!1
22691 ldq $2, a($29) !literal!1
22692 ldq $4, b($29) !literal!2
22693 ldq_u $3, 0($2) !lituse_base!1
22694 ldq $27, f($29) !literal!5
22695 jsr $26, ($27), f !lituse_jsr!5
22696 ldah $29, 0($26) !gpdisp!3
22697 lda $0, c($29) !gprel
22698 ldah $1, d($29) !gprelhigh
22699 lda $1, d($1) !gprellow
22700 lda $29, 0($29) !gpdisp!3' > conftest.s
22701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22703 (eval $ac_try) 2>&5
22704 ac_status=$?
22705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22706 test $ac_status = 0; }; }
22707 then
22708 gcc_cv_as_alpha_explicit_relocs=yes
22709 else
22710 echo "configure: failed program was" >&5
22711 cat conftest.s >&5
22712 fi
22713 rm -f conftest.o conftest.s
22714 fi
22715 fi
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22717 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22718 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22719
22720 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22721
22722 fi
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22724 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22725 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22726 $as_echo_n "(cached) " >&6
22727 else
22728 gcc_cv_as_alpha_jsrdirect_relocs=no
22729 if test $in_tree_gas = yes; then
22730 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22731 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22732 fi
22733 elif test x$gcc_cv_as != x; then
22734 echo ' .set nomacro
22735 .text
22736 ldq $27, a($29) !literal!1
22737 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22738 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22740 (eval $ac_try) 2>&5
22741 ac_status=$?
22742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22743 test $ac_status = 0; }; }
22744 then
22745 gcc_cv_as_alpha_jsrdirect_relocs=yes
22746 else
22747 echo "configure: failed program was" >&5
22748 cat conftest.s >&5
22749 fi
22750 rm -f conftest.o conftest.s
22751 fi
22752 fi
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22754 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22755 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22756
22757 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22758
22759 fi
22760 ;;
22761
22762 cris-*-*)
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22764 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22765 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22766 $as_echo_n "(cached) " >&6
22767 else
22768 gcc_cv_as_cris_no_mul_bug=no
22769 if test $in_tree_gas = yes; then
22770 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22771 then gcc_cv_as_cris_no_mul_bug=yes
22772 fi
22773 elif test x$gcc_cv_as != x; then
22774 echo '.text' > conftest.s
22775 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22777 (eval $ac_try) 2>&5
22778 ac_status=$?
22779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22780 test $ac_status = 0; }; }
22781 then
22782 gcc_cv_as_cris_no_mul_bug=yes
22783 else
22784 echo "configure: failed program was" >&5
22785 cat conftest.s >&5
22786 fi
22787 rm -f conftest.o conftest.s
22788 fi
22789 fi
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22791 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22792 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22793
22794 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22795
22796 fi
22797 ;;
22798
22799 sparc*-*-*)
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22801 $as_echo_n "checking assembler for .register... " >&6; }
22802 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22803 $as_echo_n "(cached) " >&6
22804 else
22805 gcc_cv_as_sparc_register_op=no
22806 if test x$gcc_cv_as != x; then
22807 echo '.register %g2, #scratch' > conftest.s
22808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22810 (eval $ac_try) 2>&5
22811 ac_status=$?
22812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22813 test $ac_status = 0; }; }
22814 then
22815 gcc_cv_as_sparc_register_op=yes
22816 else
22817 echo "configure: failed program was" >&5
22818 cat conftest.s >&5
22819 fi
22820 rm -f conftest.o conftest.s
22821 fi
22822 fi
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22824 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22825 if test $gcc_cv_as_sparc_register_op = yes; then
22826
22827 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22828
22829 fi
22830
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22832 $as_echo_n "checking assembler for -relax option... " >&6; }
22833 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22834 $as_echo_n "(cached) " >&6
22835 else
22836 gcc_cv_as_sparc_relax=no
22837 if test x$gcc_cv_as != x; then
22838 echo '.text' > conftest.s
22839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22841 (eval $ac_try) 2>&5
22842 ac_status=$?
22843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22844 test $ac_status = 0; }; }
22845 then
22846 gcc_cv_as_sparc_relax=yes
22847 else
22848 echo "configure: failed program was" >&5
22849 cat conftest.s >&5
22850 fi
22851 rm -f conftest.o conftest.s
22852 fi
22853 fi
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22855 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22856 if test $gcc_cv_as_sparc_relax = yes; then
22857
22858 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22859
22860 fi
22861
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22863 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22864 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22865 $as_echo_n "(cached) " >&6
22866 else
22867 gcc_cv_as_sparc_gotdata_op=no
22868 if test x$gcc_cv_as != x; then
22869 echo '.text
22870 foo:
22871 nop
22872 bar:
22873 sethi %gdop_hix22(foo), %g1
22874 xor %g1, %gdop_lox10(foo), %g1
22875 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22878 (eval $ac_try) 2>&5
22879 ac_status=$?
22880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22881 test $ac_status = 0; }; }
22882 then
22883 if test x$gcc_cv_ld != x \
22884 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22885 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22886 if test x$gcc_cv_objdump != x; then
22887 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22888 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22889 gcc_cv_as_sparc_gotdata_op=no
22890 else
22891 gcc_cv_as_sparc_gotdata_op=yes
22892 fi
22893 fi
22894 else
22895 gcc_cv_as_sparc_gotdata_op=yes
22896 fi
22897 fi
22898 rm -f conftest
22899 else
22900 echo "configure: failed program was" >&5
22901 cat conftest.s >&5
22902 fi
22903 rm -f conftest.o conftest.s
22904 fi
22905 fi
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22907 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22908 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22909
22910 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22911
22912 fi
22913
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22915 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22916 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22917 $as_echo_n "(cached) " >&6
22918 else
22919 gcc_cv_as_sparc_ua_pcrel=no
22920 if test x$gcc_cv_as != x; then
22921 echo '.text
22922 foo:
22923 nop
22924 .data
22925 .align 4
22926 .byte 0
22927 .uaword %r_disp32(foo)' > conftest.s
22928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22930 (eval $ac_try) 2>&5
22931 ac_status=$?
22932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22933 test $ac_status = 0; }; }
22934 then
22935 if test x$gcc_cv_ld != x \
22936 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22937 gcc_cv_as_sparc_ua_pcrel=yes
22938 fi
22939 rm -f conftest
22940 else
22941 echo "configure: failed program was" >&5
22942 cat conftest.s >&5
22943 fi
22944 rm -f conftest.o conftest.s
22945 fi
22946 fi
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22948 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22949 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22950
22951 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22952
22953
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22955 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22956 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22957 $as_echo_n "(cached) " >&6
22958 else
22959 gcc_cv_as_sparc_ua_pcrel_hidden=no
22960 if test x$gcc_cv_as != x; then
22961 echo '.data
22962 .align 4
22963 .byte 0x31
22964 .uaword %r_disp32(foo)
22965 .byte 0x32, 0x33, 0x34
22966 .global foo
22967 .hidden foo
22968 foo:
22969 .skip 4' > conftest.s
22970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22972 (eval $ac_try) 2>&5
22973 ac_status=$?
22974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22975 test $ac_status = 0; }; }
22976 then
22977 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22978 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22979 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22980 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22981 if $gcc_cv_objdump -R conftest 2> /dev/null \
22982 | grep 'DISP32' > /dev/null 2>&1; then
22983 :
22984 else
22985 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22986 fi
22987 fi
22988 rm -f conftest
22989 else
22990 echo "configure: failed program was" >&5
22991 cat conftest.s >&5
22992 fi
22993 rm -f conftest.o conftest.s
22994 fi
22995 fi
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22997 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22998 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22999
23000 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23001
23002 fi
23003
23004 fi # unaligned pcrel relocs
23005
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23007 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23008 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23009 $as_echo_n "(cached) " >&6
23010 else
23011 gcc_cv_as_sparc_offsetable_lo10=no
23012 if test x$gcc_cv_as != x; then
23013 echo '.text
23014 or %g1, %lo(ab) + 12, %g1
23015 or %g1, %lo(ab + 12), %g1' > conftest.s
23016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23018 (eval $ac_try) 2>&5
23019 ac_status=$?
23020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23021 test $ac_status = 0; }; }
23022 then
23023 if test x$gcc_cv_objdump != x \
23024 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23025 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23026 gcc_cv_as_sparc_offsetable_lo10=yes
23027 fi
23028 else
23029 echo "configure: failed program was" >&5
23030 cat conftest.s >&5
23031 fi
23032 rm -f conftest.o conftest.s
23033 fi
23034 fi
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23036 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23037 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23038
23039 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23040
23041 fi
23042 ;;
23043
23044 i[34567]86-*-* | x86_64-*-*)
23045 case $target_os in
23046 cygwin*)
23047 # Full C++ conformance when using a shared libstdc++-v3 requires some
23048 # support from the Cygwin DLL, which in more recent versions exports
23049 # wrappers to aid in interposing and redirecting operators new, delete,
23050 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23051 # are configuring for a version of Cygwin that exports the wrappers.
23052 if test x$host = x$target; then
23053 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23054 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23055 gcc_ac_cygwin_dll_wrappers=yes
23056 else
23057 gcc_ac_cygwin_dll_wrappers=no
23058 fi
23059
23060 else
23061 # Can't check presence of libc functions during cross-compile, so
23062 # we just have to assume we're building for an up-to-date target.
23063 gcc_ac_cygwin_dll_wrappers=yes
23064 fi
23065
23066 cat >>confdefs.h <<_ACEOF
23067 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23068 _ACEOF
23069
23070 esac
23071 case $target_os in
23072 cygwin* | pe | mingw32*)
23073 # Recent binutils allows the three-operand form of ".comm" on PE. This
23074 # definition is used unconditionally to initialise the default state of
23075 # the target option variable that governs usage of the feature.
23076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23077 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23078 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23079 $as_echo_n "(cached) " >&6
23080 else
23081 gcc_cv_as_comm_has_align=no
23082 if test $in_tree_gas = yes; then
23083 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23084 then gcc_cv_as_comm_has_align=yes
23085 fi
23086 elif test x$gcc_cv_as != x; then
23087 echo '.comm foo,1,32' > conftest.s
23088 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23090 (eval $ac_try) 2>&5
23091 ac_status=$?
23092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23093 test $ac_status = 0; }; }
23094 then
23095 gcc_cv_as_comm_has_align=yes
23096 else
23097 echo "configure: failed program was" >&5
23098 cat conftest.s >&5
23099 fi
23100 rm -f conftest.o conftest.s
23101 fi
23102 fi
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23104 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23105
23106
23107 cat >>confdefs.h <<_ACEOF
23108 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23109 _ACEOF
23110
23111 # Used for DWARF 2 in PE
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23113 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23114 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23115 $as_echo_n "(cached) " >&6
23116 else
23117 gcc_cv_as_ix86_pe_secrel32=no
23118 if test $in_tree_gas = yes; then
23119 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23120 then gcc_cv_as_ix86_pe_secrel32=yes
23121 fi
23122 elif test x$gcc_cv_as != x; then
23123 echo '.text
23124 foo: nop
23125 .data
23126 .secrel32 foo' > conftest.s
23127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23129 (eval $ac_try) 2>&5
23130 ac_status=$?
23131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23132 test $ac_status = 0; }; }
23133 then
23134 if test x$gcc_cv_ld != x \
23135 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23136 gcc_cv_as_ix86_pe_secrel32=yes
23137 fi
23138 rm -f conftest
23139 else
23140 echo "configure: failed program was" >&5
23141 cat conftest.s >&5
23142 fi
23143 rm -f conftest.o conftest.s
23144 fi
23145 fi
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23147 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23148 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23149
23150 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23151
23152 fi
23153 # Test if the assembler supports the extended form of the .section
23154 # directive that specifies section alignment. LTO support uses this,
23155 # but normally only after installation, so we warn but don't fail the
23156 # configure if LTO is enabled but the assembler does not support it.
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23158 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23159 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23160 $as_echo_n "(cached) " >&6
23161 else
23162 gcc_cv_as_section_has_align=no
23163 if test $in_tree_gas = yes; then
23164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23165 then gcc_cv_as_section_has_align=yes
23166 fi
23167 elif test x$gcc_cv_as != x; then
23168 echo '.section lto_test,"dr0"' > conftest.s
23169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23171 (eval $ac_try) 2>&5
23172 ac_status=$?
23173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23174 test $ac_status = 0; }; }
23175 then
23176 gcc_cv_as_section_has_align=yes
23177 else
23178 echo "configure: failed program was" >&5
23179 cat conftest.s >&5
23180 fi
23181 rm -f conftest.o conftest.s
23182 fi
23183 fi
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23185 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23186
23187 if test x$gcc_cv_as_section_has_align != xyes; then
23188 case ",$enable_languages," in
23189 *,lto,*)
23190 { $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
23191 $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;}
23192 ;;
23193 esac
23194 fi
23195 ;;
23196 esac
23197
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23199 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23200 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23201 $as_echo_n "(cached) " >&6
23202 else
23203 gcc_cv_as_ix86_filds=no
23204 if test x$gcc_cv_as != x; then
23205 echo 'filds mem; fists mem' > conftest.s
23206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23208 (eval $ac_try) 2>&5
23209 ac_status=$?
23210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23211 test $ac_status = 0; }; }
23212 then
23213 gcc_cv_as_ix86_filds=yes
23214 else
23215 echo "configure: failed program was" >&5
23216 cat conftest.s >&5
23217 fi
23218 rm -f conftest.o conftest.s
23219 fi
23220 fi
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23222 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23223 if test $gcc_cv_as_ix86_filds = yes; then
23224
23225 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23226
23227 fi
23228
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23230 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23231 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23232 $as_echo_n "(cached) " >&6
23233 else
23234 gcc_cv_as_ix86_fildq=no
23235 if test x$gcc_cv_as != x; then
23236 echo 'fildq mem; fistpq mem' > conftest.s
23237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23239 (eval $ac_try) 2>&5
23240 ac_status=$?
23241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23242 test $ac_status = 0; }; }
23243 then
23244 gcc_cv_as_ix86_fildq=yes
23245 else
23246 echo "configure: failed program was" >&5
23247 cat conftest.s >&5
23248 fi
23249 rm -f conftest.o conftest.s
23250 fi
23251 fi
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23253 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23254 if test $gcc_cv_as_ix86_fildq = yes; then
23255
23256 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23257
23258 fi
23259
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23261 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23262 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23263 $as_echo_n "(cached) " >&6
23264 else
23265 gcc_cv_as_ix86_cmov_sun_syntax=no
23266 if test x$gcc_cv_as != x; then
23267 echo 'cmovl.l %edx, %eax' > conftest.s
23268 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23270 (eval $ac_try) 2>&5
23271 ac_status=$?
23272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23273 test $ac_status = 0; }; }
23274 then
23275 gcc_cv_as_ix86_cmov_sun_syntax=yes
23276 else
23277 echo "configure: failed program was" >&5
23278 cat conftest.s >&5
23279 fi
23280 rm -f conftest.o conftest.s
23281 fi
23282 fi
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23284 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23285 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23286
23287 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23288
23289 fi
23290
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23292 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23293 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23294 $as_echo_n "(cached) " >&6
23295 else
23296 gcc_cv_as_ix86_ffreep=no
23297 if test x$gcc_cv_as != x; then
23298 echo 'ffreep %st(1)' > conftest.s
23299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23301 (eval $ac_try) 2>&5
23302 ac_status=$?
23303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23304 test $ac_status = 0; }; }
23305 then
23306 gcc_cv_as_ix86_ffreep=yes
23307 else
23308 echo "configure: failed program was" >&5
23309 cat conftest.s >&5
23310 fi
23311 rm -f conftest.o conftest.s
23312 fi
23313 fi
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23315 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23316 if test $gcc_cv_as_ix86_ffreep = yes; then
23317
23318 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23319
23320 fi
23321
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23323 $as_echo_n "checking assembler for .quad directive... " >&6; }
23324 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23325 $as_echo_n "(cached) " >&6
23326 else
23327 gcc_cv_as_ix86_quad=no
23328 if test x$gcc_cv_as != x; then
23329 echo '.quad 0' > conftest.s
23330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23332 (eval $ac_try) 2>&5
23333 ac_status=$?
23334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23335 test $ac_status = 0; }; }
23336 then
23337 gcc_cv_as_ix86_quad=yes
23338 else
23339 echo "configure: failed program was" >&5
23340 cat conftest.s >&5
23341 fi
23342 rm -f conftest.o conftest.s
23343 fi
23344 fi
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23346 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23347 if test $gcc_cv_as_ix86_quad = yes; then
23348
23349 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23350
23351 fi
23352
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23354 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23355 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23356 $as_echo_n "(cached) " >&6
23357 else
23358 gcc_cv_as_ix86_sahf=no
23359 if test x$gcc_cv_as != x; then
23360 echo '.code64
23361 sahf' > conftest.s
23362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23364 (eval $ac_try) 2>&5
23365 ac_status=$?
23366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23367 test $ac_status = 0; }; }
23368 then
23369 gcc_cv_as_ix86_sahf=yes
23370 else
23371 echo "configure: failed program was" >&5
23372 cat conftest.s >&5
23373 fi
23374 rm -f conftest.o conftest.s
23375 fi
23376 fi
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23378 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23379 if test $gcc_cv_as_ix86_sahf = yes; then
23380
23381 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23382
23383 fi
23384
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23386 $as_echo_n "checking assembler for swap suffix... " >&6; }
23387 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23388 $as_echo_n "(cached) " >&6
23389 else
23390 gcc_cv_as_ix86_swap=no
23391 if test x$gcc_cv_as != x; then
23392 echo 'movl.s %esp, %ebp' > conftest.s
23393 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23395 (eval $ac_try) 2>&5
23396 ac_status=$?
23397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23398 test $ac_status = 0; }; }
23399 then
23400 gcc_cv_as_ix86_swap=yes
23401 else
23402 echo "configure: failed program was" >&5
23403 cat conftest.s >&5
23404 fi
23405 rm -f conftest.o conftest.s
23406 fi
23407 fi
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23409 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23410 if test $gcc_cv_as_ix86_swap = yes; then
23411
23412 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23413
23414 fi
23415
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23417 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23418 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23419 $as_echo_n "(cached) " >&6
23420 else
23421 gcc_cv_as_ix86_diff_sect_delta=no
23422 if test x$gcc_cv_as != x; then
23423 echo '.section .rodata
23424 .L1:
23425 .long .L2-.L1
23426 .long .L3-.L1
23427 .text
23428 .L3: nop
23429 .L2: nop' > conftest.s
23430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23432 (eval $ac_try) 2>&5
23433 ac_status=$?
23434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23435 test $ac_status = 0; }; }
23436 then
23437 gcc_cv_as_ix86_diff_sect_delta=yes
23438 else
23439 echo "configure: failed program was" >&5
23440 cat conftest.s >&5
23441 fi
23442 rm -f conftest.o conftest.s
23443 fi
23444 fi
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23446 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23447 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23448
23449 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23450
23451 fi
23452
23453 # These two are used unconditionally by i386.[ch]; it is to be defined
23454 # to 1 if the feature is present, 0 otherwise.
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23456 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23457 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23458 $as_echo_n "(cached) " >&6
23459 else
23460 gcc_cv_as_ix86_gotoff_in_data=no
23461 if test $in_tree_gas = yes; then
23462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23463 then gcc_cv_as_ix86_gotoff_in_data=yes
23464 fi
23465 elif test x$gcc_cv_as != x; then
23466 echo ' .text
23467 .L0:
23468 nop
23469 .data
23470 .long .L0@GOTOFF' > conftest.s
23471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23473 (eval $ac_try) 2>&5
23474 ac_status=$?
23475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23476 test $ac_status = 0; }; }
23477 then
23478 gcc_cv_as_ix86_gotoff_in_data=yes
23479 else
23480 echo "configure: failed program was" >&5
23481 cat conftest.s >&5
23482 fi
23483 rm -f conftest.o conftest.s
23484 fi
23485 fi
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23487 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23488
23489
23490 cat >>confdefs.h <<_ACEOF
23491 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23492 _ACEOF
23493
23494
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23496 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23497 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23498 $as_echo_n "(cached) " >&6
23499 else
23500 gcc_cv_as_ix86_rep_lock_prefix=no
23501 if test x$gcc_cv_as != x; then
23502 echo 'rep movsl
23503 lock addl %edi, (%eax,%esi)
23504 lock orl $0, (%esp)' > conftest.s
23505 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23507 (eval $ac_try) 2>&5
23508 ac_status=$?
23509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23510 test $ac_status = 0; }; }
23511 then
23512 gcc_cv_as_ix86_rep_lock_prefix=yes
23513 else
23514 echo "configure: failed program was" >&5
23515 cat conftest.s >&5
23516 fi
23517 rm -f conftest.o conftest.s
23518 fi
23519 fi
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23521 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23522 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23523
23524 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23525
23526 fi
23527
23528 ;;
23529
23530 ia64*-*-*)
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23532 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23533 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23534 $as_echo_n "(cached) " >&6
23535 else
23536 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23537 if test $in_tree_gas = yes; then
23538 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23539 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23540 fi
23541 elif test x$gcc_cv_as != x; then
23542 echo ' .text
23543 addl r15 = @ltoffx(x#), gp
23544 ;;
23545 ld8.mov r16 = [r15], x#' > conftest.s
23546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23548 (eval $ac_try) 2>&5
23549 ac_status=$?
23550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23551 test $ac_status = 0; }; }
23552 then
23553 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23554 else
23555 echo "configure: failed program was" >&5
23556 cat conftest.s >&5
23557 fi
23558 rm -f conftest.o conftest.s
23559 fi
23560 fi
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23562 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23563 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23564
23565 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23566
23567 fi
23568
23569 ;;
23570
23571 powerpc*-*-*)
23572 case $target in
23573 *-*-aix*) conftest_s=' .machine "pwr5"
23574 .csect .text[PR]
23575 mfcr 3,128';;
23576 *-*-darwin*)
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23578 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23579 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23580 $as_echo_n "(cached) " >&6
23581 else
23582 gcc_cv_as_machine_directive=no
23583 if test x$gcc_cv_as != x; then
23584 echo ' .machine ppc7400' > 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_machine_directive=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_machine_directive" >&5
23601 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23602
23603 if test x$gcc_cv_as_machine_directive != xyes; then
23604 echo "*** This target requires an assembler supporting \".machine\"" >&2
23605 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23606 test x$build = x$target && exit 1
23607 fi
23608 conftest_s=' .text
23609 mfcr r3,128';;
23610 *) conftest_s=' .machine power4
23611 .text
23612 mfcr 3,128';;
23613 esac
23614
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23616 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23617 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23618 $as_echo_n "(cached) " >&6
23619 else
23620 gcc_cv_as_powerpc_mfcrf=no
23621 if test $in_tree_gas = yes; then
23622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23623 then gcc_cv_as_powerpc_mfcrf=yes
23624 fi
23625 elif test x$gcc_cv_as != x; then
23626 echo "$conftest_s" > conftest.s
23627 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23629 (eval $ac_try) 2>&5
23630 ac_status=$?
23631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23632 test $ac_status = 0; }; }
23633 then
23634 gcc_cv_as_powerpc_mfcrf=yes
23635 else
23636 echo "configure: failed program was" >&5
23637 cat conftest.s >&5
23638 fi
23639 rm -f conftest.o conftest.s
23640 fi
23641 fi
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23643 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23644 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23645
23646 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23647
23648 fi
23649
23650 case $target in
23651 *-*-aix*) conftest_s=' .machine "pwr5"
23652 .csect .text[PR]
23653 popcntb 3,3';;
23654 *) conftest_s=' .machine power5
23655 .text
23656 popcntb 3,3';;
23657 esac
23658
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23660 $as_echo_n "checking assembler for popcntb support... " >&6; }
23661 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23662 $as_echo_n "(cached) " >&6
23663 else
23664 gcc_cv_as_powerpc_popcntb=no
23665 if test $in_tree_gas = yes; then
23666 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23667 then gcc_cv_as_powerpc_popcntb=yes
23668 fi
23669 elif test x$gcc_cv_as != x; then
23670 echo "$conftest_s" > conftest.s
23671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23673 (eval $ac_try) 2>&5
23674 ac_status=$?
23675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23676 test $ac_status = 0; }; }
23677 then
23678 gcc_cv_as_powerpc_popcntb=yes
23679 else
23680 echo "configure: failed program was" >&5
23681 cat conftest.s >&5
23682 fi
23683 rm -f conftest.o conftest.s
23684 fi
23685 fi
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23687 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23688 if test $gcc_cv_as_powerpc_popcntb = yes; then
23689
23690 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23691
23692 fi
23693
23694 case $target in
23695 *-*-aix*) conftest_s=' .machine "pwr5x"
23696 .csect .text[PR]
23697 frin 1,1';;
23698 *) conftest_s=' .machine power5
23699 .text
23700 frin 1,1';;
23701 esac
23702
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23704 $as_echo_n "checking assembler for fp round support... " >&6; }
23705 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23706 $as_echo_n "(cached) " >&6
23707 else
23708 gcc_cv_as_powerpc_fprnd=no
23709 if test $in_tree_gas = yes; then
23710 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23711 then gcc_cv_as_powerpc_fprnd=yes
23712 fi
23713 elif test x$gcc_cv_as != x; then
23714 echo "$conftest_s" > conftest.s
23715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23717 (eval $ac_try) 2>&5
23718 ac_status=$?
23719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23720 test $ac_status = 0; }; }
23721 then
23722 gcc_cv_as_powerpc_fprnd=yes
23723 else
23724 echo "configure: failed program was" >&5
23725 cat conftest.s >&5
23726 fi
23727 rm -f conftest.o conftest.s
23728 fi
23729 fi
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23731 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23732 if test $gcc_cv_as_powerpc_fprnd = yes; then
23733
23734 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23735
23736 fi
23737
23738 case $target in
23739 *-*-aix*) conftest_s=' .machine "pwr6"
23740 .csect .text[PR]
23741 mffgpr 1,3';;
23742 *) conftest_s=' .machine power6
23743 .text
23744 mffgpr 1,3';;
23745 esac
23746
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23748 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23749 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23750 $as_echo_n "(cached) " >&6
23751 else
23752 gcc_cv_as_powerpc_mfpgpr=no
23753 if test $in_tree_gas = yes; then
23754 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23755 then gcc_cv_as_powerpc_mfpgpr=yes
23756 fi
23757 elif test x$gcc_cv_as != x; then
23758 echo "$conftest_s" > conftest.s
23759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23761 (eval $ac_try) 2>&5
23762 ac_status=$?
23763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23764 test $ac_status = 0; }; }
23765 then
23766 gcc_cv_as_powerpc_mfpgpr=yes
23767 else
23768 echo "configure: failed program was" >&5
23769 cat conftest.s >&5
23770 fi
23771 rm -f conftest.o conftest.s
23772 fi
23773 fi
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23775 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23776 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23777
23778 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23779
23780 fi
23781
23782 case $target in
23783 *-*-aix*) conftest_s=' .csect .text[PR]
23784 LCF..0:
23785 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23786 *-*-darwin*)
23787 conftest_s=' .text
23788 LCF0:
23789 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23790 *) conftest_s=' .text
23791 .LCF0:
23792 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23793 esac
23794
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23796 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23797 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23798 $as_echo_n "(cached) " >&6
23799 else
23800 gcc_cv_as_powerpc_rel16=no
23801 if test $in_tree_gas = yes; then
23802 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23803 then gcc_cv_as_powerpc_rel16=yes
23804 fi
23805 elif test x$gcc_cv_as != x; then
23806 echo "$conftest_s" > conftest.s
23807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23810 ac_status=$?
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23813 then
23814 gcc_cv_as_powerpc_rel16=yes
23815 else
23816 echo "configure: failed program was" >&5
23817 cat conftest.s >&5
23818 fi
23819 rm -f conftest.o conftest.s
23820 fi
23821 fi
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23823 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23824 if test $gcc_cv_as_powerpc_rel16 = yes; then
23825
23826 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23827
23828 fi
23829
23830 case $target in
23831 *-*-aix*) conftest_s=' .machine "pwr6"
23832 .csect .text[PR]
23833 cmpb 3,4,5';;
23834 *) conftest_s=' .machine power6
23835 .text
23836 cmpb 3,4,5';;
23837 esac
23838
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23840 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23841 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23842 $as_echo_n "(cached) " >&6
23843 else
23844 gcc_cv_as_powerpc_cmpb=no
23845 if test $in_tree_gas = yes; then
23846 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23847 then gcc_cv_as_powerpc_cmpb=yes
23848 fi
23849 elif test x$gcc_cv_as != x; then
23850 echo "$conftest_s" > conftest.s
23851 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23853 (eval $ac_try) 2>&5
23854 ac_status=$?
23855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23856 test $ac_status = 0; }; }
23857 then
23858 gcc_cv_as_powerpc_cmpb=yes
23859 else
23860 echo "configure: failed program was" >&5
23861 cat conftest.s >&5
23862 fi
23863 rm -f conftest.o conftest.s
23864 fi
23865 fi
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23867 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23868 if test $gcc_cv_as_powerpc_cmpb = yes; then
23869
23870 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23871
23872 fi
23873
23874 case $target in
23875 *-*-aix*) conftest_s=' .machine "pwr6"
23876 .csect .text[PR]
23877 dadd 1,2,3';;
23878 *) conftest_s=' .machine power6
23879 .text
23880 dadd 1,2,3';;
23881 esac
23882
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23884 $as_echo_n "checking assembler for decimal float support... " >&6; }
23885 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23886 $as_echo_n "(cached) " >&6
23887 else
23888 gcc_cv_as_powerpc_dfp=no
23889 if test $in_tree_gas = yes; then
23890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23891 then gcc_cv_as_powerpc_dfp=yes
23892 fi
23893 elif test x$gcc_cv_as != x; then
23894 echo "$conftest_s" > conftest.s
23895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23897 (eval $ac_try) 2>&5
23898 ac_status=$?
23899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23900 test $ac_status = 0; }; }
23901 then
23902 gcc_cv_as_powerpc_dfp=yes
23903 else
23904 echo "configure: failed program was" >&5
23905 cat conftest.s >&5
23906 fi
23907 rm -f conftest.o conftest.s
23908 fi
23909 fi
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23911 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23912 if test $gcc_cv_as_powerpc_dfp = yes; then
23913
23914 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23915
23916 fi
23917
23918 case $target in
23919 *-*-aix*) conftest_s=' .machine "pwr7"
23920 .csect .text[PR]
23921 lxvd2x 1,2,3';;
23922 *) conftest_s=' .machine power7
23923 .text
23924 lxvd2x 1,2,3';;
23925 esac
23926
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23928 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23929 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23930 $as_echo_n "(cached) " >&6
23931 else
23932 gcc_cv_as_powerpc_vsx=no
23933 if test $in_tree_gas = yes; then
23934 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23935 then gcc_cv_as_powerpc_vsx=yes
23936 fi
23937 elif test x$gcc_cv_as != x; then
23938 echo "$conftest_s" > conftest.s
23939 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23941 (eval $ac_try) 2>&5
23942 ac_status=$?
23943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23944 test $ac_status = 0; }; }
23945 then
23946 gcc_cv_as_powerpc_vsx=yes
23947 else
23948 echo "configure: failed program was" >&5
23949 cat conftest.s >&5
23950 fi
23951 rm -f conftest.o conftest.s
23952 fi
23953 fi
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23955 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23956 if test $gcc_cv_as_powerpc_vsx = yes; then
23957
23958 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23959
23960 fi
23961
23962 case $target in
23963 *-*-aix*) conftest_s=' .machine "pwr7"
23964 .csect .text[PR]
23965 popcntd 3,3';;
23966 *) conftest_s=' .machine power7
23967 .text
23968 popcntd 3,3';;
23969 esac
23970
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23972 $as_echo_n "checking assembler for popcntd support... " >&6; }
23973 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23974 $as_echo_n "(cached) " >&6
23975 else
23976 gcc_cv_as_powerpc_popcntd=no
23977 if test $in_tree_gas = yes; then
23978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23979 then gcc_cv_as_powerpc_popcntd=yes
23980 fi
23981 elif test x$gcc_cv_as != x; then
23982 echo "$conftest_s" > conftest.s
23983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23985 (eval $ac_try) 2>&5
23986 ac_status=$?
23987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23988 test $ac_status = 0; }; }
23989 then
23990 gcc_cv_as_powerpc_popcntd=yes
23991 else
23992 echo "configure: failed program was" >&5
23993 cat conftest.s >&5
23994 fi
23995 rm -f conftest.o conftest.s
23996 fi
23997 fi
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23999 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24000 if test $gcc_cv_as_powerpc_popcntd = yes; then
24001
24002 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24003
24004 fi
24005
24006 case $target in
24007 *-*-aix*) conftest_s=' .csect .text[PR]
24008 lwsync';;
24009 *) conftest_s=' .text
24010 lwsync';;
24011 esac
24012
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24014 $as_echo_n "checking assembler for lwsync support... " >&6; }
24015 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24016 $as_echo_n "(cached) " >&6
24017 else
24018 gcc_cv_as_powerpc_lwsync=no
24019 if test $in_tree_gas = yes; then
24020 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24021 then gcc_cv_as_powerpc_lwsync=yes
24022 fi
24023 elif test x$gcc_cv_as != x; then
24024 echo "$conftest_s" > conftest.s
24025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24027 (eval $ac_try) 2>&5
24028 ac_status=$?
24029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24030 test $ac_status = 0; }; }
24031 then
24032 gcc_cv_as_powerpc_lwsync=yes
24033 else
24034 echo "configure: failed program was" >&5
24035 cat conftest.s >&5
24036 fi
24037 rm -f conftest.o conftest.s
24038 fi
24039 fi
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24041 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24042 if test $gcc_cv_as_powerpc_lwsync = yes; then
24043
24044 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24045
24046 fi
24047
24048 case $target in
24049 *-*-aix*) conftest_s=' .machine "476"
24050 .csect .text[PR]
24051 dci 0';;
24052 *) conftest_s=' .machine "476"
24053 .text
24054 dci 0';;
24055 esac
24056
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24058 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24059 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24060 $as_echo_n "(cached) " >&6
24061 else
24062 gcc_cv_as_powerpc_dci=no
24063 if test $in_tree_gas = yes; then
24064 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24065 then gcc_cv_as_powerpc_dci=yes
24066 fi
24067 elif test x$gcc_cv_as != x; then
24068 echo "$conftest_s" > conftest.s
24069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24071 (eval $ac_try) 2>&5
24072 ac_status=$?
24073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24074 test $ac_status = 0; }; }
24075 then
24076 gcc_cv_as_powerpc_dci=yes
24077 else
24078 echo "configure: failed program was" >&5
24079 cat conftest.s >&5
24080 fi
24081 rm -f conftest.o conftest.s
24082 fi
24083 fi
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24085 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24086 if test $gcc_cv_as_powerpc_dci = yes; then
24087
24088 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24089
24090 fi
24091
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24093 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24094 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24095 $as_echo_n "(cached) " >&6
24096 else
24097 gcc_cv_as_powerpc_gnu_attribute=no
24098 if test $in_tree_gas = yes; then
24099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24100 then gcc_cv_as_powerpc_gnu_attribute=yes
24101 fi
24102 elif test x$gcc_cv_as != x; then
24103 echo '.gnu_attribute 4,1' > conftest.s
24104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24106 (eval $ac_try) 2>&5
24107 ac_status=$?
24108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24109 test $ac_status = 0; }; }
24110 then
24111 gcc_cv_as_powerpc_gnu_attribute=yes
24112 else
24113 echo "configure: failed program was" >&5
24114 cat conftest.s >&5
24115 fi
24116 rm -f conftest.o conftest.s
24117 fi
24118 fi
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24120 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24121 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24122
24123 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24124
24125 fi
24126
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24128 $as_echo_n "checking assembler for tls marker support... " >&6; }
24129 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24130 $as_echo_n "(cached) " >&6
24131 else
24132 gcc_cv_as_powerpc_tls_markers=no
24133 if test $in_tree_gas = yes; then
24134 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24135 then gcc_cv_as_powerpc_tls_markers=yes
24136 fi
24137 elif test x$gcc_cv_as != x; then
24138 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24139 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24141 (eval $ac_try) 2>&5
24142 ac_status=$?
24143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24144 test $ac_status = 0; }; }
24145 then
24146 gcc_cv_as_powerpc_tls_markers=yes
24147 else
24148 echo "configure: failed program was" >&5
24149 cat conftest.s >&5
24150 fi
24151 rm -f conftest.o conftest.s
24152 fi
24153 fi
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24155 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24156 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24157
24158 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24159
24160 fi
24161
24162 case $target in
24163 *-*-aix*)
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24165 $as_echo_n "checking assembler for .ref support... " >&6; }
24166 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24167 $as_echo_n "(cached) " >&6
24168 else
24169 gcc_cv_as_aix_ref=no
24170 if test $in_tree_gas = yes; then
24171 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24172 then :
24173 fi
24174 elif test x$gcc_cv_as != x; then
24175 echo ' .csect stuff[rw]
24176 stuff:
24177 .long 1
24178 .extern sym
24179 .ref sym
24180 ' > conftest.s
24181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24183 (eval $ac_try) 2>&5
24184 ac_status=$?
24185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24186 test $ac_status = 0; }; }
24187 then
24188 gcc_cv_as_aix_ref=yes
24189 else
24190 echo "configure: failed program was" >&5
24191 cat conftest.s >&5
24192 fi
24193 rm -f conftest.o conftest.s
24194 fi
24195 fi
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24197 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24198 if test $gcc_cv_as_aix_ref = yes; then
24199
24200 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24201
24202 fi
24203 ;;
24204 esac
24205 ;;
24206
24207 mips*-*-*)
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24209 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24210 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24211 $as_echo_n "(cached) " >&6
24212 else
24213 gcc_cv_as_mips_explicit_relocs=no
24214 if test $in_tree_gas = yes; then
24215 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24216 then gcc_cv_as_mips_explicit_relocs=yes
24217 fi
24218 elif test x$gcc_cv_as != x; then
24219 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24222 (eval $ac_try) 2>&5
24223 ac_status=$?
24224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24225 test $ac_status = 0; }; }
24226 then
24227 gcc_cv_as_mips_explicit_relocs=yes
24228 else
24229 echo "configure: failed program was" >&5
24230 cat conftest.s >&5
24231 fi
24232 rm -f conftest.o conftest.s
24233 fi
24234 fi
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24236 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24237 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24238 if test x$target_cpu_default = x
24239 then target_cpu_default=MASK_EXPLICIT_RELOCS
24240 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24241 fi
24242 fi
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24244 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24245 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24246 $as_echo_n "(cached) " >&6
24247 else
24248 gcc_cv_as_mips_no_shared=no
24249 if test $in_tree_gas = yes; then
24250 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24251 then gcc_cv_as_mips_no_shared=yes
24252 fi
24253 elif test x$gcc_cv_as != x; then
24254 echo 'nop' > conftest.s
24255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24257 (eval $ac_try) 2>&5
24258 ac_status=$?
24259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24260 test $ac_status = 0; }; }
24261 then
24262 gcc_cv_as_mips_no_shared=yes
24263 else
24264 echo "configure: failed program was" >&5
24265 cat conftest.s >&5
24266 fi
24267 rm -f conftest.o conftest.s
24268 fi
24269 fi
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24271 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24272 if test $gcc_cv_as_mips_no_shared = yes; then
24273
24274 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24275
24276 fi
24277
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24279 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24280 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24281 $as_echo_n "(cached) " >&6
24282 else
24283 gcc_cv_as_mips_gnu_attribute=no
24284 if test $in_tree_gas = yes; then
24285 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24286 then gcc_cv_as_mips_gnu_attribute=yes
24287 fi
24288 elif test x$gcc_cv_as != x; then
24289 echo '.gnu_attribute 4,1' > conftest.s
24290 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24292 (eval $ac_try) 2>&5
24293 ac_status=$?
24294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24295 test $ac_status = 0; }; }
24296 then
24297 gcc_cv_as_mips_gnu_attribute=yes
24298 else
24299 echo "configure: failed program was" >&5
24300 cat conftest.s >&5
24301 fi
24302 rm -f conftest.o conftest.s
24303 fi
24304 fi
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24306 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24307 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24308
24309 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24310
24311 fi
24312
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24314 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24315 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24316 $as_echo_n "(cached) " >&6
24317 else
24318 gcc_cv_as_mips_dtprelword=no
24319 if test $in_tree_gas = yes; then
24320 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24321 then gcc_cv_as_mips_dtprelword=yes
24322 fi
24323 elif test x$gcc_cv_as != x; then
24324 echo '.section .tdata,"awT",@progbits
24325 x:
24326 .word 2
24327 .text
24328 .dtprelword x+0x8000' > conftest.s
24329 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24331 (eval $ac_try) 2>&5
24332 ac_status=$?
24333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24334 test $ac_status = 0; }; }
24335 then
24336 gcc_cv_as_mips_dtprelword=yes
24337 else
24338 echo "configure: failed program was" >&5
24339 cat conftest.s >&5
24340 fi
24341 rm -f conftest.o conftest.s
24342 fi
24343 fi
24344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24345 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24346 if test $gcc_cv_as_mips_dtprelword = yes; then
24347
24348 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24349
24350 fi
24351
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24353 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24354 gcc_cv_as_ld_jalr_reloc=no
24355 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24356 if test $in_tree_ld = yes ; then
24357 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 \
24358 && test $in_tree_ld_is_elf = yes; then
24359 gcc_cv_as_ld_jalr_reloc=yes
24360 fi
24361 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24362 echo ' .ent x' > conftest.s
24363 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24364 echo ' ld $25,%call16(y)($28)' >> conftest.s
24365 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24366 echo '1: jalr $25' >> conftest.s
24367 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24368 echo '1: jalr $25' >> conftest.s
24369 echo ' .end x' >> conftest.s
24370 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24371 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24372 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24373 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24374 gcc_cv_as_ld_jalr_reloc=yes
24375 fi
24376 fi
24377 rm -f conftest.*
24378 fi
24379 fi
24380 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24381 if test x$target_cpu_default = x; then
24382 target_cpu_default=MASK_RELAX_PIC_CALLS
24383 else
24384 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24385 fi
24386 fi
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24388 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24389
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24391 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24392 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24393 $as_echo_n "(cached) " >&6
24394 else
24395 gcc_cv_ld_mips_personality_relaxation=no
24396 if test $in_tree_ld = yes ; then
24397 if test "$gcc_cv_gld_major_version" -eq 2 \
24398 -a "$gcc_cv_gld_minor_version" -ge 21 \
24399 -o "$gcc_cv_gld_major_version" -gt 2; then
24400 gcc_cv_ld_mips_personality_relaxation=yes
24401 fi
24402 elif test x$gcc_cv_as != x \
24403 -a x$gcc_cv_ld != x \
24404 -a x$gcc_cv_readelf != x ; then
24405 cat > conftest.s <<EOF
24406 .cfi_startproc
24407 .cfi_personality 0x80,indirect_ptr
24408 .ent test
24409 test:
24410 nop
24411 .end test
24412 .cfi_endproc
24413
24414 .section .data,"aw",@progbits
24415 indirect_ptr:
24416 .dc.a personality
24417 EOF
24418 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24419 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24420 if $gcc_cv_readelf -d conftest 2>&1 \
24421 | grep TEXTREL > /dev/null 2>&1; then
24422 :
24423 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24424 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24425 :
24426 else
24427 gcc_cv_ld_mips_personality_relaxation=yes
24428 fi
24429 fi
24430 fi
24431 rm -f conftest.s conftest.o conftest
24432 fi
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24434 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24435 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24436
24437 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24438
24439 fi
24440 ;;
24441 esac
24442
24443 # Mips and HP-UX need the GNU assembler.
24444 # Linux on IA64 might be able to use the Intel assembler.
24445
24446 case "$target" in
24447 mips*-*-* | *-*-hpux* )
24448 if test x$gas_flag = xyes \
24449 || test x"$host" != x"$build" \
24450 || test ! -x "$gcc_cv_as" \
24451 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24452 :
24453 else
24454 echo "*** This configuration requires the GNU assembler" >&2
24455 exit 1
24456 fi
24457 ;;
24458 esac
24459
24460 # ??? Not all targets support dwarf2 debug_line, even within a version
24461 # of gas. Moreover, we need to emit a valid instruction to trigger any
24462 # info to the output file. So, as supported targets are added to gas 2.11,
24463 # add some instruction here to (also) show we expect this might work.
24464 # ??? Once 2.11 is released, probably need to add first known working
24465 # version to the per-target configury.
24466 case "$target" in
24467 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24468 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24469 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24470 | spu-*-* | fido*-*-* | m32c-*-*)
24471 insn="nop"
24472 ;;
24473 ia64*-*-* | s390*-*-*)
24474 insn="nop 0"
24475 ;;
24476 mmix-*-*)
24477 insn="swym 0"
24478 ;;
24479 esac
24480 if test x"$insn" != x; then
24481 conftest_s="\
24482 .file 1 \"conftest.s\"
24483 .loc 1 3 0
24484 $insn"
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24486 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24487 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24488 $as_echo_n "(cached) " >&6
24489 else
24490 gcc_cv_as_dwarf2_debug_line=no
24491 if test $in_tree_gas = yes; then
24492 if test $in_tree_gas_is_elf = yes \
24493 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24494 then gcc_cv_as_dwarf2_debug_line=yes
24495 fi
24496 elif test x$gcc_cv_as != x; then
24497 echo "$conftest_s" > conftest.s
24498 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24500 (eval $ac_try) 2>&5
24501 ac_status=$?
24502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24503 test $ac_status = 0; }; }
24504 then
24505 if test x$gcc_cv_objdump != x \
24506 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24507 | grep debug_line > /dev/null 2>&1; then
24508 gcc_cv_as_dwarf2_debug_line=yes
24509 fi
24510 else
24511 echo "configure: failed program was" >&5
24512 cat conftest.s >&5
24513 fi
24514 rm -f conftest.o conftest.s
24515 fi
24516 fi
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24518 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24519
24520
24521 # The .debug_line file table must be in the exact order that
24522 # we specified the files, since these indices are also used
24523 # by DW_AT_decl_file. Approximate this test by testing if
24524 # the assembler bitches if the same index is assigned twice.
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24526 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24527 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24528 $as_echo_n "(cached) " >&6
24529 else
24530 gcc_cv_as_dwarf2_file_buggy=no
24531 if test x$gcc_cv_as != x; then
24532 echo ' .file 1 "foo.s"
24533 .file 1 "bar.s"' > conftest.s
24534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24536 (eval $ac_try) 2>&5
24537 ac_status=$?
24538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24539 test $ac_status = 0; }; }
24540 then
24541 gcc_cv_as_dwarf2_file_buggy=yes
24542 else
24543 echo "configure: failed program was" >&5
24544 cat conftest.s >&5
24545 fi
24546 rm -f conftest.o conftest.s
24547 fi
24548 fi
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24550 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24551
24552
24553 if test $gcc_cv_as_dwarf2_debug_line = yes \
24554 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24555
24556 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24557
24558 fi
24559
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24561 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24562 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24563 $as_echo_n "(cached) " >&6
24564 else
24565 gcc_cv_as_gdwarf2_flag=no
24566 if test $in_tree_gas = yes; then
24567 if test $in_tree_gas_is_elf = yes \
24568 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24569 then gcc_cv_as_gdwarf2_flag=yes
24570 fi
24571 elif test x$gcc_cv_as != x; then
24572 echo "$insn" > conftest.s
24573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24575 (eval $ac_try) 2>&5
24576 ac_status=$?
24577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24578 test $ac_status = 0; }; }
24579 then
24580 gcc_cv_as_gdwarf2_flag=yes
24581 else
24582 echo "configure: failed program was" >&5
24583 cat conftest.s >&5
24584 fi
24585 rm -f conftest.o conftest.s
24586 fi
24587 fi
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24589 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24590 if test $gcc_cv_as_gdwarf2_flag = yes; then
24591
24592 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24593
24594 fi
24595
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24597 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24598 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24600 else
24601 gcc_cv_as_gstabs_flag=no
24602 if test $in_tree_gas = yes; then
24603 if test $in_tree_gas_is_elf = yes \
24604 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24605 then gcc_cv_as_gstabs_flag=yes
24606 fi
24607 elif test x$gcc_cv_as != x; then
24608 echo "$insn" > conftest.s
24609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24611 (eval $ac_try) 2>&5
24612 ac_status=$?
24613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24614 test $ac_status = 0; }; }
24615 then
24616 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24617 # and warns about it, but still exits successfully. So check for
24618 # this.
24619 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24621 (eval $ac_try) 2>&5
24622 ac_status=$?
24623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24624 test $ac_status = 0; }; }
24625 then :
24626 else gcc_cv_as_gstabs_flag=yes
24627 fi
24628 else
24629 echo "configure: failed program was" >&5
24630 cat conftest.s >&5
24631 fi
24632 rm -f conftest.o conftest.s
24633 fi
24634 fi
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24636 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24637 if test $gcc_cv_as_gstabs_flag = yes; then
24638
24639 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24640
24641 fi
24642
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24644 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24645 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24646 $as_echo_n "(cached) " >&6
24647 else
24648 gcc_cv_as_debug_prefix_map_flag=no
24649 if test $in_tree_gas = yes; then
24650 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24651 then gcc_cv_as_debug_prefix_map_flag=yes
24652 fi
24653 elif test x$gcc_cv_as != x; then
24654 echo "$insn" > conftest.s
24655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24657 (eval $ac_try) 2>&5
24658 ac_status=$?
24659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24660 test $ac_status = 0; }; }
24661 then
24662 gcc_cv_as_debug_prefix_map_flag=yes
24663 else
24664 echo "configure: failed program was" >&5
24665 cat conftest.s >&5
24666 fi
24667 rm -f conftest.o conftest.s
24668 fi
24669 fi
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24671 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24672 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24673
24674 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24675
24676 fi
24677 fi
24678
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24680 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24681 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24682 $as_echo_n "(cached) " >&6
24683 else
24684 gcc_cv_as_lcomm_with_alignment=no
24685 if test x$gcc_cv_as != x; then
24686 echo '.lcomm bar,4,16' > conftest.s
24687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24689 (eval $ac_try) 2>&5
24690 ac_status=$?
24691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24692 test $ac_status = 0; }; }
24693 then
24694 gcc_cv_as_lcomm_with_alignment=yes
24695 else
24696 echo "configure: failed program was" >&5
24697 cat conftest.s >&5
24698 fi
24699 rm -f conftest.o conftest.s
24700 fi
24701 fi
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24703 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24704 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24705
24706 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24707
24708 fi
24709
24710 # Check whether --enable-gnu-unique-object was given.
24711 if test "${enable_gnu_unique_object+set}" = set; then :
24712 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24713 yes | no) ;;
24714 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24715 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24716 esac
24717 else
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24719 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24720 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24721 $as_echo_n "(cached) " >&6
24722 else
24723 gcc_cv_as_gnu_unique_object=no
24724 if test $in_tree_gas = yes; then
24725 if test $in_tree_gas_is_elf = yes \
24726 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24727 then gcc_cv_as_gnu_unique_object=yes
24728 fi
24729 elif test x$gcc_cv_as != x; then
24730 echo '.type foo, @gnu_unique_object' > conftest.s
24731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736 test $ac_status = 0; }; }
24737 then
24738 gcc_cv_as_gnu_unique_object=yes
24739 else
24740 echo "configure: failed program was" >&5
24741 cat conftest.s >&5
24742 fi
24743 rm -f conftest.o conftest.s
24744 fi
24745 fi
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24747 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24748 if test $gcc_cv_as_gnu_unique_object = yes; then
24749 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24750 if test x$host = x$build -a x$host = x$target &&
24751 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24752 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24753 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24754 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24755 if test "$glibcnum" -ge 2011 ; then
24756 enable_gnu_unique_object=yes
24757 fi
24758 fi
24759 fi
24760 fi
24761
24762 if test x$enable_gnu_unique_object = xyes; then
24763
24764 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24765
24766 fi
24767
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24769 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24770 if test "${gcc_cv_as_line_zero+set}" = set; then :
24771 $as_echo_n "(cached) " >&6
24772 else
24773 gcc_cv_as_line_zero=no
24774 if test $in_tree_gas = yes; then
24775 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24776 then gcc_cv_as_line_zero=yes
24777 fi
24778 elif test "x$gcc_cv_as" != x; then
24779 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24780 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24782 (eval $ac_try) 2>&5
24783 ac_status=$?
24784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24785 test $ac_status = 0; }; } &&
24786 test "x`cat conftest.out`" = x
24787 then
24788 gcc_cv_as_line_zero=yes
24789 else
24790 echo "configure: failed program was" >&5
24791 cat conftest.s >&5
24792 echo "configure: error output was" >&5
24793 cat conftest.out >&5
24794 fi
24795 rm -f conftest.o conftest.s conftest.out
24796 fi
24797 fi
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24799 $as_echo "$gcc_cv_as_line_zero" >&6; }
24800 if test "x$gcc_cv_as_line_zero" = xyes; then
24801
24802 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24803
24804 fi
24805
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24807 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24808 gcc_cv_ld_eh_frame_hdr=no
24809 if test $in_tree_ld = yes ; then
24810 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 \
24811 && test $in_tree_ld_is_elf = yes; then
24812 gcc_cv_ld_eh_frame_hdr=yes
24813 fi
24814 elif test x$gcc_cv_ld != x; then
24815 # Check if linker supports --eh-frame-hdr option
24816 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24817 gcc_cv_ld_eh_frame_hdr=yes
24818 fi
24819 fi
24820
24821 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24822
24823 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24824
24825 fi
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24827 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24828
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24830 $as_echo_n "checking linker position independent executable support... " >&6; }
24831 gcc_cv_ld_pie=no
24832 if test $in_tree_ld = yes ; then
24833 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 \
24834 && test $in_tree_ld_is_elf = yes; then
24835 gcc_cv_ld_pie=yes
24836 fi
24837 elif test x$gcc_cv_ld != x; then
24838 # Check if linker supports -pie option
24839 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24840 gcc_cv_ld_pie=yes
24841 fi
24842 fi
24843 if test x"$gcc_cv_ld_pie" = xyes; then
24844
24845 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24846
24847 fi
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24849 $as_echo "$gcc_cv_ld_pie" >&6; }
24850
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24852 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24853 gcc_cv_ld_eh_gc_sections=no
24854 if test $in_tree_ld = yes ; then
24855 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 \
24856 && test $in_tree_ld_is_elf = yes; then
24857 gcc_cv_ld_eh_gc_sections=yes
24858 fi
24859 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24860 cat > conftest.s <<EOF
24861 .section .text
24862 .globl _start
24863 .type _start, @function
24864 _start:
24865 .long foo
24866 .size _start, .-_start
24867 .section .text.foo,"ax",@progbits
24868 .type foo, @function
24869 foo:
24870 .long 0
24871 .size foo, .-foo
24872 .section .gcc_except_table.foo,"a",@progbits
24873 .L0:
24874 .long 0
24875 .section .eh_frame,"a",@progbits
24876 .long .L0
24877 EOF
24878 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24879 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24880 | grep "gc-sections option ignored" > /dev/null; then
24881 gcc_cv_ld_eh_gc_sections=no
24882 elif $gcc_cv_objdump -h conftest 2> /dev/null \
24883 | grep gcc_except_table > /dev/null; then
24884 gcc_cv_ld_eh_gc_sections=yes
24885 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24886 if test x$gcc_cv_as_comdat_group != xyes; then
24887 gcc_cv_ld_eh_gc_sections=no
24888 cat > conftest.s <<EOF
24889 .section .text
24890 .globl _start
24891 .type _start, @function
24892 _start:
24893 .long foo
24894 .size _start, .-_start
24895 .section .gnu.linkonce.t.foo,"ax",@progbits
24896 .type foo, @function
24897 foo:
24898 .long 0
24899 .size foo, .-foo
24900 .section .gcc_except_table.foo,"a",@progbits
24901 .L0:
24902 .long 0
24903 .section .eh_frame,"a",@progbits
24904 .long .L0
24905 EOF
24906 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24907 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24908 | grep "gc-sections option ignored" > /dev/null; then
24909 gcc_cv_ld_eh_gc_sections=no
24910 elif $gcc_cv_objdump -h conftest 2> /dev/null \
24911 | grep gcc_except_table > /dev/null; then
24912 gcc_cv_ld_eh_gc_sections=yes
24913 fi
24914 fi
24915 fi
24916 fi
24917 fi
24918 rm -f conftest.s conftest.o conftest
24919 fi
24920 case "$target" in
24921 hppa*-*-linux*)
24922 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24923 gcc_cv_ld_eh_gc_sections=no
24924 ;;
24925 esac
24926 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24927
24928 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24929
24930 fi
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24932 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24933
24934 # --------
24935 # UNSORTED
24936 # --------
24937
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24939 $as_echo_n "checking linker --as-needed support... " >&6; }
24940 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24941 $as_echo_n "(cached) " >&6
24942 else
24943 gcc_cv_ld_as_needed=no
24944 if test $in_tree_ld = yes ; then
24945 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 \
24946 && test $in_tree_ld_is_elf = yes; then
24947 gcc_cv_ld_as_needed=yes
24948 fi
24949 elif test x$gcc_cv_ld != x; then
24950 # Check if linker supports --as-needed and --no-as-needed options
24951 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24952 gcc_cv_ld_as_needed=yes
24953 fi
24954 fi
24955
24956 fi
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24958 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24959 if test x"$gcc_cv_ld_as_needed" = xyes; then
24960
24961 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24962
24963 fi
24964
24965 case "$target:$tm_file" in
24966 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24968 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24969 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24970 $as_echo_n "(cached) " >&6
24971 else
24972 gcc_cv_ld_no_dot_syms=no
24973 if test $in_tree_ld = yes ; then
24974 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
24975 gcc_cv_ld_no_dot_syms=yes
24976 fi
24977 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24978 cat > conftest1.s <<EOF
24979 .text
24980 bl .foo
24981 EOF
24982 cat > conftest2.s <<EOF
24983 .section ".opd","aw"
24984 .align 3
24985 .globl foo
24986 .type foo,@function
24987 foo:
24988 .quad .LEfoo,.TOC.@tocbase,0
24989 .text
24990 .LEfoo:
24991 blr
24992 .size foo,.-.LEfoo
24993 EOF
24994 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24995 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24996 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24997 gcc_cv_ld_no_dot_syms=yes
24998 fi
24999 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25000 fi
25001
25002 fi
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25004 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25005 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25006
25007 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25008
25009 fi
25010
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25012 $as_echo_n "checking linker large toc support... " >&6; }
25013 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25014 $as_echo_n "(cached) " >&6
25015 else
25016 gcc_cv_ld_large_toc=no
25017 if test $in_tree_ld = yes ; then
25018 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
25019 gcc_cv_ld_large_toc=yes
25020 fi
25021 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25022 cat > conftest.s <<EOF
25023 .section ".tbss","awT",@nobits
25024 .align 3
25025 ie0: .space 8
25026 .global _start
25027 .text
25028 _start:
25029 addis 9,13,ie0@got@tprel@ha
25030 ld 9,ie0@got@tprel@l(9)
25031 EOF
25032 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25033 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25034 gcc_cv_ld_large_toc=yes
25035 fi
25036 rm -f conftest conftest.o conftest.s
25037 fi
25038
25039 fi
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25041 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25042 if test x"$gcc_cv_ld_large_toc" = xyes; then
25043
25044 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25045
25046 fi
25047 ;;
25048 esac
25049
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25051 $as_echo_n "checking linker --build-id support... " >&6; }
25052 if test "${gcc_cv_ld_buildid+set}" = set; then :
25053 $as_echo_n "(cached) " >&6
25054 else
25055 gcc_cv_ld_buildid=no
25056 if test $in_tree_ld = yes ; then
25057 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25058 "$gcc_cv_gld_minor_version" -ge 18 -o \
25059 "$gcc_cv_gld_major_version" -gt 2 \
25060 && test $in_tree_ld_is_elf = yes; then
25061 gcc_cv_ld_buildid=yes
25062 fi
25063 elif test x$gcc_cv_ld != x; then
25064 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25065 gcc_cv_ld_buildid=yes
25066 fi
25067 fi
25068 fi
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25070 $as_echo "$gcc_cv_ld_buildid" >&6; }
25071 if test x"$gcc_cv_ld_buildid" = xyes; then
25072
25073 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25074
25075 fi
25076
25077 # Check whether --enable-linker-build-id was given.
25078 if test "${enable_linker_build_id+set}" = set; then :
25079 enableval=$enable_linker_build_id;
25080 else
25081 enable_linker_build_id=no
25082 fi
25083
25084
25085 if test x"$enable_linker_build_id" = xyes; then
25086 if test x"$gcc_cv_ld_buildid" = xyes; then
25087
25088 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25089
25090 else
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25092 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25093 fi
25094 fi
25095
25096 # In binutils 2.21, GNU ld gained support for new emulations fully
25097 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25099 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25100 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25101 $as_echo_n "(cached) " >&6
25102 else
25103 gcc_cv_ld_sol2_emulation=no
25104 if test $in_tree_ld = yes ; then
25105 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25106 "$gcc_cv_gld_minor_version" -ge 21 -o \
25107 "$gcc_cv_gld_major_version" -gt 2 \
25108 && test $in_tree_ld_is_elf = yes; then
25109 gcc_cv_ld_sol2_emulation=yes
25110 fi
25111 elif test x$gcc_cv_ld != x; then
25112 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25113 grep _sol2 > /dev/null; then
25114 gcc_cv_ld_sol2_emulation=yes
25115 fi
25116 fi
25117 fi
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25119 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25120 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25121
25122 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25123
25124 fi
25125
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25127 $as_echo_n "checking linker --sysroot support... " >&6; }
25128 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25129 $as_echo_n "(cached) " >&6
25130 else
25131 gcc_cv_ld_sysroot=no
25132 if test $in_tree_ld = yes ; then
25133 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
25134 gcc_cv_ld_sysroot=yes
25135 fi
25136 elif test x$gcc_cv_ld != x; then
25137 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25138 gcc_cv_ld_sysroot=yes
25139 fi
25140 fi
25141 fi
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25143 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25144 if test x"$gcc_cv_ld_sysroot" = xyes; then
25145
25146 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25147
25148 fi
25149
25150 if test x$with_sysroot = x && test x$host = x$target \
25151 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25152 && test "$prefix" != "NONE"; then
25153
25154 cat >>confdefs.h <<_ACEOF
25155 #define PREFIX_INCLUDE_DIR "$prefix/include"
25156 _ACEOF
25157
25158 fi
25159
25160 # Test for stack protector support in target C library.
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25162 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25163 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25164 $as_echo_n "(cached) " >&6
25165 else
25166 gcc_cv_libc_provides_ssp=no
25167 case "$target" in
25168 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25169 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25170 if test "x$with_headers" != x; then
25171 glibc_header_dir=$with_headers
25172 elif test "x$with_sysroot" = x; then
25173 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25174 elif test "x$with_build_sysroot" != "x"; then
25175 glibc_header_dir="${with_build_sysroot}/usr/include"
25176 elif test "x$with_sysroot" = xyes; then
25177 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25178 else
25179 glibc_header_dir="${with_sysroot}/usr/include"
25180 fi
25181 else
25182 glibc_header_dir=/usr/include
25183 fi
25184 # glibc 2.4 and later provides __stack_chk_fail and
25185 # either __stack_chk_guard, or TLS access to stack guard canary.
25186 if test -f $glibc_header_dir/features.h \
25187 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25188 $glibc_header_dir/features.h > /dev/null; then
25189 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25190 $glibc_header_dir/features.h > /dev/null; then
25191 gcc_cv_libc_provides_ssp=yes
25192 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25193 $glibc_header_dir/features.h > /dev/null \
25194 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25195 $glibc_header_dir/features.h > /dev/null; then
25196 gcc_cv_libc_provides_ssp=yes
25197 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25198 $glibc_header_dir/features.h > /dev/null && \
25199 test -f $glibc_header_dir/bits/uClibc_config.h && \
25200 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25201 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25202 gcc_cv_libc_provides_ssp=yes
25203 fi
25204 fi
25205 ;;
25206 *-*-gnu*)
25207 # Avoid complicated tests (see
25208 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25209 # simply assert that glibc does provide this, which is true for all
25210 # realistically usable GNU/Hurd configurations.
25211 gcc_cv_libc_provides_ssp=yes;;
25212 *-*-darwin* | *-*-freebsd*)
25213 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25214 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25215 gcc_cv_libc_provides_ssp=yes
25216 else
25217 echo "no __stack_chk_fail on this target"
25218 fi
25219
25220 ;;
25221 *) gcc_cv_libc_provides_ssp=no ;;
25222 esac
25223 fi
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25225 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25226
25227 if test x$gcc_cv_libc_provides_ssp = xyes; then
25228
25229 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25230
25231 fi
25232
25233 # Check if TFmode long double should be used by default or not.
25234 # Some glibc targets used DFmode long double, but with glibc 2.4
25235 # and later they can use TFmode.
25236 case "$target" in
25237 powerpc*-*-linux* | \
25238 powerpc*-*-gnu* | \
25239 sparc*-*-linux* | \
25240 s390*-*-linux* | \
25241 alpha*-*-linux*)
25242
25243 # Check whether --with-long-double-128 was given.
25244 if test "${with_long_double_128+set}" = set; then :
25245 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25246 else
25247 gcc_cv_target_ldbl128=no
25248 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25249 if test "x$with_sysroot" = x; then
25250 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25251 elif test "x$with_build_sysroot" != "x"; then
25252 glibc_header_dir="${with_build_sysroot}/usr/include"
25253 elif test "x$with_sysroot" = xyes; then
25254 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25255 else
25256 glibc_header_dir="${with_sysroot}/usr/include"
25257 fi
25258 else
25259 glibc_header_dir=/usr/include
25260 fi
25261 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25262 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25263 && gcc_cv_target_ldbl128=yes
25264
25265 fi
25266
25267 ;;
25268 esac
25269 if test x$gcc_cv_target_ldbl128 = xyes; then
25270
25271 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25272
25273 fi
25274
25275 # Find out what GC implementation we want, or may, use.
25276
25277 # Check whether --with-gc was given.
25278 if test "${with_gc+set}" = set; then :
25279 withval=$with_gc; case "$withval" in
25280 page)
25281 GGC=ggc-$withval
25282 ;;
25283 zone)
25284 GGC=ggc-$withval
25285
25286 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25287
25288 ;;
25289 *)
25290 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25291 ;;
25292 esac
25293 else
25294 GGC=ggc-page
25295 fi
25296
25297
25298 echo "Using $GGC for garbage collection."
25299
25300 # Libraries to use on the host. This will normally be set by the top
25301 # level Makefile. Here we simply capture the value for our Makefile.
25302 if test -z "${HOST_LIBS+set}"; then
25303 HOST_LIBS=
25304 fi
25305
25306
25307 # Use the system's zlib library.
25308 zlibdir=-L../zlib
25309 zlibinc="-I\$(srcdir)/../zlib"
25310
25311 # Check whether --with-system-zlib was given.
25312 if test "${with_system_zlib+set}" = set; then :
25313 withval=$with_system_zlib; zlibdir=
25314 zlibinc=
25315
25316 fi
25317
25318
25319
25320
25321
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25323 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25324 # Check whether --enable-maintainer-mode was given.
25325 if test "${enable_maintainer_mode+set}" = set; then :
25326 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25327 else
25328 maintainer_mode=no
25329 fi
25330
25331
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25333 $as_echo "$maintainer_mode" >&6; }
25334
25335 if test "$maintainer_mode" = "yes"; then
25336 MAINT=''
25337 else
25338 MAINT='#'
25339 fi
25340
25341 # --------------
25342 # Language hooks
25343 # --------------
25344
25345 # Make empty files to contain the specs and options for each language.
25346 # Then add #include lines to for a compiler that has specs and/or options.
25347
25348 subdirs=
25349 lang_opt_files=
25350 lang_specs_files=
25351 lang_tree_files=
25352 # These (without "all_") are set in each config-lang.in.
25353 # `language' must be a single word so is spelled singularly.
25354 all_languages=
25355 all_compilers=
25356 all_outputs='Makefile gccbug'
25357 # List of language makefile fragments.
25358 all_lang_makefrags=
25359 # Additional files for gengtype
25360 all_gtfiles="$target_gtfiles"
25361
25362 # These are the languages that are set in --enable-languages,
25363 # and are available in the GCC tree.
25364 all_selected_languages=
25365
25366 # Add the language fragments.
25367 # Languages are added via two mechanisms. Some information must be
25368 # recorded in makefile variables, these are defined in config-lang.in.
25369 # We accumulate them and plug them into the main Makefile.
25370 # The other mechanism is a set of hooks for each of the main targets
25371 # like `clean', `install', etc.
25372
25373 language_hooks="Make-hooks"
25374
25375 for lang in ${srcdir}/*/config-lang.in
25376 do
25377 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25378
25379 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25380 if test "x$lang_alias" = x
25381 then
25382 echo "$lang doesn't set \$language." 1>&2
25383 exit 1
25384 fi
25385 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25386 subdirs="$subdirs $subdir"
25387
25388 # $gcc_subdir is where the gcc integration files are to be found
25389 # for a language, both for internal compiler purposes (compiler
25390 # sources implementing front-end to GCC tree converters), and for
25391 # build infrastructure purposes (Make-lang.in, etc.)
25392 #
25393 # This will be <subdir> (relative to $srcdir) if a line like
25394 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25395 # is found in <langdir>/config-lang.in, and will remain <langdir>
25396 # otherwise.
25397 #
25398 # Except for the language alias (fetched above), the regular
25399 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25400 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25401 # only this and the language alias.
25402
25403 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25404 if [ "$gcc_subdir" = "" ]; then
25405 gcc_subdir="$subdir"
25406 fi
25407
25408 case ",$enable_languages," in
25409 *,$lang_alias,*)
25410 all_selected_languages="$all_selected_languages $lang_alias"
25411 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25412 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25413 fi
25414 ;;
25415 esac
25416
25417 language=
25418 boot_language=
25419 compilers=
25420 outputs=
25421 gtfiles=
25422 subdir_requires=
25423 . ${srcdir}/$gcc_subdir/config-lang.in
25424 if test "x$language" = x
25425 then
25426 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25427 exit 1
25428 fi
25429
25430 ok=:
25431 case ",$enable_languages," in
25432 *,$lang_alias,*) ;;
25433 *)
25434 for i in $subdir_requires; do
25435 test -f "${srcdir}/$i/config-lang.in" && continue
25436 ok=false
25437 break
25438 done
25439 ;;
25440 esac
25441 $ok || continue
25442
25443 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25444 if test -f $srcdir/$gcc_subdir/lang.opt; then
25445 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25446 fi
25447 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25448 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25449 fi
25450 all_languages="$all_languages $language"
25451 all_compilers="$all_compilers $compilers"
25452 all_outputs="$all_outputs $outputs"
25453 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25454 case ",$enable_languages," in
25455 *,lto,*)
25456
25457 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25458
25459 enable_lto=yes
25460
25461 # LTO needs to speak the platform's object file format, and has a
25462 # number of implementations of the required binary file access APIs.
25463 # ELF is the most common, and default. We only link libelf if ELF
25464 # is indeed the selected format.
25465 LTO_BINARY_READER=${lto_binary_reader}
25466 LTO_USE_LIBELF=-lelf
25467 if test "x$lto_binary_reader" != "xlto-elf" ; then
25468 LTO_USE_LIBELF=
25469 fi
25470
25471
25472 ;;
25473 *) ;;
25474 esac
25475 done
25476
25477 # Pick up gtfiles for c
25478 gtfiles=
25479 . ${srcdir}/c-config-lang.in
25480 all_gtfiles="$all_gtfiles [c] $gtfiles"
25481
25482 check_languages=
25483 for language in $all_selected_languages
25484 do
25485 check_languages="$check_languages check-$language"
25486 done
25487
25488 # We link each language in with a set of hooks, reached indirectly via
25489 # lang.${target}. Only do so for selected languages.
25490
25491 rm -f Make-hooks
25492 touch Make-hooks
25493 target_list="all.cross start.encap rest.encap tags \
25494 install-common install-man install-info install-pdf install-html dvi \
25495 pdf html uninstall info man srcextra srcman srcinfo \
25496 mostlyclean clean distclean maintainer-clean install-plugin"
25497
25498 for t in $target_list
25499 do
25500 x=
25501 for lang in $all_selected_languages
25502 do
25503 x="$x $lang.$t"
25504 done
25505 echo "lang.$t: $x" >> Make-hooks
25506 done
25507
25508 # --------
25509 # UNSORTED
25510 # --------
25511
25512 # Create .gdbinit.
25513
25514 echo "dir ." > .gdbinit
25515 echo "dir ${srcdir}" >> .gdbinit
25516 if test x$gdb_needs_out_file_path = xyes
25517 then
25518 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25519 fi
25520 if test "x$subdirs" != x; then
25521 for s in $subdirs
25522 do
25523 echo "dir ${srcdir}/$s" >> .gdbinit
25524 done
25525 fi
25526 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25527
25528 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25529
25530
25531
25532 # Find a directory in which to install a shared libgcc.
25533
25534 # Check whether --enable-version-specific-runtime-libs was given.
25535 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25536 enableval=$enable_version_specific_runtime_libs;
25537 fi
25538
25539
25540
25541 # Check whether --with-slibdir was given.
25542 if test "${with_slibdir+set}" = set; then :
25543 withval=$with_slibdir; slibdir="$with_slibdir"
25544 else
25545 if test "${enable_version_specific_runtime_libs+set}" = set; then
25546 slibdir='$(libsubdir)'
25547 elif test "$host" != "$target"; then
25548 slibdir='$(build_tooldir)/lib'
25549 else
25550 slibdir='$(libdir)'
25551 fi
25552 fi
25553
25554
25555
25556 # Substitute configuration variables
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619 # Echo link setup.
25620 if test x${build} = x${host} ; then
25621 if test x${host} = x${target} ; then
25622 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25623 else
25624 echo "Links are now set up to build a cross-compiler" 1>&2
25625 echo " from ${host} to ${target}." 1>&2
25626 fi
25627 else
25628 if test x${host} = x${target} ; then
25629 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25630 echo " for ${target}." 1>&2
25631 else
25632 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25633 echo " from ${host} to ${target}." 1>&2
25634 fi
25635 fi
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645 if test "x${CLOOGLIBS}" != "x" ; then
25646
25647 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25648
25649 fi
25650
25651
25652
25653 if test "x${LIBELFLIBS}" != "x" ; then
25654
25655 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25656
25657 fi
25658
25659 # Check for plugin support
25660 # Check whether --enable-plugin was given.
25661 if test "${enable_plugin+set}" = set; then :
25662 enableval=$enable_plugin; enable_plugin=$enableval
25663 else
25664 enable_plugin=yes; default_plugin=yes
25665 fi
25666
25667
25668 pluginlibs=
25669 if test x"$enable_plugin" = x"yes"; then
25670
25671 case "${host}" in
25672 *-*-darwin*)
25673 export_sym_check="$gcc_cv_nm -g"
25674 ;;
25675 *)
25676 export_sym_check="$gcc_cv_objdump -T"
25677 ;;
25678 esac
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25680 $as_echo_n "checking for exported symbols... " >&6; }
25681 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25682 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25683 if $export_sym_check conftest | grep foobar > /dev/null; then
25684 : # No need to use a flag
25685 else
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25687 $as_echo_n "checking for -rdynamic... " >&6; }
25688 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25689 if $export_sym_check conftest | grep foobar > /dev/null; then
25690 plugin_rdynamic=yes
25691 pluginlibs="-rdynamic"
25692 else
25693 plugin_rdynamic=no
25694 enable_plugin=no
25695 fi
25696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25697 $as_echo "$plugin_rdynamic" >&6; }
25698 fi
25699
25700 # Check -ldl
25701 saved_LIBS="$LIBS"
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25703 $as_echo_n "checking for library containing dlopen... " >&6; }
25704 if test "${ac_cv_search_dlopen+set}" = set; then :
25705 $as_echo_n "(cached) " >&6
25706 else
25707 ac_func_search_save_LIBS=$LIBS
25708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25709 /* end confdefs.h. */
25710
25711 /* Override any GCC internal prototype to avoid an error.
25712 Use char because int might match the return type of a GCC
25713 builtin and then its argument prototype would still apply. */
25714 #ifdef __cplusplus
25715 extern "C"
25716 #endif
25717 char dlopen ();
25718 int
25719 main ()
25720 {
25721 return dlopen ();
25722 ;
25723 return 0;
25724 }
25725 _ACEOF
25726 for ac_lib in '' dl; do
25727 if test -z "$ac_lib"; then
25728 ac_res="none required"
25729 else
25730 ac_res=-l$ac_lib
25731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25732 fi
25733 if ac_fn_c_try_link "$LINENO"; then :
25734 ac_cv_search_dlopen=$ac_res
25735 fi
25736 rm -f core conftest.err conftest.$ac_objext \
25737 conftest$ac_exeext
25738 if test "${ac_cv_search_dlopen+set}" = set; then :
25739 break
25740 fi
25741 done
25742 if test "${ac_cv_search_dlopen+set}" = set; then :
25743
25744 else
25745 ac_cv_search_dlopen=no
25746 fi
25747 rm conftest.$ac_ext
25748 LIBS=$ac_func_search_save_LIBS
25749 fi
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25751 $as_echo "$ac_cv_search_dlopen" >&6; }
25752 ac_res=$ac_cv_search_dlopen
25753 if test "$ac_res" != no; then :
25754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25755
25756 fi
25757
25758 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25759 pluginlibs="$pluginlibs -ldl"
25760 fi
25761 LIBS="$saved_LIBS"
25762
25763 # Check that we can build shared objects with -fPIC -shared
25764 saved_LDFLAGS="$LDFLAGS"
25765 case "${host}" in
25766 *-*-darwin*)
25767 LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25768 ;;
25769 *)
25770 LDFLAGS="$LDFLAGS -fPIC -shared"
25771 ;;
25772 esac
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25774 $as_echo_n "checking for -fPIC -shared... " >&6; }
25775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25776 /* end confdefs.h. */
25777 extern int X;
25778 int
25779 main ()
25780 {
25781 return X == 0;
25782 ;
25783 return 0;
25784 }
25785 _ACEOF
25786 if ac_fn_c_try_link "$LINENO"; then :
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25788 $as_echo "yes" >&6; }; have_pic_shared=yes
25789 else
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25791 $as_echo "no" >&6; }; have_pic_shared=no
25792 fi
25793 rm -f core conftest.err conftest.$ac_objext \
25794 conftest$ac_exeext conftest.$ac_ext
25795 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25796 pluginlibs=
25797 enable_plugin=no
25798 fi
25799 LDFLAGS="$saved_LDFLAGS"
25800
25801 # If plugin support had been requested but not available, fail.
25802 if test x"$enable_plugin" = x"no" ; then
25803 if test x"$default_plugin" != x"yes"; then
25804 as_fn_error "
25805 Building GCC with plugin support requires a host that supports
25806 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25807 fi
25808 fi
25809 fi
25810
25811
25812
25813 if test x"$enable_plugin" = x"yes"; then
25814
25815 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25816
25817 fi
25818
25819 # Configure the subdirectories
25820 # AC_CONFIG_SUBDIRS($subdirs)
25821
25822 # Create the Makefile
25823 # and configure language subdirectories
25824 ac_config_files="$ac_config_files $all_outputs"
25825
25826
25827 ac_config_commands="$ac_config_commands default"
25828
25829 cat >confcache <<\_ACEOF
25830 # This file is a shell script that caches the results of configure
25831 # tests run on this system so they can be shared between configure
25832 # scripts and configure runs, see configure's option --config-cache.
25833 # It is not useful on other systems. If it contains results you don't
25834 # want to keep, you may remove or edit it.
25835 #
25836 # config.status only pays attention to the cache file if you give it
25837 # the --recheck option to rerun configure.
25838 #
25839 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25840 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25841 # following values.
25842
25843 _ACEOF
25844
25845 # The following way of writing the cache mishandles newlines in values,
25846 # but we know of no workaround that is simple, portable, and efficient.
25847 # So, we kill variables containing newlines.
25848 # Ultrix sh set writes to stderr and can't be redirected directly,
25849 # and sets the high bit in the cache file unless we assign to the vars.
25850 (
25851 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25852 eval ac_val=\$$ac_var
25853 case $ac_val in #(
25854 *${as_nl}*)
25855 case $ac_var in #(
25856 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25857 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25858 esac
25859 case $ac_var in #(
25860 _ | IFS | as_nl) ;; #(
25861 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25862 *) { eval $ac_var=; unset $ac_var;} ;;
25863 esac ;;
25864 esac
25865 done
25866
25867 (set) 2>&1 |
25868 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25869 *${as_nl}ac_space=\ *)
25870 # `set' does not quote correctly, so add quotes: double-quote
25871 # substitution turns \\\\ into \\, and sed turns \\ into \.
25872 sed -n \
25873 "s/'/'\\\\''/g;
25874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25875 ;; #(
25876 *)
25877 # `set' quotes correctly as required by POSIX, so do not add quotes.
25878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25879 ;;
25880 esac |
25881 sort
25882 ) |
25883 sed '
25884 /^ac_cv_env_/b end
25885 t clear
25886 :clear
25887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25888 t end
25889 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25890 :end' >>confcache
25891 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25892 if test -w "$cache_file"; then
25893 test "x$cache_file" != "x/dev/null" &&
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25895 $as_echo "$as_me: updating cache $cache_file" >&6;}
25896 cat confcache >$cache_file
25897 else
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25899 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25900 fi
25901 fi
25902 rm -f confcache
25903
25904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25905 # Let make expand exec_prefix.
25906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25907
25908 DEFS=-DHAVE_CONFIG_H
25909
25910 ac_libobjs=
25911 ac_ltlibobjs=
25912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25913 # 1. Remove the extension, and $U if already installed.
25914 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25915 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25916 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25917 # will be set to the directory where LIBOBJS objects are built.
25918 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25919 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25920 done
25921 LIBOBJS=$ac_libobjs
25922
25923 LTLIBOBJS=$ac_ltlibobjs
25924
25925
25926
25927
25928 : ${CONFIG_STATUS=./config.status}
25929 ac_write_fail=0
25930 ac_clean_files_save=$ac_clean_files
25931 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25933 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25934 as_write_fail=0
25935 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25936 #! $SHELL
25937 # Generated by $as_me.
25938 # Run this file to recreate the current configuration.
25939 # Compiler output produced by configure, useful for debugging
25940 # configure, is in config.log if it exists.
25941
25942 debug=false
25943 ac_cs_recheck=false
25944 ac_cs_silent=false
25945
25946 SHELL=\${CONFIG_SHELL-$SHELL}
25947 export SHELL
25948 _ASEOF
25949 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25950 ## -------------------- ##
25951 ## M4sh Initialization. ##
25952 ## -------------------- ##
25953
25954 # Be more Bourne compatible
25955 DUALCASE=1; export DUALCASE # for MKS sh
25956 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25957 emulate sh
25958 NULLCMD=:
25959 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25960 # is contrary to our usage. Disable this feature.
25961 alias -g '${1+"$@"}'='"$@"'
25962 setopt NO_GLOB_SUBST
25963 else
25964 case `(set -o) 2>/dev/null` in #(
25965 *posix*) :
25966 set -o posix ;; #(
25967 *) :
25968 ;;
25969 esac
25970 fi
25971
25972
25973 as_nl='
25974 '
25975 export as_nl
25976 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25977 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25978 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25979 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25980 # Prefer a ksh shell builtin over an external printf program on Solaris,
25981 # but without wasting forks for bash or zsh.
25982 if test -z "$BASH_VERSION$ZSH_VERSION" \
25983 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25984 as_echo='print -r --'
25985 as_echo_n='print -rn --'
25986 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25987 as_echo='printf %s\n'
25988 as_echo_n='printf %s'
25989 else
25990 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25991 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25992 as_echo_n='/usr/ucb/echo -n'
25993 else
25994 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25995 as_echo_n_body='eval
25996 arg=$1;
25997 case $arg in #(
25998 *"$as_nl"*)
25999 expr "X$arg" : "X\\(.*\\)$as_nl";
26000 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26001 esac;
26002 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26003 '
26004 export as_echo_n_body
26005 as_echo_n='sh -c $as_echo_n_body as_echo'
26006 fi
26007 export as_echo_body
26008 as_echo='sh -c $as_echo_body as_echo'
26009 fi
26010
26011 # The user is always right.
26012 if test "${PATH_SEPARATOR+set}" != set; then
26013 PATH_SEPARATOR=:
26014 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26015 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26016 PATH_SEPARATOR=';'
26017 }
26018 fi
26019
26020
26021 # IFS
26022 # We need space, tab and new line, in precisely that order. Quoting is
26023 # there to prevent editors from complaining about space-tab.
26024 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26025 # splitting by setting IFS to empty value.)
26026 IFS=" "" $as_nl"
26027
26028 # Find who we are. Look in the path if we contain no directory separator.
26029 case $0 in #((
26030 *[\\/]* ) as_myself=$0 ;;
26031 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26032 for as_dir in $PATH
26033 do
26034 IFS=$as_save_IFS
26035 test -z "$as_dir" && as_dir=.
26036 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26037 done
26038 IFS=$as_save_IFS
26039
26040 ;;
26041 esac
26042 # We did not find ourselves, most probably we were run as `sh COMMAND'
26043 # in which case we are not to be found in the path.
26044 if test "x$as_myself" = x; then
26045 as_myself=$0
26046 fi
26047 if test ! -f "$as_myself"; then
26048 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26049 exit 1
26050 fi
26051
26052 # Unset variables that we do not need and which cause bugs (e.g. in
26053 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26054 # suppresses any "Segmentation fault" message there. '((' could
26055 # trigger a bug in pdksh 5.2.14.
26056 for as_var in BASH_ENV ENV MAIL MAILPATH
26057 do eval test x\${$as_var+set} = xset \
26058 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26059 done
26060 PS1='$ '
26061 PS2='> '
26062 PS4='+ '
26063
26064 # NLS nuisances.
26065 LC_ALL=C
26066 export LC_ALL
26067 LANGUAGE=C
26068 export LANGUAGE
26069
26070 # CDPATH.
26071 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26072
26073
26074 # as_fn_error ERROR [LINENO LOG_FD]
26075 # ---------------------------------
26076 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26077 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26078 # script with status $?, using 1 if that was 0.
26079 as_fn_error ()
26080 {
26081 as_status=$?; test $as_status -eq 0 && as_status=1
26082 if test "$3"; then
26083 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26084 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26085 fi
26086 $as_echo "$as_me: error: $1" >&2
26087 as_fn_exit $as_status
26088 } # as_fn_error
26089
26090
26091 # as_fn_set_status STATUS
26092 # -----------------------
26093 # Set $? to STATUS, without forking.
26094 as_fn_set_status ()
26095 {
26096 return $1
26097 } # as_fn_set_status
26098
26099 # as_fn_exit STATUS
26100 # -----------------
26101 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26102 as_fn_exit ()
26103 {
26104 set +e
26105 as_fn_set_status $1
26106 exit $1
26107 } # as_fn_exit
26108
26109 # as_fn_unset VAR
26110 # ---------------
26111 # Portably unset VAR.
26112 as_fn_unset ()
26113 {
26114 { eval $1=; unset $1;}
26115 }
26116 as_unset=as_fn_unset
26117 # as_fn_append VAR VALUE
26118 # ----------------------
26119 # Append the text in VALUE to the end of the definition contained in VAR. Take
26120 # advantage of any shell optimizations that allow amortized linear growth over
26121 # repeated appends, instead of the typical quadratic growth present in naive
26122 # implementations.
26123 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26124 eval 'as_fn_append ()
26125 {
26126 eval $1+=\$2
26127 }'
26128 else
26129 as_fn_append ()
26130 {
26131 eval $1=\$$1\$2
26132 }
26133 fi # as_fn_append
26134
26135 # as_fn_arith ARG...
26136 # ------------------
26137 # Perform arithmetic evaluation on the ARGs, and store the result in the
26138 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26139 # must be portable across $(()) and expr.
26140 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26141 eval 'as_fn_arith ()
26142 {
26143 as_val=$(( $* ))
26144 }'
26145 else
26146 as_fn_arith ()
26147 {
26148 as_val=`expr "$@" || test $? -eq 1`
26149 }
26150 fi # as_fn_arith
26151
26152
26153 if expr a : '\(a\)' >/dev/null 2>&1 &&
26154 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26155 as_expr=expr
26156 else
26157 as_expr=false
26158 fi
26159
26160 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26161 as_basename=basename
26162 else
26163 as_basename=false
26164 fi
26165
26166 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26167 as_dirname=dirname
26168 else
26169 as_dirname=false
26170 fi
26171
26172 as_me=`$as_basename -- "$0" ||
26173 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26174 X"$0" : 'X\(//\)$' \| \
26175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26176 $as_echo X/"$0" |
26177 sed '/^.*\/\([^/][^/]*\)\/*$/{
26178 s//\1/
26179 q
26180 }
26181 /^X\/\(\/\/\)$/{
26182 s//\1/
26183 q
26184 }
26185 /^X\/\(\/\).*/{
26186 s//\1/
26187 q
26188 }
26189 s/.*/./; q'`
26190
26191 # Avoid depending upon Character Ranges.
26192 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26193 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26194 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26195 as_cr_digits='0123456789'
26196 as_cr_alnum=$as_cr_Letters$as_cr_digits
26197
26198 ECHO_C= ECHO_N= ECHO_T=
26199 case `echo -n x` in #(((((
26200 -n*)
26201 case `echo 'xy\c'` in
26202 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26203 xy) ECHO_C='\c';;
26204 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26205 ECHO_T=' ';;
26206 esac;;
26207 *)
26208 ECHO_N='-n';;
26209 esac
26210
26211 rm -f conf$$ conf$$.exe conf$$.file
26212 if test -d conf$$.dir; then
26213 rm -f conf$$.dir/conf$$.file
26214 else
26215 rm -f conf$$.dir
26216 mkdir conf$$.dir 2>/dev/null
26217 fi
26218 if (echo >conf$$.file) 2>/dev/null; then
26219 if ln -s conf$$.file conf$$ 2>/dev/null; then
26220 as_ln_s='ln -s'
26221 # ... but there are two gotchas:
26222 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26223 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26224 # In both cases, we have to default to `cp -p'.
26225 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26226 as_ln_s='cp -p'
26227 elif ln conf$$.file conf$$ 2>/dev/null; then
26228 as_ln_s=ln
26229 else
26230 as_ln_s='cp -p'
26231 fi
26232 else
26233 as_ln_s='cp -p'
26234 fi
26235 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26236 rmdir conf$$.dir 2>/dev/null
26237
26238
26239 # as_fn_mkdir_p
26240 # -------------
26241 # Create "$as_dir" as a directory, including parents if necessary.
26242 as_fn_mkdir_p ()
26243 {
26244
26245 case $as_dir in #(
26246 -*) as_dir=./$as_dir;;
26247 esac
26248 test -d "$as_dir" || eval $as_mkdir_p || {
26249 as_dirs=
26250 while :; do
26251 case $as_dir in #(
26252 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26253 *) as_qdir=$as_dir;;
26254 esac
26255 as_dirs="'$as_qdir' $as_dirs"
26256 as_dir=`$as_dirname -- "$as_dir" ||
26257 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26258 X"$as_dir" : 'X\(//\)[^/]' \| \
26259 X"$as_dir" : 'X\(//\)$' \| \
26260 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26261 $as_echo X"$as_dir" |
26262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26263 s//\1/
26264 q
26265 }
26266 /^X\(\/\/\)[^/].*/{
26267 s//\1/
26268 q
26269 }
26270 /^X\(\/\/\)$/{
26271 s//\1/
26272 q
26273 }
26274 /^X\(\/\).*/{
26275 s//\1/
26276 q
26277 }
26278 s/.*/./; q'`
26279 test -d "$as_dir" && break
26280 done
26281 test -z "$as_dirs" || eval "mkdir $as_dirs"
26282 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26283
26284
26285 } # as_fn_mkdir_p
26286 if mkdir -p . 2>/dev/null; then
26287 as_mkdir_p='mkdir -p "$as_dir"'
26288 else
26289 test -d ./-p && rmdir ./-p
26290 as_mkdir_p=false
26291 fi
26292
26293 if test -x / >/dev/null 2>&1; then
26294 as_test_x='test -x'
26295 else
26296 if ls -dL / >/dev/null 2>&1; then
26297 as_ls_L_option=L
26298 else
26299 as_ls_L_option=
26300 fi
26301 as_test_x='
26302 eval sh -c '\''
26303 if test -d "$1"; then
26304 test -d "$1/.";
26305 else
26306 case $1 in #(
26307 -*)set "./$1";;
26308 esac;
26309 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26310 ???[sx]*):;;*)false;;esac;fi
26311 '\'' sh
26312 '
26313 fi
26314 as_executable_p=$as_test_x
26315
26316 # Sed expression to map a string onto a valid CPP name.
26317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26318
26319 # Sed expression to map a string onto a valid variable name.
26320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26321
26322
26323 exec 6>&1
26324 ## ----------------------------------- ##
26325 ## Main body of $CONFIG_STATUS script. ##
26326 ## ----------------------------------- ##
26327 _ASEOF
26328 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26329
26330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26331 # Save the log message, to keep $0 and so on meaningful, and to
26332 # report actual input values of CONFIG_FILES etc. instead of their
26333 # values after options handling.
26334 ac_log="
26335 This file was extended by $as_me, which was
26336 generated by GNU Autoconf 2.64. Invocation command line was
26337
26338 CONFIG_FILES = $CONFIG_FILES
26339 CONFIG_HEADERS = $CONFIG_HEADERS
26340 CONFIG_LINKS = $CONFIG_LINKS
26341 CONFIG_COMMANDS = $CONFIG_COMMANDS
26342 $ $0 $@
26343
26344 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26345 "
26346
26347 _ACEOF
26348
26349 case $ac_config_files in *"
26350 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26351 esac
26352
26353 case $ac_config_headers in *"
26354 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26355 esac
26356
26357
26358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26359 # Files that config.status was made for.
26360 config_files="$ac_config_files"
26361 config_headers="$ac_config_headers"
26362 config_commands="$ac_config_commands"
26363
26364 _ACEOF
26365
26366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26367 ac_cs_usage="\
26368 \`$as_me' instantiates files and other configuration actions
26369 from templates according to the current configuration. Unless the files
26370 and actions are specified as TAGs, all are instantiated by default.
26371
26372 Usage: $0 [OPTION]... [TAG]...
26373
26374 -h, --help print this help, then exit
26375 -V, --version print version number and configuration settings, then exit
26376 -q, --quiet, --silent
26377 do not print progress messages
26378 -d, --debug don't remove temporary files
26379 --recheck update $as_me by reconfiguring in the same conditions
26380 --file=FILE[:TEMPLATE]
26381 instantiate the configuration file FILE
26382 --header=FILE[:TEMPLATE]
26383 instantiate the configuration header FILE
26384
26385 Configuration files:
26386 $config_files
26387
26388 Configuration headers:
26389 $config_headers
26390
26391 Configuration commands:
26392 $config_commands
26393
26394 Report bugs to the package provider."
26395
26396 _ACEOF
26397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26398 ac_cs_version="\\
26399 config.status
26400 configured by $0, generated by GNU Autoconf 2.64,
26401 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26402
26403 Copyright (C) 2009 Free Software Foundation, Inc.
26404 This config.status script is free software; the Free Software Foundation
26405 gives unlimited permission to copy, distribute and modify it."
26406
26407 ac_pwd='$ac_pwd'
26408 srcdir='$srcdir'
26409 AWK='$AWK'
26410 test -n "\$AWK" || AWK=awk
26411 _ACEOF
26412
26413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26414 # The default lists apply if the user does not specify any file.
26415 ac_need_defaults=:
26416 while test $# != 0
26417 do
26418 case $1 in
26419 --*=*)
26420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26421 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26422 ac_shift=:
26423 ;;
26424 *)
26425 ac_option=$1
26426 ac_optarg=$2
26427 ac_shift=shift
26428 ;;
26429 esac
26430
26431 case $ac_option in
26432 # Handling of the options.
26433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26434 ac_cs_recheck=: ;;
26435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26436 $as_echo "$ac_cs_version"; exit ;;
26437 --debug | --debu | --deb | --de | --d | -d )
26438 debug=: ;;
26439 --file | --fil | --fi | --f )
26440 $ac_shift
26441 case $ac_optarg in
26442 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26443 esac
26444 as_fn_append CONFIG_FILES " '$ac_optarg'"
26445 ac_need_defaults=false;;
26446 --header | --heade | --head | --hea )
26447 $ac_shift
26448 case $ac_optarg in
26449 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26450 esac
26451 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26452 ac_need_defaults=false;;
26453 --he | --h)
26454 # Conflict between --help and --header
26455 as_fn_error "ambiguous option: \`$1'
26456 Try \`$0 --help' for more information.";;
26457 --help | --hel | -h )
26458 $as_echo "$ac_cs_usage"; exit ;;
26459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26460 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26461 ac_cs_silent=: ;;
26462
26463 # This is an error.
26464 -*) as_fn_error "unrecognized option: \`$1'
26465 Try \`$0 --help' for more information." ;;
26466
26467 *) as_fn_append ac_config_targets " $1"
26468 ac_need_defaults=false ;;
26469
26470 esac
26471 shift
26472 done
26473
26474 ac_configure_extra_args=
26475
26476 if $ac_cs_silent; then
26477 exec 6>/dev/null
26478 ac_configure_extra_args="$ac_configure_extra_args --silent"
26479 fi
26480
26481 _ACEOF
26482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26483 if \$ac_cs_recheck; then
26484 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26485 shift
26486 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26487 CONFIG_SHELL='$SHELL'
26488 export CONFIG_SHELL
26489 exec "\$@"
26490 fi
26491
26492 _ACEOF
26493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26494 exec 5>>config.log
26495 {
26496 echo
26497 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26498 ## Running $as_me. ##
26499 _ASBOX
26500 $as_echo "$ac_log"
26501 } >&5
26502
26503 _ACEOF
26504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26505 #
26506 # INIT-COMMANDS
26507 #
26508 subdirs='$subdirs'
26509
26510 _ACEOF
26511
26512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26513
26514 # Handling of arguments.
26515 for ac_config_target in $ac_config_targets
26516 do
26517 case $ac_config_target in
26518 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26519 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26520 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26521 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26522 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26523 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26524
26525 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26526 esac
26527 done
26528
26529
26530 # If the user did not use the arguments to specify the items to instantiate,
26531 # then the envvar interface is used. Set only those that are not.
26532 # We use the long form for the default assignment because of an extremely
26533 # bizarre bug on SunOS 4.1.3.
26534 if $ac_need_defaults; then
26535 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26536 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26537 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26538 fi
26539
26540 # Have a temporary directory for convenience. Make it in the build tree
26541 # simply because there is no reason against having it here, and in addition,
26542 # creating and moving files from /tmp can sometimes cause problems.
26543 # Hook for its removal unless debugging.
26544 # Note that there is a small window in which the directory will not be cleaned:
26545 # after its creation but before its name has been assigned to `$tmp'.
26546 $debug ||
26547 {
26548 tmp=
26549 trap 'exit_status=$?
26550 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26551 ' 0
26552 trap 'as_fn_exit 1' 1 2 13 15
26553 }
26554 # Create a (secure) tmp directory for tmp files.
26555
26556 {
26557 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26558 test -n "$tmp" && test -d "$tmp"
26559 } ||
26560 {
26561 tmp=./conf$$-$RANDOM
26562 (umask 077 && mkdir "$tmp")
26563 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26564
26565 # Set up the scripts for CONFIG_FILES section.
26566 # No need to generate them if there are no CONFIG_FILES.
26567 # This happens for instance with `./config.status config.h'.
26568 if test -n "$CONFIG_FILES"; then
26569
26570 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26571 ac_cs_awk_getline=:
26572 ac_cs_awk_pipe_init=
26573 ac_cs_awk_read_file='
26574 while ((getline aline < (F[key])) > 0)
26575 print(aline)
26576 close(F[key])'
26577 ac_cs_awk_pipe_fini=
26578 else
26579 ac_cs_awk_getline=false
26580 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26581 ac_cs_awk_read_file='
26582 print "|#_!!_#|"
26583 print "cat " F[key] " &&"
26584 '$ac_cs_awk_pipe_init
26585 # The final `:' finishes the AND list.
26586 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26587 fi
26588 ac_cr=`echo X | tr X '\015'`
26589 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26590 # But we know of no other shell where ac_cr would be empty at this
26591 # point, so we can use a bashism as a fallback.
26592 if test "x$ac_cr" = x; then
26593 eval ac_cr=\$\'\\r\'
26594 fi
26595 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26596 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26597 ac_cs_awk_cr='\r'
26598 else
26599 ac_cs_awk_cr=$ac_cr
26600 fi
26601
26602 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26603 _ACEOF
26604
26605 # Create commands to substitute file output variables.
26606 {
26607 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26608 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26609 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26610 echo "_ACAWK" &&
26611 echo "_ACEOF"
26612 } >conf$$files.sh &&
26613 . ./conf$$files.sh ||
26614 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26615 rm -f conf$$files.sh
26616
26617 {
26618 echo "cat >conf$$subs.awk <<_ACEOF" &&
26619 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26620 echo "_ACEOF"
26621 } >conf$$subs.sh ||
26622 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26623 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26624 ac_delim='%!_!# '
26625 for ac_last_try in false false false false false :; do
26626 . ./conf$$subs.sh ||
26627 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26628
26629 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26630 if test $ac_delim_n = $ac_delim_num; then
26631 break
26632 elif $ac_last_try; then
26633 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26634 else
26635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26636 fi
26637 done
26638 rm -f conf$$subs.sh
26639
26640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26641 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26642 _ACEOF
26643 sed -n '
26644 h
26645 s/^/S["/; s/!.*/"]=/
26646 p
26647 g
26648 s/^[^!]*!//
26649 :repl
26650 t repl
26651 s/'"$ac_delim"'$//
26652 t delim
26653 :nl
26654 h
26655 s/\(.\{148\}\).*/\1/
26656 t more1
26657 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26658 p
26659 n
26660 b repl
26661 :more1
26662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26663 p
26664 g
26665 s/.\{148\}//
26666 t nl
26667 :delim
26668 h
26669 s/\(.\{148\}\).*/\1/
26670 t more2
26671 s/["\\]/\\&/g; s/^/"/; s/$/"/
26672 p
26673 b
26674 :more2
26675 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26676 p
26677 g
26678 s/.\{148\}//
26679 t delim
26680 ' <conf$$subs.awk | sed '
26681 /^[^""]/{
26682 N
26683 s/\n//
26684 }
26685 ' >>$CONFIG_STATUS || ac_write_fail=1
26686 rm -f conf$$subs.awk
26687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26688 _ACAWK
26689 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26690 for (key in S) S_is_set[key] = 1
26691 FS = "\a"
26692 \$ac_cs_awk_pipe_init
26693 }
26694 {
26695 line = $ 0
26696 nfields = split(line, field, "@")
26697 substed = 0
26698 len = length(field[1])
26699 for (i = 2; i < nfields; i++) {
26700 key = field[i]
26701 keylen = length(key)
26702 if (S_is_set[key]) {
26703 value = S[key]
26704 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26705 len += length(value) + length(field[++i])
26706 substed = 1
26707 } else
26708 len += 1 + keylen
26709 }
26710 if (nfields == 3 && !substed) {
26711 key = field[2]
26712 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26713 \$ac_cs_awk_read_file
26714 next
26715 }
26716 }
26717 print line
26718 }
26719 \$ac_cs_awk_pipe_fini
26720 _ACAWK
26721 _ACEOF
26722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26723 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26724 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26725 else
26726 cat
26727 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26728 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26729 _ACEOF
26730
26731 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26732 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26733 # trailing colons and then remove the whole line if VPATH becomes empty
26734 # (actually we leave an empty line to preserve line numbers).
26735 if test "x$srcdir" = x.; then
26736 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26737 s/:*\$(srcdir):*/:/
26738 s/:*\${srcdir}:*/:/
26739 s/:*@srcdir@:*/:/
26740 s/^\([^=]*=[ ]*\):*/\1/
26741 s/:*$//
26742 s/^[^=]*=[ ]*$//
26743 }'
26744 fi
26745
26746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26747 fi # test -n "$CONFIG_FILES"
26748
26749 # Set up the scripts for CONFIG_HEADERS section.
26750 # No need to generate them if there are no CONFIG_HEADERS.
26751 # This happens for instance with `./config.status Makefile'.
26752 if test -n "$CONFIG_HEADERS"; then
26753 cat >"$tmp/defines.awk" <<\_ACAWK ||
26754 BEGIN {
26755 _ACEOF
26756
26757 # Transform confdefs.h into an awk script `defines.awk', embedded as
26758 # here-document in config.status, that substitutes the proper values into
26759 # config.h.in to produce config.h.
26760
26761 # Create a delimiter string that does not exist in confdefs.h, to ease
26762 # handling of long lines.
26763 ac_delim='%!_!# '
26764 for ac_last_try in false false :; do
26765 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26766 if test -z "$ac_t"; then
26767 break
26768 elif $ac_last_try; then
26769 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26770 else
26771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26772 fi
26773 done
26774
26775 # For the awk script, D is an array of macro values keyed by name,
26776 # likewise P contains macro parameters if any. Preserve backslash
26777 # newline sequences.
26778
26779 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26780 sed -n '
26781 s/.\{148\}/&'"$ac_delim"'/g
26782 t rset
26783 :rset
26784 s/^[ ]*#[ ]*define[ ][ ]*/ /
26785 t def
26786 d
26787 :def
26788 s/\\$//
26789 t bsnl
26790 s/["\\]/\\&/g
26791 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26792 D["\1"]=" \3"/p
26793 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26794 d
26795 :bsnl
26796 s/["\\]/\\&/g
26797 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26798 D["\1"]=" \3\\\\\\n"\\/p
26799 t cont
26800 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26801 t cont
26802 d
26803 :cont
26804 n
26805 s/.\{148\}/&'"$ac_delim"'/g
26806 t clear
26807 :clear
26808 s/\\$//
26809 t bsnlc
26810 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26811 d
26812 :bsnlc
26813 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26814 b cont
26815 ' <confdefs.h | sed '
26816 s/'"$ac_delim"'/"\\\
26817 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26818
26819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26820 for (key in D) D_is_set[key] = 1
26821 FS = "\a"
26822 }
26823 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26824 line = \$ 0
26825 split(line, arg, " ")
26826 if (arg[1] == "#") {
26827 defundef = arg[2]
26828 mac1 = arg[3]
26829 } else {
26830 defundef = substr(arg[1], 2)
26831 mac1 = arg[2]
26832 }
26833 split(mac1, mac2, "(") #)
26834 macro = mac2[1]
26835 prefix = substr(line, 1, index(line, defundef) - 1)
26836 if (D_is_set[macro]) {
26837 # Preserve the white space surrounding the "#".
26838 print prefix "define", macro P[macro] D[macro]
26839 next
26840 } else {
26841 # Replace #undef with comments. This is necessary, for example,
26842 # in the case of _POSIX_SOURCE, which is predefined and required
26843 # on some systems where configure will not decide to define it.
26844 if (defundef == "undef") {
26845 print "/*", prefix defundef, macro, "*/"
26846 next
26847 }
26848 }
26849 }
26850 { print }
26851 _ACAWK
26852 _ACEOF
26853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26854 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26855 fi # test -n "$CONFIG_HEADERS"
26856
26857
26858 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26859 shift
26860 for ac_tag
26861 do
26862 case $ac_tag in
26863 :[FHLC]) ac_mode=$ac_tag; continue;;
26864 esac
26865 case $ac_mode$ac_tag in
26866 :[FHL]*:*);;
26867 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26868 :[FH]-) ac_tag=-:-;;
26869 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26870 esac
26871 ac_save_IFS=$IFS
26872 IFS=:
26873 set x $ac_tag
26874 IFS=$ac_save_IFS
26875 shift
26876 ac_file=$1
26877 shift
26878
26879 case $ac_mode in
26880 :L) ac_source=$1;;
26881 :[FH])
26882 ac_file_inputs=
26883 for ac_f
26884 do
26885 case $ac_f in
26886 -) ac_f="$tmp/stdin";;
26887 *) # Look for the file first in the build tree, then in the source tree
26888 # (if the path is not absolute). The absolute path cannot be DOS-style,
26889 # because $ac_f cannot contain `:'.
26890 test -f "$ac_f" ||
26891 case $ac_f in
26892 [\\/$]*) false;;
26893 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26894 esac ||
26895 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26896 esac
26897 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26898 as_fn_append ac_file_inputs " '$ac_f'"
26899 done
26900
26901 # Let's still pretend it is `configure' which instantiates (i.e., don't
26902 # use $as_me), people would be surprised to read:
26903 # /* config.h. Generated by config.status. */
26904 configure_input='Generated from '`
26905 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26906 `' by configure.'
26907 if test x"$ac_file" != x-; then
26908 configure_input="$ac_file. $configure_input"
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26910 $as_echo "$as_me: creating $ac_file" >&6;}
26911 fi
26912 # Neutralize special characters interpreted by sed in replacement strings.
26913 case $configure_input in #(
26914 *\&* | *\|* | *\\* )
26915 ac_sed_conf_input=`$as_echo "$configure_input" |
26916 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26917 *) ac_sed_conf_input=$configure_input;;
26918 esac
26919
26920 case $ac_tag in
26921 *:-:* | *:-) cat >"$tmp/stdin" \
26922 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26923 esac
26924 ;;
26925 esac
26926
26927 ac_dir=`$as_dirname -- "$ac_file" ||
26928 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26929 X"$ac_file" : 'X\(//\)[^/]' \| \
26930 X"$ac_file" : 'X\(//\)$' \| \
26931 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26932 $as_echo X"$ac_file" |
26933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26934 s//\1/
26935 q
26936 }
26937 /^X\(\/\/\)[^/].*/{
26938 s//\1/
26939 q
26940 }
26941 /^X\(\/\/\)$/{
26942 s//\1/
26943 q
26944 }
26945 /^X\(\/\).*/{
26946 s//\1/
26947 q
26948 }
26949 s/.*/./; q'`
26950 as_dir="$ac_dir"; as_fn_mkdir_p
26951 ac_builddir=.
26952
26953 case "$ac_dir" in
26954 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26955 *)
26956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26957 # A ".." for each directory in $ac_dir_suffix.
26958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26959 case $ac_top_builddir_sub in
26960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26962 esac ;;
26963 esac
26964 ac_abs_top_builddir=$ac_pwd
26965 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26966 # for backward compatibility:
26967 ac_top_builddir=$ac_top_build_prefix
26968
26969 case $srcdir in
26970 .) # We are building in place.
26971 ac_srcdir=.
26972 ac_top_srcdir=$ac_top_builddir_sub
26973 ac_abs_top_srcdir=$ac_pwd ;;
26974 [\\/]* | ?:[\\/]* ) # Absolute name.
26975 ac_srcdir=$srcdir$ac_dir_suffix;
26976 ac_top_srcdir=$srcdir
26977 ac_abs_top_srcdir=$srcdir ;;
26978 *) # Relative name.
26979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26980 ac_top_srcdir=$ac_top_build_prefix$srcdir
26981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26982 esac
26983 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26984
26985
26986 case $ac_mode in
26987 :F)
26988 #
26989 # CONFIG_FILE
26990 #
26991
26992 _ACEOF
26993
26994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26995 # If the template does not know about datarootdir, expand it.
26996 # FIXME: This hack should be removed a few years after 2.60.
26997 ac_datarootdir_hack=; ac_datarootdir_seen=
26998 ac_sed_dataroot='
26999 /datarootdir/ {
27000 p
27001 q
27002 }
27003 /@datadir@/p
27004 /@docdir@/p
27005 /@infodir@/p
27006 /@localedir@/p
27007 /@mandir@/p'
27008 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27009 *datarootdir*) ac_datarootdir_seen=yes;;
27010 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27012 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27013 _ACEOF
27014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27015 ac_datarootdir_hack='
27016 s&@datadir@&$datadir&g
27017 s&@docdir@&$docdir&g
27018 s&@infodir@&$infodir&g
27019 s&@localedir@&$localedir&g
27020 s&@mandir@&$mandir&g
27021 s&\\\${datarootdir}&$datarootdir&g' ;;
27022 esac
27023 _ACEOF
27024
27025 # Neutralize VPATH when `$srcdir' = `.'.
27026 # Shell code in configure.ac might set extrasub.
27027 # FIXME: do we really want to maintain this feature?
27028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27029 ac_sed_extra="$ac_vpsub
27030 $extrasub
27031 _ACEOF
27032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27033 :t
27034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27035 s|@configure_input@|$ac_sed_conf_input|;t t
27036 s&@top_builddir@&$ac_top_builddir_sub&;t t
27037 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27038 s&@srcdir@&$ac_srcdir&;t t
27039 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27040 s&@top_srcdir@&$ac_top_srcdir&;t t
27041 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27042 s&@builddir@&$ac_builddir&;t t
27043 s&@abs_builddir@&$ac_abs_builddir&;t t
27044 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27045 $ac_datarootdir_hack
27046 "
27047 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27048 if $ac_cs_awk_getline; then
27049 $AWK -f "$tmp/subs.awk"
27050 else
27051 $AWK -f "$tmp/subs.awk" | $SHELL
27052 fi >$tmp/out \
27053 || as_fn_error "could not create $ac_file" "$LINENO" 5
27054
27055 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27056 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27059 which seems to be undefined. Please make sure it is defined." >&5
27060 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27061 which seems to be undefined. Please make sure it is defined." >&2;}
27062
27063 rm -f "$tmp/stdin"
27064 case $ac_file in
27065 -) cat "$tmp/out" && rm -f "$tmp/out";;
27066 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27067 esac \
27068 || as_fn_error "could not create $ac_file" "$LINENO" 5
27069 ;;
27070 :H)
27071 #
27072 # CONFIG_HEADER
27073 #
27074 if test x"$ac_file" != x-; then
27075 {
27076 $as_echo "/* $configure_input */" \
27077 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27078 } >"$tmp/config.h" \
27079 || as_fn_error "could not create $ac_file" "$LINENO" 5
27080 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27082 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27083 else
27084 rm -f "$ac_file"
27085 mv "$tmp/config.h" "$ac_file" \
27086 || as_fn_error "could not create $ac_file" "$LINENO" 5
27087 fi
27088 else
27089 $as_echo "/* $configure_input */" \
27090 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27091 || as_fn_error "could not create -" "$LINENO" 5
27092 fi
27093 ;;
27094
27095 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27096 $as_echo "$as_me: executing $ac_file commands" >&6;}
27097 ;;
27098 esac
27099
27100
27101 case $ac_file$ac_mode in
27102 "as":F) chmod +x as ;;
27103 "collect-ld":F) chmod +x collect-ld ;;
27104 "nm":F) chmod +x nm ;;
27105 "default":C)
27106 case ${CONFIG_HEADERS} in
27107 *auto-host.h:config.in*)
27108 echo > cstamp-h ;;
27109 esac
27110 # Make sure all the subdirs exist.
27111 for d in $subdirs doc build c-family
27112 do
27113 test -d $d || mkdir $d
27114 done
27115 ;;
27116
27117 esac
27118 done # for ac_tag
27119
27120
27121 as_fn_exit 0
27122 _ACEOF
27123 ac_clean_files=$ac_clean_files_save
27124
27125 test $ac_write_fail = 0 ||
27126 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27127
27128
27129 # configure is writing to config.log, and then calls config.status.
27130 # config.status does its own redirection, appending to config.log.
27131 # Unfortunately, on DOS this fails, as config.log is still kept open
27132 # by configure, so config.status won't be able to write to it; its
27133 # output is simply discarded. So we exec the FD to /dev/null,
27134 # effectively closing config.log, so it can be properly (re)opened and
27135 # appended to by config.status. When coming back to configure, we
27136 # need to make the FD available again.
27137 if test "$no_create" != yes; then
27138 ac_cs_success=:
27139 ac_config_status_args=
27140 test "$silent" = yes &&
27141 ac_config_status_args="$ac_config_status_args --quiet"
27142 exec 5>/dev/null
27143 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27144 exec 5>>config.log
27145 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27146 # would make configure fail if this is the last instruction.
27147 $ac_cs_success || as_fn_exit $?
27148 fi
27149 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27151 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27152 fi
27153