aarch64 - Set the mode for the unspec in speculation_tracker insn.
[platform/upstream/linaro-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 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 gcc_cv_ld
692 ORIGINAL_AS_FOR_TARGET
693 gcc_cv_as
694 enable_fast_install
695 objdir
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 NO_PIE_FLAG_FOR_BUILD
711 NO_PIE_CFLAGS_FOR_BUILD
712 BUILD_NO_PIE_FLAG
713 BUILD_NO_PIE_CFLAGS
714 STMP_FIXINC
715 BUILD_LDFLAGS
716 BUILD_CXXFLAGS
717 BUILD_CFLAGS
718 CXX_FOR_BUILD
719 CC_FOR_BUILD
720 inhibit_libc
721 SYSTEM_HEADER_DIR
722 ALL
723 CROSS
724 CATOBJEXT
725 GENCAT
726 INSTOBJEXT
727 DATADIRNAME
728 CATALOGS
729 POSUB
730 GMSGFMT
731 XGETTEXT
732 INCINTL
733 LIBINTL_DEP
734 LIBINTL
735 USE_NLS
736 extra_opt_files
737 extra_modes_file
738 NATIVE_SYSTEM_HEADER_DIR
739 objext
740 manext
741 LIBICONV_DEP
742 LTLIBICONV
743 LIBICONV
744 LDEXP_LIB
745 EXTRA_GCC_LIBS
746 GNAT_LIBEXC
747 COLLECT2_LIBS
748 CXXDEPMODE
749 DEPDIR
750 am__leading_dot
751 doc_build_sys
752 AR
753 NM
754 BISON
755 FLEX
756 GENERATED_MANPAGES
757 BUILD_INFO
758 MAKEINFO
759 have_mktemp_command
760 make_compare_target
761 INSTALL_DATA
762 INSTALL_PROGRAM
763 INSTALL
764 ranlib_flags
765 RANLIB
766 LN
767 LN_S
768 AWK
769 SET_MAKE
770 accel_dir_suffix
771 real_target_noncanonical
772 enable_as_accelerator
773 REPORT_BUGS_TEXI
774 REPORT_BUGS_TO
775 PKGVERSION
776 CONFIGURE_SPECS
777 enable_shared
778 enable_fixed_point
779 enable_decimal_float
780 with_float
781 with_cpu
782 enable_multiarch
783 enable_multilib
784 coverage_flags
785 valgrind_command
786 valgrind_path_defines
787 valgrind_path
788 TREECHECKING
789 nocommon_flag
790 noexception_flags
791 warn_cxxflags
792 warn_cflags
793 c_strict_warn
794 strict_warn
795 c_loose_warn
796 loose_warn
797 aliasing_flags
798 CPP
799 EGREP
800 GREP
801 CXXCPP
802 PICFLAG_FOR_TARGET
803 GNATMAKE
804 GNATBIND
805 ac_ct_CXX
806 CXXFLAGS
807 CXX
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
814 CC
815 GENINSRC
816 CROSS_SYSTEM_HEADER_DIR
817 TARGET_SYSTEM_ROOT_DEFINE
818 TARGET_SYSTEM_ROOT
819 SYSROOT_CFLAGS_FOR_TARGET
820 target_subdir
821 host_subdir
822 build_subdir
823 build_libsubdir
824 target_noncanonical
825 target_os
826 target_vendor
827 target_cpu
828 target
829 host_os
830 host_vendor
831 host_cpu
832 host
833 build_os
834 build_vendor
835 build_cpu
836 build
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files='option_includes
876 language_hooks'
877 ac_user_opts='
878 enable_option_checking
879 with_build_libsubdir
880 with_local_prefix
881 with_native_system_header_dir
882 with_build_sysroot
883 with_sysroot
884 with_gxx_include_dir
885 with_cpp_install_dir
886 enable_generated_files_in_srcdir
887 with_gnu_ld
888 with_ld
889 with_demangler_in_ld
890 with_gnu_as
891 with_as
892 enable_largefile
893 enable_build_format_warnings
894 enable_werror_always
895 enable_checking
896 enable_coverage
897 enable_gather_detailed_mem_stats
898 enable_valgrind_annotations
899 with_stabs
900 enable_multilib
901 enable_multiarch
902 enable___cxa_atexit
903 enable_decimal_float
904 enable_fixed_point
905 enable_threads
906 enable_tls
907 enable_objc_gc
908 with_dwarf2
909 enable_shared
910 with_specs
911 with_pkgversion
912 with_bugurl
913 enable_languages
914 with_multilib_list
915 enable_rpath
916 with_libiconv_prefix
917 enable_sjlj_exceptions
918 enable_secureplt
919 enable_leading_mingw64_underscores
920 enable_cld
921 enable_frame_pointer
922 enable_win32_registry
923 enable_static
924 with_pic
925 enable_fast_install
926 enable_libtool_lock
927 enable_ld
928 enable_gold
929 with_plugin_ld
930 enable_gnu_indirect_function
931 enable_initfini_array
932 enable_comdat
933 enable_fix_cortex_a53_835769
934 enable_fix_cortex_a53_843419
935 with_glibc_version
936 enable_gnu_unique_object
937 enable_linker_build_id
938 enable_default_ssp
939 with_long_double_128
940 with_gc
941 with_system_zlib
942 enable_maintainer_mode
943 enable_link_mutex
944 enable_version_specific_runtime_libs
945 enable_plugin
946 enable_host_shared
947 enable_libquadmath_support
948 with_linker_hash_style
949 with_diagnostics_color
950 enable_default_pie
951 '
952       ac_precious_vars='build_alias
953 host_alias
954 target_alias
955 CC
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
960 CXX
961 CXXFLAGS
962 CCC
963 CXXCPP
964 CPP
965 GMPLIBS
966 GMPINC
967 ISLLIBS
968 ISLINC'
969
970
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 ac_unrecognized_opts=
975 ac_unrecognized_sep=
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
992
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1018
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1022 do
1023   # If the previous option needs an argument, assign it.
1024   if test -n "$ac_prev"; then
1025     eval $ac_prev=\$ac_option
1026     ac_prev=
1027     continue
1028   fi
1029
1030   case $ac_option in
1031   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032   *)    ac_optarg=yes ;;
1033   esac
1034
1035   # Accept the important Cygnus configure options, so we can diagnose typos.
1036
1037   case $ac_dashdash$ac_option in
1038   --)
1039     ac_dashdash=yes ;;
1040
1041   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042     ac_prev=bindir ;;
1043   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044     bindir=$ac_optarg ;;
1045
1046   -build | --build | --buil | --bui | --bu)
1047     ac_prev=build_alias ;;
1048   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049     build_alias=$ac_optarg ;;
1050
1051   -cache-file | --cache-file | --cache-fil | --cache-fi \
1052   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053     ac_prev=cache_file ;;
1054   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056     cache_file=$ac_optarg ;;
1057
1058   --config-cache | -C)
1059     cache_file=config.cache ;;
1060
1061   -datadir | --datadir | --datadi | --datad)
1062     ac_prev=datadir ;;
1063   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064     datadir=$ac_optarg ;;
1065
1066   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067   | --dataroo | --dataro | --datar)
1068     ac_prev=datarootdir ;;
1069   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071     datarootdir=$ac_optarg ;;
1072
1073   -disable-* | --disable-*)
1074     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077       as_fn_error "invalid feature name: $ac_useropt"
1078     ac_useropt_orig=$ac_useropt
1079     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080     case $ac_user_opts in
1081       *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085          ac_unrecognized_sep=', ';;
1086     esac
1087     eval enable_$ac_useropt=no ;;
1088
1089   -docdir | --docdir | --docdi | --doc | --do)
1090     ac_prev=docdir ;;
1091   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092     docdir=$ac_optarg ;;
1093
1094   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095     ac_prev=dvidir ;;
1096   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097     dvidir=$ac_optarg ;;
1098
1099   -enable-* | --enable-*)
1100     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101     # Reject names that are not valid shell variable names.
1102     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103       as_fn_error "invalid feature name: $ac_useropt"
1104     ac_useropt_orig=$ac_useropt
1105     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106     case $ac_user_opts in
1107       *"
1108 "enable_$ac_useropt"
1109 "*) ;;
1110       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111          ac_unrecognized_sep=', ';;
1112     esac
1113     eval enable_$ac_useropt=\$ac_optarg ;;
1114
1115   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117   | --exec | --exe | --ex)
1118     ac_prev=exec_prefix ;;
1119   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121   | --exec=* | --exe=* | --ex=*)
1122     exec_prefix=$ac_optarg ;;
1123
1124   -gas | --gas | --ga | --g)
1125     # Obsolete; use --with-gas.
1126     with_gas=yes ;;
1127
1128   -help | --help | --hel | --he | -h)
1129     ac_init_help=long ;;
1130   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131     ac_init_help=recursive ;;
1132   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133     ac_init_help=short ;;
1134
1135   -host | --host | --hos | --ho)
1136     ac_prev=host_alias ;;
1137   -host=* | --host=* | --hos=* | --ho=*)
1138     host_alias=$ac_optarg ;;
1139
1140   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141     ac_prev=htmldir ;;
1142   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143   | --ht=*)
1144     htmldir=$ac_optarg ;;
1145
1146   -includedir | --includedir | --includedi | --included | --include \
1147   | --includ | --inclu | --incl | --inc)
1148     ac_prev=includedir ;;
1149   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150   | --includ=* | --inclu=* | --incl=* | --inc=*)
1151     includedir=$ac_optarg ;;
1152
1153   -infodir | --infodir | --infodi | --infod | --info | --inf)
1154     ac_prev=infodir ;;
1155   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156     infodir=$ac_optarg ;;
1157
1158   -libdir | --libdir | --libdi | --libd)
1159     ac_prev=libdir ;;
1160   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161     libdir=$ac_optarg ;;
1162
1163   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164   | --libexe | --libex | --libe)
1165     ac_prev=libexecdir ;;
1166   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167   | --libexe=* | --libex=* | --libe=*)
1168     libexecdir=$ac_optarg ;;
1169
1170   -localedir | --localedir | --localedi | --localed | --locale)
1171     ac_prev=localedir ;;
1172   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173     localedir=$ac_optarg ;;
1174
1175   -localstatedir | --localstatedir | --localstatedi | --localstated \
1176   | --localstate | --localstat | --localsta | --localst | --locals)
1177     ac_prev=localstatedir ;;
1178   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180     localstatedir=$ac_optarg ;;
1181
1182   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183     ac_prev=mandir ;;
1184   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185     mandir=$ac_optarg ;;
1186
1187   -nfp | --nfp | --nf)
1188     # Obsolete; use --without-fp.
1189     with_fp=no ;;
1190
1191   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192   | --no-cr | --no-c | -n)
1193     no_create=yes ;;
1194
1195   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197     no_recursion=yes ;;
1198
1199   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201   | --oldin | --oldi | --old | --ol | --o)
1202     ac_prev=oldincludedir ;;
1203   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206     oldincludedir=$ac_optarg ;;
1207
1208   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209     ac_prev=prefix ;;
1210   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211     prefix=$ac_optarg ;;
1212
1213   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214   | --program-pre | --program-pr | --program-p)
1215     ac_prev=program_prefix ;;
1216   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218     program_prefix=$ac_optarg ;;
1219
1220   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221   | --program-suf | --program-su | --program-s)
1222     ac_prev=program_suffix ;;
1223   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225     program_suffix=$ac_optarg ;;
1226
1227   -program-transform-name | --program-transform-name \
1228   | --program-transform-nam | --program-transform-na \
1229   | --program-transform-n | --program-transform- \
1230   | --program-transform | --program-transfor \
1231   | --program-transfo | --program-transf \
1232   | --program-trans | --program-tran \
1233   | --progr-tra | --program-tr | --program-t)
1234     ac_prev=program_transform_name ;;
1235   -program-transform-name=* | --program-transform-name=* \
1236   | --program-transform-nam=* | --program-transform-na=* \
1237   | --program-transform-n=* | --program-transform-=* \
1238   | --program-transform=* | --program-transfor=* \
1239   | --program-transfo=* | --program-transf=* \
1240   | --program-trans=* | --program-tran=* \
1241   | --progr-tra=* | --program-tr=* | --program-t=*)
1242     program_transform_name=$ac_optarg ;;
1243
1244   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245     ac_prev=pdfdir ;;
1246   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247     pdfdir=$ac_optarg ;;
1248
1249   -psdir | --psdir | --psdi | --psd | --ps)
1250     ac_prev=psdir ;;
1251   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252     psdir=$ac_optarg ;;
1253
1254   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255   | -silent | --silent | --silen | --sile | --sil)
1256     silent=yes ;;
1257
1258   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259     ac_prev=sbindir ;;
1260   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261   | --sbi=* | --sb=*)
1262     sbindir=$ac_optarg ;;
1263
1264   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266   | --sharedst | --shareds | --shared | --share | --shar \
1267   | --sha | --sh)
1268     ac_prev=sharedstatedir ;;
1269   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272   | --sha=* | --sh=*)
1273     sharedstatedir=$ac_optarg ;;
1274
1275   -site | --site | --sit)
1276     ac_prev=site ;;
1277   -site=* | --site=* | --sit=*)
1278     site=$ac_optarg ;;
1279
1280   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281     ac_prev=srcdir ;;
1282   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283     srcdir=$ac_optarg ;;
1284
1285   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286   | --syscon | --sysco | --sysc | --sys | --sy)
1287     ac_prev=sysconfdir ;;
1288   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290     sysconfdir=$ac_optarg ;;
1291
1292   -target | --target | --targe | --targ | --tar | --ta | --t)
1293     ac_prev=target_alias ;;
1294   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295     target_alias=$ac_optarg ;;
1296
1297   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298     verbose=yes ;;
1299
1300   -version | --version | --versio | --versi | --vers | -V)
1301     ac_init_version=: ;;
1302
1303   -with-* | --with-*)
1304     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305     # Reject names that are not valid shell variable names.
1306     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307       as_fn_error "invalid package name: $ac_useropt"
1308     ac_useropt_orig=$ac_useropt
1309     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310     case $ac_user_opts in
1311       *"
1312 "with_$ac_useropt"
1313 "*) ;;
1314       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315          ac_unrecognized_sep=', ';;
1316     esac
1317     eval with_$ac_useropt=\$ac_optarg ;;
1318
1319   -without-* | --without-*)
1320     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321     # Reject names that are not valid shell variable names.
1322     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323       as_fn_error "invalid package name: $ac_useropt"
1324     ac_useropt_orig=$ac_useropt
1325     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326     case $ac_user_opts in
1327       *"
1328 "with_$ac_useropt"
1329 "*) ;;
1330       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331          ac_unrecognized_sep=', ';;
1332     esac
1333     eval with_$ac_useropt=no ;;
1334
1335   --x)
1336     # Obsolete; use --with-x.
1337     with_x=yes ;;
1338
1339   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340   | --x-incl | --x-inc | --x-in | --x-i)
1341     ac_prev=x_includes ;;
1342   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344     x_includes=$ac_optarg ;;
1345
1346   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348     ac_prev=x_libraries ;;
1349   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351     x_libraries=$ac_optarg ;;
1352
1353   -*) as_fn_error "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information."
1355     ;;
1356
1357   *=*)
1358     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359     # Reject names that are not valid shell variable names.
1360     case $ac_envvar in #(
1361       '' | [0-9]* | *[!_$as_cr_alnum]* )
1362       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1363     esac
1364     eval $ac_envvar=\$ac_optarg
1365     export $ac_envvar ;;
1366
1367   *)
1368     # FIXME: should be removed in autoconf 3.0.
1369     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1370     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1372     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1373     ;;
1374
1375   esac
1376 done
1377
1378 if test -n "$ac_prev"; then
1379   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380   as_fn_error "missing argument to $ac_option"
1381 fi
1382
1383 if test -n "$ac_unrecognized_opts"; then
1384   case $enable_option_checking in
1385     no) ;;
1386     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1387     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388   esac
1389 fi
1390
1391 # Check all directory arguments for consistency.
1392 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393                 datadir sysconfdir sharedstatedir localstatedir includedir \
1394                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395                 libdir localedir mandir
1396 do
1397   eval ac_val=\$$ac_var
1398   # Remove trailing slashes.
1399   case $ac_val in
1400     */ )
1401       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402       eval $ac_var=\$ac_val;;
1403   esac
1404   # Be sure to have absolute directory names.
1405   case $ac_val in
1406     [\\/$]* | ?:[\\/]* )  continue;;
1407     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408   esac
1409   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1410 done
1411
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1415 build=$build_alias
1416 host=$host_alias
1417 target=$target_alias
1418
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421   if test "x$build_alias" = x; then
1422     cross_compiling=maybe
1423     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424     If a cross compiler is detected then cross compile mode will be used." >&2
1425   elif test "x$build_alias" != "x$host_alias"; then
1426     cross_compiling=yes
1427   fi
1428 fi
1429
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432
1433 test "$silent" = yes && exec 6>/dev/null
1434
1435
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439   as_fn_error "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441   as_fn_error "pwd does not report name of working directory"
1442
1443
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446   ac_srcdir_defaulted=yes
1447   # Try the directory containing this script, then the parent directory.
1448   ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450          X"$as_myself" : 'X\(//\)[^/]' \| \
1451          X"$as_myself" : 'X\(//\)$' \| \
1452          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455             s//\1/
1456             q
1457           }
1458           /^X\(\/\/\)[^/].*/{
1459             s//\1/
1460             q
1461           }
1462           /^X\(\/\/\)$/{
1463             s//\1/
1464             q
1465           }
1466           /^X\(\/\).*/{
1467             s//\1/
1468             q
1469           }
1470           s/.*/./; q'`
1471   srcdir=$ac_confdir
1472   if test ! -r "$srcdir/$ac_unique_file"; then
1473     srcdir=..
1474   fi
1475 else
1476   ac_srcdir_defaulted=no
1477 fi
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1481 fi
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1485         pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488   srcdir=.
1489 fi
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498   eval ac_env_${ac_var}_value=\$${ac_var}
1499   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1502
1503 #
1504 # Report the --help message.
1505 #
1506 if test "$ac_init_help" = "long"; then
1507   # Omit some internal or obsolete options to make the list less imposing.
1508   # This message is too long to be a string in the A/UX 3.1 sh.
1509   cat <<_ACEOF
1510 \`configure' configures this package to adapt to many kinds of systems.
1511
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1513
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE.  See below for descriptions of some of the useful variables.
1516
1517 Defaults for the options are specified in brackets.
1518
1519 Configuration:
1520   -h, --help              display this help and exit
1521       --help=short        display options specific to this package
1522       --help=recursive    display the short help of all the included packages
1523   -V, --version           display version information and exit
1524   -q, --quiet, --silent   do not print \`checking...' messages
1525       --cache-file=FILE   cache test results in FILE [disabled]
1526   -C, --config-cache      alias for \`--cache-file=config.cache'
1527   -n, --no-create         do not create output files
1528       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1529
1530 Installation directories:
1531   --prefix=PREFIX         install architecture-independent files in PREFIX
1532                           [$ac_default_prefix]
1533   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1534                           [PREFIX]
1535
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1540
1541 For better control, use the options below.
1542
1543 Fine tuning of the installation directories:
1544   --bindir=DIR            user executables [EPREFIX/bin]
1545   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1546   --libexecdir=DIR        program executables [EPREFIX/libexec]
1547   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1548   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1549   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1550   --libdir=DIR            object code libraries [EPREFIX/lib]
1551   --includedir=DIR        C header files [PREFIX/include]
1552   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1553   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1554   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1555   --infodir=DIR           info documentation [DATAROOTDIR/info]
1556   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1557   --mandir=DIR            man documentation [DATAROOTDIR/man]
1558   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1559   --htmldir=DIR           html documentation [DOCDIR]
1560   --dvidir=DIR            dvi documentation [DOCDIR]
1561   --pdfdir=DIR            pdf documentation [DOCDIR]
1562   --psdir=DIR             ps documentation [DOCDIR]
1563 _ACEOF
1564
1565   cat <<\_ACEOF
1566
1567 Program names:
1568   --program-prefix=PREFIX            prepend PREFIX to installed program names
1569   --program-suffix=SUFFIX            append SUFFIX to installed program names
1570   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1571
1572 System types:
1573   --build=BUILD     configure for building on BUILD [guessed]
1574   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1575   --target=TARGET   configure for building compilers for TARGET [HOST]
1576 _ACEOF
1577 fi
1578
1579 if test -n "$ac_init_help"; then
1580
1581   cat <<\_ACEOF
1582
1583 Optional Features:
1584   --disable-option-checking  ignore unrecognized --enable/--with options
1585   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1586   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1587   --enable-generated-files-in-srcdir
1588                           put copies of generated files in source dir intended
1589                           for creating source tarballs for users without
1590                           texinfo bison or flex
1591   --disable-largefile     omit support for large files
1592   --disable-build-format-warnings
1593                           don't use -Wformat while building GCC
1594   --enable-werror-always  enable -Werror despite compiler version
1595   --enable-checking[=LIST]
1596                           enable expensive run-time checks. With LIST, enable
1597                           only specific categories of checks. Categories are:
1598                           yes,no,all,none,release. Flags are:
1599                           assert,df,fold,gc,gcac,gimple,misc,
1600                           rtlflag,rtl,runtime,tree,valgrind,types
1601   --enable-coverage[=LEVEL]
1602                           enable compiler's code coverage collection. Use to
1603                           measure compiler performance and locate unused parts
1604                           of the compiler. With LEVEL, specify optimization.
1605                           Values are opt, noopt, default is noopt
1606   --enable-gather-detailed-mem-stats
1607                           enable detailed memory allocation stats gathering
1608   --enable-valgrind-annotations
1609                           enable valgrind runtime interaction
1610   --enable-multilib       enable library support for multiple ABIs
1611   --enable-multiarch      enable support for multiarch paths
1612   --enable-__cxa_atexit   enable __cxa_atexit for C++
1613   --enable-decimal-float={no,yes,bid,dpd}
1614                         enable decimal float extension to C.  Selecting 'bid'
1615                         or 'dpd' choses which decimal floating point format
1616                         to use
1617   --enable-fixed-point    enable fixed-point arithmetic extension to C
1618   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1619                           package
1620   --enable-tls            enable or disable generation of tls code overriding
1621                           the assembler check for tls support
1622   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1623                           GNU Objective-C runtime
1624   --disable-shared        don't provide a shared libgcc
1625   --enable-languages=LIST specify which front-ends to build
1626   --disable-rpath         do not hardcode runtime library paths
1627   --enable-sjlj-exceptions
1628                           arrange to use setjmp/longjmp exception handling
1629   --enable-secureplt      enable -msecure-plt by default for PowerPC
1630   --enable-leading-mingw64-underscores
1631                           enable leading underscores on 64 bit mingw targets
1632   --enable-cld            enable -mcld by default for 32bit x86
1633   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1634                           x86
1635   --disable-win32-registry
1636                           disable lookup of installation paths in the Registry
1637                           on Windows hosts
1638   --enable-win32-registry enable registry lookup (default)
1639   --enable-win32-registry=KEY
1640                           use KEY instead of GCC version as the last portion
1641                           of the registry key
1642   --enable-shared[=PKGS]  build shared libraries [default=yes]
1643   --enable-static[=PKGS]  build static libraries [default=yes]
1644   --enable-fast-install[=PKGS]
1645                           optimize for fast installation [default=yes]
1646   --disable-libtool-lock  avoid locking (might break parallel builds)
1647   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1648   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1649   --enable-gnu-indirect-function
1650                           enable the use of the @gnu_indirect_function to
1651                           glibc systems
1652   --enable-initfini-array       use .init_array/.fini_array sections
1653   --enable-comdat         enable COMDAT group support
1654
1655   --enable-fix-cortex-a53-835769
1656                           enable workaround for AArch64 Cortex-A53 erratum
1657                           835769 by default
1658   --disable-fix-cortex-a53-835769
1659                           disable workaround for AArch64 Cortex-A53 erratum
1660                           835769 by default
1661
1662
1663   --enable-fix-cortex-a53-843419
1664                           enable workaround for AArch64 Cortex-A53 erratum
1665                           843419 by default
1666   --disable-fix-cortex-a53-843419
1667                           disable workaround for AArch64 Cortex-A53 erratum
1668                           843419 by default
1669
1670   --enable-gnu-unique-object
1671                           enable the use of the @gnu_unique_object ELF
1672                           extension on glibc systems
1673   --enable-linker-build-id
1674                           compiler will always pass --build-id to linker
1675   --enable-default-ssp    enable Stack Smashing Protection as default
1676   --enable-maintainer-mode
1677                           enable make rules and dependencies not useful (and
1678                           sometimes confusing) to the casual installer
1679   --enable-link-mutex     avoid linking multiple front-ends at once to avoid
1680                           thrashing on the build machine
1681   --enable-version-specific-runtime-libs
1682                           specify that runtime libraries should be installed
1683                           in a compiler-specific directory
1684   --enable-plugin         enable plugin support
1685   --enable-host-shared    build host code as shared libraries
1686   --disable-libquadmath-support
1687                           disable libquadmath support for Fortran
1688   --enable-default-pie    enable Position Independent Executable as default
1689
1690 Optional Packages:
1691   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1692   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1693   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1694   --with-local-prefix=DIR specifies directory to put local include
1695   --with-native-system-header-dir=dir
1696                           use dir as the directory to look for standard
1697                           system header files in.  Defaults to /usr/include.
1698   --with-build-sysroot=sysroot
1699                           use sysroot as the system root during the build
1700   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1701   --with-gxx-include-dir=DIR
1702                           specifies directory to put g++ header files
1703   --with-cpp-install-dir=DIR
1704                           install the user visible C preprocessor in DIR
1705                           (relative to PREFIX) as well as PREFIX/bin
1706   --with-gnu-ld           arrange to work with GNU ld
1707   --with-ld               arrange to use the specified ld (full pathname)
1708   --with-demangler-in-ld  try to use demangler in GNU ld
1709   --with-gnu-as           arrange to work with GNU as
1710   --with-as               arrange to use the specified as (full pathname)
1711   --with-stabs            arrange to use stabs instead of host debug format
1712   --with-dwarf2           force the default debug format to be DWARF 2
1713   --with-specs=SPECS      add SPECS to driver command-line processing
1714   --with-pkgversion=PKG   Use PKG in the version string in place of "Linaro
1715                           GCC `cat $srcdir/LINARO-VERSION`"
1716   --with-bugurl=URL       Direct users to URL to report a bug
1717   --with-multilib-list    select multilibs (AArch64, SH and x86-64 only)
1718   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1719   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1720   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1721   --with-pic              try to use only PIC/non-PIC objects [default=use
1722                           both]
1723   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1724   --with-plugin-ld=[ARG]  specify the plugin linker
1725   --with-glibc-version=M.N
1726                           assume GCC used with glibc version M.N or later
1727   --with-long-double-128  use 128-bit long double by default
1728   --with-gc={page,zone}   this option is not supported anymore. It used to
1729                           choose the garbage collection mechanism to use with
1730                           the compiler
1731   --with-system-zlib      use installed libz
1732   --with-linker-hash-style={sysv,gnu,both}
1733                           specify the linker hash style
1734   --with-diagnostics-color={never,auto,auto-if-env,always}
1735                           specify the default of -fdiagnostics-color option
1736                           auto-if-env stands for -fdiagnostics-color=auto if
1737                           GCC_COLOR environment variable is present and
1738                           -fdiagnostics-color=never otherwise
1739
1740 Some influential environment variables:
1741   CC          C compiler command
1742   CFLAGS      C compiler flags
1743   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1744               nonstandard directory <lib dir>
1745   LIBS        libraries to pass to the linker, e.g. -l<library>
1746   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1747               you have headers in a nonstandard directory <include dir>
1748   CXX         C++ compiler command
1749   CXXFLAGS    C++ compiler flags
1750   CXXCPP      C++ preprocessor
1751   CPP         C preprocessor
1752   GMPLIBS     How to link GMP
1753   GMPINC      How to find GMP include files
1754   ISLLIBS     How to link isl
1755   ISLINC      How to find isl include files
1756
1757 Use these variables to override the choices made by `configure' or to help
1758 it to find libraries and programs with nonstandard names/locations.
1759
1760 Report bugs to the package provider.
1761 _ACEOF
1762 ac_status=$?
1763 fi
1764
1765 if test "$ac_init_help" = "recursive"; then
1766   # If there are subdirs, report their specific --help.
1767   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1768     test -d "$ac_dir" ||
1769       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1770       continue
1771     ac_builddir=.
1772
1773 case "$ac_dir" in
1774 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1775 *)
1776   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1777   # A ".." for each directory in $ac_dir_suffix.
1778   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1779   case $ac_top_builddir_sub in
1780   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1782   esac ;;
1783 esac
1784 ac_abs_top_builddir=$ac_pwd
1785 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1786 # for backward compatibility:
1787 ac_top_builddir=$ac_top_build_prefix
1788
1789 case $srcdir in
1790   .)  # We are building in place.
1791     ac_srcdir=.
1792     ac_top_srcdir=$ac_top_builddir_sub
1793     ac_abs_top_srcdir=$ac_pwd ;;
1794   [\\/]* | ?:[\\/]* )  # Absolute name.
1795     ac_srcdir=$srcdir$ac_dir_suffix;
1796     ac_top_srcdir=$srcdir
1797     ac_abs_top_srcdir=$srcdir ;;
1798   *) # Relative name.
1799     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1800     ac_top_srcdir=$ac_top_build_prefix$srcdir
1801     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1802 esac
1803 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1804
1805     cd "$ac_dir" || { ac_status=$?; continue; }
1806     # Check for guested configure.
1807     if test -f "$ac_srcdir/configure.gnu"; then
1808       echo &&
1809       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1810     elif test -f "$ac_srcdir/configure"; then
1811       echo &&
1812       $SHELL "$ac_srcdir/configure" --help=recursive
1813     else
1814       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1815     fi || ac_status=$?
1816     cd "$ac_pwd" || { ac_status=$?; break; }
1817   done
1818 fi
1819
1820 test -n "$ac_init_help" && exit $ac_status
1821 if $ac_init_version; then
1822   cat <<\_ACEOF
1823 configure
1824 generated by GNU Autoconf 2.64
1825
1826 Copyright (C) 2009 Free Software Foundation, Inc.
1827 This configure script is free software; the Free Software Foundation
1828 gives unlimited permission to copy, distribute and modify it.
1829 _ACEOF
1830   exit
1831 fi
1832
1833 ## ------------------------ ##
1834 ## Autoconf initialization. ##
1835 ## ------------------------ ##
1836
1837 # ac_fn_c_try_compile LINENO
1838 # --------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_c_try_compile ()
1841 {
1842   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843   rm -f conftest.$ac_objext
1844   if { { ac_try="$ac_compile"
1845 case "(($ac_try" in
1846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847   *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851   (eval "$ac_compile") 2>conftest.err
1852   ac_status=$?
1853   if test -s conftest.err; then
1854     grep -v '^ *+' conftest.err >conftest.er1
1855     cat conftest.er1 >&5
1856     mv -f conftest.er1 conftest.err
1857   fi
1858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859   test $ac_status = 0; } && {
1860          test -z "$ac_c_werror_flag" ||
1861          test ! -s conftest.err
1862        } && test -s conftest.$ac_objext; then :
1863   ac_retval=0
1864 else
1865   $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868         ac_retval=1
1869 fi
1870   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871   return $ac_retval
1872
1873 } # ac_fn_c_try_compile
1874
1875 # ac_fn_cxx_try_compile LINENO
1876 # ----------------------------
1877 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_cxx_try_compile ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   rm -f conftest.$ac_objext
1882   if { { ac_try="$ac_compile"
1883 case "(($ac_try" in
1884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885   *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889   (eval "$ac_compile") 2>conftest.err
1890   ac_status=$?
1891   if test -s conftest.err; then
1892     grep -v '^ *+' conftest.err >conftest.er1
1893     cat conftest.er1 >&5
1894     mv -f conftest.er1 conftest.err
1895   fi
1896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897   test $ac_status = 0; } && {
1898          test -z "$ac_cxx_werror_flag" ||
1899          test ! -s conftest.err
1900        } && test -s conftest.$ac_objext; then :
1901   ac_retval=0
1902 else
1903   $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1905
1906         ac_retval=1
1907 fi
1908   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909   return $ac_retval
1910
1911 } # ac_fn_cxx_try_compile
1912
1913 # ac_fn_cxx_try_cpp LINENO
1914 # ------------------------
1915 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_cxx_try_cpp ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   if { { ac_try="$ac_cpp conftest.$ac_ext"
1920 case "(($ac_try" in
1921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922   *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1927   ac_status=$?
1928   if test -s conftest.err; then
1929     grep -v '^ *+' conftest.err >conftest.er1
1930     cat conftest.er1 >&5
1931     mv -f conftest.er1 conftest.err
1932   fi
1933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934   test $ac_status = 0; } >/dev/null && {
1935          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1936          test ! -s conftest.err
1937        }; then :
1938   ac_retval=0
1939 else
1940   $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943     ac_retval=1
1944 fi
1945   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946   return $ac_retval
1947
1948 } # ac_fn_cxx_try_cpp
1949
1950 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1951 # ---------------------------------------------------------
1952 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1953 # the include files in INCLUDES and setting the cache variable VAR
1954 # accordingly.
1955 ac_fn_cxx_check_header_mongrel ()
1956 {
1957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962   $as_echo_n "(cached) " >&6
1963 fi
1964 eval ac_res=\$$3
1965                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 else
1968   # Is the header compilable?
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1970 $as_echo_n "checking $2 usability... " >&6; }
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h.  */
1973 $4
1974 #include <$2>
1975 _ACEOF
1976 if ac_fn_cxx_try_compile "$LINENO"; then :
1977   ac_header_compiler=yes
1978 else
1979   ac_header_compiler=no
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1983 $as_echo "$ac_header_compiler" >&6; }
1984
1985 # Is the header present?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1987 $as_echo_n "checking $2 presence... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h.  */
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_cxx_try_cpp "$LINENO"; then :
1993   ac_header_preproc=yes
1994 else
1995   ac_header_preproc=no
1996 fi
1997 rm -f conftest.err conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1999 $as_echo "$ac_header_preproc" >&6; }
2000
2001 # So?  What about this header?
2002 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2003   yes:no: )
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2005 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008     ;;
2009   no:yes:* )
2010     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2011 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2012     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2013 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2014     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2015 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2016     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2017 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2018     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2019 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2020     ;;
2021 esac
2022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025   $as_echo_n "(cached) " >&6
2026 else
2027   eval "$3=\$ac_header_compiler"
2028 fi
2029 eval ac_res=\$$3
2030                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031 $as_echo "$ac_res" >&6; }
2032 fi
2033   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034
2035 } # ac_fn_cxx_check_header_mongrel
2036
2037 # ac_fn_cxx_try_run LINENO
2038 # ------------------------
2039 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2040 # that executables *can* be run.
2041 ac_fn_cxx_try_run ()
2042 {
2043   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044   if { { ac_try="$ac_link"
2045 case "(($ac_try" in
2046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047   *) ac_try_echo=$ac_try;;
2048 esac
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051   (eval "$ac_link") 2>&5
2052   ac_status=$?
2053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2055   { { case "(($ac_try" in
2056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057   *) ac_try_echo=$ac_try;;
2058 esac
2059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060 $as_echo "$ac_try_echo"; } >&5
2061   (eval "$ac_try") 2>&5
2062   ac_status=$?
2063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064   test $ac_status = 0; }; }; then :
2065   ac_retval=0
2066 else
2067   $as_echo "$as_me: program exited with status $ac_status" >&5
2068        $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071        ac_retval=$ac_status
2072 fi
2073   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075   return $ac_retval
2076
2077 } # ac_fn_cxx_try_run
2078
2079 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2080 # ---------------------------------------------------------
2081 # Tests whether HEADER exists and can be compiled using the include files in
2082 # INCLUDES, setting the cache variable VAR accordingly.
2083 ac_fn_cxx_check_header_compile ()
2084 {
2085   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2089   $as_echo_n "(cached) " >&6
2090 else
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 #include <$2>
2095 _ACEOF
2096 if ac_fn_cxx_try_compile "$LINENO"; then :
2097   eval "$3=yes"
2098 else
2099   eval "$3=no"
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 fi
2103 eval ac_res=\$$3
2104                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107
2108 } # ac_fn_cxx_check_header_compile
2109
2110 # ac_fn_c_try_cpp LINENO
2111 # ----------------------
2112 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2113 ac_fn_c_try_cpp ()
2114 {
2115   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116   if { { ac_try="$ac_cpp conftest.$ac_ext"
2117 case "(($ac_try" in
2118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119   *) ac_try_echo=$ac_try;;
2120 esac
2121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2122 $as_echo "$ac_try_echo"; } >&5
2123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2124   ac_status=$?
2125   if test -s conftest.err; then
2126     grep -v '^ *+' conftest.err >conftest.er1
2127     cat conftest.er1 >&5
2128     mv -f conftest.er1 conftest.err
2129   fi
2130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131   test $ac_status = 0; } >/dev/null && {
2132          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2133          test ! -s conftest.err
2134        }; then :
2135   ac_retval=0
2136 else
2137   $as_echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2139
2140     ac_retval=1
2141 fi
2142   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2143   return $ac_retval
2144
2145 } # ac_fn_c_try_cpp
2146
2147 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2148 # ----------------------------------------------
2149 # Tries to find the compile-time value of EXPR in a program that includes
2150 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2151 # computed
2152 ac_fn_cxx_compute_int ()
2153 {
2154   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155   if test "$cross_compiling" = yes; then
2156     # Depending upon the size, compute the lo and hi bounds.
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h.  */
2159 $4
2160 int
2161 main ()
2162 {
2163 static int test_array [1 - 2 * !(($2) >= 0)];
2164 test_array [0] = 0
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_cxx_try_compile "$LINENO"; then :
2171   ac_lo=0 ac_mid=0
2172   while :; do
2173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h.  */
2175 $4
2176 int
2177 main ()
2178 {
2179 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180 test_array [0] = 0
2181
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_cxx_try_compile "$LINENO"; then :
2187   ac_hi=$ac_mid; break
2188 else
2189   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2190                         if test $ac_lo -le $ac_mid; then
2191                           ac_lo= ac_hi=
2192                           break
2193                         fi
2194                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197   done
2198 else
2199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h.  */
2201 $4
2202 int
2203 main ()
2204 {
2205 static int test_array [1 - 2 * !(($2) < 0)];
2206 test_array [0] = 0
2207
2208   ;
2209   return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_cxx_try_compile "$LINENO"; then :
2213   ac_hi=-1 ac_mid=-1
2214   while :; do
2215     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h.  */
2217 $4
2218 int
2219 main ()
2220 {
2221 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2222 test_array [0] = 0
2223
2224   ;
2225   return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_cxx_try_compile "$LINENO"; then :
2229   ac_lo=$ac_mid; break
2230 else
2231   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2232                         if test $ac_mid -le $ac_hi; then
2233                           ac_lo= ac_hi=
2234                           break
2235                         fi
2236                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2237 fi
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239   done
2240 else
2241   ac_lo= ac_hi=
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 # Binary search between lo and hi bounds.
2247 while test "x$ac_lo" != "x$ac_hi"; do
2248   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h.  */
2251 $4
2252 int
2253 main ()
2254 {
2255 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2256 test_array [0] = 0
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_cxx_try_compile "$LINENO"; then :
2263   ac_hi=$ac_mid
2264 else
2265   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 done
2269 case $ac_lo in #((
2270 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2271 '') ac_retval=1 ;;
2272 esac
2273   else
2274     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h.  */
2276 $4
2277 static long int longval () { return $2; }
2278 static unsigned long int ulongval () { return $2; }
2279 #include <stdio.h>
2280 #include <stdlib.h>
2281 int
2282 main ()
2283 {
2284
2285   FILE *f = fopen ("conftest.val", "w");
2286   if (! f)
2287     return 1;
2288   if (($2) < 0)
2289     {
2290       long int i = longval ();
2291       if (i != ($2))
2292         return 1;
2293       fprintf (f, "%ld", i);
2294     }
2295   else
2296     {
2297       unsigned long int i = ulongval ();
2298       if (i != ($2))
2299         return 1;
2300       fprintf (f, "%lu", i);
2301     }
2302   /* Do not output a trailing newline, as this causes \r\n confusion
2303      on some platforms.  */
2304   return ferror (f) || fclose (f) != 0;
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_cxx_try_run "$LINENO"; then :
2311   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2312 else
2313   ac_retval=1
2314 fi
2315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2316   conftest.$ac_objext conftest.beam conftest.$ac_ext
2317 rm -f conftest.val
2318
2319   fi
2320   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321   return $ac_retval
2322
2323 } # ac_fn_cxx_compute_int
2324
2325 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2326 # ---------------------------------------------
2327 # Tests whether TYPE exists after having included INCLUDES, setting cache
2328 # variable VAR accordingly.
2329 ac_fn_cxx_check_type ()
2330 {
2331   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2333 $as_echo_n "checking for $2... " >&6; }
2334 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2335   $as_echo_n "(cached) " >&6
2336 else
2337   eval "$3=no"
2338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h.  */
2340 $4
2341 int
2342 main ()
2343 {
2344 if (sizeof ($2))
2345          return 0;
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_cxx_try_compile "$LINENO"; then :
2351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h.  */
2353 $4
2354 int
2355 main ()
2356 {
2357 if (sizeof (($2)))
2358             return 0;
2359   ;
2360   return 0;
2361 }
2362 _ACEOF
2363 if ac_fn_cxx_try_compile "$LINENO"; then :
2364
2365 else
2366   eval "$3=yes"
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 fi
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 fi
2372 eval ac_res=\$$3
2373                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2374 $as_echo "$ac_res" >&6; }
2375   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376
2377 } # ac_fn_cxx_check_type
2378
2379 # ac_fn_c_find_intX_t LINENO BITS VAR
2380 # -----------------------------------
2381 # Finds a signed integer type with width BITS, setting cache variable VAR
2382 # accordingly.
2383 ac_fn_c_find_intX_t ()
2384 {
2385   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2387 $as_echo_n "checking for int$2_t... " >&6; }
2388 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2389   $as_echo_n "(cached) " >&6
2390 else
2391   eval "$3=no"
2392      for ac_type in int$2_t 'int' 'long int' \
2393          'long long int' 'short int' 'signed char'; do
2394        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h.  */
2396 $ac_includes_default
2397 int
2398 main ()
2399 {
2400 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2401 test_array [0] = 0
2402
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 if ac_fn_cxx_try_compile "$LINENO"; then :
2408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h.  */
2410 $ac_includes_default
2411 int
2412 main ()
2413 {
2414 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2415                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2416 test_array [0] = 0
2417
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 if ac_fn_cxx_try_compile "$LINENO"; then :
2423
2424 else
2425   case $ac_type in #(
2426   int$2_t) :
2427     eval "$3=yes" ;; #(
2428   *) :
2429     eval "$3=\$ac_type" ;;
2430 esac
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 fi
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435        eval as_val=\$$3
2436    if test "x$as_val" = x""no; then :
2437
2438 else
2439   break
2440 fi
2441      done
2442 fi
2443 eval ac_res=\$$3
2444                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447
2448 } # ac_fn_c_find_intX_t
2449
2450 # ac_fn_cxx_try_link LINENO
2451 # -------------------------
2452 # Try to link conftest.$ac_ext, and return whether this succeeded.
2453 ac_fn_cxx_try_link ()
2454 {
2455   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456   rm -f conftest.$ac_objext conftest$ac_exeext
2457   if { { ac_try="$ac_link"
2458 case "(($ac_try" in
2459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460   *) ac_try_echo=$ac_try;;
2461 esac
2462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2463 $as_echo "$ac_try_echo"; } >&5
2464   (eval "$ac_link") 2>conftest.err
2465   ac_status=$?
2466   if test -s conftest.err; then
2467     grep -v '^ *+' conftest.err >conftest.er1
2468     cat conftest.er1 >&5
2469     mv -f conftest.er1 conftest.err
2470   fi
2471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2472   test $ac_status = 0; } && {
2473          test -z "$ac_cxx_werror_flag" ||
2474          test ! -s conftest.err
2475        } && test -s conftest$ac_exeext && {
2476          test "$cross_compiling" = yes ||
2477          $as_test_x conftest$ac_exeext
2478        }; then :
2479   ac_retval=0
2480 else
2481   $as_echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484         ac_retval=1
2485 fi
2486   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2487   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2488   # interfere with the next link command; also delete a directory that is
2489   # left behind by Apple's compiler.  We do this before executing the actions.
2490   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2491   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2492   return $ac_retval
2493
2494 } # ac_fn_cxx_try_link
2495
2496 # ac_fn_c_find_uintX_t LINENO BITS VAR
2497 # ------------------------------------
2498 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2499 # accordingly.
2500 ac_fn_c_find_uintX_t ()
2501 {
2502   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2504 $as_echo_n "checking for uint$2_t... " >&6; }
2505 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2506   $as_echo_n "(cached) " >&6
2507 else
2508   eval "$3=no"
2509      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2510          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2511        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h.  */
2513 $ac_includes_default
2514 int
2515 main ()
2516 {
2517 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2518 test_array [0] = 0
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_cxx_try_compile "$LINENO"; then :
2525   case $ac_type in #(
2526   uint$2_t) :
2527     eval "$3=yes" ;; #(
2528   *) :
2529     eval "$3=\$ac_type" ;;
2530 esac
2531 fi
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2533        eval as_val=\$$3
2534    if test "x$as_val" = x""no; then :
2535
2536 else
2537   break
2538 fi
2539      done
2540 fi
2541 eval ac_res=\$$3
2542                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2545
2546 } # ac_fn_c_find_uintX_t
2547
2548 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2549 # ------------------------------------------------
2550 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2551 ac_fn_cxx_check_header_preproc ()
2552 {
2553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2555 $as_echo_n "checking for $2... " >&6; }
2556 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2557   $as_echo_n "(cached) " >&6
2558 else
2559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h.  */
2561 #include <$2>
2562 _ACEOF
2563 if ac_fn_cxx_try_cpp "$LINENO"; then :
2564   eval "$3=yes"
2565 else
2566   eval "$3=no"
2567 fi
2568 rm -f conftest.err conftest.$ac_ext
2569 fi
2570 eval ac_res=\$$3
2571                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2572 $as_echo "$ac_res" >&6; }
2573   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2574
2575 } # ac_fn_cxx_check_header_preproc
2576
2577 # ac_fn_cxx_check_func LINENO FUNC VAR
2578 # ------------------------------------
2579 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2580 ac_fn_cxx_check_func ()
2581 {
2582   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2584 $as_echo_n "checking for $2... " >&6; }
2585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2586   $as_echo_n "(cached) " >&6
2587 else
2588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h.  */
2590 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2592 #define $2 innocuous_$2
2593
2594 /* System header to define __stub macros and hopefully few prototypes,
2595     which can conflict with char $2 (); below.
2596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2597     <limits.h> exists even on freestanding compilers.  */
2598
2599 #ifdef __STDC__
2600 # include <limits.h>
2601 #else
2602 # include <assert.h>
2603 #endif
2604
2605 #undef $2
2606
2607 /* Override any GCC internal prototype to avoid an error.
2608    Use char because int might match the return type of a GCC
2609    builtin and then its argument prototype would still apply.  */
2610 #ifdef __cplusplus
2611 extern "C"
2612 #endif
2613 char $2 ();
2614 /* The GNU C library defines this for functions which it implements
2615     to always fail with ENOSYS.  Some functions are actually named
2616     something starting with __ and the normal name is an alias.  */
2617 #if defined __stub_$2 || defined __stub___$2
2618 choke me
2619 #endif
2620
2621 int
2622 main ()
2623 {
2624 return $2 ();
2625   ;
2626   return 0;
2627 }
2628 _ACEOF
2629 if ac_fn_cxx_try_link "$LINENO"; then :
2630   eval "$3=yes"
2631 else
2632   eval "$3=no"
2633 fi
2634 rm -f core conftest.err conftest.$ac_objext \
2635     conftest$ac_exeext conftest.$ac_ext
2636 fi
2637 eval ac_res=\$$3
2638                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639 $as_echo "$ac_res" >&6; }
2640   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2641
2642 } # ac_fn_cxx_check_func
2643
2644 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2645 # --------------------------------------
2646 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2647 ac_fn_cxx_check_decl ()
2648 {
2649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650   as_decl_name=`echo $2|sed 's/ *(.*//'`
2651   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2653 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2654 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2655   $as_echo_n "(cached) " >&6
2656 else
2657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2658 /* end confdefs.h.  */
2659 $4
2660 int
2661 main ()
2662 {
2663 #ifndef $as_decl_name
2664 #ifdef __cplusplus
2665   (void) $as_decl_use;
2666 #else
2667   (void) $as_decl_name;
2668 #endif
2669 #endif
2670
2671   ;
2672   return 0;
2673 }
2674 _ACEOF
2675 if ac_fn_cxx_try_compile "$LINENO"; then :
2676   eval "$3=yes"
2677 else
2678   eval "$3=no"
2679 fi
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 fi
2682 eval ac_res=\$$3
2683                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684 $as_echo "$ac_res" >&6; }
2685   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2686
2687 } # ac_fn_cxx_check_decl
2688
2689 # ac_fn_c_try_link LINENO
2690 # -----------------------
2691 # Try to link conftest.$ac_ext, and return whether this succeeded.
2692 ac_fn_c_try_link ()
2693 {
2694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695   rm -f conftest.$ac_objext conftest$ac_exeext
2696   if { { ac_try="$ac_link"
2697 case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2702 $as_echo "$ac_try_echo"; } >&5
2703   (eval "$ac_link") 2>conftest.err
2704   ac_status=$?
2705   if test -s conftest.err; then
2706     grep -v '^ *+' conftest.err >conftest.er1
2707     cat conftest.er1 >&5
2708     mv -f conftest.er1 conftest.err
2709   fi
2710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2711   test $ac_status = 0; } && {
2712          test -z "$ac_c_werror_flag" ||
2713          test ! -s conftest.err
2714        } && test -s conftest$ac_exeext && {
2715          test "$cross_compiling" = yes ||
2716          $as_test_x conftest$ac_exeext
2717        }; then :
2718   ac_retval=0
2719 else
2720   $as_echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723         ac_retval=1
2724 fi
2725   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2726   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2727   # interfere with the next link command; also delete a directory that is
2728   # left behind by Apple's compiler.  We do this before executing the actions.
2729   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2730   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2731   return $ac_retval
2732
2733 } # ac_fn_c_try_link
2734
2735 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2736 # ----------------------------------------------
2737 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2738 ac_fn_c_check_header_preproc ()
2739 {
2740   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2742 $as_echo_n "checking for $2... " >&6; }
2743 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2744   $as_echo_n "(cached) " >&6
2745 else
2746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747 /* end confdefs.h.  */
2748 #include <$2>
2749 _ACEOF
2750 if ac_fn_c_try_cpp "$LINENO"; then :
2751   eval "$3=yes"
2752 else
2753   eval "$3=no"
2754 fi
2755 rm -f conftest.err conftest.$ac_ext
2756 fi
2757 eval ac_res=\$$3
2758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2759 $as_echo "$ac_res" >&6; }
2760   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2761
2762 } # ac_fn_c_check_header_preproc
2763
2764 # ac_fn_c_check_func LINENO FUNC VAR
2765 # ----------------------------------
2766 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2767 ac_fn_c_check_func ()
2768 {
2769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2771 $as_echo_n "checking for $2... " >&6; }
2772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2773   $as_echo_n "(cached) " >&6
2774 else
2775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h.  */
2777 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2779 #define $2 innocuous_$2
2780
2781 /* System header to define __stub macros and hopefully few prototypes,
2782     which can conflict with char $2 (); below.
2783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2784     <limits.h> exists even on freestanding compilers.  */
2785
2786 #ifdef __STDC__
2787 # include <limits.h>
2788 #else
2789 # include <assert.h>
2790 #endif
2791
2792 #undef $2
2793
2794 /* Override any GCC internal prototype to avoid an error.
2795    Use char because int might match the return type of a GCC
2796    builtin and then its argument prototype would still apply.  */
2797 #ifdef __cplusplus
2798 extern "C"
2799 #endif
2800 char $2 ();
2801 /* The GNU C library defines this for functions which it implements
2802     to always fail with ENOSYS.  Some functions are actually named
2803     something starting with __ and the normal name is an alias.  */
2804 #if defined __stub_$2 || defined __stub___$2
2805 choke me
2806 #endif
2807
2808 int
2809 main ()
2810 {
2811 return $2 ();
2812   ;
2813   return 0;
2814 }
2815 _ACEOF
2816 if ac_fn_c_try_link "$LINENO"; then :
2817   eval "$3=yes"
2818 else
2819   eval "$3=no"
2820 fi
2821 rm -f core conftest.err conftest.$ac_objext \
2822     conftest$ac_exeext conftest.$ac_ext
2823 fi
2824 eval ac_res=\$$3
2825                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2826 $as_echo "$ac_res" >&6; }
2827   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2828
2829 } # ac_fn_c_check_func
2830 cat >config.log <<_ACEOF
2831 This file contains any messages produced by compilers while
2832 running configure, to aid debugging if configure makes a mistake.
2833
2834 It was created by $as_me, which was
2835 generated by GNU Autoconf 2.64.  Invocation command line was
2836
2837   $ $0 $@
2838
2839 _ACEOF
2840 exec 5>>config.log
2841 {
2842 cat <<_ASUNAME
2843 ## --------- ##
2844 ## Platform. ##
2845 ## --------- ##
2846
2847 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2848 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2849 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2850 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2851 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2852
2853 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2854 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2855
2856 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2857 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2858 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2859 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2860 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2861 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2862 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2863
2864 _ASUNAME
2865
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869   IFS=$as_save_IFS
2870   test -z "$as_dir" && as_dir=.
2871     $as_echo "PATH: $as_dir"
2872   done
2873 IFS=$as_save_IFS
2874
2875 } >&5
2876
2877 cat >&5 <<_ACEOF
2878
2879
2880 ## ----------- ##
2881 ## Core tests. ##
2882 ## ----------- ##
2883
2884 _ACEOF
2885
2886
2887 # Keep a trace of the command line.
2888 # Strip out --no-create and --no-recursion so they do not pile up.
2889 # Strip out --silent because we don't want to record it for future runs.
2890 # Also quote any args containing shell meta-characters.
2891 # Make two passes to allow for proper duplicate-argument suppression.
2892 ac_configure_args=
2893 ac_configure_args0=
2894 ac_configure_args1=
2895 ac_must_keep_next=false
2896 for ac_pass in 1 2
2897 do
2898   for ac_arg
2899   do
2900     case $ac_arg in
2901     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2902     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2903     | -silent | --silent | --silen | --sile | --sil)
2904       continue ;;
2905     *\'*)
2906       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2907     esac
2908     case $ac_pass in
2909     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2910     2)
2911       as_fn_append ac_configure_args1 " '$ac_arg'"
2912       if test $ac_must_keep_next = true; then
2913         ac_must_keep_next=false # Got value, back to normal.
2914       else
2915         case $ac_arg in
2916           *=* | --config-cache | -C | -disable-* | --disable-* \
2917           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2918           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2919           | -with-* | --with-* | -without-* | --without-* | --x)
2920             case "$ac_configure_args0 " in
2921               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2922             esac
2923             ;;
2924           -* ) ac_must_keep_next=true ;;
2925         esac
2926       fi
2927       as_fn_append ac_configure_args " '$ac_arg'"
2928       ;;
2929     esac
2930   done
2931 done
2932 { ac_configure_args0=; unset ac_configure_args0;}
2933 { ac_configure_args1=; unset ac_configure_args1;}
2934
2935 # When interrupted or exit'd, cleanup temporary files, and complete
2936 # config.log.  We remove comments because anyway the quotes in there
2937 # would cause problems or look ugly.
2938 # WARNING: Use '\'' to represent an apostrophe within the trap.
2939 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2940 trap 'exit_status=$?
2941   # Save into config.log some information that might help in debugging.
2942   {
2943     echo
2944
2945     cat <<\_ASBOX
2946 ## ---------------- ##
2947 ## Cache variables. ##
2948 ## ---------------- ##
2949 _ASBOX
2950     echo
2951     # The following way of writing the cache mishandles newlines in values,
2952 (
2953   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2954     eval ac_val=\$$ac_var
2955     case $ac_val in #(
2956     *${as_nl}*)
2957       case $ac_var in #(
2958       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2959 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2960       esac
2961       case $ac_var in #(
2962       _ | IFS | as_nl) ;; #(
2963       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2964       *) { eval $ac_var=; unset $ac_var;} ;;
2965       esac ;;
2966     esac
2967   done
2968   (set) 2>&1 |
2969     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2970     *${as_nl}ac_space=\ *)
2971       sed -n \
2972         "s/'\''/'\''\\\\'\'''\''/g;
2973           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2974       ;; #(
2975     *)
2976       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2977       ;;
2978     esac |
2979     sort
2980 )
2981     echo
2982
2983     cat <<\_ASBOX
2984 ## ----------------- ##
2985 ## Output variables. ##
2986 ## ----------------- ##
2987 _ASBOX
2988     echo
2989     for ac_var in $ac_subst_vars
2990     do
2991       eval ac_val=\$$ac_var
2992       case $ac_val in
2993       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2994       esac
2995       $as_echo "$ac_var='\''$ac_val'\''"
2996     done | sort
2997     echo
2998
2999     if test -n "$ac_subst_files"; then
3000       cat <<\_ASBOX
3001 ## ------------------- ##
3002 ## File substitutions. ##
3003 ## ------------------- ##
3004 _ASBOX
3005       echo
3006       for ac_var in $ac_subst_files
3007       do
3008         eval ac_val=\$$ac_var
3009         case $ac_val in
3010         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3011         esac
3012         $as_echo "$ac_var='\''$ac_val'\''"
3013       done | sort
3014       echo
3015     fi
3016
3017     if test -s confdefs.h; then
3018       cat <<\_ASBOX
3019 ## ----------- ##
3020 ## confdefs.h. ##
3021 ## ----------- ##
3022 _ASBOX
3023       echo
3024       cat confdefs.h
3025       echo
3026     fi
3027     test "$ac_signal" != 0 &&
3028       $as_echo "$as_me: caught signal $ac_signal"
3029     $as_echo "$as_me: exit $exit_status"
3030   } >&5
3031   rm -f core *.core core.conftest.* &&
3032     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3033     exit $exit_status
3034 ' 0
3035 for ac_signal in 1 2 13 15; do
3036   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3037 done
3038 ac_signal=0
3039
3040 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3041 rm -f -r conftest* confdefs.h
3042
3043 $as_echo "/* confdefs.h */" > confdefs.h
3044
3045 # Predefined preprocessor variables.
3046
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE_NAME "$PACKAGE_NAME"
3049 _ACEOF
3050
3051 cat >>confdefs.h <<_ACEOF
3052 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3053 _ACEOF
3054
3055 cat >>confdefs.h <<_ACEOF
3056 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3057 _ACEOF
3058
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE_STRING "$PACKAGE_STRING"
3061 _ACEOF
3062
3063 cat >>confdefs.h <<_ACEOF
3064 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3065 _ACEOF
3066
3067 cat >>confdefs.h <<_ACEOF
3068 #define PACKAGE_URL "$PACKAGE_URL"
3069 _ACEOF
3070
3071
3072 # Let the site file select an alternate cache file if it wants to.
3073 # Prefer an explicitly selected file to automatically selected ones.
3074 ac_site_file1=NONE
3075 ac_site_file2=NONE
3076 if test -n "$CONFIG_SITE"; then
3077   ac_site_file1=$CONFIG_SITE
3078 elif test "x$prefix" != xNONE; then
3079   ac_site_file1=$prefix/share/config.site
3080   ac_site_file2=$prefix/etc/config.site
3081 else
3082   ac_site_file1=$ac_default_prefix/share/config.site
3083   ac_site_file2=$ac_default_prefix/etc/config.site
3084 fi
3085 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3086 do
3087   test "x$ac_site_file" = xNONE && continue
3088   if test -r "$ac_site_file"; then
3089     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3090 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3091     sed 's/^/| /' "$ac_site_file" >&5
3092     . "$ac_site_file"
3093   fi
3094 done
3095
3096 if test -r "$cache_file"; then
3097   # Some versions of bash will fail to source /dev/null (special
3098   # files actually), so we avoid doing that.
3099   if test -f "$cache_file"; then
3100     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3101 $as_echo "$as_me: loading cache $cache_file" >&6;}
3102     case $cache_file in
3103       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3104       *)                      . "./$cache_file";;
3105     esac
3106   fi
3107 else
3108   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3109 $as_echo "$as_me: creating cache $cache_file" >&6;}
3110   >$cache_file
3111 fi
3112
3113 # Check that the precious variables saved in the cache have kept the same
3114 # value.
3115 ac_cache_corrupted=false
3116 for ac_var in $ac_precious_vars; do
3117   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3118   eval ac_new_set=\$ac_env_${ac_var}_set
3119   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3120   eval ac_new_val=\$ac_env_${ac_var}_value
3121   case $ac_old_set,$ac_new_set in
3122     set,)
3123       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3124 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3125       ac_cache_corrupted=: ;;
3126     ,set)
3127       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3128 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3129       ac_cache_corrupted=: ;;
3130     ,);;
3131     *)
3132       if test "x$ac_old_val" != "x$ac_new_val"; then
3133         # differences in whitespace do not lead to failure.
3134         ac_old_val_w=`echo x $ac_old_val`
3135         ac_new_val_w=`echo x $ac_new_val`
3136         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3137           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3138 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3139           ac_cache_corrupted=:
3140         else
3141           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3142 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3143           eval $ac_var=\$ac_old_val
3144         fi
3145         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3146 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3147         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3148 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3149       fi;;
3150   esac
3151   # Pass precious variables to config.status.
3152   if test "$ac_new_set" = set; then
3153     case $ac_new_val in
3154     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3155     *) ac_arg=$ac_var=$ac_new_val ;;
3156     esac
3157     case " $ac_configure_args " in
3158       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3159       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3160     esac
3161   fi
3162 done
3163 if $ac_cache_corrupted; then
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3167 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3168   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3169 fi
3170 ## -------------------- ##
3171 ## Main body of script. ##
3172 ## -------------------- ##
3173
3174 ac_ext=c
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179
3180
3181
3182
3183
3184
3185 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3186
3187
3188 gcc_version=`cat $srcdir/BASE-VER`
3189
3190 # Determine the host, build, and target systems
3191 ac_aux_dir=
3192 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3193   for ac_t in install-sh install.sh shtool; do
3194     if test -f "$ac_dir/$ac_t"; then
3195       ac_aux_dir=$ac_dir
3196       ac_install_sh="$ac_aux_dir/$ac_t -c"
3197       break 2
3198     fi
3199   done
3200 done
3201 if test -z "$ac_aux_dir"; then
3202   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3203 fi
3204
3205 # These three variables are undocumented and unsupported,
3206 # and are intended to be withdrawn in a future Autoconf release.
3207 # They can cause serious problems if a builder's source tree is in a directory
3208 # whose full name contains unusual characters.
3209 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3210 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3211 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3212
3213
3214 # Make sure we can run config.sub.
3215 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3216   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3217
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3219 $as_echo_n "checking build system type... " >&6; }
3220 if test "${ac_cv_build+set}" = set; then :
3221   $as_echo_n "(cached) " >&6
3222 else
3223   ac_build_alias=$build_alias
3224 test "x$ac_build_alias" = x &&
3225   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3226 test "x$ac_build_alias" = x &&
3227   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3228 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3229   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3230
3231 fi
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3233 $as_echo "$ac_cv_build" >&6; }
3234 case $ac_cv_build in
3235 *-*-*) ;;
3236 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3237 esac
3238 build=$ac_cv_build
3239 ac_save_IFS=$IFS; IFS='-'
3240 set x $ac_cv_build
3241 shift
3242 build_cpu=$1
3243 build_vendor=$2
3244 shift; shift
3245 # Remember, the first character of IFS is used to create $*,
3246 # except with old shells:
3247 build_os=$*
3248 IFS=$ac_save_IFS
3249 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3250
3251
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3253 $as_echo_n "checking host system type... " >&6; }
3254 if test "${ac_cv_host+set}" = set; then :
3255   $as_echo_n "(cached) " >&6
3256 else
3257   if test "x$host_alias" = x; then
3258   ac_cv_host=$ac_cv_build
3259 else
3260   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3261     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3262 fi
3263
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3266 $as_echo "$ac_cv_host" >&6; }
3267 case $ac_cv_host in
3268 *-*-*) ;;
3269 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3270 esac
3271 host=$ac_cv_host
3272 ac_save_IFS=$IFS; IFS='-'
3273 set x $ac_cv_host
3274 shift
3275 host_cpu=$1
3276 host_vendor=$2
3277 shift; shift
3278 # Remember, the first character of IFS is used to create $*,
3279 # except with old shells:
3280 host_os=$*
3281 IFS=$ac_save_IFS
3282 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3283
3284
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3286 $as_echo_n "checking target system type... " >&6; }
3287 if test "${ac_cv_target+set}" = set; then :
3288   $as_echo_n "(cached) " >&6
3289 else
3290   if test "x$target_alias" = x; then
3291   ac_cv_target=$ac_cv_host
3292 else
3293   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3294     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3295 fi
3296
3297 fi
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3299 $as_echo "$ac_cv_target" >&6; }
3300 case $ac_cv_target in
3301 *-*-*) ;;
3302 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3303 esac
3304 target=$ac_cv_target
3305 ac_save_IFS=$IFS; IFS='-'
3306 set x $ac_cv_target
3307 shift
3308 target_cpu=$1
3309 target_vendor=$2
3310 shift; shift
3311 # Remember, the first character of IFS is used to create $*,
3312 # except with old shells:
3313 target_os=$*
3314 IFS=$ac_save_IFS
3315 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3316
3317
3318 # The aliases save the names the user supplied, while $host etc.
3319 # will get canonicalized.
3320 test -n "$target_alias" &&
3321   test "$program_prefix$program_suffix$program_transform_name" = \
3322     NONENONEs,x,x, &&
3323   program_prefix=${target_alias}-
3324
3325 # Determine the noncanonical target name, for directory use.
3326  case ${build_alias} in
3327   "") build_noncanonical=${build} ;;
3328   *) build_noncanonical=${build_alias} ;;
3329 esac
3330
3331  case ${host_alias} in
3332   "") host_noncanonical=${build_noncanonical} ;;
3333   *) host_noncanonical=${host_alias} ;;
3334 esac
3335
3336  case ${target_alias} in
3337   "") target_noncanonical=${host_noncanonical} ;;
3338   *) target_noncanonical=${target_alias} ;;
3339 esac
3340
3341
3342
3343
3344 # Used for constructing correct paths for offload compilers.
3345 real_target_noncanonical=${target_noncanonical}
3346 accel_dir_suffix=
3347
3348 # Determine the target- and build-specific subdirectories
3349
3350 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3351 # have matching libraries, they should use host libraries: Makefile.tpl
3352 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3353 # However, they still use the build modules, because the corresponding
3354 # host modules (e.g. bison) are only built for the host when bootstrap
3355 # finishes. So:
3356 # - build_subdir is where we find build modules, and never changes.
3357 # - build_libsubdir is where we find build libraries, and can be overridden.
3358
3359 # Prefix 'build-' so this never conflicts with target_subdir.
3360 build_subdir="build-${build_noncanonical}"
3361
3362 # Check whether --with-build-libsubdir was given.
3363 if test "${with_build_libsubdir+set}" = set; then :
3364   withval=$with_build_libsubdir; build_libsubdir="$withval"
3365 else
3366   build_libsubdir="$build_subdir"
3367 fi
3368
3369 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3370 if ( test $srcdir = . && test -d gcc ) \
3371    || test -d $srcdir/../host-${host_noncanonical}; then
3372   host_subdir="host-${host_noncanonical}"
3373 else
3374   host_subdir=.
3375 fi
3376 # No prefix.
3377 target_subdir=${target_noncanonical}
3378
3379
3380 # Set program_transform_name
3381 test "$program_prefix" != NONE &&
3382   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3383 # Use a double $ so make ignores it.
3384 test "$program_suffix" != NONE &&
3385   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3386 # Double any \ or $.
3387 # By default was `s,x,x', remove it if useless.
3388 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3389 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3390
3391
3392 # Check for bogus environment variables.
3393 # Test if LIBRARY_PATH contains the notation for the current directory
3394 # since this would lead to problems installing/building glibc.
3395 # LIBRARY_PATH contains the current directory if one of the following
3396 # is true:
3397 # - one of the terminals (":" and ";") is the first or last sign
3398 # - two terminals occur directly after each other
3399 # - the path contains an element with a dot in it
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3401 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3402 case ${LIBRARY_PATH} in
3403   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3404     library_path_setting="contains current directory"
3405     ;;
3406   *)
3407     library_path_setting="ok"
3408     ;;
3409 esac
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3411 $as_echo "$library_path_setting" >&6; }
3412 if test "$library_path_setting" != "ok"; then
3413 as_fn_error "
3414 *** LIBRARY_PATH shouldn't contain the current directory when
3415 *** building gcc. Please change the environment variable
3416 *** and run configure again." "$LINENO" 5
3417 fi
3418
3419 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3420 # since this would lead to problems installing/building glibc.
3421 # GCC_EXEC_PREFIX contains the current directory if one of the following
3422 # is true:
3423 # - one of the terminals (":" and ";") is the first or last sign
3424 # - two terminals occur directly after each other
3425 # - the path contains an element with a dot in it
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3427 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3428 case ${GCC_EXEC_PREFIX} in
3429   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3430     gcc_exec_prefix_setting="contains current directory"
3431     ;;
3432   *)
3433     gcc_exec_prefix_setting="ok"
3434     ;;
3435 esac
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3437 $as_echo "$gcc_exec_prefix_setting" >&6; }
3438 if test "$gcc_exec_prefix_setting" != "ok"; then
3439 as_fn_error "
3440 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3441 *** building gcc. Please change the environment variable
3442 *** and run configure again." "$LINENO" 5
3443 fi
3444
3445 # -----------
3446 # Directories
3447 # -----------
3448
3449 # Specify the local prefix
3450 local_prefix=
3451
3452 # Check whether --with-local-prefix was given.
3453 if test "${with_local_prefix+set}" = set; then :
3454   withval=$with_local_prefix; case "${withval}" in
3455 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3456 no)     ;;
3457 *)      local_prefix=$with_local_prefix ;;
3458 esac
3459 fi
3460
3461
3462 # Default local prefix if it is empty
3463 if test x$local_prefix = x; then
3464         local_prefix=/usr/local
3465 fi
3466
3467
3468 # Check whether --with-native-system-header-dir was given.
3469 if test "${with_native_system_header_dir+set}" = set; then :
3470   withval=$with_native_system_header_dir;
3471  case ${with_native_system_header_dir} in
3472  yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3473  /* | [A-Za-z]:[\\/]*) ;;
3474  *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3475  esac
3476  configured_native_system_header_dir="${withval}"
3477
3478 else
3479   configured_native_system_header_dir=
3480 fi
3481
3482
3483
3484 # Check whether --with-build-sysroot was given.
3485 if test "${with_build_sysroot+set}" = set; then :
3486   withval=$with_build_sysroot; if test x"$withval" != x ; then
3487      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3488    fi
3489 else
3490   SYSROOT_CFLAGS_FOR_TARGET=
3491 fi
3492
3493
3494
3495 if test "x$prefix" = xNONE; then
3496  test_prefix=/usr/local
3497 else
3498  test_prefix=$prefix
3499 fi
3500 if test "x$exec_prefix" = xNONE; then
3501  test_exec_prefix=$test_prefix
3502 else
3503  test_exec_prefix=$exec_prefix
3504 fi
3505
3506
3507 # Check whether --with-sysroot was given.
3508 if test "${with_sysroot+set}" = set; then :
3509   withval=$with_sysroot;
3510  case ${with_sysroot} in
3511  /) ;;
3512  */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3513  esac
3514  case ${with_sysroot} in
3515  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3516  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3517  esac
3518
3519  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3520  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3521
3522  case ${TARGET_SYSTEM_ROOT} in
3523  "${test_prefix}"|"${test_prefix}/"*|\
3524  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3525  '${prefix}'|'${prefix}/'*|\
3526  '${exec_prefix}'|'${exec_prefix}/'*)
3527    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3528    TARGET_SYSTEM_ROOT_DEFINE="$t"
3529    ;;
3530  esac
3531
3532 else
3533
3534  TARGET_SYSTEM_ROOT=
3535  TARGET_SYSTEM_ROOT_DEFINE=
3536  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3537
3538 fi
3539
3540
3541
3542
3543
3544 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3545 # passed in by the toplevel make and thus we'd get different behavior
3546 # depending on where we built the sources.
3547 gcc_gxx_include_dir=
3548 # Specify the g++ header file directory
3549
3550 # Check whether --with-gxx-include-dir was given.
3551 if test "${with_gxx_include_dir+set}" = set; then :
3552   withval=$with_gxx_include_dir; case "${withval}" in
3553 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3554 no)     ;;
3555 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3556 esac
3557 fi
3558
3559
3560 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3561 if test x${gcc_gxx_include_dir} = x; then
3562   if test x${enable_version_specific_runtime_libs} = xyes; then
3563     gcc_gxx_include_dir='${libsubdir}/include/c++'
3564   else
3565     libstdcxx_incdir='include/c++/$(version)'
3566     if test x$host != x$target; then
3567        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3568     fi
3569     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3570   fi
3571 fi
3572
3573 gcc_gxx_include_dir_add_sysroot=0
3574 if test "${with_sysroot+set}" = set; then
3575   gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3576   if test "${gcc_gxx_without_sysroot}"; then
3577     if test x${with_sysroot} != x/; then
3578       gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3579     fi
3580     gcc_gxx_include_dir_add_sysroot=1
3581   fi
3582 fi
3583
3584
3585 # Check whether --with-cpp_install_dir was given.
3586 if test "${with_cpp_install_dir+set}" = set; then :
3587   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3588   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3589 elif test x$withval != xno; then
3590   cpp_install_dir=$withval
3591 fi
3592 fi
3593
3594
3595 # We would like to our source tree to be readonly.  However when releases or
3596 # pre-releases are generated, the flex/bison generated files as well as the
3597 # various formats of manuals need to be included along with the rest of the
3598 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3599 # just that.
3600
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3602 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3603     # Check whether --enable-generated-files-in-srcdir was given.
3604 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3605   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3606 else
3607   generated_files_in_srcdir=no
3608 fi
3609
3610
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3612 $as_echo "$generated_files_in_srcdir" >&6; }
3613
3614 if test "$generated_files_in_srcdir" = "yes"; then
3615   GENINSRC=''
3616 else
3617   GENINSRC='#'
3618 fi
3619
3620
3621 # -------------------
3622 # Find default linker
3623 # -------------------
3624
3625 # With GNU ld
3626
3627 # Check whether --with-gnu-ld was given.
3628 if test "${with_gnu_ld+set}" = set; then :
3629   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3630 else
3631   gnu_ld_flag=no
3632 fi
3633
3634
3635 case $target in
3636     *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3637     *) ld64_flag=no;;
3638 esac
3639
3640 # With pre-defined ld
3641
3642 # Check whether --with-ld was given.
3643 if test "${with_ld+set}" = set; then :
3644   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3645 fi
3646
3647 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3648   if test ! -x "$DEFAULT_LINKER"; then
3649     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3650   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3651     gnu_ld_flag=yes
3652   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3653     ld64_flag=yes
3654   fi
3655
3656 cat >>confdefs.h <<_ACEOF
3657 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3658 _ACEOF
3659
3660 fi
3661
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3663 $as_echo_n "checking whether a default linker was specified... " >&6; }
3664 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3665   if test x"$gnu_ld_flag" = x"no"; then
3666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3667 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3668   else
3669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3670 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3671   fi
3672 else
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677 # With demangler in GNU ld
3678
3679 # Check whether --with-demangler-in-ld was given.
3680 if test "${with_demangler_in_ld+set}" = set; then :
3681   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3682 else
3683   demangler_in_ld=yes
3684 fi
3685
3686
3687 # ----------------------
3688 # Find default assembler
3689 # ----------------------
3690
3691 # With GNU as
3692
3693 # Check whether --with-gnu-as was given.
3694 if test "${with_gnu_as+set}" = set; then :
3695   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3696 else
3697   gas_flag=no
3698 fi
3699
3700
3701
3702 # Check whether --with-as was given.
3703 if test "${with_as+set}" = set; then :
3704   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3705 fi
3706
3707 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3708   if test ! -x "$DEFAULT_ASSEMBLER"; then
3709     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3710   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3711     gas_flag=yes
3712   fi
3713
3714 cat >>confdefs.h <<_ACEOF
3715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3716 _ACEOF
3717
3718 fi
3719
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3721 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3722 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3723   if test x"$gas_flag" = x"no"; then
3724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3725 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3726   else
3727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3728 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3729   fi
3730 else
3731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3733 fi
3734
3735 # ---------------
3736 # Find C compiler
3737 # ---------------
3738
3739 # If a non-executable a.out is present (e.g. created by GNU as above even if
3740 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3741 # file, even when creating an executable, so an execution test fails.
3742 # Remove possible default executable files to avoid this.
3743 #
3744 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3745 # Autoconf includes it.
3746 rm -f a.out a.exe b.out
3747
3748 # Find the native compiler
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 if test -n "$ac_tool_prefix"; then
3755   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 $as_echo_n "checking for $ac_word... " >&6; }
3759 if test "${ac_cv_prog_CC+set}" = set; then :
3760   $as_echo_n "(cached) " >&6
3761 else
3762   if test -n "$CC"; then
3763   ac_cv_prog_CC="$CC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768   IFS=$as_save_IFS
3769   test -z "$as_dir" && as_dir=.
3770     for ac_exec_ext in '' $ac_executable_extensions; do
3771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774     break 2
3775   fi
3776 done
3777   done
3778 IFS=$as_save_IFS
3779
3780 fi
3781 fi
3782 CC=$ac_cv_prog_CC
3783 if test -n "$CC"; then
3784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 $as_echo "$CC" >&6; }
3786 else
3787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3789 fi
3790
3791
3792 fi
3793 if test -z "$ac_cv_prog_CC"; then
3794   ac_ct_CC=$CC
3795   # Extract the first word of "gcc", so it can be a program name with args.
3796 set dummy gcc; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3800   $as_echo_n "(cached) " >&6
3801 else
3802   if test -n "$ac_ct_CC"; then
3803   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808   IFS=$as_save_IFS
3809   test -z "$as_dir" && as_dir=.
3810     for ac_exec_ext in '' $ac_executable_extensions; do
3811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812     ac_cv_prog_ac_ct_CC="gcc"
3813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814     break 2
3815   fi
3816 done
3817   done
3818 IFS=$as_save_IFS
3819
3820 fi
3821 fi
3822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3823 if test -n "$ac_ct_CC"; then
3824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825 $as_echo "$ac_ct_CC" >&6; }
3826 else
3827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3829 fi
3830
3831   if test "x$ac_ct_CC" = x; then
3832     CC=""
3833   else
3834     case $cross_compiling:$ac_tool_warned in
3835 yes:)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838 ac_tool_warned=yes ;;
3839 esac
3840     CC=$ac_ct_CC
3841   fi
3842 else
3843   CC="$ac_cv_prog_CC"
3844 fi
3845
3846 if test -z "$CC"; then
3847           if test -n "$ac_tool_prefix"; then
3848     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3849 set dummy ${ac_tool_prefix}cc; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if test "${ac_cv_prog_CC+set}" = set; then :
3853   $as_echo_n "(cached) " >&6
3854 else
3855   if test -n "$CC"; then
3856   ac_cv_prog_CC="$CC" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861   IFS=$as_save_IFS
3862   test -z "$as_dir" && as_dir=.
3863     for ac_exec_ext in '' $ac_executable_extensions; do
3864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865     ac_cv_prog_CC="${ac_tool_prefix}cc"
3866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867     break 2
3868   fi
3869 done
3870   done
3871 IFS=$as_save_IFS
3872
3873 fi
3874 fi
3875 CC=$ac_cv_prog_CC
3876 if test -n "$CC"; then
3877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3879 else
3880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3882 fi
3883
3884
3885   fi
3886 fi
3887 if test -z "$CC"; then
3888   # Extract the first word of "cc", so it can be a program name with args.
3889 set dummy cc; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if test "${ac_cv_prog_CC+set}" = set; then :
3893   $as_echo_n "(cached) " >&6
3894 else
3895   if test -n "$CC"; then
3896   ac_cv_prog_CC="$CC" # Let the user override the test.
3897 else
3898   ac_prog_rejected=no
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902   IFS=$as_save_IFS
3903   test -z "$as_dir" && as_dir=.
3904     for ac_exec_ext in '' $ac_executable_extensions; do
3905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3907        ac_prog_rejected=yes
3908        continue
3909      fi
3910     ac_cv_prog_CC="cc"
3911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912     break 2
3913   fi
3914 done
3915   done
3916 IFS=$as_save_IFS
3917
3918 if test $ac_prog_rejected = yes; then
3919   # We found a bogon in the path, so make sure we never use it.
3920   set dummy $ac_cv_prog_CC
3921   shift
3922   if test $# != 0; then
3923     # We chose a different compiler from the bogus one.
3924     # However, it has the same basename, so the bogon will be chosen
3925     # first if we set CC to just the basename; use the full file name.
3926     shift
3927     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3928   fi
3929 fi
3930 fi
3931 fi
3932 CC=$ac_cv_prog_CC
3933 if test -n "$CC"; then
3934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 $as_echo "$CC" >&6; }
3936 else
3937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3939 fi
3940
3941
3942 fi
3943 if test -z "$CC"; then
3944   if test -n "$ac_tool_prefix"; then
3945   for ac_prog in cl.exe
3946   do
3947     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if test "${ac_cv_prog_CC+set}" = set; then :
3952   $as_echo_n "(cached) " >&6
3953 else
3954   if test -n "$CC"; then
3955   ac_cv_prog_CC="$CC" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960   IFS=$as_save_IFS
3961   test -z "$as_dir" && as_dir=.
3962     for ac_exec_ext in '' $ac_executable_extensions; do
3963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966     break 2
3967   fi
3968 done
3969   done
3970 IFS=$as_save_IFS
3971
3972 fi
3973 fi
3974 CC=$ac_cv_prog_CC
3975 if test -n "$CC"; then
3976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977 $as_echo "$CC" >&6; }
3978 else
3979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3981 fi
3982
3983
3984     test -n "$CC" && break
3985   done
3986 fi
3987 if test -z "$CC"; then
3988   ac_ct_CC=$CC
3989   for ac_prog in cl.exe
3990 do
3991   # Extract the first word of "$ac_prog", so it can be a program name with args.
3992 set dummy $ac_prog; ac_word=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3996   $as_echo_n "(cached) " >&6
3997 else
3998   if test -n "$ac_ct_CC"; then
3999   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006     for ac_exec_ext in '' $ac_executable_extensions; do
4007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008     ac_cv_prog_ac_ct_CC="$ac_prog"
4009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013   done
4014 IFS=$as_save_IFS
4015
4016 fi
4017 fi
4018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4019 if test -n "$ac_ct_CC"; then
4020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4021 $as_echo "$ac_ct_CC" >&6; }
4022 else
4023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4025 fi
4026
4027
4028   test -n "$ac_ct_CC" && break
4029 done
4030
4031   if test "x$ac_ct_CC" = x; then
4032     CC=""
4033   else
4034     case $cross_compiling:$ac_tool_warned in
4035 yes:)
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4039 esac
4040     CC=$ac_ct_CC
4041   fi
4042 fi
4043
4044 fi
4045
4046
4047 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error "no acceptable C compiler found in \$PATH
4050 See \`config.log' for more details." "$LINENO" 5; }
4051
4052 # Provide some information about the compiler.
4053 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4054 set X $ac_compile
4055 ac_compiler=$2
4056 for ac_option in --version -v -V -qversion; do
4057   { { ac_try="$ac_compiler $ac_option >&5"
4058 case "(($ac_try" in
4059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060   *) ac_try_echo=$ac_try;;
4061 esac
4062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 $as_echo "$ac_try_echo"; } >&5
4064   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4065   ac_status=$?
4066   if test -s conftest.err; then
4067     sed '10a\
4068 ... rest of stderr output deleted ...
4069          10q' conftest.err >conftest.er1
4070     cat conftest.er1 >&5
4071     rm -f conftest.er1 conftest.err
4072   fi
4073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074   test $ac_status = 0; }
4075 done
4076
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h.  */
4079
4080 int
4081 main ()
4082 {
4083
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088 ac_clean_files_save=$ac_clean_files
4089 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4090 # Try to create an executable without -o first, disregard a.out.
4091 # It will help us diagnose broken compilers, and finding out an intuition
4092 # of exeext.
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4094 $as_echo_n "checking for C compiler default output file name... " >&6; }
4095 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4096
4097 # The possible output files:
4098 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4099
4100 ac_rmfiles=
4101 for ac_file in $ac_files
4102 do
4103   case $ac_file in
4104     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4105     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4106   esac
4107 done
4108 rm -f $ac_rmfiles
4109
4110 if { { ac_try="$ac_link_default"
4111 case "(($ac_try" in
4112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113   *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117   (eval "$ac_link_default") 2>&5
4118   ac_status=$?
4119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120   test $ac_status = 0; }; then :
4121   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4122 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4123 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4124 # so that the user can short-circuit this test for compilers unknown to
4125 # Autoconf.
4126 for ac_file in $ac_files ''
4127 do
4128   test -f "$ac_file" || continue
4129   case $ac_file in
4130     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4131         ;;
4132     [ab].out )
4133         # We found the default executable, but exeext='' is most
4134         # certainly right.
4135         break;;
4136     *.* )
4137         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4138         then :; else
4139            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4140         fi
4141         # We set ac_cv_exeext here because the later test for it is not
4142         # safe: cross compilers may not add the suffix if given an `-o'
4143         # argument, so we may need to know it at that point already.
4144         # Even if this section looks crufty: it has the advantage of
4145         # actually working.
4146         break;;
4147     * )
4148         break;;
4149   esac
4150 done
4151 test "$ac_cv_exeext" = no && ac_cv_exeext=
4152
4153 else
4154   ac_file=''
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4157 $as_echo "$ac_file" >&6; }
4158 if test -z "$ac_file"; then :
4159   $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 { as_fn_set_status 77
4165 as_fn_error "C compiler cannot create executables
4166 See \`config.log' for more details." "$LINENO" 5; }; }
4167 fi
4168 ac_exeext=$ac_cv_exeext
4169
4170 # Check that the compiler produces executables we can run.  If not, either
4171 # the compiler is broken, or we cross compile.
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4173 $as_echo_n "checking whether the C compiler works... " >&6; }
4174 # If not cross compiling, check that we can run a simple program.
4175 if test "$cross_compiling" != yes; then
4176   if { ac_try='./$ac_file'
4177   { { case "(($ac_try" in
4178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179   *) ac_try_echo=$ac_try;;
4180 esac
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 $as_echo "$ac_try_echo"; } >&5
4183   (eval "$ac_try") 2>&5
4184   ac_status=$?
4185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186   test $ac_status = 0; }; }; then
4187     cross_compiling=no
4188   else
4189     if test "$cross_compiling" = maybe; then
4190         cross_compiling=yes
4191     else
4192         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error "cannot run C compiled programs.
4195 If you meant to cross compile, use \`--host'.
4196 See \`config.log' for more details." "$LINENO" 5; }
4197     fi
4198   fi
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4201 $as_echo "yes" >&6; }
4202
4203 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4204 ac_clean_files=$ac_clean_files_save
4205 # Check that the compiler produces executables we can run.  If not, either
4206 # the compiler is broken, or we cross compile.
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4208 $as_echo_n "checking whether we are cross compiling... " >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4210 $as_echo "$cross_compiling" >&6; }
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4213 $as_echo_n "checking for suffix of executables... " >&6; }
4214 if { { ac_try="$ac_link"
4215 case "(($ac_try" in
4216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217   *) ac_try_echo=$ac_try;;
4218 esac
4219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220 $as_echo "$ac_try_echo"; } >&5
4221   (eval "$ac_link") 2>&5
4222   ac_status=$?
4223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224   test $ac_status = 0; }; then :
4225   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4226 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4227 # work properly (i.e., refer to `conftest.exe'), while it won't with
4228 # `rm'.
4229 for ac_file in conftest.exe conftest conftest.*; do
4230   test -f "$ac_file" || continue
4231   case $ac_file in
4232     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4233     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4234           break;;
4235     * ) break;;
4236   esac
4237 done
4238 else
4239   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4241 as_fn_error "cannot compute suffix of executables: cannot compile and link
4242 See \`config.log' for more details." "$LINENO" 5; }
4243 fi
4244 rm -f conftest$ac_cv_exeext
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4246 $as_echo "$ac_cv_exeext" >&6; }
4247
4248 rm -f conftest.$ac_ext
4249 EXEEXT=$ac_cv_exeext
4250 ac_exeext=$EXEEXT
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4252 $as_echo_n "checking for suffix of object files... " >&6; }
4253 if test "${ac_cv_objext+set}" = set; then :
4254   $as_echo_n "(cached) " >&6
4255 else
4256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h.  */
4258
4259 int
4260 main ()
4261 {
4262
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.o conftest.obj
4268 if { { ac_try="$ac_compile"
4269 case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275   (eval "$ac_compile") 2>&5
4276   ac_status=$?
4277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278   test $ac_status = 0; }; then :
4279   for ac_file in conftest.o conftest.obj conftest.*; do
4280   test -f "$ac_file" || continue;
4281   case $ac_file in
4282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4283     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4284        break;;
4285   esac
4286 done
4287 else
4288   $as_echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 as_fn_error "cannot compute suffix of object files: cannot compile
4294 See \`config.log' for more details." "$LINENO" 5; }
4295 fi
4296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4299 $as_echo "$ac_cv_objext" >&6; }
4300 OBJEXT=$ac_cv_objext
4301 ac_objext=$OBJEXT
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4303 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4304 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4305   $as_echo_n "(cached) " >&6
4306 else
4307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h.  */
4309
4310 int
4311 main ()
4312 {
4313 #ifndef __GNUC__
4314        choke me
4315 #endif
4316
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322   ac_compiler_gnu=yes
4323 else
4324   ac_compiler_gnu=no
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4328
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4331 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4332 if test $ac_compiler_gnu = yes; then
4333   GCC=yes
4334 else
4335   GCC=
4336 fi
4337 ac_test_CFLAGS=${CFLAGS+set}
4338 ac_save_CFLAGS=$CFLAGS
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4340 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4341 if test "${ac_cv_prog_cc_g+set}" = set; then :
4342   $as_echo_n "(cached) " >&6
4343 else
4344   ac_save_c_werror_flag=$ac_c_werror_flag
4345    ac_c_werror_flag=yes
4346    ac_cv_prog_cc_g=no
4347    CFLAGS="-g"
4348    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h.  */
4350
4351 int
4352 main ()
4353 {
4354
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360   ac_cv_prog_cc_g=yes
4361 else
4362   CFLAGS=""
4363       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h.  */
4365
4366 int
4367 main ()
4368 {
4369
4370   ;
4371   return 0;
4372 }
4373 _ACEOF
4374 if ac_fn_c_try_compile "$LINENO"; then :
4375
4376 else
4377   ac_c_werror_flag=$ac_save_c_werror_flag
4378          CFLAGS="-g"
4379          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h.  */
4381
4382 int
4383 main ()
4384 {
4385
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391   ac_cv_prog_cc_g=yes
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398    ac_c_werror_flag=$ac_save_c_werror_flag
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4401 $as_echo "$ac_cv_prog_cc_g" >&6; }
4402 if test "$ac_test_CFLAGS" = set; then
4403   CFLAGS=$ac_save_CFLAGS
4404 elif test $ac_cv_prog_cc_g = yes; then
4405   if test "$GCC" = yes; then
4406     CFLAGS="-g -O2"
4407   else
4408     CFLAGS="-g"
4409   fi
4410 else
4411   if test "$GCC" = yes; then
4412     CFLAGS="-O2"
4413   else
4414     CFLAGS=
4415   fi
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4418 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4419 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4420   $as_echo_n "(cached) " >&6
4421 else
4422   ac_cv_prog_cc_c89=no
4423 ac_save_CC=$CC
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h.  */
4426 #include <stdarg.h>
4427 #include <stdio.h>
4428 #include <sys/types.h>
4429 #include <sys/stat.h>
4430 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4431 struct buf { int x; };
4432 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4433 static char *e (p, i)
4434      char **p;
4435      int i;
4436 {
4437   return p[i];
4438 }
4439 static char *f (char * (*g) (char **, int), char **p, ...)
4440 {
4441   char *s;
4442   va_list v;
4443   va_start (v,p);
4444   s = g (p, va_arg (v,int));
4445   va_end (v);
4446   return s;
4447 }
4448
4449 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4450    function prototypes and stuff, but not '\xHH' hex character constants.
4451    These don't provoke an error unfortunately, instead are silently treated
4452    as 'x'.  The following induces an error, until -std is added to get
4453    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4454    array size at least.  It's necessary to write '\x00'==0 to get something
4455    that's true only with -std.  */
4456 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4457
4458 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4459    inside strings and character constants.  */
4460 #define FOO(x) 'x'
4461 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4462
4463 int test (int i, double x);
4464 struct s1 {int (*f) (int a);};
4465 struct s2 {int (*f) (double a);};
4466 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4467 int argc;
4468 char **argv;
4469 int
4470 main ()
4471 {
4472 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4473   ;
4474   return 0;
4475 }
4476 _ACEOF
4477 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4478         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4479 do
4480   CC="$ac_save_CC $ac_arg"
4481   if ac_fn_c_try_compile "$LINENO"; then :
4482   ac_cv_prog_cc_c89=$ac_arg
4483 fi
4484 rm -f core conftest.err conftest.$ac_objext
4485   test "x$ac_cv_prog_cc_c89" != "xno" && break
4486 done
4487 rm -f conftest.$ac_ext
4488 CC=$ac_save_CC
4489
4490 fi
4491 # AC_CACHE_VAL
4492 case "x$ac_cv_prog_cc_c89" in
4493   x)
4494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4495 $as_echo "none needed" >&6; } ;;
4496   xno)
4497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4498 $as_echo "unsupported" >&6; } ;;
4499   *)
4500     CC="$CC $ac_cv_prog_cc_c89"
4501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4502 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4503 esac
4504 if test "x$ac_cv_prog_cc_c89" != xno; then :
4505
4506 fi
4507
4508 ac_ext=c
4509 ac_cpp='$CPP $CPPFLAGS'
4510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513
4514 ac_ext=cpp
4515 ac_cpp='$CXXCPP $CPPFLAGS'
4516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4519 if test -z "$CXX"; then
4520   if test -n "$CCC"; then
4521     CXX=$CCC
4522   else
4523     if test -n "$ac_tool_prefix"; then
4524   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4525   do
4526     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_CXX+set}" = set; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533   if test -n "$CXX"; then
4534   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541     for ac_exec_ext in '' $ac_executable_extensions; do
4542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545     break 2
4546   fi
4547 done
4548   done
4549 IFS=$as_save_IFS
4550
4551 fi
4552 fi
4553 CXX=$ac_cv_prog_CXX
4554 if test -n "$CXX"; then
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4556 $as_echo "$CXX" >&6; }
4557 else
4558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4560 fi
4561
4562
4563     test -n "$CXX" && break
4564   done
4565 fi
4566 if test -z "$CXX"; then
4567   ac_ct_CXX=$CXX
4568   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4569 do
4570   # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4575   $as_echo_n "(cached) " >&6
4576 else
4577   if test -n "$ac_ct_CXX"; then
4578   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585     for ac_exec_ext in '' $ac_executable_extensions; do
4586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587     ac_cv_prog_ac_ct_CXX="$ac_prog"
4588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589     break 2
4590   fi
4591 done
4592   done
4593 IFS=$as_save_IFS
4594
4595 fi
4596 fi
4597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4598 if test -n "$ac_ct_CXX"; then
4599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4600 $as_echo "$ac_ct_CXX" >&6; }
4601 else
4602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4604 fi
4605
4606
4607   test -n "$ac_ct_CXX" && break
4608 done
4609
4610   if test "x$ac_ct_CXX" = x; then
4611     CXX="g++"
4612   else
4613     case $cross_compiling:$ac_tool_warned in
4614 yes:)
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned=yes ;;
4618 esac
4619     CXX=$ac_ct_CXX
4620   fi
4621 fi
4622
4623   fi
4624 fi
4625 # Provide some information about the compiler.
4626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4627 set X $ac_compile
4628 ac_compiler=$2
4629 for ac_option in --version -v -V -qversion; do
4630   { { ac_try="$ac_compiler $ac_option >&5"
4631 case "(($ac_try" in
4632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633   *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4638   ac_status=$?
4639   if test -s conftest.err; then
4640     sed '10a\
4641 ... rest of stderr output deleted ...
4642          10q' conftest.err >conftest.er1
4643     cat conftest.er1 >&5
4644     rm -f conftest.er1 conftest.err
4645   fi
4646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647   test $ac_status = 0; }
4648 done
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4651 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4652 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h.  */
4657
4658 int
4659 main ()
4660 {
4661 #ifndef __GNUC__
4662        choke me
4663 #endif
4664
4665   ;
4666   return 0;
4667 }
4668 _ACEOF
4669 if ac_fn_cxx_try_compile "$LINENO"; then :
4670   ac_compiler_gnu=yes
4671 else
4672   ac_compiler_gnu=no
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4676
4677 fi
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4679 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4680 if test $ac_compiler_gnu = yes; then
4681   GXX=yes
4682 else
4683   GXX=
4684 fi
4685 ac_test_CXXFLAGS=${CXXFLAGS+set}
4686 ac_save_CXXFLAGS=$CXXFLAGS
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4688 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4689 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4690   $as_echo_n "(cached) " >&6
4691 else
4692   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4693    ac_cxx_werror_flag=yes
4694    ac_cv_prog_cxx_g=no
4695    CXXFLAGS="-g"
4696    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h.  */
4698
4699 int
4700 main ()
4701 {
4702
4703   ;
4704   return 0;
4705 }
4706 _ACEOF
4707 if ac_fn_cxx_try_compile "$LINENO"; then :
4708   ac_cv_prog_cxx_g=yes
4709 else
4710   CXXFLAGS=""
4711       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h.  */
4713
4714 int
4715 main ()
4716 {
4717
4718   ;
4719   return 0;
4720 }
4721 _ACEOF
4722 if ac_fn_cxx_try_compile "$LINENO"; then :
4723
4724 else
4725   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4726          CXXFLAGS="-g"
4727          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729
4730 int
4731 main ()
4732 {
4733
4734   ;
4735   return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_cxx_try_compile "$LINENO"; then :
4739   ac_cv_prog_cxx_g=yes
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4749 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4750 if test "$ac_test_CXXFLAGS" = set; then
4751   CXXFLAGS=$ac_save_CXXFLAGS
4752 elif test $ac_cv_prog_cxx_g = yes; then
4753   if test "$GXX" = yes; then
4754     CXXFLAGS="-g -O2"
4755   else
4756     CXXFLAGS="-g"
4757   fi
4758 else
4759   if test "$GXX" = yes; then
4760     CXXFLAGS="-O2"
4761   else
4762     CXXFLAGS=
4763   fi
4764 fi
4765 ac_ext=c
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4770
4771
4772
4773
4774 if test -n "$ac_tool_prefix"; then
4775   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4776 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782   if test -n "$GNATBIND"; then
4783   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788   IFS=$as_save_IFS
4789   test -z "$as_dir" && as_dir=.
4790     for ac_exec_ext in '' $ac_executable_extensions; do
4791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794     break 2
4795   fi
4796 done
4797   done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 GNATBIND=$ac_cv_prog_GNATBIND
4803 if test -n "$GNATBIND"; then
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4805 $as_echo "$GNATBIND" >&6; }
4806 else
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811
4812 fi
4813 if test -z "$ac_cv_prog_GNATBIND"; then
4814   ac_ct_GNATBIND=$GNATBIND
4815   # Extract the first word of "gnatbind", so it can be a program name with args.
4816 set dummy gnatbind; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4820   $as_echo_n "(cached) " >&6
4821 else
4822   if test -n "$ac_ct_GNATBIND"; then
4823   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830     for ac_exec_ext in '' $ac_executable_extensions; do
4831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837   done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4843 if test -n "$ac_ct_GNATBIND"; then
4844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4845 $as_echo "$ac_ct_GNATBIND" >&6; }
4846 else
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 fi
4850
4851   if test "x$ac_ct_GNATBIND" = x; then
4852     GNATBIND="no"
4853   else
4854     case $cross_compiling:$ac_tool_warned in
4855 yes:)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned=yes ;;
4859 esac
4860     GNATBIND=$ac_ct_GNATBIND
4861   fi
4862 else
4863   GNATBIND="$ac_cv_prog_GNATBIND"
4864 fi
4865
4866 if test -n "$ac_tool_prefix"; then
4867   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4868 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4872   $as_echo_n "(cached) " >&6
4873 else
4874   if test -n "$GNATMAKE"; then
4875   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882     for ac_exec_ext in '' $ac_executable_extensions; do
4883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886     break 2
4887   fi
4888 done
4889   done
4890 IFS=$as_save_IFS
4891
4892 fi
4893 fi
4894 GNATMAKE=$ac_cv_prog_GNATMAKE
4895 if test -n "$GNATMAKE"; then
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4897 $as_echo "$GNATMAKE" >&6; }
4898 else
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4901 fi
4902
4903
4904 fi
4905 if test -z "$ac_cv_prog_GNATMAKE"; then
4906   ac_ct_GNATMAKE=$GNATMAKE
4907   # Extract the first word of "gnatmake", so it can be a program name with args.
4908 set dummy gnatmake; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   if test -n "$ac_ct_GNATMAKE"; then
4915   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922     for ac_exec_ext in '' $ac_executable_extensions; do
4923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926     break 2
4927   fi
4928 done
4929   done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4935 if test -n "$ac_ct_GNATMAKE"; then
4936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4937 $as_echo "$ac_ct_GNATMAKE" >&6; }
4938 else
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4941 fi
4942
4943   if test "x$ac_ct_GNATMAKE" = x; then
4944     GNATMAKE="no"
4945   else
4946     case $cross_compiling:$ac_tool_warned in
4947 yes:)
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4950 ac_tool_warned=yes ;;
4951 esac
4952     GNATMAKE=$ac_ct_GNATMAKE
4953   fi
4954 else
4955   GNATMAKE="$ac_cv_prog_GNATMAKE"
4956 fi
4957
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4959 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4960 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   cat >conftest.adb <<EOF
4964 procedure conftest is begin null; end conftest;
4965 EOF
4966 acx_cv_cc_gcc_supports_ada=no
4967 # There is a bug in old released versions of GCC which causes the
4968 # driver to exit successfully when the appropriate language module
4969 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4970 # Therefore we must check for the error message as well as an
4971 # unsuccessful exit.
4972 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4973 # given a .adb file, but produce no object file.  So we must check
4974 # if an object file was really produced to guard against this.
4975 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4976 if test x"$errors" = x && test -f conftest.$ac_objext; then
4977   acx_cv_cc_gcc_supports_ada=yes
4978 fi
4979 rm -f conftest.*
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4982 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4983
4984 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4985   have_gnat=yes
4986 else
4987   have_gnat=no
4988 fi
4989
4990
4991 # Do configure tests with the C++ compiler, since that's what we build with.
4992 ac_ext=cpp
4993 ac_cpp='$CXXCPP $CPPFLAGS'
4994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4997
4998
4999 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5000 # optimizations to be activated explicitly by the toplevel.
5001 case "$CC" in
5002   */prev-gcc/xgcc*) ;;
5003   *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[        ]//" -e "s/-O[gs][      ]//" -e "s/-O[0-9]*[    ]//" `
5004      CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[    ]//" -e "s/-O[gs][      ]//" -e "s/-O[0-9]*[    ]//" ` ;;
5005 esac
5006
5007
5008
5009 # Determine PICFLAG for target gnatlib.
5010
5011
5012
5013
5014 case "${target}" in
5015     # PIC is the default on some targets or must not be used.
5016     *-*-darwin*)
5017         # For darwin, common symbols are not allowed in MH_DYLIB files
5018         case "${CFLAGS}" in
5019           # If we are using a compiler supporting mdynamic-no-pic
5020           # and the option has been tested as safe to add, then cancel
5021           # it here, since the code generated is incompatible with shared
5022           # libs.
5023           *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5024           *) PICFLAG_FOR_TARGET=-fno-common ;;
5025         esac
5026         ;;
5027     alpha*-dec-osf5*)
5028         # PIC is the default.
5029         ;;
5030     hppa*64*-*-hpux*)
5031         # PIC is the default for 64-bit PA HP-UX.
5032         ;;
5033     i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5034         ;;
5035     i[34567]86-*-mingw* | x86_64-*-mingw*)
5036         ;;
5037     i[34567]86-*-interix[3-9]*)
5038         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5039         # Instead, we relocate shared libraries at runtime.
5040         ;;
5041     i[34567]86-*-nto-qnx*)
5042         # QNX uses GNU C++, but need to define -shared option too, otherwise
5043         # it will coredump.
5044         PICFLAG_FOR_TARGET='-fPIC -shared'
5045         ;;
5046     i[34567]86-pc-msdosdjgpp*)
5047         # DJGPP does not support shared libraries at all.
5048         ;;
5049     ia64*-*-hpux*)
5050         # On IA64 HP-UX, PIC is the default but the pic flag
5051         # sets the default TLS model and affects inlining.
5052         PICFLAG_FOR_TARGET=-fPIC
5053         ;;
5054     mips-sgi-irix6*)
5055         # PIC is the default.
5056         ;;
5057     rs6000-ibm-aix* | powerpc-ibm-aix*)
5058         # All AIX code is PIC.
5059         ;;
5060
5061     # Some targets support both -fPIC and -fpic, but prefer the latter.
5062     # FIXME: Why?
5063     i[34567]86-*-* | x86_64-*-*)
5064         PICFLAG_FOR_TARGET=-fpic
5065         ;;
5066     # FIXME: Override -fPIC default in libgcc only?
5067     sh-*-linux* | sh[2346lbe]*-*-linux*)
5068         PICFLAG_FOR_TARGET=-fpic
5069         ;;
5070     # FIXME: Simplify to sh*-*-netbsd*?
5071     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5072       sh64-*-netbsd* | sh64l*-*-netbsd*)
5073         PICFLAG_FOR_TARGET=-fpic
5074         ;;
5075     # Default to -fPIC unless specified otherwise.
5076     *)
5077         PICFLAG_FOR_TARGET=-fPIC
5078         ;;
5079 esac
5080
5081 # If the user explicitly uses -fpic/-fPIC, keep that.
5082 case "${CFLAGS_FOR_TARGET}" in
5083     *-fpic*)
5084         PICFLAG_FOR_TARGET=-fpic
5085         ;;
5086     *-fPIC*)
5087         PICFLAG_FOR_TARGET=-fPIC
5088         ;;
5089 esac
5090
5091
5092
5093 # -------------------------
5094 # Check C compiler features
5095 # -------------------------
5096
5097
5098 ac_ext=cpp
5099 ac_cpp='$CXXCPP $CPPFLAGS'
5100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5104 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5105 if test -z "$CXXCPP"; then
5106   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5107   $as_echo_n "(cached) " >&6
5108 else
5109       # Double quotes because CXXCPP needs to be expanded
5110     for CXXCPP in "$CXX -E" "/lib/cpp"
5111     do
5112       ac_preproc_ok=false
5113 for ac_cxx_preproc_warn_flag in '' yes
5114 do
5115   # Use a header file that comes with gcc, so configuring glibc
5116   # with a fresh cross-compiler works.
5117   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5118   # <limits.h> exists even on freestanding compilers.
5119   # On the NeXT, cc -E runs the code through the compiler's parser,
5120   # not just through cpp. "Syntax error" is here to catch this case.
5121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h.  */
5123 #ifdef __STDC__
5124 # include <limits.h>
5125 #else
5126 # include <assert.h>
5127 #endif
5128                      Syntax error
5129 _ACEOF
5130 if ac_fn_cxx_try_cpp "$LINENO"; then :
5131
5132 else
5133   # Broken: fails on valid input.
5134 continue
5135 fi
5136 rm -f conftest.err conftest.$ac_ext
5137
5138   # OK, works on sane cases.  Now check whether nonexistent headers
5139   # can be detected and how.
5140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h.  */
5142 #include <ac_nonexistent.h>
5143 _ACEOF
5144 if ac_fn_cxx_try_cpp "$LINENO"; then :
5145   # Broken: success on invalid input.
5146 continue
5147 else
5148   # Passes both tests.
5149 ac_preproc_ok=:
5150 break
5151 fi
5152 rm -f conftest.err conftest.$ac_ext
5153
5154 done
5155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5156 rm -f conftest.err conftest.$ac_ext
5157 if $ac_preproc_ok; then :
5158   break
5159 fi
5160
5161     done
5162     ac_cv_prog_CXXCPP=$CXXCPP
5163
5164 fi
5165   CXXCPP=$ac_cv_prog_CXXCPP
5166 else
5167   ac_cv_prog_CXXCPP=$CXXCPP
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5170 $as_echo "$CXXCPP" >&6; }
5171 ac_preproc_ok=false
5172 for ac_cxx_preproc_warn_flag in '' yes
5173 do
5174   # Use a header file that comes with gcc, so configuring glibc
5175   # with a fresh cross-compiler works.
5176   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5177   # <limits.h> exists even on freestanding compilers.
5178   # On the NeXT, cc -E runs the code through the compiler's parser,
5179   # not just through cpp. "Syntax error" is here to catch this case.
5180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h.  */
5182 #ifdef __STDC__
5183 # include <limits.h>
5184 #else
5185 # include <assert.h>
5186 #endif
5187                      Syntax error
5188 _ACEOF
5189 if ac_fn_cxx_try_cpp "$LINENO"; then :
5190
5191 else
5192   # Broken: fails on valid input.
5193 continue
5194 fi
5195 rm -f conftest.err conftest.$ac_ext
5196
5197   # OK, works on sane cases.  Now check whether nonexistent headers
5198   # can be detected and how.
5199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h.  */
5201 #include <ac_nonexistent.h>
5202 _ACEOF
5203 if ac_fn_cxx_try_cpp "$LINENO"; then :
5204   # Broken: success on invalid input.
5205 continue
5206 else
5207   # Passes both tests.
5208 ac_preproc_ok=:
5209 break
5210 fi
5211 rm -f conftest.err conftest.$ac_ext
5212
5213 done
5214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215 rm -f conftest.err conftest.$ac_ext
5216 if $ac_preproc_ok; then :
5217
5218 else
5219   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5221 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5222 See \`config.log' for more details." "$LINENO" 5; }
5223 fi
5224
5225 ac_ext=cpp
5226 ac_cpp='$CXXCPP $CPPFLAGS'
5227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5230
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5233 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5234 if test "${ac_cv_path_GREP+set}" = set; then :
5235   $as_echo_n "(cached) " >&6
5236 else
5237   if test -z "$GREP"; then
5238   ac_path_GREP_found=false
5239   # Loop through the user's path and test for each of PROGNAME-LIST
5240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5242 do
5243   IFS=$as_save_IFS
5244   test -z "$as_dir" && as_dir=.
5245     for ac_prog in grep ggrep; do
5246     for ac_exec_ext in '' $ac_executable_extensions; do
5247       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5248       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5249 # Check for GNU ac_path_GREP and select it if it is found.
5250   # Check for GNU $ac_path_GREP
5251 case `"$ac_path_GREP" --version 2>&1` in
5252 *GNU*)
5253   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5254 *)
5255   ac_count=0
5256   $as_echo_n 0123456789 >"conftest.in"
5257   while :
5258   do
5259     cat "conftest.in" "conftest.in" >"conftest.tmp"
5260     mv "conftest.tmp" "conftest.in"
5261     cp "conftest.in" "conftest.nl"
5262     $as_echo 'GREP' >> "conftest.nl"
5263     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5264     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5265     as_fn_arith $ac_count + 1 && ac_count=$as_val
5266     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5267       # Best one so far, save it but keep looking for a better one
5268       ac_cv_path_GREP="$ac_path_GREP"
5269       ac_path_GREP_max=$ac_count
5270     fi
5271     # 10*(2^10) chars as input seems more than enough
5272     test $ac_count -gt 10 && break
5273   done
5274   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5275 esac
5276
5277       $ac_path_GREP_found && break 3
5278     done
5279   done
5280   done
5281 IFS=$as_save_IFS
5282   if test -z "$ac_cv_path_GREP"; then
5283     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5284   fi
5285 else
5286   ac_cv_path_GREP=$GREP
5287 fi
5288
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5291 $as_echo "$ac_cv_path_GREP" >&6; }
5292  GREP="$ac_cv_path_GREP"
5293
5294
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5296 $as_echo_n "checking for egrep... " >&6; }
5297 if test "${ac_cv_path_EGREP+set}" = set; then :
5298   $as_echo_n "(cached) " >&6
5299 else
5300   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5301    then ac_cv_path_EGREP="$GREP -E"
5302    else
5303      if test -z "$EGREP"; then
5304   ac_path_EGREP_found=false
5305   # Loop through the user's path and test for each of PROGNAME-LIST
5306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5308 do
5309   IFS=$as_save_IFS
5310   test -z "$as_dir" && as_dir=.
5311     for ac_prog in egrep; do
5312     for ac_exec_ext in '' $ac_executable_extensions; do
5313       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5314       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5315 # Check for GNU ac_path_EGREP and select it if it is found.
5316   # Check for GNU $ac_path_EGREP
5317 case `"$ac_path_EGREP" --version 2>&1` in
5318 *GNU*)
5319   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5320 *)
5321   ac_count=0
5322   $as_echo_n 0123456789 >"conftest.in"
5323   while :
5324   do
5325     cat "conftest.in" "conftest.in" >"conftest.tmp"
5326     mv "conftest.tmp" "conftest.in"
5327     cp "conftest.in" "conftest.nl"
5328     $as_echo 'EGREP' >> "conftest.nl"
5329     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5330     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5331     as_fn_arith $ac_count + 1 && ac_count=$as_val
5332     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5333       # Best one so far, save it but keep looking for a better one
5334       ac_cv_path_EGREP="$ac_path_EGREP"
5335       ac_path_EGREP_max=$ac_count
5336     fi
5337     # 10*(2^10) chars as input seems more than enough
5338     test $ac_count -gt 10 && break
5339   done
5340   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5341 esac
5342
5343       $ac_path_EGREP_found && break 3
5344     done
5345   done
5346   done
5347 IFS=$as_save_IFS
5348   if test -z "$ac_cv_path_EGREP"; then
5349     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5350   fi
5351 else
5352   ac_cv_path_EGREP=$EGREP
5353 fi
5354
5355    fi
5356 fi
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5358 $as_echo "$ac_cv_path_EGREP" >&6; }
5359  EGREP="$ac_cv_path_EGREP"
5360
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5363 $as_echo_n "checking for ANSI C header files... " >&6; }
5364 if test "${ac_cv_header_stdc+set}" = set; then :
5365   $as_echo_n "(cached) " >&6
5366 else
5367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h.  */
5369 #include <stdlib.h>
5370 #include <stdarg.h>
5371 #include <string.h>
5372 #include <float.h>
5373
5374 int
5375 main ()
5376 {
5377
5378   ;
5379   return 0;
5380 }
5381 _ACEOF
5382 if ac_fn_cxx_try_compile "$LINENO"; then :
5383   ac_cv_header_stdc=yes
5384 else
5385   ac_cv_header_stdc=no
5386 fi
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388
5389 if test $ac_cv_header_stdc = yes; then
5390   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h.  */
5393 #include <string.h>
5394
5395 _ACEOF
5396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5397   $EGREP "memchr" >/dev/null 2>&1; then :
5398
5399 else
5400   ac_cv_header_stdc=no
5401 fi
5402 rm -f conftest*
5403
5404 fi
5405
5406 if test $ac_cv_header_stdc = yes; then
5407   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h.  */
5410 #include <stdlib.h>
5411
5412 _ACEOF
5413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5414   $EGREP "free" >/dev/null 2>&1; then :
5415
5416 else
5417   ac_cv_header_stdc=no
5418 fi
5419 rm -f conftest*
5420
5421 fi
5422
5423 if test $ac_cv_header_stdc = yes; then
5424   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5425   if test "$cross_compiling" = yes; then :
5426   :
5427 else
5428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h.  */
5430 #include <ctype.h>
5431 #include <stdlib.h>
5432 #if ((' ' & 0x0FF) == 0x020)
5433 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5434 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5435 #else
5436 # define ISLOWER(c) \
5437                    (('a' <= (c) && (c) <= 'i') \
5438                      || ('j' <= (c) && (c) <= 'r') \
5439                      || ('s' <= (c) && (c) <= 'z'))
5440 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5441 #endif
5442
5443 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5444 int
5445 main ()
5446 {
5447   int i;
5448   for (i = 0; i < 256; i++)
5449     if (XOR (islower (i), ISLOWER (i))
5450         || toupper (i) != TOUPPER (i))
5451       return 2;
5452   return 0;
5453 }
5454 _ACEOF
5455 if ac_fn_cxx_try_run "$LINENO"; then :
5456
5457 else
5458   ac_cv_header_stdc=no
5459 fi
5460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5461   conftest.$ac_objext conftest.beam conftest.$ac_ext
5462 fi
5463
5464 fi
5465 fi
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5467 $as_echo "$ac_cv_header_stdc" >&6; }
5468 if test $ac_cv_header_stdc = yes; then
5469
5470 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5471
5472 fi
5473
5474 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5475 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5476                   inttypes.h stdint.h unistd.h
5477 do :
5478   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5479 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5480 "
5481 eval as_val=\$$as_ac_Header
5482    if test "x$as_val" = x""yes; then :
5483   cat >>confdefs.h <<_ACEOF
5484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5485 _ACEOF
5486
5487 fi
5488
5489 done
5490
5491
5492
5493   ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5494 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5495   MINIX=yes
5496 else
5497   MINIX=
5498 fi
5499
5500
5501   if test "$MINIX" = yes; then
5502
5503 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5504
5505
5506 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5507
5508
5509 $as_echo "#define _MINIX 1" >>confdefs.h
5510
5511   fi
5512
5513
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5515 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5516 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h.  */
5521
5522 #         define __EXTENSIONS__ 1
5523           $ac_includes_default
5524 int
5525 main ()
5526 {
5527
5528   ;
5529   return 0;
5530 }
5531 _ACEOF
5532 if ac_fn_cxx_try_compile "$LINENO"; then :
5533   ac_cv_safe_to_define___extensions__=yes
5534 else
5535   ac_cv_safe_to_define___extensions__=no
5536 fi
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5540 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5541   test $ac_cv_safe_to_define___extensions__ = yes &&
5542     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5543
5544   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5545
5546   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5547
5548   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5549
5550   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5551
5552
5553 ac_ext=c
5554 ac_cpp='$CPP $CPPFLAGS'
5555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5559 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5560 # On Suns, sometimes $CPP names a directory.
5561 if test -n "$CPP" && test -d "$CPP"; then
5562   CPP=
5563 fi
5564 if test -z "$CPP"; then
5565   if test "${ac_cv_prog_CPP+set}" = set; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568       # Double quotes because CPP needs to be expanded
5569     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5570     do
5571       ac_preproc_ok=false
5572 for ac_c_preproc_warn_flag in '' yes
5573 do
5574   # Use a header file that comes with gcc, so configuring glibc
5575   # with a fresh cross-compiler works.
5576   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5577   # <limits.h> exists even on freestanding compilers.
5578   # On the NeXT, cc -E runs the code through the compiler's parser,
5579   # not just through cpp. "Syntax error" is here to catch this case.
5580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h.  */
5582 #ifdef __STDC__
5583 # include <limits.h>
5584 #else
5585 # include <assert.h>
5586 #endif
5587                      Syntax error
5588 _ACEOF
5589 if ac_fn_c_try_cpp "$LINENO"; then :
5590
5591 else
5592   # Broken: fails on valid input.
5593 continue
5594 fi
5595 rm -f conftest.err conftest.$ac_ext
5596
5597   # OK, works on sane cases.  Now check whether nonexistent headers
5598   # can be detected and how.
5599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h.  */
5601 #include <ac_nonexistent.h>
5602 _ACEOF
5603 if ac_fn_c_try_cpp "$LINENO"; then :
5604   # Broken: success on invalid input.
5605 continue
5606 else
5607   # Passes both tests.
5608 ac_preproc_ok=:
5609 break
5610 fi
5611 rm -f conftest.err conftest.$ac_ext
5612
5613 done
5614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5615 rm -f conftest.err conftest.$ac_ext
5616 if $ac_preproc_ok; then :
5617   break
5618 fi
5619
5620     done
5621     ac_cv_prog_CPP=$CPP
5622
5623 fi
5624   CPP=$ac_cv_prog_CPP
5625 else
5626   ac_cv_prog_CPP=$CPP
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5629 $as_echo "$CPP" >&6; }
5630 ac_preproc_ok=false
5631 for ac_c_preproc_warn_flag in '' yes
5632 do
5633   # Use a header file that comes with gcc, so configuring glibc
5634   # with a fresh cross-compiler works.
5635   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5636   # <limits.h> exists even on freestanding compilers.
5637   # On the NeXT, cc -E runs the code through the compiler's parser,
5638   # not just through cpp. "Syntax error" is here to catch this case.
5639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h.  */
5641 #ifdef __STDC__
5642 # include <limits.h>
5643 #else
5644 # include <assert.h>
5645 #endif
5646                      Syntax error
5647 _ACEOF
5648 if ac_fn_c_try_cpp "$LINENO"; then :
5649
5650 else
5651   # Broken: fails on valid input.
5652 continue
5653 fi
5654 rm -f conftest.err conftest.$ac_ext
5655
5656   # OK, works on sane cases.  Now check whether nonexistent headers
5657   # can be detected and how.
5658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h.  */
5660 #include <ac_nonexistent.h>
5661 _ACEOF
5662 if ac_fn_c_try_cpp "$LINENO"; then :
5663   # Broken: success on invalid input.
5664 continue
5665 else
5666   # Passes both tests.
5667 ac_preproc_ok=:
5668 break
5669 fi
5670 rm -f conftest.err conftest.$ac_ext
5671
5672 done
5673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5674 rm -f conftest.err conftest.$ac_ext
5675 if $ac_preproc_ok; then :
5676
5677 else
5678   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5680 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5681 See \`config.log' for more details." "$LINENO" 5; }
5682 fi
5683
5684 ac_ext=cpp
5685 ac_cpp='$CXXCPP $CPPFLAGS'
5686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5689
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5691 $as_echo_n "checking for inline... " >&6; }
5692 if test "${ac_cv_c_inline+set}" = set; then :
5693   $as_echo_n "(cached) " >&6
5694 else
5695   ac_cv_c_inline=no
5696 for ac_kw in inline __inline__ __inline; do
5697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h.  */
5699 #ifndef __cplusplus
5700 typedef int foo_t;
5701 static $ac_kw foo_t static_foo () {return 0; }
5702 $ac_kw foo_t foo () {return 0; }
5703 #endif
5704
5705 _ACEOF
5706 if ac_fn_cxx_try_compile "$LINENO"; then :
5707   ac_cv_c_inline=$ac_kw
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710   test "$ac_cv_c_inline" != no && break
5711 done
5712
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5715 $as_echo "$ac_cv_c_inline" >&6; }
5716
5717 case $ac_cv_c_inline in
5718   inline | yes) ;;
5719   *)
5720     case $ac_cv_c_inline in
5721       no) ac_val=;;
5722       *) ac_val=$ac_cv_c_inline;;
5723     esac
5724     cat >>confdefs.h <<_ACEOF
5725 #ifndef __cplusplus
5726 #define inline $ac_val
5727 #endif
5728 _ACEOF
5729     ;;
5730 esac
5731
5732
5733 # Check whether --enable-largefile was given.
5734 if test "${enable_largefile+set}" = set; then :
5735   enableval=$enable_largefile;
5736 fi
5737
5738 if test "$enable_largefile" != no; then
5739
5740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5741 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5742 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5743   $as_echo_n "(cached) " >&6
5744 else
5745   ac_cv_sys_largefile_CC=no
5746      if test "$GCC" != yes; then
5747        ac_save_CC=$CC
5748        while :; do
5749          # IRIX 6.2 and later do not support large files by default,
5750          # so use the C compiler's -n32 option if that helps.
5751          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h.  */
5753 #include <sys/types.h>
5754  /* Check that off_t can represent 2**63 - 1 correctly.
5755     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5756     since some C++ compilers masquerading as C compilers
5757     incorrectly reject 9223372036854775807.  */
5758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5759   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5760                        && LARGE_OFF_T % 2147483647 == 1)
5761                       ? 1 : -1];
5762 int
5763 main ()
5764 {
5765
5766   ;
5767   return 0;
5768 }
5769 _ACEOF
5770          if ac_fn_cxx_try_compile "$LINENO"; then :
5771   break
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext
5774          CC="$CC -n32"
5775          if ac_fn_cxx_try_compile "$LINENO"; then :
5776   ac_cv_sys_largefile_CC=' -n32'; break
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext
5779          break
5780        done
5781        CC=$ac_save_CC
5782        rm -f conftest.$ac_ext
5783     fi
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5786 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5787   if test "$ac_cv_sys_largefile_CC" != no; then
5788     CC=$CC$ac_cv_sys_largefile_CC
5789   fi
5790
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5792 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5793 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   while :; do
5797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h.  */
5799 #include <sys/types.h>
5800  /* Check that off_t can represent 2**63 - 1 correctly.
5801     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5802     since some C++ compilers masquerading as C compilers
5803     incorrectly reject 9223372036854775807.  */
5804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5805   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5806                        && LARGE_OFF_T % 2147483647 == 1)
5807                       ? 1 : -1];
5808 int
5809 main ()
5810 {
5811
5812   ;
5813   return 0;
5814 }
5815 _ACEOF
5816 if ac_fn_cxx_try_compile "$LINENO"; then :
5817   ac_cv_sys_file_offset_bits=no; break
5818 fi
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h.  */
5822 #define _FILE_OFFSET_BITS 64
5823 #include <sys/types.h>
5824  /* Check that off_t can represent 2**63 - 1 correctly.
5825     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5826     since some C++ compilers masquerading as C compilers
5827     incorrectly reject 9223372036854775807.  */
5828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5829   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5830                        && LARGE_OFF_T % 2147483647 == 1)
5831                       ? 1 : -1];
5832 int
5833 main ()
5834 {
5835
5836   ;
5837   return 0;
5838 }
5839 _ACEOF
5840 if ac_fn_cxx_try_compile "$LINENO"; then :
5841   ac_cv_sys_file_offset_bits=64; break
5842 fi
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844   ac_cv_sys_file_offset_bits=unknown
5845   break
5846 done
5847 fi
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5849 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5850 case $ac_cv_sys_file_offset_bits in #(
5851   no | unknown) ;;
5852   *)
5853 cat >>confdefs.h <<_ACEOF
5854 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5855 _ACEOF
5856 ;;
5857 esac
5858 rm -rf conftest*
5859   if test $ac_cv_sys_file_offset_bits = unknown; then
5860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5861 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5862 if test "${ac_cv_sys_large_files+set}" = set; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   while :; do
5866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h.  */
5868 #include <sys/types.h>
5869  /* Check that off_t can represent 2**63 - 1 correctly.
5870     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5871     since some C++ compilers masquerading as C compilers
5872     incorrectly reject 9223372036854775807.  */
5873 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5874   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5875                        && LARGE_OFF_T % 2147483647 == 1)
5876                       ? 1 : -1];
5877 int
5878 main ()
5879 {
5880
5881   ;
5882   return 0;
5883 }
5884 _ACEOF
5885 if ac_fn_cxx_try_compile "$LINENO"; then :
5886   ac_cv_sys_large_files=no; break
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h.  */
5891 #define _LARGE_FILES 1
5892 #include <sys/types.h>
5893  /* Check that off_t can represent 2**63 - 1 correctly.
5894     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5895     since some C++ compilers masquerading as C compilers
5896     incorrectly reject 9223372036854775807.  */
5897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5898   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5899                        && LARGE_OFF_T % 2147483647 == 1)
5900                       ? 1 : -1];
5901 int
5902 main ()
5903 {
5904
5905   ;
5906   return 0;
5907 }
5908 _ACEOF
5909 if ac_fn_cxx_try_compile "$LINENO"; then :
5910   ac_cv_sys_large_files=1; break
5911 fi
5912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913   ac_cv_sys_large_files=unknown
5914   break
5915 done
5916 fi
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5918 $as_echo "$ac_cv_sys_large_files" >&6; }
5919 case $ac_cv_sys_large_files in #(
5920   no | unknown) ;;
5921   *)
5922 cat >>confdefs.h <<_ACEOF
5923 #define _LARGE_FILES $ac_cv_sys_large_files
5924 _ACEOF
5925 ;;
5926 esac
5927 rm -rf conftest*
5928   fi
5929 fi
5930
5931
5932 # sizeof(char) is 1 by definition.
5933 # The cast to long int works around a bug in the HP C Compiler
5934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5936 # This bug is HP SR number 8606223364.
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5938 $as_echo_n "checking size of void *... " >&6; }
5939 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5940   $as_echo_n "(cached) " >&6
5941 else
5942   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5943
5944 else
5945   if test "$ac_cv_type_void_p" = yes; then
5946      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5948 { as_fn_set_status 77
5949 as_fn_error "cannot compute sizeof (void *)
5950 See \`config.log' for more details." "$LINENO" 5; }; }
5951    else
5952      ac_cv_sizeof_void_p=0
5953    fi
5954 fi
5955
5956 fi
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5958 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5959
5960
5961
5962 cat >>confdefs.h <<_ACEOF
5963 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5964 _ACEOF
5965
5966
5967 # The cast to long int works around a bug in the HP C Compiler
5968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5970 # This bug is HP SR number 8606223364.
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5972 $as_echo_n "checking size of short... " >&6; }
5973 if test "${ac_cv_sizeof_short+set}" = set; then :
5974   $as_echo_n "(cached) " >&6
5975 else
5976   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5977
5978 else
5979   if test "$ac_cv_type_short" = yes; then
5980      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5982 { as_fn_set_status 77
5983 as_fn_error "cannot compute sizeof (short)
5984 See \`config.log' for more details." "$LINENO" 5; }; }
5985    else
5986      ac_cv_sizeof_short=0
5987    fi
5988 fi
5989
5990 fi
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5992 $as_echo "$ac_cv_sizeof_short" >&6; }
5993
5994
5995
5996 cat >>confdefs.h <<_ACEOF
5997 #define SIZEOF_SHORT $ac_cv_sizeof_short
5998 _ACEOF
5999
6000
6001 # The cast to long int works around a bug in the HP C Compiler
6002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6004 # This bug is HP SR number 8606223364.
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6006 $as_echo_n "checking size of int... " >&6; }
6007 if test "${ac_cv_sizeof_int+set}" = set; then :
6008   $as_echo_n "(cached) " >&6
6009 else
6010   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6011
6012 else
6013   if test "$ac_cv_type_int" = yes; then
6014      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6016 { as_fn_set_status 77
6017 as_fn_error "cannot compute sizeof (int)
6018 See \`config.log' for more details." "$LINENO" 5; }; }
6019    else
6020      ac_cv_sizeof_int=0
6021    fi
6022 fi
6023
6024 fi
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6026 $as_echo "$ac_cv_sizeof_int" >&6; }
6027
6028
6029
6030 cat >>confdefs.h <<_ACEOF
6031 #define SIZEOF_INT $ac_cv_sizeof_int
6032 _ACEOF
6033
6034
6035 # The cast to long int works around a bug in the HP C Compiler
6036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6038 # This bug is HP SR number 8606223364.
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6040 $as_echo_n "checking size of long... " >&6; }
6041 if test "${ac_cv_sizeof_long+set}" = set; then :
6042   $as_echo_n "(cached) " >&6
6043 else
6044   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6045
6046 else
6047   if test "$ac_cv_type_long" = yes; then
6048      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6050 { as_fn_set_status 77
6051 as_fn_error "cannot compute sizeof (long)
6052 See \`config.log' for more details." "$LINENO" 5; }; }
6053    else
6054      ac_cv_sizeof_long=0
6055    fi
6056 fi
6057
6058 fi
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6060 $as_echo "$ac_cv_sizeof_long" >&6; }
6061
6062
6063
6064 cat >>confdefs.h <<_ACEOF
6065 #define SIZEOF_LONG $ac_cv_sizeof_long
6066 _ACEOF
6067
6068
6069 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6070 if test "x$ac_cv_type_long_long" = x""yes; then :
6071
6072 cat >>confdefs.h <<_ACEOF
6073 #define HAVE_LONG_LONG 1
6074 _ACEOF
6075
6076 # The cast to long int works around a bug in the HP C Compiler
6077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6079 # This bug is HP SR number 8606223364.
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6081 $as_echo_n "checking size of long long... " >&6; }
6082 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6086
6087 else
6088   if test "$ac_cv_type_long_long" = yes; then
6089      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6091 { as_fn_set_status 77
6092 as_fn_error "cannot compute sizeof (long long)
6093 See \`config.log' for more details." "$LINENO" 5; }; }
6094    else
6095      ac_cv_sizeof_long_long=0
6096    fi
6097 fi
6098
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6101 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6102
6103
6104
6105 cat >>confdefs.h <<_ACEOF
6106 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6107 _ACEOF
6108
6109
6110 fi
6111
6112 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6113 case $ac_cv_c_int8_t in #(
6114   no|yes) ;; #(
6115   *)
6116
6117 cat >>confdefs.h <<_ACEOF
6118 #define int8_t $ac_cv_c_int8_t
6119 _ACEOF
6120 ;;
6121 esac
6122
6123 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6124 case $ac_cv_c_int16_t in #(
6125   no|yes) ;; #(
6126   *)
6127
6128 cat >>confdefs.h <<_ACEOF
6129 #define int16_t $ac_cv_c_int16_t
6130 _ACEOF
6131 ;;
6132 esac
6133
6134 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6135 case $ac_cv_c_int32_t in #(
6136   no|yes) ;; #(
6137   *)
6138
6139 cat >>confdefs.h <<_ACEOF
6140 #define int32_t $ac_cv_c_int32_t
6141 _ACEOF
6142 ;;
6143 esac
6144
6145 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6146 case $ac_cv_c_int64_t in #(
6147   no|yes) ;; #(
6148   *)
6149
6150 cat >>confdefs.h <<_ACEOF
6151 #define int64_t $ac_cv_c_int64_t
6152 _ACEOF
6153 ;;
6154 esac
6155
6156
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6158 $as_echo_n "checking for long long int... " >&6; }
6159 if test "${ac_cv_type_long_long_int+set}" = set; then :
6160   $as_echo_n "(cached) " >&6
6161 else
6162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h.  */
6164
6165   /* For now, do not test the preprocessor; as of 2007 there are too many
6166          implementations with broken preprocessors.  Perhaps this can
6167          be revisited in 2012.  In the meantime, code should not expect
6168          #if to work with literals wider than 32 bits.  */
6169       /* Test literals.  */
6170       long long int ll = 9223372036854775807ll;
6171       long long int nll = -9223372036854775807LL;
6172       unsigned long long int ull = 18446744073709551615ULL;
6173       /* Test constant expressions.   */
6174       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6175                      ? 1 : -1)];
6176       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6177                      ? 1 : -1)];
6178       int i = 63;
6179 int
6180 main ()
6181 {
6182 /* Test availability of runtime routines for shift and division.  */
6183       long long int llmax = 9223372036854775807ll;
6184       unsigned long long int ullmax = 18446744073709551615ull;
6185       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6186               | (llmax / ll) | (llmax % ll)
6187               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6188               | (ullmax / ull) | (ullmax % ull));
6189   ;
6190   return 0;
6191 }
6192
6193 _ACEOF
6194 if ac_fn_cxx_try_link "$LINENO"; then :
6195                         if test "$cross_compiling" = yes; then :
6196   ac_cv_type_long_long_int=yes
6197 else
6198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h.  */
6200 #include <limits.h>
6201                #ifndef LLONG_MAX
6202                # define HALF \
6203                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6204                # define LLONG_MAX (HALF - 1 + HALF)
6205                #endif
6206 int
6207 main ()
6208 {
6209 long long int n = 1;
6210                int i;
6211                for (i = 0; ; i++)
6212                  {
6213                    long long int m = n << i;
6214                    if (m >> i != n)
6215                      return 1;
6216                    if (LLONG_MAX / 2 < m)
6217                      break;
6218                  }
6219                return 0;
6220   ;
6221   return 0;
6222 }
6223 _ACEOF
6224 if ac_fn_cxx_try_run "$LINENO"; then :
6225   ac_cv_type_long_long_int=yes
6226 else
6227   ac_cv_type_long_long_int=no
6228 fi
6229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6230   conftest.$ac_objext conftest.beam conftest.$ac_ext
6231 fi
6232
6233 else
6234   ac_cv_type_long_long_int=no
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext \
6237     conftest$ac_exeext conftest.$ac_ext
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6240 $as_echo "$ac_cv_type_long_long_int" >&6; }
6241   if test $ac_cv_type_long_long_int = yes; then
6242
6243 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6244
6245   fi
6246
6247
6248
6249   ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6250 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6251
6252 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6253
6254 else
6255   test $ac_cv_type_long_long_int = yes \
6256        && ac_type='long long int' \
6257        || ac_type='long int'
6258
6259 cat >>confdefs.h <<_ACEOF
6260 #define intmax_t $ac_type
6261 _ACEOF
6262
6263 fi
6264
6265
6266
6267   ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6268 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6269
6270 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6271
6272 else
6273   for ac_type in 'int' 'long int' 'long long int'; do
6274        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h.  */
6276 $ac_includes_default
6277 int
6278 main ()
6279 {
6280 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6281 test_array [0] = 0
6282
6283   ;
6284   return 0;
6285 }
6286 _ACEOF
6287 if ac_fn_cxx_try_compile "$LINENO"; then :
6288
6289 cat >>confdefs.h <<_ACEOF
6290 #define intptr_t $ac_type
6291 _ACEOF
6292
6293           ac_type=
6294 fi
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296        test -z "$ac_type" && break
6297      done
6298 fi
6299
6300
6301 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6302 case $ac_cv_c_uint8_t in #(
6303   no|yes) ;; #(
6304   *)
6305
6306 $as_echo "#define _UINT8_T 1" >>confdefs.h
6307
6308
6309 cat >>confdefs.h <<_ACEOF
6310 #define uint8_t $ac_cv_c_uint8_t
6311 _ACEOF
6312 ;;
6313   esac
6314
6315 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6316 case $ac_cv_c_uint16_t in #(
6317   no|yes) ;; #(
6318   *)
6319
6320
6321 cat >>confdefs.h <<_ACEOF
6322 #define uint16_t $ac_cv_c_uint16_t
6323 _ACEOF
6324 ;;
6325   esac
6326
6327 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6328 case $ac_cv_c_uint32_t in #(
6329   no|yes) ;; #(
6330   *)
6331
6332 $as_echo "#define _UINT32_T 1" >>confdefs.h
6333
6334
6335 cat >>confdefs.h <<_ACEOF
6336 #define uint32_t $ac_cv_c_uint32_t
6337 _ACEOF
6338 ;;
6339   esac
6340
6341 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6342 case $ac_cv_c_uint64_t in #(
6343   no|yes) ;; #(
6344   *)
6345
6346 $as_echo "#define _UINT64_T 1" >>confdefs.h
6347
6348
6349 cat >>confdefs.h <<_ACEOF
6350 #define uint64_t $ac_cv_c_uint64_t
6351 _ACEOF
6352 ;;
6353   esac
6354
6355
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6357 $as_echo_n "checking for unsigned long long int... " >&6; }
6358 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6359   $as_echo_n "(cached) " >&6
6360 else
6361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h.  */
6363
6364   /* For now, do not test the preprocessor; as of 2007 there are too many
6365          implementations with broken preprocessors.  Perhaps this can
6366          be revisited in 2012.  In the meantime, code should not expect
6367          #if to work with literals wider than 32 bits.  */
6368       /* Test literals.  */
6369       long long int ll = 9223372036854775807ll;
6370       long long int nll = -9223372036854775807LL;
6371       unsigned long long int ull = 18446744073709551615ULL;
6372       /* Test constant expressions.   */
6373       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6374                      ? 1 : -1)];
6375       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6376                      ? 1 : -1)];
6377       int i = 63;
6378 int
6379 main ()
6380 {
6381 /* Test availability of runtime routines for shift and division.  */
6382       long long int llmax = 9223372036854775807ll;
6383       unsigned long long int ullmax = 18446744073709551615ull;
6384       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6385               | (llmax / ll) | (llmax % ll)
6386               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6387               | (ullmax / ull) | (ullmax % ull));
6388   ;
6389   return 0;
6390 }
6391
6392 _ACEOF
6393 if ac_fn_cxx_try_link "$LINENO"; then :
6394   ac_cv_type_unsigned_long_long_int=yes
6395 else
6396   ac_cv_type_unsigned_long_long_int=no
6397 fi
6398 rm -f core conftest.err conftest.$ac_objext \
6399     conftest$ac_exeext conftest.$ac_ext
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6402 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6403   if test $ac_cv_type_unsigned_long_long_int = yes; then
6404
6405 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6406
6407   fi
6408
6409
6410
6411   ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6412 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6413
6414 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6415
6416 else
6417   test $ac_cv_type_unsigned_long_long_int = yes \
6418        && ac_type='unsigned long long int' \
6419        || ac_type='unsigned long int'
6420
6421 cat >>confdefs.h <<_ACEOF
6422 #define uintmax_t $ac_type
6423 _ACEOF
6424
6425 fi
6426
6427
6428
6429   ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6430 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6431
6432 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6433
6434 else
6435   for ac_type in 'unsigned int' 'unsigned long int' \
6436         'unsigned long long int'; do
6437        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h.  */
6439 $ac_includes_default
6440 int
6441 main ()
6442 {
6443 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6444 test_array [0] = 0
6445
6446   ;
6447   return 0;
6448 }
6449 _ACEOF
6450 if ac_fn_cxx_try_compile "$LINENO"; then :
6451
6452 cat >>confdefs.h <<_ACEOF
6453 #define uintptr_t $ac_type
6454 _ACEOF
6455
6456           ac_type=
6457 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459        test -z "$ac_type" && break
6460      done
6461 fi
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6477   as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6478 fi
6479
6480 # check what underlying integer type int64_t uses
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6482 $as_echo_n "checking for int64_t underlying type... " >&6; }
6483 if test "${ac_cv_int64_t_type+set}" = set; then :
6484   $as_echo_n "(cached) " >&6
6485 else
6486
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h.  */
6489
6490 #ifdef HAVE_STDINT_H
6491 #include <stdint.h>
6492 #endif
6493 template <typename T> struct X { };
6494 template <>
6495 struct X<long> { typedef long t; };
6496
6497 int
6498 main ()
6499 {
6500 X<int64_t>::t x;
6501   ;
6502   return 0;
6503 }
6504 _ACEOF
6505 if ac_fn_cxx_try_compile "$LINENO"; then :
6506   ac_cv_int64_t_type=long
6507 else
6508   ac_cv_int64_t_type="long long"
6509 fi
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 fi
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6513 $as_echo "$ac_cv_int64_t_type" >&6; }
6514 if test "$ac_cv_int64_t_type" = "long"; then
6515
6516 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6517
6518 else
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h.  */
6521
6522 #ifdef HAVE_STDINT_H
6523 #include <stdint.h>
6524 #endif
6525 template <typename T> struct X { };
6526 template <>
6527 struct X<long long> { typedef long long t; };
6528
6529 int
6530 main ()
6531 {
6532 X<int64_t>::t x;
6533   ;
6534   return 0;
6535 }
6536 _ACEOF
6537 if ac_fn_cxx_try_compile "$LINENO"; then :
6538
6539 else
6540   as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6541 fi
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 fi
6544
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6546 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6547 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h.  */
6553
6554 #include <utility>
6555
6556 int
6557 main ()
6558 {
6559 int a, b; std::swap(a,b);
6560   ;
6561   return 0;
6562 }
6563 _ACEOF
6564 if ac_fn_cxx_try_compile "$LINENO"; then :
6565   ac_cv_std_swap_in_utility=yes
6566 else
6567   ac_cv_std_swap_in_utility=no
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6572 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6573 if test $ac_cv_std_swap_in_utility = yes; then
6574
6575 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6576
6577 fi
6578
6579 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6580 # If the host compiler is affected by the bug, and we build with optimization
6581 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6582 # get miscompiled.  Use -fno-strict-aliasing to work around this problem.
6583 # Since there is no reliable feature check for the presence of this bug,
6584 # we simply use a GCC version number check.  (This should never trigger for
6585 # stages 2 or 3 of a native bootstrap.)
6586 aliasing_flags=
6587 if test "$GCC" = yes; then
6588   saved_CXXFLAGS="$CXXFLAGS"
6589
6590   # The following test compilation will succeed if and only if $CXX accepts
6591   # -fno-strict-aliasing *and* is older than GCC 4.3.
6592   CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6594 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h.  */
6597
6598 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6599 #error compiler not affected by placement new aliasing bug
6600 #endif
6601
6602 _ACEOF
6603 if ac_fn_cxx_try_compile "$LINENO"; then :
6604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6605 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6606 else
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611
6612   CXXFLAGS="$saved_CXXFLAGS"
6613 fi
6614
6615
6616
6617
6618 # ---------------------
6619 # Warnings and checking
6620 # ---------------------
6621
6622 # Check $CC warning features (if it's GCC).
6623 # We want to use -pedantic, but we don't want warnings about
6624 # * 'long long'
6625 # * variadic macros
6626 # * overlong strings
6627 # * C++11 narrowing conversions in { }
6628 # So, we only use -pedantic if we can disable those warnings.
6629
6630 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6631 # Check whether --enable-build-format-warnings was given.
6632 if test "${enable_build_format_warnings+set}" = set; then :
6633   enableval=$enable_build_format_warnings;
6634 else
6635   enable_build_format_warnings=yes
6636 fi
6637
6638 if test $enable_build_format_warnings = no; then :
6639   wf_opt=-Wno-format
6640 else
6641   wf_opt=
6642 fi
6643 ac_ext=cpp
6644 ac_cpp='$CXXCPP $CPPFLAGS'
6645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6648
6649 loose_warn=
6650 save_CXXFLAGS="$CXXFLAGS"
6651 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6652   # Do the check with the no- prefix removed since gcc silently
6653   # accepts any -Wno-* option on purpose
6654   case $real_option in
6655     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6656     *) option=$real_option ;;
6657   esac
6658   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6659
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6661 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6662 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6663   $as_echo_n "(cached) " >&6
6664 else
6665   CXXFLAGS="$option"
6666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h.  */
6668
6669 int
6670 main ()
6671 {
6672
6673   ;
6674   return 0;
6675 }
6676 _ACEOF
6677 if ac_fn_cxx_try_compile "$LINENO"; then :
6678   eval "$as_acx_Woption=yes"
6679 else
6680   eval "$as_acx_Woption=no"
6681 fi
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683
6684 fi
6685 eval ac_res=\$$as_acx_Woption
6686                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6687 $as_echo "$ac_res" >&6; }
6688   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6689   loose_warn="$loose_warn${loose_warn:+ }$real_option"
6690 fi
6691   done
6692 CXXFLAGS="$save_CXXFLAGS"
6693 ac_ext=cpp
6694 ac_cpp='$CXXCPP $CPPFLAGS'
6695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6698
6699
6700
6701 ac_ext=c
6702 ac_cpp='$CPP $CPPFLAGS'
6703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6706
6707 c_loose_warn=
6708 save_CFLAGS="$CFLAGS"
6709 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6710   # Do the check with the no- prefix removed since gcc silently
6711   # accepts any -Wno-* option on purpose
6712   case $real_option in
6713     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6714     *) option=$real_option ;;
6715   esac
6716   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6717
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6719 $as_echo_n "checking whether $CC supports $option... " >&6; }
6720 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   CFLAGS="$option"
6724     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h.  */
6726
6727 int
6728 main ()
6729 {
6730
6731   ;
6732   return 0;
6733 }
6734 _ACEOF
6735 if ac_fn_c_try_compile "$LINENO"; then :
6736   eval "$as_acx_Woption=yes"
6737 else
6738   eval "$as_acx_Woption=no"
6739 fi
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741
6742 fi
6743 eval ac_res=\$$as_acx_Woption
6744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6745 $as_echo "$ac_res" >&6; }
6746   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6747   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6748 fi
6749   done
6750 CFLAGS="$save_CFLAGS"
6751 ac_ext=cpp
6752 ac_cpp='$CXXCPP $CPPFLAGS'
6753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6756
6757
6758 ac_ext=cpp
6759 ac_cpp='$CXXCPP $CPPFLAGS'
6760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6763
6764 strict_warn=
6765 save_CXXFLAGS="$CXXFLAGS"
6766 for real_option in -Wmissing-format-attribute; do
6767   # Do the check with the no- prefix removed since gcc silently
6768   # accepts any -Wno-* option on purpose
6769   case $real_option in
6770     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6771     *) option=$real_option ;;
6772   esac
6773   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6774
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6776 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6777 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6778   $as_echo_n "(cached) " >&6
6779 else
6780   CXXFLAGS="$option"
6781     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h.  */
6783
6784 int
6785 main ()
6786 {
6787
6788   ;
6789   return 0;
6790 }
6791 _ACEOF
6792 if ac_fn_cxx_try_compile "$LINENO"; then :
6793   eval "$as_acx_Woption=yes"
6794 else
6795   eval "$as_acx_Woption=no"
6796 fi
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798
6799 fi
6800 eval ac_res=\$$as_acx_Woption
6801                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6802 $as_echo "$ac_res" >&6; }
6803   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6804   strict_warn="$strict_warn${strict_warn:+ }$real_option"
6805 fi
6806   done
6807 CXXFLAGS="$save_CXXFLAGS"
6808 ac_ext=cpp
6809 ac_cpp='$CXXCPP $CPPFLAGS'
6810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6813
6814
6815 ac_ext=cpp
6816 ac_cpp='$CXXCPP $CPPFLAGS'
6817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6820
6821 save_CXXFLAGS="$CXXFLAGS"
6822 for real_option in -Woverloaded-virtual; do
6823   # Do the check with the no- prefix removed since gcc silently
6824   # accepts any -Wno-* option on purpose
6825   case $real_option in
6826     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6827     *) option=$real_option ;;
6828   esac
6829   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6830
6831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6832 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6833 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6834   $as_echo_n "(cached) " >&6
6835 else
6836   CXXFLAGS="$option"
6837     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h.  */
6839
6840 int
6841 main ()
6842 {
6843
6844   ;
6845   return 0;
6846 }
6847 _ACEOF
6848 if ac_fn_cxx_try_compile "$LINENO"; then :
6849   eval "$as_acx_Woption=yes"
6850 else
6851   eval "$as_acx_Woption=no"
6852 fi
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854
6855 fi
6856 eval ac_res=\$$as_acx_Woption
6857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6858 $as_echo "$ac_res" >&6; }
6859   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6860   strict_warn="$strict_warn${strict_warn:+ }$real_option"
6861 fi
6862   done
6863 CXXFLAGS="$save_CXXFLAGS"
6864 ac_ext=cpp
6865 ac_cpp='$CXXCPP $CPPFLAGS'
6866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6869
6870
6871 ac_ext=c
6872 ac_cpp='$CPP $CPPFLAGS'
6873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6876
6877 c_strict_warn=
6878 save_CFLAGS="$CFLAGS"
6879 for real_option in -Wold-style-definition -Wc++-compat; do
6880   # Do the check with the no- prefix removed since gcc silently
6881   # accepts any -Wno-* option on purpose
6882   case $real_option in
6883     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6884     *) option=$real_option ;;
6885   esac
6886   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6887
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6889 $as_echo_n "checking whether $CC supports $option... " >&6; }
6890 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6891   $as_echo_n "(cached) " >&6
6892 else
6893   CFLAGS="$option"
6894     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h.  */
6896
6897 int
6898 main ()
6899 {
6900
6901   ;
6902   return 0;
6903 }
6904 _ACEOF
6905 if ac_fn_c_try_compile "$LINENO"; then :
6906   eval "$as_acx_Woption=yes"
6907 else
6908   eval "$as_acx_Woption=no"
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911
6912 fi
6913 eval ac_res=\$$as_acx_Woption
6914                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6915 $as_echo "$ac_res" >&6; }
6916   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6917   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6918 fi
6919   done
6920 CFLAGS="$save_CFLAGS"
6921 ac_ext=cpp
6922 ac_cpp='$CXXCPP $CPPFLAGS'
6923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6926
6927
6928 ac_ext=cpp
6929 ac_cpp='$CXXCPP $CPPFLAGS'
6930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6933
6934 # Do the check with the no- prefix removed from the warning options
6935 # since gcc silently accepts any -Wno-* option on purpose
6936 if test "$GXX" = yes; then :
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6938 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6939 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6940   $as_echo_n "(cached) " >&6
6941 else
6942   save_CXXFLAGS="$CXXFLAGS"
6943 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h.  */
6946
6947 int
6948 main ()
6949 {
6950
6951   ;
6952   return 0;
6953 }
6954 _ACEOF
6955 if ac_fn_cxx_try_compile "$LINENO"; then :
6956   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6957 else
6958   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6959 fi
6960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 CXXFLAGS="$save_CXXFLAGS"
6962 fi
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6964 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6965 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6966   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6967 fi
6968
6969 fi
6970 ac_ext=cpp
6971 ac_cpp='$CXXCPP $CPPFLAGS'
6972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6975
6976
6977 ac_ext=cpp
6978 ac_cpp='$CXXCPP $CPPFLAGS'
6979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6982
6983 # Check whether --enable-werror-always was given.
6984 if test "${enable_werror_always+set}" = set; then :
6985   enableval=$enable_werror_always;
6986 else
6987   enable_werror_always=no
6988 fi
6989
6990 if test $enable_werror_always = yes; then :
6991   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6992 fi
6993
6994 ac_ext=cpp
6995 ac_cpp='$CXXCPP $CPPFLAGS'
6996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6999
7000
7001
7002 # The above macros do nothing if the compiler is not GCC.  However, the
7003 # Makefile has more goo to add other flags, so these variables are used
7004 # to enable warnings only for GCC.
7005 warn_cflags=
7006 warn_cxxflags=
7007 if test "x$GCC" = "xyes"; then
7008   warn_cflags='$(GCC_WARN_CFLAGS)'
7009   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7010 fi
7011
7012
7013
7014 # Disable exceptions and RTTI if building with g++
7015 ac_ext=c
7016 ac_cpp='$CPP $CPPFLAGS'
7017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020
7021 noexception_flags=
7022 save_CFLAGS="$CFLAGS"
7023 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7024   # Do the check with the no- prefix removed since gcc silently
7025   # accepts any -Wno-* option on purpose
7026   case $real_option in
7027     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7028     *) option=$real_option ;;
7029   esac
7030   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7031
7032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7033 $as_echo_n "checking whether $CC supports $option... " >&6; }
7034 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   CFLAGS="$option"
7038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h.  */
7040
7041 int
7042 main ()
7043 {
7044
7045   ;
7046   return 0;
7047 }
7048 _ACEOF
7049 if ac_fn_c_try_compile "$LINENO"; then :
7050   eval "$as_acx_Woption=yes"
7051 else
7052   eval "$as_acx_Woption=no"
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055
7056 fi
7057 eval ac_res=\$$as_acx_Woption
7058                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7059 $as_echo "$ac_res" >&6; }
7060   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7061   noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7062 fi
7063   done
7064 CFLAGS="$save_CFLAGS"
7065 ac_ext=cpp
7066 ac_cpp='$CXXCPP $CPPFLAGS'
7067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7070
7071
7072
7073 # Enable expensive internal checks
7074 is_release=
7075 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7076   is_release=yes
7077 fi
7078
7079 # Check whether --enable-checking was given.
7080 if test "${enable_checking+set}" = set; then :
7081   enableval=$enable_checking; ac_checking_flags="${enableval}"
7082 else
7083
7084 # Determine the default checks.
7085 if test x$is_release = x ; then
7086   ac_checking_flags=yes
7087 else
7088   ac_checking_flags=release
7089 fi
7090 fi
7091
7092 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7093 for check in release $ac_checking_flags
7094 do
7095         case $check in
7096         # these set all the flags to specific states
7097         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7098                         ac_fold_checking= ; ac_gc_checking=1 ;
7099                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7100                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7101                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7102                         ac_types_checking=1 ;;
7103         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7104                         ac_fold_checking= ; ac_gc_checking= ;
7105                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7106                         ac_rtlflag_checking= ; ac_runtime_checking= ;
7107                         ac_tree_checking= ; ac_valgrind_checking= ;
7108                         ac_types_checking= ;;
7109         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7110                         ac_fold_checking=1 ; ac_gc_checking=1 ;
7111                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7112                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7113                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7114                         ac_types_checking=1 ;;
7115         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7116                         ac_fold_checking= ; ac_gc_checking= ;
7117                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7118                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7119                         ac_tree_checking= ; ac_valgrind_checking= ;
7120                         ac_types_checking= ;;
7121         # these enable particular checks
7122         assert)         ac_assert_checking=1 ;;
7123         df)             ac_df_checking=1 ;;
7124         fold)           ac_fold_checking=1 ;;
7125         gc)             ac_gc_checking=1 ;;
7126         gcac)           ac_gc_always_collect=1 ;;
7127         gimple)         ac_gimple_checking=1 ;;
7128         misc)           ac_checking=1 ;;
7129         rtl)            ac_rtl_checking=1 ;;
7130         rtlflag)        ac_rtlflag_checking=1 ;;
7131         runtime)        ac_runtime_checking=1 ;;
7132         tree)           ac_tree_checking=1 ;;
7133         types)          ac_types_checking=1 ;;
7134         valgrind)       ac_valgrind_checking=1 ;;
7135         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7136         esac
7137 done
7138 IFS="$ac_save_IFS"
7139
7140 nocommon_flag=""
7141 if test x$ac_checking != x ; then
7142
7143 $as_echo "#define CHECKING_P 1" >>confdefs.h
7144
7145   nocommon_flag=-fno-common
7146 else
7147   $as_echo "#define CHECKING_P 0" >>confdefs.h
7148
7149 fi
7150
7151 if test x$ac_df_checking != x ; then
7152
7153 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7154
7155 fi
7156 if test x$ac_assert_checking != x ; then
7157
7158 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7159
7160 fi
7161 if test x$ac_gimple_checking != x ; then
7162
7163 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7164
7165 fi
7166
7167 if test x$ac_runtime_checking != x ; then
7168
7169 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7170
7171 fi
7172 if test x$ac_tree_checking != x ; then
7173
7174 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7175
7176   TREECHECKING=yes
7177 fi
7178 if test x$ac_types_checking != x ; then
7179
7180 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7181
7182 fi
7183
7184 if test x$ac_rtl_checking != x ; then
7185
7186 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7187
7188 fi
7189 if test x$ac_rtlflag_checking != x ; then
7190
7191 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7192
7193 fi
7194 if test x$ac_gc_checking != x ; then
7195
7196 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7197
7198 fi
7199 if test x$ac_gc_always_collect != x ; then
7200
7201 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7202
7203 fi
7204 if test x$ac_fold_checking != x ; then
7205
7206 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7207
7208 fi
7209 valgrind_path_defines=
7210 valgrind_command=
7211
7212 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7213 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7214   have_valgrind_h=yes
7215 else
7216   have_valgrind_h=no
7217 fi
7218
7219
7220
7221 # It is certainly possible that there's valgrind but no valgrind.h.
7222 # GCC relies on making annotations so we must have both.
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7224 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h.  */
7227 #include <valgrind/memcheck.h>
7228 #ifndef VALGRIND_DISCARD
7229 #error VALGRIND_DISCARD not defined
7230 #endif
7231 _ACEOF
7232 if ac_fn_cxx_try_cpp "$LINENO"; then :
7233   gcc_cv_header_valgrind_memcheck_h=yes
7234 else
7235   gcc_cv_header_valgrind_memcheck_h=no
7236 fi
7237 rm -f conftest.err conftest.$ac_ext
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7239 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7241 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h.  */
7244 #include <memcheck.h>
7245 #ifndef VALGRIND_DISCARD
7246 #error VALGRIND_DISCARD not defined
7247 #endif
7248 _ACEOF
7249 if ac_fn_cxx_try_cpp "$LINENO"; then :
7250   gcc_cv_header_memcheck_h=yes
7251 else
7252   gcc_cv_header_memcheck_h=no
7253 fi
7254 rm -f conftest.err conftest.$ac_ext
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7256 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7257 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7258
7259 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7260
7261 fi
7262 if test $gcc_cv_header_memcheck_h = yes; then
7263
7264 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7265
7266 fi
7267
7268 if test x$ac_valgrind_checking != x ; then
7269
7270 # Prepare PATH_SEPARATOR.
7271 # The user is always right.
7272 if test "${PATH_SEPARATOR+set}" != set; then
7273   echo "#! /bin/sh" >conf$$.sh
7274   echo  "exit 0"   >>conf$$.sh
7275   chmod +x conf$$.sh
7276   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7277     PATH_SEPARATOR=';'
7278   else
7279     PATH_SEPARATOR=:
7280   fi
7281   rm -f conf$$.sh
7282 fi
7283
7284 # Find out how to test for executable files. Don't use a zero-byte file,
7285 # as systems may use methods other than mode bits to determine executability.
7286 cat >conf$$.file <<_ASEOF
7287 #! /bin/sh
7288 exit 0
7289 _ASEOF
7290 chmod +x conf$$.file
7291 if test -x conf$$.file >/dev/null 2>&1; then
7292   ac_executable_p="test -x"
7293 else
7294   ac_executable_p="test -f"
7295 fi
7296 rm -f conf$$.file
7297
7298 # Extract the first word of "valgrind", so it can be a program name with args.
7299 set dummy valgrind; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   case "$valgrind_path" in
7306   [\\/]* | ?:[\\/]*)
7307     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7308     ;;
7309   *)
7310     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7311     for ac_dir in $PATH; do
7312       IFS="$ac_save_IFS"
7313       test -z "$ac_dir" && ac_dir=.
7314       for ac_exec_ext in '' $ac_executable_extensions; do
7315         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7316           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7317             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7318             break 2
7319           fi
7320         fi
7321       done
7322     done
7323     IFS="$ac_save_IFS"
7324     ;;
7325 esac
7326 fi
7327 valgrind_path="$ac_cv_path_valgrind_path"
7328 if test -n "$valgrind_path"; then
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7330 $as_echo "$valgrind_path" >&6; }
7331 else
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336   if test "x$valgrind_path" = "x" \
7337     || (test $have_valgrind_h = no \
7338         && test $gcc_cv_header_memcheck_h = no \
7339         && test $gcc_cv_header_valgrind_memcheck_h = no); then
7340         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7341   fi
7342   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7343   valgrind_command="$valgrind_path -q"
7344
7345 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7346
7347 fi
7348
7349
7350
7351 # Enable code coverage collection
7352 # Check whether --enable-coverage was given.
7353 if test "${enable_coverage+set}" = set; then :
7354   enableval=$enable_coverage; case "${enableval}" in
7355   yes|noopt)
7356     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7357     ;;
7358   opt)
7359     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7360     ;;
7361   no)
7362     # a.k.a. --disable-coverage
7363     coverage_flags=""
7364     ;;
7365   *)
7366     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7367     ;;
7368 esac
7369 else
7370   coverage_flags=""
7371 fi
7372
7373
7374
7375 # Check whether --enable-gather-detailed-mem-stats was given.
7376 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7377   enableval=$enable_gather_detailed_mem_stats;
7378 else
7379   enable_gather_detailed_mem_stats=no
7380 fi
7381
7382 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7383
7384 cat >>confdefs.h <<_ACEOF
7385 #define GATHER_STATISTICS $gather_stats
7386 _ACEOF
7387
7388
7389 # Check whether --enable-valgrind-annotations was given.
7390 if test "${enable_valgrind_annotations+set}" = set; then :
7391   enableval=$enable_valgrind_annotations;
7392 else
7393   enable_valgrind_annotations=no
7394 fi
7395
7396 if test x$enable_valgrind_annotations != xno \
7397     || test x$ac_valgrind_checking != x; then
7398   if (test $have_valgrind_h = no \
7399       && test $gcc_cv_header_memcheck_h = no \
7400       && test $gcc_cv_header_valgrind_memcheck_h = no); then
7401     as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7402   fi
7403
7404 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7405
7406 fi
7407
7408 # -------------------------------
7409 # Miscenalleous configure options
7410 # -------------------------------
7411
7412 # With stabs
7413
7414 # Check whether --with-stabs was given.
7415 if test "${with_stabs+set}" = set; then :
7416   withval=$with_stabs; stabs="$with_stabs"
7417 else
7418   stabs=no
7419 fi
7420
7421
7422 # Determine whether or not multilibs are enabled.
7423 # Check whether --enable-multilib was given.
7424 if test "${enable_multilib+set}" = set; then :
7425   enableval=$enable_multilib;
7426 else
7427   enable_multilib=yes
7428 fi
7429
7430
7431
7432 # Determine whether or not multiarch is enabled.
7433 # Check whether --enable-multiarch was given.
7434 if test "${enable_multiarch+set}" = set; then :
7435   enableval=$enable_multiarch; case "${enableval}" in
7436 yes|no|auto) enable_multiarch=$enableval;;
7437 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7438 esac
7439 else
7440   enable_multiarch=auto
7441 fi
7442
7443 if test x${enable_multiarch} = xauto; then
7444   if test x${with_native_system_header_dir} != x; then
7445     ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7446     enable_multiarch=no
7447   fi
7448   if test x$host != x$target && test "x$with_sysroot" = x; then
7449     ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7450     enable_multiarch=no
7451   fi
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7454 $as_echo_n "checking for multiarch configuration... " >&6; }
7455
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7457 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7458
7459 # needed for setting the multiarch name for soft-float/hard-float ABIs
7460
7461
7462
7463 # Enable __cxa_atexit for C++.
7464 # Check whether --enable-__cxa_atexit was given.
7465 if test "${enable___cxa_atexit+set}" = set; then :
7466   enableval=$enable___cxa_atexit;
7467 fi
7468
7469
7470 # Enable C extension for decimal float if target supports it.
7471
7472 # Check whether --enable-decimal-float was given.
7473 if test "${enable_decimal_float+set}" = set; then :
7474   enableval=$enable_decimal_float;
7475   case $enable_decimal_float in
7476     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7477     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7478 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7479   esac
7480
7481 else
7482
7483   case $target in
7484     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7485     i?86*-*-elfiamcu | i?86*-*-gnu* | \
7486     i?86*-*-mingw* | x86_64*-*-mingw* | \
7487     i?86*-*-cygwin* | x86_64*-*-cygwin*)
7488       enable_decimal_float=yes
7489       ;;
7490     *)
7491       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7492 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7493       enable_decimal_float=no
7494       ;;
7495   esac
7496
7497 fi
7498
7499
7500 # x86's use BID format instead of DPD
7501 case x$enable_decimal_float in
7502   xyes)
7503     case $target in
7504       i?86*-*-* | x86_64*-*-*)
7505         enable_decimal_float=bid
7506         ;;
7507       *)
7508         enable_decimal_float=dpd
7509         ;;
7510     esac
7511     default_decimal_float=$enable_decimal_float
7512     ;;
7513   xno)
7514     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7515     # dependency on libdecnumber.
7516     default_decimal_float=dpd
7517     ;;
7518 esac
7519
7520
7521
7522
7523 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7524
7525 cat >>confdefs.h <<_ACEOF
7526 #define ENABLE_DECIMAL_FLOAT $dfp
7527 _ACEOF
7528
7529
7530 # Use default_decimal_float for dependency.
7531 enable_decimal_float=$default_decimal_float
7532
7533 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7534
7535 cat >>confdefs.h <<_ACEOF
7536 #define ENABLE_DECIMAL_BID_FORMAT $bid
7537 _ACEOF
7538
7539
7540 # Enable C extension for fixed-point arithmetic.
7541 # Check whether --enable-fixed-point was given.
7542 if test "${enable_fixed_point+set}" = set; then :
7543   enableval=$enable_fixed_point;
7544 else
7545
7546   case $target in
7547     arm*)
7548       enable_fixed_point=yes
7549       ;;
7550
7551     mips*-*-*)
7552       enable_fixed_point=yes
7553       ;;
7554     *)
7555       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7556 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7557       enable_fixed_point=no
7558       ;;
7559   esac
7560
7561 fi
7562
7563
7564
7565 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7566
7567 cat >>confdefs.h <<_ACEOF
7568 #define ENABLE_FIXED_POINT $fixedpoint
7569 _ACEOF
7570
7571
7572 # Enable threads
7573 # Pass with no value to take the default
7574 # Pass with a value to specify a thread package
7575 # Check whether --enable-threads was given.
7576 if test "${enable_threads+set}" = set; then :
7577   enableval=$enable_threads;
7578 else
7579   enable_threads=''
7580 fi
7581
7582
7583 # Check whether --enable-tls was given.
7584 if test "${enable_tls+set}" = set; then :
7585   enableval=$enable_tls;
7586   case $enable_tls in
7587     yes | no) ;;
7588     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7589 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7590   esac
7591
7592 else
7593   enable_tls=''
7594 fi
7595
7596
7597 # Check whether --enable-objc-gc was given.
7598 if test "${enable_objc_gc+set}" = set; then :
7599   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7600         objc_boehm_gc=''
7601 else
7602         objc_boehm_gc=1
7603 fi
7604 else
7605   objc_boehm_gc=''
7606 fi
7607
7608
7609
7610 # Check whether --with-dwarf2 was given.
7611 if test "${with_dwarf2+set}" = set; then :
7612   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7613 else
7614   dwarf2=no
7615 fi
7616
7617
7618 # Check whether --enable-shared was given.
7619 if test "${enable_shared+set}" = set; then :
7620   enableval=$enable_shared;
7621   case $enable_shared in
7622   yes | no) ;;
7623   *)
7624     enable_shared=no
7625     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7626     for pkg in $enableval; do
7627       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7628         enable_shared=yes
7629       fi
7630     done
7631     IFS="$ac_save_ifs"
7632     ;;
7633   esac
7634
7635 else
7636   enable_shared=yes
7637 fi
7638
7639
7640
7641
7642 # Check whether --with-specs was given.
7643 if test "${with_specs+set}" = set; then :
7644   withval=$with_specs; CONFIGURE_SPECS=$withval
7645 else
7646   CONFIGURE_SPECS=
7647
7648 fi
7649
7650
7651
7652
7653
7654 # Check whether --with-pkgversion was given.
7655 if test "${with_pkgversion+set}" = set; then :
7656   withval=$with_pkgversion; case "$withval" in
7657       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7658       no)  PKGVERSION= ;;
7659       *)   PKGVERSION="($withval) " ;;
7660      esac
7661 else
7662   PKGVERSION="(Linaro GCC `cat $srcdir/LINARO-VERSION`) "
7663
7664 fi
7665
7666
7667
7668
7669
7670 # Check whether --with-bugurl was given.
7671 if test "${with_bugurl+set}" = set; then :
7672   withval=$with_bugurl; case "$withval" in
7673       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7674       no)  BUGURL=
7675            ;;
7676       *)   BUGURL="$withval"
7677            ;;
7678      esac
7679 else
7680   BUGURL="http://gcc.gnu.org/bugs.html"
7681
7682 fi
7683
7684   case ${BUGURL} in
7685   "")
7686     REPORT_BUGS_TO=
7687     REPORT_BUGS_TEXI=
7688     ;;
7689   *)
7690     REPORT_BUGS_TO="<$BUGURL>"
7691     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7692     ;;
7693   esac;
7694
7695
7696
7697
7698 # Sanity check enable_languages in case someone does not run the toplevel
7699 # configure # script.
7700 # Check whether --enable-languages was given.
7701 if test "${enable_languages+set}" = set; then :
7702   enableval=$enable_languages; case ,${enable_languages}, in
7703        ,,|,yes,)
7704                 # go safe -- we cannot be much sure without the toplevel
7705                 # configure's
7706                 # analysis of which target libs are present and usable
7707                 enable_languages=c
7708                 ;;
7709          *,all,*)
7710                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7711                 ;;
7712         *,c,*)
7713                 ;;
7714         *)
7715                 enable_languages=c,${enable_languages}
7716                 ;;
7717 esac
7718 else
7719   enable_languages=c
7720 fi
7721
7722
7723 if test x"$enable_as_accelerator_for" != x; then
7724
7725 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7726
7727   enable_as_accelerator=yes
7728   case "${target}" in
7729     *-intelmicemul-*)
7730       # In this case we expect offload compiler to be built as native, so we
7731       # need to rename the driver to avoid clashes with host's drivers.
7732       program_transform_name="s&^&${target}-&" ;;
7733   esac
7734   sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7735   program_transform_name=`echo $program_transform_name | sed $sedscript`
7736   accel_dir_suffix=/accel/${target_noncanonical}
7737   real_target_noncanonical=${enable_as_accelerator_for}
7738 fi
7739
7740
7741
7742
7743 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7744   tgt=`echo $tgt | sed 's/=.*//'`
7745
7746   if echo "$tgt" | grep "^hsa" > /dev/null ; then
7747     enable_hsa=1
7748   else
7749     enable_offloading=1
7750   fi
7751
7752   if test x"$offload_targets" = x; then
7753     offload_targets=$tgt
7754   else
7755     offload_targets="$offload_targets,$tgt"
7756   fi
7757 done
7758
7759 cat >>confdefs.h <<_ACEOF
7760 #define OFFLOAD_TARGETS "$offload_targets"
7761 _ACEOF
7762
7763 if test x"$enable_offloading" != x; then
7764
7765 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7766
7767 else
7768
7769 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7770
7771 fi
7772
7773 if test x"$enable_hsa" = x1 ; then
7774
7775 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7776
7777 fi
7778
7779
7780 # Check whether --with-multilib-list was given.
7781 if test "${with_multilib_list+set}" = set; then :
7782   withval=$with_multilib_list; :
7783 else
7784   with_multilib_list=default
7785 fi
7786
7787
7788 # -------------------------
7789 # Checks for other programs
7790 # -------------------------
7791
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7793 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7794 set x ${MAKE-make}
7795 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7796 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799   cat >conftest.make <<\_ACEOF
7800 SHELL = /bin/sh
7801 all:
7802         @echo '@@@%%%=$(MAKE)=@@@%%%'
7803 _ACEOF
7804 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7805 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7806   *@@@%%%=?*=@@@%%%*)
7807     eval ac_cv_prog_make_${ac_make}_set=yes;;
7808   *)
7809     eval ac_cv_prog_make_${ac_make}_set=no;;
7810 esac
7811 rm -f conftest.make
7812 fi
7813 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7815 $as_echo "yes" >&6; }
7816   SET_MAKE=
7817 else
7818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7820   SET_MAKE="MAKE=${MAKE-make}"
7821 fi
7822
7823
7824 # Find some useful tools
7825 for ac_prog in gawk mawk nawk awk
7826 do
7827   # Extract the first word of "$ac_prog", so it can be a program name with args.
7828 set dummy $ac_prog; ac_word=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if test "${ac_cv_prog_AWK+set}" = set; then :
7832   $as_echo_n "(cached) " >&6
7833 else
7834   if test -n "$AWK"; then
7835   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7836 else
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7839 do
7840   IFS=$as_save_IFS
7841   test -z "$as_dir" && as_dir=.
7842     for ac_exec_ext in '' $ac_executable_extensions; do
7843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844     ac_cv_prog_AWK="$ac_prog"
7845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846     break 2
7847   fi
7848 done
7849   done
7850 IFS=$as_save_IFS
7851
7852 fi
7853 fi
7854 AWK=$ac_cv_prog_AWK
7855 if test -n "$AWK"; then
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7857 $as_echo "$AWK" >&6; }
7858 else
7859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 fi
7862
7863
7864   test -n "$AWK" && break
7865 done
7866
7867 # We need awk to create options.c and options.h.
7868 # Bail out if it's missing.
7869 case ${AWK} in
7870   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7871 esac
7872
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7874 $as_echo_n "checking whether ln -s works... " >&6; }
7875 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7876   $as_echo_n "(cached) " >&6
7877 else
7878   rm -f conftestdata_t
7879 echo >conftestdata_f
7880 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7881 then
7882   gcc_cv_prog_LN_S="ln -s"
7883 else
7884   if ln conftestdata_f conftestdata_t 2>/dev/null
7885   then
7886     gcc_cv_prog_LN_S=ln
7887   else
7888     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7889     then
7890       gcc_cv_prog_LN_S="cp -p"
7891     else
7892       gcc_cv_prog_LN_S=cp
7893     fi
7894   fi
7895 fi
7896 rm -f conftestdata_f conftestdata_t
7897
7898 fi
7899 LN_S="$gcc_cv_prog_LN_S"
7900 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902 $as_echo "yes" >&6; }
7903 else
7904   if test "$gcc_cv_prog_LN_S" = "ln"; then
7905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7906 $as_echo "no, using ln" >&6; }
7907   else
7908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7909 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7910   fi
7911 fi
7912
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7914 $as_echo_n "checking whether ln works... " >&6; }
7915 if test "${acx_cv_prog_LN+set}" = set; then :
7916   $as_echo_n "(cached) " >&6
7917 else
7918   rm -f conftestdata_t
7919 echo >conftestdata_f
7920 if ln conftestdata_f conftestdata_t 2>/dev/null
7921 then
7922   acx_cv_prog_LN=ln
7923 else
7924   acx_cv_prog_LN=no
7925 fi
7926 rm -f conftestdata_f conftestdata_t
7927
7928 fi
7929 if test $acx_cv_prog_LN = no; then
7930   LN="$LN_S"
7931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7932 $as_echo "no, using $LN" >&6; }
7933 else
7934   LN="$acx_cv_prog_LN"
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7936 $as_echo "yes" >&6; }
7937 fi
7938
7939 if test -n "$ac_tool_prefix"; then
7940   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7941 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7945   $as_echo_n "(cached) " >&6
7946 else
7947   if test -n "$RANLIB"; then
7948   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953   IFS=$as_save_IFS
7954   test -z "$as_dir" && as_dir=.
7955     for ac_exec_ext in '' $ac_executable_extensions; do
7956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7957     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959     break 2
7960   fi
7961 done
7962   done
7963 IFS=$as_save_IFS
7964
7965 fi
7966 fi
7967 RANLIB=$ac_cv_prog_RANLIB
7968 if test -n "$RANLIB"; then
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7970 $as_echo "$RANLIB" >&6; }
7971 else
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7974 fi
7975
7976
7977 fi
7978 if test -z "$ac_cv_prog_RANLIB"; then
7979   ac_ct_RANLIB=$RANLIB
7980   # Extract the first word of "ranlib", so it can be a program name with args.
7981 set dummy ranlib; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7985   $as_echo_n "(cached) " >&6
7986 else
7987   if test -n "$ac_ct_RANLIB"; then
7988   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993   IFS=$as_save_IFS
7994   test -z "$as_dir" && as_dir=.
7995     for ac_exec_ext in '' $ac_executable_extensions; do
7996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997     ac_cv_prog_ac_ct_RANLIB="ranlib"
7998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999     break 2
8000   fi
8001 done
8002   done
8003 IFS=$as_save_IFS
8004
8005 fi
8006 fi
8007 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8008 if test -n "$ac_ct_RANLIB"; then
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8010 $as_echo "$ac_ct_RANLIB" >&6; }
8011 else
8012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 fi
8015
8016   if test "x$ac_ct_RANLIB" = x; then
8017     RANLIB=":"
8018   else
8019     case $cross_compiling:$ac_tool_warned in
8020 yes:)
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023 ac_tool_warned=yes ;;
8024 esac
8025     RANLIB=$ac_ct_RANLIB
8026   fi
8027 else
8028   RANLIB="$ac_cv_prog_RANLIB"
8029 fi
8030
8031 ranlib_flags=""
8032
8033
8034 # Find a good install program.  We prefer a C program (faster),
8035 # so one script is as good as another.  But avoid the broken or
8036 # incompatible versions:
8037 # SysV /etc/install, /usr/sbin/install
8038 # SunOS /usr/etc/install
8039 # IRIX /sbin/install
8040 # AIX /bin/install
8041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8043 # ./install, which can be erroneously created by make from ./install.sh.
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8045 $as_echo_n "checking for a BSD compatible install... " >&6; }
8046 if test -z "$INSTALL"; then
8047 if test "${ac_cv_path_install+set}" = set; then :
8048   $as_echo_n "(cached) " >&6
8049 else
8050     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8051   for ac_dir in $PATH; do
8052     # Account for people who put trailing slashes in PATH elements.
8053     case "$ac_dir/" in
8054     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8055     *)
8056       # OSF1 and SCO ODT 3.0 have their own names for install.
8057       for ac_prog in ginstall scoinst install; do
8058         if test -f $ac_dir/$ac_prog; then
8059           if test $ac_prog = install &&
8060             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8061             # AIX install.  It has an incompatible calling convention.
8062             # OSF/1 installbsd also uses dspmsg, but is usable.
8063             :
8064           else
8065             ac_cv_path_install="$ac_dir/$ac_prog -c"
8066             break 2
8067           fi
8068         fi
8069       done
8070       ;;
8071     esac
8072   done
8073   IFS="$ac_save_IFS"
8074
8075 fi
8076   if test "${ac_cv_path_install+set}" = set; then
8077     INSTALL="$ac_cv_path_install"
8078   else
8079     # As a last resort, use the slow shell script.  We don't cache a
8080     # path for INSTALL within a source directory, because that will
8081     # break other packages using the cache if that directory is
8082     # removed, or if the path is relative.
8083     INSTALL="$ac_install_sh"
8084   fi
8085 fi
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8087 $as_echo "$INSTALL" >&6; }
8088
8089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8090 # It thinks the first close brace ends the variable substitution.
8091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8092
8093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8094
8095
8096 # See if cmp has --ignore-initial.
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8098 $as_echo_n "checking for cmp's capabilities... " >&6; }
8099 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8100   $as_echo_n "(cached) " >&6
8101 else
8102    echo abfoo >t1
8103   echo cdfoo >t2
8104   gcc_cv_prog_cmp_skip=slowcompare
8105   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8106     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8107       :
8108     else
8109       gcc_cv_prog_cmp_skip=gnucompare
8110     fi
8111   fi
8112   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8113     if cmp t1 t2 2 2 > /dev/null 2>&1; then
8114       if cmp t1 t2 1 1 > /dev/null 2>&1; then
8115         :
8116       else
8117         gcc_cv_prog_cmp_skip=fastcompare
8118       fi
8119     fi
8120   fi
8121   rm t1 t2
8122
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8125 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8126 make_compare_target=$gcc_cv_prog_cmp_skip
8127
8128
8129
8130 # See if we have the mktemp command.
8131 # Extract the first word of "mktemp", so it can be a program name with args.
8132 set dummy mktemp; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138   if test -n "$have_mktemp_command"; then
8139   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144   IFS=$as_save_IFS
8145   test -z "$as_dir" && as_dir=.
8146     for ac_exec_ext in '' $ac_executable_extensions; do
8147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148     ac_cv_prog_have_mktemp_command="yes"
8149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150     break 2
8151   fi
8152 done
8153   done
8154 IFS=$as_save_IFS
8155
8156   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8157 fi
8158 fi
8159 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8160 if test -n "$have_mktemp_command"; then
8161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8162 $as_echo "$have_mktemp_command" >&6; }
8163 else
8164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8166 fi
8167
8168
8169
8170 # See if makeinfo has been installed and is modern enough
8171 # that we can use it.
8172
8173   # Extract the first word of "makeinfo", so it can be a program name with args.
8174 set dummy makeinfo; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8178   $as_echo_n "(cached) " >&6
8179 else
8180   if test -n "$MAKEINFO"; then
8181   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8182 else
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8185 do
8186   IFS=$as_save_IFS
8187   test -z "$as_dir" && as_dir=.
8188     for ac_exec_ext in '' $ac_executable_extensions; do
8189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190     ac_cv_prog_MAKEINFO="makeinfo"
8191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192     break 2
8193   fi
8194 done
8195   done
8196 IFS=$as_save_IFS
8197
8198 fi
8199 fi
8200 MAKEINFO=$ac_cv_prog_MAKEINFO
8201 if test -n "$MAKEINFO"; then
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8203 $as_echo "$MAKEINFO" >&6; }
8204 else
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8207 fi
8208
8209
8210   if test -n "$MAKEINFO"; then
8211     # Found it, now check the version.
8212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8213 $as_echo_n "checking for modern makeinfo... " >&6; }
8214 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8215   $as_echo_n "(cached) " >&6
8216 else
8217   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8218                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8219
8220                     case $ac_prog_version in
8221                       '')  gcc_cv_prog_makeinfo_modern=no;;
8222                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8223                       *)   gcc_cv_prog_makeinfo_modern=no;;
8224                     esac
8225
8226 fi
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8228 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8229   else
8230     gcc_cv_prog_makeinfo_modern=no
8231   fi
8232   if test $gcc_cv_prog_makeinfo_modern = no; then
8233     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8234   fi
8235
8236 if test $gcc_cv_prog_makeinfo_modern = no; then
8237   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8238 *** Makeinfo is missing or too old.
8239 *** Info documentation will not be built." >&5
8240 $as_echo "$as_me: WARNING:
8241 *** Makeinfo is missing or too old.
8242 *** Info documentation will not be built." >&2;}
8243   BUILD_INFO=
8244 else
8245   BUILD_INFO=info
8246 fi
8247
8248
8249 # Is pod2man recent enough to regenerate manpages?
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8251 $as_echo_n "checking for recent Pod::Man... " >&6; }
8252 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8254 $as_echo "yes" >&6; }
8255   GENERATED_MANPAGES=generated-manpages
8256 else
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8259   GENERATED_MANPAGES=
8260 fi
8261
8262
8263 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8264
8265 # How about lex?
8266 for ac_prog in flex
8267 do
8268   # Extract the first word of "$ac_prog", so it can be a program name with args.
8269 set dummy $ac_prog; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if test "${ac_cv_prog_FLEX+set}" = set; then :
8273   $as_echo_n "(cached) " >&6
8274 else
8275   if test -n "$FLEX"; then
8276   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281   IFS=$as_save_IFS
8282   test -z "$as_dir" && as_dir=.
8283     for ac_exec_ext in '' $ac_executable_extensions; do
8284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285     ac_cv_prog_FLEX="$ac_prog"
8286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287     break 2
8288   fi
8289 done
8290   done
8291 IFS=$as_save_IFS
8292
8293 fi
8294 fi
8295 FLEX=$ac_cv_prog_FLEX
8296 if test -n "$FLEX"; then
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8298 $as_echo "$FLEX" >&6; }
8299 else
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8302 fi
8303
8304
8305   test -n "$FLEX" && break
8306 done
8307 test -n "$FLEX" || FLEX="$MISSING flex"
8308
8309
8310 # Bison?
8311 for ac_prog in bison
8312 do
8313   # Extract the first word of "$ac_prog", so it can be a program name with args.
8314 set dummy $ac_prog; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if test "${ac_cv_prog_BISON+set}" = set; then :
8318   $as_echo_n "(cached) " >&6
8319 else
8320   if test -n "$BISON"; then
8321   ac_cv_prog_BISON="$BISON" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8325 do
8326   IFS=$as_save_IFS
8327   test -z "$as_dir" && as_dir=.
8328     for ac_exec_ext in '' $ac_executable_extensions; do
8329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8330     ac_cv_prog_BISON="$ac_prog"
8331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332     break 2
8333   fi
8334 done
8335   done
8336 IFS=$as_save_IFS
8337
8338 fi
8339 fi
8340 BISON=$ac_cv_prog_BISON
8341 if test -n "$BISON"; then
8342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8343 $as_echo "$BISON" >&6; }
8344 else
8345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8347 fi
8348
8349
8350   test -n "$BISON" && break
8351 done
8352 test -n "$BISON" || BISON="$MISSING bison"
8353
8354
8355 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8356 # check for build == host before using them.
8357
8358 # NM
8359 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8360   && test -d ../binutils ; then
8361   NM='${objdir}/../binutils/nm-new'
8362 else
8363   # Extract the first word of "nm", so it can be a program name with args.
8364 set dummy nm; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if test "${ac_cv_prog_NM+set}" = set; then :
8368   $as_echo_n "(cached) " >&6
8369 else
8370   if test -n "$NM"; then
8371   ac_cv_prog_NM="$NM" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376   IFS=$as_save_IFS
8377   test -z "$as_dir" && as_dir=.
8378     for ac_exec_ext in '' $ac_executable_extensions; do
8379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8380     ac_cv_prog_NM="nm"
8381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382     break 2
8383   fi
8384 done
8385   done
8386 IFS=$as_save_IFS
8387
8388   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8389 fi
8390 fi
8391 NM=$ac_cv_prog_NM
8392 if test -n "$NM"; then
8393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8394 $as_echo "$NM" >&6; }
8395 else
8396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8398 fi
8399
8400
8401 fi
8402
8403 # AR
8404 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8405   && test -d ../binutils ; then
8406   AR='${objdir}/../binutils/ar'
8407 else
8408   # Extract the first word of "ar", so it can be a program name with args.
8409 set dummy ar; ac_word=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if test "${ac_cv_prog_AR+set}" = set; then :
8413   $as_echo_n "(cached) " >&6
8414 else
8415   if test -n "$AR"; then
8416   ac_cv_prog_AR="$AR" # Let the user override the test.
8417 else
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8420 do
8421   IFS=$as_save_IFS
8422   test -z "$as_dir" && as_dir=.
8423     for ac_exec_ext in '' $ac_executable_extensions; do
8424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8425     ac_cv_prog_AR="ar"
8426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427     break 2
8428   fi
8429 done
8430   done
8431 IFS=$as_save_IFS
8432
8433   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8434 fi
8435 fi
8436 AR=$ac_cv_prog_AR
8437 if test -n "$AR"; then
8438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8439 $as_echo "$AR" >&6; }
8440 else
8441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8443 fi
8444
8445
8446 fi
8447
8448 # The jit documentation looks better if built with sphinx, but can be
8449 # built with texinfo if sphinx is not available.
8450 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8451 # Extract the first word of "sphinx-build", so it can be a program name with args.
8452 set dummy sphinx-build; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8456   $as_echo_n "(cached) " >&6
8457 else
8458   if test -n "$doc_build_sys"; then
8459   ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8460 else
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8463 do
8464   IFS=$as_save_IFS
8465   test -z "$as_dir" && as_dir=.
8466     for ac_exec_ext in '' $ac_executable_extensions; do
8467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468     ac_cv_prog_doc_build_sys="sphinx"
8469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470     break 2
8471   fi
8472 done
8473   done
8474 IFS=$as_save_IFS
8475
8476   test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8477 fi
8478 fi
8479 doc_build_sys=$ac_cv_prog_doc_build_sys
8480 if test -n "$doc_build_sys"; then
8481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8482 $as_echo "$doc_build_sys" >&6; }
8483 else
8484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8486 fi
8487
8488
8489
8490 # --------------------
8491 # Checks for C headers
8492 # --------------------
8493
8494 # Need to reject headers which give warnings, so that the -Werror bootstrap
8495 # works later. *sigh*  This needs to come before all header checks.
8496
8497 ac_c_preproc_warn_flag=yes
8498
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8500 $as_echo_n "checking for ANSI C header files... " >&6; }
8501 if test "${ac_cv_header_stdc+set}" = set; then :
8502   $as_echo_n "(cached) " >&6
8503 else
8504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h.  */
8506 #include <stdlib.h>
8507 #include <stdarg.h>
8508 #include <string.h>
8509 #include <float.h>
8510
8511 int
8512 main ()
8513 {
8514
8515   ;
8516   return 0;
8517 }
8518 _ACEOF
8519 if ac_fn_cxx_try_compile "$LINENO"; then :
8520   ac_cv_header_stdc=yes
8521 else
8522   ac_cv_header_stdc=no
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525
8526 if test $ac_cv_header_stdc = yes; then
8527   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h.  */
8530 #include <string.h>
8531
8532 _ACEOF
8533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8534   $EGREP "memchr" >/dev/null 2>&1; then :
8535
8536 else
8537   ac_cv_header_stdc=no
8538 fi
8539 rm -f conftest*
8540
8541 fi
8542
8543 if test $ac_cv_header_stdc = yes; then
8544   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h.  */
8547 #include <stdlib.h>
8548
8549 _ACEOF
8550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8551   $EGREP "free" >/dev/null 2>&1; then :
8552
8553 else
8554   ac_cv_header_stdc=no
8555 fi
8556 rm -f conftest*
8557
8558 fi
8559
8560 if test $ac_cv_header_stdc = yes; then
8561   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8562   if test "$cross_compiling" = yes; then :
8563   :
8564 else
8565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h.  */
8567 #include <ctype.h>
8568 #include <stdlib.h>
8569 #if ((' ' & 0x0FF) == 0x020)
8570 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8571 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8572 #else
8573 # define ISLOWER(c) \
8574                    (('a' <= (c) && (c) <= 'i') \
8575                      || ('j' <= (c) && (c) <= 'r') \
8576                      || ('s' <= (c) && (c) <= 'z'))
8577 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8578 #endif
8579
8580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8581 int
8582 main ()
8583 {
8584   int i;
8585   for (i = 0; i < 256; i++)
8586     if (XOR (islower (i), ISLOWER (i))
8587         || toupper (i) != TOUPPER (i))
8588       return 2;
8589   return 0;
8590 }
8591 _ACEOF
8592 if ac_fn_cxx_try_run "$LINENO"; then :
8593
8594 else
8595   ac_cv_header_stdc=no
8596 fi
8597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8598   conftest.$ac_objext conftest.beam conftest.$ac_ext
8599 fi
8600
8601 fi
8602 fi
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8604 $as_echo "$ac_cv_header_stdc" >&6; }
8605 if test $ac_cv_header_stdc = yes; then
8606
8607 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8608
8609 fi
8610
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8612 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8613 if test "${ac_cv_header_time+set}" = set; then :
8614   $as_echo_n "(cached) " >&6
8615 else
8616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h.  */
8618 #include <sys/types.h>
8619 #include <sys/time.h>
8620 #include <time.h>
8621
8622 int
8623 main ()
8624 {
8625 if ((struct tm *) 0)
8626 return 0;
8627   ;
8628   return 0;
8629 }
8630 _ACEOF
8631 if ac_fn_cxx_try_compile "$LINENO"; then :
8632   ac_cv_header_time=yes
8633 else
8634   ac_cv_header_time=no
8635 fi
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 fi
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8639 $as_echo "$ac_cv_header_time" >&6; }
8640 if test $ac_cv_header_time = yes; then
8641
8642 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8643
8644 fi
8645
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8647 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8648 if test "${gcc_cv_header_string+set}" = set; then :
8649   $as_echo_n "(cached) " >&6
8650 else
8651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h.  */
8653 #include <string.h>
8654 #include <strings.h>
8655 int
8656 main ()
8657 {
8658
8659   ;
8660   return 0;
8661 }
8662 _ACEOF
8663 if ac_fn_cxx_try_compile "$LINENO"; then :
8664   gcc_cv_header_string=yes
8665 else
8666   gcc_cv_header_string=no
8667 fi
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 fi
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8671 $as_echo "$gcc_cv_header_string" >&6; }
8672 if test $gcc_cv_header_string = yes; then
8673
8674 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8675
8676 fi
8677
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8679 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8680 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8681   $as_echo_n "(cached) " >&6
8682 else
8683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h.  */
8685 #include <sys/types.h>
8686 #include <sys/wait.h>
8687 #ifndef WEXITSTATUS
8688 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8689 #endif
8690 #ifndef WIFEXITED
8691 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8692 #endif
8693
8694 int
8695 main ()
8696 {
8697   int s;
8698   wait (&s);
8699   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8700   ;
8701   return 0;
8702 }
8703 _ACEOF
8704 if ac_fn_cxx_try_compile "$LINENO"; then :
8705   ac_cv_header_sys_wait_h=yes
8706 else
8707   ac_cv_header_sys_wait_h=no
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 fi
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8712 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8713 if test $ac_cv_header_sys_wait_h = yes; then
8714
8715 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8716
8717 fi
8718
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8720 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8721 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8722   $as_echo_n "(cached) " >&6
8723 else
8724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h.  */
8726 #include <sys/types.h>
8727 #include <termios.h>
8728 #ifdef TIOCGWINSZ
8729   yes
8730 #endif
8731
8732 _ACEOF
8733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8734   $EGREP "yes" >/dev/null 2>&1; then :
8735   ac_cv_sys_tiocgwinsz_in_termios_h=yes
8736 else
8737   ac_cv_sys_tiocgwinsz_in_termios_h=no
8738 fi
8739 rm -f conftest*
8740
8741 fi
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8743 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8744
8745 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8747 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8748 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8749   $as_echo_n "(cached) " >&6
8750 else
8751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h.  */
8753 #include <sys/types.h>
8754 #include <sys/ioctl.h>
8755 #ifdef TIOCGWINSZ
8756   yes
8757 #endif
8758
8759 _ACEOF
8760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8761   $EGREP "yes" >/dev/null 2>&1; then :
8762   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8763 else
8764   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8765 fi
8766 rm -f conftest*
8767
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8770 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8771
8772   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8773
8774 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8775
8776   fi
8777 fi
8778
8779 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8780                  fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8781                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8782                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8783 do :
8784   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8785 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8786 eval as_val=\$$as_ac_Header
8787    if test "x$as_val" = x""yes; then :
8788   cat >>confdefs.h <<_ACEOF
8789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8790 _ACEOF
8791
8792 fi
8793 done
8794
8795
8796 # Check for thread headers.
8797 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8798 if test "x$ac_cv_header_thread_h" = x""yes; then :
8799   have_thread_h=yes
8800 else
8801   have_thread_h=
8802 fi
8803
8804 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8805 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8806   have_pthread_h=yes
8807 else
8808   have_pthread_h=
8809 fi
8810
8811
8812 # These tests can't be done till we know if we have limits.h.
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8814 $as_echo_n "checking for CHAR_BIT... " >&6; }
8815 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8816   $as_echo_n "(cached) " >&6
8817 else
8818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h.  */
8820 #ifdef HAVE_LIMITS_H
8821 #include <limits.h>
8822 #endif
8823 #ifdef CHAR_BIT
8824 found
8825 #endif
8826 _ACEOF
8827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8828   $EGREP "found" >/dev/null 2>&1; then :
8829   gcc_cv_decl_char_bit=yes
8830 else
8831   gcc_cv_decl_char_bit=no
8832 fi
8833 rm -f conftest*
8834
8835
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8838 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8839 if test $gcc_cv_decl_char_bit = no; then
8840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8841 $as_echo_n "checking number of bits in a byte... " >&6; }
8842 if test "${gcc_cv_c_nbby+set}" = set; then :
8843   $as_echo_n "(cached) " >&6
8844 else
8845   i=8
8846  gcc_cv_c_nbby=
8847  while test $i -lt 65; do
8848    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h.  */
8850
8851 int
8852 main ()
8853 {
8854 switch(0) {
8855   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8856   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8857   ; }
8858   ;
8859   return 0;
8860 }
8861 _ACEOF
8862 if ac_fn_cxx_try_compile "$LINENO"; then :
8863   gcc_cv_c_nbby=$i; break
8864 fi
8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866    i=`expr $i + 1`
8867  done
8868  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8869
8870 fi
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8872 $as_echo "$gcc_cv_c_nbby" >&6; }
8873 if test $gcc_cv_c_nbby = failed; then
8874   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8875 else
8876
8877 cat >>confdefs.h <<_ACEOF
8878 #define CHAR_BIT $gcc_cv_c_nbby
8879 _ACEOF
8880
8881 fi
8882 fi
8883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8884 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8885 if test "${ac_cv_c_bigendian+set}" = set; then :
8886   $as_echo_n "(cached) " >&6
8887 else
8888   ac_cv_c_bigendian=unknown
8889     # See if we're dealing with a universal compiler.
8890     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h.  */
8892 #ifndef __APPLE_CC__
8893                not a universal capable compiler
8894              #endif
8895              typedef int dummy;
8896
8897 _ACEOF
8898 if ac_fn_cxx_try_compile "$LINENO"; then :
8899
8900         # Check for potential -arch flags.  It is not universal unless
8901         # there are at least two -arch flags with different values.
8902         ac_arch=
8903         ac_prev=
8904         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8905          if test -n "$ac_prev"; then
8906            case $ac_word in
8907              i?86 | x86_64 | ppc | ppc64)
8908                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8909                  ac_arch=$ac_word
8910                else
8911                  ac_cv_c_bigendian=universal
8912                  break
8913                fi
8914                ;;
8915            esac
8916            ac_prev=
8917          elif test "x$ac_word" = "x-arch"; then
8918            ac_prev=arch
8919          fi
8920        done
8921 fi
8922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8923     if test $ac_cv_c_bigendian = unknown; then
8924       # See if sys/param.h defines the BYTE_ORDER macro.
8925       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h.  */
8927 #include <sys/types.h>
8928              #include <sys/param.h>
8929
8930 int
8931 main ()
8932 {
8933 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8934                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8935                      && LITTLE_ENDIAN)
8936               bogus endian macros
8937              #endif
8938
8939   ;
8940   return 0;
8941 }
8942 _ACEOF
8943 if ac_fn_cxx_try_compile "$LINENO"; then :
8944   # It does; now see whether it defined to BIG_ENDIAN or not.
8945          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h.  */
8947 #include <sys/types.h>
8948                 #include <sys/param.h>
8949
8950 int
8951 main ()
8952 {
8953 #if BYTE_ORDER != BIG_ENDIAN
8954                  not big endian
8955                 #endif
8956
8957   ;
8958   return 0;
8959 }
8960 _ACEOF
8961 if ac_fn_cxx_try_compile "$LINENO"; then :
8962   ac_cv_c_bigendian=yes
8963 else
8964   ac_cv_c_bigendian=no
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 fi
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969     fi
8970     if test $ac_cv_c_bigendian = unknown; then
8971       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8972       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h.  */
8974 #include <limits.h>
8975
8976 int
8977 main ()
8978 {
8979 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8980               bogus endian macros
8981              #endif
8982
8983   ;
8984   return 0;
8985 }
8986 _ACEOF
8987 if ac_fn_cxx_try_compile "$LINENO"; then :
8988   # It does; now see whether it defined to _BIG_ENDIAN or not.
8989          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h.  */
8991 #include <limits.h>
8992
8993 int
8994 main ()
8995 {
8996 #ifndef _BIG_ENDIAN
8997                  not big endian
8998                 #endif
8999
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_cxx_try_compile "$LINENO"; then :
9005   ac_cv_c_bigendian=yes
9006 else
9007   ac_cv_c_bigendian=no
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010 fi
9011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012     fi
9013     if test $ac_cv_c_bigendian = unknown; then
9014       # Compile a test program.
9015       if test "$cross_compiling" = yes; then :
9016   # Try to guess by grepping values from an object file.
9017          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h.  */
9019 short int ascii_mm[] =
9020                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9021                 short int ascii_ii[] =
9022                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9023                 int use_ascii (int i) {
9024                   return ascii_mm[i] + ascii_ii[i];
9025                 }
9026                 short int ebcdic_ii[] =
9027                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9028                 short int ebcdic_mm[] =
9029                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9030                 int use_ebcdic (int i) {
9031                   return ebcdic_mm[i] + ebcdic_ii[i];
9032                 }
9033                 extern int foo;
9034
9035 int
9036 main ()
9037 {
9038 return use_ascii (foo) == use_ebcdic (foo);
9039   ;
9040   return 0;
9041 }
9042 _ACEOF
9043 if ac_fn_cxx_try_compile "$LINENO"; then :
9044   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9045               ac_cv_c_bigendian=yes
9046             fi
9047             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9048               if test "$ac_cv_c_bigendian" = unknown; then
9049                 ac_cv_c_bigendian=no
9050               else
9051                 # finding both strings is unlikely to happen, but who knows?
9052                 ac_cv_c_bigendian=unknown
9053               fi
9054             fi
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9057 else
9058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h.  */
9060 $ac_includes_default
9061 int
9062 main ()
9063 {
9064
9065              /* Are we little or big endian?  From Harbison&Steele.  */
9066              union
9067              {
9068                long int l;
9069                char c[sizeof (long int)];
9070              } u;
9071              u.l = 1;
9072              return u.c[sizeof (long int) - 1] == 1;
9073
9074   ;
9075   return 0;
9076 }
9077 _ACEOF
9078 if ac_fn_cxx_try_run "$LINENO"; then :
9079   ac_cv_c_bigendian=no
9080 else
9081   ac_cv_c_bigendian=yes
9082 fi
9083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9084   conftest.$ac_objext conftest.beam conftest.$ac_ext
9085 fi
9086
9087     fi
9088 fi
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9090 $as_echo "$ac_cv_c_bigendian" >&6; }
9091  case $ac_cv_c_bigendian in #(
9092    yes)
9093      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9094 ;; #(
9095    no)
9096       ;; #(
9097    universal)
9098
9099 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9100
9101      ;; #(
9102    *)
9103      as_fn_error "unknown endianness
9104  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9105  esac
9106
9107
9108 # ----------------------
9109 # Checks for C++ headers
9110 # ----------------------
9111
9112 ac_ext=cpp
9113 ac_cpp='$CXXCPP $CPPFLAGS'
9114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9118 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9119 if test -z "$CXXCPP"; then
9120   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9121   $as_echo_n "(cached) " >&6
9122 else
9123       # Double quotes because CXXCPP needs to be expanded
9124     for CXXCPP in "$CXX -E" "/lib/cpp"
9125     do
9126       ac_preproc_ok=false
9127 for ac_cxx_preproc_warn_flag in '' yes
9128 do
9129   # Use a header file that comes with gcc, so configuring glibc
9130   # with a fresh cross-compiler works.
9131   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9132   # <limits.h> exists even on freestanding compilers.
9133   # On the NeXT, cc -E runs the code through the compiler's parser,
9134   # not just through cpp. "Syntax error" is here to catch this case.
9135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h.  */
9137 #ifdef __STDC__
9138 # include <limits.h>
9139 #else
9140 # include <assert.h>
9141 #endif
9142                      Syntax error
9143 _ACEOF
9144 if ac_fn_cxx_try_cpp "$LINENO"; then :
9145
9146 else
9147   # Broken: fails on valid input.
9148 continue
9149 fi
9150 rm -f conftest.err conftest.$ac_ext
9151
9152   # OK, works on sane cases.  Now check whether nonexistent headers
9153   # can be detected and how.
9154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h.  */
9156 #include <ac_nonexistent.h>
9157 _ACEOF
9158 if ac_fn_cxx_try_cpp "$LINENO"; then :
9159   # Broken: success on invalid input.
9160 continue
9161 else
9162   # Passes both tests.
9163 ac_preproc_ok=:
9164 break
9165 fi
9166 rm -f conftest.err conftest.$ac_ext
9167
9168 done
9169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9170 rm -f conftest.err conftest.$ac_ext
9171 if $ac_preproc_ok; then :
9172   break
9173 fi
9174
9175     done
9176     ac_cv_prog_CXXCPP=$CXXCPP
9177
9178 fi
9179   CXXCPP=$ac_cv_prog_CXXCPP
9180 else
9181   ac_cv_prog_CXXCPP=$CXXCPP
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9184 $as_echo "$CXXCPP" >&6; }
9185 ac_preproc_ok=false
9186 for ac_cxx_preproc_warn_flag in '' yes
9187 do
9188   # Use a header file that comes with gcc, so configuring glibc
9189   # with a fresh cross-compiler works.
9190   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9191   # <limits.h> exists even on freestanding compilers.
9192   # On the NeXT, cc -E runs the code through the compiler's parser,
9193   # not just through cpp. "Syntax error" is here to catch this case.
9194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h.  */
9196 #ifdef __STDC__
9197 # include <limits.h>
9198 #else
9199 # include <assert.h>
9200 #endif
9201                      Syntax error
9202 _ACEOF
9203 if ac_fn_cxx_try_cpp "$LINENO"; then :
9204
9205 else
9206   # Broken: fails on valid input.
9207 continue
9208 fi
9209 rm -f conftest.err conftest.$ac_ext
9210
9211   # OK, works on sane cases.  Now check whether nonexistent headers
9212   # can be detected and how.
9213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h.  */
9215 #include <ac_nonexistent.h>
9216 _ACEOF
9217 if ac_fn_cxx_try_cpp "$LINENO"; then :
9218   # Broken: success on invalid input.
9219 continue
9220 else
9221   # Passes both tests.
9222 ac_preproc_ok=:
9223 break
9224 fi
9225 rm -f conftest.err conftest.$ac_ext
9226
9227 done
9228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9229 rm -f conftest.err conftest.$ac_ext
9230 if $ac_preproc_ok; then :
9231
9232 else
9233   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9236 See \`config.log' for more details." >&5
9237 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9238 See \`config.log' for more details." >&2;}; }
9239 fi
9240
9241 ac_ext=cpp
9242 ac_cpp='$CXXCPP $CPPFLAGS'
9243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9246
9247
9248 for ac_header in unordered_map
9249 do :
9250   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9251 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9252   cat >>confdefs.h <<_ACEOF
9253 #define HAVE_UNORDERED_MAP 1
9254 _ACEOF
9255
9256 fi
9257 done
9258
9259 for ac_header in tr1/unordered_map
9260 do :
9261   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9262 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9263   cat >>confdefs.h <<_ACEOF
9264 #define HAVE_TR1_UNORDERED_MAP 1
9265 _ACEOF
9266
9267 fi
9268 done
9269
9270 for ac_header in ext/hash_map
9271 do :
9272   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9273 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9274   cat >>confdefs.h <<_ACEOF
9275 #define HAVE_EXT_HASH_MAP 1
9276 _ACEOF
9277
9278 fi
9279 done
9280
9281
9282 # --------
9283 # Dependency checking.
9284 # --------
9285
9286 rm -rf .tst 2>/dev/null
9287 mkdir .tst 2>/dev/null
9288 if test -d .tst; then
9289   am__leading_dot=.
9290 else
9291   am__leading_dot=_
9292 fi
9293 rmdir .tst 2>/dev/null
9294
9295 DEPDIR="${am__leading_dot}deps"
9296
9297 ac_config_commands="$ac_config_commands depdir"
9298
9299
9300 ac_config_commands="$ac_config_commands gccdepdir"
9301
9302
9303 depcc="$CXX"  am_compiler_list=
9304
9305 am_depcomp=$ac_aux_dir/depcomp
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9307 $as_echo_n "checking dependency style of $depcc... " >&6; }
9308 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9309   $as_echo_n "(cached) " >&6
9310 else
9311   if test -f "$am_depcomp"; then
9312   # We make a subdir and do the tests there.  Otherwise we can end up
9313   # making bogus files that we don't know about and never remove.  For
9314   # instance it was reported that on HP-UX the gcc test will end up
9315   # making a dummy file named `D' -- because `-MD' means `put the output
9316   # in D'.
9317   mkdir conftest.dir
9318   # Copy depcomp to subdir because otherwise we won't find it if we're
9319   # using a relative directory.
9320   cp "$am_depcomp" conftest.dir
9321   cd conftest.dir
9322   # We will build objects and dependencies in a subdirectory because
9323   # it helps to detect inapplicable dependency modes.  For instance
9324   # both Tru64's cc and ICC support -MD to output dependencies as a
9325   # side effect of compilation, but ICC will put the dependencies in
9326   # the current directory while Tru64 will put them in the object
9327   # directory.
9328   mkdir sub
9329
9330   am_cv_CXX_dependencies_compiler_type=none
9331   if test "$am_compiler_list" = ""; then
9332      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9333   fi
9334   for depmode in $am_compiler_list; do
9335     if test $depmode = none; then break; fi
9336
9337     $as_echo "$as_me:$LINENO: trying $depmode" >&5
9338     # Setup a source with many dependencies, because some compilers
9339     # like to wrap large dependency lists on column 80 (with \), and
9340     # we should not choose a depcomp mode which is confused by this.
9341     #
9342     # We need to recreate these files for each test, as the compiler may
9343     # overwrite some of them when testing with obscure command lines.
9344     # This happens at least with the AIX C compiler.
9345     : > sub/conftest.c
9346     for i in 1 2 3 4 5 6; do
9347       echo '#include "conftst'$i'.h"' >> sub/conftest.c
9348       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9349       # Solaris 8's {/usr,}/bin/sh.
9350       touch sub/conftst$i.h
9351     done
9352     echo "include sub/conftest.Po" > confmf
9353
9354     # We check with `-c' and `-o' for the sake of the "dashmstdout"
9355     # mode.  It turns out that the SunPro C++ compiler does not properly
9356     # handle `-M -o', and we need to detect this.
9357     depcmd="depmode=$depmode \
9358        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9359        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9360        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9361     echo "| $depcmd" | sed -e 's/  */ /g' >&5
9362     if env $depcmd > conftest.err 2>&1 &&
9363        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9364        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9365        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9366       # icc doesn't choke on unknown options, it will just issue warnings
9367       # or remarks (even with -Werror).  So we grep stderr for any message
9368       # that says an option was ignored or not supported.
9369       # When given -MP, icc 7.0 and 7.1 complain thusly:
9370       #   icc: Command line warning: ignoring option '-M'; no argument required
9371       # The diagnosis changed in icc 8.0:
9372       #   icc: Command line remark: option '-MP' not supported
9373       if (grep 'ignoring option' conftest.err ||
9374           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9375         am_cv_CXX_dependencies_compiler_type=$depmode
9376         $as_echo "$as_me:$LINENO: success" >&5
9377         break
9378       fi
9379     fi
9380     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9381     sed -e 's/^/| /' < conftest.err >&5
9382   done
9383
9384   cd ..
9385   rm -rf conftest.dir
9386 else
9387   am_cv_CXX_dependencies_compiler_type=none
9388 fi
9389
9390 fi
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9392 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9393 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9394 then as_fn_error "no usable dependency style found" "$LINENO" 5
9395 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9396
9397 fi
9398
9399
9400 # --------
9401 # UNSORTED
9402 # --------
9403
9404
9405 # These libraries may be used by collect2.
9406 # We may need a special search path to get them linked.
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9408 $as_echo_n "checking for collect2 libraries... " >&6; }
9409 if test "${gcc_cv_collect2_libs+set}" = set; then :
9410   $as_echo_n "(cached) " >&6
9411 else
9412   save_LIBS="$LIBS"
9413 for libs in '' -lld -lmld \
9414                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9415                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9416 do
9417         LIBS="$libs"
9418         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419 /* end confdefs.h.  */
9420
9421 /* Override any GCC internal prototype to avoid an error.
9422    Use char because int might match the return type of a GCC
9423    builtin and then its argument prototype would still apply.  */
9424 #ifdef __cplusplus
9425 extern "C"
9426 #endif
9427 char ldopen ();
9428 int
9429 main ()
9430 {
9431 return ldopen ();
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 if ac_fn_cxx_try_link "$LINENO"; then :
9437   gcc_cv_collect2_libs="$libs"; break
9438 fi
9439 rm -f core conftest.err conftest.$ac_objext \
9440     conftest$ac_exeext conftest.$ac_ext
9441 done
9442 LIBS="$save_LIBS"
9443 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9444 fi
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9446 $as_echo "$gcc_cv_collect2_libs" >&6; }
9447 case $gcc_cv_collect2_libs in
9448         "none required")        ;;
9449         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9450 esac
9451
9452
9453 # When building Ada code on Alpha, we need exc_resume which is usually in
9454 # -lexc.  So test for it.
9455 save_LIBS="$LIBS"
9456 LIBS=
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9458 $as_echo_n "checking for library containing exc_resume... " >&6; }
9459 if test "${ac_cv_search_exc_resume+set}" = set; then :
9460   $as_echo_n "(cached) " >&6
9461 else
9462   ac_func_search_save_LIBS=$LIBS
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h.  */
9465
9466 /* Override any GCC internal prototype to avoid an error.
9467    Use char because int might match the return type of a GCC
9468    builtin and then its argument prototype would still apply.  */
9469 #ifdef __cplusplus
9470 extern "C"
9471 #endif
9472 char exc_resume ();
9473 int
9474 main ()
9475 {
9476 return exc_resume ();
9477   ;
9478   return 0;
9479 }
9480 _ACEOF
9481 for ac_lib in '' exc; do
9482   if test -z "$ac_lib"; then
9483     ac_res="none required"
9484   else
9485     ac_res=-l$ac_lib
9486     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9487   fi
9488   if ac_fn_cxx_try_link "$LINENO"; then :
9489   ac_cv_search_exc_resume=$ac_res
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext \
9492     conftest$ac_exeext
9493   if test "${ac_cv_search_exc_resume+set}" = set; then :
9494   break
9495 fi
9496 done
9497 if test "${ac_cv_search_exc_resume+set}" = set; then :
9498
9499 else
9500   ac_cv_search_exc_resume=no
9501 fi
9502 rm conftest.$ac_ext
9503 LIBS=$ac_func_search_save_LIBS
9504 fi
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9506 $as_echo "$ac_cv_search_exc_resume" >&6; }
9507 ac_res=$ac_cv_search_exc_resume
9508 if test "$ac_res" != no; then :
9509   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9510
9511 fi
9512
9513 GNAT_LIBEXC="$LIBS"
9514 LIBS="$save_LIBS"
9515
9516
9517 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9518 save_LIBS="$LIBS"
9519 LIBS=
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9521 $as_echo_n "checking for library containing kstat_open... " >&6; }
9522 if test "${ac_cv_search_kstat_open+set}" = set; then :
9523   $as_echo_n "(cached) " >&6
9524 else
9525   ac_func_search_save_LIBS=$LIBS
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h.  */
9528
9529 /* Override any GCC internal prototype to avoid an error.
9530    Use char because int might match the return type of a GCC
9531    builtin and then its argument prototype would still apply.  */
9532 #ifdef __cplusplus
9533 extern "C"
9534 #endif
9535 char kstat_open ();
9536 int
9537 main ()
9538 {
9539 return kstat_open ();
9540   ;
9541   return 0;
9542 }
9543 _ACEOF
9544 for ac_lib in '' kstat; do
9545   if test -z "$ac_lib"; then
9546     ac_res="none required"
9547   else
9548     ac_res=-l$ac_lib
9549     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9550   fi
9551   if ac_fn_cxx_try_link "$LINENO"; then :
9552   ac_cv_search_kstat_open=$ac_res
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext \
9555     conftest$ac_exeext
9556   if test "${ac_cv_search_kstat_open+set}" = set; then :
9557   break
9558 fi
9559 done
9560 if test "${ac_cv_search_kstat_open+set}" = set; then :
9561
9562 else
9563   ac_cv_search_kstat_open=no
9564 fi
9565 rm conftest.$ac_ext
9566 LIBS=$ac_func_search_save_LIBS
9567 fi
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9569 $as_echo "$ac_cv_search_kstat_open" >&6; }
9570 ac_res=$ac_cv_search_kstat_open
9571 if test "$ac_res" != no; then :
9572   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9573
9574 fi
9575
9576 EXTRA_GCC_LIBS="$LIBS"
9577 LIBS="$save_LIBS"
9578
9579
9580 # Some systems put ldexp and frexp in libm instead of libc; assume
9581 # they're both in the same place.  jcf-dump needs them.
9582 save_LIBS="$LIBS"
9583 LIBS=
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9585 $as_echo_n "checking for library containing ldexp... " >&6; }
9586 if test "${ac_cv_search_ldexp+set}" = set; then :
9587   $as_echo_n "(cached) " >&6
9588 else
9589   ac_func_search_save_LIBS=$LIBS
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h.  */
9592
9593 /* Override any GCC internal prototype to avoid an error.
9594    Use char because int might match the return type of a GCC
9595    builtin and then its argument prototype would still apply.  */
9596 #ifdef __cplusplus
9597 extern "C"
9598 #endif
9599 char ldexp ();
9600 int
9601 main ()
9602 {
9603 return ldexp ();
9604   ;
9605   return 0;
9606 }
9607 _ACEOF
9608 for ac_lib in '' m; do
9609   if test -z "$ac_lib"; then
9610     ac_res="none required"
9611   else
9612     ac_res=-l$ac_lib
9613     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9614   fi
9615   if ac_fn_cxx_try_link "$LINENO"; then :
9616   ac_cv_search_ldexp=$ac_res
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext \
9619     conftest$ac_exeext
9620   if test "${ac_cv_search_ldexp+set}" = set; then :
9621   break
9622 fi
9623 done
9624 if test "${ac_cv_search_ldexp+set}" = set; then :
9625
9626 else
9627   ac_cv_search_ldexp=no
9628 fi
9629 rm conftest.$ac_ext
9630 LIBS=$ac_func_search_save_LIBS
9631 fi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9633 $as_echo "$ac_cv_search_ldexp" >&6; }
9634 ac_res=$ac_cv_search_ldexp
9635 if test "$ac_res" != no; then :
9636   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9637
9638 fi
9639
9640 LDEXP_LIB="$LIBS"
9641 LIBS="$save_LIBS"
9642
9643
9644 # Use <inttypes.h> only if it exists,
9645 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9646 # PRId64
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9648 $as_echo_n "checking for inttypes.h... " >&6; }
9649 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9650   $as_echo_n "(cached) " >&6
9651 else
9652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h.  */
9654 #define __STDC_FORMAT_MACROS
9655 #include <sys/types.h>
9656 #include <inttypes.h>
9657 int
9658 main ()
9659 {
9660 intmax_t i = -1;
9661 #ifndef PRId64
9662 choke me
9663 #endif
9664   ;
9665   return 0;
9666 }
9667 _ACEOF
9668 if ac_fn_cxx_try_compile "$LINENO"; then :
9669   gcc_cv_header_inttypes_h=yes
9670 else
9671   gcc_cv_header_inttypes_h=no
9672 fi
9673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674 fi
9675
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9677 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9678 if test $gcc_cv_header_inttypes_h = yes; then
9679
9680 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9681
9682 fi
9683
9684
9685
9686 for ac_func in times clock kill getrlimit setrlimit atoq \
9687         popen sysconf strsignal getrusage nl_langinfo \
9688         gettimeofday mbstowcs wcswidth mmap setlocale \
9689         clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked madvise
9690 do :
9691   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9692 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9693 eval as_val=\$$as_ac_var
9694    if test "x$as_val" = x""yes; then :
9695   cat >>confdefs.h <<_ACEOF
9696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9697 _ACEOF
9698
9699 fi
9700 done
9701
9702
9703 if test x$ac_cv_func_mbstowcs = xyes; then
9704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9705 $as_echo_n "checking whether mbstowcs works... " >&6; }
9706 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9707   $as_echo_n "(cached) " >&6
9708 else
9709       if test "$cross_compiling" = yes; then :
9710   gcc_cv_func_mbstowcs_works=yes
9711 else
9712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h.  */
9714 #include <stdlib.h>
9715 int main()
9716 {
9717   mbstowcs(0, "", 0);
9718   return 0;
9719 }
9720 _ACEOF
9721 if ac_fn_cxx_try_run "$LINENO"; then :
9722   gcc_cv_func_mbstowcs_works=yes
9723 else
9724   gcc_cv_func_mbstowcs_works=no
9725 fi
9726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9727   conftest.$ac_objext conftest.beam conftest.$ac_ext
9728 fi
9729
9730 fi
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9732 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9733   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9734
9735 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9736
9737   fi
9738 fi
9739
9740 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9741 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9742
9743 else
9744
9745 cat >>confdefs.h <<_ACEOF
9746 #define ssize_t int
9747 _ACEOF
9748
9749 fi
9750
9751 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9752 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9753
9754 else
9755
9756 cat >>confdefs.h <<_ACEOF
9757 #define caddr_t char *
9758 _ACEOF
9759
9760 fi
9761
9762
9763
9764 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9765 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9766   gcc_header_sys_mman_h=yes
9767 else
9768   gcc_header_sys_mman_h=no
9769 fi
9770
9771 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9772 if test "x$ac_cv_func_mmap" = x""yes; then :
9773   gcc_func_mmap=yes
9774 else
9775   gcc_func_mmap=no
9776 fi
9777
9778 if test "$gcc_header_sys_mman_h" != yes \
9779  || test "$gcc_func_mmap" != yes; then
9780    gcc_cv_func_mmap_file=no
9781    gcc_cv_func_mmap_dev_zero=no
9782    gcc_cv_func_mmap_anon=no
9783 else
9784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9785 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9786 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9787   $as_echo_n "(cached) " >&6
9788 else
9789   # Add a system to this blacklist if
9790    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9791    # memory area containing the same data that you'd get if you applied
9792    # read() to the same fd.  The only system known to have a problem here
9793    # is VMS, where text files have record structure.
9794    case "$host_os" in
9795      *vms* | ultrix*)
9796         gcc_cv_func_mmap_file=no ;;
9797      *)
9798         gcc_cv_func_mmap_file=yes;;
9799    esac
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9802 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9804 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9805 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   # Add a system to this blacklist if it has mmap() but /dev/zero
9809    # does not exist, or if mmapping /dev/zero does not give anonymous
9810    # zeroed pages with both the following properties:
9811    # 1. If you map N consecutive pages in with one call, and then
9812    #    unmap any subset of those pages, the pages that were not
9813    #    explicitly unmapped remain accessible.
9814    # 2. If you map two adjacent blocks of memory and then unmap them
9815    #    both at once, they must both go away.
9816    # Systems known to be in this category are Windows (all variants),
9817    # VMS, and Darwin.
9818    case "$host_os" in
9819      *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9820         gcc_cv_func_mmap_dev_zero=no ;;
9821      *)
9822         gcc_cv_func_mmap_dev_zero=yes;;
9823    esac
9824 fi
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9826 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9827
9828    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9829    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9830 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9831 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9832   $as_echo_n "(cached) " >&6
9833 else
9834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h.  */
9836 #include <sys/types.h>
9837 #include <sys/mman.h>
9838 #include <unistd.h>
9839
9840 #ifndef MAP_ANONYMOUS
9841 #define MAP_ANONYMOUS MAP_ANON
9842 #endif
9843
9844 int
9845 main ()
9846 {
9847 int n = MAP_ANONYMOUS;
9848   ;
9849   return 0;
9850 }
9851 _ACEOF
9852 if ac_fn_cxx_try_compile "$LINENO"; then :
9853   gcc_cv_decl_map_anon=yes
9854 else
9855   gcc_cv_decl_map_anon=no
9856 fi
9857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9858 fi
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9860 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9861
9862    if test $gcc_cv_decl_map_anon = no; then
9863      gcc_cv_func_mmap_anon=no
9864    else
9865      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9866 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9867 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9868   $as_echo_n "(cached) " >&6
9869 else
9870   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9871    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9872    # doesn't give anonymous zeroed pages with the same properties listed
9873    # above for use of /dev/zero.
9874    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9875    case "$host_os" in
9876      *vms* | cygwin* | pe | mingw* | sco* | udk* )
9877         gcc_cv_func_mmap_anon=no ;;
9878      *)
9879         gcc_cv_func_mmap_anon=yes;;
9880    esac
9881 fi
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9883 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9884    fi
9885 fi
9886
9887 if test $gcc_cv_func_mmap_file = yes; then
9888
9889 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9890
9891 fi
9892 if test $gcc_cv_func_mmap_dev_zero = yes; then
9893
9894 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9895
9896 fi
9897 if test $gcc_cv_func_mmap_anon = yes; then
9898
9899 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9900
9901 fi
9902
9903
9904 case "${host}" in
9905 *-*-*vms*)
9906   # Under VMS, vfork works very differently than on Unix. The standard test
9907   # won't work, and it isn't easily adaptable. It makes more sense to
9908   # just force it.
9909   ac_cv_func_vfork_works=yes
9910   ;;
9911 esac
9912 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9913 if test "x$ac_cv_type_pid_t" = x""yes; then :
9914
9915 else
9916
9917 cat >>confdefs.h <<_ACEOF
9918 #define pid_t int
9919 _ACEOF
9920
9921 fi
9922
9923 for ac_header in vfork.h
9924 do :
9925   ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9926 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9927   cat >>confdefs.h <<_ACEOF
9928 #define HAVE_VFORK_H 1
9929 _ACEOF
9930
9931 fi
9932 done
9933
9934 for ac_func in fork vfork
9935 do :
9936   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9937 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9938 eval as_val=\$$as_ac_var
9939    if test "x$as_val" = x""yes; then :
9940   cat >>confdefs.h <<_ACEOF
9941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9942 _ACEOF
9943
9944 fi
9945 done
9946
9947 if test "x$ac_cv_func_fork" = xyes; then
9948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9949 $as_echo_n "checking for working fork... " >&6; }
9950 if test "${ac_cv_func_fork_works+set}" = set; then :
9951   $as_echo_n "(cached) " >&6
9952 else
9953   if test "$cross_compiling" = yes; then :
9954   ac_cv_func_fork_works=cross
9955 else
9956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h.  */
9958 $ac_includes_default
9959 int
9960 main ()
9961 {
9962
9963           /* By Ruediger Kuhlmann. */
9964           return fork () < 0;
9965
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 if ac_fn_cxx_try_run "$LINENO"; then :
9971   ac_cv_func_fork_works=yes
9972 else
9973   ac_cv_func_fork_works=no
9974 fi
9975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9976   conftest.$ac_objext conftest.beam conftest.$ac_ext
9977 fi
9978
9979 fi
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9981 $as_echo "$ac_cv_func_fork_works" >&6; }
9982
9983 else
9984   ac_cv_func_fork_works=$ac_cv_func_fork
9985 fi
9986 if test "x$ac_cv_func_fork_works" = xcross; then
9987   case $host in
9988     *-*-amigaos* | *-*-msdosdjgpp*)
9989       # Override, as these systems have only a dummy fork() stub
9990       ac_cv_func_fork_works=no
9991       ;;
9992     *)
9993       ac_cv_func_fork_works=yes
9994       ;;
9995   esac
9996   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9997 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9998 fi
9999 ac_cv_func_vfork_works=$ac_cv_func_vfork
10000 if test "x$ac_cv_func_vfork" = xyes; then
10001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10002 $as_echo_n "checking for working vfork... " >&6; }
10003 if test "${ac_cv_func_vfork_works+set}" = set; then :
10004   $as_echo_n "(cached) " >&6
10005 else
10006   if test "$cross_compiling" = yes; then :
10007   ac_cv_func_vfork_works=cross
10008 else
10009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h.  */
10011 /* Thanks to Paul Eggert for this test.  */
10012 $ac_includes_default
10013 #include <sys/wait.h>
10014 #ifdef HAVE_VFORK_H
10015 # include <vfork.h>
10016 #endif
10017 /* On some sparc systems, changes by the child to local and incoming
10018    argument registers are propagated back to the parent.  The compiler
10019    is told about this with #include <vfork.h>, but some compilers
10020    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10021    static variable whose address is put into a register that is
10022    clobbered by the vfork.  */
10023 static void
10024 #ifdef __cplusplus
10025 sparc_address_test (int arg)
10026 # else
10027 sparc_address_test (arg) int arg;
10028 #endif
10029 {
10030   static pid_t child;
10031   if (!child) {
10032     child = vfork ();
10033     if (child < 0) {
10034       perror ("vfork");
10035       _exit(2);
10036     }
10037     if (!child) {
10038       arg = getpid();
10039       write(-1, "", 0);
10040       _exit (arg);
10041     }
10042   }
10043 }
10044
10045 int
10046 main ()
10047 {
10048   pid_t parent = getpid ();
10049   pid_t child;
10050
10051   sparc_address_test (0);
10052
10053   child = vfork ();
10054
10055   if (child == 0) {
10056     /* Here is another test for sparc vfork register problems.  This
10057        test uses lots of local variables, at least as many local
10058        variables as main has allocated so far including compiler
10059        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10060        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10061        reuse the register of parent for one of the local variables,
10062        since it will think that parent can't possibly be used any more
10063        in this routine.  Assigning to the local variable will thus
10064        munge parent in the parent process.  */
10065     pid_t
10066       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10067       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10068     /* Convince the compiler that p..p7 are live; otherwise, it might
10069        use the same hardware register for all 8 local variables.  */
10070     if (p != p1 || p != p2 || p != p3 || p != p4
10071         || p != p5 || p != p6 || p != p7)
10072       _exit(1);
10073
10074     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10075        from child file descriptors.  If the child closes a descriptor
10076        before it execs or exits, this munges the parent's descriptor
10077        as well.  Test for this by closing stdout in the child.  */
10078     _exit(close(fileno(stdout)) != 0);
10079   } else {
10080     int status;
10081     struct stat st;
10082
10083     while (wait(&status) != child)
10084       ;
10085     return (
10086          /* Was there some problem with vforking?  */
10087          child < 0
10088
10089          /* Did the child fail?  (This shouldn't happen.)  */
10090          || status
10091
10092          /* Did the vfork/compiler bug occur?  */
10093          || parent != getpid()
10094
10095          /* Did the file descriptor bug occur?  */
10096          || fstat(fileno(stdout), &st) != 0
10097          );
10098   }
10099 }
10100 _ACEOF
10101 if ac_fn_cxx_try_run "$LINENO"; then :
10102   ac_cv_func_vfork_works=yes
10103 else
10104   ac_cv_func_vfork_works=no
10105 fi
10106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10107   conftest.$ac_objext conftest.beam conftest.$ac_ext
10108 fi
10109
10110 fi
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10112 $as_echo "$ac_cv_func_vfork_works" >&6; }
10113
10114 fi;
10115 if test "x$ac_cv_func_fork_works" = xcross; then
10116   ac_cv_func_vfork_works=$ac_cv_func_vfork
10117   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10118 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10119 fi
10120
10121 if test "x$ac_cv_func_vfork_works" = xyes; then
10122
10123 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10124
10125 else
10126
10127 $as_echo "#define vfork fork" >>confdefs.h
10128
10129 fi
10130 if test "x$ac_cv_func_fork_works" = xyes; then
10131
10132 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10133
10134 fi
10135
10136
10137
10138       if test "X$prefix" = "XNONE"; then
10139     acl_final_prefix="$ac_default_prefix"
10140   else
10141     acl_final_prefix="$prefix"
10142   fi
10143   if test "X$exec_prefix" = "XNONE"; then
10144     acl_final_exec_prefix='${prefix}'
10145   else
10146     acl_final_exec_prefix="$exec_prefix"
10147   fi
10148   acl_save_prefix="$prefix"
10149   prefix="$acl_final_prefix"
10150   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10151   prefix="$acl_save_prefix"
10152
10153
10154 # Check whether --with-gnu-ld was given.
10155 if test "${with_gnu_ld+set}" = set; then :
10156   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10157 else
10158   with_gnu_ld=no
10159 fi
10160
10161 # Prepare PATH_SEPARATOR.
10162 # The user is always right.
10163 if test "${PATH_SEPARATOR+set}" != set; then
10164   echo "#! /bin/sh" >conf$$.sh
10165   echo  "exit 0"   >>conf$$.sh
10166   chmod +x conf$$.sh
10167   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10168     PATH_SEPARATOR=';'
10169   else
10170     PATH_SEPARATOR=:
10171   fi
10172   rm -f conf$$.sh
10173 fi
10174 ac_prog=ld
10175 if test "$GCC" = yes; then
10176   # Check if gcc -print-prog-name=ld gives a path.
10177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10178 $as_echo_n "checking for ld used by GCC... " >&6; }
10179   case $host in
10180   *-*-mingw*)
10181     # gcc leaves a trailing carriage return which upsets mingw
10182     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10183   *)
10184     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10185   esac
10186   case $ac_prog in
10187     # Accept absolute paths.
10188     [\\/]* | [A-Za-z]:[\\/]*)
10189       re_direlt='/[^/][^/]*/\.\./'
10190       # Canonicalize the path of ld
10191       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10192       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10193         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10194       done
10195       test -z "$LD" && LD="$ac_prog"
10196       ;;
10197   "")
10198     # If it fails, then pretend we aren't using GCC.
10199     ac_prog=ld
10200     ;;
10201   *)
10202     # If it is relative, then search for the first ld in PATH.
10203     with_gnu_ld=unknown
10204     ;;
10205   esac
10206 elif test "$with_gnu_ld" = yes; then
10207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10208 $as_echo_n "checking for GNU ld... " >&6; }
10209 else
10210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10211 $as_echo_n "checking for non-GNU ld... " >&6; }
10212 fi
10213 if test "${acl_cv_path_LD+set}" = set; then :
10214   $as_echo_n "(cached) " >&6
10215 else
10216   if test -z "$LD"; then
10217   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10218   for ac_dir in $PATH; do
10219     test -z "$ac_dir" && ac_dir=.
10220     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10221       acl_cv_path_LD="$ac_dir/$ac_prog"
10222       # Check to see if the program is GNU ld.  I'd rather use --version,
10223       # but apparently some GNU ld's only accept -v.
10224       # Break only if it was the GNU/non-GNU ld that we prefer.
10225       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10226         test "$with_gnu_ld" != no && break
10227       else
10228         test "$with_gnu_ld" != yes && break
10229       fi
10230     fi
10231   done
10232   IFS="$ac_save_ifs"
10233 else
10234   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10235 fi
10236 fi
10237
10238 LD="$acl_cv_path_LD"
10239 if test -n "$LD"; then
10240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10241 $as_echo "$LD" >&6; }
10242 else
10243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244 $as_echo "no" >&6; }
10245 fi
10246 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10248 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10249 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10250   $as_echo_n "(cached) " >&6
10251 else
10252   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10253 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10254   acl_cv_prog_gnu_ld=yes
10255 else
10256   acl_cv_prog_gnu_ld=no
10257 fi
10258 fi
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10260 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10261 with_gnu_ld=$acl_cv_prog_gnu_ld
10262
10263
10264
10265                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10266 $as_echo_n "checking for shared library run path origin... " >&6; }
10267 if test "${acl_cv_rpath+set}" = set; then :
10268   $as_echo_n "(cached) " >&6
10269 else
10270
10271     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10272     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10273     . ./conftest.sh
10274     rm -f ./conftest.sh
10275     acl_cv_rpath=done
10276
10277 fi
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10279 $as_echo "$acl_cv_rpath" >&6; }
10280   wl="$acl_cv_wl"
10281   libext="$acl_cv_libext"
10282   shlibext="$acl_cv_shlibext"
10283   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10284   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10285   hardcode_direct="$acl_cv_hardcode_direct"
10286   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10287     # Check whether --enable-rpath was given.
10288 if test "${enable_rpath+set}" = set; then :
10289   enableval=$enable_rpath; :
10290 else
10291   enable_rpath=yes
10292 fi
10293
10294
10295
10296
10297
10298
10299
10300
10301     use_additional=yes
10302
10303   acl_save_prefix="$prefix"
10304   prefix="$acl_final_prefix"
10305   acl_save_exec_prefix="$exec_prefix"
10306   exec_prefix="$acl_final_exec_prefix"
10307
10308     eval additional_includedir=\"$includedir\"
10309     eval additional_libdir=\"$libdir\"
10310
10311   exec_prefix="$acl_save_exec_prefix"
10312   prefix="$acl_save_prefix"
10313
10314
10315 # Check whether --with-libiconv-prefix was given.
10316 if test "${with_libiconv_prefix+set}" = set; then :
10317   withval=$with_libiconv_prefix;
10318     if test "X$withval" = "Xno"; then
10319       use_additional=no
10320     else
10321       if test "X$withval" = "X"; then
10322
10323   acl_save_prefix="$prefix"
10324   prefix="$acl_final_prefix"
10325   acl_save_exec_prefix="$exec_prefix"
10326   exec_prefix="$acl_final_exec_prefix"
10327
10328           eval additional_includedir=\"$includedir\"
10329           eval additional_libdir=\"$libdir\"
10330
10331   exec_prefix="$acl_save_exec_prefix"
10332   prefix="$acl_save_prefix"
10333
10334       else
10335         additional_includedir="$withval/include"
10336         additional_libdir="$withval/lib"
10337       fi
10338     fi
10339
10340 fi
10341
10342       LIBICONV=
10343   LTLIBICONV=
10344   INCICONV=
10345   rpathdirs=
10346   ltrpathdirs=
10347   names_already_handled=
10348   names_next_round='iconv '
10349   while test -n "$names_next_round"; do
10350     names_this_round="$names_next_round"
10351     names_next_round=
10352     for name in $names_this_round; do
10353       already_handled=
10354       for n in $names_already_handled; do
10355         if test "$n" = "$name"; then
10356           already_handled=yes
10357           break
10358         fi
10359       done
10360       if test -z "$already_handled"; then
10361         names_already_handled="$names_already_handled $name"
10362                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10363         eval value=\"\$HAVE_LIB$uppername\"
10364         if test -n "$value"; then
10365           if test "$value" = yes; then
10366             eval value=\"\$LIB$uppername\"
10367             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10368             eval value=\"\$LTLIB$uppername\"
10369             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10370           else
10371                                     :
10372           fi
10373         else
10374                               found_dir=
10375           found_la=
10376           found_so=
10377           found_a=
10378           if test $use_additional = yes; then
10379             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10380               found_dir="$additional_libdir"
10381               found_so="$additional_libdir/lib$name.$shlibext"
10382               if test -f "$additional_libdir/lib$name.la"; then
10383                 found_la="$additional_libdir/lib$name.la"
10384               fi
10385             else
10386               if test -f "$additional_libdir/lib$name.$libext"; then
10387                 found_dir="$additional_libdir"
10388                 found_a="$additional_libdir/lib$name.$libext"
10389                 if test -f "$additional_libdir/lib$name.la"; then
10390                   found_la="$additional_libdir/lib$name.la"
10391                 fi
10392               fi
10393             fi
10394           fi
10395           if test "X$found_dir" = "X"; then
10396             for x in $LDFLAGS $LTLIBICONV; do
10397
10398   acl_save_prefix="$prefix"
10399   prefix="$acl_final_prefix"
10400   acl_save_exec_prefix="$exec_prefix"
10401   exec_prefix="$acl_final_exec_prefix"
10402   eval x=\"$x\"
10403   exec_prefix="$acl_save_exec_prefix"
10404   prefix="$acl_save_prefix"
10405
10406               case "$x" in
10407                 -L*)
10408                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10409                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10410                     found_dir="$dir"
10411                     found_so="$dir/lib$name.$shlibext"
10412                     if test -f "$dir/lib$name.la"; then
10413                       found_la="$dir/lib$name.la"
10414                     fi
10415                   else
10416                     if test -f "$dir/lib$name.$libext"; then
10417                       found_dir="$dir"
10418                       found_a="$dir/lib$name.$libext"
10419                       if test -f "$dir/lib$name.la"; then
10420                         found_la="$dir/lib$name.la"
10421                       fi
10422                     fi
10423                   fi
10424                   ;;
10425               esac
10426               if test "X$found_dir" != "X"; then
10427                 break
10428               fi
10429             done
10430           fi
10431           if test "X$found_dir" != "X"; then
10432                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10433             if test "X$found_so" != "X"; then
10434                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10435                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10436               else
10437                                                                                 haveit=
10438                 for x in $ltrpathdirs; do
10439                   if test "X$x" = "X$found_dir"; then
10440                     haveit=yes
10441                     break
10442                   fi
10443                 done
10444                 if test -z "$haveit"; then
10445                   ltrpathdirs="$ltrpathdirs $found_dir"
10446                 fi
10447                                 if test "$hardcode_direct" = yes; then
10448                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10449                 else
10450                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10451                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10452                                                             haveit=
10453                     for x in $rpathdirs; do
10454                       if test "X$x" = "X$found_dir"; then
10455                         haveit=yes
10456                         break
10457                       fi
10458                     done
10459                     if test -z "$haveit"; then
10460                       rpathdirs="$rpathdirs $found_dir"
10461                     fi
10462                   else
10463                                                                                 haveit=
10464                     for x in $LDFLAGS $LIBICONV; do
10465
10466   acl_save_prefix="$prefix"
10467   prefix="$acl_final_prefix"
10468   acl_save_exec_prefix="$exec_prefix"
10469   exec_prefix="$acl_final_exec_prefix"
10470   eval x=\"$x\"
10471   exec_prefix="$acl_save_exec_prefix"
10472   prefix="$acl_save_prefix"
10473
10474                       if test "X$x" = "X-L$found_dir"; then
10475                         haveit=yes
10476                         break
10477                       fi
10478                     done
10479                     if test -z "$haveit"; then
10480                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10481                     fi
10482                     if test "$hardcode_minus_L" != no; then
10483                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10484                     else
10485                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10486                     fi
10487                   fi
10488                 fi
10489               fi
10490             else
10491               if test "X$found_a" != "X"; then
10492                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10493               else
10494                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10495               fi
10496             fi
10497                         additional_includedir=
10498             case "$found_dir" in
10499               */lib | */lib/)
10500                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10501                 additional_includedir="$basedir/include"
10502                 ;;
10503             esac
10504             if test "X$additional_includedir" != "X"; then
10505                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10506                 haveit=
10507                 if test "X$additional_includedir" = "X/usr/local/include"; then
10508                   if test -n "$GCC"; then
10509                     case $host_os in
10510                       linux*) haveit=yes;;
10511                     esac
10512                   fi
10513                 fi
10514                 if test -z "$haveit"; then
10515                   for x in $CPPFLAGS $INCICONV; do
10516
10517   acl_save_prefix="$prefix"
10518   prefix="$acl_final_prefix"
10519   acl_save_exec_prefix="$exec_prefix"
10520   exec_prefix="$acl_final_exec_prefix"
10521   eval x=\"$x\"
10522   exec_prefix="$acl_save_exec_prefix"
10523   prefix="$acl_save_prefix"
10524
10525                     if test "X$x" = "X-I$additional_includedir"; then
10526                       haveit=yes
10527                       break
10528                     fi
10529                   done
10530                   if test -z "$haveit"; then
10531                     if test -d "$additional_includedir"; then
10532                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10533                     fi
10534                   fi
10535                 fi
10536               fi
10537             fi
10538                         if test -n "$found_la"; then
10539                                                         save_libdir="$libdir"
10540               case "$found_la" in
10541                 */* | *\\*) . "$found_la" ;;
10542                 *) . "./$found_la" ;;
10543               esac
10544               libdir="$save_libdir"
10545                             for dep in $dependency_libs; do
10546                 case "$dep" in
10547                   -L*)
10548                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10549                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10550                       haveit=
10551                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10552                         if test -n "$GCC"; then
10553                           case $host_os in
10554                             linux*) haveit=yes;;
10555                           esac
10556                         fi
10557                       fi
10558                       if test -z "$haveit"; then
10559                         haveit=
10560                         for x in $LDFLAGS $LIBICONV; do
10561
10562   acl_save_prefix="$prefix"
10563   prefix="$acl_final_prefix"
10564   acl_save_exec_prefix="$exec_prefix"
10565   exec_prefix="$acl_final_exec_prefix"
10566   eval x=\"$x\"
10567   exec_prefix="$acl_save_exec_prefix"
10568   prefix="$acl_save_prefix"
10569
10570                           if test "X$x" = "X-L$additional_libdir"; then
10571                             haveit=yes
10572                             break
10573                           fi
10574                         done
10575                         if test -z "$haveit"; then
10576                           if test -d "$additional_libdir"; then
10577                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10578                           fi
10579                         fi
10580                         haveit=
10581                         for x in $LDFLAGS $LTLIBICONV; do
10582
10583   acl_save_prefix="$prefix"
10584   prefix="$acl_final_prefix"
10585   acl_save_exec_prefix="$exec_prefix"
10586   exec_prefix="$acl_final_exec_prefix"
10587   eval x=\"$x\"
10588   exec_prefix="$acl_save_exec_prefix"
10589   prefix="$acl_save_prefix"
10590
10591                           if test "X$x" = "X-L$additional_libdir"; then
10592                             haveit=yes
10593                             break
10594                           fi
10595                         done
10596                         if test -z "$haveit"; then
10597                           if test -d "$additional_libdir"; then
10598                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10599                           fi
10600                         fi
10601                       fi
10602                     fi
10603                     ;;
10604                   -R*)
10605                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10606                     if test "$enable_rpath" != no; then
10607                                                                   haveit=
10608                       for x in $rpathdirs; do
10609                         if test "X$x" = "X$dir"; then
10610                           haveit=yes
10611                           break
10612                         fi
10613                       done
10614                       if test -z "$haveit"; then
10615                         rpathdirs="$rpathdirs $dir"
10616                       fi
10617                                                                   haveit=
10618                       for x in $ltrpathdirs; do
10619                         if test "X$x" = "X$dir"; then
10620                           haveit=yes
10621                           break
10622                         fi
10623                       done
10624                       if test -z "$haveit"; then
10625                         ltrpathdirs="$ltrpathdirs $dir"
10626                       fi
10627                     fi
10628                     ;;
10629                   -l*)
10630                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10631                     ;;
10632                   *.la)
10633                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10634                     ;;
10635                   *)
10636                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10637                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10638                     ;;
10639                 esac
10640               done
10641             fi
10642           else
10643                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10644             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10645           fi
10646         fi
10647       fi
10648     done
10649   done
10650   if test "X$rpathdirs" != "X"; then
10651     if test -n "$hardcode_libdir_separator"; then
10652                         alldirs=
10653       for found_dir in $rpathdirs; do
10654         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10655       done
10656             acl_save_libdir="$libdir"
10657       libdir="$alldirs"
10658       eval flag=\"$hardcode_libdir_flag_spec\"
10659       libdir="$acl_save_libdir"
10660       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10661     else
10662             for found_dir in $rpathdirs; do
10663         acl_save_libdir="$libdir"
10664         libdir="$found_dir"
10665         eval flag=\"$hardcode_libdir_flag_spec\"
10666         libdir="$acl_save_libdir"
10667         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10668       done
10669     fi
10670   fi
10671   if test "X$ltrpathdirs" != "X"; then
10672             for found_dir in $ltrpathdirs; do
10673       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10674     done
10675   fi
10676
10677
10678
10679
10680
10681
10682
10683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10684 $as_echo_n "checking for iconv... " >&6; }
10685 if test "${am_cv_func_iconv+set}" = set; then :
10686   $as_echo_n "(cached) " >&6
10687 else
10688
10689     am_cv_func_iconv="no, consider installing GNU libiconv"
10690     am_cv_lib_iconv=no
10691                     am_save_CPPFLAGS="$CPPFLAGS"
10692     CPPFLAGS="$CPPFLAGS $INCICONV"
10693     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h.  */
10695 #include <stdlib.h>
10696 #include <iconv.h>
10697 int
10698 main ()
10699 {
10700 iconv_t cd = iconv_open("","");
10701        iconv(cd,NULL,NULL,NULL,NULL);
10702        iconv_close(cd);
10703   ;
10704   return 0;
10705 }
10706 _ACEOF
10707 if ac_fn_cxx_try_link "$LINENO"; then :
10708   am_cv_func_iconv=yes
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext \
10711     conftest$ac_exeext conftest.$ac_ext
10712     CPPFLAGS="$am_save_CPPFLAGS"
10713
10714     if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10715       for _libs in .libs _libs; do
10716         am_save_CPPFLAGS="$CPPFLAGS"
10717         am_save_LIBS="$LIBS"
10718         CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10719         LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10720         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h.  */
10722 #include <stdlib.h>
10723 #include <iconv.h>
10724 int
10725 main ()
10726 {
10727 iconv_t cd = iconv_open("","");
10728            iconv(cd,NULL,NULL,NULL,NULL);
10729            iconv_close(cd);
10730   ;
10731   return 0;
10732 }
10733 _ACEOF
10734 if ac_fn_cxx_try_link "$LINENO"; then :
10735   INCICONV="-I../libiconv/include"
10736           LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10737           LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10738           am_cv_lib_iconv=yes
10739           am_cv_func_iconv=yes
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext \
10742     conftest$ac_exeext conftest.$ac_ext
10743         CPPFLAGS="$am_save_CPPFLAGS"
10744         LIBS="$am_save_LIBS"
10745         if test "$am_cv_func_iconv" = "yes"; then
10746           break
10747         fi
10748       done
10749     fi
10750
10751     if test "$am_cv_func_iconv" != yes; then
10752       am_save_CPPFLAGS="$CPPFLAGS"
10753       am_save_LIBS="$LIBS"
10754       CPPFLAGS="$LIBS $INCICONV"
10755       LIBS="$LIBS $LIBICONV"
10756       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h.  */
10758 #include <stdlib.h>
10759 #include <iconv.h>
10760 int
10761 main ()
10762 {
10763 iconv_t cd = iconv_open("","");
10764          iconv(cd,NULL,NULL,NULL,NULL);
10765          iconv_close(cd);
10766   ;
10767   return 0;
10768 }
10769 _ACEOF
10770 if ac_fn_cxx_try_link "$LINENO"; then :
10771   am_cv_lib_iconv=yes
10772         am_cv_func_iconv=yes
10773 fi
10774 rm -f core conftest.err conftest.$ac_objext \
10775     conftest$ac_exeext conftest.$ac_ext
10776       CPPFLAGS="$am_save_CPPFLAGS"
10777       LIBS="$am_save_LIBS"
10778     fi
10779
10780 fi
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10782 $as_echo "$am_cv_func_iconv" >&6; }
10783   if test "$am_cv_func_iconv" = yes; then
10784
10785 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10786
10787   fi
10788   if test "$am_cv_lib_iconv" = yes; then
10789
10790   for element in $INCICONV; do
10791     haveit=
10792     for x in $CPPFLAGS; do
10793
10794   acl_save_prefix="$prefix"
10795   prefix="$acl_final_prefix"
10796   acl_save_exec_prefix="$exec_prefix"
10797   exec_prefix="$acl_final_exec_prefix"
10798   eval x=\"$x\"
10799   exec_prefix="$acl_save_exec_prefix"
10800   prefix="$acl_save_prefix"
10801
10802       if test "X$x" = "X$element"; then
10803         haveit=yes
10804         break
10805       fi
10806     done
10807     if test -z "$haveit"; then
10808       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10809     fi
10810   done
10811
10812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10813 $as_echo_n "checking how to link with libiconv... " >&6; }
10814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10815 $as_echo "$LIBICONV" >&6; }
10816   else
10817     LIBICONV=
10818     LTLIBICONV=
10819   fi
10820
10821
10822
10823   if test "$am_cv_func_iconv" = yes; then
10824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10825 $as_echo_n "checking for iconv declaration... " >&6; }
10826     if test "${am_cv_proto_iconv+set}" = set; then :
10827   $as_echo_n "(cached) " >&6
10828 else
10829
10830       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h.  */
10832
10833 #include <stdlib.h>
10834 #include <iconv.h>
10835 extern
10836 #ifdef __cplusplus
10837 "C"
10838 #endif
10839 #if defined(__STDC__) || defined(__cplusplus)
10840 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10841 #else
10842 size_t iconv();
10843 #endif
10844
10845 int
10846 main ()
10847 {
10848
10849   ;
10850   return 0;
10851 }
10852 _ACEOF
10853 if ac_fn_cxx_try_compile "$LINENO"; then :
10854   am_cv_proto_iconv_arg1=""
10855 else
10856   am_cv_proto_iconv_arg1="const"
10857 fi
10858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10859       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);"
10860 fi
10861
10862     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10864          }$am_cv_proto_iconv" >&5
10865 $as_echo "${ac_t:-
10866          }$am_cv_proto_iconv" >&6; }
10867
10868 cat >>confdefs.h <<_ACEOF
10869 #define ICONV_CONST $am_cv_proto_iconv_arg1
10870 _ACEOF
10871
10872   fi
10873
10874
10875 # Until we have in-tree GNU iconv:
10876 LIBICONV_DEP=
10877 if test -f "$LTLIBICONV"; then
10878   LIBICONV_DEP=$LTLIBICONV
10879 fi
10880
10881
10882
10883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10884 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10885 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10886   $as_echo_n "(cached) " >&6
10887 else
10888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h.  */
10890 #include <locale.h>
10891 int
10892 main ()
10893 {
10894 return LC_MESSAGES
10895   ;
10896   return 0;
10897 }
10898 _ACEOF
10899 if ac_fn_cxx_try_link "$LINENO"; then :
10900   am_cv_val_LC_MESSAGES=yes
10901 else
10902   am_cv_val_LC_MESSAGES=no
10903 fi
10904 rm -f core conftest.err conftest.$ac_objext \
10905     conftest$ac_exeext conftest.$ac_ext
10906 fi
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10908 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10909   if test $am_cv_val_LC_MESSAGES = yes; then
10910
10911 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10912
10913   fi
10914
10915
10916
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10918 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10919 if test "${am_cv_langinfo_codeset+set}" = set; then :
10920   $as_echo_n "(cached) " >&6
10921 else
10922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h.  */
10924 #include <langinfo.h>
10925 int
10926 main ()
10927 {
10928 char* cs = nl_langinfo(CODESET);
10929   ;
10930   return 0;
10931 }
10932 _ACEOF
10933 if ac_fn_cxx_try_link "$LINENO"; then :
10934   am_cv_langinfo_codeset=yes
10935 else
10936   am_cv_langinfo_codeset=no
10937 fi
10938 rm -f core conftest.err conftest.$ac_objext \
10939     conftest$ac_exeext conftest.$ac_ext
10940
10941 fi
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10943 $as_echo "$am_cv_langinfo_codeset" >&6; }
10944   if test $am_cv_langinfo_codeset = yes; then
10945
10946 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10947
10948   fi
10949
10950
10951 # We will need to find libiberty.h and ansidecl.h
10952 saved_CFLAGS="$CFLAGS"
10953 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10954 saved_CXXFLAGS="$CXXFLAGS"
10955 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10956
10957 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10958 # normal autoconf function for these.  But force definition of
10959 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10960 # basename handling in libiberty.h.
10961 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10962 #undef HAVE_DECL_BASENAME
10963 #define HAVE_DECL_BASENAME 1
10964 #include \"ansidecl.h\"
10965 #include \"system.h\"
10966 "
10967 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10968   ac_have_decl=1
10969 else
10970   ac_have_decl=0
10971 fi
10972
10973 cat >>confdefs.h <<_ACEOF
10974 #define HAVE_DECL_BASENAME $ac_have_decl
10975 _ACEOF
10976 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10977 #undef HAVE_DECL_BASENAME
10978 #define HAVE_DECL_BASENAME 1
10979 #include \"ansidecl.h\"
10980 #include \"system.h\"
10981 "
10982 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10983   ac_have_decl=1
10984 else
10985   ac_have_decl=0
10986 fi
10987
10988 cat >>confdefs.h <<_ACEOF
10989 #define HAVE_DECL_STRSTR $ac_have_decl
10990 _ACEOF
10991
10992
10993 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10994         madvise stpcpy strnlen strsignal strverscmp \
10995         strtol strtoul strtoll strtoull setenv unsetenv \
10996         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10997         free getopt clock getpagesize ffs clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
10998 do
10999   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11001 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11002 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11003   $as_echo_n "(cached) " >&6
11004 else
11005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h.  */
11007 #undef $ac_tr_decl
11008 #define $ac_tr_decl 1
11009
11010 #include "ansidecl.h"
11011 #include "system.h"
11012
11013 int
11014 main ()
11015 {
11016 #ifndef $ac_func
11017 char *(*pfn) = (char *(*)) $ac_func ;
11018 #endif
11019   ;
11020   return 0;
11021 }
11022 _ACEOF
11023 if ac_fn_cxx_try_compile "$LINENO"; then :
11024   eval "gcc_cv_have_decl_$ac_func=yes"
11025 else
11026   eval "gcc_cv_have_decl_$ac_func=no"
11027 fi
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029 fi
11030
11031 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11033 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11034 #define $ac_tr_decl 1
11035 _ACEOF
11036
11037 else
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11040 #define $ac_tr_decl 0
11041 _ACEOF
11042
11043 fi
11044
11045 done
11046
11047
11048 for ac_func in getrlimit setrlimit getrusage
11049 do
11050   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11052 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11053 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11054   $as_echo_n "(cached) " >&6
11055 else
11056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h.  */
11058 #undef $ac_tr_decl
11059 #define $ac_tr_decl 1
11060
11061 #include "ansidecl.h"
11062 #include "system.h"
11063 #ifdef HAVE_SYS_RESOURCE_H
11064 #include <sys/resource.h>
11065 #endif
11066
11067
11068 int
11069 main ()
11070 {
11071 #ifndef $ac_func
11072 char *(*pfn) = (char *(*)) $ac_func ;
11073 #endif
11074   ;
11075   return 0;
11076 }
11077 _ACEOF
11078 if ac_fn_cxx_try_compile "$LINENO"; then :
11079   eval "gcc_cv_have_decl_$ac_func=yes"
11080 else
11081   eval "gcc_cv_have_decl_$ac_func=no"
11082 fi
11083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11084 fi
11085
11086 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11088 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11089 #define $ac_tr_decl 1
11090 _ACEOF
11091
11092 else
11093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11095 #define $ac_tr_decl 0
11096 _ACEOF
11097
11098 fi
11099
11100 done
11101
11102
11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h.  */
11105
11106 #include "ansidecl.h"
11107 #include "system.h"
11108 #ifdef HAVE_SYS_RESOURCE_H
11109 #include <sys/resource.h>
11110 #endif
11111
11112 int
11113 main ()
11114 {
11115 rlim_t l = 0;
11116   ;
11117   return 0;
11118 }
11119 _ACEOF
11120 if ac_fn_cxx_try_compile "$LINENO"; then :
11121
11122 else
11123
11124 $as_echo "#define rlim_t long" >>confdefs.h
11125
11126 fi
11127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128
11129 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11130 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11131 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11132 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11133 for ac_func in ldgetname
11134 do
11135   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11137 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11138 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11139   $as_echo_n "(cached) " >&6
11140 else
11141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h.  */
11143 #undef $ac_tr_decl
11144 #define $ac_tr_decl 1
11145
11146 #include "ansidecl.h"
11147 #include "system.h"
11148 #ifdef HAVE_LDFCN_H
11149 #undef FREAD
11150 #undef FWRITE
11151 #include <ldfcn.h>
11152 #endif
11153
11154
11155 int
11156 main ()
11157 {
11158 #ifndef $ac_func
11159 char *(*pfn) = (char *(*)) $ac_func ;
11160 #endif
11161   ;
11162   return 0;
11163 }
11164 _ACEOF
11165 if ac_fn_cxx_try_compile "$LINENO"; then :
11166   eval "gcc_cv_have_decl_$ac_func=yes"
11167 else
11168   eval "gcc_cv_have_decl_$ac_func=no"
11169 fi
11170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 fi
11172
11173 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11175 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11176 #define $ac_tr_decl 1
11177 _ACEOF
11178
11179 else
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11182 #define $ac_tr_decl 0
11183 _ACEOF
11184
11185 fi
11186
11187 done
11188
11189
11190 for ac_func in times
11191 do
11192   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11194 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11195 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11196   $as_echo_n "(cached) " >&6
11197 else
11198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h.  */
11200 #undef $ac_tr_decl
11201 #define $ac_tr_decl 1
11202
11203 #include "ansidecl.h"
11204 #include "system.h"
11205 #ifdef HAVE_SYS_TIMES_H
11206 #include <sys/times.h>
11207 #endif
11208
11209
11210 int
11211 main ()
11212 {
11213 #ifndef $ac_func
11214 char *(*pfn) = (char *(*)) $ac_func ;
11215 #endif
11216   ;
11217   return 0;
11218 }
11219 _ACEOF
11220 if ac_fn_cxx_try_compile "$LINENO"; then :
11221   eval "gcc_cv_have_decl_$ac_func=yes"
11222 else
11223   eval "gcc_cv_have_decl_$ac_func=no"
11224 fi
11225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226 fi
11227
11228 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11230 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11231 #define $ac_tr_decl 1
11232 _ACEOF
11233
11234 else
11235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11237 #define $ac_tr_decl 0
11238 _ACEOF
11239
11240 fi
11241
11242 done
11243
11244
11245 for ac_func in sigaltstack
11246 do
11247   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11249 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11250 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11251   $as_echo_n "(cached) " >&6
11252 else
11253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h.  */
11255 #undef $ac_tr_decl
11256 #define $ac_tr_decl 1
11257
11258 #include "ansidecl.h"
11259 #include "system.h"
11260 #include <signal.h>
11261
11262
11263 int
11264 main ()
11265 {
11266 #ifndef $ac_func
11267 char *(*pfn) = (char *(*)) $ac_func ;
11268 #endif
11269   ;
11270   return 0;
11271 }
11272 _ACEOF
11273 if ac_fn_cxx_try_compile "$LINENO"; then :
11274   eval "gcc_cv_have_decl_$ac_func=yes"
11275 else
11276   eval "gcc_cv_have_decl_$ac_func=no"
11277 fi
11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11279 fi
11280
11281 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11283 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11284 #define $ac_tr_decl 1
11285 _ACEOF
11286
11287 else
11288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11290 #define $ac_tr_decl 0
11291 _ACEOF
11292
11293 fi
11294
11295 done
11296
11297
11298 # More time-related stuff.
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11300 $as_echo_n "checking for struct tms... " >&6; }
11301 if test "${ac_cv_struct_tms+set}" = set; then :
11302   $as_echo_n "(cached) " >&6
11303 else
11304
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h.  */
11307
11308 #include "ansidecl.h"
11309 #include "system.h"
11310 #ifdef HAVE_SYS_TIMES_H
11311 #include <sys/times.h>
11312 #endif
11313
11314 int
11315 main ()
11316 {
11317 struct tms tms;
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 if ac_fn_cxx_try_compile "$LINENO"; then :
11323   ac_cv_struct_tms=yes
11324 else
11325   ac_cv_struct_tms=no
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 fi
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11330 $as_echo "$ac_cv_struct_tms" >&6; }
11331 if test $ac_cv_struct_tms = yes; then
11332
11333 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11334
11335 fi
11336
11337 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11338 # revisit after autoconf 2.50.
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11340 $as_echo_n "checking for clock_t... " >&6; }
11341 if test "${gcc_cv_type_clock_t+set}" = set; then :
11342   $as_echo_n "(cached) " >&6
11343 else
11344
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h.  */
11347
11348 #include "ansidecl.h"
11349 #include "system.h"
11350
11351 int
11352 main ()
11353 {
11354 clock_t x;
11355   ;
11356   return 0;
11357 }
11358 _ACEOF
11359 if ac_fn_cxx_try_compile "$LINENO"; then :
11360   gcc_cv_type_clock_t=yes
11361 else
11362   gcc_cv_type_clock_t=no
11363 fi
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365 fi
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11367 $as_echo "$gcc_cv_type_clock_t" >&6; }
11368 if test $gcc_cv_type_clock_t = yes; then
11369
11370 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11371
11372 fi
11373
11374 # Check if F_SETLKW is supported by fcntl.
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11376 $as_echo_n "checking for F_SETLKW... " >&6; }
11377 if test "${ac_cv_f_setlkw+set}" = set; then :
11378   $as_echo_n "(cached) " >&6
11379 else
11380
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h.  */
11383
11384 #include <fcntl.h>
11385 int
11386 main ()
11387 {
11388
11389 struct flock fl;
11390 fl.l_whence = 0;
11391 fl.l_start = 0;
11392 fl.l_len = 0;
11393 fl.l_pid = 0;
11394 return fcntl (1, F_SETLKW, &fl);
11395   ;
11396   return 0;
11397 }
11398 _ACEOF
11399 if ac_fn_cxx_try_compile "$LINENO"; then :
11400   ac_cv_f_setlkw=yes
11401 else
11402   ac_cv_f_setlkw=no
11403 fi
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405 fi
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11407 $as_echo "$ac_cv_f_setlkw" >&6; }
11408 if test $ac_cv_f_setlkw = yes; then
11409
11410 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11411
11412 fi
11413
11414 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11415 CFLAGS="$saved_CFLAGS"
11416 CXXFLAGS="$saved_CXXFLAGS"
11417
11418 # mkdir takes a single argument on some systems.
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11420 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11421 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11422   $as_echo_n "(cached) " >&6
11423 else
11424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h.  */
11426
11427 #include <sys/types.h>
11428 #ifdef HAVE_SYS_STAT_H
11429 # include <sys/stat.h>
11430 #endif
11431 #ifdef HAVE_UNISTD_H
11432 # include <unistd.h>
11433 #endif
11434 #ifdef HAVE_DIRECT_H
11435 # include <direct.h>
11436 #endif
11437 int
11438 main ()
11439 {
11440 mkdir ("foo", 0);
11441   ;
11442   return 0;
11443 }
11444 _ACEOF
11445 if ac_fn_cxx_try_compile "$LINENO"; then :
11446   gcc_cv_mkdir_takes_one_arg=no
11447 else
11448   gcc_cv_mkdir_takes_one_arg=yes
11449 fi
11450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11451 fi
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11453 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11454 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11455
11456 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11457
11458 fi
11459
11460
11461 # File extensions
11462 manext='.1'
11463 objext='.o'
11464
11465
11466
11467 # With Setjmp/Longjmp based exception handling.
11468 # Check whether --enable-sjlj-exceptions was given.
11469 if test "${enable_sjlj_exceptions+set}" = set; then :
11470   enableval=$enable_sjlj_exceptions; case $target in
11471   *-*-hpux10*)
11472     if test $enableval != yes; then
11473       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11474 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11475       enableval=yes
11476     fi
11477     ;;
11478 esac
11479 force_sjlj_exceptions=yes
11480 else
11481   case $target in
11482   *-*-hpux10*)
11483     force_sjlj_exceptions=yes
11484     enableval=yes
11485     ;;
11486   lm32*-*-*)
11487      force_sjlj_exceptions=yes
11488      enableval=yes
11489      ;;
11490   *)
11491     force_sjlj_exceptions=no
11492     ;;
11493 esac
11494 fi
11495
11496 if test $force_sjlj_exceptions = yes; then
11497   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11498
11499 cat >>confdefs.h <<_ACEOF
11500 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11501 _ACEOF
11502
11503 fi
11504
11505 # --------------------------------------------------------
11506 # Build, host, and target specific configuration fragments
11507 # --------------------------------------------------------
11508
11509 # Collect build-machine-specific information.
11510 . ${srcdir}/config.build
11511
11512 # Collect host-machine-specific information.
11513 . ${srcdir}/config.host
11514
11515 target_gtfiles=
11516
11517 # Collect target-machine-specific information.
11518 . ${srcdir}/config.gcc
11519
11520 extra_objs="${host_extra_objs} ${extra_objs}"
11521 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11522
11523 # Default the target-machine variables that were not explicitly set.
11524 if test x"$tm_file" = x
11525 then tm_file=$cpu_type/$cpu_type.h; fi
11526
11527 if test x"$extra_headers" = x
11528 then extra_headers=; fi
11529
11530 if test x$md_file = x
11531 then md_file=$cpu_type/$cpu_type.md; fi
11532
11533 if test x$out_file = x
11534 then out_file=$cpu_type/$cpu_type.c; fi
11535
11536 if test x"$tmake_file" = x
11537 then tmake_file=$cpu_type/t-$cpu_type
11538 fi
11539
11540 # Support --enable-initfini-array.
11541 if test x$enable_initfini_array != xno; then
11542   tm_file="${tm_file} initfini-array.h"
11543 fi
11544
11545 if test x"$dwarf2" = xyes
11546 then tm_file="$tm_file tm-dwarf2.h"
11547 fi
11548
11549 # Say what files are being used for the output code and MD file.
11550 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11551 echo "Using \`$srcdir/config/$md_file' as machine description file."
11552
11553 # If any of the xm_file variables contain nonexistent files, warn
11554 # about them and drop them.
11555
11556 bx=
11557 for x in $build_xm_file; do
11558   if    test -f $srcdir/config/$x
11559   then      bx="$bx $x"
11560   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11561 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11562   fi
11563 done
11564 build_xm_file="$bx"
11565
11566 hx=
11567 for x in $host_xm_file; do
11568   if    test -f $srcdir/config/$x
11569   then      hx="$hx $x"
11570   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11571 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11572   fi
11573 done
11574 host_xm_file="$hx"
11575
11576 tx=
11577 for x in $xm_file; do
11578   if    test -f $srcdir/config/$x
11579   then      tx="$tx $x"
11580   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11581 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11582   fi
11583 done
11584 xm_file="$tx"
11585
11586 count=a
11587 for f in $tm_file; do
11588         count=${count}x
11589 done
11590 if test $count = ax; then
11591         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11592 else
11593         echo "Using the following target machine macro files:"
11594         for f in $tm_file; do
11595                 echo "  $srcdir/config/$f"
11596         done
11597 fi
11598
11599 if test x$use_long_long_for_widest_fast_int = xyes; then
11600
11601 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11602
11603 fi
11604
11605 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11606
11607 cat >>confdefs.h <<_ACEOF
11608 #define HAVE_GNU_LD $gnu_ld_bool
11609 _ACEOF
11610
11611
11612 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11613
11614 cat >>confdefs.h <<_ACEOF
11615 #define HAVE_GNU_AS $gnu_as_bool
11616 _ACEOF
11617
11618
11619 count=a
11620 for f in $host_xm_file; do
11621         count=${count}x
11622 done
11623 if test $count = a; then
11624         :
11625 elif test $count = ax; then
11626         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11627 else
11628         echo "Using the following host machine macro files:"
11629         for f in $host_xm_file; do
11630                 echo "  $srcdir/config/$f"
11631         done
11632 fi
11633 echo "Using ${out_host_hook_obj} for host machine hooks."
11634
11635 if test "$host_xm_file" != "$build_xm_file"; then
11636         count=a
11637         for f in $build_xm_file; do
11638                 count=${count}x
11639         done
11640         if test $count = a; then
11641                 :
11642         elif test $count = ax; then
11643                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11644         else
11645                 echo "Using the following build machine macro files:"
11646                 for f in $build_xm_file; do
11647                         echo "  $srcdir/config/$f"
11648                 done
11649         fi
11650 fi
11651
11652 if test -n "$configured_native_system_header_dir"; then
11653   native_system_header_dir=$configured_native_system_header_dir
11654 fi
11655 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11656
11657
11658 case ${host} in
11659   powerpc*-*-darwin*)
11660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11661 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11662 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11663   $as_echo_n "(cached) " >&6
11664 else
11665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h.  */
11667
11668 #include <sys/cdefs.h>
11669 #include <sys/signal.h>
11670 #include <ucontext.h>
11671 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11672
11673 _ACEOF
11674 if ac_fn_cxx_try_compile "$LINENO"; then :
11675   gcc_cv_mcontext_underscores=no
11676 else
11677   gcc_cv_mcontext_underscores=yes
11678 fi
11679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11680 fi
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11682 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11683       if test $gcc_cv_mcontext_underscores = yes; then
11684
11685 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11686
11687       fi
11688     ;;
11689 esac
11690
11691 # ---------
11692 # Threading
11693 # ---------
11694
11695 # Check if a valid thread package
11696 case ${enable_threads} in
11697   "" | no)
11698     # No threads
11699     target_thread_file='single'
11700     ;;
11701   yes)
11702     # default
11703     target_thread_file='single'
11704     ;;
11705   aix | dce | lynx | mipssde | posix | rtems | \
11706   single | tpf | vxworks | win32)
11707     target_thread_file=${enable_threads}
11708     ;;
11709   *)
11710     echo "${enable_threads} is an unknown thread package" 1>&2
11711     exit 1
11712     ;;
11713 esac
11714
11715 if test x${thread_file} = x; then
11716   # No thread file set by target-specific clauses in config.gcc,
11717   # so use file chosen by default logic above
11718   thread_file=${target_thread_file}
11719 fi
11720
11721 # --------
11722 # UNSORTED
11723 # --------
11724
11725 use_cxa_atexit=no
11726 if test x$enable___cxa_atexit = xyes || \
11727    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11728   if test x$host = x$target; then
11729     case $host in
11730       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11731       # keyed to flag_use_cxa_atexit
11732       *-*-mingw32*)
11733         use_cxa_atexit=yes
11734         ;;
11735       powerpc-ibm-aix*)
11736         use_cxa_atexit=yes
11737         ;;
11738       *)
11739         ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11740 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11741   use_cxa_atexit=yes
11742 else
11743   echo "__cxa_atexit can't be enabled on this target"
11744 fi
11745
11746         ;;
11747     esac
11748   else
11749     # We can't check for __cxa_atexit when building a cross, so assume
11750     # it is available
11751     use_cxa_atexit=yes
11752   fi
11753   if test x$use_cxa_atexit = xyes; then
11754
11755 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11756
11757   fi
11758 fi
11759
11760 # Look for a file containing extra machine modes.
11761 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11762   extra_modes_file='$(srcdir)'/config/${extra_modes}
11763
11764
11765 cat >>confdefs.h <<_ACEOF
11766 #define EXTRA_MODES_FILE "config/$extra_modes"
11767 _ACEOF
11768
11769 fi
11770
11771 # Convert extra_options into a form suitable for Makefile use.
11772 extra_opt_files=
11773 all_opt_files=
11774 for f in $extra_options; do
11775   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11776   all_opt_files="$all_opt_files $srcdir/config/$f"
11777 done
11778
11779
11780 # auto-host.h is the file containing items generated by autoconf and is
11781 # the first file included by config.h.
11782 # If host=build, it is correct to have bconfig include auto-host.h
11783 # as well.  If host!=build, we are in error and need to do more
11784 # work to find out the build config parameters.
11785 if test x$host = x$build
11786 then
11787         build_auto=auto-host.h
11788 else
11789         # We create a subdir, then run autoconf in the subdir.
11790         # To prevent recursion we set host and build for the new
11791         # invocation of configure to the build for this invocation
11792         # of configure.
11793         tempdir=build.$$
11794         rm -rf $tempdir
11795         mkdir $tempdir
11796         cd $tempdir
11797         case ${srcdir} in
11798         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11799         *) realsrcdir=../${srcdir};;
11800         esac
11801         # Clearing GMPINC is necessary to prevent host headers being
11802         # used by the build compiler.  Defining GENERATOR_FILE stops
11803         # system.h from including gmp.h.
11804         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11805         CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11806         LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11807         GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11808         ${realsrcdir}/configure \
11809                 --enable-languages=${enable_languages-all} \
11810                 --target=$target_alias --host=$build_alias --build=$build_alias
11811
11812         # We just finished tests for the build machine, so rename
11813         # the file auto-build.h in the gcc directory.
11814         mv auto-host.h ../auto-build.h
11815         cd ..
11816         rm -rf $tempdir
11817         build_auto=auto-build.h
11818 fi
11819
11820
11821 tm_file="${tm_file} defaults.h"
11822 tm_p_file="${tm_p_file} tm-preds.h"
11823 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11824 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11825 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11826 # put this back in temporarily.
11827 xm_file="auto-host.h ansidecl.h ${xm_file}"
11828
11829 # --------
11830 # UNSORTED
11831 # --------
11832
11833 # Compile in configure arguments.
11834 if test -f configargs.h ; then
11835         # Being re-configured.
11836         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11837         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11838 else
11839         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11840 fi
11841
11842 # Double all backslashes and backslash all quotes to turn
11843 # gcc_config_arguments into a C string.
11844 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11845 $gcc_config_arguments
11846 EOF
11847 gcc_config_arguments_str=`cat conftest.out`
11848 rm -f conftest.out
11849
11850 cat > configargs.h <<EOF
11851 /* Generated automatically. */
11852 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11853 static const char thread_model[] = "$thread_file";
11854
11855 static const struct {
11856   const char *name, *value;
11857 } configure_default_options[] = $configure_default_options;
11858 EOF
11859
11860 gcc_BASEVER=`cat $srcdir/BASE-VER`
11861 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11862 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11863 if test -f $srcdir/REVISION ; then
11864         gcc_REVISION=`cat $srcdir/REVISION`
11865 else
11866         gcc_REVISION=""
11867 fi
11868 cat > plugin-version.h <<EOF
11869 #include "configargs.h"
11870
11871 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11872 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11873 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11874 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11875
11876 static char basever[] = "$gcc_BASEVER";
11877 static char datestamp[] = "$gcc_DATESTAMP";
11878 static char devphase[] = "$gcc_DEVPHASE";
11879 static char revision[] = "$gcc_REVISION";
11880
11881 /* FIXME plugins: We should make the version information more precise.
11882    One way to do is to add a checksum. */
11883
11884 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11885                                                 devphase, revision,
11886                                                 configuration_arguments};
11887 EOF
11888
11889 # Internationalization
11890 # If we haven't got the data from the intl directory,
11891 # assume NLS is disabled.
11892 USE_NLS=no
11893 LIBINTL=
11894 LIBINTL_DEP=
11895 INCINTL=
11896 XGETTEXT=
11897 GMSGFMT=
11898 POSUB=
11899
11900 if test -f  ../intl/config.intl; then
11901   .  ../intl/config.intl
11902 fi
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11904 $as_echo_n "checking whether NLS is requested... " >&6; }
11905 if test x"$USE_NLS" != xyes; then
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11908 else
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11910 $as_echo "yes" >&6; }
11911
11912 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11913
11914
11915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11916 $as_echo_n "checking for catalogs to be installed... " >&6; }
11917   # Look for .po and .gmo files in the source directory.
11918   CATALOGS=
11919   XLINGUAS=
11920   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11921     # If there aren't any .gmo files the shell will give us the
11922     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11923     # weeded out.
11924     case "$cat" in *\**)
11925       continue;;
11926     esac
11927     # The quadruple backslash is collapsed to a double backslash
11928     # by the backticks, then collapsed again by the double quotes,
11929     # leaving us with one backslash in the sed expression (right
11930     # before the dot that mustn't act as a wildcard).
11931     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11932     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11933     # The user is allowed to set LINGUAS to a list of languages to
11934     # install catalogs for.  If it's empty that means "all of them."
11935     if test "x$LINGUAS" = x; then
11936       CATALOGS="$CATALOGS $cat"
11937       XLINGUAS="$XLINGUAS $lang"
11938     else
11939       case "$LINGUAS" in *$lang*)
11940         CATALOGS="$CATALOGS $cat"
11941         XLINGUAS="$XLINGUAS $lang"
11942         ;;
11943       esac
11944     fi
11945   done
11946   LINGUAS="$XLINGUAS"
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11948 $as_echo "$LINGUAS" >&6; }
11949
11950
11951     DATADIRNAME=share
11952
11953   INSTOBJEXT=.mo
11954
11955   GENCAT=gencat
11956
11957   CATOBJEXT=.gmo
11958
11959 fi
11960
11961 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11962 # -liconv on the link line twice.
11963 case "$LIBINTL" in *$LIBICONV*)
11964         LIBICONV= ;;
11965 esac
11966
11967 # Check whether --enable-secureplt was given.
11968 if test "${enable_secureplt+set}" = set; then :
11969   enableval=$enable_secureplt;
11970 fi
11971
11972
11973 # Check whether --enable-leading-mingw64-underscores was given.
11974 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11975   enableval=$enable_leading_mingw64_underscores;
11976 fi
11977
11978 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11979
11980 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11981
11982 fi
11983
11984 # Check whether --enable-cld was given.
11985 if test "${enable_cld+set}" = set; then :
11986   enableval=$enable_cld;
11987 else
11988   enable_cld=no
11989 fi
11990
11991
11992 # Check whether --enable-frame-pointer was given.
11993 if test "${enable_frame_pointer+set}" = set; then :
11994   enableval=$enable_frame_pointer;
11995 else
11996
11997 case $target_os in
11998 linux* | darwin[8912]*)
11999   # Enable -fomit-frame-pointer by default for Linux and Darwin with
12000   # DWARF2.
12001   enable_frame_pointer=no
12002   ;;
12003 *)
12004   enable_frame_pointer=yes
12005   ;;
12006 esac
12007
12008 fi
12009
12010
12011 # Windows32 Registry support for specifying GCC installation paths.
12012 # Check whether --enable-win32-registry was given.
12013 if test "${enable_win32_registry+set}" = set; then :
12014   enableval=$enable_win32_registry;
12015 fi
12016
12017
12018 case $host_os in
12019   win32 | pe | cygwin* | mingw32*)
12020     if test "x$enable_win32_registry" != xno; then
12021       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12022 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12023 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12024   $as_echo_n "(cached) " >&6
12025 else
12026   ac_func_search_save_LIBS=$LIBS
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h.  */
12029
12030 /* Override any GCC internal prototype to avoid an error.
12031    Use char because int might match the return type of a GCC
12032    builtin and then its argument prototype would still apply.  */
12033 #ifdef __cplusplus
12034 extern "C"
12035 #endif
12036 char RegOpenKeyExA ();
12037 int
12038 main ()
12039 {
12040 return RegOpenKeyExA ();
12041   ;
12042   return 0;
12043 }
12044 _ACEOF
12045 for ac_lib in '' advapi32; do
12046   if test -z "$ac_lib"; then
12047     ac_res="none required"
12048   else
12049     ac_res=-l$ac_lib
12050     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12051   fi
12052   if ac_fn_cxx_try_link "$LINENO"; then :
12053   ac_cv_search_RegOpenKeyExA=$ac_res
12054 fi
12055 rm -f core conftest.err conftest.$ac_objext \
12056     conftest$ac_exeext
12057   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12058   break
12059 fi
12060 done
12061 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12062
12063 else
12064   ac_cv_search_RegOpenKeyExA=no
12065 fi
12066 rm conftest.$ac_ext
12067 LIBS=$ac_func_search_save_LIBS
12068 fi
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12070 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12071 ac_res=$ac_cv_search_RegOpenKeyExA
12072 if test "$ac_res" != no; then :
12073   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12074
12075 else
12076   enable_win32_registry=no
12077 fi
12078
12079     fi
12080
12081     if test "x$enable_win32_registry" != xno; then
12082
12083 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12084
12085
12086       if test "x$enable_win32_registry" != xyes \
12087          && test "x$enable_win32_registry" != x; then
12088
12089 cat >>confdefs.h <<_ACEOF
12090 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12091 _ACEOF
12092
12093       fi
12094     fi
12095   ;;
12096 esac
12097
12098 # Get an absolute path to the GCC top-level source directory
12099 holddir=`${PWDCMD-pwd}`
12100 cd $srcdir
12101 topdir=`${PWDCMD-pwd}`
12102 cd $holddir
12103
12104 # Conditionalize the makefile for this host machine.
12105 xmake_file=
12106 for f in ${host_xmake_file}
12107 do
12108         if test -f ${srcdir}/config/$f
12109         then
12110                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12111         fi
12112 done
12113
12114 # Conditionalize the makefile for this target machine.
12115 tmake_file_=
12116 for f in ${tmake_file}
12117 do
12118         if test -f ${srcdir}/config/$f
12119         then
12120                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12121         fi
12122 done
12123 tmake_file="${tmake_file_}"
12124
12125 out_object_file=`basename $out_file .c`.o
12126 common_out_object_file=`basename $common_out_file .c`.o
12127
12128 tm_file_list="options.h"
12129 tm_include_list="options.h insn-constants.h"
12130 for f in $tm_file; do
12131   case $f in
12132     ./* )
12133        f=`echo $f | sed 's/^..//'`
12134        tm_file_list="${tm_file_list} $f"
12135        tm_include_list="${tm_include_list} $f"
12136        ;;
12137     defaults.h )
12138        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12139        tm_include_list="${tm_include_list} $f"
12140        ;;
12141     * )
12142        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12143        tm_include_list="${tm_include_list} config/$f"
12144        ;;
12145   esac
12146 done
12147
12148 tm_p_file_list=
12149 tm_p_include_list=
12150 for f in $tm_p_file; do
12151   case $f in
12152     tm-preds.h )
12153        tm_p_file_list="${tm_p_file_list} $f"
12154        tm_p_include_list="${tm_p_include_list} $f"
12155        ;;
12156     * )
12157        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12158        tm_p_include_list="${tm_p_include_list} config/$f"
12159   esac
12160 done
12161
12162 xm_file_list=
12163 xm_include_list=
12164 for f in $xm_file; do
12165   case $f in
12166     ansidecl.h )
12167        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12168        xm_include_list="${xm_include_list} $f"
12169        ;;
12170     auto-host.h )
12171        xm_file_list="${xm_file_list} $f"
12172        xm_include_list="${xm_include_list} $f"
12173        ;;
12174     * )
12175        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12176        xm_include_list="${xm_include_list} config/$f"
12177        ;;
12178   esac
12179 done
12180
12181 host_xm_file_list=
12182 host_xm_include_list=
12183 for f in $host_xm_file; do
12184   case $f in
12185     ansidecl.h )
12186        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12187        host_xm_include_list="${host_xm_include_list} $f"
12188        ;;
12189     auto-host.h )
12190        host_xm_file_list="${host_xm_file_list} $f"
12191        host_xm_include_list="${host_xm_include_list} $f"
12192        ;;
12193     * )
12194        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12195        host_xm_include_list="${host_xm_include_list} config/$f"
12196        ;;
12197   esac
12198 done
12199
12200 build_xm_file_list=
12201 for f in $build_xm_file; do
12202   case $f in
12203     ansidecl.h )
12204        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12205        build_xm_include_list="${build_xm_include_list} $f"
12206        ;;
12207     auto-build.h | auto-host.h )
12208        build_xm_file_list="${build_xm_file_list} $f"
12209        build_xm_include_list="${build_xm_include_list} $f"
12210        ;;
12211     * )
12212        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12213        build_xm_include_list="${build_xm_include_list} config/$f"
12214        ;;
12215   esac
12216 done
12217
12218 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12219 # cross-compiler which does not use the native headers and libraries.
12220 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12221 CROSS=
12222 ALL=all.internal
12223 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12224
12225 if test "x$with_build_sysroot" != x; then
12226   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12227 else
12228   # This value is used, even on a native system, because
12229   # CROSS_SYSTEM_HEADER_DIR is just
12230   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12231   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12232 fi
12233
12234 if test x$host != x$target
12235 then
12236         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12237         ALL=all.cross
12238         SYSTEM_HEADER_DIR=$build_system_header_dir
12239         case "$host","$target" in
12240         # Darwin crosses can use the host system's libraries and headers,
12241         # because of the fat library support.  Of course, it must be the
12242         # same version of Darwin on both sides.  Allow the user to
12243         # just say --target=foo-darwin without a version number to mean
12244         # "the version on this system".
12245             *-*-darwin*,*-*-darwin*)
12246                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12247                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12248                 if test $hostos = $targetos -o $targetos = darwin ; then
12249                     CROSS=
12250                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12251                     with_headers=yes
12252                 fi
12253                 ;;
12254
12255             i?86-*-*,x86_64-*-* \
12256             | powerpc*-*-*,powerpc64*-*-*)
12257                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12258         esac
12259
12260         case $target in
12261                 *-*-mingw*)
12262                         if test "x$with_headers" = x; then
12263                                 with_headers=yes
12264                         fi
12265                         ;;
12266                 *)
12267                         ;;
12268         esac
12269 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12270         SYSTEM_HEADER_DIR=$build_system_header_dir
12271 fi
12272
12273 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12274   if test "x$with_headers" != x; then
12275     target_header_dir=$with_headers
12276   elif test "x$with_sysroot" = x; then
12277     target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12278   elif test "x$with_build_sysroot" != "x"; then
12279     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12280   elif test "x$with_sysroot" = xyes; then
12281     target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12282   else
12283     target_header_dir="${with_sysroot}${native_system_header_dir}"
12284   fi
12285 else
12286   target_header_dir=${native_system_header_dir}
12287 fi
12288
12289 # If this is a cross-compiler that does not
12290 # have its own set of headers then define
12291 # inhibit_libc
12292
12293 # If this is using newlib, without having the headers available now,
12294 # then define inhibit_libc in LIBGCC2_CFLAGS.
12295 # This prevents libgcc2 from containing any code which requires libc
12296 # support.
12297 : ${inhibit_libc=false}
12298 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12299        test x$with_newlib = xyes ; } &&
12300      { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12301        inhibit_libc=true
12302 fi
12303
12304
12305 # When building gcc with a cross-compiler, we need to adjust things so
12306 # that the generator programs are still built with the native compiler.
12307 # Also, we cannot run fixincludes.
12308
12309 # These are the normal (build=host) settings:
12310 CC_FOR_BUILD='$(CC)'
12311 CXX_FOR_BUILD='$(CXX)'
12312 BUILD_CFLAGS='$(ALL_CFLAGS)'
12313 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12314 BUILD_LDFLAGS='$(LDFLAGS)'
12315 STMP_FIXINC=stmp-fixinc
12316
12317 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12318 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12319
12320 # And these apply if build != host, or we are generating coverage data
12321 if test x$build != x$host || test "x$coverage_flags" != x
12322 then
12323     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12324     BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12325     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12326
12327     NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12328     NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12329     BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12330     BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12331 fi
12332
12333
12334
12335 # Expand extra_headers to include complete path.
12336 # This substitutes for lots of t-* files.
12337 extra_headers_list=
12338 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12339 for file in ${extra_headers} ; do
12340   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12341 done
12342
12343 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12344 if test x"$use_gcc_tgmath" = xyes
12345 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12346 fi
12347
12348 # Define collect2 in Makefile.
12349 case $host_can_use_collect2 in
12350   no) collect2= ;;
12351   *) collect2='collect2$(exeext)' ;;
12352 esac
12353
12354
12355 # Add a definition of USE_COLLECT2 if system wants one.
12356 case $use_collect2 in
12357   no) use_collect2= ;;
12358   "") ;;
12359   *)
12360     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12361     xm_defines="${xm_defines} USE_COLLECT2"
12362     case $host_can_use_collect2 in
12363       no)
12364         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12365         ;;
12366     esac
12367     ;;
12368 esac
12369
12370
12371 cat >>confdefs.h <<_ACEOF
12372 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12373 _ACEOF
12374
12375
12376 # ---------------------------
12377 # Assembler & linker features
12378 # ---------------------------
12379
12380 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12381 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12382 # However when ld-new is first executed from the build tree, libtool will
12383 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12384 # to the build tree.  While doing this we need to use the previous-stage
12385 # linker, or we have an infinite loop.  The presence of a shell script as
12386 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12387 # the gcc/collect-ld script.  So we need to know how libtool works, or
12388 # exec-tool will fail.
12389
12390
12391 case `pwd` in
12392   *\ * | *\     *)
12393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12394 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12395 esac
12396
12397
12398
12399 macro_version='2.2.7a'
12400 macro_revision='1.3134'
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414 ltmain="$ac_aux_dir/ltmain.sh"
12415
12416 # Backslashify metacharacters that are still active within
12417 # double-quoted strings.
12418 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12419
12420 # Same as above, but do not quote variable references.
12421 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12422
12423 # Sed substitution to delay expansion of an escaped shell variable in a
12424 # double_quote_subst'ed string.
12425 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12426
12427 # Sed substitution to delay expansion of an escaped single quote.
12428 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12429
12430 # Sed substitution to avoid accidental globbing in evaled expressions
12431 no_glob_subst='s/\*/\\\*/g'
12432
12433 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12435 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12436
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12438 $as_echo_n "checking how to print strings... " >&6; }
12439 # Test print first, because it will be a builtin if present.
12440 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12441    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12442   ECHO='print -r --'
12443 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12444   ECHO='printf %s\n'
12445 else
12446   # Use this function as a fallback that always works.
12447   func_fallback_echo ()
12448   {
12449     eval 'cat <<_LTECHO_EOF
12450 $1
12451 _LTECHO_EOF'
12452   }
12453   ECHO='func_fallback_echo'
12454 fi
12455
12456 # func_echo_all arg...
12457 # Invoke $ECHO with all args, space-separated.
12458 func_echo_all ()
12459 {
12460     $ECHO ""
12461 }
12462
12463 case "$ECHO" in
12464   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12465 $as_echo "printf" >&6; } ;;
12466   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12467 $as_echo "print -r" >&6; } ;;
12468   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12469 $as_echo "cat" >&6; } ;;
12470 esac
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12486 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12487 if test "${ac_cv_path_SED+set}" = set; then :
12488   $as_echo_n "(cached) " >&6
12489 else
12490             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12491      for ac_i in 1 2 3 4 5 6 7; do
12492        ac_script="$ac_script$as_nl$ac_script"
12493      done
12494      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12495      { ac_script=; unset ac_script;}
12496      if test -z "$SED"; then
12497   ac_path_SED_found=false
12498   # Loop through the user's path and test for each of PROGNAME-LIST
12499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12501 do
12502   IFS=$as_save_IFS
12503   test -z "$as_dir" && as_dir=.
12504     for ac_prog in sed gsed; do
12505     for ac_exec_ext in '' $ac_executable_extensions; do
12506       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12507       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12508 # Check for GNU ac_path_SED and select it if it is found.
12509   # Check for GNU $ac_path_SED
12510 case `"$ac_path_SED" --version 2>&1` in
12511 *GNU*)
12512   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12513 *)
12514   ac_count=0
12515   $as_echo_n 0123456789 >"conftest.in"
12516   while :
12517   do
12518     cat "conftest.in" "conftest.in" >"conftest.tmp"
12519     mv "conftest.tmp" "conftest.in"
12520     cp "conftest.in" "conftest.nl"
12521     $as_echo '' >> "conftest.nl"
12522     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12523     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12524     as_fn_arith $ac_count + 1 && ac_count=$as_val
12525     if test $ac_count -gt ${ac_path_SED_max-0}; then
12526       # Best one so far, save it but keep looking for a better one
12527       ac_cv_path_SED="$ac_path_SED"
12528       ac_path_SED_max=$ac_count
12529     fi
12530     # 10*(2^10) chars as input seems more than enough
12531     test $ac_count -gt 10 && break
12532   done
12533   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12534 esac
12535
12536       $ac_path_SED_found && break 3
12537     done
12538   done
12539   done
12540 IFS=$as_save_IFS
12541   if test -z "$ac_cv_path_SED"; then
12542     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12543   fi
12544 else
12545   ac_cv_path_SED=$SED
12546 fi
12547
12548 fi
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12550 $as_echo "$ac_cv_path_SED" >&6; }
12551  SED="$ac_cv_path_SED"
12552   rm -f conftest.sed
12553
12554 test -z "$SED" && SED=sed
12555 Xsed="$SED -e 1s/^X//"
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12568 $as_echo_n "checking for fgrep... " >&6; }
12569 if test "${ac_cv_path_FGREP+set}" = set; then :
12570   $as_echo_n "(cached) " >&6
12571 else
12572   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12573    then ac_cv_path_FGREP="$GREP -F"
12574    else
12575      if test -z "$FGREP"; then
12576   ac_path_FGREP_found=false
12577   # Loop through the user's path and test for each of PROGNAME-LIST
12578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12580 do
12581   IFS=$as_save_IFS
12582   test -z "$as_dir" && as_dir=.
12583     for ac_prog in fgrep; do
12584     for ac_exec_ext in '' $ac_executable_extensions; do
12585       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12586       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12587 # Check for GNU ac_path_FGREP and select it if it is found.
12588   # Check for GNU $ac_path_FGREP
12589 case `"$ac_path_FGREP" --version 2>&1` in
12590 *GNU*)
12591   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12592 *)
12593   ac_count=0
12594   $as_echo_n 0123456789 >"conftest.in"
12595   while :
12596   do
12597     cat "conftest.in" "conftest.in" >"conftest.tmp"
12598     mv "conftest.tmp" "conftest.in"
12599     cp "conftest.in" "conftest.nl"
12600     $as_echo 'FGREP' >> "conftest.nl"
12601     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12602     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12603     as_fn_arith $ac_count + 1 && ac_count=$as_val
12604     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12605       # Best one so far, save it but keep looking for a better one
12606       ac_cv_path_FGREP="$ac_path_FGREP"
12607       ac_path_FGREP_max=$ac_count
12608     fi
12609     # 10*(2^10) chars as input seems more than enough
12610     test $ac_count -gt 10 && break
12611   done
12612   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12613 esac
12614
12615       $ac_path_FGREP_found && break 3
12616     done
12617   done
12618   done
12619 IFS=$as_save_IFS
12620   if test -z "$ac_cv_path_FGREP"; then
12621     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12622   fi
12623 else
12624   ac_cv_path_FGREP=$FGREP
12625 fi
12626
12627    fi
12628 fi
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12630 $as_echo "$ac_cv_path_FGREP" >&6; }
12631  FGREP="$ac_cv_path_FGREP"
12632
12633
12634 test -z "$GREP" && GREP=grep
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654 # Check whether --with-gnu-ld was given.
12655 if test "${with_gnu_ld+set}" = set; then :
12656   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12657 else
12658   with_gnu_ld=no
12659 fi
12660
12661 ac_prog=ld
12662 if test "$GCC" = yes; then
12663   # Check if gcc -print-prog-name=ld gives a path.
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12665 $as_echo_n "checking for ld used by $CC... " >&6; }
12666   case $host in
12667   *-*-mingw*)
12668     # gcc leaves a trailing carriage return which upsets mingw
12669     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12670   *)
12671     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12672   esac
12673   case $ac_prog in
12674     # Accept absolute paths.
12675     [\\/]* | ?:[\\/]*)
12676       re_direlt='/[^/][^/]*/\.\./'
12677       # Canonicalize the pathname of ld
12678       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12679       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12680         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12681       done
12682       test -z "$LD" && LD="$ac_prog"
12683       ;;
12684   "")
12685     # If it fails, then pretend we aren't using GCC.
12686     ac_prog=ld
12687     ;;
12688   *)
12689     # If it is relative, then search for the first ld in PATH.
12690     with_gnu_ld=unknown
12691     ;;
12692   esac
12693 elif test "$with_gnu_ld" = yes; then
12694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12695 $as_echo_n "checking for GNU ld... " >&6; }
12696 else
12697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12698 $as_echo_n "checking for non-GNU ld... " >&6; }
12699 fi
12700 if test "${lt_cv_path_LD+set}" = set; then :
12701   $as_echo_n "(cached) " >&6
12702 else
12703   if test -z "$LD"; then
12704   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12705   for ac_dir in $PATH; do
12706     IFS="$lt_save_ifs"
12707     test -z "$ac_dir" && ac_dir=.
12708     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12709       lt_cv_path_LD="$ac_dir/$ac_prog"
12710       # Check to see if the program is GNU ld.  I'd rather use --version,
12711       # but apparently some variants of GNU ld only accept -v.
12712       # Break only if it was the GNU/non-GNU ld that we prefer.
12713       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12714       *GNU* | *'with BFD'*)
12715         test "$with_gnu_ld" != no && break
12716         ;;
12717       *)
12718         test "$with_gnu_ld" != yes && break
12719         ;;
12720       esac
12721     fi
12722   done
12723   IFS="$lt_save_ifs"
12724 else
12725   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12726 fi
12727 fi
12728
12729 LD="$lt_cv_path_LD"
12730 if test -n "$LD"; then
12731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12732 $as_echo "$LD" >&6; }
12733 else
12734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12736 fi
12737 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12739 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12740 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12741   $as_echo_n "(cached) " >&6
12742 else
12743   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12744 case `$LD -v 2>&1 </dev/null` in
12745 *GNU* | *'with BFD'*)
12746   lt_cv_prog_gnu_ld=yes
12747   ;;
12748 *)
12749   lt_cv_prog_gnu_ld=no
12750   ;;
12751 esac
12752 fi
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12754 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12755 with_gnu_ld=$lt_cv_prog_gnu_ld
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12766 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12767 if test "${lt_cv_path_NM+set}" = set; then :
12768   $as_echo_n "(cached) " >&6
12769 else
12770   if test -n "$NM"; then
12771   # Let the user override the test.
12772   lt_cv_path_NM="$NM"
12773 else
12774   lt_nm_to_check="${ac_tool_prefix}nm"
12775   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12776     lt_nm_to_check="$lt_nm_to_check nm"
12777   fi
12778   for lt_tmp_nm in $lt_nm_to_check; do
12779     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12780     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12781       IFS="$lt_save_ifs"
12782       test -z "$ac_dir" && ac_dir=.
12783       tmp_nm="$ac_dir/$lt_tmp_nm"
12784       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12785         # Check to see if the nm accepts a BSD-compat flag.
12786         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12787         #   nm: unknown option "B" ignored
12788         # Tru64's nm complains that /dev/null is an invalid object file
12789         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12790         */dev/null* | *'Invalid file or object type'*)
12791           lt_cv_path_NM="$tmp_nm -B"
12792           break
12793           ;;
12794         *)
12795           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12796           */dev/null*)
12797             lt_cv_path_NM="$tmp_nm -p"
12798             break
12799             ;;
12800           *)
12801             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12802             continue # so that we can try to find one that supports BSD flags
12803             ;;
12804           esac
12805           ;;
12806         esac
12807       fi
12808     done
12809     IFS="$lt_save_ifs"
12810   done
12811   : ${lt_cv_path_NM=no}
12812 fi
12813 fi
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12815 $as_echo "$lt_cv_path_NM" >&6; }
12816 if test "$lt_cv_path_NM" != "no"; then
12817   NM="$lt_cv_path_NM"
12818 else
12819   # Didn't find any BSD compatible name lister, look for dumpbin.
12820   if test -n "$DUMPBIN"; then :
12821     # Let the user override the test.
12822   else
12823     if test -n "$ac_tool_prefix"; then
12824   for ac_prog in dumpbin "link -dump"
12825   do
12826     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829 $as_echo_n "checking for $ac_word... " >&6; }
12830 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12831   $as_echo_n "(cached) " >&6
12832 else
12833   if test -n "$DUMPBIN"; then
12834   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12835 else
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12838 do
12839   IFS=$as_save_IFS
12840   test -z "$as_dir" && as_dir=.
12841     for ac_exec_ext in '' $ac_executable_extensions; do
12842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12843     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12845     break 2
12846   fi
12847 done
12848   done
12849 IFS=$as_save_IFS
12850
12851 fi
12852 fi
12853 DUMPBIN=$ac_cv_prog_DUMPBIN
12854 if test -n "$DUMPBIN"; then
12855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12856 $as_echo "$DUMPBIN" >&6; }
12857 else
12858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859 $as_echo "no" >&6; }
12860 fi
12861
12862
12863     test -n "$DUMPBIN" && break
12864   done
12865 fi
12866 if test -z "$DUMPBIN"; then
12867   ac_ct_DUMPBIN=$DUMPBIN
12868   for ac_prog in dumpbin "link -dump"
12869 do
12870   # Extract the first word of "$ac_prog", so it can be a program name with args.
12871 set dummy $ac_prog; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12875   $as_echo_n "(cached) " >&6
12876 else
12877   if test -n "$ac_ct_DUMPBIN"; then
12878   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12879 else
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12882 do
12883   IFS=$as_save_IFS
12884   test -z "$as_dir" && as_dir=.
12885     for ac_exec_ext in '' $ac_executable_extensions; do
12886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889     break 2
12890   fi
12891 done
12892   done
12893 IFS=$as_save_IFS
12894
12895 fi
12896 fi
12897 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12898 if test -n "$ac_ct_DUMPBIN"; then
12899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12900 $as_echo "$ac_ct_DUMPBIN" >&6; }
12901 else
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12904 fi
12905
12906
12907   test -n "$ac_ct_DUMPBIN" && break
12908 done
12909
12910   if test "x$ac_ct_DUMPBIN" = x; then
12911     DUMPBIN=":"
12912   else
12913     case $cross_compiling:$ac_tool_warned in
12914 yes:)
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12917 ac_tool_warned=yes ;;
12918 esac
12919     DUMPBIN=$ac_ct_DUMPBIN
12920   fi
12921 fi
12922
12923     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12924     *COFF*)
12925       DUMPBIN="$DUMPBIN -symbols"
12926       ;;
12927     *)
12928       DUMPBIN=:
12929       ;;
12930     esac
12931   fi
12932
12933   if test "$DUMPBIN" != ":"; then
12934     NM="$DUMPBIN"
12935   fi
12936 fi
12937 test -z "$NM" && NM=nm
12938
12939
12940
12941
12942
12943
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12946 if test "${lt_cv_nm_interface+set}" = set; then :
12947   $as_echo_n "(cached) " >&6
12948 else
12949   lt_cv_nm_interface="BSD nm"
12950   echo "int some_variable = 0;" > conftest.$ac_ext
12951   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12952   (eval "$ac_compile" 2>conftest.err)
12953   cat conftest.err >&5
12954   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12955   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12956   cat conftest.err >&5
12957   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12958   cat conftest.out >&5
12959   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12960     lt_cv_nm_interface="MS dumpbin"
12961   fi
12962   rm -f conftest*
12963 fi
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12965 $as_echo "$lt_cv_nm_interface" >&6; }
12966
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12968 $as_echo_n "checking whether ln -s works... " >&6; }
12969 LN_S=$as_ln_s
12970 if test "$LN_S" = "ln -s"; then
12971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12972 $as_echo "yes" >&6; }
12973 else
12974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12975 $as_echo "no, using $LN_S" >&6; }
12976 fi
12977
12978 # find the maximum length of command line arguments
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12980 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12981 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12982   $as_echo_n "(cached) " >&6
12983 else
12984     i=0
12985   teststring="ABCD"
12986
12987   case $build_os in
12988   msdosdjgpp*)
12989     # On DJGPP, this test can blow up pretty badly due to problems in libc
12990     # (any single argument exceeding 2000 bytes causes a buffer overrun
12991     # during glob expansion).  Even if it were fixed, the result of this
12992     # check would be larger than it should be.
12993     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12994     ;;
12995
12996   gnu*)
12997     # Under GNU Hurd, this test is not required because there is
12998     # no limit to the length of command line arguments.
12999     # Libtool will interpret -1 as no limit whatsoever
13000     lt_cv_sys_max_cmd_len=-1;
13001     ;;
13002
13003   cygwin* | mingw* | cegcc*)
13004     # On Win9x/ME, this test blows up -- it succeeds, but takes
13005     # about 5 minutes as the teststring grows exponentially.
13006     # Worse, since 9x/ME are not pre-emptively multitasking,
13007     # you end up with a "frozen" computer, even though with patience
13008     # the test eventually succeeds (with a max line length of 256k).
13009     # Instead, let's just punt: use the minimum linelength reported by
13010     # all of the supported platforms: 8192 (on NT/2K/XP).
13011     lt_cv_sys_max_cmd_len=8192;
13012     ;;
13013
13014   mint*)
13015     # On MiNT this can take a long time and run out of memory.
13016     lt_cv_sys_max_cmd_len=8192;
13017     ;;
13018
13019   amigaos*)
13020     # On AmigaOS with pdksh, this test takes hours, literally.
13021     # So we just punt and use a minimum line length of 8192.
13022     lt_cv_sys_max_cmd_len=8192;
13023     ;;
13024
13025   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13026     # This has been around since 386BSD, at least.  Likely further.
13027     if test -x /sbin/sysctl; then
13028       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13029     elif test -x /usr/sbin/sysctl; then
13030       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13031     else
13032       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13033     fi
13034     # And add a safety zone
13035     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13036     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13037     ;;
13038
13039   interix*)
13040     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13041     lt_cv_sys_max_cmd_len=196608
13042     ;;
13043
13044   osf*)
13045     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13046     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13047     # nice to cause kernel panics so lets avoid the loop below.
13048     # First set a reasonable default.
13049     lt_cv_sys_max_cmd_len=16384
13050     #
13051     if test -x /sbin/sysconfig; then
13052       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13053         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13054       esac
13055     fi
13056     ;;
13057   sco3.2v5*)
13058     lt_cv_sys_max_cmd_len=102400
13059     ;;
13060   sysv5* | sco5v6* | sysv4.2uw2*)
13061     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13062     if test -n "$kargmax"; then
13063       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
13064     else
13065       lt_cv_sys_max_cmd_len=32768
13066     fi
13067     ;;
13068   *)
13069     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13070     if test -n "$lt_cv_sys_max_cmd_len"; then
13071       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13072       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13073     else
13074       # Make teststring a little bigger before we do anything with it.
13075       # a 1K string should be a reasonable start.
13076       for i in 1 2 3 4 5 6 7 8 ; do
13077         teststring=$teststring$teststring
13078       done
13079       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13080       # If test is not a shell built-in, we'll probably end up computing a
13081       # maximum length that is only half of the actual maximum length, but
13082       # we can't tell.
13083       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13084                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13085               test $i != 17 # 1/2 MB should be enough
13086       do
13087         i=`expr $i + 1`
13088         teststring=$teststring$teststring
13089       done
13090       # Only check the string length outside the loop.
13091       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13092       teststring=
13093       # Add a significant safety factor because C++ compilers can tack on
13094       # massive amounts of additional arguments before passing them to the
13095       # linker.  It appears as though 1/2 is a usable value.
13096       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13097     fi
13098     ;;
13099   esac
13100
13101 fi
13102
13103 if test -n $lt_cv_sys_max_cmd_len ; then
13104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13105 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13106 else
13107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13108 $as_echo "none" >&6; }
13109 fi
13110 max_cmd_len=$lt_cv_sys_max_cmd_len
13111
13112
13113
13114
13115
13116
13117 : ${CP="cp -f"}
13118 : ${MV="mv -f"}
13119 : ${RM="rm -f"}
13120
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13122 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13123 # Try some XSI features
13124 xsi_shell=no
13125 ( _lt_dummy="a/b/c"
13126   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13127       = c,a/b,, \
13128     && eval 'test $(( 1 + 1 )) -eq 2 \
13129     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13130   && xsi_shell=yes
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13132 $as_echo "$xsi_shell" >&6; }
13133
13134
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13136 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13137 lt_shell_append=no
13138 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13139     >/dev/null 2>&1 \
13140   && lt_shell_append=yes
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13142 $as_echo "$lt_shell_append" >&6; }
13143
13144
13145 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13146   lt_unset=unset
13147 else
13148   lt_unset=false
13149 fi
13150
13151
13152
13153
13154
13155 # test EBCDIC or ASCII
13156 case `echo X|tr X '\101'` in
13157  A) # ASCII based system
13158     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13159   lt_SP2NL='tr \040 \012'
13160   lt_NL2SP='tr \015\012 \040\040'
13161   ;;
13162  *) # EBCDIC based system
13163   lt_SP2NL='tr \100 \n'
13164   lt_NL2SP='tr \r\n \100\100'
13165   ;;
13166 esac
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13177 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13178 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13179   $as_echo_n "(cached) " >&6
13180 else
13181   lt_cv_ld_reload_flag='-r'
13182 fi
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13184 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13185 reload_flag=$lt_cv_ld_reload_flag
13186 case $reload_flag in
13187 "" | " "*) ;;
13188 *) reload_flag=" $reload_flag" ;;
13189 esac
13190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13191 case $host_os in
13192   darwin*)
13193     if test "$GCC" = yes; then
13194       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13195     else
13196       reload_cmds='$LD$reload_flag -o $output$reload_objs'
13197     fi
13198     ;;
13199 esac
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209 if test -n "$ac_tool_prefix"; then
13210   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13211 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13213 $as_echo_n "checking for $ac_word... " >&6; }
13214 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13215   $as_echo_n "(cached) " >&6
13216 else
13217   if test -n "$OBJDUMP"; then
13218   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13219 else
13220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $PATH
13222 do
13223   IFS=$as_save_IFS
13224   test -z "$as_dir" && as_dir=.
13225     for ac_exec_ext in '' $ac_executable_extensions; do
13226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13227     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229     break 2
13230   fi
13231 done
13232   done
13233 IFS=$as_save_IFS
13234
13235 fi
13236 fi
13237 OBJDUMP=$ac_cv_prog_OBJDUMP
13238 if test -n "$OBJDUMP"; then
13239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13240 $as_echo "$OBJDUMP" >&6; }
13241 else
13242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13244 fi
13245
13246
13247 fi
13248 if test -z "$ac_cv_prog_OBJDUMP"; then
13249   ac_ct_OBJDUMP=$OBJDUMP
13250   # Extract the first word of "objdump", so it can be a program name with args.
13251 set dummy objdump; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13255   $as_echo_n "(cached) " >&6
13256 else
13257   if test -n "$ac_ct_OBJDUMP"; then
13258   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13259 else
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13262 do
13263   IFS=$as_save_IFS
13264   test -z "$as_dir" && as_dir=.
13265     for ac_exec_ext in '' $ac_executable_extensions; do
13266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13267     ac_cv_prog_ac_ct_OBJDUMP="objdump"
13268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269     break 2
13270   fi
13271 done
13272   done
13273 IFS=$as_save_IFS
13274
13275 fi
13276 fi
13277 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13278 if test -n "$ac_ct_OBJDUMP"; then
13279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13280 $as_echo "$ac_ct_OBJDUMP" >&6; }
13281 else
13282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13284 fi
13285
13286   if test "x$ac_ct_OBJDUMP" = x; then
13287     OBJDUMP="false"
13288   else
13289     case $cross_compiling:$ac_tool_warned in
13290 yes:)
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13293 ac_tool_warned=yes ;;
13294 esac
13295     OBJDUMP=$ac_ct_OBJDUMP
13296   fi
13297 else
13298   OBJDUMP="$ac_cv_prog_OBJDUMP"
13299 fi
13300
13301 test -z "$OBJDUMP" && OBJDUMP=objdump
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13312 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13313 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13314   $as_echo_n "(cached) " >&6
13315 else
13316   lt_cv_file_magic_cmd='$MAGIC_CMD'
13317 lt_cv_file_magic_test_file=
13318 lt_cv_deplibs_check_method='unknown'
13319 # Need to set the preceding variable on all platforms that support
13320 # interlibrary dependencies.
13321 # 'none' -- dependencies not supported.
13322 # `unknown' -- same as none, but documents that we really don't know.
13323 # 'pass_all' -- all dependencies passed with no checks.
13324 # 'test_compile' -- check by making test program.
13325 # 'file_magic [[regex]]' -- check by looking for files in library path
13326 # which responds to the $file_magic_cmd with a given extended regex.
13327 # If you have `file' or equivalent on your system and you're not sure
13328 # whether `pass_all' will *always* work, you probably want this one.
13329
13330 case $host_os in
13331 aix[4-9]*)
13332   lt_cv_deplibs_check_method=pass_all
13333   ;;
13334
13335 beos*)
13336   lt_cv_deplibs_check_method=pass_all
13337   ;;
13338
13339 bsdi[45]*)
13340   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13341   lt_cv_file_magic_cmd='/usr/bin/file -L'
13342   lt_cv_file_magic_test_file=/shlib/libc.so
13343   ;;
13344
13345 cygwin*)
13346   # func_win32_libid is a shell function defined in ltmain.sh
13347   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13348   lt_cv_file_magic_cmd='func_win32_libid'
13349   ;;
13350
13351 mingw* | pw32*)
13352   # Base MSYS/MinGW do not provide the 'file' command needed by
13353   # func_win32_libid shell function, so use a weaker test based on 'objdump',
13354   # unless we find 'file', for example because we are cross-compiling.
13355   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13356   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13357     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13358     lt_cv_file_magic_cmd='func_win32_libid'
13359   else
13360     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13361     lt_cv_file_magic_cmd='$OBJDUMP -f'
13362   fi
13363   ;;
13364
13365 cegcc*)
13366   # use the weaker test based on 'objdump'. See mingw*.
13367   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13368   lt_cv_file_magic_cmd='$OBJDUMP -f'
13369   ;;
13370
13371 darwin* | rhapsody*)
13372   lt_cv_deplibs_check_method=pass_all
13373   ;;
13374
13375 freebsd* | dragonfly*)
13376   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13377     case $host_cpu in
13378     i*86 )
13379       # Not sure whether the presence of OpenBSD here was a mistake.
13380       # Let's accept both of them until this is cleared up.
13381       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13382       lt_cv_file_magic_cmd=/usr/bin/file
13383       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13384       ;;
13385     esac
13386   else
13387     lt_cv_deplibs_check_method=pass_all
13388   fi
13389   ;;
13390
13391 gnu*)
13392   lt_cv_deplibs_check_method=pass_all
13393   ;;
13394
13395 haiku*)
13396   lt_cv_deplibs_check_method=pass_all
13397   ;;
13398
13399 hpux10.20* | hpux11*)
13400   lt_cv_file_magic_cmd=/usr/bin/file
13401   case $host_cpu in
13402   ia64*)
13403     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13404     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13405     ;;
13406   hppa*64*)
13407     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]'
13408     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13409     ;;
13410   *)
13411     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13412     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13413     ;;
13414   esac
13415   ;;
13416
13417 interix[3-9]*)
13418   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13419   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13420   ;;
13421
13422 irix5* | irix6* | nonstopux*)
13423   case $LD in
13424   *-32|*"-32 ") libmagic=32-bit;;
13425   *-n32|*"-n32 ") libmagic=N32;;
13426   *-64|*"-64 ") libmagic=64-bit;;
13427   *) libmagic=never-match;;
13428   esac
13429   lt_cv_deplibs_check_method=pass_all
13430   ;;
13431
13432 # This must be Linux ELF.
13433 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13434   lt_cv_deplibs_check_method=pass_all
13435   ;;
13436
13437 netbsd*)
13438   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13439     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13440   else
13441     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13442   fi
13443   ;;
13444
13445 newos6*)
13446   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13447   lt_cv_file_magic_cmd=/usr/bin/file
13448   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13449   ;;
13450
13451 *nto* | *qnx*)
13452   lt_cv_deplibs_check_method=pass_all
13453   ;;
13454
13455 openbsd*)
13456   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13457     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13458   else
13459     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13460   fi
13461   ;;
13462
13463 osf3* | osf4* | osf5*)
13464   lt_cv_deplibs_check_method=pass_all
13465   ;;
13466
13467 rdos*)
13468   lt_cv_deplibs_check_method=pass_all
13469   ;;
13470
13471 solaris*)
13472   lt_cv_deplibs_check_method=pass_all
13473   ;;
13474
13475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13476   lt_cv_deplibs_check_method=pass_all
13477   ;;
13478
13479 sysv4 | sysv4.3*)
13480   case $host_vendor in
13481   motorola)
13482     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]'
13483     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13484     ;;
13485   ncr)
13486     lt_cv_deplibs_check_method=pass_all
13487     ;;
13488   sequent)
13489     lt_cv_file_magic_cmd='/bin/file'
13490     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13491     ;;
13492   sni)
13493     lt_cv_file_magic_cmd='/bin/file'
13494     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13495     lt_cv_file_magic_test_file=/lib/libc.so
13496     ;;
13497   siemens)
13498     lt_cv_deplibs_check_method=pass_all
13499     ;;
13500   pc)
13501     lt_cv_deplibs_check_method=pass_all
13502     ;;
13503   esac
13504   ;;
13505
13506 tpf*)
13507   lt_cv_deplibs_check_method=pass_all
13508   ;;
13509 esac
13510
13511 fi
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13513 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13514 file_magic_cmd=$lt_cv_file_magic_cmd
13515 deplibs_check_method=$lt_cv_deplibs_check_method
13516 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529 if test -n "$ac_tool_prefix"; then
13530   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13531 set dummy ${ac_tool_prefix}ar; ac_word=$2
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13533 $as_echo_n "checking for $ac_word... " >&6; }
13534 if test "${ac_cv_prog_AR+set}" = set; then :
13535   $as_echo_n "(cached) " >&6
13536 else
13537   if test -n "$AR"; then
13538   ac_cv_prog_AR="$AR" # Let the user override the test.
13539 else
13540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541 for as_dir in $PATH
13542 do
13543   IFS=$as_save_IFS
13544   test -z "$as_dir" && as_dir=.
13545     for ac_exec_ext in '' $ac_executable_extensions; do
13546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13547     ac_cv_prog_AR="${ac_tool_prefix}ar"
13548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13549     break 2
13550   fi
13551 done
13552   done
13553 IFS=$as_save_IFS
13554
13555 fi
13556 fi
13557 AR=$ac_cv_prog_AR
13558 if test -n "$AR"; then
13559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13560 $as_echo "$AR" >&6; }
13561 else
13562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563 $as_echo "no" >&6; }
13564 fi
13565
13566
13567 fi
13568 if test -z "$ac_cv_prog_AR"; then
13569   ac_ct_AR=$AR
13570   # Extract the first word of "ar", so it can be a program name with args.
13571 set dummy ar; ac_word=$2
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573 $as_echo_n "checking for $ac_word... " >&6; }
13574 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13575   $as_echo_n "(cached) " >&6
13576 else
13577   if test -n "$ac_ct_AR"; then
13578   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13579 else
13580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13582 do
13583   IFS=$as_save_IFS
13584   test -z "$as_dir" && as_dir=.
13585     for ac_exec_ext in '' $ac_executable_extensions; do
13586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13587     ac_cv_prog_ac_ct_AR="ar"
13588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13589     break 2
13590   fi
13591 done
13592   done
13593 IFS=$as_save_IFS
13594
13595 fi
13596 fi
13597 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13598 if test -n "$ac_ct_AR"; then
13599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13600 $as_echo "$ac_ct_AR" >&6; }
13601 else
13602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603 $as_echo "no" >&6; }
13604 fi
13605
13606   if test "x$ac_ct_AR" = x; then
13607     AR="false"
13608   else
13609     case $cross_compiling:$ac_tool_warned in
13610 yes:)
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13613 ac_tool_warned=yes ;;
13614 esac
13615     AR=$ac_ct_AR
13616   fi
13617 else
13618   AR="$ac_cv_prog_AR"
13619 fi
13620
13621 test -z "$AR" && AR=ar
13622 test -z "$AR_FLAGS" && AR_FLAGS=cru
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634 if test -n "$ac_tool_prefix"; then
13635   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13636 set dummy ${ac_tool_prefix}strip; ac_word=$2
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13638 $as_echo_n "checking for $ac_word... " >&6; }
13639 if test "${ac_cv_prog_STRIP+set}" = set; then :
13640   $as_echo_n "(cached) " >&6
13641 else
13642   if test -n "$STRIP"; then
13643   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13644 else
13645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646 for as_dir in $PATH
13647 do
13648   IFS=$as_save_IFS
13649   test -z "$as_dir" && as_dir=.
13650     for ac_exec_ext in '' $ac_executable_extensions; do
13651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13652     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13654     break 2
13655   fi
13656 done
13657   done
13658 IFS=$as_save_IFS
13659
13660 fi
13661 fi
13662 STRIP=$ac_cv_prog_STRIP
13663 if test -n "$STRIP"; then
13664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13665 $as_echo "$STRIP" >&6; }
13666 else
13667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668 $as_echo "no" >&6; }
13669 fi
13670
13671
13672 fi
13673 if test -z "$ac_cv_prog_STRIP"; then
13674   ac_ct_STRIP=$STRIP
13675   # Extract the first word of "strip", so it can be a program name with args.
13676 set dummy strip; ac_word=$2
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13678 $as_echo_n "checking for $ac_word... " >&6; }
13679 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13680   $as_echo_n "(cached) " >&6
13681 else
13682   if test -n "$ac_ct_STRIP"; then
13683   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13684 else
13685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13686 for as_dir in $PATH
13687 do
13688   IFS=$as_save_IFS
13689   test -z "$as_dir" && as_dir=.
13690     for ac_exec_ext in '' $ac_executable_extensions; do
13691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13692     ac_cv_prog_ac_ct_STRIP="strip"
13693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13694     break 2
13695   fi
13696 done
13697   done
13698 IFS=$as_save_IFS
13699
13700 fi
13701 fi
13702 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13703 if test -n "$ac_ct_STRIP"; then
13704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13705 $as_echo "$ac_ct_STRIP" >&6; }
13706 else
13707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13709 fi
13710
13711   if test "x$ac_ct_STRIP" = x; then
13712     STRIP=":"
13713   else
13714     case $cross_compiling:$ac_tool_warned in
13715 yes:)
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13718 ac_tool_warned=yes ;;
13719 esac
13720     STRIP=$ac_ct_STRIP
13721   fi
13722 else
13723   STRIP="$ac_cv_prog_STRIP"
13724 fi
13725
13726 test -z "$STRIP" && STRIP=:
13727
13728
13729
13730
13731
13732
13733 if test -n "$ac_tool_prefix"; then
13734   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13735 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737 $as_echo_n "checking for $ac_word... " >&6; }
13738 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13739   $as_echo_n "(cached) " >&6
13740 else
13741   if test -n "$RANLIB"; then
13742   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13743 else
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13746 do
13747   IFS=$as_save_IFS
13748   test -z "$as_dir" && as_dir=.
13749     for ac_exec_ext in '' $ac_executable_extensions; do
13750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13751     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13753     break 2
13754   fi
13755 done
13756   done
13757 IFS=$as_save_IFS
13758
13759 fi
13760 fi
13761 RANLIB=$ac_cv_prog_RANLIB
13762 if test -n "$RANLIB"; then
13763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13764 $as_echo "$RANLIB" >&6; }
13765 else
13766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13768 fi
13769
13770
13771 fi
13772 if test -z "$ac_cv_prog_RANLIB"; then
13773   ac_ct_RANLIB=$RANLIB
13774   # Extract the first word of "ranlib", so it can be a program name with args.
13775 set dummy ranlib; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13779   $as_echo_n "(cached) " >&6
13780 else
13781   if test -n "$ac_ct_RANLIB"; then
13782   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13783 else
13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13786 do
13787   IFS=$as_save_IFS
13788   test -z "$as_dir" && as_dir=.
13789     for ac_exec_ext in '' $ac_executable_extensions; do
13790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13791     ac_cv_prog_ac_ct_RANLIB="ranlib"
13792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793     break 2
13794   fi
13795 done
13796   done
13797 IFS=$as_save_IFS
13798
13799 fi
13800 fi
13801 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13802 if test -n "$ac_ct_RANLIB"; then
13803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13804 $as_echo "$ac_ct_RANLIB" >&6; }
13805 else
13806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807 $as_echo "no" >&6; }
13808 fi
13809
13810   if test "x$ac_ct_RANLIB" = x; then
13811     RANLIB=":"
13812   else
13813     case $cross_compiling:$ac_tool_warned in
13814 yes:)
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13817 ac_tool_warned=yes ;;
13818 esac
13819     RANLIB=$ac_ct_RANLIB
13820   fi
13821 else
13822   RANLIB="$ac_cv_prog_RANLIB"
13823 fi
13824
13825 test -z "$RANLIB" && RANLIB=:
13826
13827
13828
13829
13830
13831
13832 # Determine commands to create old-style static archives.
13833 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13834 old_postinstall_cmds='chmod 644 $oldlib'
13835 old_postuninstall_cmds=
13836
13837 if test -n "$RANLIB"; then
13838   case $host_os in
13839   openbsd*)
13840     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13841     ;;
13842   *)
13843     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13844     ;;
13845   esac
13846   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13847 fi
13848
13849 case $host_os in
13850   darwin*)
13851     lock_old_archive_extraction=yes ;;
13852   *)
13853     lock_old_archive_extraction=no ;;
13854 esac
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894 # If no C compiler was specified, use CC.
13895 LTCC=${LTCC-"$CC"}
13896
13897 # If no C compiler flags were specified, use CFLAGS.
13898 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13899
13900 # Allow CC to be a program name with arguments.
13901 compiler=$CC
13902
13903
13904 # Check for command to grab the raw symbol name followed by C symbol from nm.
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13906 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13907 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13908   $as_echo_n "(cached) " >&6
13909 else
13910
13911 # These are sane defaults that work on at least a few old systems.
13912 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13913
13914 # Character class describing NM global symbol codes.
13915 symcode='[BCDEGRST]'
13916
13917 # Regexp to match symbols that can be accessed directly from C.
13918 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13919
13920 # Define system-specific variables.
13921 case $host_os in
13922 aix*)
13923   symcode='[BCDT]'
13924   ;;
13925 cygwin* | mingw* | pw32* | cegcc*)
13926   symcode='[ABCDGISTW]'
13927   ;;
13928 hpux*)
13929   if test "$host_cpu" = ia64; then
13930     symcode='[ABCDEGRST]'
13931   fi
13932   ;;
13933 irix* | nonstopux*)
13934   symcode='[BCDEGRST]'
13935   ;;
13936 osf*)
13937   symcode='[BCDEGQRST]'
13938   ;;
13939 solaris*)
13940   symcode='[BDRT]'
13941   ;;
13942 sco3.2v5*)
13943   symcode='[DT]'
13944   ;;
13945 sysv4.2uw2*)
13946   symcode='[DT]'
13947   ;;
13948 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13949   symcode='[ABDT]'
13950   ;;
13951 sysv4)
13952   symcode='[DFNSTU]'
13953   ;;
13954 esac
13955
13956 # If we're using GNU nm, then use its standard symbol codes.
13957 case `$NM -V 2>&1` in
13958 *GNU* | *'with BFD'*)
13959   symcode='[ABCDGIRSTW]' ;;
13960 esac
13961
13962 # Transform an extracted symbol line into a proper C declaration.
13963 # Some systems (esp. on ia64) link data and code symbols differently,
13964 # so use this general approach.
13965 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13966
13967 # Transform an extracted symbol line into symbol name and symbol address
13968 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13969 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'"
13970
13971 # Handle CRLF in mingw tool chain
13972 opt_cr=
13973 case $build_os in
13974 mingw*)
13975   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13976   ;;
13977 esac
13978
13979 # Try without a prefix underscore, then with it.
13980 for ac_symprfx in "" "_"; do
13981
13982   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13983   symxfrm="\\1 $ac_symprfx\\2 \\2"
13984
13985   # Write the raw and C identifiers.
13986   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13987     # Fake it for dumpbin and say T for any non-static function
13988     # and D for any global variable.
13989     # Also find C++ and __fastcall symbols from MSVC++,
13990     # which start with @ or ?.
13991     lt_cv_sys_global_symbol_pipe="$AWK '"\
13992 "     {last_section=section; section=\$ 3};"\
13993 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13994 "     \$ 0!~/External *\|/{next};"\
13995 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13996 "     {if(hide[section]) next};"\
13997 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13998 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13999 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
14000 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14001 "     ' prfx=^$ac_symprfx"
14002   else
14003     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14004   fi
14005
14006   # Check to see that the pipe works correctly.
14007   pipe_works=no
14008
14009   rm -f conftest*
14010   cat > conftest.$ac_ext <<_LT_EOF
14011 #ifdef __cplusplus
14012 extern "C" {
14013 #endif
14014 char nm_test_var;
14015 void nm_test_func(void);
14016 void nm_test_func(void){}
14017 #ifdef __cplusplus
14018 }
14019 #endif
14020 int main(){nm_test_var='a';nm_test_func();return(0);}
14021 _LT_EOF
14022
14023   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14024   (eval $ac_compile) 2>&5
14025   ac_status=$?
14026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14027   test $ac_status = 0; }; then
14028     # Now try to grab the symbols.
14029     nlist=conftest.nm
14030     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14031   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14032   ac_status=$?
14033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14034   test $ac_status = 0; } && test -s "$nlist"; then
14035       # Try sorting and uniquifying the output.
14036       if sort "$nlist" | uniq > "$nlist"T; then
14037         mv -f "$nlist"T "$nlist"
14038       else
14039         rm -f "$nlist"T
14040       fi
14041
14042       # Make sure that we snagged all the symbols we need.
14043       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14044         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14045           cat <<_LT_EOF > conftest.$ac_ext
14046 #ifdef __cplusplus
14047 extern "C" {
14048 #endif
14049
14050 _LT_EOF
14051           # Now generate the symbol file.
14052           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14053
14054           cat <<_LT_EOF >> conftest.$ac_ext
14055
14056 /* The mapping between symbol names and symbols.  */
14057 const struct {
14058   const char *name;
14059   void       *address;
14060 }
14061 lt__PROGRAM__LTX_preloaded_symbols[] =
14062 {
14063   { "@PROGRAM@", (void *) 0 },
14064 _LT_EOF
14065           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14066           cat <<\_LT_EOF >> conftest.$ac_ext
14067   {0, (void *) 0}
14068 };
14069
14070 /* This works around a problem in FreeBSD linker */
14071 #ifdef FREEBSD_WORKAROUND
14072 static const void *lt_preloaded_setup() {
14073   return lt__PROGRAM__LTX_preloaded_symbols;
14074 }
14075 #endif
14076
14077 #ifdef __cplusplus
14078 }
14079 #endif
14080 _LT_EOF
14081           # Now try linking the two files.
14082           mv conftest.$ac_objext conftstm.$ac_objext
14083           lt_save_LIBS="$LIBS"
14084           lt_save_CFLAGS="$CFLAGS"
14085           LIBS="conftstm.$ac_objext"
14086           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14087           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14088   (eval $ac_link) 2>&5
14089   ac_status=$?
14090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14091   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14092             pipe_works=yes
14093           fi
14094           LIBS="$lt_save_LIBS"
14095           CFLAGS="$lt_save_CFLAGS"
14096         else
14097           echo "cannot find nm_test_func in $nlist" >&5
14098         fi
14099       else
14100         echo "cannot find nm_test_var in $nlist" >&5
14101       fi
14102     else
14103       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14104     fi
14105   else
14106     echo "$progname: failed program was:" >&5
14107     cat conftest.$ac_ext >&5
14108   fi
14109   rm -rf conftest* conftst*
14110
14111   # Do not use the global_symbol_pipe unless it works.
14112   if test "$pipe_works" = yes; then
14113     break
14114   else
14115     lt_cv_sys_global_symbol_pipe=
14116   fi
14117 done
14118
14119 fi
14120
14121 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14122   lt_cv_sys_global_symbol_to_cdecl=
14123 fi
14124 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14126 $as_echo "failed" >&6; }
14127 else
14128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14129 $as_echo "ok" >&6; }
14130 fi
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153 # Check whether --enable-libtool-lock was given.
14154 if test "${enable_libtool_lock+set}" = set; then :
14155   enableval=$enable_libtool_lock;
14156 fi
14157
14158 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14159
14160 # Some flags need to be propagated to the compiler or linker for good
14161 # libtool support.
14162 case $host in
14163 ia64-*-hpux*)
14164   # Find out which ABI we are using.
14165   echo 'int i;' > conftest.$ac_ext
14166   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14167   (eval $ac_compile) 2>&5
14168   ac_status=$?
14169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170   test $ac_status = 0; }; then
14171     case `/usr/bin/file conftest.$ac_objext` in
14172       *ELF-32*)
14173         HPUX_IA64_MODE="32"
14174         ;;
14175       *ELF-64*)
14176         HPUX_IA64_MODE="64"
14177         ;;
14178     esac
14179   fi
14180   rm -rf conftest*
14181   ;;
14182 *-*-irix6*)
14183   # Find out which ABI we are using.
14184   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14185   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14186   (eval $ac_compile) 2>&5
14187   ac_status=$?
14188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14189   test $ac_status = 0; }; then
14190     if test "$lt_cv_prog_gnu_ld" = yes; then
14191       case `/usr/bin/file conftest.$ac_objext` in
14192         *32-bit*)
14193           LD="${LD-ld} -melf32bsmip"
14194           ;;
14195         *N32*)
14196           LD="${LD-ld} -melf32bmipn32"
14197           ;;
14198         *64-bit*)
14199           LD="${LD-ld} -melf64bmip"
14200         ;;
14201       esac
14202     else
14203       case `/usr/bin/file conftest.$ac_objext` in
14204         *32-bit*)
14205           LD="${LD-ld} -32"
14206           ;;
14207         *N32*)
14208           LD="${LD-ld} -n32"
14209           ;;
14210         *64-bit*)
14211           LD="${LD-ld} -64"
14212           ;;
14213       esac
14214     fi
14215   fi
14216   rm -rf conftest*
14217   ;;
14218
14219 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14220 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14221   # Find out which ABI we are using.
14222   echo 'int i;' > conftest.$ac_ext
14223   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14224   (eval $ac_compile) 2>&5
14225   ac_status=$?
14226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227   test $ac_status = 0; }; then
14228     case `/usr/bin/file conftest.o` in
14229       *32-bit*)
14230         case $host in
14231           x86_64-*kfreebsd*-gnu)
14232             LD="${LD-ld} -m elf_i386_fbsd"
14233             ;;
14234           x86_64-*linux*)
14235             case `/usr/bin/file conftest.o` in
14236               *x86-64*)
14237                 LD="${LD-ld} -m elf32_x86_64"
14238                 ;;
14239               *)
14240                 LD="${LD-ld} -m elf_i386"
14241                 ;;
14242             esac
14243             ;;
14244           powerpc64le-*linux*)
14245             LD="${LD-ld} -m elf32lppclinux"
14246             ;;
14247           powerpc64-*linux*)
14248             LD="${LD-ld} -m elf32ppclinux"
14249             ;;
14250           s390x-*linux*)
14251             LD="${LD-ld} -m elf_s390"
14252             ;;
14253           sparc64-*linux*)
14254             LD="${LD-ld} -m elf32_sparc"
14255             ;;
14256         esac
14257         ;;
14258       *64-bit*)
14259         case $host in
14260           x86_64-*kfreebsd*-gnu)
14261             LD="${LD-ld} -m elf_x86_64_fbsd"
14262             ;;
14263           x86_64-*linux*)
14264             LD="${LD-ld} -m elf_x86_64"
14265             ;;
14266           powerpcle-*linux*)
14267             LD="${LD-ld} -m elf64lppc"
14268             ;;
14269           powerpc-*linux*)
14270             LD="${LD-ld} -m elf64ppc"
14271             ;;
14272           s390*-*linux*|s390*-*tpf*)
14273             LD="${LD-ld} -m elf64_s390"
14274             ;;
14275           sparc*-*linux*)
14276             LD="${LD-ld} -m elf64_sparc"
14277             ;;
14278         esac
14279         ;;
14280     esac
14281   fi
14282   rm -rf conftest*
14283   ;;
14284
14285 *-*-sco3.2v5*)
14286   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14287   SAVE_CFLAGS="$CFLAGS"
14288   CFLAGS="$CFLAGS -belf"
14289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14290 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14291 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14292   $as_echo_n "(cached) " >&6
14293 else
14294   ac_ext=c
14295 ac_cpp='$CPP $CPPFLAGS'
14296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14299
14300      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h.  */
14302
14303 int
14304 main ()
14305 {
14306
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 if ac_fn_c_try_link "$LINENO"; then :
14312   lt_cv_cc_needs_belf=yes
14313 else
14314   lt_cv_cc_needs_belf=no
14315 fi
14316 rm -f core conftest.err conftest.$ac_objext \
14317     conftest$ac_exeext conftest.$ac_ext
14318      ac_ext=c
14319 ac_cpp='$CPP $CPPFLAGS'
14320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14323
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14326 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14327   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14328     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14329     CFLAGS="$SAVE_CFLAGS"
14330   fi
14331   ;;
14332 sparc*-*solaris*)
14333   # Find out which ABI we are using.
14334   echo 'int i;' > conftest.$ac_ext
14335   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14336   (eval $ac_compile) 2>&5
14337   ac_status=$?
14338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14339   test $ac_status = 0; }; then
14340     case `/usr/bin/file conftest.o` in
14341     *64-bit*)
14342       case $lt_cv_prog_gnu_ld in
14343       yes*) LD="${LD-ld} -m elf64_sparc" ;;
14344       *)
14345         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14346           LD="${LD-ld} -64"
14347         fi
14348         ;;
14349       esac
14350       ;;
14351     esac
14352   fi
14353   rm -rf conftest*
14354   ;;
14355 esac
14356
14357 need_locks="$enable_libtool_lock"
14358
14359
14360   case $host_os in
14361     rhapsody* | darwin*)
14362     if test -n "$ac_tool_prefix"; then
14363   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14364 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14366 $as_echo_n "checking for $ac_word... " >&6; }
14367 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14368   $as_echo_n "(cached) " >&6
14369 else
14370   if test -n "$DSYMUTIL"; then
14371   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14372 else
14373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14374 for as_dir in $PATH
14375 do
14376   IFS=$as_save_IFS
14377   test -z "$as_dir" && as_dir=.
14378     for ac_exec_ext in '' $ac_executable_extensions; do
14379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14380     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14382     break 2
14383   fi
14384 done
14385   done
14386 IFS=$as_save_IFS
14387
14388 fi
14389 fi
14390 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14391 if test -n "$DSYMUTIL"; then
14392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14393 $as_echo "$DSYMUTIL" >&6; }
14394 else
14395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14396 $as_echo "no" >&6; }
14397 fi
14398
14399
14400 fi
14401 if test -z "$ac_cv_prog_DSYMUTIL"; then
14402   ac_ct_DSYMUTIL=$DSYMUTIL
14403   # Extract the first word of "dsymutil", so it can be a program name with args.
14404 set dummy dsymutil; ac_word=$2
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14406 $as_echo_n "checking for $ac_word... " >&6; }
14407 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14408   $as_echo_n "(cached) " >&6
14409 else
14410   if test -n "$ac_ct_DSYMUTIL"; then
14411   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14412 else
14413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14414 for as_dir in $PATH
14415 do
14416   IFS=$as_save_IFS
14417   test -z "$as_dir" && as_dir=.
14418     for ac_exec_ext in '' $ac_executable_extensions; do
14419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14420     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14422     break 2
14423   fi
14424 done
14425   done
14426 IFS=$as_save_IFS
14427
14428 fi
14429 fi
14430 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14431 if test -n "$ac_ct_DSYMUTIL"; then
14432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14433 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14434 else
14435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436 $as_echo "no" >&6; }
14437 fi
14438
14439   if test "x$ac_ct_DSYMUTIL" = x; then
14440     DSYMUTIL=":"
14441   else
14442     case $cross_compiling:$ac_tool_warned in
14443 yes:)
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14446 ac_tool_warned=yes ;;
14447 esac
14448     DSYMUTIL=$ac_ct_DSYMUTIL
14449   fi
14450 else
14451   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14452 fi
14453
14454     if test -n "$ac_tool_prefix"; then
14455   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14456 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14458 $as_echo_n "checking for $ac_word... " >&6; }
14459 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14460   $as_echo_n "(cached) " >&6
14461 else
14462   if test -n "$NMEDIT"; then
14463   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14464 else
14465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14466 for as_dir in $PATH
14467 do
14468   IFS=$as_save_IFS
14469   test -z "$as_dir" && as_dir=.
14470     for ac_exec_ext in '' $ac_executable_extensions; do
14471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14472     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14474     break 2
14475   fi
14476 done
14477   done
14478 IFS=$as_save_IFS
14479
14480 fi
14481 fi
14482 NMEDIT=$ac_cv_prog_NMEDIT
14483 if test -n "$NMEDIT"; then
14484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14485 $as_echo "$NMEDIT" >&6; }
14486 else
14487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 $as_echo "no" >&6; }
14489 fi
14490
14491
14492 fi
14493 if test -z "$ac_cv_prog_NMEDIT"; then
14494   ac_ct_NMEDIT=$NMEDIT
14495   # Extract the first word of "nmedit", so it can be a program name with args.
14496 set dummy nmedit; ac_word=$2
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14498 $as_echo_n "checking for $ac_word... " >&6; }
14499 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14500   $as_echo_n "(cached) " >&6
14501 else
14502   if test -n "$ac_ct_NMEDIT"; then
14503   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14504 else
14505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14506 for as_dir in $PATH
14507 do
14508   IFS=$as_save_IFS
14509   test -z "$as_dir" && as_dir=.
14510     for ac_exec_ext in '' $ac_executable_extensions; do
14511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14512     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14514     break 2
14515   fi
14516 done
14517   done
14518 IFS=$as_save_IFS
14519
14520 fi
14521 fi
14522 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14523 if test -n "$ac_ct_NMEDIT"; then
14524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14525 $as_echo "$ac_ct_NMEDIT" >&6; }
14526 else
14527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14528 $as_echo "no" >&6; }
14529 fi
14530
14531   if test "x$ac_ct_NMEDIT" = x; then
14532     NMEDIT=":"
14533   else
14534     case $cross_compiling:$ac_tool_warned in
14535 yes:)
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14538 ac_tool_warned=yes ;;
14539 esac
14540     NMEDIT=$ac_ct_NMEDIT
14541   fi
14542 else
14543   NMEDIT="$ac_cv_prog_NMEDIT"
14544 fi
14545
14546     if test -n "$ac_tool_prefix"; then
14547   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14548 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14550 $as_echo_n "checking for $ac_word... " >&6; }
14551 if test "${ac_cv_prog_LIPO+set}" = set; then :
14552   $as_echo_n "(cached) " >&6
14553 else
14554   if test -n "$LIPO"; then
14555   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14556 else
14557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558 for as_dir in $PATH
14559 do
14560   IFS=$as_save_IFS
14561   test -z "$as_dir" && as_dir=.
14562     for ac_exec_ext in '' $ac_executable_extensions; do
14563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14564     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14566     break 2
14567   fi
14568 done
14569   done
14570 IFS=$as_save_IFS
14571
14572 fi
14573 fi
14574 LIPO=$ac_cv_prog_LIPO
14575 if test -n "$LIPO"; then
14576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14577 $as_echo "$LIPO" >&6; }
14578 else
14579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14580 $as_echo "no" >&6; }
14581 fi
14582
14583
14584 fi
14585 if test -z "$ac_cv_prog_LIPO"; then
14586   ac_ct_LIPO=$LIPO
14587   # Extract the first word of "lipo", so it can be a program name with args.
14588 set dummy lipo; ac_word=$2
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14590 $as_echo_n "checking for $ac_word... " >&6; }
14591 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14592   $as_echo_n "(cached) " >&6
14593 else
14594   if test -n "$ac_ct_LIPO"; then
14595   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14596 else
14597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14598 for as_dir in $PATH
14599 do
14600   IFS=$as_save_IFS
14601   test -z "$as_dir" && as_dir=.
14602     for ac_exec_ext in '' $ac_executable_extensions; do
14603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14604     ac_cv_prog_ac_ct_LIPO="lipo"
14605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14606     break 2
14607   fi
14608 done
14609   done
14610 IFS=$as_save_IFS
14611
14612 fi
14613 fi
14614 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14615 if test -n "$ac_ct_LIPO"; then
14616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14617 $as_echo "$ac_ct_LIPO" >&6; }
14618 else
14619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14620 $as_echo "no" >&6; }
14621 fi
14622
14623   if test "x$ac_ct_LIPO" = x; then
14624     LIPO=":"
14625   else
14626     case $cross_compiling:$ac_tool_warned in
14627 yes:)
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14630 ac_tool_warned=yes ;;
14631 esac
14632     LIPO=$ac_ct_LIPO
14633   fi
14634 else
14635   LIPO="$ac_cv_prog_LIPO"
14636 fi
14637
14638     if test -n "$ac_tool_prefix"; then
14639   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14640 set dummy ${ac_tool_prefix}otool; ac_word=$2
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14642 $as_echo_n "checking for $ac_word... " >&6; }
14643 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14644   $as_echo_n "(cached) " >&6
14645 else
14646   if test -n "$OTOOL"; then
14647   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14648 else
14649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14650 for as_dir in $PATH
14651 do
14652   IFS=$as_save_IFS
14653   test -z "$as_dir" && as_dir=.
14654     for ac_exec_ext in '' $ac_executable_extensions; do
14655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14656     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14658     break 2
14659   fi
14660 done
14661   done
14662 IFS=$as_save_IFS
14663
14664 fi
14665 fi
14666 OTOOL=$ac_cv_prog_OTOOL
14667 if test -n "$OTOOL"; then
14668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14669 $as_echo "$OTOOL" >&6; }
14670 else
14671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14672 $as_echo "no" >&6; }
14673 fi
14674
14675
14676 fi
14677 if test -z "$ac_cv_prog_OTOOL"; then
14678   ac_ct_OTOOL=$OTOOL
14679   # Extract the first word of "otool", so it can be a program name with args.
14680 set dummy otool; ac_word=$2
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14682 $as_echo_n "checking for $ac_word... " >&6; }
14683 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14684   $as_echo_n "(cached) " >&6
14685 else
14686   if test -n "$ac_ct_OTOOL"; then
14687   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14688 else
14689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14690 for as_dir in $PATH
14691 do
14692   IFS=$as_save_IFS
14693   test -z "$as_dir" && as_dir=.
14694     for ac_exec_ext in '' $ac_executable_extensions; do
14695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14696     ac_cv_prog_ac_ct_OTOOL="otool"
14697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14698     break 2
14699   fi
14700 done
14701   done
14702 IFS=$as_save_IFS
14703
14704 fi
14705 fi
14706 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14707 if test -n "$ac_ct_OTOOL"; then
14708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14709 $as_echo "$ac_ct_OTOOL" >&6; }
14710 else
14711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712 $as_echo "no" >&6; }
14713 fi
14714
14715   if test "x$ac_ct_OTOOL" = x; then
14716     OTOOL=":"
14717   else
14718     case $cross_compiling:$ac_tool_warned in
14719 yes:)
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14722 ac_tool_warned=yes ;;
14723 esac
14724     OTOOL=$ac_ct_OTOOL
14725   fi
14726 else
14727   OTOOL="$ac_cv_prog_OTOOL"
14728 fi
14729
14730     if test -n "$ac_tool_prefix"; then
14731   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14732 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14734 $as_echo_n "checking for $ac_word... " >&6; }
14735 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14736   $as_echo_n "(cached) " >&6
14737 else
14738   if test -n "$OTOOL64"; then
14739   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14740 else
14741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14742 for as_dir in $PATH
14743 do
14744   IFS=$as_save_IFS
14745   test -z "$as_dir" && as_dir=.
14746     for ac_exec_ext in '' $ac_executable_extensions; do
14747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14748     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14750     break 2
14751   fi
14752 done
14753   done
14754 IFS=$as_save_IFS
14755
14756 fi
14757 fi
14758 OTOOL64=$ac_cv_prog_OTOOL64
14759 if test -n "$OTOOL64"; then
14760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14761 $as_echo "$OTOOL64" >&6; }
14762 else
14763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764 $as_echo "no" >&6; }
14765 fi
14766
14767
14768 fi
14769 if test -z "$ac_cv_prog_OTOOL64"; then
14770   ac_ct_OTOOL64=$OTOOL64
14771   # Extract the first word of "otool64", so it can be a program name with args.
14772 set dummy otool64; ac_word=$2
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14774 $as_echo_n "checking for $ac_word... " >&6; }
14775 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14776   $as_echo_n "(cached) " >&6
14777 else
14778   if test -n "$ac_ct_OTOOL64"; then
14779   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14780 else
14781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14782 for as_dir in $PATH
14783 do
14784   IFS=$as_save_IFS
14785   test -z "$as_dir" && as_dir=.
14786     for ac_exec_ext in '' $ac_executable_extensions; do
14787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14788     ac_cv_prog_ac_ct_OTOOL64="otool64"
14789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14790     break 2
14791   fi
14792 done
14793   done
14794 IFS=$as_save_IFS
14795
14796 fi
14797 fi
14798 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14799 if test -n "$ac_ct_OTOOL64"; then
14800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14801 $as_echo "$ac_ct_OTOOL64" >&6; }
14802 else
14803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14804 $as_echo "no" >&6; }
14805 fi
14806
14807   if test "x$ac_ct_OTOOL64" = x; then
14808     OTOOL64=":"
14809   else
14810     case $cross_compiling:$ac_tool_warned in
14811 yes:)
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14814 ac_tool_warned=yes ;;
14815 esac
14816     OTOOL64=$ac_ct_OTOOL64
14817   fi
14818 else
14819   OTOOL64="$ac_cv_prog_OTOOL64"
14820 fi
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14849 $as_echo_n "checking for -single_module linker flag... " >&6; }
14850 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14851   $as_echo_n "(cached) " >&6
14852 else
14853   lt_cv_apple_cc_single_mod=no
14854       if test -z "${LT_MULTI_MODULE}"; then
14855         # By default we will add the -single_module flag. You can override
14856         # by either setting the environment variable LT_MULTI_MODULE
14857         # non-empty at configure time, or by adding -multi_module to the
14858         # link flags.
14859         rm -rf libconftest.dylib*
14860         echo "int foo(void){return 1;}" > conftest.c
14861         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14862 -dynamiclib -Wl,-single_module conftest.c" >&5
14863         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14864           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14865         _lt_result=$?
14866         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14867           lt_cv_apple_cc_single_mod=yes
14868         else
14869           cat conftest.err >&5
14870         fi
14871         rm -rf libconftest.dylib*
14872         rm -f conftest.*
14873       fi
14874 fi
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14876 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14878 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14879 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14880   $as_echo_n "(cached) " >&6
14881 else
14882   lt_cv_ld_exported_symbols_list=no
14883       save_LDFLAGS=$LDFLAGS
14884       echo "_main" > conftest.sym
14885       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14886       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14887 /* end confdefs.h.  */
14888
14889 int
14890 main ()
14891 {
14892
14893   ;
14894   return 0;
14895 }
14896 _ACEOF
14897 if ac_fn_c_try_link "$LINENO"; then :
14898   lt_cv_ld_exported_symbols_list=yes
14899 else
14900   lt_cv_ld_exported_symbols_list=no
14901 fi
14902 rm -f core conftest.err conftest.$ac_objext \
14903     conftest$ac_exeext conftest.$ac_ext
14904         LDFLAGS="$save_LDFLAGS"
14905
14906 fi
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14908 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14910 $as_echo_n "checking for -force_load linker flag... " >&6; }
14911 if test "${lt_cv_ld_force_load+set}" = set; then :
14912   $as_echo_n "(cached) " >&6
14913 else
14914   lt_cv_ld_force_load=no
14915       cat > conftest.c << _LT_EOF
14916 int forced_loaded() { return 2;}
14917 _LT_EOF
14918       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14919       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14920       echo "$AR cru libconftest.a conftest.o" >&5
14921       $AR cru libconftest.a conftest.o 2>&5
14922       cat > conftest.c << _LT_EOF
14923 int main() { return 0;}
14924 _LT_EOF
14925       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14926       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14927       _lt_result=$?
14928       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14929         lt_cv_ld_force_load=yes
14930       else
14931         cat conftest.err >&5
14932       fi
14933         rm -f conftest.err libconftest.a conftest conftest.c
14934         rm -rf conftest.dSYM
14935
14936 fi
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14938 $as_echo "$lt_cv_ld_force_load" >&6; }
14939     case $host_os in
14940     rhapsody* | darwin1.[012])
14941       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14942     darwin1.*)
14943       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14944     darwin*) # darwin 5.x on
14945       # if running on 10.5 or later, the deployment target defaults
14946       # to the OS version, if on x86, and 10.4, the deployment
14947       # target defaults to 10.4. Don't you love it?
14948       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14949         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14950           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14951         10.[012][,.]*)
14952           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14953         10.*)
14954           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14955       esac
14956     ;;
14957   esac
14958     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14959       _lt_dar_single_mod='$single_module'
14960     fi
14961     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14962       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14963     else
14964       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14965     fi
14966     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14967       _lt_dsymutil='~$DSYMUTIL $lib || :'
14968     else
14969       _lt_dsymutil=
14970     fi
14971     ;;
14972   esac
14973
14974
14975 for ac_header in dlfcn.h
14976 do :
14977   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14978 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14979   cat >>confdefs.h <<_ACEOF
14980 #define HAVE_DLFCN_H 1
14981 _ACEOF
14982
14983 fi
14984 done
14985
14986
14987
14988
14989
14990 # Set options
14991
14992
14993
14994         enable_dlopen=no
14995
14996
14997   enable_win32_dll=no
14998
14999
15000             # Check whether --enable-shared was given.
15001 if test "${enable_shared+set}" = set; then :
15002   enableval=$enable_shared; p=${PACKAGE-default}
15003     case $enableval in
15004     yes) enable_shared=yes ;;
15005     no) enable_shared=no ;;
15006     *)
15007       enable_shared=no
15008       # Look at the argument we got.  We use all the common list separators.
15009       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15010       for pkg in $enableval; do
15011         IFS="$lt_save_ifs"
15012         if test "X$pkg" = "X$p"; then
15013           enable_shared=yes
15014         fi
15015       done
15016       IFS="$lt_save_ifs"
15017       ;;
15018     esac
15019 else
15020   enable_shared=yes
15021 fi
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031   # Check whether --enable-static was given.
15032 if test "${enable_static+set}" = set; then :
15033   enableval=$enable_static; p=${PACKAGE-default}
15034     case $enableval in
15035     yes) enable_static=yes ;;
15036     no) enable_static=no ;;
15037     *)
15038      enable_static=no
15039       # Look at the argument we got.  We use all the common list separators.
15040       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15041       for pkg in $enableval; do
15042         IFS="$lt_save_ifs"
15043         if test "X$pkg" = "X$p"; then
15044           enable_static=yes
15045         fi
15046       done
15047       IFS="$lt_save_ifs"
15048       ;;
15049     esac
15050 else
15051   enable_static=yes
15052 fi
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063 # Check whether --with-pic was given.
15064 if test "${with_pic+set}" = set; then :
15065   withval=$with_pic; pic_mode="$withval"
15066 else
15067   pic_mode=default
15068 fi
15069
15070
15071 test -z "$pic_mode" && pic_mode=default
15072
15073
15074
15075
15076
15077
15078
15079   # Check whether --enable-fast-install was given.
15080 if test "${enable_fast_install+set}" = set; then :
15081   enableval=$enable_fast_install; p=${PACKAGE-default}
15082     case $enableval in
15083     yes) enable_fast_install=yes ;;
15084     no) enable_fast_install=no ;;
15085     *)
15086       enable_fast_install=no
15087       # Look at the argument we got.  We use all the common list separators.
15088       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15089       for pkg in $enableval; do
15090         IFS="$lt_save_ifs"
15091         if test "X$pkg" = "X$p"; then
15092           enable_fast_install=yes
15093         fi
15094       done
15095       IFS="$lt_save_ifs"
15096       ;;
15097     esac
15098 else
15099   enable_fast_install=yes
15100 fi
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112 # This can be used to rebuild libtool when needed
15113 LIBTOOL_DEPS="$ltmain"
15114
15115 # Always use our own libtool.
15116 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143 test -z "$LN_S" && LN_S="ln -s"
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158 if test -n "${ZSH_VERSION+set}" ; then
15159    setopt NO_GLOB_SUBST
15160 fi
15161
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15163 $as_echo_n "checking for objdir... " >&6; }
15164 if test "${lt_cv_objdir+set}" = set; then :
15165   $as_echo_n "(cached) " >&6
15166 else
15167   rm -f .libs 2>/dev/null
15168 mkdir .libs 2>/dev/null
15169 if test -d .libs; then
15170   lt_cv_objdir=.libs
15171 else
15172   # MS-DOS does not allow filenames that begin with a dot.
15173   lt_cv_objdir=_libs
15174 fi
15175 rmdir .libs 2>/dev/null
15176 fi
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15178 $as_echo "$lt_cv_objdir" >&6; }
15179 objdir=$lt_cv_objdir
15180
15181
15182
15183
15184
15185 cat >>confdefs.h <<_ACEOF
15186 #define LT_OBJDIR "$lt_cv_objdir/"
15187 _ACEOF
15188
15189
15190
15191
15192 case $host_os in
15193 aix3*)
15194   # AIX sometimes has problems with the GCC collect2 program.  For some
15195   # reason, if we set the COLLECT_NAMES environment variable, the problems
15196   # vanish in a puff of smoke.
15197   if test "X${COLLECT_NAMES+set}" != Xset; then
15198     COLLECT_NAMES=
15199     export COLLECT_NAMES
15200   fi
15201   ;;
15202 esac
15203
15204 # Global variables:
15205 ofile=libtool
15206 can_build_shared=yes
15207
15208 # All known linkers require a `.a' archive for static linking (except MSVC,
15209 # which needs '.lib').
15210 libext=a
15211
15212 with_gnu_ld="$lt_cv_prog_gnu_ld"
15213
15214 old_CC="$CC"
15215 old_CFLAGS="$CFLAGS"
15216
15217 # Set sane defaults for various variables
15218 test -z "$CC" && CC=cc
15219 test -z "$LTCC" && LTCC=$CC
15220 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15221 test -z "$LD" && LD=ld
15222 test -z "$ac_objext" && ac_objext=o
15223
15224 for cc_temp in $compiler""; do
15225   case $cc_temp in
15226     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15227     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15228     \-*) ;;
15229     *) break;;
15230   esac
15231 done
15232 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15233
15234
15235 # Only perform the check for file, if the check method requires it
15236 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15237 case $deplibs_check_method in
15238 file_magic*)
15239   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15241 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15242 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15243   $as_echo_n "(cached) " >&6
15244 else
15245   case $MAGIC_CMD in
15246 [\\/*] |  ?:[\\/]*)
15247   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15248   ;;
15249 *)
15250   lt_save_MAGIC_CMD="$MAGIC_CMD"
15251   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15252   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15253   for ac_dir in $ac_dummy; do
15254     IFS="$lt_save_ifs"
15255     test -z "$ac_dir" && ac_dir=.
15256     if test -f $ac_dir/${ac_tool_prefix}file; then
15257       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15258       if test -n "$file_magic_test_file"; then
15259         case $deplibs_check_method in
15260         "file_magic "*)
15261           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15262           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15263           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15264             $EGREP "$file_magic_regex" > /dev/null; then
15265             :
15266           else
15267             cat <<_LT_EOF 1>&2
15268
15269 *** Warning: the command libtool uses to detect shared libraries,
15270 *** $file_magic_cmd, produces output that libtool cannot recognize.
15271 *** The result is that libtool may fail to recognize shared libraries
15272 *** as such.  This will affect the creation of libtool libraries that
15273 *** depend on shared libraries, but programs linked with such libtool
15274 *** libraries will work regardless of this problem.  Nevertheless, you
15275 *** may want to report the problem to your system manager and/or to
15276 *** bug-libtool@gnu.org
15277
15278 _LT_EOF
15279           fi ;;
15280         esac
15281       fi
15282       break
15283     fi
15284   done
15285   IFS="$lt_save_ifs"
15286   MAGIC_CMD="$lt_save_MAGIC_CMD"
15287   ;;
15288 esac
15289 fi
15290
15291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15292 if test -n "$MAGIC_CMD"; then
15293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15294 $as_echo "$MAGIC_CMD" >&6; }
15295 else
15296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15297 $as_echo "no" >&6; }
15298 fi
15299
15300
15301
15302
15303
15304 if test -z "$lt_cv_path_MAGIC_CMD"; then
15305   if test -n "$ac_tool_prefix"; then
15306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15307 $as_echo_n "checking for file... " >&6; }
15308 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15309   $as_echo_n "(cached) " >&6
15310 else
15311   case $MAGIC_CMD in
15312 [\\/*] |  ?:[\\/]*)
15313   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15314   ;;
15315 *)
15316   lt_save_MAGIC_CMD="$MAGIC_CMD"
15317   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15318   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15319   for ac_dir in $ac_dummy; do
15320     IFS="$lt_save_ifs"
15321     test -z "$ac_dir" && ac_dir=.
15322     if test -f $ac_dir/file; then
15323       lt_cv_path_MAGIC_CMD="$ac_dir/file"
15324       if test -n "$file_magic_test_file"; then
15325         case $deplibs_check_method in
15326         "file_magic "*)
15327           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15328           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15329           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15330             $EGREP "$file_magic_regex" > /dev/null; then
15331             :
15332           else
15333             cat <<_LT_EOF 1>&2
15334
15335 *** Warning: the command libtool uses to detect shared libraries,
15336 *** $file_magic_cmd, produces output that libtool cannot recognize.
15337 *** The result is that libtool may fail to recognize shared libraries
15338 *** as such.  This will affect the creation of libtool libraries that
15339 *** depend on shared libraries, but programs linked with such libtool
15340 *** libraries will work regardless of this problem.  Nevertheless, you
15341 *** may want to report the problem to your system manager and/or to
15342 *** bug-libtool@gnu.org
15343
15344 _LT_EOF
15345           fi ;;
15346         esac
15347       fi
15348       break
15349     fi
15350   done
15351   IFS="$lt_save_ifs"
15352   MAGIC_CMD="$lt_save_MAGIC_CMD"
15353   ;;
15354 esac
15355 fi
15356
15357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15358 if test -n "$MAGIC_CMD"; then
15359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15360 $as_echo "$MAGIC_CMD" >&6; }
15361 else
15362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15363 $as_echo "no" >&6; }
15364 fi
15365
15366
15367   else
15368     MAGIC_CMD=:
15369   fi
15370 fi
15371
15372   fi
15373   ;;
15374 esac
15375
15376 # Use C for the default configuration in the libtool script
15377
15378 lt_save_CC="$CC"
15379 ac_ext=c
15380 ac_cpp='$CPP $CPPFLAGS'
15381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15384
15385
15386 # Source file extension for C test sources.
15387 ac_ext=c
15388
15389 # Object file extension for compiled C test sources.
15390 objext=o
15391 objext=$objext
15392
15393 # Code to be used in simple compile tests
15394 lt_simple_compile_test_code="int some_variable = 0;"
15395
15396 # Code to be used in simple link tests
15397 lt_simple_link_test_code='int main(){return(0);}'
15398
15399
15400
15401
15402
15403
15404
15405 # If no C compiler was specified, use CC.
15406 LTCC=${LTCC-"$CC"}
15407
15408 # If no C compiler flags were specified, use CFLAGS.
15409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15410
15411 # Allow CC to be a program name with arguments.
15412 compiler=$CC
15413
15414 # Save the default compiler, since it gets overwritten when the other
15415 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15416 compiler_DEFAULT=$CC
15417
15418 # save warnings/boilerplate of simple test code
15419 ac_outfile=conftest.$ac_objext
15420 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15422 _lt_compiler_boilerplate=`cat conftest.err`
15423 $RM conftest*
15424
15425 ac_outfile=conftest.$ac_objext
15426 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15428 _lt_linker_boilerplate=`cat conftest.err`
15429 $RM -r conftest*
15430
15431
15432 ## CAVEAT EMPTOR:
15433 ## There is no encapsulation within the following macros, do not change
15434 ## the running order or otherwise move them around unless you know exactly
15435 ## what you are doing...
15436 if test -n "$compiler"; then
15437
15438 lt_prog_compiler_no_builtin_flag=
15439
15440 if test "$GCC" = yes; then
15441   case $cc_basename in
15442   nvcc*)
15443     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15444   *)
15445     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15446   esac
15447
15448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15449 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15450 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15451   $as_echo_n "(cached) " >&6
15452 else
15453   lt_cv_prog_compiler_rtti_exceptions=no
15454    ac_outfile=conftest.$ac_objext
15455    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15456    lt_compiler_flag="-fno-rtti -fno-exceptions"
15457    # Insert the option either (1) after the last *FLAGS variable, or
15458    # (2) before a word containing "conftest.", or (3) at the end.
15459    # Note that $ac_compile itself does not contain backslashes and begins
15460    # with a dollar sign (not a hyphen), so the echo should work correctly.
15461    # The option is referenced via a variable to avoid confusing sed.
15462    lt_compile=`echo "$ac_compile" | $SED \
15463    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15465    -e 's:$: $lt_compiler_flag:'`
15466    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15467    (eval "$lt_compile" 2>conftest.err)
15468    ac_status=$?
15469    cat conftest.err >&5
15470    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471    if (exit $ac_status) && test -s "$ac_outfile"; then
15472      # The compiler can only warn and ignore the option if not recognized
15473      # So say no if there are warnings other than the usual output.
15474      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15475      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15476      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15477        lt_cv_prog_compiler_rtti_exceptions=yes
15478      fi
15479    fi
15480    $RM conftest*
15481
15482 fi
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15484 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15485
15486 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15487     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15488 else
15489     :
15490 fi
15491
15492 fi
15493
15494
15495
15496
15497
15498
15499   lt_prog_compiler_wl=
15500 lt_prog_compiler_pic=
15501 lt_prog_compiler_static=
15502
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15504 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15505
15506   if test "$GCC" = yes; then
15507     lt_prog_compiler_wl='-Wl,'
15508     lt_prog_compiler_static='-static'
15509
15510     case $host_os in
15511       aix*)
15512       # All AIX code is PIC.
15513       if test "$host_cpu" = ia64; then
15514         # AIX 5 now supports IA64 processor
15515         lt_prog_compiler_static='-Bstatic'
15516       fi
15517       lt_prog_compiler_pic='-fPIC'
15518       ;;
15519
15520     amigaos*)
15521       case $host_cpu in
15522       powerpc)
15523             # see comment about AmigaOS4 .so support
15524             lt_prog_compiler_pic='-fPIC'
15525         ;;
15526       m68k)
15527             # FIXME: we need at least 68020 code to build shared libraries, but
15528             # adding the `-m68020' flag to GCC prevents building anything better,
15529             # like `-m68040'.
15530             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15531         ;;
15532       esac
15533       ;;
15534
15535     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15536       # PIC is the default for these OSes.
15537       ;;
15538
15539     mingw* | cygwin* | pw32* | os2* | cegcc*)
15540       # This hack is so that the source file can tell whether it is being
15541       # built for inclusion in a dll (and should export symbols for example).
15542       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15543       # (--disable-auto-import) libraries
15544       lt_prog_compiler_pic='-DDLL_EXPORT'
15545       ;;
15546
15547     darwin* | rhapsody*)
15548       # PIC is the default on this platform
15549       # Common symbols not allowed in MH_DYLIB files
15550       lt_prog_compiler_pic='-fno-common'
15551       ;;
15552
15553     haiku*)
15554       # PIC is the default for Haiku.
15555       # The "-static" flag exists, but is broken.
15556       lt_prog_compiler_static=
15557       ;;
15558
15559     hpux*)
15560       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15561       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15562       # sets the default TLS model and affects inlining.
15563       case $host_cpu in
15564       hppa*64*)
15565         # +Z the default
15566         ;;
15567       *)
15568         lt_prog_compiler_pic='-fPIC'
15569         ;;
15570       esac
15571       ;;
15572
15573     interix[3-9]*)
15574       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15575       # Instead, we relocate shared libraries at runtime.
15576       ;;
15577
15578     msdosdjgpp*)
15579       # Just because we use GCC doesn't mean we suddenly get shared libraries
15580       # on systems that don't support them.
15581       lt_prog_compiler_can_build_shared=no
15582       enable_shared=no
15583       ;;
15584
15585     *nto* | *qnx*)
15586       # QNX uses GNU C++, but need to define -shared option too, otherwise
15587       # it will coredump.
15588       lt_prog_compiler_pic='-fPIC -shared'
15589       ;;
15590
15591     sysv4*MP*)
15592       if test -d /usr/nec; then
15593         lt_prog_compiler_pic=-Kconform_pic
15594       fi
15595       ;;
15596
15597     *)
15598       lt_prog_compiler_pic='-fPIC'
15599       ;;
15600     esac
15601
15602     case $cc_basename in
15603     nvcc*) # Cuda Compiler Driver 2.2
15604       lt_prog_compiler_wl='-Xlinker '
15605       lt_prog_compiler_pic='-Xcompiler -fPIC'
15606       ;;
15607     esac
15608   else
15609     # PORTME Check for flag to pass linker flags through the system compiler.
15610     case $host_os in
15611     aix*)
15612       lt_prog_compiler_wl='-Wl,'
15613       if test "$host_cpu" = ia64; then
15614         # AIX 5 now supports IA64 processor
15615         lt_prog_compiler_static='-Bstatic'
15616       else
15617         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15618       fi
15619       ;;
15620
15621     mingw* | cygwin* | pw32* | os2* | cegcc*)
15622       # This hack is so that the source file can tell whether it is being
15623       # built for inclusion in a dll (and should export symbols for example).
15624       lt_prog_compiler_pic='-DDLL_EXPORT'
15625       ;;
15626
15627     hpux9* | hpux10* | hpux11*)
15628       lt_prog_compiler_wl='-Wl,'
15629       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15630       # not for PA HP-UX.
15631       case $host_cpu in
15632       hppa*64*|ia64*)
15633         # +Z the default
15634         ;;
15635       *)
15636         lt_prog_compiler_pic='+Z'
15637         ;;
15638       esac
15639       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15640       lt_prog_compiler_static='${wl}-a ${wl}archive'
15641       ;;
15642
15643     irix5* | irix6* | nonstopux*)
15644       lt_prog_compiler_wl='-Wl,'
15645       # PIC (with -KPIC) is the default.
15646       lt_prog_compiler_static='-non_shared'
15647       ;;
15648
15649     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15650       case $cc_basename in
15651       # old Intel for x86_64 which still supported -KPIC.
15652       ecc*)
15653         lt_prog_compiler_wl='-Wl,'
15654         lt_prog_compiler_pic='-KPIC'
15655         lt_prog_compiler_static='-static'
15656         ;;
15657       # icc used to be incompatible with GCC.
15658       # ICC 10 doesn't accept -KPIC any more.
15659       icc* | ifort*)
15660         lt_prog_compiler_wl='-Wl,'
15661         lt_prog_compiler_pic='-fPIC'
15662         lt_prog_compiler_static='-static'
15663         ;;
15664       # Lahey Fortran 8.1.
15665       lf95*)
15666         lt_prog_compiler_wl='-Wl,'
15667         lt_prog_compiler_pic='--shared'
15668         lt_prog_compiler_static='--static'
15669         ;;
15670       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15671         # Portland Group compilers (*not* the Pentium gcc compiler,
15672         # which looks to be a dead project)
15673         lt_prog_compiler_wl='-Wl,'
15674         lt_prog_compiler_pic='-fpic'
15675         lt_prog_compiler_static='-Bstatic'
15676         ;;
15677       ccc*)
15678         lt_prog_compiler_wl='-Wl,'
15679         # All Alpha code is PIC.
15680         lt_prog_compiler_static='-non_shared'
15681         ;;
15682       xl* | bgxl* | bgf* | mpixl*)
15683         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15684         lt_prog_compiler_wl='-Wl,'
15685         lt_prog_compiler_pic='-qpic'
15686         lt_prog_compiler_static='-qstaticlink'
15687         ;;
15688       *)
15689         case `$CC -V 2>&1 | sed 5q` in
15690         *Sun\ F* | *Sun*Fortran*)
15691           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15692           lt_prog_compiler_pic='-KPIC'
15693           lt_prog_compiler_static='-Bstatic'
15694           lt_prog_compiler_wl=''
15695           ;;
15696         *Sun\ C*)
15697           # Sun C 5.9
15698           lt_prog_compiler_pic='-KPIC'
15699           lt_prog_compiler_static='-Bstatic'
15700           lt_prog_compiler_wl='-Wl,'
15701           ;;
15702         esac
15703         ;;
15704       esac
15705       ;;
15706
15707     newsos6)
15708       lt_prog_compiler_pic='-KPIC'
15709       lt_prog_compiler_static='-Bstatic'
15710       ;;
15711
15712     *nto* | *qnx*)
15713       # QNX uses GNU C++, but need to define -shared option too, otherwise
15714       # it will coredump.
15715       lt_prog_compiler_pic='-fPIC -shared'
15716       ;;
15717
15718     osf3* | osf4* | osf5*)
15719       lt_prog_compiler_wl='-Wl,'
15720       # All OSF/1 code is PIC.
15721       lt_prog_compiler_static='-non_shared'
15722       ;;
15723
15724     rdos*)
15725       lt_prog_compiler_static='-non_shared'
15726       ;;
15727
15728     solaris*)
15729       lt_prog_compiler_pic='-KPIC'
15730       lt_prog_compiler_static='-Bstatic'
15731       case $cc_basename in
15732       f77* | f90* | f95*)
15733         lt_prog_compiler_wl='-Qoption ld ';;
15734       *)
15735         lt_prog_compiler_wl='-Wl,';;
15736       esac
15737       ;;
15738
15739     sunos4*)
15740       lt_prog_compiler_wl='-Qoption ld '
15741       lt_prog_compiler_pic='-PIC'
15742       lt_prog_compiler_static='-Bstatic'
15743       ;;
15744
15745     sysv4 | sysv4.2uw2* | sysv4.3*)
15746       lt_prog_compiler_wl='-Wl,'
15747       lt_prog_compiler_pic='-KPIC'
15748       lt_prog_compiler_static='-Bstatic'
15749       ;;
15750
15751     sysv4*MP*)
15752       if test -d /usr/nec ;then
15753         lt_prog_compiler_pic='-Kconform_pic'
15754         lt_prog_compiler_static='-Bstatic'
15755       fi
15756       ;;
15757
15758     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15759       lt_prog_compiler_wl='-Wl,'
15760       lt_prog_compiler_pic='-KPIC'
15761       lt_prog_compiler_static='-Bstatic'
15762       ;;
15763
15764     unicos*)
15765       lt_prog_compiler_wl='-Wl,'
15766       lt_prog_compiler_can_build_shared=no
15767       ;;
15768
15769     uts4*)
15770       lt_prog_compiler_pic='-pic'
15771       lt_prog_compiler_static='-Bstatic'
15772       ;;
15773
15774     *)
15775       lt_prog_compiler_can_build_shared=no
15776       ;;
15777     esac
15778   fi
15779
15780 case $host_os in
15781   # For platforms which do not support PIC, -DPIC is meaningless:
15782   *djgpp*)
15783     lt_prog_compiler_pic=
15784     ;;
15785   *)
15786     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15787     ;;
15788 esac
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15790 $as_echo "$lt_prog_compiler_pic" >&6; }
15791
15792
15793
15794
15795
15796
15797 #
15798 # Check to make sure the PIC flag actually works.
15799 #
15800 if test -n "$lt_prog_compiler_pic"; then
15801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15802 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15803 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15804   $as_echo_n "(cached) " >&6
15805 else
15806   lt_cv_prog_compiler_pic_works=no
15807    ac_outfile=conftest.$ac_objext
15808    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15809    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15810    # Insert the option either (1) after the last *FLAGS variable, or
15811    # (2) before a word containing "conftest.", or (3) at the end.
15812    # Note that $ac_compile itself does not contain backslashes and begins
15813    # with a dollar sign (not a hyphen), so the echo should work correctly.
15814    # The option is referenced via a variable to avoid confusing sed.
15815    lt_compile=`echo "$ac_compile" | $SED \
15816    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15817    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15818    -e 's:$: $lt_compiler_flag:'`
15819    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15820    (eval "$lt_compile" 2>conftest.err)
15821    ac_status=$?
15822    cat conftest.err >&5
15823    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824    if (exit $ac_status) && test -s "$ac_outfile"; then
15825      # The compiler can only warn and ignore the option if not recognized
15826      # So say no if there are warnings other than the usual output.
15827      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15828      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15829      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15830        lt_cv_prog_compiler_pic_works=yes
15831      fi
15832    fi
15833    $RM conftest*
15834
15835 fi
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15837 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15838
15839 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15840     case $lt_prog_compiler_pic in
15841      "" | " "*) ;;
15842      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15843      esac
15844 else
15845     lt_prog_compiler_pic=
15846      lt_prog_compiler_can_build_shared=no
15847 fi
15848
15849 fi
15850
15851
15852
15853
15854
15855
15856 #
15857 # Check to make sure the static flag actually works.
15858 #
15859 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15861 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15862 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15863   $as_echo_n "(cached) " >&6
15864 else
15865   lt_cv_prog_compiler_static_works=no
15866    save_LDFLAGS="$LDFLAGS"
15867    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15868    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15869    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15870      # The linker can only warn and ignore the option if not recognized
15871      # So say no if there are warnings
15872      if test -s conftest.err; then
15873        # Append any errors to the config.log.
15874        cat conftest.err 1>&5
15875        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15876        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15877        if diff conftest.exp conftest.er2 >/dev/null; then
15878          lt_cv_prog_compiler_static_works=yes
15879        fi
15880      else
15881        lt_cv_prog_compiler_static_works=yes
15882      fi
15883    fi
15884    $RM -r conftest*
15885    LDFLAGS="$save_LDFLAGS"
15886
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15889 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15890
15891 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15892     :
15893 else
15894     lt_prog_compiler_static=
15895 fi
15896
15897
15898
15899
15900
15901
15902
15903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15905 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15906   $as_echo_n "(cached) " >&6
15907 else
15908   lt_cv_prog_compiler_c_o=no
15909    $RM -r conftest 2>/dev/null
15910    mkdir conftest
15911    cd conftest
15912    mkdir out
15913    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15914
15915    lt_compiler_flag="-o out/conftest2.$ac_objext"
15916    # Insert the option either (1) after the last *FLAGS variable, or
15917    # (2) before a word containing "conftest.", or (3) at the end.
15918    # Note that $ac_compile itself does not contain backslashes and begins
15919    # with a dollar sign (not a hyphen), so the echo should work correctly.
15920    lt_compile=`echo "$ac_compile" | $SED \
15921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15923    -e 's:$: $lt_compiler_flag:'`
15924    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15925    (eval "$lt_compile" 2>out/conftest.err)
15926    ac_status=$?
15927    cat out/conftest.err >&5
15928    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15930    then
15931      # The compiler can only warn and ignore the option if not recognized
15932      # So say no if there are warnings
15933      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15934      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15935      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15936        lt_cv_prog_compiler_c_o=yes
15937      fi
15938    fi
15939    chmod u+w . 2>&5
15940    $RM conftest*
15941    # SGI C++ compiler will create directory out/ii_files/ for
15942    # template instantiation
15943    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15944    $RM out/* && rmdir out
15945    cd ..
15946    $RM -r conftest
15947    $RM conftest*
15948
15949 fi
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15952
15953
15954
15955
15956
15957
15958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15959 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15960 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15961   $as_echo_n "(cached) " >&6
15962 else
15963   lt_cv_prog_compiler_c_o=no
15964    $RM -r conftest 2>/dev/null
15965    mkdir conftest
15966    cd conftest
15967    mkdir out
15968    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15969
15970    lt_compiler_flag="-o out/conftest2.$ac_objext"
15971    # Insert the option either (1) after the last *FLAGS variable, or
15972    # (2) before a word containing "conftest.", or (3) at the end.
15973    # Note that $ac_compile itself does not contain backslashes and begins
15974    # with a dollar sign (not a hyphen), so the echo should work correctly.
15975    lt_compile=`echo "$ac_compile" | $SED \
15976    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15977    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15978    -e 's:$: $lt_compiler_flag:'`
15979    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15980    (eval "$lt_compile" 2>out/conftest.err)
15981    ac_status=$?
15982    cat out/conftest.err >&5
15983    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15985    then
15986      # The compiler can only warn and ignore the option if not recognized
15987      # So say no if there are warnings
15988      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15989      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15990      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15991        lt_cv_prog_compiler_c_o=yes
15992      fi
15993    fi
15994    chmod u+w . 2>&5
15995    $RM conftest*
15996    # SGI C++ compiler will create directory out/ii_files/ for
15997    # template instantiation
15998    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15999    $RM out/* && rmdir out
16000    cd ..
16001    $RM -r conftest
16002    $RM conftest*
16003
16004 fi
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16006 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16007
16008
16009
16010
16011 hard_links="nottested"
16012 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16013   # do not overwrite the value of need_locks provided by the user
16014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16015 $as_echo_n "checking if we can lock with hard links... " >&6; }
16016   hard_links=yes
16017   $RM conftest*
16018   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16019   touch conftest.a
16020   ln conftest.a conftest.b 2>&5 || hard_links=no
16021   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16023 $as_echo "$hard_links" >&6; }
16024   if test "$hard_links" = no; then
16025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16026 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16027     need_locks=warn
16028   fi
16029 else
16030   need_locks=no
16031 fi
16032
16033
16034
16035
16036
16037
16038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16039 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16040
16041   runpath_var=
16042   allow_undefined_flag=
16043   always_export_symbols=no
16044   archive_cmds=
16045   archive_expsym_cmds=
16046   compiler_needs_object=no
16047   enable_shared_with_static_runtimes=no
16048   export_dynamic_flag_spec=
16049   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16050   hardcode_automatic=no
16051   hardcode_direct=no
16052   hardcode_direct_absolute=no
16053   hardcode_libdir_flag_spec=
16054   hardcode_libdir_flag_spec_ld=
16055   hardcode_libdir_separator=
16056   hardcode_minus_L=no
16057   hardcode_shlibpath_var=unsupported
16058   inherit_rpath=no
16059   link_all_deplibs=unknown
16060   module_cmds=
16061   module_expsym_cmds=
16062   old_archive_from_new_cmds=
16063   old_archive_from_expsyms_cmds=
16064   thread_safe_flag_spec=
16065   whole_archive_flag_spec=
16066   # include_expsyms should be a list of space-separated symbols to be *always*
16067   # included in the symbol list
16068   include_expsyms=
16069   # exclude_expsyms can be an extended regexp of symbols to exclude
16070   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16071   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16072   # as well as any symbol that contains `d'.
16073   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16074   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16075   # platforms (ab)use it in PIC code, but their linkers get confused if
16076   # the symbol is explicitly referenced.  Since portable code cannot
16077   # rely on this symbol name, it's probably fine to never include it in
16078   # preloaded symbol tables.
16079   # Exclude shared library initialization/finalization symbols.
16080   extract_expsyms_cmds=
16081
16082   case $host_os in
16083   cygwin* | mingw* | pw32* | cegcc*)
16084     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16085     # When not using gcc, we currently assume that we are using
16086     # Microsoft Visual C++.
16087     if test "$GCC" != yes; then
16088       with_gnu_ld=no
16089     fi
16090     ;;
16091   interix*)
16092     # we just hope/assume this is gcc and not c89 (= MSVC++)
16093     with_gnu_ld=yes
16094     ;;
16095   openbsd*)
16096     with_gnu_ld=no
16097     ;;
16098   esac
16099
16100   ld_shlibs=yes
16101
16102   # On some targets, GNU ld is compatible enough with the native linker
16103   # that we're better off using the native interface for both.
16104   lt_use_gnu_ld_interface=no
16105   if test "$with_gnu_ld" = yes; then
16106     case $host_os in
16107       aix*)
16108         # The AIX port of GNU ld has always aspired to compatibility
16109         # with the native linker.  However, as the warning in the GNU ld
16110         # block says, versions before 2.19.5* couldn't really create working
16111         # shared libraries, regardless of the interface used.
16112         case `$LD -v 2>&1` in
16113           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16114           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16115           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16116           *)
16117             lt_use_gnu_ld_interface=yes
16118             ;;
16119         esac
16120         ;;
16121       *)
16122         lt_use_gnu_ld_interface=yes
16123         ;;
16124     esac
16125   fi
16126
16127   if test "$lt_use_gnu_ld_interface" = yes; then
16128     # If archive_cmds runs LD, not CC, wlarc should be empty
16129     wlarc='${wl}'
16130
16131     # Set some defaults for GNU ld with shared library support. These
16132     # are reset later if shared libraries are not supported. Putting them
16133     # here allows them to be overridden if necessary.
16134     runpath_var=LD_RUN_PATH
16135     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16136     export_dynamic_flag_spec='${wl}--export-dynamic'
16137     # ancient GNU ld didn't support --whole-archive et. al.
16138     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16139       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16140     else
16141       whole_archive_flag_spec=
16142     fi
16143     supports_anon_versioning=no
16144     case `$LD -v 2>&1` in
16145       *GNU\ gold*) supports_anon_versioning=yes ;;
16146       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16147       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16148       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16149       *\ 2.11.*) ;; # other 2.11 versions
16150       *) supports_anon_versioning=yes ;;
16151     esac
16152
16153     # See if GNU ld supports shared libraries.
16154     case $host_os in
16155     aix[3-9]*)
16156       # On AIX/PPC, the GNU linker is very broken
16157       if test "$host_cpu" != ia64; then
16158         ld_shlibs=no
16159         cat <<_LT_EOF 1>&2
16160
16161 *** Warning: the GNU linker, at least up to release 2.19, is reported
16162 *** to be unable to reliably create shared libraries on AIX.
16163 *** Therefore, libtool is disabling shared libraries support.  If you
16164 *** really care for shared libraries, you may want to install binutils
16165 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16166 *** You will then need to restart the configuration process.
16167
16168 _LT_EOF
16169       fi
16170       ;;
16171
16172     amigaos*)
16173       case $host_cpu in
16174       powerpc)
16175             # see comment about AmigaOS4 .so support
16176             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16177             archive_expsym_cmds=''
16178         ;;
16179       m68k)
16180             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)'
16181             hardcode_libdir_flag_spec='-L$libdir'
16182             hardcode_minus_L=yes
16183         ;;
16184       esac
16185       ;;
16186
16187     beos*)
16188       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16189         allow_undefined_flag=unsupported
16190         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16191         # support --undefined.  This deserves some investigation.  FIXME
16192         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16193       else
16194         ld_shlibs=no
16195       fi
16196       ;;
16197
16198     cygwin* | mingw* | pw32* | cegcc*)
16199       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16200       # as there is no search path for DLLs.
16201       hardcode_libdir_flag_spec='-L$libdir'
16202       export_dynamic_flag_spec='${wl}--export-all-symbols'
16203       allow_undefined_flag=unsupported
16204       always_export_symbols=no
16205       enable_shared_with_static_runtimes=yes
16206       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16207
16208       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16209         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16210         # If the export-symbols file already is a .def file (1st line
16211         # is EXPORTS), use it as is; otherwise, prepend...
16212         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16213           cp $export_symbols $output_objdir/$soname.def;
16214         else
16215           echo EXPORTS > $output_objdir/$soname.def;
16216           cat $export_symbols >> $output_objdir/$soname.def;
16217         fi~
16218         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16219       else
16220         ld_shlibs=no
16221       fi
16222       ;;
16223
16224     haiku*)
16225       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16226       link_all_deplibs=yes
16227       ;;
16228
16229     interix[3-9]*)
16230       hardcode_direct=no
16231       hardcode_shlibpath_var=no
16232       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16233       export_dynamic_flag_spec='${wl}-E'
16234       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16235       # Instead, shared libraries are loaded at an image base (0x10000000 by
16236       # default) and relocated if they conflict, which is a slow very memory
16237       # consuming and fragmenting process.  To avoid this, we pick a random,
16238       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16239       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16240       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16241       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'
16242       ;;
16243
16244     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16245       tmp_diet=no
16246       if test "$host_os" = linux-dietlibc; then
16247         case $cc_basename in
16248           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
16249         esac
16250       fi
16251       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16252          && test "$tmp_diet" = no
16253       then
16254         tmp_addflag=' $pic_flag'
16255         tmp_sharedflag='-shared'
16256         case $cc_basename,$host_cpu in
16257         pgcc*)                          # Portland Group C compiler
16258           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'
16259           tmp_addflag=' $pic_flag'
16260           ;;
16261         pgf77* | pgf90* | pgf95* | pgfortran*)
16262                                         # Portland Group f77 and f90 compilers
16263           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'
16264           tmp_addflag=' $pic_flag -Mnomain' ;;
16265         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
16266           tmp_addflag=' -i_dynamic' ;;
16267         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16268           tmp_addflag=' -i_dynamic -nofor_main' ;;
16269         ifc* | ifort*)                  # Intel Fortran compiler
16270           tmp_addflag=' -nofor_main' ;;
16271         lf95*)                          # Lahey Fortran 8.1
16272           whole_archive_flag_spec=
16273           tmp_sharedflag='--shared' ;;
16274         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16275           tmp_sharedflag='-qmkshrobj'
16276           tmp_addflag= ;;
16277         nvcc*)  # Cuda Compiler Driver 2.2
16278           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'
16279           compiler_needs_object=yes
16280           ;;
16281         esac
16282         case `$CC -V 2>&1 | sed 5q` in
16283         *Sun\ C*)                       # Sun C 5.9
16284           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'
16285           compiler_needs_object=yes
16286           tmp_sharedflag='-G' ;;
16287         *Sun\ F*)                       # Sun Fortran 8.3
16288           tmp_sharedflag='-G' ;;
16289         esac
16290         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16291
16292         if test "x$supports_anon_versioning" = xyes; then
16293           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16294             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16295             echo "local: *; };" >> $output_objdir/$libname.ver~
16296             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16297         fi
16298
16299         case $cc_basename in
16300         xlf* | bgf* | bgxlf* | mpixlf*)
16301           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16302           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16303           hardcode_libdir_flag_spec=
16304           hardcode_libdir_flag_spec_ld='-rpath $libdir'
16305           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16306           if test "x$supports_anon_versioning" = xyes; then
16307             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16308               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16309               echo "local: *; };" >> $output_objdir/$libname.ver~
16310               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16311           fi
16312           ;;
16313         esac
16314       else
16315         ld_shlibs=no
16316       fi
16317       ;;
16318
16319     netbsd*)
16320       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16321         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16322         wlarc=
16323       else
16324         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16325         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16326       fi
16327       ;;
16328
16329     solaris*)
16330       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16331         ld_shlibs=no
16332         cat <<_LT_EOF 1>&2
16333
16334 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16335 *** create shared libraries on Solaris systems.  Therefore, libtool
16336 *** is disabling shared libraries support.  We urge you to upgrade GNU
16337 *** binutils to release 2.9.1 or newer.  Another option is to modify
16338 *** your PATH or compiler configuration so that the native linker is
16339 *** used, and then restart.
16340
16341 _LT_EOF
16342       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16343         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16344         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16345       else
16346         ld_shlibs=no
16347       fi
16348       ;;
16349
16350     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16351       case `$LD -v 2>&1` in
16352         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16353         ld_shlibs=no
16354         cat <<_LT_EOF 1>&2
16355
16356 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16357 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16358 *** is disabling shared libraries support.  We urge you to upgrade GNU
16359 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16360 *** your PATH or compiler configuration so that the native linker is
16361 *** used, and then restart.
16362
16363 _LT_EOF
16364         ;;
16365         *)
16366           # For security reasons, it is highly recommended that you always
16367           # use absolute paths for naming shared libraries, and exclude the
16368           # DT_RUNPATH tag from executables and libraries.  But doing so
16369           # requires that you compile everything twice, which is a pain.
16370           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16371             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16372             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16373             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16374           else
16375             ld_shlibs=no
16376           fi
16377         ;;
16378       esac
16379       ;;
16380
16381     sunos4*)
16382       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16383       wlarc=
16384       hardcode_direct=yes
16385       hardcode_shlibpath_var=no
16386       ;;
16387
16388     *)
16389       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16390         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16391         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16392       else
16393         ld_shlibs=no
16394       fi
16395       ;;
16396     esac
16397
16398     if test "$ld_shlibs" = no; then
16399       runpath_var=
16400       hardcode_libdir_flag_spec=
16401       export_dynamic_flag_spec=
16402       whole_archive_flag_spec=
16403     fi
16404   else
16405     # PORTME fill in a description of your system's linker (not GNU ld)
16406     case $host_os in
16407     aix3*)
16408       allow_undefined_flag=unsupported
16409       always_export_symbols=yes
16410       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'
16411       # Note: this linker hardcodes the directories in LIBPATH if there
16412       # are no directories specified by -L.
16413       hardcode_minus_L=yes
16414       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16415         # Neither direct hardcoding nor static linking is supported with a
16416         # broken collect2.
16417         hardcode_direct=unsupported
16418       fi
16419       ;;
16420
16421     aix[4-9]*)
16422       if test "$host_cpu" = ia64; then
16423         # On IA64, the linker does run time linking by default, so we don't
16424         # have to do anything special.
16425         aix_use_runtimelinking=no
16426         exp_sym_flag='-Bexport'
16427         no_entry_flag=""
16428       else
16429         # If we're using GNU nm, then we don't want the "-C" option.
16430         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16431         # Also, AIX nm treats weak defined symbols like other global
16432         # defined symbols, whereas GNU nm marks them as "W".
16433         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16434           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'
16435         else
16436           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16437         fi
16438         aix_use_runtimelinking=no
16439
16440         # Test if we are trying to use run time linking or normal
16441         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16442         # need to do runtime linking.
16443         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16444           for ld_flag in $LDFLAGS; do
16445           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16446             aix_use_runtimelinking=yes
16447             break
16448           fi
16449           done
16450           ;;
16451         esac
16452
16453         exp_sym_flag='-bexport'
16454         no_entry_flag='-bnoentry'
16455       fi
16456
16457       # When large executables or shared objects are built, AIX ld can
16458       # have problems creating the table of contents.  If linking a library
16459       # or program results in "error TOC overflow" add -mminimal-toc to
16460       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16461       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16462
16463       archive_cmds=''
16464       hardcode_direct=yes
16465       hardcode_direct_absolute=yes
16466       hardcode_libdir_separator=':'
16467       link_all_deplibs=yes
16468       file_list_spec='${wl}-f,'
16469
16470       if test "$GCC" = yes; then
16471         case $host_os in aix4.[012]|aix4.[012].*)
16472         # We only want to do this on AIX 4.2 and lower, the check
16473         # below for broken collect2 doesn't work under 4.3+
16474           collect2name=`${CC} -print-prog-name=collect2`
16475           if test -f "$collect2name" &&
16476            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16477           then
16478           # We have reworked collect2
16479           :
16480           else
16481           # We have old collect2
16482           hardcode_direct=unsupported
16483           # It fails to find uninstalled libraries when the uninstalled
16484           # path is not listed in the libpath.  Setting hardcode_minus_L
16485           # to unsupported forces relinking
16486           hardcode_minus_L=yes
16487           hardcode_libdir_flag_spec='-L$libdir'
16488           hardcode_libdir_separator=
16489           fi
16490           ;;
16491         esac
16492         shared_flag='-shared'
16493         if test "$aix_use_runtimelinking" = yes; then
16494           shared_flag="$shared_flag "'${wl}-G'
16495         fi
16496       else
16497         # not using gcc
16498         if test "$host_cpu" = ia64; then
16499         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16500         # chokes on -Wl,-G. The following line is correct:
16501           shared_flag='-G'
16502         else
16503           if test "$aix_use_runtimelinking" = yes; then
16504             shared_flag='${wl}-G'
16505           else
16506             shared_flag='${wl}-bM:SRE'
16507           fi
16508         fi
16509       fi
16510
16511       export_dynamic_flag_spec='${wl}-bexpall'
16512       # It seems that -bexpall does not export symbols beginning with
16513       # underscore (_), so it is better to generate a list of symbols to export.
16514       always_export_symbols=yes
16515       if test "$aix_use_runtimelinking" = yes; then
16516         # Warning - without using the other runtime loading flags (-brtl),
16517         # -berok will link without error, but may produce a broken library.
16518         allow_undefined_flag='-berok'
16519         # Determine the default libpath from the value encoded in an
16520         # empty executable.
16521         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h.  */
16523
16524 int
16525 main ()
16526 {
16527
16528   ;
16529   return 0;
16530 }
16531 _ACEOF
16532 if ac_fn_c_try_link "$LINENO"; then :
16533
16534 lt_aix_libpath_sed='
16535     /Import File Strings/,/^$/ {
16536         /^0/ {
16537             s/^0  *\(.*\)$/\1/
16538             p
16539         }
16540     }'
16541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16542 # Check for a 64-bit object if we didn't find anything.
16543 if test -z "$aix_libpath"; then
16544   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16545 fi
16546 fi
16547 rm -f core conftest.err conftest.$ac_objext \
16548     conftest$ac_exeext conftest.$ac_ext
16549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16550
16551         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16552         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"
16553       else
16554         if test "$host_cpu" = ia64; then
16555           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16556           allow_undefined_flag="-z nodefs"
16557           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"
16558         else
16559          # Determine the default libpath from the value encoded in an
16560          # empty executable.
16561          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h.  */
16563
16564 int
16565 main ()
16566 {
16567
16568   ;
16569   return 0;
16570 }
16571 _ACEOF
16572 if ac_fn_c_try_link "$LINENO"; then :
16573
16574 lt_aix_libpath_sed='
16575     /Import File Strings/,/^$/ {
16576         /^0/ {
16577             s/^0  *\(.*\)$/\1/
16578             p
16579         }
16580     }'
16581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16582 # Check for a 64-bit object if we didn't find anything.
16583 if test -z "$aix_libpath"; then
16584   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16585 fi
16586 fi
16587 rm -f core conftest.err conftest.$ac_objext \
16588     conftest$ac_exeext conftest.$ac_ext
16589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16590
16591          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16592           # Warning - without using the other run time loading flags,
16593           # -berok will link without error, but may produce a broken library.
16594           no_undefined_flag=' ${wl}-bernotok'
16595           allow_undefined_flag=' ${wl}-berok'
16596           if test "$with_gnu_ld" = yes; then
16597             # We only use this code for GNU lds that support --whole-archive.
16598             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16599           else
16600             # Exported symbols can be pulled into shared objects from archives
16601             whole_archive_flag_spec='$convenience'
16602           fi
16603           archive_cmds_need_lc=yes
16604           # This is similar to how AIX traditionally builds its shared libraries.
16605           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'
16606         fi
16607       fi
16608       ;;
16609
16610     amigaos*)
16611       case $host_cpu in
16612       powerpc)
16613             # see comment about AmigaOS4 .so support
16614             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16615             archive_expsym_cmds=''
16616         ;;
16617       m68k)
16618             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)'
16619             hardcode_libdir_flag_spec='-L$libdir'
16620             hardcode_minus_L=yes
16621         ;;
16622       esac
16623       ;;
16624
16625     bsdi[45]*)
16626       export_dynamic_flag_spec=-rdynamic
16627       ;;
16628
16629     cygwin* | mingw* | pw32* | cegcc*)
16630       # When not using gcc, we currently assume that we are using
16631       # Microsoft Visual C++.
16632       # hardcode_libdir_flag_spec is actually meaningless, as there is
16633       # no search path for DLLs.
16634       hardcode_libdir_flag_spec=' '
16635       allow_undefined_flag=unsupported
16636       # Tell ltmain to make .lib files, not .a files.
16637       libext=lib
16638       # Tell ltmain to make .dll files, not .so files.
16639       shrext_cmds=".dll"
16640       # FIXME: Setting linknames here is a bad hack.
16641       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16642       # The linker will automatically build a .lib file if we build a DLL.
16643       old_archive_from_new_cmds='true'
16644       # FIXME: Should let the user specify the lib program.
16645       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16646       fix_srcfile_path='`cygpath -w "$srcfile"`'
16647       enable_shared_with_static_runtimes=yes
16648       ;;
16649
16650     darwin* | rhapsody*)
16651
16652
16653   archive_cmds_need_lc=no
16654   hardcode_direct=no
16655   hardcode_automatic=yes
16656   hardcode_shlibpath_var=unsupported
16657   if test "$lt_cv_ld_force_load" = "yes"; then
16658     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\"`'
16659   else
16660     whole_archive_flag_spec=''
16661   fi
16662   link_all_deplibs=yes
16663   allow_undefined_flag="$_lt_dar_allow_undefined"
16664   case $cc_basename in
16665      ifort*) _lt_dar_can_shared=yes ;;
16666      *) _lt_dar_can_shared=$GCC ;;
16667   esac
16668   if test "$_lt_dar_can_shared" = "yes"; then
16669     output_verbose_link_cmd=func_echo_all
16670     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16671     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16672     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}"
16673     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}"
16674
16675   else
16676   ld_shlibs=no
16677   fi
16678
16679       ;;
16680
16681     dgux*)
16682       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16683       hardcode_libdir_flag_spec='-L$libdir'
16684       hardcode_shlibpath_var=no
16685       ;;
16686
16687     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16688     # support.  Future versions do this automatically, but an explicit c++rt0.o
16689     # does not break anything, and helps significantly (at the cost of a little
16690     # extra space).
16691     freebsd2.2*)
16692       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16693       hardcode_libdir_flag_spec='-R$libdir'
16694       hardcode_direct=yes
16695       hardcode_shlibpath_var=no
16696       ;;
16697
16698     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16699     freebsd2.*)
16700       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16701       hardcode_direct=yes
16702       hardcode_minus_L=yes
16703       hardcode_shlibpath_var=no
16704       ;;
16705
16706     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16707     freebsd* | dragonfly*)
16708       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16709       hardcode_libdir_flag_spec='-R$libdir'
16710       hardcode_direct=yes
16711       hardcode_shlibpath_var=no
16712       ;;
16713
16714     hpux9*)
16715       if test "$GCC" = yes; then
16716         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'
16717       else
16718         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'
16719       fi
16720       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16721       hardcode_libdir_separator=:
16722       hardcode_direct=yes
16723
16724       # hardcode_minus_L: Not really in the search PATH,
16725       # but as the default location of the library.
16726       hardcode_minus_L=yes
16727       export_dynamic_flag_spec='${wl}-E'
16728       ;;
16729
16730     hpux10*)
16731       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16732         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16733       else
16734         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16735       fi
16736       if test "$with_gnu_ld" = no; then
16737         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16738         hardcode_libdir_flag_spec_ld='+b $libdir'
16739         hardcode_libdir_separator=:
16740         hardcode_direct=yes
16741         hardcode_direct_absolute=yes
16742         export_dynamic_flag_spec='${wl}-E'
16743         # hardcode_minus_L: Not really in the search PATH,
16744         # but as the default location of the library.
16745         hardcode_minus_L=yes
16746       fi
16747       ;;
16748
16749     hpux11*)
16750       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16751         case $host_cpu in
16752         hppa*64*)
16753           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16754           ;;
16755         ia64*)
16756           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16757           ;;
16758         *)
16759           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16760           ;;
16761         esac
16762       else
16763         case $host_cpu in
16764         hppa*64*)
16765           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16766           ;;
16767         ia64*)
16768           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16769           ;;
16770         *)
16771
16772           # Older versions of the 11.00 compiler do not understand -b yet
16773           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16774           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16775 $as_echo_n "checking if $CC understands -b... " >&6; }
16776 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16777   $as_echo_n "(cached) " >&6
16778 else
16779   lt_cv_prog_compiler__b=no
16780    save_LDFLAGS="$LDFLAGS"
16781    LDFLAGS="$LDFLAGS -b"
16782    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16783    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16784      # The linker can only warn and ignore the option if not recognized
16785      # So say no if there are warnings
16786      if test -s conftest.err; then
16787        # Append any errors to the config.log.
16788        cat conftest.err 1>&5
16789        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16790        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16791        if diff conftest.exp conftest.er2 >/dev/null; then
16792          lt_cv_prog_compiler__b=yes
16793        fi
16794      else
16795        lt_cv_prog_compiler__b=yes
16796      fi
16797    fi
16798    $RM -r conftest*
16799    LDFLAGS="$save_LDFLAGS"
16800
16801 fi
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16803 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16804
16805 if test x"$lt_cv_prog_compiler__b" = xyes; then
16806     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16807 else
16808     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16809 fi
16810
16811           ;;
16812         esac
16813       fi
16814       if test "$with_gnu_ld" = no; then
16815         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16816         hardcode_libdir_separator=:
16817
16818         case $host_cpu in
16819         hppa*64*|ia64*)
16820           hardcode_direct=no
16821           hardcode_shlibpath_var=no
16822           ;;
16823         *)
16824           hardcode_direct=yes
16825           hardcode_direct_absolute=yes
16826           export_dynamic_flag_spec='${wl}-E'
16827
16828           # hardcode_minus_L: Not really in the search PATH,
16829           # but as the default location of the library.
16830           hardcode_minus_L=yes
16831           ;;
16832         esac
16833       fi
16834       ;;
16835
16836     irix5* | irix6* | nonstopux*)
16837       if test "$GCC" = yes; then
16838         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'
16839         # Try to use the -exported_symbol ld option, if it does not
16840         # work, assume that -exports_file does not work either and
16841         # implicitly export all symbols.
16842         save_LDFLAGS="$LDFLAGS"
16843         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16844         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h.  */
16846 int foo(void) {}
16847 _ACEOF
16848 if ac_fn_c_try_link "$LINENO"; then :
16849   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'
16850
16851 fi
16852 rm -f core conftest.err conftest.$ac_objext \
16853     conftest$ac_exeext conftest.$ac_ext
16854         LDFLAGS="$save_LDFLAGS"
16855       else
16856         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'
16857         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'
16858       fi
16859       archive_cmds_need_lc='no'
16860       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16861       hardcode_libdir_separator=:
16862       inherit_rpath=yes
16863       link_all_deplibs=yes
16864       ;;
16865
16866     netbsd*)
16867       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16868         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16869       else
16870         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16871       fi
16872       hardcode_libdir_flag_spec='-R$libdir'
16873       hardcode_direct=yes
16874       hardcode_shlibpath_var=no
16875       ;;
16876
16877     newsos6)
16878       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16879       hardcode_direct=yes
16880       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16881       hardcode_libdir_separator=:
16882       hardcode_shlibpath_var=no
16883       ;;
16884
16885     *nto* | *qnx*)
16886       ;;
16887
16888     openbsd*)
16889       if test -f /usr/libexec/ld.so; then
16890         hardcode_direct=yes
16891         hardcode_shlibpath_var=no
16892         hardcode_direct_absolute=yes
16893         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16894           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16895           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16896           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16897           export_dynamic_flag_spec='${wl}-E'
16898         else
16899           case $host_os in
16900            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16901              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16902              hardcode_libdir_flag_spec='-R$libdir'
16903              ;;
16904            *)
16905              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16906              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16907              ;;
16908           esac
16909         fi
16910       else
16911         ld_shlibs=no
16912       fi
16913       ;;
16914
16915     os2*)
16916       hardcode_libdir_flag_spec='-L$libdir'
16917       hardcode_minus_L=yes
16918       allow_undefined_flag=unsupported
16919       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'
16920       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16921       ;;
16922
16923     osf3*)
16924       if test "$GCC" = yes; then
16925         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16926         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'
16927       else
16928         allow_undefined_flag=' -expect_unresolved \*'
16929         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'
16930       fi
16931       archive_cmds_need_lc='no'
16932       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16933       hardcode_libdir_separator=:
16934       ;;
16935
16936     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16937       if test "$GCC" = yes; then
16938         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16939         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'
16940         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16941       else
16942         allow_undefined_flag=' -expect_unresolved \*'
16943         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'
16944         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~
16945         $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'
16946
16947         # Both c and cxx compiler support -rpath directly
16948         hardcode_libdir_flag_spec='-rpath $libdir'
16949       fi
16950       archive_cmds_need_lc='no'
16951       hardcode_libdir_separator=:
16952       ;;
16953
16954     solaris*)
16955       no_undefined_flag=' -z defs'
16956       if test "$GCC" = yes; then
16957         wlarc='${wl}'
16958         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16959         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16960           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16961       else
16962         case `$CC -V 2>&1` in
16963         *"Compilers 5.0"*)
16964           wlarc=''
16965           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16966           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16967           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16968           ;;
16969         *)
16970           wlarc='${wl}'
16971           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16972           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16973           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16974           ;;
16975         esac
16976       fi
16977       hardcode_libdir_flag_spec='-R$libdir'
16978       hardcode_shlibpath_var=no
16979       case $host_os in
16980       solaris2.[0-5] | solaris2.[0-5].*) ;;
16981       *)
16982         # The compiler driver will combine and reorder linker options,
16983         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16984         # but is careful enough not to reorder.
16985         # Supported since Solaris 2.6 (maybe 2.5.1?)
16986         if test "$GCC" = yes; then
16987           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16988         else
16989           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16990         fi
16991         ;;
16992       esac
16993       link_all_deplibs=yes
16994       ;;
16995
16996     sunos4*)
16997       if test "x$host_vendor" = xsequent; then
16998         # Use $CC to link under sequent, because it throws in some extra .o
16999         # files that make .init and .fini sections work.
17000         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17001       else
17002         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17003       fi
17004       hardcode_libdir_flag_spec='-L$libdir'
17005       hardcode_direct=yes
17006       hardcode_minus_L=yes
17007       hardcode_shlibpath_var=no
17008       ;;
17009
17010     sysv4)
17011       case $host_vendor in
17012         sni)
17013           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17014           hardcode_direct=yes # is this really true???
17015         ;;
17016         siemens)
17017           ## LD is ld it makes a PLAMLIB
17018           ## CC just makes a GrossModule.
17019           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17020           reload_cmds='$CC -r -o $output$reload_objs'
17021           hardcode_direct=no
17022         ;;
17023         motorola)
17024           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17025           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17026         ;;
17027       esac
17028       runpath_var='LD_RUN_PATH'
17029       hardcode_shlibpath_var=no
17030       ;;
17031
17032     sysv4.3*)
17033       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17034       hardcode_shlibpath_var=no
17035       export_dynamic_flag_spec='-Bexport'
17036       ;;
17037
17038     sysv4*MP*)
17039       if test -d /usr/nec; then
17040         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17041         hardcode_shlibpath_var=no
17042         runpath_var=LD_RUN_PATH
17043         hardcode_runpath_var=yes
17044         ld_shlibs=yes
17045       fi
17046       ;;
17047
17048     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17049       no_undefined_flag='${wl}-z,text'
17050       archive_cmds_need_lc=no
17051       hardcode_shlibpath_var=no
17052       runpath_var='LD_RUN_PATH'
17053
17054       if test "$GCC" = yes; then
17055         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17056         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17057       else
17058         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17059         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17060       fi
17061       ;;
17062
17063     sysv5* | sco3.2v5* | sco5v6*)
17064       # Note: We can NOT use -z defs as we might desire, because we do not
17065       # link with -lc, and that would cause any symbols used from libc to
17066       # always be unresolved, which means just about no library would
17067       # ever link correctly.  If we're not using GNU ld we use -z text
17068       # though, which does catch some bad symbols but isn't as heavy-handed
17069       # as -z defs.
17070       no_undefined_flag='${wl}-z,text'
17071       allow_undefined_flag='${wl}-z,nodefs'
17072       archive_cmds_need_lc=no
17073       hardcode_shlibpath_var=no
17074       hardcode_libdir_flag_spec='${wl}-R,$libdir'
17075       hardcode_libdir_separator=':'
17076       link_all_deplibs=yes
17077       export_dynamic_flag_spec='${wl}-Bexport'
17078       runpath_var='LD_RUN_PATH'
17079
17080       if test "$GCC" = yes; then
17081         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17083       else
17084         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17086       fi
17087       ;;
17088
17089     uts4*)
17090       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17091       hardcode_libdir_flag_spec='-L$libdir'
17092       hardcode_shlibpath_var=no
17093       ;;
17094
17095     *)
17096       ld_shlibs=no
17097       ;;
17098     esac
17099
17100     if test x$host_vendor = xsni; then
17101       case $host in
17102       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17103         export_dynamic_flag_spec='${wl}-Blargedynsym'
17104         ;;
17105       esac
17106     fi
17107   fi
17108
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17110 $as_echo "$ld_shlibs" >&6; }
17111 test "$ld_shlibs" = no && can_build_shared=no
17112
17113 with_gnu_ld=$with_gnu_ld
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129 #
17130 # Do we need to explicitly link libc?
17131 #
17132 case "x$archive_cmds_need_lc" in
17133 x|xyes)
17134   # Assume -lc should be added
17135   archive_cmds_need_lc=yes
17136
17137   if test "$enable_shared" = yes && test "$GCC" = yes; then
17138     case $archive_cmds in
17139     *'~'*)
17140       # FIXME: we may have to deal with multi-command sequences.
17141       ;;
17142     '$CC '*)
17143       # Test whether the compiler implicitly links with -lc since on some
17144       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17145       # to ld, don't add -lc before -lgcc.
17146       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17147 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17148 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17149   $as_echo_n "(cached) " >&6
17150 else
17151   $RM conftest*
17152         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17153
17154         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17155   (eval $ac_compile) 2>&5
17156   ac_status=$?
17157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17158   test $ac_status = 0; } 2>conftest.err; then
17159           soname=conftest
17160           lib=conftest
17161           libobjs=conftest.$ac_objext
17162           deplibs=
17163           wl=$lt_prog_compiler_wl
17164           pic_flag=$lt_prog_compiler_pic
17165           compiler_flags=-v
17166           linker_flags=-v
17167           verstring=
17168           output_objdir=.
17169           libname=conftest
17170           lt_save_allow_undefined_flag=$allow_undefined_flag
17171           allow_undefined_flag=
17172           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17173   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17174   ac_status=$?
17175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17176   test $ac_status = 0; }
17177           then
17178             lt_cv_archive_cmds_need_lc=no
17179           else
17180             lt_cv_archive_cmds_need_lc=yes
17181           fi
17182           allow_undefined_flag=$lt_save_allow_undefined_flag
17183         else
17184           cat conftest.err 1>&5
17185         fi
17186         $RM conftest*
17187
17188 fi
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17190 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17191       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17192       ;;
17193     esac
17194   fi
17195   ;;
17196 esac
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17355 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17356
17357 if test "$GCC" = yes; then
17358   case $host_os in
17359     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17360     *) lt_awk_arg="/^libraries:/" ;;
17361   esac
17362   case $host_os in
17363     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17364     *) lt_sed_strip_eq="s,=/,/,g" ;;
17365   esac
17366   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17367   case $lt_search_path_spec in
17368   *\;*)
17369     # if the path contains ";" then we assume it to be the separator
17370     # otherwise default to the standard path separator (i.e. ":") - it is
17371     # assumed that no part of a normal pathname contains ";" but that should
17372     # okay in the real world where ";" in dirpaths is itself problematic.
17373     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17374     ;;
17375   *)
17376     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17377     ;;
17378   esac
17379   # Ok, now we have the path, separated by spaces, we can step through it
17380   # and add multilib dir if necessary.
17381   lt_tmp_lt_search_path_spec=
17382   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17383   for lt_sys_path in $lt_search_path_spec; do
17384     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17385       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17386     else
17387       test -d "$lt_sys_path" && \
17388         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17389     fi
17390   done
17391   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17392 BEGIN {RS=" "; FS="/|\n";} {
17393   lt_foo="";
17394   lt_count=0;
17395   for (lt_i = NF; lt_i > 0; lt_i--) {
17396     if ($lt_i != "" && $lt_i != ".") {
17397       if ($lt_i == "..") {
17398         lt_count++;
17399       } else {
17400         if (lt_count == 0) {
17401           lt_foo="/" $lt_i lt_foo;
17402         } else {
17403           lt_count--;
17404         }
17405       }
17406     }
17407   }
17408   if (lt_foo != "") { lt_freq[lt_foo]++; }
17409   if (lt_freq[lt_foo] == 1) { print lt_foo; }
17410 }'`
17411   # AWK program above erroneously prepends '/' to C:/dos/paths
17412   # for these hosts.
17413   case $host_os in
17414     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17415       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17416   esac
17417   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17418 else
17419   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17420 fi
17421 library_names_spec=
17422 libname_spec='lib$name'
17423 soname_spec=
17424 shrext_cmds=".so"
17425 postinstall_cmds=
17426 postuninstall_cmds=
17427 finish_cmds=
17428 finish_eval=
17429 shlibpath_var=
17430 shlibpath_overrides_runpath=unknown
17431 version_type=none
17432 dynamic_linker="$host_os ld.so"
17433 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17434 need_lib_prefix=unknown
17435 hardcode_into_libs=no
17436
17437 # when you set need_version to no, make sure it does not cause -set_version
17438 # flags to be left without arguments
17439 need_version=unknown
17440
17441 case $host_os in
17442 aix3*)
17443   version_type=linux
17444   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17445   shlibpath_var=LIBPATH
17446
17447   # AIX 3 has no versioning support, so we append a major version to the name.
17448   soname_spec='${libname}${release}${shared_ext}$major'
17449   ;;
17450
17451 aix[4-9]*)
17452   version_type=linux
17453   need_lib_prefix=no
17454   need_version=no
17455   hardcode_into_libs=yes
17456   if test "$host_cpu" = ia64; then
17457     # AIX 5 supports IA64
17458     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17459     shlibpath_var=LD_LIBRARY_PATH
17460   else
17461     # With GCC up to 2.95.x, collect2 would create an import file
17462     # for dependence libraries.  The import file would start with
17463     # the line `#! .'.  This would cause the generated library to
17464     # depend on `.', always an invalid library.  This was fixed in
17465     # development snapshots of GCC prior to 3.0.
17466     case $host_os in
17467       aix4 | aix4.[01] | aix4.[01].*)
17468       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17469            echo ' yes '
17470            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17471         :
17472       else
17473         can_build_shared=no
17474       fi
17475       ;;
17476     esac
17477     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17478     # soname into executable. Probably we can add versioning support to
17479     # collect2, so additional links can be useful in future.
17480     if test "$aix_use_runtimelinking" = yes; then
17481       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17482       # instead of lib<name>.a to let people know that these are not
17483       # typical AIX shared libraries.
17484       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485     else
17486       # We preserve .a as extension for shared libraries through AIX4.2
17487       # and later when we are not doing run time linking.
17488       library_names_spec='${libname}${release}.a $libname.a'
17489       soname_spec='${libname}${release}${shared_ext}$major'
17490     fi
17491     shlibpath_var=LIBPATH
17492   fi
17493   ;;
17494
17495 amigaos*)
17496   case $host_cpu in
17497   powerpc)
17498     # Since July 2007 AmigaOS4 officially supports .so libraries.
17499     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501     ;;
17502   m68k)
17503     library_names_spec='$libname.ixlibrary $libname.a'
17504     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17505     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'
17506     ;;
17507   esac
17508   ;;
17509
17510 beos*)
17511   library_names_spec='${libname}${shared_ext}'
17512   dynamic_linker="$host_os ld.so"
17513   shlibpath_var=LIBRARY_PATH
17514   ;;
17515
17516 bsdi[45]*)
17517   version_type=linux
17518   need_version=no
17519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520   soname_spec='${libname}${release}${shared_ext}$major'
17521   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17522   shlibpath_var=LD_LIBRARY_PATH
17523   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17524   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17525   # the default ld.so.conf also contains /usr/contrib/lib and
17526   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17527   # libtool to hard-code these into programs
17528   ;;
17529
17530 cygwin* | mingw* | pw32* | cegcc*)
17531   version_type=windows
17532   shrext_cmds=".dll"
17533   need_version=no
17534   need_lib_prefix=no
17535
17536   case $GCC,$host_os in
17537   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17538     library_names_spec='$libname.dll.a'
17539     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17540     postinstall_cmds='base_file=`basename \${file}`~
17541       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17542       dldir=$destdir/`dirname \$dlpath`~
17543       test -d \$dldir || mkdir -p \$dldir~
17544       $install_prog $dir/$dlname \$dldir/$dlname~
17545       chmod a+x \$dldir/$dlname~
17546       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17547         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17548       fi'
17549     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17550       dlpath=$dir/\$dldll~
17551        $RM \$dlpath'
17552     shlibpath_overrides_runpath=yes
17553
17554     case $host_os in
17555     cygwin*)
17556       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17557       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17558
17559       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17560       ;;
17561     mingw* | cegcc*)
17562       # MinGW DLLs use traditional 'lib' prefix
17563       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17564       ;;
17565     pw32*)
17566       # pw32 DLLs use 'pw' prefix rather than 'lib'
17567       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17568       ;;
17569     esac
17570     ;;
17571
17572   *)
17573     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17574     ;;
17575   esac
17576   dynamic_linker='Win32 ld.exe'
17577   # FIXME: first we should search . and the directory the executable is in
17578   shlibpath_var=PATH
17579   ;;
17580
17581 darwin* | rhapsody*)
17582   dynamic_linker="$host_os dyld"
17583   version_type=darwin
17584   need_lib_prefix=no
17585   need_version=no
17586   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17587   soname_spec='${libname}${release}${major}$shared_ext'
17588   shlibpath_overrides_runpath=yes
17589   shlibpath_var=DYLD_LIBRARY_PATH
17590   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17591
17592   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17593   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17594   ;;
17595
17596 dgux*)
17597   version_type=linux
17598   need_lib_prefix=no
17599   need_version=no
17600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17601   soname_spec='${libname}${release}${shared_ext}$major'
17602   shlibpath_var=LD_LIBRARY_PATH
17603   ;;
17604
17605 freebsd* | dragonfly*)
17606   # DragonFly does not have aout.  When/if they implement a new
17607   # versioning mechanism, adjust this.
17608   if test -x /usr/bin/objformat; then
17609     objformat=`/usr/bin/objformat`
17610   else
17611     case $host_os in
17612     freebsd[23].*) objformat=aout ;;
17613     *) objformat=elf ;;
17614     esac
17615   fi
17616   version_type=freebsd-$objformat
17617   case $version_type in
17618     freebsd-elf*)
17619       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17620       need_version=no
17621       need_lib_prefix=no
17622       ;;
17623     freebsd-*)
17624       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17625       need_version=yes
17626       ;;
17627   esac
17628   shlibpath_var=LD_LIBRARY_PATH
17629   case $host_os in
17630   freebsd2.*)
17631     shlibpath_overrides_runpath=yes
17632     ;;
17633   freebsd3.[01]* | freebsdelf3.[01]*)
17634     shlibpath_overrides_runpath=yes
17635     hardcode_into_libs=yes
17636     ;;
17637   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17638   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17639     shlibpath_overrides_runpath=no
17640     hardcode_into_libs=yes
17641     ;;
17642   *) # from 4.6 on, and DragonFly
17643     shlibpath_overrides_runpath=yes
17644     hardcode_into_libs=yes
17645     ;;
17646   esac
17647   ;;
17648
17649 gnu*)
17650   version_type=linux
17651   need_lib_prefix=no
17652   need_version=no
17653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17654   soname_spec='${libname}${release}${shared_ext}$major'
17655   shlibpath_var=LD_LIBRARY_PATH
17656   hardcode_into_libs=yes
17657   ;;
17658
17659 haiku*)
17660   version_type=linux
17661   need_lib_prefix=no
17662   need_version=no
17663   dynamic_linker="$host_os runtime_loader"
17664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17665   soname_spec='${libname}${release}${shared_ext}$major'
17666   shlibpath_var=LIBRARY_PATH
17667   shlibpath_overrides_runpath=yes
17668   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17669   hardcode_into_libs=yes
17670   ;;
17671
17672 hpux9* | hpux10* | hpux11*)
17673   # Give a soname corresponding to the major version so that dld.sl refuses to
17674   # link against other versions.
17675   version_type=sunos
17676   need_lib_prefix=no
17677   need_version=no
17678   case $host_cpu in
17679   ia64*)
17680     shrext_cmds='.so'
17681     hardcode_into_libs=yes
17682     dynamic_linker="$host_os dld.so"
17683     shlibpath_var=LD_LIBRARY_PATH
17684     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686     soname_spec='${libname}${release}${shared_ext}$major'
17687     if test "X$HPUX_IA64_MODE" = X32; then
17688       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17689     else
17690       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17691     fi
17692     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17693     ;;
17694   hppa*64*)
17695     shrext_cmds='.sl'
17696     hardcode_into_libs=yes
17697     dynamic_linker="$host_os dld.sl"
17698     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17699     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701     soname_spec='${libname}${release}${shared_ext}$major'
17702     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17703     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17704     ;;
17705   *)
17706     shrext_cmds='.sl'
17707     dynamic_linker="$host_os dld.sl"
17708     shlibpath_var=SHLIB_PATH
17709     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711     soname_spec='${libname}${release}${shared_ext}$major'
17712     ;;
17713   esac
17714   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17715   postinstall_cmds='chmod 555 $lib'
17716   # or fails outright, so override atomically:
17717   install_override_mode=555
17718   ;;
17719
17720 interix[3-9]*)
17721   version_type=linux
17722   need_lib_prefix=no
17723   need_version=no
17724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17725   soname_spec='${libname}${release}${shared_ext}$major'
17726   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17727   shlibpath_var=LD_LIBRARY_PATH
17728   shlibpath_overrides_runpath=no
17729   hardcode_into_libs=yes
17730   ;;
17731
17732 irix5* | irix6* | nonstopux*)
17733   case $host_os in
17734     nonstopux*) version_type=nonstopux ;;
17735     *)
17736         if test "$lt_cv_prog_gnu_ld" = yes; then
17737                 version_type=linux
17738         else
17739                 version_type=irix
17740         fi ;;
17741   esac
17742   need_lib_prefix=no
17743   need_version=no
17744   soname_spec='${libname}${release}${shared_ext}$major'
17745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17746   case $host_os in
17747   irix5* | nonstopux*)
17748     libsuff= shlibsuff=
17749     ;;
17750   *)
17751     case $LD in # libtool.m4 will add one of these switches to LD
17752     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17753       libsuff= shlibsuff= libmagic=32-bit;;
17754     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17755       libsuff=32 shlibsuff=N32 libmagic=N32;;
17756     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17757       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17758     *) libsuff= shlibsuff= libmagic=never-match;;
17759     esac
17760     ;;
17761   esac
17762   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17763   shlibpath_overrides_runpath=no
17764   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17765   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17766   hardcode_into_libs=yes
17767   ;;
17768
17769 # No shared lib support for Linux oldld, aout, or coff.
17770 linux*oldld* | linux*aout* | linux*coff*)
17771   dynamic_linker=no
17772   ;;
17773
17774 # This must be Linux ELF.
17775 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17776   version_type=linux
17777   need_lib_prefix=no
17778   need_version=no
17779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17780   soname_spec='${libname}${release}${shared_ext}$major'
17781   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17782   shlibpath_var=LD_LIBRARY_PATH
17783   shlibpath_overrides_runpath=no
17784
17785   # Some binutils ld are patched to set DT_RUNPATH
17786   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17787   $as_echo_n "(cached) " >&6
17788 else
17789   lt_cv_shlibpath_overrides_runpath=no
17790     save_LDFLAGS=$LDFLAGS
17791     save_libdir=$libdir
17792     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17793          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17794     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h.  */
17796
17797 int
17798 main ()
17799 {
17800
17801   ;
17802   return 0;
17803 }
17804 _ACEOF
17805 if ac_fn_c_try_link "$LINENO"; then :
17806   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17807   lt_cv_shlibpath_overrides_runpath=yes
17808 fi
17809 fi
17810 rm -f core conftest.err conftest.$ac_objext \
17811     conftest$ac_exeext conftest.$ac_ext
17812     LDFLAGS=$save_LDFLAGS
17813     libdir=$save_libdir
17814
17815 fi
17816
17817   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17818
17819   # This implies no fast_install, which is unacceptable.
17820   # Some rework will be needed to allow for fast_install
17821   # before this can be enabled.
17822   hardcode_into_libs=yes
17823
17824   # Append ld.so.conf contents to the search path
17825   if test -f /etc/ld.so.conf; then
17826     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' ' '`
17827     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17828   fi
17829
17830   # We used to test for /lib/ld.so.1 and disable shared libraries on
17831   # powerpc, because MkLinux only supported shared libraries with the
17832   # GNU dynamic linker.  Since this was broken with cross compilers,
17833   # most powerpc-linux boxes support dynamic linking these days and
17834   # people can always --disable-shared, the test was removed, and we
17835   # assume the GNU/Linux dynamic linker is in use.
17836   dynamic_linker='GNU/Linux ld.so'
17837   ;;
17838
17839 netbsd*)
17840   version_type=sunos
17841   need_lib_prefix=no
17842   need_version=no
17843   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17845     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17846     dynamic_linker='NetBSD (a.out) ld.so'
17847   else
17848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17849     soname_spec='${libname}${release}${shared_ext}$major'
17850     dynamic_linker='NetBSD ld.elf_so'
17851   fi
17852   shlibpath_var=LD_LIBRARY_PATH
17853   shlibpath_overrides_runpath=yes
17854   hardcode_into_libs=yes
17855   ;;
17856
17857 newsos6)
17858   version_type=linux
17859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17860   shlibpath_var=LD_LIBRARY_PATH
17861   shlibpath_overrides_runpath=yes
17862   ;;
17863
17864 *nto* | *qnx*)
17865   version_type=qnx
17866   need_lib_prefix=no
17867   need_version=no
17868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17869   soname_spec='${libname}${release}${shared_ext}$major'
17870   shlibpath_var=LD_LIBRARY_PATH
17871   shlibpath_overrides_runpath=no
17872   hardcode_into_libs=yes
17873   dynamic_linker='ldqnx.so'
17874   ;;
17875
17876 openbsd*)
17877   version_type=sunos
17878   sys_lib_dlsearch_path_spec="/usr/lib"
17879   need_lib_prefix=no
17880   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17881   case $host_os in
17882     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17883     *)                          need_version=no  ;;
17884   esac
17885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17886   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17887   shlibpath_var=LD_LIBRARY_PATH
17888   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17889     case $host_os in
17890       openbsd2.[89] | openbsd2.[89].*)
17891         shlibpath_overrides_runpath=no
17892         ;;
17893       *)
17894         shlibpath_overrides_runpath=yes
17895         ;;
17896       esac
17897   else
17898     shlibpath_overrides_runpath=yes
17899   fi
17900   ;;
17901
17902 os2*)
17903   libname_spec='$name'
17904   shrext_cmds=".dll"
17905   need_lib_prefix=no
17906   library_names_spec='$libname${shared_ext} $libname.a'
17907   dynamic_linker='OS/2 ld.exe'
17908   shlibpath_var=LIBPATH
17909   ;;
17910
17911 osf3* | osf4* | osf5*)
17912   version_type=osf
17913   need_lib_prefix=no
17914   need_version=no
17915   soname_spec='${libname}${release}${shared_ext}$major'
17916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17917   shlibpath_var=LD_LIBRARY_PATH
17918   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17919   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17920   ;;
17921
17922 rdos*)
17923   dynamic_linker=no
17924   ;;
17925
17926 solaris*)
17927   version_type=linux
17928   need_lib_prefix=no
17929   need_version=no
17930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17931   soname_spec='${libname}${release}${shared_ext}$major'
17932   shlibpath_var=LD_LIBRARY_PATH
17933   shlibpath_overrides_runpath=yes
17934   hardcode_into_libs=yes
17935   # ldd complains unless libraries are executable
17936   postinstall_cmds='chmod +x $lib'
17937   ;;
17938
17939 sunos4*)
17940   version_type=sunos
17941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17942   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17943   shlibpath_var=LD_LIBRARY_PATH
17944   shlibpath_overrides_runpath=yes
17945   if test "$with_gnu_ld" = yes; then
17946     need_lib_prefix=no
17947   fi
17948   need_version=yes
17949   ;;
17950
17951 sysv4 | sysv4.3*)
17952   version_type=linux
17953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17954   soname_spec='${libname}${release}${shared_ext}$major'
17955   shlibpath_var=LD_LIBRARY_PATH
17956   case $host_vendor in
17957     sni)
17958       shlibpath_overrides_runpath=no
17959       need_lib_prefix=no
17960       runpath_var=LD_RUN_PATH
17961       ;;
17962     siemens)
17963       need_lib_prefix=no
17964       ;;
17965     motorola)
17966       need_lib_prefix=no
17967       need_version=no
17968       shlibpath_overrides_runpath=no
17969       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17970       ;;
17971   esac
17972   ;;
17973
17974 sysv4*MP*)
17975   if test -d /usr/nec ;then
17976     version_type=linux
17977     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17978     soname_spec='$libname${shared_ext}.$major'
17979     shlibpath_var=LD_LIBRARY_PATH
17980   fi
17981   ;;
17982
17983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17984   version_type=freebsd-elf
17985   need_lib_prefix=no
17986   need_version=no
17987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17988   soname_spec='${libname}${release}${shared_ext}$major'
17989   shlibpath_var=LD_LIBRARY_PATH
17990   shlibpath_overrides_runpath=yes
17991   hardcode_into_libs=yes
17992   if test "$with_gnu_ld" = yes; then
17993     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17994   else
17995     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17996     case $host_os in
17997       sco3.2v5*)
17998         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17999         ;;
18000     esac
18001   fi
18002   sys_lib_dlsearch_path_spec='/usr/lib'
18003   ;;
18004
18005 tpf*)
18006   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18007   version_type=linux
18008   need_lib_prefix=no
18009   need_version=no
18010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18011   shlibpath_var=LD_LIBRARY_PATH
18012   shlibpath_overrides_runpath=no
18013   hardcode_into_libs=yes
18014   ;;
18015
18016 uts4*)
18017   version_type=linux
18018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18019   soname_spec='${libname}${release}${shared_ext}$major'
18020   shlibpath_var=LD_LIBRARY_PATH
18021   ;;
18022
18023 *)
18024   dynamic_linker=no
18025   ;;
18026 esac
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18028 $as_echo "$dynamic_linker" >&6; }
18029 test "$dynamic_linker" = no && can_build_shared=no
18030
18031 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18032 if test "$GCC" = yes; then
18033   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18034 fi
18035
18036 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18037   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18038 fi
18039 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18040   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18041 fi
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18135 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18136 hardcode_action=
18137 if test -n "$hardcode_libdir_flag_spec" ||
18138    test -n "$runpath_var" ||
18139    test "X$hardcode_automatic" = "Xyes" ; then
18140
18141   # We can hardcode non-existent directories.
18142   if test "$hardcode_direct" != no &&
18143      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18144      # have to relink, otherwise we might link with an installed library
18145      # when we should be linking with a yet-to-be-installed one
18146      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18147      test "$hardcode_minus_L" != no; then
18148     # Linking always hardcodes the temporary library directory.
18149     hardcode_action=relink
18150   else
18151     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18152     hardcode_action=immediate
18153   fi
18154 else
18155   # We cannot hardcode anything, or else we can only hardcode existing
18156   # directories.
18157   hardcode_action=unsupported
18158 fi
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18160 $as_echo "$hardcode_action" >&6; }
18161
18162 if test "$hardcode_action" = relink ||
18163    test "$inherit_rpath" = yes; then
18164   # Fast installation is not supported
18165   enable_fast_install=no
18166 elif test "$shlibpath_overrides_runpath" = yes ||
18167      test "$enable_shared" = no; then
18168   # Fast installation is not necessary
18169   enable_fast_install=needless
18170 fi
18171
18172
18173
18174
18175
18176
18177   if test "x$enable_dlopen" != xyes; then
18178   enable_dlopen=unknown
18179   enable_dlopen_self=unknown
18180   enable_dlopen_self_static=unknown
18181 else
18182   lt_cv_dlopen=no
18183   lt_cv_dlopen_libs=
18184
18185   case $host_os in
18186   beos*)
18187     lt_cv_dlopen="load_add_on"
18188     lt_cv_dlopen_libs=
18189     lt_cv_dlopen_self=yes
18190     ;;
18191
18192   mingw* | pw32* | cegcc*)
18193     lt_cv_dlopen="LoadLibrary"
18194     lt_cv_dlopen_libs=
18195     ;;
18196
18197   cygwin*)
18198     lt_cv_dlopen="dlopen"
18199     lt_cv_dlopen_libs=
18200     ;;
18201
18202   darwin*)
18203   # if libdl is installed we need to link against it
18204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18205 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18207   $as_echo_n "(cached) " >&6
18208 else
18209   ac_check_lib_save_LIBS=$LIBS
18210 LIBS="-ldl  $LIBS"
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h.  */
18213
18214 /* Override any GCC internal prototype to avoid an error.
18215    Use char because int might match the return type of a GCC
18216    builtin and then its argument prototype would still apply.  */
18217 #ifdef __cplusplus
18218 extern "C"
18219 #endif
18220 char dlopen ();
18221 int
18222 main ()
18223 {
18224 return dlopen ();
18225   ;
18226   return 0;
18227 }
18228 _ACEOF
18229 if ac_fn_c_try_link "$LINENO"; then :
18230   ac_cv_lib_dl_dlopen=yes
18231 else
18232   ac_cv_lib_dl_dlopen=no
18233 fi
18234 rm -f core conftest.err conftest.$ac_objext \
18235     conftest$ac_exeext conftest.$ac_ext
18236 LIBS=$ac_check_lib_save_LIBS
18237 fi
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18239 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18240 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18241   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18242 else
18243
18244     lt_cv_dlopen="dyld"
18245     lt_cv_dlopen_libs=
18246     lt_cv_dlopen_self=yes
18247
18248 fi
18249
18250     ;;
18251
18252   *)
18253     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18254 if test "x$ac_cv_func_shl_load" = x""yes; then :
18255   lt_cv_dlopen="shl_load"
18256 else
18257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18258 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18259 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18260   $as_echo_n "(cached) " >&6
18261 else
18262   ac_check_lib_save_LIBS=$LIBS
18263 LIBS="-ldld  $LIBS"
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h.  */
18266
18267 /* Override any GCC internal prototype to avoid an error.
18268    Use char because int might match the return type of a GCC
18269    builtin and then its argument prototype would still apply.  */
18270 #ifdef __cplusplus
18271 extern "C"
18272 #endif
18273 char shl_load ();
18274 int
18275 main ()
18276 {
18277 return shl_load ();
18278   ;
18279   return 0;
18280 }
18281 _ACEOF
18282 if ac_fn_c_try_link "$LINENO"; then :
18283   ac_cv_lib_dld_shl_load=yes
18284 else
18285   ac_cv_lib_dld_shl_load=no
18286 fi
18287 rm -f core conftest.err conftest.$ac_objext \
18288     conftest$ac_exeext conftest.$ac_ext
18289 LIBS=$ac_check_lib_save_LIBS
18290 fi
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18292 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18293 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18294   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18295 else
18296   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18297 if test "x$ac_cv_func_dlopen" = x""yes; then :
18298   lt_cv_dlopen="dlopen"
18299 else
18300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18301 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18302 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18303   $as_echo_n "(cached) " >&6
18304 else
18305   ac_check_lib_save_LIBS=$LIBS
18306 LIBS="-ldl  $LIBS"
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h.  */
18309
18310 /* Override any GCC internal prototype to avoid an error.
18311    Use char because int might match the return type of a GCC
18312    builtin and then its argument prototype would still apply.  */
18313 #ifdef __cplusplus
18314 extern "C"
18315 #endif
18316 char dlopen ();
18317 int
18318 main ()
18319 {
18320 return dlopen ();
18321   ;
18322   return 0;
18323 }
18324 _ACEOF
18325 if ac_fn_c_try_link "$LINENO"; then :
18326   ac_cv_lib_dl_dlopen=yes
18327 else
18328   ac_cv_lib_dl_dlopen=no
18329 fi
18330 rm -f core conftest.err conftest.$ac_objext \
18331     conftest$ac_exeext conftest.$ac_ext
18332 LIBS=$ac_check_lib_save_LIBS
18333 fi
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18335 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18336 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18337   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18338 else
18339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18340 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18341 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18342   $as_echo_n "(cached) " >&6
18343 else
18344   ac_check_lib_save_LIBS=$LIBS
18345 LIBS="-lsvld  $LIBS"
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h.  */
18348
18349 /* Override any GCC internal prototype to avoid an error.
18350    Use char because int might match the return type of a GCC
18351    builtin and then its argument prototype would still apply.  */
18352 #ifdef __cplusplus
18353 extern "C"
18354 #endif
18355 char dlopen ();
18356 int
18357 main ()
18358 {
18359 return dlopen ();
18360   ;
18361   return 0;
18362 }
18363 _ACEOF
18364 if ac_fn_c_try_link "$LINENO"; then :
18365   ac_cv_lib_svld_dlopen=yes
18366 else
18367   ac_cv_lib_svld_dlopen=no
18368 fi
18369 rm -f core conftest.err conftest.$ac_objext \
18370     conftest$ac_exeext conftest.$ac_ext
18371 LIBS=$ac_check_lib_save_LIBS
18372 fi
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18374 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18375 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18376   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18377 else
18378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18379 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18380 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18381   $as_echo_n "(cached) " >&6
18382 else
18383   ac_check_lib_save_LIBS=$LIBS
18384 LIBS="-ldld  $LIBS"
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h.  */
18387
18388 /* Override any GCC internal prototype to avoid an error.
18389    Use char because int might match the return type of a GCC
18390    builtin and then its argument prototype would still apply.  */
18391 #ifdef __cplusplus
18392 extern "C"
18393 #endif
18394 char dld_link ();
18395 int
18396 main ()
18397 {
18398 return dld_link ();
18399   ;
18400   return 0;
18401 }
18402 _ACEOF
18403 if ac_fn_c_try_link "$LINENO"; then :
18404   ac_cv_lib_dld_dld_link=yes
18405 else
18406   ac_cv_lib_dld_dld_link=no
18407 fi
18408 rm -f core conftest.err conftest.$ac_objext \
18409     conftest$ac_exeext conftest.$ac_ext
18410 LIBS=$ac_check_lib_save_LIBS
18411 fi
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18413 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18414 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18415   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18416 fi
18417
18418
18419 fi
18420
18421
18422 fi
18423
18424
18425 fi
18426
18427
18428 fi
18429
18430
18431 fi
18432
18433     ;;
18434   esac
18435
18436   if test "x$lt_cv_dlopen" != xno; then
18437     enable_dlopen=yes
18438   else
18439     enable_dlopen=no
18440   fi
18441
18442   case $lt_cv_dlopen in
18443   dlopen)
18444     save_CPPFLAGS="$CPPFLAGS"
18445     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18446
18447     save_LDFLAGS="$LDFLAGS"
18448     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18449
18450     save_LIBS="$LIBS"
18451     LIBS="$lt_cv_dlopen_libs $LIBS"
18452
18453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18454 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18455 if test "${lt_cv_dlopen_self+set}" = set; then :
18456   $as_echo_n "(cached) " >&6
18457 else
18458           if test "$cross_compiling" = yes; then :
18459   lt_cv_dlopen_self=cross
18460 else
18461   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18462   lt_status=$lt_dlunknown
18463   cat > conftest.$ac_ext <<_LT_EOF
18464 #line 18464 "configure"
18465 #include "confdefs.h"
18466
18467 #if HAVE_DLFCN_H
18468 #include <dlfcn.h>
18469 #endif
18470
18471 #include <stdio.h>
18472
18473 #ifdef RTLD_GLOBAL
18474 #  define LT_DLGLOBAL           RTLD_GLOBAL
18475 #else
18476 #  ifdef DL_GLOBAL
18477 #    define LT_DLGLOBAL         DL_GLOBAL
18478 #  else
18479 #    define LT_DLGLOBAL         0
18480 #  endif
18481 #endif
18482
18483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18484    find out it does not work in some platform. */
18485 #ifndef LT_DLLAZY_OR_NOW
18486 #  ifdef RTLD_LAZY
18487 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18488 #  else
18489 #    ifdef DL_LAZY
18490 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18491 #    else
18492 #      ifdef RTLD_NOW
18493 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18494 #      else
18495 #        ifdef DL_NOW
18496 #          define LT_DLLAZY_OR_NOW      DL_NOW
18497 #        else
18498 #          define LT_DLLAZY_OR_NOW      0
18499 #        endif
18500 #      endif
18501 #    endif
18502 #  endif
18503 #endif
18504
18505 /* When -fvisbility=hidden is used, assume the code has been annotated
18506    correspondingly for the symbols needed.  */
18507 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18508 void fnord () __attribute__((visibility("default")));
18509 #endif
18510
18511 void fnord () { int i=42; }
18512 int main ()
18513 {
18514   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18515   int status = $lt_dlunknown;
18516
18517   if (self)
18518     {
18519       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18520       else
18521         {
18522           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18523           else puts (dlerror ());
18524         }
18525       /* dlclose (self); */
18526     }
18527   else
18528     puts (dlerror ());
18529
18530   return status;
18531 }
18532 _LT_EOF
18533   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18534   (eval $ac_link) 2>&5
18535   ac_status=$?
18536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18537   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18538     (./conftest; exit; ) >&5 2>/dev/null
18539     lt_status=$?
18540     case x$lt_status in
18541       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18542       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18543       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18544     esac
18545   else :
18546     # compilation failed
18547     lt_cv_dlopen_self=no
18548   fi
18549 fi
18550 rm -fr conftest*
18551
18552
18553 fi
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18555 $as_echo "$lt_cv_dlopen_self" >&6; }
18556
18557     if test "x$lt_cv_dlopen_self" = xyes; then
18558       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18559       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18560 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18561 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18562   $as_echo_n "(cached) " >&6
18563 else
18564           if test "$cross_compiling" = yes; then :
18565   lt_cv_dlopen_self_static=cross
18566 else
18567   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18568   lt_status=$lt_dlunknown
18569   cat > conftest.$ac_ext <<_LT_EOF
18570 #line 18570 "configure"
18571 #include "confdefs.h"
18572
18573 #if HAVE_DLFCN_H
18574 #include <dlfcn.h>
18575 #endif
18576
18577 #include <stdio.h>
18578
18579 #ifdef RTLD_GLOBAL
18580 #  define LT_DLGLOBAL           RTLD_GLOBAL
18581 #else
18582 #  ifdef DL_GLOBAL
18583 #    define LT_DLGLOBAL         DL_GLOBAL
18584 #  else
18585 #    define LT_DLGLOBAL         0
18586 #  endif
18587 #endif
18588
18589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18590    find out it does not work in some platform. */
18591 #ifndef LT_DLLAZY_OR_NOW
18592 #  ifdef RTLD_LAZY
18593 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18594 #  else
18595 #    ifdef DL_LAZY
18596 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18597 #    else
18598 #      ifdef RTLD_NOW
18599 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18600 #      else
18601 #        ifdef DL_NOW
18602 #          define LT_DLLAZY_OR_NOW      DL_NOW
18603 #        else
18604 #          define LT_DLLAZY_OR_NOW      0
18605 #        endif
18606 #      endif
18607 #    endif
18608 #  endif
18609 #endif
18610
18611 /* When -fvisbility=hidden is used, assume the code has been annotated
18612    correspondingly for the symbols needed.  */
18613 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18614 void fnord () __attribute__((visibility("default")));
18615 #endif
18616
18617 void fnord () { int i=42; }
18618 int main ()
18619 {
18620   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18621   int status = $lt_dlunknown;
18622
18623   if (self)
18624     {
18625       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18626       else
18627         {
18628           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18629           else puts (dlerror ());
18630         }
18631       /* dlclose (self); */
18632     }
18633   else
18634     puts (dlerror ());
18635
18636   return status;
18637 }
18638 _LT_EOF
18639   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18640   (eval $ac_link) 2>&5
18641   ac_status=$?
18642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18643   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18644     (./conftest; exit; ) >&5 2>/dev/null
18645     lt_status=$?
18646     case x$lt_status in
18647       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18648       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18649       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18650     esac
18651   else :
18652     # compilation failed
18653     lt_cv_dlopen_self_static=no
18654   fi
18655 fi
18656 rm -fr conftest*
18657
18658
18659 fi
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18661 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18662     fi
18663
18664     CPPFLAGS="$save_CPPFLAGS"
18665     LDFLAGS="$save_LDFLAGS"
18666     LIBS="$save_LIBS"
18667     ;;
18668   esac
18669
18670   case $lt_cv_dlopen_self in
18671   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18672   *) enable_dlopen_self=unknown ;;
18673   esac
18674
18675   case $lt_cv_dlopen_self_static in
18676   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18677   *) enable_dlopen_self_static=unknown ;;
18678   esac
18679 fi
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697 striplib=
18698 old_striplib=
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18700 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18701 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18702   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18703   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18705 $as_echo "yes" >&6; }
18706 else
18707 # FIXME - insert some real tests, host_os isn't really good enough
18708   case $host_os in
18709   darwin*)
18710     if test -n "$STRIP" ; then
18711       striplib="$STRIP -x"
18712       old_striplib="$STRIP -S"
18713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18714 $as_echo "yes" >&6; }
18715     else
18716       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18717 $as_echo "no" >&6; }
18718     fi
18719     ;;
18720   *)
18721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18722 $as_echo "no" >&6; }
18723     ;;
18724   esac
18725 fi
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738   # Report which library types will actually be built
18739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18740 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18742 $as_echo "$can_build_shared" >&6; }
18743
18744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18745 $as_echo_n "checking whether to build shared libraries... " >&6; }
18746   test "$can_build_shared" = "no" && enable_shared=no
18747
18748   # On AIX, shared libraries and static libraries use the same namespace, and
18749   # are all built from PIC.
18750   case $host_os in
18751   aix3*)
18752     test "$enable_shared" = yes && enable_static=no
18753     if test -n "$RANLIB"; then
18754       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18755       postinstall_cmds='$RANLIB $lib'
18756     fi
18757     ;;
18758
18759   aix[4-9]*)
18760     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18761       test "$enable_shared" = yes && enable_static=no
18762     fi
18763     ;;
18764   esac
18765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18766 $as_echo "$enable_shared" >&6; }
18767
18768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18769 $as_echo_n "checking whether to build static libraries... " >&6; }
18770   # Make sure either enable_shared or enable_static is yes.
18771   test "$enable_shared" = yes || enable_static=yes
18772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18773 $as_echo "$enable_static" >&6; }
18774
18775
18776
18777
18778 fi
18779 ac_ext=cpp
18780 ac_cpp='$CXXCPP $CPPFLAGS'
18781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18784
18785 CC="$lt_save_CC"
18786
18787       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18788     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18789     (test "X$CXX" != "Xg++"))) ; then
18790   ac_ext=cpp
18791 ac_cpp='$CXXCPP $CPPFLAGS'
18792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18796 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18797 if test -z "$CXXCPP"; then
18798   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18799   $as_echo_n "(cached) " >&6
18800 else
18801       # Double quotes because CXXCPP needs to be expanded
18802     for CXXCPP in "$CXX -E" "/lib/cpp"
18803     do
18804       ac_preproc_ok=false
18805 for ac_cxx_preproc_warn_flag in '' yes
18806 do
18807   # Use a header file that comes with gcc, so configuring glibc
18808   # with a fresh cross-compiler works.
18809   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18810   # <limits.h> exists even on freestanding compilers.
18811   # On the NeXT, cc -E runs the code through the compiler's parser,
18812   # not just through cpp. "Syntax error" is here to catch this case.
18813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h.  */
18815 #ifdef __STDC__
18816 # include <limits.h>
18817 #else
18818 # include <assert.h>
18819 #endif
18820                      Syntax error
18821 _ACEOF
18822 if ac_fn_cxx_try_cpp "$LINENO"; then :
18823
18824 else
18825   # Broken: fails on valid input.
18826 continue
18827 fi
18828 rm -f conftest.err conftest.$ac_ext
18829
18830   # OK, works on sane cases.  Now check whether nonexistent headers
18831   # can be detected and how.
18832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833 /* end confdefs.h.  */
18834 #include <ac_nonexistent.h>
18835 _ACEOF
18836 if ac_fn_cxx_try_cpp "$LINENO"; then :
18837   # Broken: success on invalid input.
18838 continue
18839 else
18840   # Passes both tests.
18841 ac_preproc_ok=:
18842 break
18843 fi
18844 rm -f conftest.err conftest.$ac_ext
18845
18846 done
18847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18848 rm -f conftest.err conftest.$ac_ext
18849 if $ac_preproc_ok; then :
18850   break
18851 fi
18852
18853     done
18854     ac_cv_prog_CXXCPP=$CXXCPP
18855
18856 fi
18857   CXXCPP=$ac_cv_prog_CXXCPP
18858 else
18859   ac_cv_prog_CXXCPP=$CXXCPP
18860 fi
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18862 $as_echo "$CXXCPP" >&6; }
18863 ac_preproc_ok=false
18864 for ac_cxx_preproc_warn_flag in '' yes
18865 do
18866   # Use a header file that comes with gcc, so configuring glibc
18867   # with a fresh cross-compiler works.
18868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18869   # <limits.h> exists even on freestanding compilers.
18870   # On the NeXT, cc -E runs the code through the compiler's parser,
18871   # not just through cpp. "Syntax error" is here to catch this case.
18872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h.  */
18874 #ifdef __STDC__
18875 # include <limits.h>
18876 #else
18877 # include <assert.h>
18878 #endif
18879                      Syntax error
18880 _ACEOF
18881 if ac_fn_cxx_try_cpp "$LINENO"; then :
18882
18883 else
18884   # Broken: fails on valid input.
18885 continue
18886 fi
18887 rm -f conftest.err conftest.$ac_ext
18888
18889   # OK, works on sane cases.  Now check whether nonexistent headers
18890   # can be detected and how.
18891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18892 /* end confdefs.h.  */
18893 #include <ac_nonexistent.h>
18894 _ACEOF
18895 if ac_fn_cxx_try_cpp "$LINENO"; then :
18896   # Broken: success on invalid input.
18897 continue
18898 else
18899   # Passes both tests.
18900 ac_preproc_ok=:
18901 break
18902 fi
18903 rm -f conftest.err conftest.$ac_ext
18904
18905 done
18906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18907 rm -f conftest.err conftest.$ac_ext
18908 if $ac_preproc_ok; then :
18909
18910 else
18911   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18913 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18914 See \`config.log' for more details." "$LINENO" 5; }
18915 fi
18916
18917 ac_ext=cpp
18918 ac_cpp='$CXXCPP $CPPFLAGS'
18919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18922
18923 else
18924   _lt_caught_CXX_error=yes
18925 fi
18926
18927 ac_ext=cpp
18928 ac_cpp='$CXXCPP $CPPFLAGS'
18929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18932
18933 archive_cmds_need_lc_CXX=no
18934 allow_undefined_flag_CXX=
18935 always_export_symbols_CXX=no
18936 archive_expsym_cmds_CXX=
18937 compiler_needs_object_CXX=no
18938 export_dynamic_flag_spec_CXX=
18939 hardcode_direct_CXX=no
18940 hardcode_direct_absolute_CXX=no
18941 hardcode_libdir_flag_spec_CXX=
18942 hardcode_libdir_flag_spec_ld_CXX=
18943 hardcode_libdir_separator_CXX=
18944 hardcode_minus_L_CXX=no
18945 hardcode_shlibpath_var_CXX=unsupported
18946 hardcode_automatic_CXX=no
18947 inherit_rpath_CXX=no
18948 module_cmds_CXX=
18949 module_expsym_cmds_CXX=
18950 link_all_deplibs_CXX=unknown
18951 old_archive_cmds_CXX=$old_archive_cmds
18952 reload_flag_CXX=$reload_flag
18953 reload_cmds_CXX=$reload_cmds
18954 no_undefined_flag_CXX=
18955 whole_archive_flag_spec_CXX=
18956 enable_shared_with_static_runtimes_CXX=no
18957
18958 # Source file extension for C++ test sources.
18959 ac_ext=cpp
18960
18961 # Object file extension for compiled C++ test sources.
18962 objext=o
18963 objext_CXX=$objext
18964
18965 # No sense in running all these tests if we already determined that
18966 # the CXX compiler isn't working.  Some variables (like enable_shared)
18967 # are currently assumed to apply to all compilers on this platform,
18968 # and will be corrupted by setting them based on a non-working compiler.
18969 if test "$_lt_caught_CXX_error" != yes; then
18970   # Code to be used in simple compile tests
18971   lt_simple_compile_test_code="int some_variable = 0;"
18972
18973   # Code to be used in simple link tests
18974   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18975
18976   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18977
18978
18979
18980
18981
18982
18983 # If no C compiler was specified, use CC.
18984 LTCC=${LTCC-"$CC"}
18985
18986 # If no C compiler flags were specified, use CFLAGS.
18987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18988
18989 # Allow CC to be a program name with arguments.
18990 compiler=$CC
18991
18992
18993   # save warnings/boilerplate of simple test code
18994   ac_outfile=conftest.$ac_objext
18995 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18996 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18997 _lt_compiler_boilerplate=`cat conftest.err`
18998 $RM conftest*
18999
19000   ac_outfile=conftest.$ac_objext
19001 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19002 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19003 _lt_linker_boilerplate=`cat conftest.err`
19004 $RM -r conftest*
19005
19006
19007   # Allow CC to be a program name with arguments.
19008   lt_save_CC=$CC
19009   lt_save_LD=$LD
19010   lt_save_GCC=$GCC
19011   GCC=$GXX
19012   lt_save_with_gnu_ld=$with_gnu_ld
19013   lt_save_path_LD=$lt_cv_path_LD
19014   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19015     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19016   else
19017     $as_unset lt_cv_prog_gnu_ld
19018   fi
19019   if test -n "${lt_cv_path_LDCXX+set}"; then
19020     lt_cv_path_LD=$lt_cv_path_LDCXX
19021   else
19022     $as_unset lt_cv_path_LD
19023   fi
19024   test -z "${LDCXX+set}" || LD=$LDCXX
19025   CC=${CXX-"c++"}
19026   compiler=$CC
19027   compiler_CXX=$CC
19028   for cc_temp in $compiler""; do
19029   case $cc_temp in
19030     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19031     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19032     \-*) ;;
19033     *) break;;
19034   esac
19035 done
19036 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19037
19038
19039   if test -n "$compiler"; then
19040     # We don't want -fno-exception when compiling C++ code, so set the
19041     # no_builtin_flag separately
19042     if test "$GXX" = yes; then
19043       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19044     else
19045       lt_prog_compiler_no_builtin_flag_CXX=
19046     fi
19047
19048     if test "$GXX" = yes; then
19049       # Set up default GNU C++ configuration
19050
19051
19052
19053 # Check whether --with-gnu-ld was given.
19054 if test "${with_gnu_ld+set}" = set; then :
19055   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19056 else
19057   with_gnu_ld=no
19058 fi
19059
19060 ac_prog=ld
19061 if test "$GCC" = yes; then
19062   # Check if gcc -print-prog-name=ld gives a path.
19063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19064 $as_echo_n "checking for ld used by $CC... " >&6; }
19065   case $host in
19066   *-*-mingw*)
19067     # gcc leaves a trailing carriage return which upsets mingw
19068     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19069   *)
19070     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19071   esac
19072   case $ac_prog in
19073     # Accept absolute paths.
19074     [\\/]* | ?:[\\/]*)
19075       re_direlt='/[^/][^/]*/\.\./'
19076       # Canonicalize the pathname of ld
19077       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19078       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19079         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19080       done
19081       test -z "$LD" && LD="$ac_prog"
19082       ;;
19083   "")
19084     # If it fails, then pretend we aren't using GCC.
19085     ac_prog=ld
19086     ;;
19087   *)
19088     # If it is relative, then search for the first ld in PATH.
19089     with_gnu_ld=unknown
19090     ;;
19091   esac
19092 elif test "$with_gnu_ld" = yes; then
19093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19094 $as_echo_n "checking for GNU ld... " >&6; }
19095 else
19096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19097 $as_echo_n "checking for non-GNU ld... " >&6; }
19098 fi
19099 if test "${lt_cv_path_LD+set}" = set; then :
19100   $as_echo_n "(cached) " >&6
19101 else
19102   if test -z "$LD"; then
19103   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19104   for ac_dir in $PATH; do
19105     IFS="$lt_save_ifs"
19106     test -z "$ac_dir" && ac_dir=.
19107     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19108       lt_cv_path_LD="$ac_dir/$ac_prog"
19109       # Check to see if the program is GNU ld.  I'd rather use --version,
19110       # but apparently some variants of GNU ld only accept -v.
19111       # Break only if it was the GNU/non-GNU ld that we prefer.
19112       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19113       *GNU* | *'with BFD'*)
19114         test "$with_gnu_ld" != no && break
19115         ;;
19116       *)
19117         test "$with_gnu_ld" != yes && break
19118         ;;
19119       esac
19120     fi
19121   done
19122   IFS="$lt_save_ifs"
19123 else
19124   lt_cv_path_LD="$LD" # Let the user override the test with a path.
19125 fi
19126 fi
19127
19128 LD="$lt_cv_path_LD"
19129 if test -n "$LD"; then
19130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19131 $as_echo "$LD" >&6; }
19132 else
19133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19134 $as_echo "no" >&6; }
19135 fi
19136 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19138 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19139 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19140   $as_echo_n "(cached) " >&6
19141 else
19142   # I'd rather use --version here, but apparently some GNU lds only accept -v.
19143 case `$LD -v 2>&1 </dev/null` in
19144 *GNU* | *'with BFD'*)
19145   lt_cv_prog_gnu_ld=yes
19146   ;;
19147 *)
19148   lt_cv_prog_gnu_ld=no
19149   ;;
19150 esac
19151 fi
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19153 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19154 with_gnu_ld=$lt_cv_prog_gnu_ld
19155
19156
19157
19158
19159
19160
19161
19162       # Check if GNU C++ uses GNU ld as the underlying linker, since the
19163       # archiving commands below assume that GNU ld is being used.
19164       if test "$with_gnu_ld" = yes; then
19165         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19166         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19167
19168         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19169         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19170
19171         # If archive_cmds runs LD, not CC, wlarc should be empty
19172         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19173         #     investigate it a little bit more. (MM)
19174         wlarc='${wl}'
19175
19176         # ancient GNU ld didn't support --whole-archive et. al.
19177         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19178           $GREP 'no-whole-archive' > /dev/null; then
19179           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19180         else
19181           whole_archive_flag_spec_CXX=
19182         fi
19183       else
19184         with_gnu_ld=no
19185         wlarc=
19186
19187         # A generic and very simple default shared library creation
19188         # command for GNU C++ for the case where it uses the native
19189         # linker, instead of GNU ld.  If possible, this setting should
19190         # overridden to take advantage of the native linker features on
19191         # the platform it is being used on.
19192         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19193       fi
19194
19195       # Commands to make compiler produce verbose output that lists
19196       # what "hidden" libraries, object files and flags are used when
19197       # linking a shared library.
19198       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19199
19200     else
19201       GXX=no
19202       with_gnu_ld=no
19203       wlarc=
19204     fi
19205
19206     # PORTME: fill in a description of your system's C++ link characteristics
19207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19208 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19209     ld_shlibs_CXX=yes
19210     case $host_os in
19211       aix3*)
19212         # FIXME: insert proper C++ library support
19213         ld_shlibs_CXX=no
19214         ;;
19215       aix[4-9]*)
19216         if test "$host_cpu" = ia64; then
19217           # On IA64, the linker does run time linking by default, so we don't
19218           # have to do anything special.
19219           aix_use_runtimelinking=no
19220           exp_sym_flag='-Bexport'
19221           no_entry_flag=""
19222         else
19223           aix_use_runtimelinking=no
19224
19225           # Test if we are trying to use run time linking or normal
19226           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19227           # need to do runtime linking.
19228           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19229             for ld_flag in $LDFLAGS; do
19230               case $ld_flag in
19231               *-brtl*)
19232                 aix_use_runtimelinking=yes
19233                 break
19234                 ;;
19235               esac
19236             done
19237             ;;
19238           esac
19239
19240           exp_sym_flag='-bexport'
19241           no_entry_flag='-bnoentry'
19242         fi
19243
19244         # When large executables or shared objects are built, AIX ld can
19245         # have problems creating the table of contents.  If linking a library
19246         # or program results in "error TOC overflow" add -mminimal-toc to
19247         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19248         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19249
19250         archive_cmds_CXX=''
19251         hardcode_direct_CXX=yes
19252         hardcode_direct_absolute_CXX=yes
19253         hardcode_libdir_separator_CXX=':'
19254         link_all_deplibs_CXX=yes
19255         file_list_spec_CXX='${wl}-f,'
19256
19257         if test "$GXX" = yes; then
19258           case $host_os in aix4.[012]|aix4.[012].*)
19259           # We only want to do this on AIX 4.2 and lower, the check
19260           # below for broken collect2 doesn't work under 4.3+
19261           collect2name=`${CC} -print-prog-name=collect2`
19262           if test -f "$collect2name" &&
19263              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19264           then
19265             # We have reworked collect2
19266             :
19267           else
19268             # We have old collect2
19269             hardcode_direct_CXX=unsupported
19270             # It fails to find uninstalled libraries when the uninstalled
19271             # path is not listed in the libpath.  Setting hardcode_minus_L
19272             # to unsupported forces relinking
19273             hardcode_minus_L_CXX=yes
19274             hardcode_libdir_flag_spec_CXX='-L$libdir'
19275             hardcode_libdir_separator_CXX=
19276           fi
19277           esac
19278           shared_flag='-shared'
19279           if test "$aix_use_runtimelinking" = yes; then
19280             shared_flag="$shared_flag "'${wl}-G'
19281           fi
19282         else
19283           # not using gcc
19284           if test "$host_cpu" = ia64; then
19285           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19286           # chokes on -Wl,-G. The following line is correct:
19287           shared_flag='-G'
19288           else
19289             if test "$aix_use_runtimelinking" = yes; then
19290               shared_flag='${wl}-G'
19291             else
19292               shared_flag='${wl}-bM:SRE'
19293             fi
19294           fi
19295         fi
19296
19297         export_dynamic_flag_spec_CXX='${wl}-bexpall'
19298         # It seems that -bexpall does not export symbols beginning with
19299         # underscore (_), so it is better to generate a list of symbols to
19300         # export.
19301         always_export_symbols_CXX=yes
19302         if test "$aix_use_runtimelinking" = yes; then
19303           # Warning - without using the other runtime loading flags (-brtl),
19304           # -berok will link without error, but may produce a broken library.
19305           allow_undefined_flag_CXX='-berok'
19306           # Determine the default libpath from the value encoded in an empty
19307           # executable.
19308           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h.  */
19310
19311 int
19312 main ()
19313 {
19314
19315   ;
19316   return 0;
19317 }
19318 _ACEOF
19319 if ac_fn_cxx_try_link "$LINENO"; then :
19320
19321 lt_aix_libpath_sed='
19322     /Import File Strings/,/^$/ {
19323         /^0/ {
19324             s/^0  *\(.*\)$/\1/
19325             p
19326         }
19327     }'
19328 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19329 # Check for a 64-bit object if we didn't find anything.
19330 if test -z "$aix_libpath"; then
19331   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19332 fi
19333 fi
19334 rm -f core conftest.err conftest.$ac_objext \
19335     conftest$ac_exeext conftest.$ac_ext
19336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19337
19338           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19339
19340           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"
19341         else
19342           if test "$host_cpu" = ia64; then
19343             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19344             allow_undefined_flag_CXX="-z nodefs"
19345             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"
19346           else
19347             # Determine the default libpath from the value encoded in an
19348             # empty executable.
19349             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19350 /* end confdefs.h.  */
19351
19352 int
19353 main ()
19354 {
19355
19356   ;
19357   return 0;
19358 }
19359 _ACEOF
19360 if ac_fn_cxx_try_link "$LINENO"; then :
19361
19362 lt_aix_libpath_sed='
19363     /Import File Strings/,/^$/ {
19364         /^0/ {
19365             s/^0  *\(.*\)$/\1/
19366             p
19367         }
19368     }'
19369 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19370 # Check for a 64-bit object if we didn't find anything.
19371 if test -z "$aix_libpath"; then
19372   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19373 fi
19374 fi
19375 rm -f core conftest.err conftest.$ac_objext \
19376     conftest$ac_exeext conftest.$ac_ext
19377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19378
19379             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19380             # Warning - without using the other run time loading flags,
19381             # -berok will link without error, but may produce a broken library.
19382             no_undefined_flag_CXX=' ${wl}-bernotok'
19383             allow_undefined_flag_CXX=' ${wl}-berok'
19384             if test "$with_gnu_ld" = yes; then
19385               # We only use this code for GNU lds that support --whole-archive.
19386               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19387             else
19388               # Exported symbols can be pulled into shared objects from archives
19389               whole_archive_flag_spec_CXX='$convenience'
19390             fi
19391             archive_cmds_need_lc_CXX=yes
19392             # This is similar to how AIX traditionally builds its shared
19393             # libraries.
19394             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'
19395           fi
19396         fi
19397         ;;
19398
19399       beos*)
19400         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19401           allow_undefined_flag_CXX=unsupported
19402           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19403           # support --undefined.  This deserves some investigation.  FIXME
19404           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19405         else
19406           ld_shlibs_CXX=no
19407         fi
19408         ;;
19409
19410       chorus*)
19411         case $cc_basename in
19412           *)
19413           # FIXME: insert proper C++ library support
19414           ld_shlibs_CXX=no
19415           ;;
19416         esac
19417         ;;
19418
19419       cygwin* | mingw* | pw32* | cegcc*)
19420         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19421         # as there is no search path for DLLs.
19422         hardcode_libdir_flag_spec_CXX='-L$libdir'
19423         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19424         allow_undefined_flag_CXX=unsupported
19425         always_export_symbols_CXX=no
19426         enable_shared_with_static_runtimes_CXX=yes
19427
19428         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19429           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'
19430           # If the export-symbols file already is a .def file (1st line
19431           # is EXPORTS), use it as is; otherwise, prepend...
19432           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19433             cp $export_symbols $output_objdir/$soname.def;
19434           else
19435             echo EXPORTS > $output_objdir/$soname.def;
19436             cat $export_symbols >> $output_objdir/$soname.def;
19437           fi~
19438           $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'
19439         else
19440           ld_shlibs_CXX=no
19441         fi
19442         ;;
19443       darwin* | rhapsody*)
19444
19445
19446   archive_cmds_need_lc_CXX=no
19447   hardcode_direct_CXX=no
19448   hardcode_automatic_CXX=yes
19449   hardcode_shlibpath_var_CXX=unsupported
19450   if test "$lt_cv_ld_force_load" = "yes"; then
19451     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\"`'
19452   else
19453     whole_archive_flag_spec_CXX=''
19454   fi
19455   link_all_deplibs_CXX=yes
19456   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19457   case $cc_basename in
19458      ifort*) _lt_dar_can_shared=yes ;;
19459      *) _lt_dar_can_shared=$GCC ;;
19460   esac
19461   if test "$_lt_dar_can_shared" = "yes"; then
19462     output_verbose_link_cmd=func_echo_all
19463     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}"
19464     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19465     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}"
19466     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}"
19467        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19468       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}"
19469       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}"
19470     fi
19471
19472   else
19473   ld_shlibs_CXX=no
19474   fi
19475
19476         ;;
19477
19478       dgux*)
19479         case $cc_basename in
19480           ec++*)
19481             # FIXME: insert proper C++ library support
19482             ld_shlibs_CXX=no
19483             ;;
19484           ghcx*)
19485             # Green Hills C++ Compiler
19486             # FIXME: insert proper C++ library support
19487             ld_shlibs_CXX=no
19488             ;;
19489           *)
19490             # FIXME: insert proper C++ library support
19491             ld_shlibs_CXX=no
19492             ;;
19493         esac
19494         ;;
19495
19496       freebsd2.*)
19497         # C++ shared libraries reported to be fairly broken before
19498         # switch to ELF
19499         ld_shlibs_CXX=no
19500         ;;
19501
19502       freebsd-elf*)
19503         archive_cmds_need_lc_CXX=no
19504         ;;
19505
19506       freebsd* | dragonfly*)
19507         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19508         # conventions
19509         ld_shlibs_CXX=yes
19510         ;;
19511
19512       gnu*)
19513         ;;
19514
19515       haiku*)
19516         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19517         link_all_deplibs_CXX=yes
19518         ;;
19519
19520       hpux9*)
19521         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19522         hardcode_libdir_separator_CXX=:
19523         export_dynamic_flag_spec_CXX='${wl}-E'
19524         hardcode_direct_CXX=yes
19525         hardcode_minus_L_CXX=yes # Not in the search PATH,
19526                                              # but as the default
19527                                              # location of the library.
19528
19529         case $cc_basename in
19530           CC*)
19531             # FIXME: insert proper C++ library support
19532             ld_shlibs_CXX=no
19533             ;;
19534           aCC*)
19535             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'
19536             # Commands to make compiler produce verbose output that lists
19537             # what "hidden" libraries, object files and flags are used when
19538             # linking a shared library.
19539             #
19540             # There doesn't appear to be a way to prevent this compiler from
19541             # explicitly linking system object files so we need to strip them
19542             # from the output so that they don't get included in the library
19543             # dependencies.
19544             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"'
19545             ;;
19546           *)
19547             if test "$GXX" = yes; then
19548               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'
19549             else
19550               # FIXME: insert proper C++ library support
19551               ld_shlibs_CXX=no
19552             fi
19553             ;;
19554         esac
19555         ;;
19556
19557       hpux10*|hpux11*)
19558         if test $with_gnu_ld = no; then
19559           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19560           hardcode_libdir_separator_CXX=:
19561
19562           case $host_cpu in
19563             hppa*64*|ia64*)
19564               ;;
19565             *)
19566               export_dynamic_flag_spec_CXX='${wl}-E'
19567               ;;
19568           esac
19569         fi
19570         case $host_cpu in
19571           hppa*64*|ia64*)
19572             hardcode_direct_CXX=no
19573             hardcode_shlibpath_var_CXX=no
19574             ;;
19575           *)
19576             hardcode_direct_CXX=yes
19577             hardcode_direct_absolute_CXX=yes
19578             hardcode_minus_L_CXX=yes # Not in the search PATH,
19579                                                  # but as the default
19580                                                  # location of the library.
19581             ;;
19582         esac
19583
19584         case $cc_basename in
19585           CC*)
19586             # FIXME: insert proper C++ library support
19587             ld_shlibs_CXX=no
19588             ;;
19589           aCC*)
19590             case $host_cpu in
19591               hppa*64*)
19592                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19593                 ;;
19594               ia64*)
19595                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19596                 ;;
19597               *)
19598                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19599                 ;;
19600             esac
19601             # Commands to make compiler produce verbose output that lists
19602             # what "hidden" libraries, object files and flags are used when
19603             # linking a shared library.
19604             #
19605             # There doesn't appear to be a way to prevent this compiler from
19606             # explicitly linking system object files so we need to strip them
19607             # from the output so that they don't get included in the library
19608             # dependencies.
19609             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"'
19610             ;;
19611           *)
19612             if test "$GXX" = yes; then
19613               if test $with_gnu_ld = no; then
19614                 case $host_cpu in
19615                   hppa*64*)
19616                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19617                     ;;
19618                   ia64*)
19619                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19620                     ;;
19621                   *)
19622                     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'
19623                     ;;
19624                 esac
19625               fi
19626             else
19627               # FIXME: insert proper C++ library support
19628               ld_shlibs_CXX=no
19629             fi
19630             ;;
19631         esac
19632         ;;
19633
19634       interix[3-9]*)
19635         hardcode_direct_CXX=no
19636         hardcode_shlibpath_var_CXX=no
19637         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19638         export_dynamic_flag_spec_CXX='${wl}-E'
19639         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19640         # Instead, shared libraries are loaded at an image base (0x10000000 by
19641         # default) and relocated if they conflict, which is a slow very memory
19642         # consuming and fragmenting process.  To avoid this, we pick a random,
19643         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19644         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19645         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'
19646         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'
19647         ;;
19648       irix5* | irix6*)
19649         case $cc_basename in
19650           CC*)
19651             # SGI C++
19652             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'
19653
19654             # Archives containing C++ object files must be created using
19655             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19656             # necessary to make sure instantiated templates are included
19657             # in the archive.
19658             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19659             ;;
19660           *)
19661             if test "$GXX" = yes; then
19662               if test "$with_gnu_ld" = no; then
19663                 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'
19664               else
19665                 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'
19666               fi
19667             fi
19668             link_all_deplibs_CXX=yes
19669             ;;
19670         esac
19671         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19672         hardcode_libdir_separator_CXX=:
19673         inherit_rpath_CXX=yes
19674         ;;
19675
19676       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19677         case $cc_basename in
19678           KCC*)
19679             # Kuck and Associates, Inc. (KAI) C++ Compiler
19680
19681             # KCC will only create a shared library if the output file
19682             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19683             # to its proper name (with version) after linking.
19684             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'
19685             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'
19686             # Commands to make compiler produce verbose output that lists
19687             # what "hidden" libraries, object files and flags are used when
19688             # linking a shared library.
19689             #
19690             # There doesn't appear to be a way to prevent this compiler from
19691             # explicitly linking system object files so we need to strip them
19692             # from the output so that they don't get included in the library
19693             # dependencies.
19694             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"'
19695
19696             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19697             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19698
19699             # Archives containing C++ object files must be created using
19700             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19701             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19702             ;;
19703           icpc* | ecpc* )
19704             # Intel C++
19705             with_gnu_ld=yes
19706             # version 8.0 and above of icpc choke on multiply defined symbols
19707             # if we add $predep_objects and $postdep_objects, however 7.1 and
19708             # earlier do not add the objects themselves.
19709             case `$CC -V 2>&1` in
19710               *"Version 7."*)
19711                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19712                 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'
19713                 ;;
19714               *)  # Version 8.0 or newer
19715                 tmp_idyn=
19716                 case $host_cpu in
19717                   ia64*) tmp_idyn=' -i_dynamic';;
19718                 esac
19719                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19720                 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'
19721                 ;;
19722             esac
19723             archive_cmds_need_lc_CXX=no
19724             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19725             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19726             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19727             ;;
19728           pgCC* | pgcpp*)
19729             # Portland Group C++ compiler
19730             case `$CC -V` in
19731             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19732               prelink_cmds_CXX='tpldir=Template.dir~
19733                 rm -rf $tpldir~
19734                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19735                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19736               old_archive_cmds_CXX='tpldir=Template.dir~
19737                 rm -rf $tpldir~
19738                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19739                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19740                 $RANLIB $oldlib'
19741               archive_cmds_CXX='tpldir=Template.dir~
19742                 rm -rf $tpldir~
19743                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19744                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19745               archive_expsym_cmds_CXX='tpldir=Template.dir~
19746                 rm -rf $tpldir~
19747                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19748                 $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'
19749               ;;
19750             *) # Version 6 and above use weak symbols
19751               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19752               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'
19753               ;;
19754             esac
19755
19756             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19757             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19758             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'
19759             ;;
19760           cxx*)
19761             # Compaq C++
19762             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19763             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'
19764
19765             runpath_var=LD_RUN_PATH
19766             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19767             hardcode_libdir_separator_CXX=:
19768
19769             # Commands to make compiler produce verbose output that lists
19770             # what "hidden" libraries, object files and flags are used when
19771             # linking a shared library.
19772             #
19773             # There doesn't appear to be a way to prevent this compiler from
19774             # explicitly linking system object files so we need to strip them
19775             # from the output so that they don't get included in the library
19776             # dependencies.
19777             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'
19778             ;;
19779           xl* | mpixl* | bgxl*)
19780             # IBM XL 8.0 on PPC, with GNU ld
19781             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19782             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19783             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19784             if test "x$supports_anon_versioning" = xyes; then
19785               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19786                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19787                 echo "local: *; };" >> $output_objdir/$libname.ver~
19788                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19789             fi
19790             ;;
19791           *)
19792             case `$CC -V 2>&1 | sed 5q` in
19793             *Sun\ C*)
19794               # Sun C++ 5.9
19795               no_undefined_flag_CXX=' -zdefs'
19796               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19797               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'
19798               hardcode_libdir_flag_spec_CXX='-R$libdir'
19799               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'
19800               compiler_needs_object_CXX=yes
19801
19802               # Not sure whether something based on
19803               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19804               # would be better.
19805               output_verbose_link_cmd='func_echo_all'
19806
19807               # Archives containing C++ object files must be created using
19808               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19809               # necessary to make sure instantiated templates are included
19810               # in the archive.
19811               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19812               ;;
19813             esac
19814             ;;
19815         esac
19816         ;;
19817
19818       lynxos*)
19819         # FIXME: insert proper C++ library support
19820         ld_shlibs_CXX=no
19821         ;;
19822
19823       m88k*)
19824         # FIXME: insert proper C++ library support
19825         ld_shlibs_CXX=no
19826         ;;
19827
19828       mvs*)
19829         case $cc_basename in
19830           cxx*)
19831             # FIXME: insert proper C++ library support
19832             ld_shlibs_CXX=no
19833             ;;
19834           *)
19835             # FIXME: insert proper C++ library support
19836             ld_shlibs_CXX=no
19837             ;;
19838         esac
19839         ;;
19840
19841       netbsd*)
19842         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19843           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19844           wlarc=
19845           hardcode_libdir_flag_spec_CXX='-R$libdir'
19846           hardcode_direct_CXX=yes
19847           hardcode_shlibpath_var_CXX=no
19848         fi
19849         # Workaround some broken pre-1.5 toolchains
19850         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19851         ;;
19852
19853       *nto* | *qnx*)
19854         ld_shlibs_CXX=yes
19855         ;;
19856
19857       openbsd2*)
19858         # C++ shared libraries are fairly broken
19859         ld_shlibs_CXX=no
19860         ;;
19861
19862       openbsd*)
19863         if test -f /usr/libexec/ld.so; then
19864           hardcode_direct_CXX=yes
19865           hardcode_shlibpath_var_CXX=no
19866           hardcode_direct_absolute_CXX=yes
19867           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19868           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19869           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19870             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19871             export_dynamic_flag_spec_CXX='${wl}-E'
19872             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19873           fi
19874           output_verbose_link_cmd=func_echo_all
19875         else
19876           ld_shlibs_CXX=no
19877         fi
19878         ;;
19879
19880       osf3* | osf4* | osf5*)
19881         case $cc_basename in
19882           KCC*)
19883             # Kuck and Associates, Inc. (KAI) C++ Compiler
19884
19885             # KCC will only create a shared library if the output file
19886             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19887             # to its proper name (with version) after linking.
19888             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'
19889
19890             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19891             hardcode_libdir_separator_CXX=:
19892
19893             # Archives containing C++ object files must be created using
19894             # the KAI C++ compiler.
19895             case $host in
19896               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19897               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19898             esac
19899             ;;
19900           RCC*)
19901             # Rational C++ 2.4.1
19902             # FIXME: insert proper C++ library support
19903             ld_shlibs_CXX=no
19904             ;;
19905           cxx*)
19906             case $host in
19907               osf3*)
19908                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19909                 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'
19910                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19911                 ;;
19912               *)
19913                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19914                 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'
19915                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19916                   echo "-hidden">> $lib.exp~
19917                   $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~
19918                   $RM $lib.exp'
19919                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19920                 ;;
19921             esac
19922
19923             hardcode_libdir_separator_CXX=:
19924
19925             # Commands to make compiler produce verbose output that lists
19926             # what "hidden" libraries, object files and flags are used when
19927             # linking a shared library.
19928             #
19929             # There doesn't appear to be a way to prevent this compiler from
19930             # explicitly linking system object files so we need to strip them
19931             # from the output so that they don't get included in the library
19932             # dependencies.
19933             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"'
19934             ;;
19935           *)
19936             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19937               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19938               case $host in
19939                 osf3*)
19940                   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'
19941                   ;;
19942                 *)
19943                   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'
19944                   ;;
19945               esac
19946
19947               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19948               hardcode_libdir_separator_CXX=:
19949
19950               # Commands to make compiler produce verbose output that lists
19951               # what "hidden" libraries, object files and flags are used when
19952               # linking a shared library.
19953               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19954
19955             else
19956               # FIXME: insert proper C++ library support
19957               ld_shlibs_CXX=no
19958             fi
19959             ;;
19960         esac
19961         ;;
19962
19963       psos*)
19964         # FIXME: insert proper C++ library support
19965         ld_shlibs_CXX=no
19966         ;;
19967
19968       sunos4*)
19969         case $cc_basename in
19970           CC*)
19971             # Sun C++ 4.x
19972             # FIXME: insert proper C++ library support
19973             ld_shlibs_CXX=no
19974             ;;
19975           lcc*)
19976             # Lucid
19977             # FIXME: insert proper C++ library support
19978             ld_shlibs_CXX=no
19979             ;;
19980           *)
19981             # FIXME: insert proper C++ library support
19982             ld_shlibs_CXX=no
19983             ;;
19984         esac
19985         ;;
19986
19987       solaris*)
19988         case $cc_basename in
19989           CC*)
19990             # Sun C++ 4.2, 5.x and Centerline C++
19991             archive_cmds_need_lc_CXX=yes
19992             no_undefined_flag_CXX=' -zdefs'
19993             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19994             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19995               $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'
19996
19997             hardcode_libdir_flag_spec_CXX='-R$libdir'
19998             hardcode_shlibpath_var_CXX=no
19999             case $host_os in
20000               solaris2.[0-5] | solaris2.[0-5].*) ;;
20001               *)
20002                 # The compiler driver will combine and reorder linker options,
20003                 # but understands `-z linker_flag'.
20004                 # Supported since Solaris 2.6 (maybe 2.5.1?)
20005                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20006                 ;;
20007             esac
20008             link_all_deplibs_CXX=yes
20009
20010             output_verbose_link_cmd='func_echo_all'
20011
20012             # Archives containing C++ object files must be created using
20013             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20014             # necessary to make sure instantiated templates are included
20015             # in the archive.
20016             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20017             ;;
20018           gcx*)
20019             # Green Hills C++ Compiler
20020             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20021
20022             # The C++ compiler must be used to create the archive.
20023             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20024             ;;
20025           *)
20026             # GNU C++ compiler with Solaris linker
20027             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20028               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20029               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20030                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20031                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20032                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20033
20034                 # Commands to make compiler produce verbose output that lists
20035                 # what "hidden" libraries, object files and flags are used when
20036                 # linking a shared library.
20037                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20038               else
20039                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20040                 # platform.
20041                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20042                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20043                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20044
20045                 # Commands to make compiler produce verbose output that lists
20046                 # what "hidden" libraries, object files and flags are used when
20047                 # linking a shared library.
20048                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20049               fi
20050
20051               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20052               case $host_os in
20053                 solaris2.[0-5] | solaris2.[0-5].*) ;;
20054                 *)
20055                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20056                   ;;
20057               esac
20058             fi
20059             ;;
20060         esac
20061         ;;
20062
20063     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20064       no_undefined_flag_CXX='${wl}-z,text'
20065       archive_cmds_need_lc_CXX=no
20066       hardcode_shlibpath_var_CXX=no
20067       runpath_var='LD_RUN_PATH'
20068
20069       case $cc_basename in
20070         CC*)
20071           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20072           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20073           ;;
20074         *)
20075           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20076           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20077           ;;
20078       esac
20079       ;;
20080
20081       sysv5* | sco3.2v5* | sco5v6*)
20082         # Note: We can NOT use -z defs as we might desire, because we do not
20083         # link with -lc, and that would cause any symbols used from libc to
20084         # always be unresolved, which means just about no library would
20085         # ever link correctly.  If we're not using GNU ld we use -z text
20086         # though, which does catch some bad symbols but isn't as heavy-handed
20087         # as -z defs.
20088         no_undefined_flag_CXX='${wl}-z,text'
20089         allow_undefined_flag_CXX='${wl}-z,nodefs'
20090         archive_cmds_need_lc_CXX=no
20091         hardcode_shlibpath_var_CXX=no
20092         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20093         hardcode_libdir_separator_CXX=':'
20094         link_all_deplibs_CXX=yes
20095         export_dynamic_flag_spec_CXX='${wl}-Bexport'
20096         runpath_var='LD_RUN_PATH'
20097
20098         case $cc_basename in
20099           CC*)
20100             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20101             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20102             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20103               '"$old_archive_cmds_CXX"
20104             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20105               '"$reload_cmds_CXX"
20106             ;;
20107           *)
20108             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20109             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20110             ;;
20111         esac
20112       ;;
20113
20114       tandem*)
20115         case $cc_basename in
20116           NCC*)
20117             # NonStop-UX NCC 3.20
20118             # FIXME: insert proper C++ library support
20119             ld_shlibs_CXX=no
20120             ;;
20121           *)
20122             # FIXME: insert proper C++ library support
20123             ld_shlibs_CXX=no
20124             ;;
20125         esac
20126         ;;
20127
20128       vxworks*)
20129         # FIXME: insert proper C++ library support
20130         ld_shlibs_CXX=no
20131         ;;
20132
20133       *)
20134         # FIXME: insert proper C++ library support
20135         ld_shlibs_CXX=no
20136         ;;
20137     esac
20138
20139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20140 $as_echo "$ld_shlibs_CXX" >&6; }
20141     test "$ld_shlibs_CXX" = no && can_build_shared=no
20142
20143     GCC_CXX="$GXX"
20144     LD_CXX="$LD"
20145
20146     ## CAVEAT EMPTOR:
20147     ## There is no encapsulation within the following macros, do not change
20148     ## the running order or otherwise move them around unless you know exactly
20149     ## what you are doing...
20150     # Dependencies to place before and after the object being linked:
20151 predep_objects_CXX=
20152 postdep_objects_CXX=
20153 predeps_CXX=
20154 postdeps_CXX=
20155 compiler_lib_search_path_CXX=
20156
20157 cat > conftest.$ac_ext <<_LT_EOF
20158 class Foo
20159 {
20160 public:
20161   Foo (void) { a = 0; }
20162 private:
20163   int a;
20164 };
20165 _LT_EOF
20166
20167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20168   (eval $ac_compile) 2>&5
20169   ac_status=$?
20170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20171   test $ac_status = 0; }; then
20172   # Parse the compiler output and extract the necessary
20173   # objects, libraries and library flags.
20174
20175   # Sentinel used to keep track of whether or not we are before
20176   # the conftest object file.
20177   pre_test_object_deps_done=no
20178
20179   for p in `eval "$output_verbose_link_cmd"`; do
20180     case $p in
20181
20182     -L* | -R* | -l*)
20183        # Some compilers place space between "-{L,R}" and the path.
20184        # Remove the space.
20185        if test $p = "-L" ||
20186           test $p = "-R"; then
20187          prev=$p
20188          continue
20189        else
20190          prev=
20191        fi
20192
20193        if test "$pre_test_object_deps_done" = no; then
20194          case $p in
20195          -L* | -R*)
20196            # Internal compiler library paths should come after those
20197            # provided the user.  The postdeps already come after the
20198            # user supplied libs so there is no need to process them.
20199            if test -z "$compiler_lib_search_path_CXX"; then
20200              compiler_lib_search_path_CXX="${prev}${p}"
20201            else
20202              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20203            fi
20204            ;;
20205          # The "-l" case would never come before the object being
20206          # linked, so don't bother handling this case.
20207          esac
20208        else
20209          if test -z "$postdeps_CXX"; then
20210            postdeps_CXX="${prev}${p}"
20211          else
20212            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20213          fi
20214        fi
20215        ;;
20216
20217     *.$objext)
20218        # This assumes that the test object file only shows up
20219        # once in the compiler output.
20220        if test "$p" = "conftest.$objext"; then
20221          pre_test_object_deps_done=yes
20222          continue
20223        fi
20224
20225        if test "$pre_test_object_deps_done" = no; then
20226          if test -z "$predep_objects_CXX"; then
20227            predep_objects_CXX="$p"
20228          else
20229            predep_objects_CXX="$predep_objects_CXX $p"
20230          fi
20231        else
20232          if test -z "$postdep_objects_CXX"; then
20233            postdep_objects_CXX="$p"
20234          else
20235            postdep_objects_CXX="$postdep_objects_CXX $p"
20236          fi
20237        fi
20238        ;;
20239
20240     *) ;; # Ignore the rest.
20241
20242     esac
20243   done
20244
20245   # Clean up.
20246   rm -f a.out a.exe
20247 else
20248   echo "libtool.m4: error: problem compiling CXX test program"
20249 fi
20250
20251 $RM -f confest.$objext
20252
20253 # PORTME: override above test on systems where it is broken
20254 case $host_os in
20255 interix[3-9]*)
20256   # Interix 3.5 installs completely hosed .la files for C++, so rather than
20257   # hack all around it, let's just trust "g++" to DTRT.
20258   predep_objects_CXX=
20259   postdep_objects_CXX=
20260   postdeps_CXX=
20261   ;;
20262
20263 linux*)
20264   case `$CC -V 2>&1 | sed 5q` in
20265   *Sun\ C*)
20266     # Sun C++ 5.9
20267
20268     # The more standards-conforming stlport4 library is
20269     # incompatible with the Cstd library. Avoid specifying
20270     # it if it's in CXXFLAGS. Ignore libCrun as
20271     # -library=stlport4 depends on it.
20272     case " $CXX $CXXFLAGS " in
20273     *" -library=stlport4 "*)
20274       solaris_use_stlport4=yes
20275       ;;
20276     esac
20277
20278     if test "$solaris_use_stlport4" != yes; then
20279       postdeps_CXX='-library=Cstd -library=Crun'
20280     fi
20281     ;;
20282   esac
20283   ;;
20284
20285 solaris*)
20286   case $cc_basename in
20287   CC*)
20288     # The more standards-conforming stlport4 library is
20289     # incompatible with the Cstd library. Avoid specifying
20290     # it if it's in CXXFLAGS. Ignore libCrun as
20291     # -library=stlport4 depends on it.
20292     case " $CXX $CXXFLAGS " in
20293     *" -library=stlport4 "*)
20294       solaris_use_stlport4=yes
20295       ;;
20296     esac
20297
20298     # Adding this requires a known-good setup of shared libraries for
20299     # Sun compiler versions before 5.6, else PIC objects from an old
20300     # archive will be linked into the output, leading to subtle bugs.
20301     if test "$solaris_use_stlport4" != yes; then
20302       postdeps_CXX='-library=Cstd -library=Crun'
20303     fi
20304     ;;
20305   esac
20306   ;;
20307 esac
20308
20309
20310 case " $postdeps_CXX " in
20311 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20312 esac
20313  compiler_lib_search_dirs_CXX=
20314 if test -n "${compiler_lib_search_path_CXX}"; then
20315  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20316 fi
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348     lt_prog_compiler_wl_CXX=
20349 lt_prog_compiler_pic_CXX=
20350 lt_prog_compiler_static_CXX=
20351
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20353 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20354
20355   # C++ specific cases for pic, static, wl, etc.
20356   if test "$GXX" = yes; then
20357     lt_prog_compiler_wl_CXX='-Wl,'
20358     lt_prog_compiler_static_CXX='-static'
20359
20360     case $host_os in
20361     aix*)
20362       # All AIX code is PIC.
20363       if test "$host_cpu" = ia64; then
20364         # AIX 5 now supports IA64 processor
20365         lt_prog_compiler_static_CXX='-Bstatic'
20366       fi
20367       lt_prog_compiler_pic_CXX='-fPIC'
20368       ;;
20369
20370     amigaos*)
20371       case $host_cpu in
20372       powerpc)
20373             # see comment about AmigaOS4 .so support
20374             lt_prog_compiler_pic_CXX='-fPIC'
20375         ;;
20376       m68k)
20377             # FIXME: we need at least 68020 code to build shared libraries, but
20378             # adding the `-m68020' flag to GCC prevents building anything better,
20379             # like `-m68040'.
20380             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20381         ;;
20382       esac
20383       ;;
20384
20385     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20386       # PIC is the default for these OSes.
20387       ;;
20388     mingw* | cygwin* | os2* | pw32* | cegcc*)
20389       # This hack is so that the source file can tell whether it is being
20390       # built for inclusion in a dll (and should export symbols for example).
20391       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20392       # (--disable-auto-import) libraries
20393       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20394       ;;
20395     darwin* | rhapsody*)
20396       # PIC is the default on this platform
20397       # Common symbols not allowed in MH_DYLIB files
20398       lt_prog_compiler_pic_CXX='-fno-common'
20399       ;;
20400     *djgpp*)
20401       # DJGPP does not support shared libraries at all
20402       lt_prog_compiler_pic_CXX=
20403       ;;
20404     haiku*)
20405       # PIC is the default for Haiku.
20406       # The "-static" flag exists, but is broken.
20407       lt_prog_compiler_static_CXX=
20408       ;;
20409     interix[3-9]*)
20410       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20411       # Instead, we relocate shared libraries at runtime.
20412       ;;
20413     sysv4*MP*)
20414       if test -d /usr/nec; then
20415         lt_prog_compiler_pic_CXX=-Kconform_pic
20416       fi
20417       ;;
20418     hpux*)
20419       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20420       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20421       # sets the default TLS model and affects inlining.
20422       case $host_cpu in
20423       hppa*64*)
20424         ;;
20425       *)
20426         lt_prog_compiler_pic_CXX='-fPIC'
20427         ;;
20428       esac
20429       ;;
20430     *qnx* | *nto*)
20431       # QNX uses GNU C++, but need to define -shared option too, otherwise
20432       # it will coredump.
20433       lt_prog_compiler_pic_CXX='-fPIC -shared'
20434       ;;
20435     *)
20436       lt_prog_compiler_pic_CXX='-fPIC'
20437       ;;
20438     esac
20439   else
20440     case $host_os in
20441       aix[4-9]*)
20442         # All AIX code is PIC.
20443         if test "$host_cpu" = ia64; then
20444           # AIX 5 now supports IA64 processor
20445           lt_prog_compiler_static_CXX='-Bstatic'
20446         else
20447           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20448         fi
20449         ;;
20450       chorus*)
20451         case $cc_basename in
20452         cxch68*)
20453           # Green Hills C++ Compiler
20454           # _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"
20455           ;;
20456         esac
20457         ;;
20458       dgux*)
20459         case $cc_basename in
20460           ec++*)
20461             lt_prog_compiler_pic_CXX='-KPIC'
20462             ;;
20463           ghcx*)
20464             # Green Hills C++ Compiler
20465             lt_prog_compiler_pic_CXX='-pic'
20466             ;;
20467           *)
20468             ;;
20469         esac
20470         ;;
20471       freebsd* | dragonfly*)
20472         # FreeBSD uses GNU C++
20473         ;;
20474       hpux9* | hpux10* | hpux11*)
20475         case $cc_basename in
20476           CC*)
20477             lt_prog_compiler_wl_CXX='-Wl,'
20478             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20479             if test "$host_cpu" != ia64; then
20480               lt_prog_compiler_pic_CXX='+Z'
20481             fi
20482             ;;
20483           aCC*)
20484             lt_prog_compiler_wl_CXX='-Wl,'
20485             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20486             case $host_cpu in
20487             hppa*64*|ia64*)
20488               # +Z the default
20489               ;;
20490             *)
20491               lt_prog_compiler_pic_CXX='+Z'
20492               ;;
20493             esac
20494             ;;
20495           *)
20496             ;;
20497         esac
20498         ;;
20499       interix*)
20500         # This is c89, which is MS Visual C++ (no shared libs)
20501         # Anyone wants to do a port?
20502         ;;
20503       irix5* | irix6* | nonstopux*)
20504         case $cc_basename in
20505           CC*)
20506             lt_prog_compiler_wl_CXX='-Wl,'
20507             lt_prog_compiler_static_CXX='-non_shared'
20508             # CC pic flag -KPIC is the default.
20509             ;;
20510           *)
20511             ;;
20512         esac
20513         ;;
20514       linux* | k*bsd*-gnu | kopensolaris*-gnu)
20515         case $cc_basename in
20516           KCC*)
20517             # KAI C++ Compiler
20518             lt_prog_compiler_wl_CXX='--backend -Wl,'
20519             lt_prog_compiler_pic_CXX='-fPIC'
20520             ;;
20521           ecpc* )
20522             # old Intel C++ for x86_64 which still supported -KPIC.
20523             lt_prog_compiler_wl_CXX='-Wl,'
20524             lt_prog_compiler_pic_CXX='-KPIC'
20525             lt_prog_compiler_static_CXX='-static'
20526             ;;
20527           icpc* )
20528             # Intel C++, used to be incompatible with GCC.
20529             # ICC 10 doesn't accept -KPIC any more.
20530             lt_prog_compiler_wl_CXX='-Wl,'
20531             lt_prog_compiler_pic_CXX='-fPIC'
20532             lt_prog_compiler_static_CXX='-static'
20533             ;;
20534           pgCC* | pgcpp*)
20535             # Portland Group C++ compiler
20536             lt_prog_compiler_wl_CXX='-Wl,'
20537             lt_prog_compiler_pic_CXX='-fpic'
20538             lt_prog_compiler_static_CXX='-Bstatic'
20539             ;;
20540           cxx*)
20541             # Compaq C++
20542             # Make sure the PIC flag is empty.  It appears that all Alpha
20543             # Linux and Compaq Tru64 Unix objects are PIC.
20544             lt_prog_compiler_pic_CXX=
20545             lt_prog_compiler_static_CXX='-non_shared'
20546             ;;
20547           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20548             # IBM XL 8.0, 9.0 on PPC and BlueGene
20549             lt_prog_compiler_wl_CXX='-Wl,'
20550             lt_prog_compiler_pic_CXX='-qpic'
20551             lt_prog_compiler_static_CXX='-qstaticlink'
20552             ;;
20553           *)
20554             case `$CC -V 2>&1 | sed 5q` in
20555             *Sun\ C*)
20556               # Sun C++ 5.9
20557               lt_prog_compiler_pic_CXX='-KPIC'
20558               lt_prog_compiler_static_CXX='-Bstatic'
20559               lt_prog_compiler_wl_CXX='-Qoption ld '
20560               ;;
20561             esac
20562             ;;
20563         esac
20564         ;;
20565       lynxos*)
20566         ;;
20567       m88k*)
20568         ;;
20569       mvs*)
20570         case $cc_basename in
20571           cxx*)
20572             lt_prog_compiler_pic_CXX='-W c,exportall'
20573             ;;
20574           *)
20575             ;;
20576         esac
20577         ;;
20578       netbsd*)
20579         ;;
20580       *qnx* | *nto*)
20581         # QNX uses GNU C++, but need to define -shared option too, otherwise
20582         # it will coredump.
20583         lt_prog_compiler_pic_CXX='-fPIC -shared'
20584         ;;
20585       osf3* | osf4* | osf5*)
20586         case $cc_basename in
20587           KCC*)
20588             lt_prog_compiler_wl_CXX='--backend -Wl,'
20589             ;;
20590           RCC*)
20591             # Rational C++ 2.4.1
20592             lt_prog_compiler_pic_CXX='-pic'
20593             ;;
20594           cxx*)
20595             # Digital/Compaq C++
20596             lt_prog_compiler_wl_CXX='-Wl,'
20597             # Make sure the PIC flag is empty.  It appears that all Alpha
20598             # Linux and Compaq Tru64 Unix objects are PIC.
20599             lt_prog_compiler_pic_CXX=
20600             lt_prog_compiler_static_CXX='-non_shared'
20601             ;;
20602           *)
20603             ;;
20604         esac
20605         ;;
20606       psos*)
20607         ;;
20608       solaris*)
20609         case $cc_basename in
20610           CC*)
20611             # Sun C++ 4.2, 5.x and Centerline C++
20612             lt_prog_compiler_pic_CXX='-KPIC'
20613             lt_prog_compiler_static_CXX='-Bstatic'
20614             lt_prog_compiler_wl_CXX='-Qoption ld '
20615             ;;
20616           gcx*)
20617             # Green Hills C++ Compiler
20618             lt_prog_compiler_pic_CXX='-PIC'
20619             ;;
20620           *)
20621             ;;
20622         esac
20623         ;;
20624       sunos4*)
20625         case $cc_basename in
20626           CC*)
20627             # Sun C++ 4.x
20628             lt_prog_compiler_pic_CXX='-pic'
20629             lt_prog_compiler_static_CXX='-Bstatic'
20630             ;;
20631           lcc*)
20632             # Lucid
20633             lt_prog_compiler_pic_CXX='-pic'
20634             ;;
20635           *)
20636             ;;
20637         esac
20638         ;;
20639       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20640         case $cc_basename in
20641           CC*)
20642             lt_prog_compiler_wl_CXX='-Wl,'
20643             lt_prog_compiler_pic_CXX='-KPIC'
20644             lt_prog_compiler_static_CXX='-Bstatic'
20645             ;;
20646         esac
20647         ;;
20648       tandem*)
20649         case $cc_basename in
20650           NCC*)
20651             # NonStop-UX NCC 3.20
20652             lt_prog_compiler_pic_CXX='-KPIC'
20653             ;;
20654           *)
20655             ;;
20656         esac
20657         ;;
20658       vxworks*)
20659         ;;
20660       *)
20661         lt_prog_compiler_can_build_shared_CXX=no
20662         ;;
20663     esac
20664   fi
20665
20666 case $host_os in
20667   # For platforms which do not support PIC, -DPIC is meaningless:
20668   *djgpp*)
20669     lt_prog_compiler_pic_CXX=
20670     ;;
20671   *)
20672     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20673     ;;
20674 esac
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20676 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20677
20678
20679
20680 #
20681 # Check to make sure the PIC flag actually works.
20682 #
20683 if test -n "$lt_prog_compiler_pic_CXX"; then
20684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20685 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20686 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20687   $as_echo_n "(cached) " >&6
20688 else
20689   lt_cv_prog_compiler_pic_works_CXX=no
20690    ac_outfile=conftest.$ac_objext
20691    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20692    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20693    # Insert the option either (1) after the last *FLAGS variable, or
20694    # (2) before a word containing "conftest.", or (3) at the end.
20695    # Note that $ac_compile itself does not contain backslashes and begins
20696    # with a dollar sign (not a hyphen), so the echo should work correctly.
20697    # The option is referenced via a variable to avoid confusing sed.
20698    lt_compile=`echo "$ac_compile" | $SED \
20699    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20701    -e 's:$: $lt_compiler_flag:'`
20702    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20703    (eval "$lt_compile" 2>conftest.err)
20704    ac_status=$?
20705    cat conftest.err >&5
20706    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707    if (exit $ac_status) && test -s "$ac_outfile"; then
20708      # The compiler can only warn and ignore the option if not recognized
20709      # So say no if there are warnings other than the usual output.
20710      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20711      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20712      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20713        lt_cv_prog_compiler_pic_works_CXX=yes
20714      fi
20715    fi
20716    $RM conftest*
20717
20718 fi
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20720 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20721
20722 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20723     case $lt_prog_compiler_pic_CXX in
20724      "" | " "*) ;;
20725      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20726      esac
20727 else
20728     lt_prog_compiler_pic_CXX=
20729      lt_prog_compiler_can_build_shared_CXX=no
20730 fi
20731
20732 fi
20733
20734
20735
20736 #
20737 # Check to make sure the static flag actually works.
20738 #
20739 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20741 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20742 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20743   $as_echo_n "(cached) " >&6
20744 else
20745   lt_cv_prog_compiler_static_works_CXX=no
20746    save_LDFLAGS="$LDFLAGS"
20747    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20748    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20749    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20750      # The linker can only warn and ignore the option if not recognized
20751      # So say no if there are warnings
20752      if test -s conftest.err; then
20753        # Append any errors to the config.log.
20754        cat conftest.err 1>&5
20755        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20756        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20757        if diff conftest.exp conftest.er2 >/dev/null; then
20758          lt_cv_prog_compiler_static_works_CXX=yes
20759        fi
20760      else
20761        lt_cv_prog_compiler_static_works_CXX=yes
20762      fi
20763    fi
20764    $RM -r conftest*
20765    LDFLAGS="$save_LDFLAGS"
20766
20767 fi
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20769 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20770
20771 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20772     :
20773 else
20774     lt_prog_compiler_static_CXX=
20775 fi
20776
20777
20778
20779
20780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20782 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20783   $as_echo_n "(cached) " >&6
20784 else
20785   lt_cv_prog_compiler_c_o_CXX=no
20786    $RM -r conftest 2>/dev/null
20787    mkdir conftest
20788    cd conftest
20789    mkdir out
20790    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20791
20792    lt_compiler_flag="-o out/conftest2.$ac_objext"
20793    # Insert the option either (1) after the last *FLAGS variable, or
20794    # (2) before a word containing "conftest.", or (3) at the end.
20795    # Note that $ac_compile itself does not contain backslashes and begins
20796    # with a dollar sign (not a hyphen), so the echo should work correctly.
20797    lt_compile=`echo "$ac_compile" | $SED \
20798    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20799    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20800    -e 's:$: $lt_compiler_flag:'`
20801    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20802    (eval "$lt_compile" 2>out/conftest.err)
20803    ac_status=$?
20804    cat out/conftest.err >&5
20805    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20807    then
20808      # The compiler can only warn and ignore the option if not recognized
20809      # So say no if there are warnings
20810      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20811      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20812      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20813        lt_cv_prog_compiler_c_o_CXX=yes
20814      fi
20815    fi
20816    chmod u+w . 2>&5
20817    $RM conftest*
20818    # SGI C++ compiler will create directory out/ii_files/ for
20819    # template instantiation
20820    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20821    $RM out/* && rmdir out
20822    cd ..
20823    $RM -r conftest
20824    $RM conftest*
20825
20826 fi
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20828 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20829
20830
20831
20832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20834 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20835   $as_echo_n "(cached) " >&6
20836 else
20837   lt_cv_prog_compiler_c_o_CXX=no
20838    $RM -r conftest 2>/dev/null
20839    mkdir conftest
20840    cd conftest
20841    mkdir out
20842    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20843
20844    lt_compiler_flag="-o out/conftest2.$ac_objext"
20845    # Insert the option either (1) after the last *FLAGS variable, or
20846    # (2) before a word containing "conftest.", or (3) at the end.
20847    # Note that $ac_compile itself does not contain backslashes and begins
20848    # with a dollar sign (not a hyphen), so the echo should work correctly.
20849    lt_compile=`echo "$ac_compile" | $SED \
20850    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20851    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20852    -e 's:$: $lt_compiler_flag:'`
20853    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20854    (eval "$lt_compile" 2>out/conftest.err)
20855    ac_status=$?
20856    cat out/conftest.err >&5
20857    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20859    then
20860      # The compiler can only warn and ignore the option if not recognized
20861      # So say no if there are warnings
20862      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20863      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20864      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20865        lt_cv_prog_compiler_c_o_CXX=yes
20866      fi
20867    fi
20868    chmod u+w . 2>&5
20869    $RM conftest*
20870    # SGI C++ compiler will create directory out/ii_files/ for
20871    # template instantiation
20872    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20873    $RM out/* && rmdir out
20874    cd ..
20875    $RM -r conftest
20876    $RM conftest*
20877
20878 fi
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20880 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20881
20882
20883
20884
20885 hard_links="nottested"
20886 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20887   # do not overwrite the value of need_locks provided by the user
20888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20889 $as_echo_n "checking if we can lock with hard links... " >&6; }
20890   hard_links=yes
20891   $RM conftest*
20892   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20893   touch conftest.a
20894   ln conftest.a conftest.b 2>&5 || hard_links=no
20895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20897 $as_echo "$hard_links" >&6; }
20898   if test "$hard_links" = no; then
20899     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20900 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20901     need_locks=warn
20902   fi
20903 else
20904   need_locks=no
20905 fi
20906
20907
20908
20909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20910 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20911
20912   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20913   case $host_os in
20914   aix[4-9]*)
20915     # If we're using GNU nm, then we don't want the "-C" option.
20916     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20917     # Also, AIX nm treats weak defined symbols like other global defined
20918     # symbols, whereas GNU nm marks them as "W".
20919     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20920       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'
20921     else
20922       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20923     fi
20924     ;;
20925   pw32*)
20926     export_symbols_cmds_CXX="$ltdll_cmds"
20927   ;;
20928   cygwin* | mingw* | cegcc*)
20929     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'
20930   ;;
20931   *)
20932     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20933   ;;
20934   esac
20935   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20936
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20938 $as_echo "$ld_shlibs_CXX" >&6; }
20939 test "$ld_shlibs_CXX" = no && can_build_shared=no
20940
20941 with_gnu_ld_CXX=$with_gnu_ld
20942
20943
20944
20945
20946
20947
20948 #
20949 # Do we need to explicitly link libc?
20950 #
20951 case "x$archive_cmds_need_lc_CXX" in
20952 x|xyes)
20953   # Assume -lc should be added
20954   archive_cmds_need_lc_CXX=yes
20955
20956   if test "$enable_shared" = yes && test "$GCC" = yes; then
20957     case $archive_cmds_CXX in
20958     *'~'*)
20959       # FIXME: we may have to deal with multi-command sequences.
20960       ;;
20961     '$CC '*)
20962       # Test whether the compiler implicitly links with -lc since on some
20963       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20964       # to ld, don't add -lc before -lgcc.
20965       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20966 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20967 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20968   $as_echo_n "(cached) " >&6
20969 else
20970   $RM conftest*
20971         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20972
20973         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20974   (eval $ac_compile) 2>&5
20975   ac_status=$?
20976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20977   test $ac_status = 0; } 2>conftest.err; then
20978           soname=conftest
20979           lib=conftest
20980           libobjs=conftest.$ac_objext
20981           deplibs=
20982           wl=$lt_prog_compiler_wl_CXX
20983           pic_flag=$lt_prog_compiler_pic_CXX
20984           compiler_flags=-v
20985           linker_flags=-v
20986           verstring=
20987           output_objdir=.
20988           libname=conftest
20989           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20990           allow_undefined_flag_CXX=
20991           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20992   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20993   ac_status=$?
20994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20995   test $ac_status = 0; }
20996           then
20997             lt_cv_archive_cmds_need_lc_CXX=no
20998           else
20999             lt_cv_archive_cmds_need_lc_CXX=yes
21000           fi
21001           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21002         else
21003           cat conftest.err 1>&5
21004         fi
21005         $RM conftest*
21006
21007 fi
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21009 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21010       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21011       ;;
21012     esac
21013   fi
21014   ;;
21015 esac
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21081 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21082
21083 library_names_spec=
21084 libname_spec='lib$name'
21085 soname_spec=
21086 shrext_cmds=".so"
21087 postinstall_cmds=
21088 postuninstall_cmds=
21089 finish_cmds=
21090 finish_eval=
21091 shlibpath_var=
21092 shlibpath_overrides_runpath=unknown
21093 version_type=none
21094 dynamic_linker="$host_os ld.so"
21095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21096 need_lib_prefix=unknown
21097 hardcode_into_libs=no
21098
21099 # when you set need_version to no, make sure it does not cause -set_version
21100 # flags to be left without arguments
21101 need_version=unknown
21102
21103 case $host_os in
21104 aix3*)
21105   version_type=linux
21106   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21107   shlibpath_var=LIBPATH
21108
21109   # AIX 3 has no versioning support, so we append a major version to the name.
21110   soname_spec='${libname}${release}${shared_ext}$major'
21111   ;;
21112
21113 aix[4-9]*)
21114   version_type=linux
21115   need_lib_prefix=no
21116   need_version=no
21117   hardcode_into_libs=yes
21118   if test "$host_cpu" = ia64; then
21119     # AIX 5 supports IA64
21120     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21121     shlibpath_var=LD_LIBRARY_PATH
21122   else
21123     # With GCC up to 2.95.x, collect2 would create an import file
21124     # for dependence libraries.  The import file would start with
21125     # the line `#! .'.  This would cause the generated library to
21126     # depend on `.', always an invalid library.  This was fixed in
21127     # development snapshots of GCC prior to 3.0.
21128     case $host_os in
21129       aix4 | aix4.[01] | aix4.[01].*)
21130       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21131            echo ' yes '
21132            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21133         :
21134       else
21135         can_build_shared=no
21136       fi
21137       ;;
21138     esac
21139     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21140     # soname into executable. Probably we can add versioning support to
21141     # collect2, so additional links can be useful in future.
21142     if test "$aix_use_runtimelinking" = yes; then
21143       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21144       # instead of lib<name>.a to let people know that these are not
21145       # typical AIX shared libraries.
21146       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21147     else
21148       # We preserve .a as extension for shared libraries through AIX4.2
21149       # and later when we are not doing run time linking.
21150       library_names_spec='${libname}${release}.a $libname.a'
21151       soname_spec='${libname}${release}${shared_ext}$major'
21152     fi
21153     shlibpath_var=LIBPATH
21154   fi
21155   ;;
21156
21157 amigaos*)
21158   case $host_cpu in
21159   powerpc)
21160     # Since July 2007 AmigaOS4 officially supports .so libraries.
21161     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21163     ;;
21164   m68k)
21165     library_names_spec='$libname.ixlibrary $libname.a'
21166     # Create ${libname}_ixlibrary.a entries in /sys/libs.
21167     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'
21168     ;;
21169   esac
21170   ;;
21171
21172 beos*)
21173   library_names_spec='${libname}${shared_ext}'
21174   dynamic_linker="$host_os ld.so"
21175   shlibpath_var=LIBRARY_PATH
21176   ;;
21177
21178 bsdi[45]*)
21179   version_type=linux
21180   need_version=no
21181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21182   soname_spec='${libname}${release}${shared_ext}$major'
21183   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21184   shlibpath_var=LD_LIBRARY_PATH
21185   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21186   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21187   # the default ld.so.conf also contains /usr/contrib/lib and
21188   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21189   # libtool to hard-code these into programs
21190   ;;
21191
21192 cygwin* | mingw* | pw32* | cegcc*)
21193   version_type=windows
21194   shrext_cmds=".dll"
21195   need_version=no
21196   need_lib_prefix=no
21197
21198   case $GCC,$host_os in
21199   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21200     library_names_spec='$libname.dll.a'
21201     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21202     postinstall_cmds='base_file=`basename \${file}`~
21203       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21204       dldir=$destdir/`dirname \$dlpath`~
21205       test -d \$dldir || mkdir -p \$dldir~
21206       $install_prog $dir/$dlname \$dldir/$dlname~
21207       chmod a+x \$dldir/$dlname~
21208       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21209         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21210       fi'
21211     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21212       dlpath=$dir/\$dldll~
21213        $RM \$dlpath'
21214     shlibpath_overrides_runpath=yes
21215
21216     case $host_os in
21217     cygwin*)
21218       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21219       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21220
21221       ;;
21222     mingw* | cegcc*)
21223       # MinGW DLLs use traditional 'lib' prefix
21224       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21225       ;;
21226     pw32*)
21227       # pw32 DLLs use 'pw' prefix rather than 'lib'
21228       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21229       ;;
21230     esac
21231     ;;
21232
21233   *)
21234     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21235     ;;
21236   esac
21237   dynamic_linker='Win32 ld.exe'
21238   # FIXME: first we should search . and the directory the executable is in
21239   shlibpath_var=PATH
21240   ;;
21241
21242 darwin* | rhapsody*)
21243   dynamic_linker="$host_os dyld"
21244   version_type=darwin
21245   need_lib_prefix=no
21246   need_version=no
21247   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21248   soname_spec='${libname}${release}${major}$shared_ext'
21249   shlibpath_overrides_runpath=yes
21250   shlibpath_var=DYLD_LIBRARY_PATH
21251   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21252
21253   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21254   ;;
21255
21256 dgux*)
21257   version_type=linux
21258   need_lib_prefix=no
21259   need_version=no
21260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21261   soname_spec='${libname}${release}${shared_ext}$major'
21262   shlibpath_var=LD_LIBRARY_PATH
21263   ;;
21264
21265 freebsd* | dragonfly*)
21266   # DragonFly does not have aout.  When/if they implement a new
21267   # versioning mechanism, adjust this.
21268   if test -x /usr/bin/objformat; then
21269     objformat=`/usr/bin/objformat`
21270   else
21271     case $host_os in
21272     freebsd[23].*) objformat=aout ;;
21273     *) objformat=elf ;;
21274     esac
21275   fi
21276   version_type=freebsd-$objformat
21277   case $version_type in
21278     freebsd-elf*)
21279       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21280       need_version=no
21281       need_lib_prefix=no
21282       ;;
21283     freebsd-*)
21284       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21285       need_version=yes
21286       ;;
21287   esac
21288   shlibpath_var=LD_LIBRARY_PATH
21289   case $host_os in
21290   freebsd2.*)
21291     shlibpath_overrides_runpath=yes
21292     ;;
21293   freebsd3.[01]* | freebsdelf3.[01]*)
21294     shlibpath_overrides_runpath=yes
21295     hardcode_into_libs=yes
21296     ;;
21297   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21298   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21299     shlibpath_overrides_runpath=no
21300     hardcode_into_libs=yes
21301     ;;
21302   *) # from 4.6 on, and DragonFly
21303     shlibpath_overrides_runpath=yes
21304     hardcode_into_libs=yes
21305     ;;
21306   esac
21307   ;;
21308
21309 gnu*)
21310   version_type=linux
21311   need_lib_prefix=no
21312   need_version=no
21313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21314   soname_spec='${libname}${release}${shared_ext}$major'
21315   shlibpath_var=LD_LIBRARY_PATH
21316   hardcode_into_libs=yes
21317   ;;
21318
21319 haiku*)
21320   version_type=linux
21321   need_lib_prefix=no
21322   need_version=no
21323   dynamic_linker="$host_os runtime_loader"
21324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21325   soname_spec='${libname}${release}${shared_ext}$major'
21326   shlibpath_var=LIBRARY_PATH
21327   shlibpath_overrides_runpath=yes
21328   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21329   hardcode_into_libs=yes
21330   ;;
21331
21332 hpux9* | hpux10* | hpux11*)
21333   # Give a soname corresponding to the major version so that dld.sl refuses to
21334   # link against other versions.
21335   version_type=sunos
21336   need_lib_prefix=no
21337   need_version=no
21338   case $host_cpu in
21339   ia64*)
21340     shrext_cmds='.so'
21341     hardcode_into_libs=yes
21342     dynamic_linker="$host_os dld.so"
21343     shlibpath_var=LD_LIBRARY_PATH
21344     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21346     soname_spec='${libname}${release}${shared_ext}$major'
21347     if test "X$HPUX_IA64_MODE" = X32; then
21348       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21349     else
21350       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21351     fi
21352     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21353     ;;
21354   hppa*64*)
21355     shrext_cmds='.sl'
21356     hardcode_into_libs=yes
21357     dynamic_linker="$host_os dld.sl"
21358     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21359     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21361     soname_spec='${libname}${release}${shared_ext}$major'
21362     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21363     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21364     ;;
21365   *)
21366     shrext_cmds='.sl'
21367     dynamic_linker="$host_os dld.sl"
21368     shlibpath_var=SHLIB_PATH
21369     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21371     soname_spec='${libname}${release}${shared_ext}$major'
21372     ;;
21373   esac
21374   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21375   postinstall_cmds='chmod 555 $lib'
21376   # or fails outright, so override atomically:
21377   install_override_mode=555
21378   ;;
21379
21380 interix[3-9]*)
21381   version_type=linux
21382   need_lib_prefix=no
21383   need_version=no
21384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21385   soname_spec='${libname}${release}${shared_ext}$major'
21386   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21387   shlibpath_var=LD_LIBRARY_PATH
21388   shlibpath_overrides_runpath=no
21389   hardcode_into_libs=yes
21390   ;;
21391
21392 irix5* | irix6* | nonstopux*)
21393   case $host_os in
21394     nonstopux*) version_type=nonstopux ;;
21395     *)
21396         if test "$lt_cv_prog_gnu_ld" = yes; then
21397                 version_type=linux
21398         else
21399                 version_type=irix
21400         fi ;;
21401   esac
21402   need_lib_prefix=no
21403   need_version=no
21404   soname_spec='${libname}${release}${shared_ext}$major'
21405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21406   case $host_os in
21407   irix5* | nonstopux*)
21408     libsuff= shlibsuff=
21409     ;;
21410   *)
21411     case $LD in # libtool.m4 will add one of these switches to LD
21412     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21413       libsuff= shlibsuff= libmagic=32-bit;;
21414     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21415       libsuff=32 shlibsuff=N32 libmagic=N32;;
21416     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21417       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21418     *) libsuff= shlibsuff= libmagic=never-match;;
21419     esac
21420     ;;
21421   esac
21422   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21423   shlibpath_overrides_runpath=no
21424   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21425   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21426   hardcode_into_libs=yes
21427   ;;
21428
21429 # No shared lib support for Linux oldld, aout, or coff.
21430 linux*oldld* | linux*aout* | linux*coff*)
21431   dynamic_linker=no
21432   ;;
21433
21434 # This must be Linux ELF.
21435 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21436   version_type=linux
21437   need_lib_prefix=no
21438   need_version=no
21439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21440   soname_spec='${libname}${release}${shared_ext}$major'
21441   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21442   shlibpath_var=LD_LIBRARY_PATH
21443   shlibpath_overrides_runpath=no
21444
21445   # Some binutils ld are patched to set DT_RUNPATH
21446   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21447   $as_echo_n "(cached) " >&6
21448 else
21449   lt_cv_shlibpath_overrides_runpath=no
21450     save_LDFLAGS=$LDFLAGS
21451     save_libdir=$libdir
21452     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21453          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21454     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21455 /* end confdefs.h.  */
21456
21457 int
21458 main ()
21459 {
21460
21461   ;
21462   return 0;
21463 }
21464 _ACEOF
21465 if ac_fn_cxx_try_link "$LINENO"; then :
21466   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21467   lt_cv_shlibpath_overrides_runpath=yes
21468 fi
21469 fi
21470 rm -f core conftest.err conftest.$ac_objext \
21471     conftest$ac_exeext conftest.$ac_ext
21472     LDFLAGS=$save_LDFLAGS
21473     libdir=$save_libdir
21474
21475 fi
21476
21477   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21478
21479   # This implies no fast_install, which is unacceptable.
21480   # Some rework will be needed to allow for fast_install
21481   # before this can be enabled.
21482   hardcode_into_libs=yes
21483
21484   # Append ld.so.conf contents to the search path
21485   if test -f /etc/ld.so.conf; then
21486     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' ' '`
21487     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21488   fi
21489
21490   # We used to test for /lib/ld.so.1 and disable shared libraries on
21491   # powerpc, because MkLinux only supported shared libraries with the
21492   # GNU dynamic linker.  Since this was broken with cross compilers,
21493   # most powerpc-linux boxes support dynamic linking these days and
21494   # people can always --disable-shared, the test was removed, and we
21495   # assume the GNU/Linux dynamic linker is in use.
21496   dynamic_linker='GNU/Linux ld.so'
21497   ;;
21498
21499 netbsd*)
21500   version_type=sunos
21501   need_lib_prefix=no
21502   need_version=no
21503   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21504     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21505     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21506     dynamic_linker='NetBSD (a.out) ld.so'
21507   else
21508     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21509     soname_spec='${libname}${release}${shared_ext}$major'
21510     dynamic_linker='NetBSD ld.elf_so'
21511   fi
21512   shlibpath_var=LD_LIBRARY_PATH
21513   shlibpath_overrides_runpath=yes
21514   hardcode_into_libs=yes
21515   ;;
21516
21517 newsos6)
21518   version_type=linux
21519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21520   shlibpath_var=LD_LIBRARY_PATH
21521   shlibpath_overrides_runpath=yes
21522   ;;
21523
21524 *nto* | *qnx*)
21525   version_type=qnx
21526   need_lib_prefix=no
21527   need_version=no
21528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21529   soname_spec='${libname}${release}${shared_ext}$major'
21530   shlibpath_var=LD_LIBRARY_PATH
21531   shlibpath_overrides_runpath=no
21532   hardcode_into_libs=yes
21533   dynamic_linker='ldqnx.so'
21534   ;;
21535
21536 openbsd*)
21537   version_type=sunos
21538   sys_lib_dlsearch_path_spec="/usr/lib"
21539   need_lib_prefix=no
21540   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21541   case $host_os in
21542     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21543     *)                          need_version=no  ;;
21544   esac
21545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21546   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21547   shlibpath_var=LD_LIBRARY_PATH
21548   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21549     case $host_os in
21550       openbsd2.[89] | openbsd2.[89].*)
21551         shlibpath_overrides_runpath=no
21552         ;;
21553       *)
21554         shlibpath_overrides_runpath=yes
21555         ;;
21556       esac
21557   else
21558     shlibpath_overrides_runpath=yes
21559   fi
21560   ;;
21561
21562 os2*)
21563   libname_spec='$name'
21564   shrext_cmds=".dll"
21565   need_lib_prefix=no
21566   library_names_spec='$libname${shared_ext} $libname.a'
21567   dynamic_linker='OS/2 ld.exe'
21568   shlibpath_var=LIBPATH
21569   ;;
21570
21571 osf3* | osf4* | osf5*)
21572   version_type=osf
21573   need_lib_prefix=no
21574   need_version=no
21575   soname_spec='${libname}${release}${shared_ext}$major'
21576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21577   shlibpath_var=LD_LIBRARY_PATH
21578   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21579   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21580   ;;
21581
21582 rdos*)
21583   dynamic_linker=no
21584   ;;
21585
21586 solaris*)
21587   version_type=linux
21588   need_lib_prefix=no
21589   need_version=no
21590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21591   soname_spec='${libname}${release}${shared_ext}$major'
21592   shlibpath_var=LD_LIBRARY_PATH
21593   shlibpath_overrides_runpath=yes
21594   hardcode_into_libs=yes
21595   # ldd complains unless libraries are executable
21596   postinstall_cmds='chmod +x $lib'
21597   ;;
21598
21599 sunos4*)
21600   version_type=sunos
21601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21602   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21603   shlibpath_var=LD_LIBRARY_PATH
21604   shlibpath_overrides_runpath=yes
21605   if test "$with_gnu_ld" = yes; then
21606     need_lib_prefix=no
21607   fi
21608   need_version=yes
21609   ;;
21610
21611 sysv4 | sysv4.3*)
21612   version_type=linux
21613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21614   soname_spec='${libname}${release}${shared_ext}$major'
21615   shlibpath_var=LD_LIBRARY_PATH
21616   case $host_vendor in
21617     sni)
21618       shlibpath_overrides_runpath=no
21619       need_lib_prefix=no
21620       runpath_var=LD_RUN_PATH
21621       ;;
21622     siemens)
21623       need_lib_prefix=no
21624       ;;
21625     motorola)
21626       need_lib_prefix=no
21627       need_version=no
21628       shlibpath_overrides_runpath=no
21629       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21630       ;;
21631   esac
21632   ;;
21633
21634 sysv4*MP*)
21635   if test -d /usr/nec ;then
21636     version_type=linux
21637     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21638     soname_spec='$libname${shared_ext}.$major'
21639     shlibpath_var=LD_LIBRARY_PATH
21640   fi
21641   ;;
21642
21643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21644   version_type=freebsd-elf
21645   need_lib_prefix=no
21646   need_version=no
21647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21648   soname_spec='${libname}${release}${shared_ext}$major'
21649   shlibpath_var=LD_LIBRARY_PATH
21650   shlibpath_overrides_runpath=yes
21651   hardcode_into_libs=yes
21652   if test "$with_gnu_ld" = yes; then
21653     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21654   else
21655     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21656     case $host_os in
21657       sco3.2v5*)
21658         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21659         ;;
21660     esac
21661   fi
21662   sys_lib_dlsearch_path_spec='/usr/lib'
21663   ;;
21664
21665 tpf*)
21666   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21667   version_type=linux
21668   need_lib_prefix=no
21669   need_version=no
21670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21671   shlibpath_var=LD_LIBRARY_PATH
21672   shlibpath_overrides_runpath=no
21673   hardcode_into_libs=yes
21674   ;;
21675
21676 uts4*)
21677   version_type=linux
21678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21679   soname_spec='${libname}${release}${shared_ext}$major'
21680   shlibpath_var=LD_LIBRARY_PATH
21681   ;;
21682
21683 *)
21684   dynamic_linker=no
21685   ;;
21686 esac
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21688 $as_echo "$dynamic_linker" >&6; }
21689 test "$dynamic_linker" = no && can_build_shared=no
21690
21691 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21692 if test "$GCC" = yes; then
21693   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21694 fi
21695
21696 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21697   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21698 fi
21699 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21700   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21701 fi
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21741 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21742 hardcode_action_CXX=
21743 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21744    test -n "$runpath_var_CXX" ||
21745    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21746
21747   # We can hardcode non-existent directories.
21748   if test "$hardcode_direct_CXX" != no &&
21749      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21750      # have to relink, otherwise we might link with an installed library
21751      # when we should be linking with a yet-to-be-installed one
21752      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21753      test "$hardcode_minus_L_CXX" != no; then
21754     # Linking always hardcodes the temporary library directory.
21755     hardcode_action_CXX=relink
21756   else
21757     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21758     hardcode_action_CXX=immediate
21759   fi
21760 else
21761   # We cannot hardcode anything, or else we can only hardcode existing
21762   # directories.
21763   hardcode_action_CXX=unsupported
21764 fi
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21766 $as_echo "$hardcode_action_CXX" >&6; }
21767
21768 if test "$hardcode_action_CXX" = relink ||
21769    test "$inherit_rpath_CXX" = yes; then
21770   # Fast installation is not supported
21771   enable_fast_install=no
21772 elif test "$shlibpath_overrides_runpath" = yes ||
21773      test "$enable_shared" = no; then
21774   # Fast installation is not necessary
21775   enable_fast_install=needless
21776 fi
21777
21778
21779
21780
21781
21782
21783
21784   fi # test -n "$compiler"
21785
21786   CC=$lt_save_CC
21787   LDCXX=$LD
21788   LD=$lt_save_LD
21789   GCC=$lt_save_GCC
21790   with_gnu_ld=$lt_save_with_gnu_ld
21791   lt_cv_path_LDCXX=$lt_cv_path_LD
21792   lt_cv_path_LD=$lt_save_path_LD
21793   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21794   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21795 fi # test "$_lt_caught_CXX_error" != yes
21796
21797 ac_ext=cpp
21798 ac_cpp='$CXXCPP $CPPFLAGS'
21799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818 # Only expand once:
21819
21820
21821
21822
21823
21824 # Identify the assembler which will work hand-in-glove with the newly
21825 # built GCC, so that we can examine its features.  This is the assembler
21826 # which will be driven by the driver program.
21827 #
21828 # If build != host, and we aren't building gas in-tree, we identify a
21829 # build->target assembler and hope that it will have the same features
21830 # as the host->target assembler we'll be using.
21831 gcc_cv_gas_major_version=
21832 gcc_cv_gas_minor_version=
21833 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21834
21835 if test "${gcc_cv_as+set}" = set; then :
21836
21837 else
21838
21839 if test -x "$DEFAULT_ASSEMBLER"; then
21840         gcc_cv_as="$DEFAULT_ASSEMBLER"
21841 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21842      && test -f ../gas/Makefile \
21843      && test x$build = x$host; then
21844         gcc_cv_as=../gas/as-new$build_exeext
21845 elif test -x as$build_exeext; then
21846         # Build using assembler in the current directory.
21847         gcc_cv_as=./as$build_exeext
21848 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21849         gcc_cv_as="$AS_FOR_TARGET"
21850 else
21851         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21852 set dummy $AS_FOR_TARGET; ac_word=$2
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21854 $as_echo_n "checking for $ac_word... " >&6; }
21855 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21856   $as_echo_n "(cached) " >&6
21857 else
21858   case $gcc_cv_as in
21859   [\\/]* | ?:[\\/]*)
21860   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21861   ;;
21862   *)
21863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21864 for as_dir in $PATH
21865 do
21866   IFS=$as_save_IFS
21867   test -z "$as_dir" && as_dir=.
21868     for ac_exec_ext in '' $ac_executable_extensions; do
21869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21870     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21872     break 2
21873   fi
21874 done
21875   done
21876 IFS=$as_save_IFS
21877
21878   ;;
21879 esac
21880 fi
21881 gcc_cv_as=$ac_cv_path_gcc_cv_as
21882 if test -n "$gcc_cv_as"; then
21883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21884 $as_echo "$gcc_cv_as" >&6; }
21885 else
21886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21887 $as_echo "no" >&6; }
21888 fi
21889
21890
21891 fi
21892 fi
21893
21894 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21895
21896 case "$ORIGINAL_AS_FOR_TARGET" in
21897   ./as | ./as$build_exeext) ;;
21898   *) ac_config_files="$ac_config_files as:exec-tool.in"
21899  ;;
21900 esac
21901
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21903 $as_echo_n "checking what assembler to use... " >&6; }
21904 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21905   # Single tree build which includes gas.  We want to prefer it
21906   # over whatever linker top-level may have detected, since
21907   # we'll use what we're building after installation anyway.
21908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21909 $as_echo "newly built gas" >&6; }
21910   in_tree_gas=yes
21911   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21912 for f in $gcc_cv_as_bfd_srcdir/configure \
21913          $gcc_cv_as_gas_srcdir/configure \
21914          $gcc_cv_as_gas_srcdir/configure.ac \
21915          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21916   gcc_cv_gas_version=`sed -n -e 's/^[   ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21917   if test x$gcc_cv_gas_version != x; then
21918     break
21919   fi
21920 done
21921 case $gcc_cv_gas_version in
21922   VERSION=[0-9]*) ;;
21923   *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21924 esac
21925 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21926 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21927 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21928 case $gcc_cv_gas_patch_version in
21929   "") gcc_cv_gas_patch_version="0" ;;
21930 esac
21931 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21932                             + $gcc_cv_gas_minor_version \) \* 1000 \
21933                             + $gcc_cv_gas_patch_version`
21934
21935   in_tree_gas_is_elf=no
21936   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21937      || (grep 'obj_format = multi' ../gas/Makefile \
21938          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21939   then
21940     in_tree_gas_is_elf=yes
21941   fi
21942 else
21943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21944 $as_echo "$gcc_cv_as" >&6; }
21945   in_tree_gas=no
21946 fi
21947
21948 default_ld=
21949 # Check whether --enable-ld was given.
21950 if test "${enable_ld+set}" = set; then :
21951   enableval=$enable_ld; case "${enableval}" in
21952  no)
21953    default_ld=ld.gold
21954    ;;
21955  esac
21956 fi
21957
21958
21959 install_gold_as_default=no
21960 # Check whether --enable-gold was given.
21961 if test "${enable_gold+set}" = set; then :
21962   enableval=$enable_gold; case "${enableval}" in
21963  default)
21964    install_gold_as_default=yes
21965    ;;
21966  yes)
21967    if test x${default_ld} != x; then
21968      install_gold_as_default=yes
21969    fi
21970    ;;
21971  no)
21972    ;;
21973  *)
21974    as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21975    ;;
21976  esac
21977 fi
21978
21979
21980 # Identify the linker which will work hand-in-glove with the newly
21981 # built GCC, so that we can examine its features.  This is the linker
21982 # which will be driven by the driver program.
21983 #
21984 # If build != host, and we aren't building gas in-tree, we identify a
21985 # build->target linker and hope that it will have the same features
21986 # as the host->target linker we'll be using.
21987 gcc_cv_gld_major_version=
21988 gcc_cv_gld_minor_version=
21989 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21990 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21991 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21992
21993 if test "${gcc_cv_ld+set}" = set; then :
21994
21995 else
21996
21997 if test -x "$DEFAULT_LINKER"; then
21998         gcc_cv_ld="$DEFAULT_LINKER"
21999 elif test $install_gold_as_default = yes \
22000      && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22001      && test -f ../gold/Makefile \
22002      && test x$build = x$host; then
22003         gcc_cv_ld=../gold/ld-new$build_exeext
22004 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22005      && test -f ../ld/Makefile \
22006      && test x$build = x$host; then
22007         gcc_cv_ld=../ld/ld-new$build_exeext
22008 elif test -x collect-ld$build_exeext; then
22009         # Build using linker in the current directory.
22010         gcc_cv_ld=./collect-ld$build_exeext
22011 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22012         gcc_cv_ld="$LD_FOR_TARGET"
22013 else
22014         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22015 set dummy $LD_FOR_TARGET; ac_word=$2
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22017 $as_echo_n "checking for $ac_word... " >&6; }
22018 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22019   $as_echo_n "(cached) " >&6
22020 else
22021   case $gcc_cv_ld in
22022   [\\/]* | ?:[\\/]*)
22023   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22024   ;;
22025   *)
22026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22027 for as_dir in $PATH
22028 do
22029   IFS=$as_save_IFS
22030   test -z "$as_dir" && as_dir=.
22031     for ac_exec_ext in '' $ac_executable_extensions; do
22032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22033     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22035     break 2
22036   fi
22037 done
22038   done
22039 IFS=$as_save_IFS
22040
22041   ;;
22042 esac
22043 fi
22044 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22045 if test -n "$gcc_cv_ld"; then
22046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22047 $as_echo "$gcc_cv_ld" >&6; }
22048 else
22049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22050 $as_echo "no" >&6; }
22051 fi
22052
22053
22054 fi
22055 fi
22056
22057 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22058 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22059 # if the PLUGIN_LD is set ld-new, just have it as ld
22060 # as that is the installed named.
22061 if test x$PLUGIN_LD_SUFFIX = xld-new \
22062    || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22063   PLUGIN_LD_SUFFIX=ld
22064 fi
22065
22066 # Check whether --with-plugin-ld was given.
22067 if test "${with_plugin_ld+set}" = set; then :
22068   withval=$with_plugin_ld; if test x"$withval" != x; then
22069    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22070    PLUGIN_LD_SUFFIX="$withval"
22071  fi
22072 fi
22073
22074
22075
22076 cat >>confdefs.h <<_ACEOF
22077 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22078 _ACEOF
22079
22080
22081 # Check to see if we are using gold instead of ld
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22083 $as_echo_n "checking whether we are using gold... " >&6; }
22084 ld_is_gold=no
22085 if test x$gcc_cv_ld != x; then
22086   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22087      | grep "GNU gold" > /dev/null; then
22088     ld_is_gold=yes
22089   fi
22090 fi
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22092 $as_echo "$ld_is_gold" >&6; }
22093
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22095 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22096 # Check to see if default ld is not gold, but gold is
22097 # available and has support for split stack.  If gcc was configured
22098 # with gold then no checking is done.
22099 #
22100 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22101
22102 # For platforms other than powerpc64*, enable as appropriate.
22103
22104   gold_non_default=no
22105   ld_gold=`which ${gcc_cv_ld}.gold`
22106 # Make sure this gold has minimal split stack support
22107   if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22108     ld_vers=`$ld_gold --version | sed 1q`
22109     gold_vers=`echo $ld_vers | sed -n \
22110           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22111     case $target in
22112 # check that the gold version contains the complete split stack support
22113 # on powerpc64 big and little endian
22114       powerpc64*-*-*)
22115         case "$gold_vers" in
22116           2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22117           ;;
22118           *) gold_non_default=no
22119           ;;
22120         esac
22121         ;;
22122     esac
22123   fi
22124   if test $gold_non_default = yes; then
22125
22126 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22127
22128   fi
22129 fi
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22131 $as_echo "$gold_non_default" >&6; }
22132
22133 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22134
22135 case "$ORIGINAL_LD_FOR_TARGET" in
22136   ./collect-ld | ./collect-ld$build_exeext) ;;
22137   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22138  ;;
22139 esac
22140
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22142 $as_echo_n "checking what linker to use... " >&6; }
22143 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22144    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22145         # Single tree build which includes ld.  We want to prefer it
22146         # over whatever linker top-level may have detected, since
22147         # we'll use what we're building after installation anyway.
22148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22149 $as_echo "newly built ld" >&6; }
22150         in_tree_ld=yes
22151         in_tree_ld_is_elf=no
22152         if (grep 'EMUL = .*elf' ../ld/Makefile \
22153             || grep 'EMUL = .*linux' ../ld/Makefile \
22154             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22155           in_tree_ld_is_elf=yes
22156         elif test "$ld_is_gold" = yes; then
22157           in_tree_ld_is_elf=yes
22158         fi
22159         for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
22160         do
22161                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22162                 if test x$gcc_cv_gld_version != x; then
22163                         break
22164                 fi
22165         done
22166         case $gcc_cv_gld_version in
22167           VERSION=[0-9]*) ;;
22168           *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22169         esac
22170         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22171         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22172         ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22173         ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22174 else
22175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22176 $as_echo "$gcc_cv_ld" >&6; }
22177         in_tree_ld=no
22178         gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22179         ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22180         ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22181 fi
22182
22183
22184
22185
22186 # Figure out what nm we will be using.
22187 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22188 if test "${gcc_cv_nm+set}" = set; then :
22189
22190 else
22191
22192 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22193      && test -f ../binutils/Makefile \
22194      && test x$build = x$host; then
22195         gcc_cv_nm=../binutils/nm-new$build_exeext
22196 elif test -x nm$build_exeext; then
22197         gcc_cv_nm=./nm$build_exeext
22198 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22199         gcc_cv_nm="$NM_FOR_TARGET"
22200 else
22201         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22202 set dummy $NM_FOR_TARGET; ac_word=$2
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22204 $as_echo_n "checking for $ac_word... " >&6; }
22205 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22206   $as_echo_n "(cached) " >&6
22207 else
22208   case $gcc_cv_nm in
22209   [\\/]* | ?:[\\/]*)
22210   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22211   ;;
22212   *)
22213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22214 for as_dir in $PATH
22215 do
22216   IFS=$as_save_IFS
22217   test -z "$as_dir" && as_dir=.
22218     for ac_exec_ext in '' $ac_executable_extensions; do
22219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22220     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22222     break 2
22223   fi
22224 done
22225   done
22226 IFS=$as_save_IFS
22227
22228   ;;
22229 esac
22230 fi
22231 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22232 if test -n "$gcc_cv_nm"; then
22233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22234 $as_echo "$gcc_cv_nm" >&6; }
22235 else
22236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22237 $as_echo "no" >&6; }
22238 fi
22239
22240
22241 fi
22242 fi
22243
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22245 $as_echo_n "checking what nm to use... " >&6; }
22246 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22247         # Single tree build which includes binutils.
22248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22249 $as_echo "newly built nm" >&6; }
22250         in_tree_nm=yes
22251 else
22252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22253 $as_echo "$gcc_cv_nm" >&6; }
22254         in_tree_nm=no
22255 fi
22256
22257 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22258
22259 case "$ORIGINAL_NM_FOR_TARGET" in
22260   ./nm | ./nm$build_exeext) ;;
22261   *) ac_config_files="$ac_config_files nm:exec-tool.in"
22262  ;;
22263 esac
22264
22265
22266 # Figure out what objdump we will be using.
22267 if test "${gcc_cv_objdump+set}" = set; then :
22268
22269 else
22270
22271 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22272      && test -f ../binutils/Makefile \
22273      && test x$build = x$host; then
22274         # Single tree build which includes binutils.
22275         gcc_cv_objdump=../binutils/objdump$build_exeext
22276 elif test -x objdump$build_exeext; then
22277         gcc_cv_objdump=./objdump$build_exeext
22278 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22279         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22280 else
22281         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22282 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22284 $as_echo_n "checking for $ac_word... " >&6; }
22285 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22286   $as_echo_n "(cached) " >&6
22287 else
22288   case $gcc_cv_objdump in
22289   [\\/]* | ?:[\\/]*)
22290   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22291   ;;
22292   *)
22293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22294 for as_dir in $PATH
22295 do
22296   IFS=$as_save_IFS
22297   test -z "$as_dir" && as_dir=.
22298     for ac_exec_ext in '' $ac_executable_extensions; do
22299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22300     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22302     break 2
22303   fi
22304 done
22305   done
22306 IFS=$as_save_IFS
22307
22308   ;;
22309 esac
22310 fi
22311 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22312 if test -n "$gcc_cv_objdump"; then
22313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22314 $as_echo "$gcc_cv_objdump" >&6; }
22315 else
22316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22317 $as_echo "no" >&6; }
22318 fi
22319
22320
22321 fi
22322 fi
22323
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22325 $as_echo_n "checking what objdump to use... " >&6; }
22326 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22327         # Single tree build which includes binutils.
22328         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22329 $as_echo "newly built objdump" >&6; }
22330 elif test x$gcc_cv_objdump = x; then
22331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22332 $as_echo "not found" >&6; }
22333 else
22334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22335 $as_echo "$gcc_cv_objdump" >&6; }
22336 fi
22337
22338 # Figure out what readelf we will be using.
22339 if test "${gcc_cv_readelf+set}" = set; then :
22340
22341 else
22342
22343 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22344      && test -f ../binutils/Makefile \
22345      && test x$build = x$host; then
22346         # Single tree build which includes binutils.
22347         gcc_cv_readelf=../binutils/readelf$build_exeext
22348 elif test -x readelf$build_exeext; then
22349         gcc_cv_readelf=./readelf$build_exeext
22350 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22351         gcc_cv_readelf="$READELF_FOR_TARGET"
22352 else
22353         # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22354 set dummy $READELF_FOR_TARGET; ac_word=$2
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22356 $as_echo_n "checking for $ac_word... " >&6; }
22357 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22358   $as_echo_n "(cached) " >&6
22359 else
22360   case $gcc_cv_readelf in
22361   [\\/]* | ?:[\\/]*)
22362   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22363   ;;
22364   *)
22365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22366 for as_dir in $PATH
22367 do
22368   IFS=$as_save_IFS
22369   test -z "$as_dir" && as_dir=.
22370     for ac_exec_ext in '' $ac_executable_extensions; do
22371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22372     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22374     break 2
22375   fi
22376 done
22377   done
22378 IFS=$as_save_IFS
22379
22380   ;;
22381 esac
22382 fi
22383 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22384 if test -n "$gcc_cv_readelf"; then
22385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22386 $as_echo "$gcc_cv_readelf" >&6; }
22387 else
22388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22389 $as_echo "no" >&6; }
22390 fi
22391
22392
22393 fi
22394 fi
22395
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22397 $as_echo_n "checking what readelf to use... " >&6; }
22398 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22399         # Single tree build which includes binutils.
22400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22401 $as_echo "newly built readelf" >&6; }
22402 elif test x$gcc_cv_readelf = x; then
22403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22404 $as_echo "not found" >&6; }
22405 else
22406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22407 $as_echo "$gcc_cv_readelf" >&6; }
22408 fi
22409
22410 # Figure out what assembler alignment features are present.
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22412 $as_echo_n "checking assembler flags... " >&6; }
22413 if test "${gcc_cv_as_flags+set}" = set; then :
22414   $as_echo_n "(cached) " >&6
22415 else
22416    case "$target" in
22417   i[34567]86-*-linux*)
22418         gcc_cv_as_flags=--32
22419     ;;
22420   x86_64-*-linux-gnux32)
22421         gcc_cv_as_flags=--x32
22422     ;;
22423   x86_64-*-linux*)
22424         gcc_cv_as_flags=--64
22425     ;;
22426   powerpc*-*-darwin*)
22427         gcc_cv_as_flags="-arch ppc"
22428     ;;
22429   *)
22430     gcc_cv_as_flags=" "
22431     ;;
22432   esac
22433 fi
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22435 $as_echo "$gcc_cv_as_flags" >&6; }
22436
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22438 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22439 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22440   $as_echo_n "(cached) " >&6
22441 else
22442   gcc_cv_as_balign_and_p2align=no
22443     if test $in_tree_gas = yes; then
22444     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22445   then gcc_cv_as_balign_and_p2align=yes
22446 fi
22447   elif test x$gcc_cv_as != x; then
22448     $as_echo '.balign 4
22449 .p2align 2' > conftest.s
22450     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22451   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22452   (eval $ac_try) 2>&5
22453   ac_status=$?
22454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22455   test $ac_status = 0; }; }
22456     then
22457         gcc_cv_as_balign_and_p2align=yes
22458     else
22459       echo "configure: failed program was" >&5
22460       cat conftest.s >&5
22461     fi
22462     rm -f conftest.o conftest.s
22463   fi
22464 fi
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22466 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22467 if test $gcc_cv_as_balign_and_p2align = yes; then
22468
22469 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22470
22471 fi
22472
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22474 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22475 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22476   $as_echo_n "(cached) " >&6
22477 else
22478   gcc_cv_as_max_skip_p2align=no
22479     if test $in_tree_gas = yes; then
22480     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22481   then gcc_cv_as_max_skip_p2align=yes
22482 fi
22483   elif test x$gcc_cv_as != x; then
22484     $as_echo '.p2align 4,,7' > conftest.s
22485     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22486   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22487   (eval $ac_try) 2>&5
22488   ac_status=$?
22489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22490   test $ac_status = 0; }; }
22491     then
22492         gcc_cv_as_max_skip_p2align=yes
22493     else
22494       echo "configure: failed program was" >&5
22495       cat conftest.s >&5
22496     fi
22497     rm -f conftest.o conftest.s
22498   fi
22499 fi
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22501 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22502 if test $gcc_cv_as_max_skip_p2align = yes; then
22503
22504 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22505
22506 fi
22507
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22509 $as_echo_n "checking assembler for .literal16... " >&6; }
22510 if test "${gcc_cv_as_literal16+set}" = set; then :
22511   $as_echo_n "(cached) " >&6
22512 else
22513   gcc_cv_as_literal16=no
22514     if test $in_tree_gas = yes; then
22515     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22516   then gcc_cv_as_literal16=yes
22517 fi
22518   elif test x$gcc_cv_as != x; then
22519     $as_echo '.literal16' > conftest.s
22520     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22521   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22522   (eval $ac_try) 2>&5
22523   ac_status=$?
22524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22525   test $ac_status = 0; }; }
22526     then
22527         gcc_cv_as_literal16=yes
22528     else
22529       echo "configure: failed program was" >&5
22530       cat conftest.s >&5
22531     fi
22532     rm -f conftest.o conftest.s
22533   fi
22534 fi
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22536 $as_echo "$gcc_cv_as_literal16" >&6; }
22537 if test $gcc_cv_as_literal16 = yes; then
22538
22539 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22540
22541 fi
22542
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22544 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22545 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22546   $as_echo_n "(cached) " >&6
22547 else
22548   gcc_cv_as_subsection_m1=no
22549     if test $in_tree_gas = yes; then
22550     if test $in_tree_gas_is_elf = yes \
22551   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22552   then gcc_cv_as_subsection_m1=yes
22553 fi
22554   elif test x$gcc_cv_as != x; then
22555     $as_echo 'conftest_label1: .word 0
22556 .subsection -1
22557 conftest_label2: .word 0
22558 .previous' > conftest.s
22559     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22560   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22561   (eval $ac_try) 2>&5
22562   ac_status=$?
22563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22564   test $ac_status = 0; }; }
22565     then
22566         if test x$gcc_cv_nm != x; then
22567     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22568     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22569     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22570     then :
22571     else gcc_cv_as_subsection_m1=yes
22572     fi
22573     rm -f conftest.nm1 conftest.nm2
22574   fi
22575     else
22576       echo "configure: failed program was" >&5
22577       cat conftest.s >&5
22578     fi
22579     rm -f conftest.o conftest.s
22580   fi
22581 fi
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22583 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22584 if test $gcc_cv_as_subsection_m1 = yes; then
22585
22586 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22587
22588 fi
22589
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22591 $as_echo_n "checking assembler for .weak... " >&6; }
22592 if test "${gcc_cv_as_weak+set}" = set; then :
22593   $as_echo_n "(cached) " >&6
22594 else
22595   gcc_cv_as_weak=no
22596     if test $in_tree_gas = yes; then
22597     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22598   then gcc_cv_as_weak=yes
22599 fi
22600   elif test x$gcc_cv_as != x; then
22601     $as_echo '  .weak foobar' > conftest.s
22602     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22603   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22604   (eval $ac_try) 2>&5
22605   ac_status=$?
22606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22607   test $ac_status = 0; }; }
22608     then
22609         gcc_cv_as_weak=yes
22610     else
22611       echo "configure: failed program was" >&5
22612       cat conftest.s >&5
22613     fi
22614     rm -f conftest.o conftest.s
22615   fi
22616 fi
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22618 $as_echo "$gcc_cv_as_weak" >&6; }
22619 if test $gcc_cv_as_weak = yes; then
22620
22621 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22622
22623 fi
22624
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22626 $as_echo_n "checking assembler for .weakref... " >&6; }
22627 if test "${gcc_cv_as_weakref+set}" = set; then :
22628   $as_echo_n "(cached) " >&6
22629 else
22630   gcc_cv_as_weakref=no
22631     if test $in_tree_gas = yes; then
22632     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22633   then gcc_cv_as_weakref=yes
22634 fi
22635   elif test x$gcc_cv_as != x; then
22636     $as_echo '  .weakref foobar, barfnot' > conftest.s
22637     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22638   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22639   (eval $ac_try) 2>&5
22640   ac_status=$?
22641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22642   test $ac_status = 0; }; }
22643     then
22644         gcc_cv_as_weakref=yes
22645     else
22646       echo "configure: failed program was" >&5
22647       cat conftest.s >&5
22648     fi
22649     rm -f conftest.o conftest.s
22650   fi
22651 fi
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22653 $as_echo "$gcc_cv_as_weakref" >&6; }
22654 if test $gcc_cv_as_weakref = yes; then
22655
22656 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22657
22658 fi
22659
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22661 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22662 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22663   $as_echo_n "(cached) " >&6
22664 else
22665   gcc_cv_as_nsubspa_comdat=no
22666     if test $in_tree_gas = yes; then
22667     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22668   then gcc_cv_as_nsubspa_comdat=yes
22669 fi
22670   elif test x$gcc_cv_as != x; then
22671     $as_echo '  .SPACE $TEXT$
22672         .NSUBSPA $CODE$,COMDAT' > conftest.s
22673     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22674   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22675   (eval $ac_try) 2>&5
22676   ac_status=$?
22677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22678   test $ac_status = 0; }; }
22679     then
22680         gcc_cv_as_nsubspa_comdat=yes
22681     else
22682       echo "configure: failed program was" >&5
22683       cat conftest.s >&5
22684     fi
22685     rm -f conftest.o conftest.s
22686   fi
22687 fi
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22689 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22690 if test $gcc_cv_as_nsubspa_comdat = yes; then
22691
22692 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22693
22694 fi
22695
22696 # .hidden needs to be supported in both the assembler and the linker,
22697 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22698 # This is irritatingly difficult to feature test for; we have to check the
22699 # date string after the version number.  If we've got an in-tree
22700 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22701 # to be safe.
22702 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22704 $as_echo_n "checking assembler for .hidden... " >&6; }
22705 if test "${gcc_cv_as_hidden+set}" = set; then :
22706   $as_echo_n "(cached) " >&6
22707 else
22708   gcc_cv_as_hidden=no
22709     if test $in_tree_gas = yes; then
22710     if test $in_tree_gas_is_elf = yes \
22711   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22712   then gcc_cv_as_hidden=yes
22713 fi
22714   elif test x$gcc_cv_as != x; then
22715     $as_echo '  .hidden foobar
22716 foobar:' > conftest.s
22717     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22718   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22719   (eval $ac_try) 2>&5
22720   ac_status=$?
22721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22722   test $ac_status = 0; }; }
22723     then
22724         gcc_cv_as_hidden=yes
22725     else
22726       echo "configure: failed program was" >&5
22727       cat conftest.s >&5
22728     fi
22729     rm -f conftest.o conftest.s
22730   fi
22731 fi
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22733 $as_echo "$gcc_cv_as_hidden" >&6; }
22734
22735 case "${target}" in
22736   *-*-darwin*)
22737     # Darwin as has some visibility support, though with a different syntax.
22738     gcc_cv_as_hidden=yes
22739     ;;
22740 esac
22741
22742 # gnu_indirect_function type is an extension proposed at
22743 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22744 # selection of function implementation
22745 # Check whether --enable-gnu-indirect-function was given.
22746 if test "${enable_gnu_indirect_function+set}" = set; then :
22747   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22748     yes | no) ;;
22749     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22750 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22751   esac
22752 else
22753   enable_gnu_indirect_function="$default_gnu_indirect_function"
22754 fi
22755
22756
22757 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22758
22759 cat >>confdefs.h <<_ACEOF
22760 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22761 _ACEOF
22762
22763
22764
22765 if test $in_tree_ld != yes ; then
22766   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22767   if echo "$ld_ver" | grep GNU > /dev/null; then
22768     if test x"$ld_is_gold" = xyes; then
22769       # GNU gold --version looks like this:
22770       #
22771       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22772       #
22773       # We extract the binutils version which is more familiar and specific
22774       # than the gold version.
22775       ld_vers=`echo $ld_ver | sed -n \
22776           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22777     else
22778       # GNU ld --version looks like this:
22779       #
22780       # GNU ld (GNU Binutils) 2.21.51.20110225
22781       ld_vers=`echo $ld_ver | sed -n \
22782           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22783     fi
22784     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'`
22785     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22786     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22787     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22788   else
22789     case "${target}" in
22790       *-*-solaris2*)
22791         # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22792         # format.
22793         #
22794         # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22795         # /usr/ccs/bin/ld has been configured.
22796         ld_ver=`$gcc_cv_ld -V 2>&1`
22797         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22798           ld_vers=`echo $ld_ver | sed -n \
22799             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22800           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22801           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22802         fi
22803         ;;
22804     esac
22805   fi
22806 fi
22807
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22809 $as_echo_n "checking linker for .hidden support... " >&6; }
22810 if test "${gcc_cv_ld_hidden+set}" = set; then :
22811   $as_echo_n "(cached) " >&6
22812 else
22813   if test $in_tree_ld = yes ; then
22814   gcc_cv_ld_hidden=no
22815   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 \
22816      && test $in_tree_ld_is_elf = yes; then
22817      gcc_cv_ld_hidden=yes
22818   fi
22819 else
22820   gcc_cv_ld_hidden=yes
22821   if test x"$ld_is_gold" = xyes; then
22822     :
22823   elif echo "$ld_ver" | grep GNU > /dev/null; then
22824     case "${target}" in
22825       mmix-knuth-mmixware)
22826         # The linker emits by default mmo, not ELF, so "no" is appropriate.
22827         gcc_cv_ld_hidden=no
22828         ;;
22829     esac
22830     if test 0"$ld_date" -lt 20020404; then
22831       if test -n "$ld_date"; then
22832         # If there was date string, but was earlier than 2002-04-04, fail
22833         gcc_cv_ld_hidden=no
22834       elif test -z "$ld_vers"; then
22835         # If there was no date string nor ld version number, something is wrong
22836         gcc_cv_ld_hidden=no
22837       else
22838         test -z "$ld_vers_patch" && ld_vers_patch=0
22839         if test "$ld_vers_major" -lt 2; then
22840           gcc_cv_ld_hidden=no
22841         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22842           gcc_cv_ld_hidden="no"
22843         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22844           gcc_cv_ld_hidden=no
22845         fi
22846       fi
22847     fi
22848   else
22849     case "${target}" in
22850       *-*-darwin*)
22851         # Darwin ld has some visibility support.
22852         gcc_cv_ld_hidden=yes
22853         ;;
22854       hppa64*-*-hpux* | ia64*-*-hpux*)
22855         gcc_cv_ld_hidden=yes
22856         ;;
22857       *-*-solaris2.1[0-9]*)
22858         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22859         # .symbolic was only added in Solaris 9 12/02.
22860         gcc_cv_ld_hidden=yes
22861         ;;
22862       *)
22863         gcc_cv_ld_hidden=no
22864         ;;
22865     esac
22866   fi
22867 fi
22868 fi
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22870 $as_echo "$gcc_cv_ld_hidden" >&6; }
22871 libgcc_visibility=no
22872
22873
22874 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22875   libgcc_visibility=yes
22876
22877 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22878
22879 fi
22880
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22882 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22883 gcc_cv_ld_ro_rw_mix=unknown
22884 if test $in_tree_ld = yes ; then
22885   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 \
22886      && test $in_tree_ld_is_elf = yes; then
22887     gcc_cv_ld_ro_rw_mix=read-write
22888   fi
22889 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22890   echo '.section myfoosect, "a"' > conftest1.s
22891   echo '.section myfoosect, "aw"' > conftest2.s
22892   echo '.byte 1' >> conftest2.s
22893   echo '.section myfoosect, "a"' > conftest3.s
22894   echo '.byte 0' >> conftest3.s
22895   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22896      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22897      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22898      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22899         conftest2.o conftest3.o > /dev/null 2>&1; then
22900     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22901                          | sed -e '/myfoosect/!d' -e N`
22902     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22903       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22904         gcc_cv_ld_ro_rw_mix=read-only
22905       else
22906         gcc_cv_ld_ro_rw_mix=read-write
22907       fi
22908     fi
22909   fi
22910   rm -f conftest.* conftest[123].*
22911 fi
22912 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22913
22914 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22915
22916 fi
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22918 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22919
22920 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22921   case "${target}" in
22922     *-*-solaris2*)
22923       #
22924       # Solaris 2 ld -V output looks like this for a regular version:
22925       #
22926       # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22927       #
22928       # but test versions add stuff at the end:
22929       #
22930       # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22931       #
22932       gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22933       if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22934         gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22935           -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22936         gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22937         gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22938       fi
22939       ;;
22940   esac
22941 fi
22942
22943 # Check whether --enable-initfini-array was given.
22944 if test "${enable_initfini_array+set}" = set; then :
22945   enableval=$enable_initfini_array;
22946 else
22947
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22949 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22950 if test "${gcc_cv_initfini_array+set}" = set; then :
22951   $as_echo_n "(cached) " >&6
22952 else
22953     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22954     case "${target}" in
22955       ia64-*)
22956         if test "$cross_compiling" = yes; then :
22957   gcc_cv_initfini_array=no
22958 else
22959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22960 /* end confdefs.h.  */
22961
22962 #ifndef __ELF__
22963 #error Not an ELF OS
22964 #endif
22965 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22966    if it can be used.  */
22967 static int x = -1;
22968 int main (void) { return x; }
22969 int foo (void) { x = 0; }
22970 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22971
22972 _ACEOF
22973 if ac_fn_cxx_try_run "$LINENO"; then :
22974   gcc_cv_initfini_array=yes
22975 else
22976   gcc_cv_initfini_array=no
22977 fi
22978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22979   conftest.$ac_objext conftest.beam conftest.$ac_ext
22980 fi
22981 ;;
22982       *)
22983         gcc_cv_initfini_array=no
22984         if test $in_tree_ld = yes ; then
22985           if test "$gcc_cv_gld_major_version" -eq 2 \
22986              -a "$gcc_cv_gld_minor_version" -ge 22 \
22987              -o "$gcc_cv_gld_major_version" -gt 2 \
22988              && test $in_tree_ld_is_elf = yes; then
22989             gcc_cv_initfini_array=yes
22990           fi
22991         elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22992           case $target:$gas in
22993             *:yes)
22994               sh_flags='"a"'
22995               sh_type='%progbits'
22996               ;;
22997             i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22998               sh_flags='"a"'
22999               sh_type='@progbits'
23000               ;;
23001             sparc*-*-solaris2*:no)
23002               sh_flags='#alloc'
23003               sh_type='#progbits'
23004               sh_quote='"'
23005               ;;
23006           esac
23007           case "$target:$gnu_ld" in
23008             *:yes)
23009               cat > conftest.s <<EOF
23010 .section .dtors,$sh_flags,$sh_type
23011 .balign 4
23012 .byte 'A', 'A', 'A', 'A'
23013 .section .ctors,$sh_flags,$sh_type
23014 .balign 4
23015 .byte 'B', 'B', 'B', 'B'
23016 .section .fini_array.65530,$sh_flags,$sh_type
23017 .balign 4
23018 .byte 'C', 'C', 'C', 'C'
23019 .section .init_array.65530,$sh_flags,$sh_type
23020 .balign 4
23021 .byte 'D', 'D', 'D', 'D'
23022 .section .dtors.64528,$sh_flags,$sh_type
23023 .balign 4
23024 .byte 'E', 'E', 'E', 'E'
23025 .section .ctors.64528,$sh_flags,$sh_type
23026 .balign 4
23027 .byte 'F', 'F', 'F', 'F'
23028 .section .fini_array.01005,$sh_flags,$sh_type
23029 .balign 4
23030 .byte 'G', 'G', 'G', 'G'
23031 .section .init_array.01005,$sh_flags,$sh_type
23032 .balign 4
23033 .byte 'H', 'H', 'H', 'H'
23034 .text
23035 .globl _start
23036 _start:
23037 EOF
23038               if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23039                  && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23040                  && $gcc_cv_objdump -s -j .init_array conftest \
23041                     | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23042                  && $gcc_cv_objdump -s -j .fini_array conftest \
23043                     | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23044                 gcc_cv_initfini_array=yes
23045               fi
23046               ;;
23047             *-*-solaris2*:no)
23048               # When Solaris ld added constructor priority support, it was
23049               # decided to only handle .init_array.N/.fini_array.N since
23050               # there was no need for backwards compatibility with
23051               # .ctors.N/.dtors.N.  .ctors/.dtors remain as separate
23052               # sections with correct execution order resp. to
23053               # .init_array/.fini_array, while gld merges them into
23054               # .init_array/.fini_array.
23055               cat > conftest.s <<EOF
23056 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23057 .align 4
23058 .byte 'C', 'C', 'C', 'C'
23059 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23060 .align 4
23061 .byte 'D', 'D', 'D', 'D'
23062 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23063 .align 4
23064 .byte 'G', 'G', 'G', 'G'
23065 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23066 .align 4
23067 .byte 'H', 'H', 'H', 'H'
23068 .text
23069 .globl _start
23070 _start:
23071 EOF
23072               if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23073                  && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23074                  && $gcc_cv_objdump -s -j .init_array conftest \
23075                     | grep HHHHDDDD > /dev/null 2>&1 \
23076                  && $gcc_cv_objdump -s -j .fini_array conftest \
23077                     | grep GGGGCCCC > /dev/null 2>&1; then
23078                 gcc_cv_initfini_array=yes
23079               fi
23080               ;;
23081             esac
23082           rm -f conftest conftest.*
23083         fi
23084         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23085 /* end confdefs.h.  */
23086
23087 #ifndef __ELF__
23088 # error Not an ELF OS
23089 #endif
23090 #include <stdlib.h>
23091 #if defined __GLIBC_PREREQ
23092 # if __GLIBC_PREREQ (2, 4)
23093 # else
23094 #  error GLIBC 2.4 required
23095 # endif
23096 #else
23097 # if defined __sun__ && defined __svr4__
23098    /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
23099 # else
23100 #  error The C library not known to support .init_array/.fini_array
23101 # endif
23102 #endif
23103
23104 _ACEOF
23105 if ac_fn_cxx_try_cpp "$LINENO"; then :
23106
23107 else
23108   gcc_cv_initfini_array=no
23109 fi
23110 rm -f conftest.err conftest.$ac_ext;;
23111     esac
23112   else
23113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23114 $as_echo_n "checking cross compile... guessing... " >&6; }
23115     gcc_cv_initfini_array=no
23116   fi
23117 fi
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23119 $as_echo "$gcc_cv_initfini_array" >&6; }
23120   enable_initfini_array=$gcc_cv_initfini_array
23121
23122 fi
23123
23124
23125 cat >>confdefs.h <<_ACEOF
23126 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23127 _ACEOF
23128
23129
23130
23131 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23133 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23134 if test "${gcc_cv_as_leb128+set}" = set; then :
23135   $as_echo_n "(cached) " >&6
23136 else
23137   gcc_cv_as_leb128=no
23138     if test $in_tree_gas = yes; then
23139     if test $in_tree_gas_is_elf = yes \
23140   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23141   then gcc_cv_as_leb128=yes
23142 fi
23143   elif test x$gcc_cv_as != x; then
23144     $as_echo '  .data
23145         .uleb128 L2 - L1
23146 L1:
23147         .uleb128 1280
23148         .sleb128 -1010
23149 L2:' > conftest.s
23150     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23151   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152   (eval $ac_try) 2>&5
23153   ac_status=$?
23154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155   test $ac_status = 0; }; }
23156     then
23157         # GAS versions before 2.11 do not support uleb128,
23158   # despite appearing to.
23159   # ??? There exists an elf-specific test that will crash
23160   # the assembler.  Perhaps it's better to figure out whether
23161   # arbitrary sections are supported and try the test.
23162   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23163   if echo "$as_ver" | grep GNU > /dev/null; then
23164     as_vers=`echo $as_ver | sed -n \
23165         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23166     as_major=`expr "$as_vers" : '\([0-9]*\)'`
23167     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23168     if test $as_major -eq 2 && test $as_minor -lt 11
23169     then :
23170     else gcc_cv_as_leb128=yes
23171     fi
23172   fi
23173     else
23174       echo "configure: failed program was" >&5
23175       cat conftest.s >&5
23176     fi
23177     rm -f conftest.o conftest.s
23178   fi
23179 fi
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23181 $as_echo "$gcc_cv_as_leb128" >&6; }
23182 if test $gcc_cv_as_leb128 = yes; then
23183
23184 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23185
23186 fi
23187
23188 # Check if we have assembler support for unwind directives.
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23190 $as_echo_n "checking assembler for cfi directives... " >&6; }
23191 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23192   $as_echo_n "(cached) " >&6
23193 else
23194   gcc_cv_as_cfi_directive=no
23195   if test x$gcc_cv_as != x; then
23196     $as_echo '  .text
23197         .cfi_startproc
23198         .cfi_offset 0, 0
23199         .cfi_same_value 1
23200         .cfi_def_cfa 1, 2
23201         .cfi_escape 1, 2, 3, 4, 5
23202         .cfi_endproc' > conftest.s
23203     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23204   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23205   (eval $ac_try) 2>&5
23206   ac_status=$?
23207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23208   test $ac_status = 0; }; }
23209     then
23210         case "$target" in
23211   *-*-solaris*)
23212     # If the linker used on Solaris (like Sun ld) isn't capable of merging
23213     # read-only and read-write sections, we need to make sure that the
23214     # assembler used emits read-write .eh_frame sections.
23215     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23216       if test "x$gcc_cv_objdump" != x; then
23217         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23218                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23219           gcc_cv_as_cfi_directive=no
23220         else
23221           case "$target" in
23222             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23223               # On Solaris/x86, make sure that GCC and assembler agree on using
23224               # read-only .eh_frame sections for 64-bit.
23225               if test x$gas = xyes; then
23226                  as_ix86_64_opt="--64"
23227               else
23228                  as_ix86_64_opt="-xarch=amd64"
23229               fi
23230               if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23231                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23232                         sed -e /.eh_frame/!d -e N | \
23233                         grep READONLY > /dev/null; then
23234                 gcc_cv_as_cfi_directive=yes
23235               else
23236                 gcc_cv_as_cfi_directive=no
23237               fi
23238               ;;
23239             *)
23240               gcc_cv_as_cfi_directive=yes
23241               ;;
23242           esac
23243         fi
23244       else
23245         # no objdump, err on the side of caution
23246         gcc_cv_as_cfi_directive=no
23247       fi
23248     else
23249       gcc_cv_as_cfi_directive=yes
23250     fi
23251     ;;
23252   *-*-*)
23253     gcc_cv_as_cfi_directive=yes
23254     ;;
23255 esac
23256     else
23257       echo "configure: failed program was" >&5
23258       cat conftest.s >&5
23259     fi
23260     rm -f conftest.o conftest.s
23261   fi
23262 fi
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23264 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23265
23266 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23268 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23269 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23270   $as_echo_n "(cached) " >&6
23271 else
23272   gcc_cv_as_cfi_advance_working=no
23273   if test x$gcc_cv_as != x; then
23274     $as_echo '  .text
23275         .cfi_startproc
23276         .cfi_adjust_cfa_offset 64
23277         .skip 75040, 0
23278         .cfi_adjust_cfa_offset 128
23279         .cfi_endproc' > conftest.s
23280     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23281   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23282   (eval $ac_try) 2>&5
23283   ac_status=$?
23284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23285   test $ac_status = 0; }; }
23286     then
23287
23288 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23289     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
23290    gcc_cv_as_cfi_advance_working=yes
23291 fi
23292
23293     else
23294       echo "configure: failed program was" >&5
23295       cat conftest.s >&5
23296     fi
23297     rm -f conftest.o conftest.s
23298   fi
23299 fi
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23301 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23302
23303 else
23304   # no objdump, err on the side of caution
23305   gcc_cv_as_cfi_advance_working=no
23306 fi
23307
23308
23309 cat >>confdefs.h <<_ACEOF
23310 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23311        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23312 _ACEOF
23313
23314
23315
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23317 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23318 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23319   $as_echo_n "(cached) " >&6
23320 else
23321   gcc_cv_as_cfi_personality_directive=no
23322   if test x$gcc_cv_as != x; then
23323     $as_echo '  .text
23324         .cfi_startproc
23325         .cfi_personality 0, symbol
23326         .cfi_endproc' > conftest.s
23327     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23328   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23329   (eval $ac_try) 2>&5
23330   ac_status=$?
23331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23332   test $ac_status = 0; }; }
23333     then
23334         gcc_cv_as_cfi_personality_directive=yes
23335     else
23336       echo "configure: failed program was" >&5
23337       cat conftest.s >&5
23338     fi
23339     rm -f conftest.o conftest.s
23340   fi
23341 fi
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23343 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23344
23345
23346 cat >>confdefs.h <<_ACEOF
23347 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23348     then echo 1; else echo 0; fi`
23349 _ACEOF
23350
23351
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23353 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23354 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23355   $as_echo_n "(cached) " >&6
23356 else
23357   gcc_cv_as_cfi_sections_directive=no
23358   if test x$gcc_cv_as != x; then
23359     $as_echo '  .text
23360         .cfi_sections .debug_frame, .eh_frame
23361         .cfi_startproc
23362         .cfi_endproc' > conftest.s
23363     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23364   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23365   (eval $ac_try) 2>&5
23366   ac_status=$?
23367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23368   test $ac_status = 0; }; }
23369     then
23370         case $target_os in
23371   win32 | pe | cygwin* | mingw32*)
23372     # Need to check that we generated the correct relocation for the
23373     # .debug_frame section.  This was fixed for binutils 2.21.
23374     gcc_cv_as_cfi_sections_directive=no
23375     if test "x$gcc_cv_objdump" != x; then
23376      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23377         grep secrel > /dev/null; then
23378       gcc_cv_as_cfi_sections_directive=yes
23379      fi
23380     fi
23381     ;;
23382   *)
23383     gcc_cv_as_cfi_sections_directive=yes
23384     ;;
23385 esac
23386     else
23387       echo "configure: failed program was" >&5
23388       cat conftest.s >&5
23389     fi
23390     rm -f conftest.o conftest.s
23391   fi
23392 fi
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23394 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23395
23396
23397
23398 cat >>confdefs.h <<_ACEOF
23399 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23400     then echo 1; else echo 0; fi`
23401 _ACEOF
23402
23403
23404 # GAS versions up to and including 2.11.0 may mis-optimize
23405 # .eh_frame data.
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23407 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23408 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23409   $as_echo_n "(cached) " >&6
23410 else
23411   gcc_cv_as_eh_frame=no
23412     if test $in_tree_gas = yes; then
23413     if test $in_tree_gas_is_elf = yes \
23414   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23415   then gcc_cv_as_eh_frame=yes
23416 fi
23417   elif test x$gcc_cv_as != x; then
23418     $as_echo '  .text
23419 .LFB1:
23420         .4byte  0
23421 .L1:
23422         .4byte  0
23423 .LFE1:
23424         .section        .eh_frame,"aw",@progbits
23425 __FRAME_BEGIN__:
23426         .4byte  .LECIE1-.LSCIE1
23427 .LSCIE1:
23428         .4byte  0x0
23429         .byte   0x1
23430         .ascii "z\0"
23431         .byte   0x1
23432         .byte   0x78
23433         .byte   0x1a
23434         .byte   0x0
23435         .byte   0x4
23436         .4byte  1
23437         .p2align 1
23438 .LECIE1:
23439 .LSFDE1:
23440         .4byte  .LEFDE1-.LASFDE1
23441 .LASFDE1:
23442         .4byte  .LASFDE1-__FRAME_BEGIN__
23443         .4byte  .LFB1
23444         .4byte  .LFE1-.LFB1
23445         .byte   0x4
23446         .4byte  .LFE1-.LFB1
23447         .byte   0x4
23448         .4byte  .L1-.LFB1
23449 .LEFDE1:' > conftest.s
23450     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23451   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23452   (eval $ac_try) 2>&5
23453   ac_status=$?
23454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23455   test $ac_status = 0; }; }
23456     then
23457           cat > conftest.lit <<EOF
23458  0000 10000000 00000000 017a0001 781a0004  .........z..x...
23459  0010 01000000 12000000 18000000 00000000  ................
23460  0020 08000000 04080000 0044               .........D      
23461 EOF
23462 cat > conftest.big <<EOF
23463  0000 00000010 00000000 017a0001 781a0004  .........z..x...
23464  0010 00000001 00000012 00000018 00000000  ................
23465  0020 00000008 04000000 0844               .........D      
23466 EOF
23467   # If the assembler didn't choke, and we can objdump,
23468   # and we got the correct data, then succeed.
23469   # The text in the here-document typically retains its unix-style line
23470   # endings, while the output of objdump will use host line endings.
23471   # Therefore, use diff -b for the comparisons.
23472   if test x$gcc_cv_objdump != x \
23473   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23474      | tail -3 > conftest.got \
23475   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23476     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23477   then
23478     gcc_cv_as_eh_frame=yes
23479   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23480   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23481   (eval $ac_try) 2>&5
23482   ac_status=$?
23483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23484   test $ac_status = 0; }; }; then
23485     gcc_cv_as_eh_frame=buggy
23486   else
23487     # Uh oh, what do we do now?
23488     gcc_cv_as_eh_frame=no
23489   fi
23490     else
23491       echo "configure: failed program was" >&5
23492       cat conftest.s >&5
23493     fi
23494     rm -f conftest.o conftest.s
23495   fi
23496 fi
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23498 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23499
23500
23501 if test $gcc_cv_as_eh_frame = buggy; then
23502
23503 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23504
23505 fi
23506
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23508 $as_echo_n "checking assembler for section merging support... " >&6; }
23509 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23510   $as_echo_n "(cached) " >&6
23511 else
23512   gcc_cv_as_shf_merge=no
23513     if test $in_tree_gas = yes; then
23514     if test $in_tree_gas_is_elf = yes \
23515   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23516   then gcc_cv_as_shf_merge=yes
23517 fi
23518   elif test x$gcc_cv_as != x; then
23519     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23520     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23521   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23522   (eval $ac_try) 2>&5
23523   ac_status=$?
23524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23525   test $ac_status = 0; }; }
23526     then
23527         gcc_cv_as_shf_merge=yes
23528     else
23529       echo "configure: failed program was" >&5
23530       cat conftest.s >&5
23531     fi
23532     rm -f conftest.o conftest.s
23533   fi
23534 fi
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23536 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23537
23538 if test $gcc_cv_as_shf_merge = no; then
23539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23540 $as_echo_n "checking assembler for section merging support... " >&6; }
23541 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23542   $as_echo_n "(cached) " >&6
23543 else
23544   gcc_cv_as_shf_merge=no
23545     if test $in_tree_gas = yes; then
23546     if test $in_tree_gas_is_elf = yes \
23547   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23548   then gcc_cv_as_shf_merge=yes
23549 fi
23550   elif test x$gcc_cv_as != x; then
23551     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23552     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23553   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23554   (eval $ac_try) 2>&5
23555   ac_status=$?
23556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23557   test $ac_status = 0; }; }
23558     then
23559         gcc_cv_as_shf_merge=yes
23560     else
23561       echo "configure: failed program was" >&5
23562       cat conftest.s >&5
23563     fi
23564     rm -f conftest.o conftest.s
23565   fi
23566 fi
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23568 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23569
23570 fi
23571
23572 cat >>confdefs.h <<_ACEOF
23573 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23574 _ACEOF
23575
23576
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23578 $as_echo_n "checking assembler for stabs directive... " >&6; }
23579 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23580   $as_echo_n "(cached) " >&6
23581 else
23582   gcc_cv_as_stabs_directive=no
23583   if test x$gcc_cv_as != x; then
23584     $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > 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_stabs_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_stabs_directive" >&5
23601 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23602 if test $gcc_cv_as_stabs_directive = yes; then
23603
23604 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23605
23606 fi
23607
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23609 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23610 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23611   $as_echo_n "(cached) " >&6
23612 else
23613   gcc_cv_as_comdat_group=no
23614     if test $in_tree_gas = yes; then
23615     if test $in_tree_gas_is_elf = yes \
23616   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23617   then gcc_cv_as_comdat_group=yes
23618 fi
23619   elif test x$gcc_cv_as != x; then
23620     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23621     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23622   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23623   (eval $ac_try) 2>&5
23624   ac_status=$?
23625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23626   test $ac_status = 0; }; }
23627     then
23628         gcc_cv_as_comdat_group=yes
23629     else
23630       echo "configure: failed program was" >&5
23631       cat conftest.s >&5
23632     fi
23633     rm -f conftest.o conftest.s
23634   fi
23635 fi
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23637 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23638
23639 if test $gcc_cv_as_comdat_group = yes; then
23640   gcc_cv_as_comdat_group_percent=no
23641   gcc_cv_as_comdat_group_group=no
23642 else
23643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23644 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23645 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23646   $as_echo_n "(cached) " >&6
23647 else
23648   gcc_cv_as_comdat_group_percent=no
23649     if test $in_tree_gas = yes; then
23650     if test $in_tree_gas_is_elf = yes \
23651   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23652   then gcc_cv_as_comdat_group_percent=yes
23653 fi
23654   elif test x$gcc_cv_as != x; then
23655     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23656     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23657   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23658   (eval $ac_try) 2>&5
23659   ac_status=$?
23660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23661   test $ac_status = 0; }; }
23662     then
23663         gcc_cv_as_comdat_group_percent=yes
23664     else
23665       echo "configure: failed program was" >&5
23666       cat conftest.s >&5
23667     fi
23668     rm -f conftest.o conftest.s
23669   fi
23670 fi
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23672 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23673
23674  if test $gcc_cv_as_comdat_group_percent = yes; then
23675    gcc_cv_as_comdat_group_group=no
23676  else
23677    case "${target}" in
23678      # Sun as uses a completely different syntax.
23679      *-*-solaris2*)
23680        case "${target}" in
23681          sparc*-*-solaris2*)
23682            conftest_s='
23683                .group foo,".text%foo",#comdat
23684                .section ".text%foo", #alloc,#execinstr,#progbits
23685                .globl foo
23686              foo:
23687              '
23688            ;;
23689          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23690            conftest_s='
23691                .group foo,.text%foo,#comdat
23692                .section .text%foo, "ax", @progbits
23693                .globl  foo
23694              foo:
23695              '
23696            ;;
23697        esac
23698        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23699 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23700 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23701   $as_echo_n "(cached) " >&6
23702 else
23703   gcc_cv_as_comdat_group_group=no
23704   if test x$gcc_cv_as != x; then
23705     $as_echo "$conftest_s" > conftest.s
23706     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23707   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23708   (eval $ac_try) 2>&5
23709   ac_status=$?
23710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23711   test $ac_status = 0; }; }
23712     then
23713         gcc_cv_as_comdat_group_group=yes
23714     else
23715       echo "configure: failed program was" >&5
23716       cat conftest.s >&5
23717     fi
23718     rm -f conftest.o conftest.s
23719   fi
23720 fi
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23722 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23723
23724        ;;
23725    esac
23726    if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23727      gcc_cv_as_comdat_group_group=no
23728    fi
23729  fi
23730 fi
23731 if test x"$ld_is_gold" = xyes; then
23732   comdat_group=yes
23733 elif test $in_tree_ld = yes ; then
23734   comdat_group=no
23735   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 \
23736      && test $in_tree_ld_is_elf = yes; then
23737      comdat_group=yes
23738   fi
23739 elif echo "$ld_ver" | grep GNU > /dev/null; then
23740   comdat_group=yes
23741   if test 0"$ld_date" -lt 20050308; then
23742     if test -n "$ld_date"; then
23743       # If there was date string, but was earlier than 2005-03-08, fail
23744       comdat_group=no
23745     elif test "$ld_vers_major" -lt 2; then
23746       comdat_group=no
23747     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23748       comdat_group=no
23749     fi
23750   fi
23751 else
23752   case "${target}" in
23753     *-*-solaris2.1[1-9]*)
23754       comdat_group=no
23755       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23756       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23757       # version 1.688.
23758       #
23759       # If using Sun as for COMDAT group as emitted by GCC, one needs at
23760       # least ld version 1.2267.
23761       if test "$ld_vers_major" -gt 1; then
23762         comdat_group=yes
23763       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23764         comdat_group=yes
23765       elif test "$ld_vers_minor" -ge 2267; then
23766         comdat_group=yes
23767       fi
23768       ;;
23769     *)
23770       # Assume linkers other than GNU ld don't support COMDAT group.
23771       comdat_group=no
23772       ;;
23773   esac
23774 fi
23775 # Allow overriding the automatic COMDAT group tests above.
23776 # Check whether --enable-comdat was given.
23777 if test "${enable_comdat+set}" = set; then :
23778   enableval=$enable_comdat; comdat_group="$enable_comdat"
23779 fi
23780
23781 if test $comdat_group = no; then
23782   gcc_cv_as_comdat_group=no
23783   gcc_cv_as_comdat_group_percent=no
23784   gcc_cv_as_comdat_group_group=no
23785 fi
23786
23787 cat >>confdefs.h <<_ACEOF
23788 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23789     || test $gcc_cv_as_comdat_group_percent = yes \
23790     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23791 _ACEOF
23792
23793
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23795 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23796 if test "${gcc_cv_as_discriminator+set}" = set; then :
23797   $as_echo_n "(cached) " >&6
23798 else
23799   gcc_cv_as_discriminator=no
23800     if test $in_tree_gas = yes; then
23801     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23802   then gcc_cv_as_discriminator=yes
23803 fi
23804   elif test x$gcc_cv_as != x; then
23805     $as_echo '  .text
23806         .file 1 "conf.c"
23807         .loc 1 1 0 discriminator 1' > conftest.s
23808     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23809   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23810   (eval $ac_try) 2>&5
23811   ac_status=$?
23812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23813   test $ac_status = 0; }; }
23814     then
23815         gcc_cv_as_discriminator=yes
23816     else
23817       echo "configure: failed program was" >&5
23818       cat conftest.s >&5
23819     fi
23820     rm -f conftest.o conftest.s
23821   fi
23822 fi
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23824 $as_echo "$gcc_cv_as_discriminator" >&6; }
23825 if test $gcc_cv_as_discriminator = yes; then
23826
23827 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23828
23829 fi
23830
23831 # Thread-local storage - the check is heavily parameterized.
23832 conftest_s=
23833 tls_first_major=
23834 tls_first_minor=
23835 tls_as_opt=
23836 case "$target" in
23837   alpha*-*-*)
23838     conftest_s='
23839         .section ".tdata","awT",@progbits
23840 foo:    .long   25
23841         .text
23842         ldq     $27,__tls_get_addr($29)         !literal!1
23843         lda     $16,foo($29)                    !tlsgd!1
23844         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
23845         ldq     $27,__tls_get_addr($29)         !literal!2
23846         lda     $16,foo($29)                    !tlsldm!2
23847         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
23848         ldq     $1,foo($29)                     !gotdtprel
23849         ldah    $2,foo($29)                     !dtprelhi
23850         lda     $3,foo($2)                      !dtprello
23851         lda     $4,foo($29)                     !dtprel
23852         ldq     $1,foo($29)                     !gottprel
23853         ldah    $2,foo($29)                     !tprelhi
23854         lda     $3,foo($2)                      !tprello
23855         lda     $4,foo($29)                     !tprel'
23856         tls_first_major=2
23857         tls_first_minor=13
23858         tls_as_opt=--fatal-warnings
23859         ;;
23860   cris-*-*|crisv32-*-*)
23861     conftest_s='
23862         .section ".tdata","awT",@progbits
23863 x:      .long   25
23864         .text
23865         move.d x:IE,$r10
23866         nop'
23867         tls_first_major=2
23868         tls_first_minor=20
23869         tls_as_opt=--fatal-warnings
23870         ;;
23871   frv*-*-*)
23872     conftest_s='
23873         .section ".tdata","awT",@progbits
23874 x:      .long   25
23875         .text
23876         call    #gettlsoff(x)'
23877         tls_first_major=2
23878         tls_first_minor=14
23879         ;;
23880   hppa*-*-linux*)
23881     conftest_s='
23882 t1:     .reg    %r20
23883 t2:     .reg    %r21
23884 gp:     .reg    %r19
23885         .section ".tdata","awT",@progbits
23886 foo:    .long   25
23887         .text
23888         .align  4
23889         addil LT%foo-$tls_gdidx$,gp
23890         ldo RT%foo-$tls_gdidx$(%r1),%arg0
23891         b __tls_get_addr
23892         nop
23893         addil LT%foo-$tls_ldidx$,gp
23894         b __tls_get_addr
23895         ldo RT%foo-$tls_ldidx$(%r1),%arg0
23896         addil LR%foo-$tls_dtpoff$,%ret0
23897         ldo RR%foo-$tls_dtpoff$(%r1),%t1
23898         mfctl %cr27,%t1
23899         addil LT%foo-$tls_ieoff$,gp
23900         ldw RT%foo-$tls_ieoff$(%r1),%t2
23901         add %t1,%t2,%t3
23902         mfctl %cr27,%t1
23903         addil LR%foo-$tls_leoff$,%t1
23904         ldo RR%foo-$tls_leoff$(%r1),%t2'
23905         tls_first_major=2
23906         tls_first_minor=15
23907         tls_as_opt=--fatal-warnings
23908         ;;
23909   arm*-*-*)
23910     conftest_s='
23911         .section ".tdata","awT",%progbits
23912 foo:    .long   25
23913         .text
23914 .word foo(gottpoff)
23915 .word foo(tpoff)
23916 .word foo(tlsgd)
23917 .word foo(tlsldm)
23918 .word foo(tlsldo)'
23919         tls_first_major=2
23920         tls_first_minor=17
23921         ;;
23922   i[34567]86-*-* | x86_64-*-*)
23923     case "$target" in
23924       i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23925         on_solaris=yes
23926         ;;
23927       *)
23928         on_solaris=no
23929         ;;
23930     esac
23931     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23932       conftest_s='
23933         .section .tdata,"awt",@progbits'
23934       tls_first_major=0
23935       tls_first_minor=0
23936       tls_section_flag=t
23937
23938 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23939
23940     else
23941       conftest_s='
23942         .section ".tdata","awT",@progbits'
23943       tls_first_major=2
23944       tls_first_minor=14
23945       tls_section_flag=T
23946       tls_as_opt="--fatal-warnings"
23947     fi
23948     case "$target" in
23949       i[34567]86-*-*)
23950         conftest_s="$conftest_s
23951 foo:    .long   25
23952         .text
23953         movl    %gs:0, %eax
23954         leal    foo@tlsgd(,%ebx,1), %eax
23955         leal    foo@tlsldm(%ebx), %eax
23956         leal    foo@dtpoff(%eax), %edx
23957         movl    foo@gottpoff(%ebx), %eax
23958         subl    foo@gottpoff(%ebx), %eax
23959         addl    foo@gotntpoff(%ebx), %eax
23960         movl    foo@indntpoff, %eax
23961         movl    \$foo@tpoff, %eax
23962         subl    \$foo@tpoff, %eax
23963         leal    foo@ntpoff(%ecx), %eax"
23964         ;;
23965       x86_64-*-*)
23966         if test x$on_solaris = xyes; then
23967           case $gas_flag in
23968             yes) tls_as_opt="$tls_as_opt --64" ;;
23969             no)  tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23970           esac
23971         fi
23972         conftest_s="$conftest_s
23973 foo:    .long   25
23974         .text
23975         movq    %fs:0, %rax
23976         leaq    foo@tlsgd(%rip), %rdi
23977         leaq    foo@tlsld(%rip), %rdi
23978         leaq    foo@dtpoff(%rax), %rdx
23979         movq    foo@gottpoff(%rip), %rax
23980         movq    \$foo@tpoff, %rax"
23981         ;;
23982     esac
23983     ;;
23984   ia64-*-*)
23985     conftest_s='
23986         .section ".tdata","awT",@progbits
23987 foo:    data8   25
23988         .text
23989         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23990         addl    r17 = @ltoff(@dtprel(foo#)), gp
23991         addl    r18 = @ltoff(@tprel(foo#)), gp
23992         addl    r19 = @dtprel(foo#), gp
23993         adds    r21 = @dtprel(foo#), r13
23994         movl    r23 = @dtprel(foo#)
23995         addl    r20 = @tprel(foo#), gp
23996         adds    r22 = @tprel(foo#), r13
23997         movl    r24 = @tprel(foo#)'
23998         tls_first_major=2
23999         tls_first_minor=13
24000         tls_as_opt=--fatal-warnings
24001         ;;
24002   microblaze*-*-*)
24003     conftest_s='
24004         .section .tdata,"awT",@progbits
24005 x:
24006         .word 2
24007         .text
24008         addik r5,r20,x@TLSGD
24009         addik r5,r20,x@TLSLDM'
24010         tls_first_major=2
24011         tls_first_minor=20
24012         tls_as_opt='--fatal-warnings'
24013         ;;
24014   mips*-*-*)
24015     conftest_s='
24016         .section .tdata,"awT",@progbits
24017 x:
24018         .word 2
24019         .text
24020         addiu $4, $28, %tlsgd(x)
24021         addiu $4, $28, %tlsldm(x)
24022         lui $4, %dtprel_hi(x)
24023         addiu $4, $4, %dtprel_lo(x)
24024         lw $4, %gottprel(x)($28)
24025         lui $4, %tprel_hi(x)
24026         addiu $4, $4, %tprel_lo(x)'
24027         tls_first_major=2
24028         tls_first_minor=16
24029         tls_as_opt='-32 --fatal-warnings'
24030         ;;
24031   m68k-*-*)
24032     conftest_s='
24033         .section .tdata,"awT",@progbits
24034 x:
24035         .word 2
24036         .text
24037 foo:
24038         move.l x@TLSGD(%a5),%a0
24039         move.l x@TLSLDM(%a5),%a0
24040         move.l x@TLSLDO(%a5),%a0
24041         move.l x@TLSIE(%a5),%a0
24042         move.l x@TLSLE(%a5),%a0'
24043         tls_first_major=2
24044         tls_first_minor=19
24045         tls_as_opt='--fatal-warnings'
24046         ;;
24047   nios2-*-*)
24048       conftest_s='
24049         .section ".tdata","awT",@progbits'
24050         tls_first_major=2
24051         tls_first_minor=23
24052         tls_as_opt="--fatal-warnings"
24053         ;;
24054   aarch64*-*-*)
24055     conftest_s='
24056         .section ".tdata","awT",%progbits
24057 foo:    .long   25
24058         .text
24059         adrp  x0, :tlsgd:x
24060         add   x0, x0, #:tlsgd_lo12:x
24061         bl    __tls_get_addr
24062         nop'
24063         tls_first_major=2
24064         tls_first_minor=20
24065         tls_as_opt='--fatal-warnings'
24066         ;;
24067   powerpc-ibm-aix*)
24068     conftest_s='
24069         .extern __get_tpointer
24070         .toc
24071 LC..1:
24072         .tc a[TC],a[TL]@le
24073         .csect .text[PR]
24074 .tlstest:
24075         lwz 9,LC..1(2)
24076         bla __get_tpointer
24077         lwzx 3,9,3
24078         .globl a
24079         .csect a[TL],4
24080 a:
24081         .space 4'
24082         tls_first_major=0
24083         tls_first_minor=0
24084         ;;
24085   powerpc64*-*-*)
24086     conftest_s='
24087         .section ".tdata","awT",@progbits
24088         .align 3
24089 ld0:    .space 8
24090 ld1:    .space 8
24091 x1:     .space 8
24092 x2:     .space 8
24093 x3:     .space 8
24094         .text
24095         addi 3,2,ld0@got@tlsgd
24096         bl .__tls_get_addr
24097         nop
24098         addi 3,2,ld1@toc
24099         bl .__tls_get_addr
24100         nop
24101         addi 3,2,x1@got@tlsld
24102         bl .__tls_get_addr
24103         nop
24104         addi 9,3,x1@dtprel
24105         bl .__tls_get_addr
24106         nop
24107         addis 9,3,x2@dtprel@ha
24108         addi 9,9,x2@dtprel@l
24109         bl .__tls_get_addr
24110         nop
24111         ld 9,x3@got@dtprel(2)
24112         add 9,9,3
24113         bl .__tls_get_addr
24114         nop'
24115         tls_first_major=2
24116         tls_first_minor=14
24117         tls_as_opt="-a64 --fatal-warnings"
24118         ;;
24119   powerpc*-*-*)
24120     conftest_s='
24121         .section ".tdata","awT",@progbits
24122         .align 2
24123 ld0:    .space 4
24124 ld1:    .space 4
24125 x1:     .space 4
24126 x2:     .space 4
24127 x3:     .space 4
24128         .text
24129         addi 3,31,ld0@got@tlsgd
24130         bl __tls_get_addr
24131         addi 3,31,x1@got@tlsld
24132         bl __tls_get_addr
24133         addi 9,3,x1@dtprel
24134         addis 9,3,x2@dtprel@ha
24135         addi 9,9,x2@dtprel@l
24136         lwz 9,x3@got@tprel(31)
24137         add 9,9,x@tls
24138         addi 9,2,x1@tprel
24139         addis 9,2,x2@tprel@ha
24140         addi 9,9,x2@tprel@l'
24141         tls_first_major=2
24142         tls_first_minor=14
24143         tls_as_opt="-a32 --fatal-warnings"
24144         ;;
24145   s390-*-*)
24146     conftest_s='
24147         .section ".tdata","awT",@progbits
24148 foo:    .long   25
24149         .text
24150         .long   foo@TLSGD
24151         .long   foo@TLSLDM
24152         .long   foo@DTPOFF
24153         .long   foo@NTPOFF
24154         .long   foo@GOTNTPOFF
24155         .long   foo@INDNTPOFF
24156         l       %r1,foo@GOTNTPOFF(%r12)
24157         l       %r1,0(%r1):tls_load:foo
24158         bas     %r14,0(%r1,%r13):tls_gdcall:foo
24159         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
24160         tls_first_major=2
24161         tls_first_minor=14
24162         tls_as_opt="-m31 --fatal-warnings"
24163         ;;
24164   s390x-*-*)
24165     conftest_s='
24166         .section ".tdata","awT",@progbits
24167 foo:    .long   25
24168         .text
24169         .quad   foo@TLSGD
24170         .quad   foo@TLSLDM
24171         .quad   foo@DTPOFF
24172         .quad   foo@NTPOFF
24173         .quad   foo@GOTNTPOFF
24174         lg      %r1,foo@GOTNTPOFF(%r12)
24175         larl    %r1,foo@INDNTPOFF
24176         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
24177         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24178         tls_first_major=2
24179         tls_first_minor=14
24180         tls_as_opt="-m64 -Aesame --fatal-warnings"
24181         ;;
24182   sh-*-* | sh[123456789lbe]*-*-*)
24183     conftest_s='
24184         .section ".tdata","awT",@progbits
24185 foo:    .long   25
24186         .text
24187         .long   foo@TLSGD
24188         .long   foo@TLSLDM
24189         .long   foo@DTPOFF
24190         .long   foo@GOTTPOFF
24191         .long   foo@TPOFF'
24192         tls_first_major=2
24193         tls_first_minor=13
24194         tls_as_opt=--fatal-warnings
24195         ;;
24196   sparc*-*-*)
24197     case "$target" in
24198       sparc*-sun-solaris2.*)
24199         on_solaris=yes
24200         ;;
24201       *)
24202         on_solaris=no
24203         ;;
24204     esac
24205     if test x$on_solaris = xyes && test x$gas_flag = xno; then
24206       conftest_s='
24207         .section ".tdata",#alloc,#write,#tls'
24208         tls_first_major=0
24209         tls_first_minor=0
24210     else
24211       conftest_s='
24212         .section ".tdata","awT",@progbits'
24213         tls_first_major=2
24214         tls_first_minor=14
24215         tls_as_opt="-32 --fatal-warnings"
24216     fi
24217     conftest_s="$conftest_s
24218 foo:    .long   25
24219         .text
24220         sethi   %tgd_hi22(foo), %o0
24221         add     %o0, %tgd_lo10(foo), %o1
24222         add     %l7, %o1, %o0, %tgd_add(foo)
24223         call    __tls_get_addr, %tgd_call(foo)
24224         sethi   %tldm_hi22(foo), %l1
24225         add     %l1, %tldm_lo10(foo), %l2
24226         add     %l7, %l2, %o0, %tldm_add(foo)
24227         call    __tls_get_addr, %tldm_call(foo)
24228         sethi   %tldo_hix22(foo), %l3
24229         xor     %l3, %tldo_lox10(foo), %l4
24230         add     %o0, %l4, %l5, %tldo_add(foo)
24231         sethi   %tie_hi22(foo), %o3
24232         add     %o3, %tie_lo10(foo), %o3
24233         ld      [%l7 + %o3], %o2, %tie_ld(foo)
24234         add     %g7, %o2, %o4, %tie_add(foo)
24235         sethi   %tle_hix22(foo), %l1
24236         xor     %l1, %tle_lox10(foo), %o5
24237         ld      [%g7 + %o5], %o1"
24238         ;;
24239   tilepro*-*-*)
24240       conftest_s='
24241         .section ".tdata","awT",@progbits
24242 foo:    .long   25
24243         .text
24244         addli   r0, zero, tls_gd(foo)
24245         auli    r0, zero, tls_gd_ha16(foo)
24246         addli   r0, r0, tls_gd_lo16(foo)
24247         jal     __tls_get_addr
24248         addli   r0, zero, tls_ie(foo)
24249         auli    r0, r0, tls_ie_ha16(foo)
24250         addli   r0, r0, tls_ie_lo16(foo)'
24251         tls_first_major=2
24252         tls_first_minor=22
24253         tls_as_opt="--fatal-warnings"
24254         ;;
24255   tilegx*-*-*)
24256       conftest_s='
24257         .section ".tdata","awT",@progbits
24258 foo:    .long   25
24259         .text
24260         shl16insli r0, zero, hw0_last_tls_gd(foo)
24261         shl16insli r0, zero, hw1_last_tls_gd(foo)
24262         shl16insli r0, r0,   hw0_tls_gd(foo)
24263         jal        __tls_get_addr
24264         shl16insli r0, zero, hw1_last_tls_ie(foo)
24265         shl16insli r0, r0,   hw0_tls_ie(foo)'
24266         tls_first_major=2
24267         tls_first_minor=22
24268         tls_as_opt="--fatal-warnings"
24269         ;;
24270   xtensa*-*-*)
24271     conftest_s='
24272         .section ".tdata","awT",@progbits
24273 foo:    .long   25
24274         .text
24275         movi    a8, foo@TLSFUNC
24276         movi    a10, foo@TLSARG
24277         callx8.tls a8, foo@TLSCALL'
24278         tls_first_major=2
24279         tls_first_minor=19
24280         ;;
24281 esac
24282 set_have_as_tls=no
24283 if test "x$enable_tls" = xno ; then
24284   : # TLS explicitly disabled.
24285 elif test "x$enable_tls" = xyes ; then
24286   set_have_as_tls=yes # TLS explicitly enabled.
24287 elif test -z "$tls_first_major"; then
24288   : # If we don't have a check, assume no support.
24289 else
24290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24291 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24292 if test "${gcc_cv_as_tls+set}" = set; then :
24293   $as_echo_n "(cached) " >&6
24294 else
24295   gcc_cv_as_tls=no
24296     if test $in_tree_gas = yes; then
24297     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24298   then gcc_cv_as_tls=yes
24299 fi
24300   elif test x$gcc_cv_as != x; then
24301     $as_echo "$conftest_s" > conftest.s
24302     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24303   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24304   (eval $ac_try) 2>&5
24305   ac_status=$?
24306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24307   test $ac_status = 0; }; }
24308     then
24309         gcc_cv_as_tls=yes
24310     else
24311       echo "configure: failed program was" >&5
24312       cat conftest.s >&5
24313     fi
24314     rm -f conftest.o conftest.s
24315   fi
24316 fi
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24318 $as_echo "$gcc_cv_as_tls" >&6; }
24319 if test $gcc_cv_as_tls = yes; then
24320   set_have_as_tls=yes
24321 fi
24322 fi
24323 if test $set_have_as_tls = yes ; then
24324
24325 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24326
24327 fi
24328
24329 # Target-specific assembler checks.
24330
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24332 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24333 gcc_cv_ld_static_dynamic=no
24334 gcc_cv_ld_static_option='-Bstatic'
24335 gcc_cv_ld_dynamic_option='-Bdynamic'
24336 if test $in_tree_ld = yes ; then
24337   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
24338     gcc_cv_ld_static_dynamic=yes
24339   fi
24340 elif test x$gcc_cv_ld != x; then
24341   # Check if linker supports -Bstatic/-Bdynamic option
24342   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24343      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24344       gcc_cv_ld_static_dynamic=yes
24345   else
24346     case "$target" in
24347       # AIX ld uses -b flags
24348       *-*-aix4.[23]* | *-*-aix[5-9]*)
24349         gcc_cv_ld_static_dynamic=yes
24350         gcc_cv_ld_static_option="-bstatic"
24351         gcc_cv_ld_dynamic_option="-bdynamic"
24352         ;;
24353       # HP-UX ld uses -a flags to select between shared and archive.
24354       *-*-hpux*)
24355         if test x"$gnu_ld" = xno; then
24356           gcc_cv_ld_static_dynamic=yes
24357           gcc_cv_ld_static_option="-aarchive_shared"
24358           gcc_cv_ld_dynamic_option="-adefault"
24359         fi
24360         ;;
24361       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24362       *-*-solaris2*)
24363         gcc_cv_ld_static_dynamic=yes
24364         ;;
24365     esac
24366   fi
24367 fi
24368 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24369
24370 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24371
24372
24373 cat >>confdefs.h <<_ACEOF
24374 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24375 _ACEOF
24376
24377
24378 cat >>confdefs.h <<_ACEOF
24379 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24380 _ACEOF
24381
24382 fi
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24384 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24385
24386 if test x"$demangler_in_ld" = xyes; then
24387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24388 $as_echo_n "checking linker --demangle support... " >&6; }
24389   gcc_cv_ld_demangle=no
24390   if test $in_tree_ld = yes; then
24391     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 \
24392       gcc_cv_ld_demangle=yes
24393     fi
24394   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24395     # Check if the GNU linker supports --demangle option
24396     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24397       gcc_cv_ld_demangle=yes
24398     fi
24399   fi
24400   if test x"$gcc_cv_ld_demangle" = xyes; then
24401
24402 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24403
24404   fi
24405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24406 $as_echo "$gcc_cv_ld_demangle" >&6; }
24407 fi
24408
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24410 $as_echo_n "checking linker plugin support... " >&6; }
24411 gcc_cv_lto_plugin=0
24412 if test -f liblto_plugin.la; then
24413   save_ld_ver="$ld_ver"
24414   save_ld_vers_major="$ld_vers_major"
24415   save_ld_vers_minor="$ld_vers_minor"
24416   save_ld_is_gold="$ld_is_gold"
24417
24418   ld_is_gold=no
24419
24420   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24421     ld_ver="GNU ld"
24422     # FIXME: ld_is_gold?
24423     ld_vers_major="$gcc_cv_gld_major_version"
24424     ld_vers_minor="$gcc_cv_gld_minor_version"
24425   else
24426     # Determine plugin linker version.
24427     # FIXME: Partial duplicate from above, generalize.
24428     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24429     if echo "$ld_ver" | grep GNU > /dev/null; then
24430       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24431         ld_is_gold=yes
24432         ld_vers=`echo $ld_ver | sed -n \
24433             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24434       else
24435         ld_vers=`echo $ld_ver | sed -n \
24436             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24437       fi
24438       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24439       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24440     fi
24441   fi
24442
24443   # Determine plugin support.
24444   if echo "$ld_ver" | grep GNU > /dev/null; then
24445     # Require GNU ld or gold 2.21+ for plugin support by default.
24446     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24447       gcc_cv_lto_plugin=2
24448     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24449     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24450       gcc_cv_lto_plugin=1
24451     fi
24452   fi
24453
24454   ld_ver="$save_ld_ver"
24455   ld_vers_major="$save_ld_vers_major"
24456   ld_vers_minor="$save_ld_vers_minor"
24457   ld_is_gold="$save_ld_is_gold"
24458 fi
24459
24460 cat >>confdefs.h <<_ACEOF
24461 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24462 _ACEOF
24463
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24465 $as_echo "$gcc_cv_lto_plugin" >&6; }
24466
24467 # Target OS-specific assembler checks.
24468
24469 case "$target_os" in
24470   darwin*)
24471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24472 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24473 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24474   $as_echo_n "(cached) " >&6
24475 else
24476   gcc_cv_as_mmacosx_version_min=no
24477   if test x$gcc_cv_as != x; then
24478     $as_echo '.text' > conftest.s
24479     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24480   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24481   (eval $ac_try) 2>&5
24482   ac_status=$?
24483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24484   test $ac_status = 0; }; }
24485     then
24486         gcc_cv_as_mmacosx_version_min=yes
24487     else
24488       echo "configure: failed program was" >&5
24489       cat conftest.s >&5
24490     fi
24491     rm -f conftest.o conftest.s
24492   fi
24493 fi
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24495 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24496 if test $gcc_cv_as_mmacosx_version_min = yes; then
24497
24498 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24499
24500 fi
24501     ;;
24502 esac
24503
24504 # Target CPU-specific assembler checks.
24505
24506 case "$target" in
24507   aarch64*-*-*)
24508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24509 $as_echo_n "checking assembler for -mabi option... " >&6; }
24510 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24511   $as_echo_n "(cached) " >&6
24512 else
24513   gcc_cv_as_aarch64_mabi=no
24514   if test x$gcc_cv_as != x; then
24515     $as_echo '.text' > conftest.s
24516     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24517   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24518   (eval $ac_try) 2>&5
24519   ac_status=$?
24520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24521   test $ac_status = 0; }; }
24522     then
24523         gcc_cv_as_aarch64_mabi=yes
24524     else
24525       echo "configure: failed program was" >&5
24526       cat conftest.s >&5
24527     fi
24528     rm -f conftest.o conftest.s
24529   fi
24530 fi
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24532 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24533
24534     if test x$gcc_cv_as_aarch64_mabi = xyes; then
24535
24536 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24537
24538     else
24539       if test x$with_abi = xilp32; then
24540         as_fn_error "Assembler does not support -mabi=ilp32.\
24541                      Upgrade the Assembler." "$LINENO" 5
24542       fi
24543       if test x"$with_multilib_list" = xdefault; then
24544         TM_MULTILIB_CONFIG=lp64
24545       else
24546         aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24547         for aarch64_multilib in ${aarch64_multilibs}; do
24548           case ${aarch64_multilib} in
24549             ilp32)
24550               as_fn_error "Assembler does not support -mabi=ilp32.\
24551                             Upgrade the Assembler." "$LINENO" 5
24552               ;;
24553             *)
24554               ;;
24555           esac
24556         done
24557       fi
24558     fi
24559     # Check if we have binutils support for relocations types needed by -fpic
24560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24561 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24562 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24563   $as_echo_n "(cached) " >&6
24564 else
24565   gcc_cv_as_aarch64_picreloc=no
24566   if test x$gcc_cv_as != x; then
24567     $as_echo '
24568         .text
24569         ldr     x0, [x2, #:gotpage_lo15:globalsym]
24570     ' > conftest.s
24571     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24572   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24573   (eval $ac_try) 2>&5
24574   ac_status=$?
24575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24576   test $ac_status = 0; }; }
24577     then
24578         gcc_cv_as_aarch64_picreloc=yes
24579     else
24580       echo "configure: failed program was" >&5
24581       cat conftest.s >&5
24582     fi
24583     rm -f conftest.o conftest.s
24584   fi
24585 fi
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24587 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24588 if test $gcc_cv_as_aarch64_picreloc = yes; then
24589
24590 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24591
24592 fi
24593     # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24594     # Check whether --enable-fix-cortex-a53-835769 was given.
24595 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24596   enableval=$enable_fix_cortex_a53_835769;
24597         case $enableval in
24598           yes)
24599             tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24600             ;;
24601           no)
24602             ;;
24603           *)
24604             as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24605   Valid choices are 'yes' and 'no'." "$LINENO" 5
24606             ;;
24607
24608         esac
24609
24610 fi
24611
24612     # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24613     # Check whether --enable-fix-cortex-a53-843419 was given.
24614 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24615   enableval=$enable_fix_cortex_a53_843419;
24616         case $enableval in
24617           yes)
24618             tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24619             ;;
24620           no)
24621             ;;
24622           *)
24623             as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24624   Valid choices are 'yes' and 'no'." "$LINENO" 5
24625             ;;
24626
24627         esac
24628
24629 fi
24630
24631     ;;
24632
24633   # All TARGET_ABI_OSF targets.
24634   alpha*-*-linux* | alpha*-*-*bsd*)
24635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24636 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24637 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24638   $as_echo_n "(cached) " >&6
24639 else
24640   gcc_cv_as_alpha_explicit_relocs=no
24641     if test $in_tree_gas = yes; then
24642     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24643   then gcc_cv_as_alpha_explicit_relocs=yes
24644 fi
24645   elif test x$gcc_cv_as != x; then
24646     $as_echo '  .set nomacro
24647         .text
24648         extbl   $3, $2, $3      !lituse_bytoff!1
24649         ldq     $2, a($29)      !literal!1
24650         ldq     $4, b($29)      !literal!2
24651         ldq_u   $3, 0($2)       !lituse_base!1
24652         ldq     $27, f($29)     !literal!5
24653         jsr     $26, ($27), f   !lituse_jsr!5
24654         ldah    $29, 0($26)     !gpdisp!3
24655         lda     $0, c($29)      !gprel
24656         ldah    $1, d($29)      !gprelhigh
24657         lda     $1, d($1)       !gprellow
24658         lda     $29, 0($29)     !gpdisp!3' > conftest.s
24659     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24660   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24661   (eval $ac_try) 2>&5
24662   ac_status=$?
24663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24664   test $ac_status = 0; }; }
24665     then
24666         gcc_cv_as_alpha_explicit_relocs=yes
24667     else
24668       echo "configure: failed program was" >&5
24669       cat conftest.s >&5
24670     fi
24671     rm -f conftest.o conftest.s
24672   fi
24673 fi
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24675 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24676 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24677
24678 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24679
24680 fi
24681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24682 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24683 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24684   $as_echo_n "(cached) " >&6
24685 else
24686   gcc_cv_as_alpha_jsrdirect_relocs=no
24687     if test $in_tree_gas = yes; then
24688     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24689   then gcc_cv_as_alpha_jsrdirect_relocs=yes
24690 fi
24691   elif test x$gcc_cv_as != x; then
24692     $as_echo '  .set nomacro
24693         .text
24694         ldq     $27, a($29)     !literal!1
24695         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
24696     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24697   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24698   (eval $ac_try) 2>&5
24699   ac_status=$?
24700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24701   test $ac_status = 0; }; }
24702     then
24703         gcc_cv_as_alpha_jsrdirect_relocs=yes
24704     else
24705       echo "configure: failed program was" >&5
24706       cat conftest.s >&5
24707     fi
24708     rm -f conftest.o conftest.s
24709   fi
24710 fi
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24712 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24713 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24714
24715 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24716
24717 fi
24718     ;;
24719
24720   avr-*-*)
24721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24722 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24723 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24724   $as_echo_n "(cached) " >&6
24725 else
24726   gcc_cv_as_avr_mlink_relax=no
24727   if test x$gcc_cv_as != x; then
24728     $as_echo '.text' > conftest.s
24729     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24730   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24731   (eval $ac_try) 2>&5
24732   ac_status=$?
24733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24734   test $ac_status = 0; }; }
24735     then
24736         gcc_cv_as_avr_mlink_relax=yes
24737     else
24738       echo "configure: failed program was" >&5
24739       cat conftest.s >&5
24740     fi
24741     rm -f conftest.o conftest.s
24742   fi
24743 fi
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24745 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24746 if test $gcc_cv_as_avr_mlink_relax = yes; then
24747
24748 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24749
24750 fi
24751
24752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24753 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24754 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24755   $as_echo_n "(cached) " >&6
24756 else
24757   gcc_cv_as_avr_mrmw=no
24758   if test x$gcc_cv_as != x; then
24759     $as_echo '.text' > conftest.s
24760     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24761   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24762   (eval $ac_try) 2>&5
24763   ac_status=$?
24764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24765   test $ac_status = 0; }; }
24766     then
24767         gcc_cv_as_avr_mrmw=yes
24768     else
24769       echo "configure: failed program was" >&5
24770       cat conftest.s >&5
24771     fi
24772     rm -f conftest.o conftest.s
24773   fi
24774 fi
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24776 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24777 if test $gcc_cv_as_avr_mrmw = yes; then
24778
24779 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24780
24781 fi
24782     ;;
24783
24784   cris-*-*)
24785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24786 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24787 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24788   $as_echo_n "(cached) " >&6
24789 else
24790   gcc_cv_as_cris_no_mul_bug=no
24791     if test $in_tree_gas = yes; then
24792     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24793   then gcc_cv_as_cris_no_mul_bug=yes
24794 fi
24795   elif test x$gcc_cv_as != x; then
24796     $as_echo '.text' > conftest.s
24797     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24798   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24799   (eval $ac_try) 2>&5
24800   ac_status=$?
24801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24802   test $ac_status = 0; }; }
24803     then
24804         gcc_cv_as_cris_no_mul_bug=yes
24805     else
24806       echo "configure: failed program was" >&5
24807       cat conftest.s >&5
24808     fi
24809     rm -f conftest.o conftest.s
24810   fi
24811 fi
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24813 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24814 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24815
24816 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24817
24818 fi
24819     ;;
24820
24821   sparc*-*-*)
24822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24823 $as_echo_n "checking assembler for .register... " >&6; }
24824 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24825   $as_echo_n "(cached) " >&6
24826 else
24827   gcc_cv_as_sparc_register_op=no
24828   if test x$gcc_cv_as != x; then
24829     $as_echo '.register %g2, #scratch' > conftest.s
24830     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24831   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24832   (eval $ac_try) 2>&5
24833   ac_status=$?
24834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24835   test $ac_status = 0; }; }
24836     then
24837         gcc_cv_as_sparc_register_op=yes
24838     else
24839       echo "configure: failed program was" >&5
24840       cat conftest.s >&5
24841     fi
24842     rm -f conftest.o conftest.s
24843   fi
24844 fi
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24846 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24847 if test $gcc_cv_as_sparc_register_op = yes; then
24848
24849 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24850
24851 fi
24852
24853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24854 $as_echo_n "checking assembler for -relax option... " >&6; }
24855 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24856   $as_echo_n "(cached) " >&6
24857 else
24858   gcc_cv_as_sparc_relax=no
24859   if test x$gcc_cv_as != x; then
24860     $as_echo '.text' > conftest.s
24861     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24862   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24863   (eval $ac_try) 2>&5
24864   ac_status=$?
24865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24866   test $ac_status = 0; }; }
24867     then
24868         gcc_cv_as_sparc_relax=yes
24869     else
24870       echo "configure: failed program was" >&5
24871       cat conftest.s >&5
24872     fi
24873     rm -f conftest.o conftest.s
24874   fi
24875 fi
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24877 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24878 if test $gcc_cv_as_sparc_relax = yes; then
24879
24880 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24881
24882 fi
24883
24884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24885 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24886 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24887   $as_echo_n "(cached) " >&6
24888 else
24889   gcc_cv_as_sparc_gotdata_op=no
24890   if test x$gcc_cv_as != x; then
24891     $as_echo '.text
24892 .align 4
24893 foo:
24894         nop
24895 bar:
24896         sethi %gdop_hix22(foo), %g1
24897         xor    %g1, %gdop_lox10(foo), %g1
24898         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24899     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24900   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24901   (eval $ac_try) 2>&5
24902   ac_status=$?
24903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24904   test $ac_status = 0; }; }
24905     then
24906         if test x$gcc_cv_ld != x \
24907        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24908          if test x$gcc_cv_objdump != x; then
24909            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24910               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24911                gcc_cv_as_sparc_gotdata_op=no
24912            else
24913                gcc_cv_as_sparc_gotdata_op=yes
24914            fi
24915          fi
24916        fi
24917        rm -f conftest
24918     else
24919       echo "configure: failed program was" >&5
24920       cat conftest.s >&5
24921     fi
24922     rm -f conftest.o conftest.s
24923   fi
24924 fi
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24926 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24927 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24928
24929 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24930
24931 fi
24932
24933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24934 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24935 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24936   $as_echo_n "(cached) " >&6
24937 else
24938   gcc_cv_as_sparc_ua_pcrel=no
24939   if test x$gcc_cv_as != x; then
24940     $as_echo '.text
24941 foo:
24942         nop
24943 .data
24944 .align 4
24945 .byte 0
24946 .uaword %r_disp32(foo)' > conftest.s
24947     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24948   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24949   (eval $ac_try) 2>&5
24950   ac_status=$?
24951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24952   test $ac_status = 0; }; }
24953     then
24954         if test x$gcc_cv_ld != x \
24955        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24956          gcc_cv_as_sparc_ua_pcrel=yes
24957        fi
24958        rm -f conftest
24959     else
24960       echo "configure: failed program was" >&5
24961       cat conftest.s >&5
24962     fi
24963     rm -f conftest.o conftest.s
24964   fi
24965 fi
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24967 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24968 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24969
24970 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24971
24972
24973       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24974 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24975 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24976   $as_echo_n "(cached) " >&6
24977 else
24978   gcc_cv_as_sparc_ua_pcrel_hidden=no
24979   if test x$gcc_cv_as != x; then
24980     $as_echo '.data
24981 .align 4
24982 .byte 0x31
24983 .uaword %r_disp32(foo)
24984 .byte 0x32, 0x33, 0x34
24985 .global foo
24986 .hidden foo
24987 foo:
24988 .skip 4' > conftest.s
24989     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24990   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24991   (eval $ac_try) 2>&5
24992   ac_status=$?
24993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24994   test $ac_status = 0; }; }
24995     then
24996         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24997          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24998          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24999             | grep ' 31000000 07323334' > /dev/null 2>&1; then
25000             if $gcc_cv_objdump -R conftest 2> /dev/null \
25001                | grep 'DISP32' > /dev/null 2>&1; then
25002                 :
25003             else
25004                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25005             fi
25006          fi
25007          rm -f conftest
25008     else
25009       echo "configure: failed program was" >&5
25010       cat conftest.s >&5
25011     fi
25012     rm -f conftest.o conftest.s
25013   fi
25014 fi
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25016 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25017 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25018
25019 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25020
25021 fi
25022
25023 fi # unaligned pcrel relocs
25024
25025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25026 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25027 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25028   $as_echo_n "(cached) " >&6
25029 else
25030   gcc_cv_as_sparc_offsetable_lo10=no
25031   if test x$gcc_cv_as != x; then
25032     $as_echo '.text
25033         or %g1, %lo(ab) + 12, %g1
25034         or %g1, %lo(ab + 12), %g1' > conftest.s
25035     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25036   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25037   (eval $ac_try) 2>&5
25038   ac_status=$?
25039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25040   test $ac_status = 0; }; }
25041     then
25042         if test x$gcc_cv_objdump != x \
25043        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25044           | grep ' 82106000 82106000' > /dev/null 2>&1; then
25045          gcc_cv_as_sparc_offsetable_lo10=yes
25046        fi
25047     else
25048       echo "configure: failed program was" >&5
25049       cat conftest.s >&5
25050     fi
25051     rm -f conftest.o conftest.s
25052   fi
25053 fi
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25055 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25056 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25057
25058 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25059
25060 fi
25061
25062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25063 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25064 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25065   $as_echo_n "(cached) " >&6
25066 else
25067   gcc_cv_as_sparc_fmaf=no
25068   if test x$gcc_cv_as != x; then
25069     $as_echo '.text
25070        .register %g2, #scratch
25071        .register %g3, #scratch
25072        .align 4
25073        fmaddd %f0, %f2, %f4, %f6
25074        addxccc %g1, %g2, %g3
25075        fsrl32 %f2, %f4, %f8
25076        fnaddd %f10, %f12, %f14' > conftest.s
25077     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25078   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25079   (eval $ac_try) 2>&5
25080   ac_status=$?
25081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25082   test $ac_status = 0; }; }
25083     then
25084         gcc_cv_as_sparc_fmaf=yes
25085     else
25086       echo "configure: failed program was" >&5
25087       cat conftest.s >&5
25088     fi
25089     rm -f conftest.o conftest.s
25090   fi
25091 fi
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25093 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25094 if test $gcc_cv_as_sparc_fmaf = yes; then
25095
25096 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25097
25098 fi
25099
25100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25101 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25102 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25103   $as_echo_n "(cached) " >&6
25104 else
25105   gcc_cv_as_sparc_sparc4=no
25106   if test x$gcc_cv_as != x; then
25107     $as_echo '.text
25108        .register %g2, #scratch
25109        .register %g3, #scratch
25110        .align 4
25111        cxbe %g2, %g3, 1f
25112 1:     cwbneg %g2, %g3, 1f
25113 1:     sha1
25114        md5
25115        aes_kexpand0 %f4, %f6, %f8
25116        des_round %f38, %f40, %f42, %f44
25117        camellia_f %f54, %f56, %f58, %f60
25118        kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25119     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25120   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25121   (eval $ac_try) 2>&5
25122   ac_status=$?
25123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25124   test $ac_status = 0; }; }
25125     then
25126         gcc_cv_as_sparc_sparc4=yes
25127     else
25128       echo "configure: failed program was" >&5
25129       cat conftest.s >&5
25130     fi
25131     rm -f conftest.o conftest.s
25132   fi
25133 fi
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25135 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25136 if test $gcc_cv_as_sparc_sparc4 = yes; then
25137
25138 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25139
25140 fi
25141
25142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25143 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25144 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25145   $as_echo_n "(cached) " >&6
25146 else
25147   gcc_cv_as_sparc_sparc5=no
25148   if test x$gcc_cv_as != x; then
25149     $as_echo '.text
25150        .register %g2, #scratch
25151        .register %g3, #scratch
25152        .align 4
25153        subxc %g1, %g2, %g3
25154        fpadd8 %f0, %f2, %f4' > conftest.s
25155     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25156   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25157   (eval $ac_try) 2>&5
25158   ac_status=$?
25159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25160   test $ac_status = 0; }; }
25161     then
25162         gcc_cv_as_sparc_sparc5=yes
25163     else
25164       echo "configure: failed program was" >&5
25165       cat conftest.s >&5
25166     fi
25167     rm -f conftest.o conftest.s
25168   fi
25169 fi
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25171 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25172 if test $gcc_cv_as_sparc_sparc5 = yes; then
25173
25174 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25175
25176 fi
25177
25178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25179 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25180 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25181   $as_echo_n "(cached) " >&6
25182 else
25183   gcc_cv_as_sparc_leon=no
25184   if test x$gcc_cv_as != x; then
25185     $as_echo '.text
25186        .register %g2, #scratch
25187        .register %g3, #scratch
25188        .align 4
25189        smac %g2, %g3, %g1
25190        umac %g2, %g3, %g1
25191        casa [%g2] 0xb, %g3, %g1' > conftest.s
25192     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25193   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25194   (eval $ac_try) 2>&5
25195   ac_status=$?
25196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25197   test $ac_status = 0; }; }
25198     then
25199         gcc_cv_as_sparc_leon=yes
25200     else
25201       echo "configure: failed program was" >&5
25202       cat conftest.s >&5
25203     fi
25204     rm -f conftest.o conftest.s
25205   fi
25206 fi
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25208 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25209 if test $gcc_cv_as_sparc_leon = yes; then
25210
25211 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25212
25213 fi
25214     ;;
25215
25216   i[34567]86-*-* | x86_64-*-*)
25217     case $target_os in
25218       cygwin*)
25219         # Full C++ conformance when using a shared libstdc++-v3 requires some
25220         # support from the Cygwin DLL, which in more recent versions exports
25221         # wrappers to aid in interposing and redirecting operators new, delete,
25222         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
25223         # are configuring for a version of Cygwin that exports the wrappers.
25224         if test x$host = x$target && test x$host_cpu = xi686; then
25225           ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25226 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25227   gcc_ac_cygwin_dll_wrappers=yes
25228 else
25229   gcc_ac_cygwin_dll_wrappers=no
25230 fi
25231
25232         else
25233           # Can't check presence of libc functions during cross-compile, so
25234           # we just have to assume we're building for an up-to-date target.
25235           gcc_ac_cygwin_dll_wrappers=yes
25236         fi
25237
25238 cat >>confdefs.h <<_ACEOF
25239 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25240 _ACEOF
25241
25242     esac
25243     case $target_os in
25244       cygwin* | pe | mingw32* | interix*)
25245         # Recent binutils allows the three-operand form of ".comm" on PE.  This
25246         # definition is used unconditionally to initialise the default state of
25247         # the target option variable that governs usage of the feature.
25248         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25249 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25250 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25251   $as_echo_n "(cached) " >&6
25252 else
25253   gcc_cv_as_comm_has_align=no
25254     if test $in_tree_gas = yes; then
25255     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25256   then gcc_cv_as_comm_has_align=yes
25257 fi
25258   elif test x$gcc_cv_as != x; then
25259     $as_echo '.comm foo,1,32' > conftest.s
25260     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25261   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25262   (eval $ac_try) 2>&5
25263   ac_status=$?
25264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25265   test $ac_status = 0; }; }
25266     then
25267         gcc_cv_as_comm_has_align=yes
25268     else
25269       echo "configure: failed program was" >&5
25270       cat conftest.s >&5
25271     fi
25272     rm -f conftest.o conftest.s
25273   fi
25274 fi
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25276 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25277
25278
25279 cat >>confdefs.h <<_ACEOF
25280 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25281 _ACEOF
25282
25283         # Used for DWARF 2 in PE
25284         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25285 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25286 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25287   $as_echo_n "(cached) " >&6
25288 else
25289   gcc_cv_as_ix86_pe_secrel32=no
25290     if test $in_tree_gas = yes; then
25291     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25292   then gcc_cv_as_ix86_pe_secrel32=yes
25293 fi
25294   elif test x$gcc_cv_as != x; then
25295     $as_echo '.text
25296 foo:    nop
25297 .data
25298         .secrel32 foo' > conftest.s
25299     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25300   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25301   (eval $ac_try) 2>&5
25302   ac_status=$?
25303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25304   test $ac_status = 0; }; }
25305     then
25306         if test x$gcc_cv_ld != x \
25307            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25308              gcc_cv_as_ix86_pe_secrel32=yes
25309            fi
25310            rm -f conftest
25311     else
25312       echo "configure: failed program was" >&5
25313       cat conftest.s >&5
25314     fi
25315     rm -f conftest.o conftest.s
25316   fi
25317 fi
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25319 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25320 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25321
25322 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25323
25324 fi
25325         # Test if the assembler supports the extended form of the .section
25326         # directive that specifies section alignment.  LTO support uses this,
25327         # but normally only after installation, so we warn but don't fail the
25328         # configure if LTO is enabled but the assembler does not support it.
25329         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25330 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25331 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25332   $as_echo_n "(cached) " >&6
25333 else
25334   gcc_cv_as_section_has_align=no
25335     if test $in_tree_gas = yes; then
25336     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25337   then gcc_cv_as_section_has_align=yes
25338 fi
25339   elif test x$gcc_cv_as != x; then
25340     $as_echo '.section lto_test,"dr0"' > conftest.s
25341     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25342   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25343   (eval $ac_try) 2>&5
25344   ac_status=$?
25345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25346   test $ac_status = 0; }; }
25347     then
25348         gcc_cv_as_section_has_align=yes
25349     else
25350       echo "configure: failed program was" >&5
25351       cat conftest.s >&5
25352     fi
25353     rm -f conftest.o conftest.s
25354   fi
25355 fi
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25357 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25358
25359         if test x$gcc_cv_as_section_has_align != xyes; then
25360           case ",$enable_languages," in
25361             *,lto,*)
25362               { $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
25363 $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;}
25364               ;;
25365           esac
25366         fi
25367         ;;
25368     esac
25369
25370     # Test if the assembler supports the section flag 'e' for specifying
25371     # an excluded section.
25372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25373 $as_echo_n "checking assembler for .section with e... " >&6; }
25374 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25375   $as_echo_n "(cached) " >&6
25376 else
25377   gcc_cv_as_section_has_e=no
25378     if test $in_tree_gas = yes; then
25379     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25380   then gcc_cv_as_section_has_e=yes
25381 fi
25382   elif test x$gcc_cv_as != x; then
25383     $as_echo '.section foo1,"e"
25384 .byte 0,0,0,0' > conftest.s
25385     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25386   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387   (eval $ac_try) 2>&5
25388   ac_status=$?
25389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390   test $ac_status = 0; }; }
25391     then
25392         gcc_cv_as_section_has_e=yes
25393     else
25394       echo "configure: failed program was" >&5
25395       cat conftest.s >&5
25396     fi
25397     rm -f conftest.o conftest.s
25398   fi
25399 fi
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25401 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25402
25403
25404 cat >>confdefs.h <<_ACEOF
25405 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25406 _ACEOF
25407
25408
25409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25410 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25411 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25412   $as_echo_n "(cached) " >&6
25413 else
25414   gcc_cv_as_ix86_filds=no
25415   if test x$gcc_cv_as != x; then
25416     $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25417     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25418   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25419   (eval $ac_try) 2>&5
25420   ac_status=$?
25421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25422   test $ac_status = 0; }; }
25423     then
25424         gcc_cv_as_ix86_filds=yes
25425     else
25426       echo "configure: failed program was" >&5
25427       cat conftest.s >&5
25428     fi
25429     rm -f conftest.o conftest.s
25430   fi
25431 fi
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25433 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25434 if test $gcc_cv_as_ix86_filds = yes; then
25435
25436 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25437
25438 fi
25439
25440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25441 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25442 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25443   $as_echo_n "(cached) " >&6
25444 else
25445   gcc_cv_as_ix86_fildq=no
25446   if test x$gcc_cv_as != x; then
25447     $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25448     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25449   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25450   (eval $ac_try) 2>&5
25451   ac_status=$?
25452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25453   test $ac_status = 0; }; }
25454     then
25455         gcc_cv_as_ix86_fildq=yes
25456     else
25457       echo "configure: failed program was" >&5
25458       cat conftest.s >&5
25459     fi
25460     rm -f conftest.o conftest.s
25461   fi
25462 fi
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25464 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25465 if test $gcc_cv_as_ix86_fildq = yes; then
25466
25467 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25468
25469 fi
25470
25471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25472 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25473 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25474   $as_echo_n "(cached) " >&6
25475 else
25476   gcc_cv_as_ix86_cmov_sun_syntax=no
25477   if test x$gcc_cv_as != x; then
25478     $as_echo 'cmovl.l %edx, %eax' > conftest.s
25479     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25480   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481   (eval $ac_try) 2>&5
25482   ac_status=$?
25483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484   test $ac_status = 0; }; }
25485     then
25486         gcc_cv_as_ix86_cmov_sun_syntax=yes
25487     else
25488       echo "configure: failed program was" >&5
25489       cat conftest.s >&5
25490     fi
25491     rm -f conftest.o conftest.s
25492   fi
25493 fi
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25495 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25496 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25497
25498 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25499
25500 fi
25501
25502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25503 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25504 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25505   $as_echo_n "(cached) " >&6
25506 else
25507   gcc_cv_as_ix86_ffreep=no
25508   if test x$gcc_cv_as != x; then
25509     $as_echo 'ffreep %st(1)' > conftest.s
25510     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25511   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25512   (eval $ac_try) 2>&5
25513   ac_status=$?
25514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25515   test $ac_status = 0; }; }
25516     then
25517         gcc_cv_as_ix86_ffreep=yes
25518     else
25519       echo "configure: failed program was" >&5
25520       cat conftest.s >&5
25521     fi
25522     rm -f conftest.o conftest.s
25523   fi
25524 fi
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25526 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25527 if test $gcc_cv_as_ix86_ffreep = yes; then
25528
25529 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25530
25531 fi
25532
25533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25534 $as_echo_n "checking assembler for .quad directive... " >&6; }
25535 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25536   $as_echo_n "(cached) " >&6
25537 else
25538   gcc_cv_as_ix86_quad=no
25539   if test x$gcc_cv_as != x; then
25540     $as_echo '.quad 0' > conftest.s
25541     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25542   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25543   (eval $ac_try) 2>&5
25544   ac_status=$?
25545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25546   test $ac_status = 0; }; }
25547     then
25548         gcc_cv_as_ix86_quad=yes
25549     else
25550       echo "configure: failed program was" >&5
25551       cat conftest.s >&5
25552     fi
25553     rm -f conftest.o conftest.s
25554   fi
25555 fi
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25557 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25558 if test $gcc_cv_as_ix86_quad = yes; then
25559
25560 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25561
25562 fi
25563
25564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25565 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25566 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25567   $as_echo_n "(cached) " >&6
25568 else
25569   gcc_cv_as_ix86_sahf=no
25570   if test x$gcc_cv_as != x; then
25571     $as_echo '.code64
25572        sahf' > conftest.s
25573     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25574   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25575   (eval $ac_try) 2>&5
25576   ac_status=$?
25577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25578   test $ac_status = 0; }; }
25579     then
25580         gcc_cv_as_ix86_sahf=yes
25581     else
25582       echo "configure: failed program was" >&5
25583       cat conftest.s >&5
25584     fi
25585     rm -f conftest.o conftest.s
25586   fi
25587 fi
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25589 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25590 if test $gcc_cv_as_ix86_sahf = yes; then
25591
25592 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25593
25594 fi
25595
25596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25597 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25598 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25599   $as_echo_n "(cached) " >&6
25600 else
25601   gcc_cv_as_ix86_interunit_movq=no
25602   if test x$gcc_cv_as != x; then
25603     $as_echo '.code64
25604        movq %mm0, %rax
25605        movq %rax, %xmm0' > conftest.s
25606     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25607   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25608   (eval $ac_try) 2>&5
25609   ac_status=$?
25610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25611   test $ac_status = 0; }; }
25612     then
25613         gcc_cv_as_ix86_interunit_movq=yes
25614     else
25615       echo "configure: failed program was" >&5
25616       cat conftest.s >&5
25617     fi
25618     rm -f conftest.o conftest.s
25619   fi
25620 fi
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25622 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25623
25624
25625 cat >>confdefs.h <<_ACEOF
25626 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25627 _ACEOF
25628
25629
25630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25631 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25632 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25633   $as_echo_n "(cached) " >&6
25634 else
25635   gcc_cv_as_ix86_hle=no
25636   if test x$gcc_cv_as != x; then
25637     $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25638     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25639   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25640   (eval $ac_try) 2>&5
25641   ac_status=$?
25642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25643   test $ac_status = 0; }; }
25644     then
25645         gcc_cv_as_ix86_hle=yes
25646     else
25647       echo "configure: failed program was" >&5
25648       cat conftest.s >&5
25649     fi
25650     rm -f conftest.o conftest.s
25651   fi
25652 fi
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25654 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25655 if test $gcc_cv_as_ix86_hle = yes; then
25656
25657 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25658
25659 fi
25660
25661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25662 $as_echo_n "checking assembler for swap suffix... " >&6; }
25663 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25664   $as_echo_n "(cached) " >&6
25665 else
25666   gcc_cv_as_ix86_swap=no
25667   if test x$gcc_cv_as != x; then
25668     $as_echo 'movl.s %esp, %ebp' > conftest.s
25669     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25670   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25671   (eval $ac_try) 2>&5
25672   ac_status=$?
25673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25674   test $ac_status = 0; }; }
25675     then
25676         gcc_cv_as_ix86_swap=yes
25677     else
25678       echo "configure: failed program was" >&5
25679       cat conftest.s >&5
25680     fi
25681     rm -f conftest.o conftest.s
25682   fi
25683 fi
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25685 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25686 if test $gcc_cv_as_ix86_swap = yes; then
25687
25688 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25689
25690 fi
25691
25692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25693 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25694 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25695   $as_echo_n "(cached) " >&6
25696 else
25697   gcc_cv_as_ix86_diff_sect_delta=no
25698   if test x$gcc_cv_as != x; then
25699     $as_echo '.section .rodata
25700 .L1:
25701         .long .L2-.L1
25702         .long .L3-.L1
25703         .text
25704 .L3:    nop
25705 .L2:    nop' > conftest.s
25706     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25707   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25708   (eval $ac_try) 2>&5
25709   ac_status=$?
25710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25711   test $ac_status = 0; }; }
25712     then
25713         gcc_cv_as_ix86_diff_sect_delta=yes
25714     else
25715       echo "configure: failed program was" >&5
25716       cat conftest.s >&5
25717     fi
25718     rm -f conftest.o conftest.s
25719   fi
25720 fi
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25722 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25723 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25724
25725 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25726
25727 fi
25728
25729     # These two are used unconditionally by i386.[ch]; it is to be defined
25730     # to 1 if the feature is present, 0 otherwise.
25731     as_ix86_gotoff_in_data_opt=
25732     if test x$gas = xyes; then
25733       as_ix86_gotoff_in_data_opt="--32"
25734     fi
25735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25736 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25737 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25738   $as_echo_n "(cached) " >&6
25739 else
25740   gcc_cv_as_ix86_gotoff_in_data=no
25741     if test $in_tree_gas = yes; then
25742     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25743   then gcc_cv_as_ix86_gotoff_in_data=yes
25744 fi
25745   elif test x$gcc_cv_as != x; then
25746     $as_echo '  .text
25747 .L0:
25748         nop
25749         .data
25750         .long .L0@GOTOFF' > conftest.s
25751     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25752   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25753   (eval $ac_try) 2>&5
25754   ac_status=$?
25755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25756   test $ac_status = 0; }; }
25757     then
25758         gcc_cv_as_ix86_gotoff_in_data=yes
25759     else
25760       echo "configure: failed program was" >&5
25761       cat conftest.s >&5
25762     fi
25763     rm -f conftest.o conftest.s
25764   fi
25765 fi
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25767 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25768
25769
25770 cat >>confdefs.h <<_ACEOF
25771 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25772 _ACEOF
25773
25774
25775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25776 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25777 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25778   $as_echo_n "(cached) " >&6
25779 else
25780   gcc_cv_as_ix86_rep_lock_prefix=no
25781   if test x$gcc_cv_as != x; then
25782     $as_echo 'rep movsl
25783          rep ret
25784          rep nop
25785          rep bsf %ecx, %eax
25786          rep bsr %ecx, %eax
25787          lock addl %edi, (%eax,%esi)
25788          lock orl $0, (%esp)' > conftest.s
25789     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25790   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25791   (eval $ac_try) 2>&5
25792   ac_status=$?
25793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25794   test $ac_status = 0; }; }
25795     then
25796         gcc_cv_as_ix86_rep_lock_prefix=yes
25797     else
25798       echo "configure: failed program was" >&5
25799       cat conftest.s >&5
25800     fi
25801     rm -f conftest.o conftest.s
25802   fi
25803 fi
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25805 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25806 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25807
25808 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25809
25810 fi
25811
25812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25813 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25814 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25815   $as_echo_n "(cached) " >&6
25816 else
25817   gcc_cv_as_ix86_ud2=no
25818   if test x$gcc_cv_as != x; then
25819     $as_echo 'ud2' > conftest.s
25820     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25821   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25822   (eval $ac_try) 2>&5
25823   ac_status=$?
25824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25825   test $ac_status = 0; }; }
25826     then
25827         gcc_cv_as_ix86_ud2=yes
25828     else
25829       echo "configure: failed program was" >&5
25830       cat conftest.s >&5
25831     fi
25832     rm -f conftest.o conftest.s
25833   fi
25834 fi
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25836 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25837 if test $gcc_cv_as_ix86_ud2 = yes; then
25838
25839 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25840
25841 fi
25842
25843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25844 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25845 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25846   $as_echo_n "(cached) " >&6
25847 else
25848   gcc_cv_as_ix86_tlsgdplt=no
25849   if test x$gcc_cv_as != x; then
25850     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
25851     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25852   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25853   (eval $ac_try) 2>&5
25854   ac_status=$?
25855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25856   test $ac_status = 0; }; }
25857     then
25858         if test x$gcc_cv_ld != x \
25859          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25860            gcc_cv_as_ix86_tlsgdplt=yes
25861          fi
25862          rm -f conftest
25863     else
25864       echo "configure: failed program was" >&5
25865       cat conftest.s >&5
25866     fi
25867     rm -f conftest.o conftest.s
25868   fi
25869 fi
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25871 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25872 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25873
25874 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25875
25876 fi
25877
25878     conftest_s='
25879         .section .tdata,"aw'$tls_section_flag'",@progbits
25880 tls_ld:
25881         .section .text,"ax",@progbits
25882          call    tls_ld@tlsldmplt'
25883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25884 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25885 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25886   $as_echo_n "(cached) " >&6
25887 else
25888   gcc_cv_as_ix86_tlsldmplt=no
25889   if test x$gcc_cv_as != x; then
25890     $as_echo "$conftest_s" > conftest.s
25891     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25892   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25893   (eval $ac_try) 2>&5
25894   ac_status=$?
25895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25896   test $ac_status = 0; }; }
25897     then
25898         if test x$gcc_cv_ld != x \
25899          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25900            gcc_cv_as_ix86_tlsldmplt=yes
25901          fi
25902          rm -f conftest
25903     else
25904       echo "configure: failed program was" >&5
25905       cat conftest.s >&5
25906     fi
25907     rm -f conftest.o conftest.s
25908   fi
25909 fi
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25911 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25912
25913
25914 cat >>confdefs.h <<_ACEOF
25915 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25916 _ACEOF
25917
25918
25919     # Enforce 32-bit output with gas and gld.
25920     if test x$gas = xyes; then
25921       as_ix86_tls_ldm_opt="--32"
25922     fi
25923     if echo "$ld_ver" | grep GNU > /dev/null; then
25924       if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25925         ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25926       else
25927         ld_ix86_tls_ldm_opt="-melf_i386"
25928       fi
25929     fi
25930     conftest_s='
25931         .section .text,"ax",@progbits
25932         .globl  _start
25933         .type   _start, @function
25934 _start:
25935         leal    value@tlsldm(%ebx), %eax
25936         call    ___tls_get_addr@plt
25937
25938         .section .tdata,"aw'$tls_section_flag'",@progbits
25939         .type   value, @object
25940 value:'
25941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25942 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25943 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25944   $as_echo_n "(cached) " >&6
25945 else
25946   gcc_cv_as_ix86_tlsldm=no
25947   if test x$gcc_cv_as != x; then
25948     $as_echo "$conftest_s" > conftest.s
25949     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25950   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25951   (eval $ac_try) 2>&5
25952   ac_status=$?
25953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25954   test $ac_status = 0; }; }
25955     then
25956         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25957             && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25958            if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25959               || dis conftest 2>/dev/null | grep nop > /dev/null; then
25960              gcc_cv_as_ix86_tlsldm=yes
25961            fi
25962          fi
25963          rm -f conftest
25964     else
25965       echo "configure: failed program was" >&5
25966       cat conftest.s >&5
25967     fi
25968     rm -f conftest.o conftest.s
25969   fi
25970 fi
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25972 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25973
25974
25975 cat >>confdefs.h <<_ACEOF
25976 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25977 _ACEOF
25978
25979
25980     ;;
25981
25982   ia64*-*-*)
25983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25984 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25985 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25986   $as_echo_n "(cached) " >&6
25987 else
25988   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25989     if test $in_tree_gas = yes; then
25990     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25991   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25992 fi
25993   elif test x$gcc_cv_as != x; then
25994     $as_echo '  .text
25995         addl r15 = @ltoffx(x#), gp
25996         ;;
25997         ld8.mov r16 = [r15], x#' > conftest.s
25998     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25999   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000   (eval $ac_try) 2>&5
26001   ac_status=$?
26002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003   test $ac_status = 0; }; }
26004     then
26005         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26006     else
26007       echo "configure: failed program was" >&5
26008       cat conftest.s >&5
26009     fi
26010     rm -f conftest.o conftest.s
26011   fi
26012 fi
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26014 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26015 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26016
26017 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26018
26019 fi
26020
26021     ;;
26022
26023   powerpc*-*-*)
26024
26025     case $target in
26026       *-*-darwin*)
26027         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26028 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26029 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26030   $as_echo_n "(cached) " >&6
26031 else
26032   gcc_cv_as_machine_directive=no
26033   if test x$gcc_cv_as != x; then
26034     $as_echo '  .machine ppc7400' > conftest.s
26035     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26036   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26037   (eval $ac_try) 2>&5
26038   ac_status=$?
26039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26040   test $ac_status = 0; }; }
26041     then
26042         gcc_cv_as_machine_directive=yes
26043     else
26044       echo "configure: failed program was" >&5
26045       cat conftest.s >&5
26046     fi
26047     rm -f conftest.o conftest.s
26048   fi
26049 fi
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26051 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26052
26053         if test x$gcc_cv_as_machine_directive != xyes; then
26054           echo "*** This target requires an assembler supporting \".machine\"" >&2
26055           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26056           test x$build = x$target && exit 1
26057         fi
26058         ;;
26059     esac
26060
26061     case $target in
26062       *-*-aix*) conftest_s='    .machine "pwr5"
26063         .csect .text[PR]
26064         mfcr 3,128';;
26065       *-*-darwin*) conftest_s=' .text
26066         mfcr r3,128';;
26067       *) conftest_s='   .machine power4
26068         .text
26069         mfcr 3,128';;
26070     esac
26071
26072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26073 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26074 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26075   $as_echo_n "(cached) " >&6
26076 else
26077   gcc_cv_as_powerpc_mfcrf=no
26078     if test $in_tree_gas = yes; then
26079     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26080   then gcc_cv_as_powerpc_mfcrf=yes
26081 fi
26082   elif test x$gcc_cv_as != x; then
26083     $as_echo "$conftest_s" > conftest.s
26084     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26085   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086   (eval $ac_try) 2>&5
26087   ac_status=$?
26088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089   test $ac_status = 0; }; }
26090     then
26091         gcc_cv_as_powerpc_mfcrf=yes
26092     else
26093       echo "configure: failed program was" >&5
26094       cat conftest.s >&5
26095     fi
26096     rm -f conftest.o conftest.s
26097   fi
26098 fi
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26100 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26101 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26102
26103 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26104
26105 fi
26106
26107     case $target in
26108       *-*-aix*) conftest_s='    .machine "pwr5"
26109         .csect .text[PR]
26110         popcntb 3,3';;
26111       *) conftest_s='   .machine power5
26112         .text
26113         popcntb 3,3';;
26114     esac
26115
26116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26117 $as_echo_n "checking assembler for popcntb support... " >&6; }
26118 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26119   $as_echo_n "(cached) " >&6
26120 else
26121   gcc_cv_as_powerpc_popcntb=no
26122     if test $in_tree_gas = yes; then
26123     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26124   then gcc_cv_as_powerpc_popcntb=yes
26125 fi
26126   elif test x$gcc_cv_as != x; then
26127     $as_echo "$conftest_s" > conftest.s
26128     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26129   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26130   (eval $ac_try) 2>&5
26131   ac_status=$?
26132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26133   test $ac_status = 0; }; }
26134     then
26135         gcc_cv_as_powerpc_popcntb=yes
26136     else
26137       echo "configure: failed program was" >&5
26138       cat conftest.s >&5
26139     fi
26140     rm -f conftest.o conftest.s
26141   fi
26142 fi
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26144 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26145 if test $gcc_cv_as_powerpc_popcntb = yes; then
26146
26147 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26148
26149 fi
26150
26151     case $target in
26152       *-*-aix*) conftest_s='    .machine "pwr5x"
26153         .csect .text[PR]
26154         frin 1,1';;
26155       *) conftest_s='   .machine power5
26156         .text
26157         frin 1,1';;
26158     esac
26159
26160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26161 $as_echo_n "checking assembler for fp round support... " >&6; }
26162 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26163   $as_echo_n "(cached) " >&6
26164 else
26165   gcc_cv_as_powerpc_fprnd=no
26166     if test $in_tree_gas = yes; then
26167     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26168   then gcc_cv_as_powerpc_fprnd=yes
26169 fi
26170   elif test x$gcc_cv_as != x; then
26171     $as_echo "$conftest_s" > conftest.s
26172     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26173   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26174   (eval $ac_try) 2>&5
26175   ac_status=$?
26176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26177   test $ac_status = 0; }; }
26178     then
26179         gcc_cv_as_powerpc_fprnd=yes
26180     else
26181       echo "configure: failed program was" >&5
26182       cat conftest.s >&5
26183     fi
26184     rm -f conftest.o conftest.s
26185   fi
26186 fi
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26188 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26189 if test $gcc_cv_as_powerpc_fprnd = yes; then
26190
26191 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26192
26193 fi
26194
26195     case $target in
26196       *-*-aix*) conftest_s='    .machine "pwr6"
26197         .csect .text[PR]
26198         mffgpr 1,3';;
26199       *) conftest_s='   .machine power6
26200         .text
26201         mffgpr 1,3';;
26202     esac
26203
26204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26205 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26206 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26207   $as_echo_n "(cached) " >&6
26208 else
26209   gcc_cv_as_powerpc_mfpgpr=no
26210     if test $in_tree_gas = yes; then
26211     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26212   then gcc_cv_as_powerpc_mfpgpr=yes
26213 fi
26214   elif test x$gcc_cv_as != x; then
26215     $as_echo "$conftest_s" > conftest.s
26216     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26217   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26218   (eval $ac_try) 2>&5
26219   ac_status=$?
26220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26221   test $ac_status = 0; }; }
26222     then
26223         gcc_cv_as_powerpc_mfpgpr=yes
26224     else
26225       echo "configure: failed program was" >&5
26226       cat conftest.s >&5
26227     fi
26228     rm -f conftest.o conftest.s
26229   fi
26230 fi
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26232 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26233 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26234
26235 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26236
26237 fi
26238
26239     case $target in
26240       *-*-aix*) conftest_s='    .csect .text[PR]
26241 LCF..0:
26242         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26243       *-*-darwin*)
26244         conftest_s='    .text
26245 LCF0:
26246         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26247       *) conftest_s='   .text
26248 .LCF0:
26249         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26250     esac
26251
26252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26253 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26254 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26255   $as_echo_n "(cached) " >&6
26256 else
26257   gcc_cv_as_powerpc_rel16=no
26258     if test $in_tree_gas = yes; then
26259     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26260   then gcc_cv_as_powerpc_rel16=yes
26261 fi
26262   elif test x$gcc_cv_as != x; then
26263     $as_echo "$conftest_s" > conftest.s
26264     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26265   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26266   (eval $ac_try) 2>&5
26267   ac_status=$?
26268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26269   test $ac_status = 0; }; }
26270     then
26271         gcc_cv_as_powerpc_rel16=yes
26272     else
26273       echo "configure: failed program was" >&5
26274       cat conftest.s >&5
26275     fi
26276     rm -f conftest.o conftest.s
26277   fi
26278 fi
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26280 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26281 if test $gcc_cv_as_powerpc_rel16 = yes; then
26282
26283 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26284
26285 fi
26286
26287     case $target in
26288       *-*-aix*) conftest_s='    .machine "pwr6"
26289         .csect .text[PR]
26290         cmpb 3,4,5';;
26291       *) conftest_s='   .machine power6
26292         .text
26293         cmpb 3,4,5';;
26294     esac
26295
26296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26297 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26298 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26299   $as_echo_n "(cached) " >&6
26300 else
26301   gcc_cv_as_powerpc_cmpb=no
26302     if test $in_tree_gas = yes; then
26303     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26304   then gcc_cv_as_powerpc_cmpb=yes
26305 fi
26306   elif test x$gcc_cv_as != x; then
26307     $as_echo "$conftest_s" > conftest.s
26308     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26309   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26310   (eval $ac_try) 2>&5
26311   ac_status=$?
26312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26313   test $ac_status = 0; }; }
26314     then
26315         gcc_cv_as_powerpc_cmpb=yes
26316     else
26317       echo "configure: failed program was" >&5
26318       cat conftest.s >&5
26319     fi
26320     rm -f conftest.o conftest.s
26321   fi
26322 fi
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26324 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26325 if test $gcc_cv_as_powerpc_cmpb = yes; then
26326
26327 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26328
26329 fi
26330
26331     case $target in
26332       *-*-aix*) conftest_s='    .machine "pwr6"
26333         .csect .text[PR]
26334         dadd 1,2,3';;
26335       *) conftest_s='   .machine power6
26336         .text
26337         dadd 1,2,3';;
26338     esac
26339
26340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26341 $as_echo_n "checking assembler for decimal float support... " >&6; }
26342 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26343   $as_echo_n "(cached) " >&6
26344 else
26345   gcc_cv_as_powerpc_dfp=no
26346     if test $in_tree_gas = yes; then
26347     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26348   then gcc_cv_as_powerpc_dfp=yes
26349 fi
26350   elif test x$gcc_cv_as != x; then
26351     $as_echo "$conftest_s" > conftest.s
26352     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26353   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26354   (eval $ac_try) 2>&5
26355   ac_status=$?
26356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26357   test $ac_status = 0; }; }
26358     then
26359         gcc_cv_as_powerpc_dfp=yes
26360     else
26361       echo "configure: failed program was" >&5
26362       cat conftest.s >&5
26363     fi
26364     rm -f conftest.o conftest.s
26365   fi
26366 fi
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26368 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26369 if test $gcc_cv_as_powerpc_dfp = yes; then
26370
26371 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26372
26373 fi
26374
26375     case $target in
26376       *-*-aix*) conftest_s='    .machine "pwr7"
26377         .csect .text[PR]
26378         lxvd2x 1,2,3';;
26379       *) conftest_s='   .machine power7
26380         .text
26381         lxvd2x 1,2,3';;
26382     esac
26383
26384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26385 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26386 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26387   $as_echo_n "(cached) " >&6
26388 else
26389   gcc_cv_as_powerpc_vsx=no
26390     if test $in_tree_gas = yes; then
26391     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26392   then gcc_cv_as_powerpc_vsx=yes
26393 fi
26394   elif test x$gcc_cv_as != x; then
26395     $as_echo "$conftest_s" > conftest.s
26396     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26397   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26398   (eval $ac_try) 2>&5
26399   ac_status=$?
26400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26401   test $ac_status = 0; }; }
26402     then
26403         gcc_cv_as_powerpc_vsx=yes
26404     else
26405       echo "configure: failed program was" >&5
26406       cat conftest.s >&5
26407     fi
26408     rm -f conftest.o conftest.s
26409   fi
26410 fi
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26412 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26413 if test $gcc_cv_as_powerpc_vsx = yes; then
26414
26415 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26416
26417 fi
26418
26419     case $target in
26420       *-*-aix*) conftest_s='    .machine "pwr7"
26421         .csect .text[PR]
26422         popcntd 3,3';;
26423       *) conftest_s='   .machine power7
26424         .text
26425         popcntd 3,3';;
26426     esac
26427
26428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26429 $as_echo_n "checking assembler for popcntd support... " >&6; }
26430 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26431   $as_echo_n "(cached) " >&6
26432 else
26433   gcc_cv_as_powerpc_popcntd=no
26434     if test $in_tree_gas = yes; then
26435     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26436   then gcc_cv_as_powerpc_popcntd=yes
26437 fi
26438   elif test x$gcc_cv_as != x; then
26439     $as_echo "$conftest_s" > conftest.s
26440     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26441   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26442   (eval $ac_try) 2>&5
26443   ac_status=$?
26444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26445   test $ac_status = 0; }; }
26446     then
26447         gcc_cv_as_powerpc_popcntd=yes
26448     else
26449       echo "configure: failed program was" >&5
26450       cat conftest.s >&5
26451     fi
26452     rm -f conftest.o conftest.s
26453   fi
26454 fi
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26456 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26457 if test $gcc_cv_as_powerpc_popcntd = yes; then
26458
26459 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26460
26461 fi
26462
26463     case $target in
26464       *-*-aix*) conftest_s='    .machine "pwr8"
26465         .csect .text[PR]';;
26466       *) conftest_s='   .machine power8
26467         .text';;
26468     esac
26469
26470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26471 $as_echo_n "checking assembler for power8 support... " >&6; }
26472 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26473   $as_echo_n "(cached) " >&6
26474 else
26475   gcc_cv_as_powerpc_power8=no
26476     if test $in_tree_gas = yes; then
26477     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26478   then gcc_cv_as_powerpc_power8=yes
26479 fi
26480   elif test x$gcc_cv_as != x; then
26481     $as_echo "$conftest_s" > conftest.s
26482     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26483   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26484   (eval $ac_try) 2>&5
26485   ac_status=$?
26486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26487   test $ac_status = 0; }; }
26488     then
26489         gcc_cv_as_powerpc_power8=yes
26490     else
26491       echo "configure: failed program was" >&5
26492       cat conftest.s >&5
26493     fi
26494     rm -f conftest.o conftest.s
26495   fi
26496 fi
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26498 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26499 if test $gcc_cv_as_powerpc_power8 = yes; then
26500
26501 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26502
26503 fi
26504
26505     case $target in
26506       *-*-aix*) conftest_s='    .machine "pwr9"
26507         .csect .text[PR]';;
26508       *) conftest_s='   .machine power9
26509         .text';;
26510     esac
26511
26512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26513 $as_echo_n "checking assembler for power9 support... " >&6; }
26514 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26515   $as_echo_n "(cached) " >&6
26516 else
26517   gcc_cv_as_powerpc_power9=no
26518     if test $in_tree_gas = yes; then
26519     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26520   then gcc_cv_as_powerpc_power9=yes
26521 fi
26522   elif test x$gcc_cv_as != x; then
26523     $as_echo "$conftest_s" > conftest.s
26524     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26525   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26526   (eval $ac_try) 2>&5
26527   ac_status=$?
26528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26529   test $ac_status = 0; }; }
26530     then
26531         gcc_cv_as_powerpc_power9=yes
26532     else
26533       echo "configure: failed program was" >&5
26534       cat conftest.s >&5
26535     fi
26536     rm -f conftest.o conftest.s
26537   fi
26538 fi
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26540 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26541 if test $gcc_cv_as_powerpc_power9 = yes; then
26542
26543 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26544
26545 fi
26546
26547     case $target in
26548       *-*-aix*) conftest_s='    .csect .text[PR]
26549         lwsync';;
26550       *) conftest_s='   .text
26551         lwsync';;
26552     esac
26553
26554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26555 $as_echo_n "checking assembler for lwsync support... " >&6; }
26556 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26557   $as_echo_n "(cached) " >&6
26558 else
26559   gcc_cv_as_powerpc_lwsync=no
26560     if test $in_tree_gas = yes; then
26561     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26562   then gcc_cv_as_powerpc_lwsync=yes
26563 fi
26564   elif test x$gcc_cv_as != x; then
26565     $as_echo "$conftest_s" > conftest.s
26566     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26567   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26568   (eval $ac_try) 2>&5
26569   ac_status=$?
26570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26571   test $ac_status = 0; }; }
26572     then
26573         gcc_cv_as_powerpc_lwsync=yes
26574     else
26575       echo "configure: failed program was" >&5
26576       cat conftest.s >&5
26577     fi
26578     rm -f conftest.o conftest.s
26579   fi
26580 fi
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26582 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26583 if test $gcc_cv_as_powerpc_lwsync = yes; then
26584
26585 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26586
26587 fi
26588
26589     case $target in
26590       *-*-aix*) conftest_s='    .machine "476"
26591         .csect .text[PR]
26592         dci 0';;
26593       *) conftest_s='   .machine "476"
26594         .text
26595         dci 0';;
26596     esac
26597
26598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26599 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26600 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26601   $as_echo_n "(cached) " >&6
26602 else
26603   gcc_cv_as_powerpc_dci=no
26604     if test $in_tree_gas = yes; then
26605     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26606   then gcc_cv_as_powerpc_dci=yes
26607 fi
26608   elif test x$gcc_cv_as != x; then
26609     $as_echo "$conftest_s" > conftest.s
26610     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26611   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26612   (eval $ac_try) 2>&5
26613   ac_status=$?
26614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26615   test $ac_status = 0; }; }
26616     then
26617         gcc_cv_as_powerpc_dci=yes
26618     else
26619       echo "configure: failed program was" >&5
26620       cat conftest.s >&5
26621     fi
26622     rm -f conftest.o conftest.s
26623   fi
26624 fi
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26626 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26627 if test $gcc_cv_as_powerpc_dci = yes; then
26628
26629 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26630
26631 fi
26632
26633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26634 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26635 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26636   $as_echo_n "(cached) " >&6
26637 else
26638   gcc_cv_as_powerpc_gnu_attribute=no
26639     if test $in_tree_gas = yes; then
26640     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26641   then gcc_cv_as_powerpc_gnu_attribute=yes
26642 fi
26643   elif test x$gcc_cv_as != x; then
26644     $as_echo '.gnu_attribute 4,1' > conftest.s
26645     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26646   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26647   (eval $ac_try) 2>&5
26648   ac_status=$?
26649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26650   test $ac_status = 0; }; }
26651     then
26652         gcc_cv_as_powerpc_gnu_attribute=yes
26653     else
26654       echo "configure: failed program was" >&5
26655       cat conftest.s >&5
26656     fi
26657     rm -f conftest.o conftest.s
26658   fi
26659 fi
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26661 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26662 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26663
26664 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26665
26666 fi
26667
26668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26669 $as_echo_n "checking assembler for tls marker support... " >&6; }
26670 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26671   $as_echo_n "(cached) " >&6
26672 else
26673   gcc_cv_as_powerpc_tls_markers=no
26674     if test $in_tree_gas = yes; then
26675     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26676   then gcc_cv_as_powerpc_tls_markers=yes
26677 fi
26678   elif test x$gcc_cv_as != x; then
26679     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26680     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26681   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26682   (eval $ac_try) 2>&5
26683   ac_status=$?
26684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26685   test $ac_status = 0; }; }
26686     then
26687         gcc_cv_as_powerpc_tls_markers=yes
26688     else
26689       echo "configure: failed program was" >&5
26690       cat conftest.s >&5
26691     fi
26692     rm -f conftest.o conftest.s
26693   fi
26694 fi
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26696 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26697 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26698
26699 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26700
26701 fi
26702
26703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26704 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26705 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26706   $as_echo_n "(cached) " >&6
26707 else
26708   gcc_cv_as_powerpc_entry_markers=no
26709     if test $in_tree_gas = yes; then
26710     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26711   then gcc_cv_as_powerpc_entry_markers=yes
26712 fi
26713   elif test x$gcc_cv_as != x; then
26714     $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26715     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26716   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26717   (eval $ac_try) 2>&5
26718   ac_status=$?
26719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26720   test $ac_status = 0; }; }
26721     then
26722         gcc_cv_as_powerpc_entry_markers=yes
26723     else
26724       echo "configure: failed program was" >&5
26725       cat conftest.s >&5
26726     fi
26727     rm -f conftest.o conftest.s
26728   fi
26729 fi
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26731 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26732 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26733
26734 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26735
26736 fi
26737
26738     case $target in
26739       *-*-aix*)
26740         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26741 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26742 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26743   $as_echo_n "(cached) " >&6
26744 else
26745   gcc_cv_as_aix_ref=no
26746     if test $in_tree_gas = yes; then
26747     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26748   then gcc_cv_as_aix_ref=yes
26749 fi
26750   elif test x$gcc_cv_as != x; then
26751     $as_echo '  .csect stuff[rw]
26752              stuff:
26753                 .long 1
26754                 .extern sym
26755                 .ref sym
26756           ' > conftest.s
26757     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26758   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26759   (eval $ac_try) 2>&5
26760   ac_status=$?
26761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26762   test $ac_status = 0; }; }
26763     then
26764         gcc_cv_as_aix_ref=yes
26765     else
26766       echo "configure: failed program was" >&5
26767       cat conftest.s >&5
26768     fi
26769     rm -f conftest.o conftest.s
26770   fi
26771 fi
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26773 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26774 if test $gcc_cv_as_aix_ref = yes; then
26775
26776 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26777
26778 fi
26779
26780         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26781 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26782 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26783   $as_echo_n "(cached) " >&6
26784 else
26785   gcc_cv_as_aix_dwloc=no
26786     if test $in_tree_gas = yes; then
26787     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26788   then gcc_cv_as_aix_dwloc=yes
26789 fi
26790   elif test x$gcc_cv_as != x; then
26791     $as_echo '  .dwsect 0xA0000
26792         Lframe..0:
26793                 .vbyte 4,Lframe..0
26794           ' > conftest.s
26795     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26796   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26797   (eval $ac_try) 2>&5
26798   ac_status=$?
26799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26800   test $ac_status = 0; }; }
26801     then
26802         gcc_cv_as_aix_dwloc=yes
26803     else
26804       echo "configure: failed program was" >&5
26805       cat conftest.s >&5
26806     fi
26807     rm -f conftest.o conftest.s
26808   fi
26809 fi
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26811 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26812 if test $gcc_cv_as_aix_dwloc = yes; then
26813
26814 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26815
26816 fi
26817         ;;
26818     esac
26819     ;;
26820
26821   mips*-*-*)
26822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26823 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26824 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26825   $as_echo_n "(cached) " >&6
26826 else
26827   gcc_cv_as_mips_explicit_relocs=no
26828     if test $in_tree_gas = yes; then
26829     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26830   then gcc_cv_as_mips_explicit_relocs=yes
26831 fi
26832   elif test x$gcc_cv_as != x; then
26833     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
26834     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26835   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26836   (eval $ac_try) 2>&5
26837   ac_status=$?
26838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26839   test $ac_status = 0; }; }
26840     then
26841         gcc_cv_as_mips_explicit_relocs=yes
26842     else
26843       echo "configure: failed program was" >&5
26844       cat conftest.s >&5
26845     fi
26846     rm -f conftest.o conftest.s
26847   fi
26848 fi
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26850 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26851 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26852   if test x$target_cpu_default = x
26853        then target_cpu_default=MASK_EXPLICIT_RELOCS
26854        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26855        fi
26856 fi
26857
26858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26859 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26860 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26861   $as_echo_n "(cached) " >&6
26862 else
26863   gcc_cv_as_mips_no_shared=no
26864     if test $in_tree_gas = yes; then
26865     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26866   then gcc_cv_as_mips_no_shared=yes
26867 fi
26868   elif test x$gcc_cv_as != x; then
26869     $as_echo 'nop' > conftest.s
26870     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26871   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26872   (eval $ac_try) 2>&5
26873   ac_status=$?
26874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26875   test $ac_status = 0; }; }
26876     then
26877         gcc_cv_as_mips_no_shared=yes
26878     else
26879       echo "configure: failed program was" >&5
26880       cat conftest.s >&5
26881     fi
26882     rm -f conftest.o conftest.s
26883   fi
26884 fi
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26886 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26887 if test $gcc_cv_as_mips_no_shared = yes; then
26888
26889 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26890
26891 fi
26892
26893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26894 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26895 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26896   $as_echo_n "(cached) " >&6
26897 else
26898   gcc_cv_as_mips_gnu_attribute=no
26899     if test $in_tree_gas = yes; then
26900     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26901   then gcc_cv_as_mips_gnu_attribute=yes
26902 fi
26903   elif test x$gcc_cv_as != x; then
26904     $as_echo '.gnu_attribute 4,1' > conftest.s
26905     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26906   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26907   (eval $ac_try) 2>&5
26908   ac_status=$?
26909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26910   test $ac_status = 0; }; }
26911     then
26912         gcc_cv_as_mips_gnu_attribute=yes
26913     else
26914       echo "configure: failed program was" >&5
26915       cat conftest.s >&5
26916     fi
26917     rm -f conftest.o conftest.s
26918   fi
26919 fi
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26921 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26922 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26923
26924 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26925
26926 fi
26927
26928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26929 $as_echo_n "checking assembler for .module support... " >&6; }
26930 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26931   $as_echo_n "(cached) " >&6
26932 else
26933   gcc_cv_as_mips_dot_module=no
26934   if test x$gcc_cv_as != x; then
26935     $as_echo '.module mips2
26936        .module fp=xx' > conftest.s
26937     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26938   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26939   (eval $ac_try) 2>&5
26940   ac_status=$?
26941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26942   test $ac_status = 0; }; }
26943     then
26944         gcc_cv_as_mips_dot_module=yes
26945     else
26946       echo "configure: failed program was" >&5
26947       cat conftest.s >&5
26948     fi
26949     rm -f conftest.o conftest.s
26950   fi
26951 fi
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26953 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26954 if test $gcc_cv_as_mips_dot_module = yes; then
26955
26956 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26957
26958 fi
26959     if test x$gcc_cv_as_mips_dot_module = xno \
26960        && test x$with_fp_32 != x; then
26961       as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26962     fi
26963
26964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26965 $as_echo_n "checking assembler for .micromips support... " >&6; }
26966 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26967   $as_echo_n "(cached) " >&6
26968 else
26969   gcc_cv_as_micromips_support=no
26970   if test x$gcc_cv_as != x; then
26971     $as_echo '.set micromips' > conftest.s
26972     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26973   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26974   (eval $ac_try) 2>&5
26975   ac_status=$?
26976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26977   test $ac_status = 0; }; }
26978     then
26979         gcc_cv_as_micromips_support=yes
26980     else
26981       echo "configure: failed program was" >&5
26982       cat conftest.s >&5
26983     fi
26984     rm -f conftest.o conftest.s
26985   fi
26986 fi
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26988 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26989 if test $gcc_cv_as_micromips_support = yes; then
26990
26991 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26992
26993 fi
26994
26995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26996 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26997 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26998   $as_echo_n "(cached) " >&6
26999 else
27000   gcc_cv_as_mips_dtprelword=no
27001     if test $in_tree_gas = yes; then
27002     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27003   then gcc_cv_as_mips_dtprelword=yes
27004 fi
27005   elif test x$gcc_cv_as != x; then
27006     $as_echo '.section .tdata,"awT",@progbits
27007 x:
27008         .word 2
27009         .text
27010         .dtprelword x+0x8000' > conftest.s
27011     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27012   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27013   (eval $ac_try) 2>&5
27014   ac_status=$?
27015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27016   test $ac_status = 0; }; }
27017     then
27018         gcc_cv_as_mips_dtprelword=yes
27019     else
27020       echo "configure: failed program was" >&5
27021       cat conftest.s >&5
27022     fi
27023     rm -f conftest.o conftest.s
27024   fi
27025 fi
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27027 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27028 if test $gcc_cv_as_mips_dtprelword = yes; then
27029
27030 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27031
27032 fi
27033
27034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27035 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27036 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27037   $as_echo_n "(cached) " >&6
27038 else
27039   gcc_cv_as_mips_dspr1_mult=no
27040   if test x$gcc_cv_as != x; then
27041     $as_echo '  .set    mips32r2
27042         .set    nodspr2
27043         .set    dsp
27044         madd    $ac3,$4,$5
27045         maddu   $ac3,$4,$5
27046         msub    $ac3,$4,$5
27047         msubu   $ac3,$4,$5
27048         mult    $ac3,$4,$5
27049         multu   $ac3,$4,$5' > conftest.s
27050     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27051   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27052   (eval $ac_try) 2>&5
27053   ac_status=$?
27054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27055   test $ac_status = 0; }; }
27056     then
27057         gcc_cv_as_mips_dspr1_mult=yes
27058     else
27059       echo "configure: failed program was" >&5
27060       cat conftest.s >&5
27061     fi
27062     rm -f conftest.o conftest.s
27063   fi
27064 fi
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27066 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27067 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27068
27069 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27070
27071 fi
27072
27073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27074 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27075     gcc_cv_as_ld_jalr_reloc=no
27076     if test $gcc_cv_as_mips_explicit_relocs = yes; then
27077       if test $in_tree_ld = yes ; then
27078         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 \
27079            && test $in_tree_ld_is_elf = yes; then
27080           gcc_cv_as_ld_jalr_reloc=yes
27081         fi
27082       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27083         echo '  .ent x' > conftest.s
27084         echo 'x:        lw $2,%got_disp(y)($3)' >> conftest.s
27085         echo '  lw $25,%call16(y)($28)' >> conftest.s
27086         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
27087         echo '1:        jalr $25' >> conftest.s
27088         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
27089         echo '1:        jalr $25' >> conftest.s
27090         echo '  .end x' >> conftest.s
27091         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27092            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27093           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27094              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27095             gcc_cv_as_ld_jalr_reloc=yes
27096           fi
27097         fi
27098         rm -f conftest.*
27099       fi
27100     fi
27101     if test $gcc_cv_as_ld_jalr_reloc = yes; then
27102       if test x$target_cpu_default = x; then
27103         target_cpu_default=MASK_RELAX_PIC_CALLS
27104       else
27105         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27106       fi
27107     fi
27108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27109 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27110
27111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27112 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27113 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27114   $as_echo_n "(cached) " >&6
27115 else
27116   gcc_cv_ld_mips_personality_relaxation=no
27117        if test $in_tree_ld = yes ; then
27118          if test "$gcc_cv_gld_major_version" -eq 2 \
27119                  -a "$gcc_cv_gld_minor_version" -ge 21 \
27120                  -o "$gcc_cv_gld_major_version" -gt 2; then
27121            gcc_cv_ld_mips_personality_relaxation=yes
27122          fi
27123        elif test x$gcc_cv_as != x \
27124                  -a x$gcc_cv_ld != x \
27125                  -a x$gcc_cv_readelf != x ; then
27126          cat > conftest.s <<EOF
27127         .cfi_startproc
27128         .cfi_personality 0x80,indirect_ptr
27129         .ent test
27130 test:
27131         nop
27132         .end test
27133         .cfi_endproc
27134
27135         .section .data,"aw",@progbits
27136 indirect_ptr:
27137         .dc.a personality
27138 EOF
27139          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27140             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27141            if $gcc_cv_readelf -d conftest 2>&1 \
27142               | grep TEXTREL > /dev/null 2>&1; then
27143              :
27144            elif $gcc_cv_readelf --relocs conftest 2>&1 \
27145                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27146              :
27147            else
27148              gcc_cv_ld_mips_personality_relaxation=yes
27149            fi
27150          fi
27151        fi
27152        rm -f conftest.s conftest.o conftest
27153 fi
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27155 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27156     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27157
27158 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27159
27160     fi
27161
27162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27163 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27164 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27165   $as_echo_n "(cached) " >&6
27166 else
27167   gcc_cv_as_mips_nan=no
27168   if test x$gcc_cv_as != x; then
27169     $as_echo '' > conftest.s
27170     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27171   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27172   (eval $ac_try) 2>&5
27173   ac_status=$?
27174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27175   test $ac_status = 0; }; }
27176     then
27177         gcc_cv_as_mips_nan=yes
27178     else
27179       echo "configure: failed program was" >&5
27180       cat conftest.s >&5
27181     fi
27182     rm -f conftest.o conftest.s
27183   fi
27184 fi
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27186 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27187 if test $gcc_cv_as_mips_nan = yes; then
27188
27189 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27190
27191 fi
27192     if test x$gcc_cv_as_mips_nan = xno \
27193        && test x$with_nan != x; then
27194       as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27195     fi
27196     ;;
27197     s390*-*-*)
27198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27199 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27200 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27201   $as_echo_n "(cached) " >&6
27202 else
27203   gcc_cv_as_s390_gnu_attribute=no
27204     if test $in_tree_gas = yes; then
27205     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27206   then gcc_cv_as_s390_gnu_attribute=yes
27207 fi
27208   elif test x$gcc_cv_as != x; then
27209     $as_echo '.gnu_attribute 8,1' > conftest.s
27210     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27211   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27212   (eval $ac_try) 2>&5
27213   ac_status=$?
27214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27215   test $ac_status = 0; }; }
27216     then
27217         gcc_cv_as_s390_gnu_attribute=yes
27218     else
27219       echo "configure: failed program was" >&5
27220       cat conftest.s >&5
27221     fi
27222     rm -f conftest.o conftest.s
27223   fi
27224 fi
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27226 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27227 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27228
27229 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27230
27231 fi
27232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27233 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27234 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27235   $as_echo_n "(cached) " >&6
27236 else
27237   gcc_cv_as_s390_machine_machinemode=no
27238     if test $in_tree_gas = yes; then
27239     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27240   then gcc_cv_as_s390_machine_machinemode=yes
27241 fi
27242   elif test x$gcc_cv_as != x; then
27243     $as_echo '  .machinemode push
27244         .machinemode pop
27245         .machine push
27246         .machine pop' > conftest.s
27247     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27248   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27249   (eval $ac_try) 2>&5
27250   ac_status=$?
27251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27252   test $ac_status = 0; }; }
27253     then
27254         gcc_cv_as_s390_machine_machinemode=yes
27255     else
27256       echo "configure: failed program was" >&5
27257       cat conftest.s >&5
27258     fi
27259     rm -f conftest.o conftest.s
27260   fi
27261 fi
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27263 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27264 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27265
27266 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27267
27268 fi
27269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27270 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27271 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27272   $as_echo_n "(cached) " >&6
27273 else
27274   gcc_cv_as_s390_architecture_modifiers=no
27275     if test $in_tree_gas = yes; then
27276     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27277   then gcc_cv_as_s390_architecture_modifiers=yes
27278 fi
27279   elif test x$gcc_cv_as != x; then
27280     $as_echo '  .machine z13+vx ' > conftest.s
27281     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27282   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27283   (eval $ac_try) 2>&5
27284   ac_status=$?
27285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27286   test $ac_status = 0; }; }
27287     then
27288         gcc_cv_as_s390_architecture_modifiers=yes
27289     else
27290       echo "configure: failed program was" >&5
27291       cat conftest.s >&5
27292     fi
27293     rm -f conftest.o conftest.s
27294   fi
27295 fi
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27297 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27298 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27299
27300 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27301
27302 fi
27303     ;;
27304 esac
27305
27306 # Mips and HP-UX need the GNU assembler.
27307 # Linux on IA64 might be able to use the Intel assembler.
27308
27309 case "$target" in
27310   mips*-*-* | *-*-hpux* )
27311     if test x$gas_flag = xyes \
27312        || test x"$host" != x"$build" \
27313        || test ! -x "$gcc_cv_as" \
27314        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27315       :
27316     else
27317       echo "*** This configuration requires the GNU assembler" >&2
27318       exit 1
27319     fi
27320     ;;
27321 esac
27322
27323 # ??? Not all targets support dwarf2 debug_line, even within a version
27324 # of gas.  Moreover, we need to emit a valid instruction to trigger any
27325 # info to the output file.  So, as supported targets are added to gas 2.11,
27326 # add some instruction here to (also) show we expect this might work.
27327 # ??? Once 2.11 is released, probably need to add first known working
27328 # version to the per-target configury.
27329 case "$cpu_type" in
27330   aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27331   | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27332   | visium | xstormy16 | xtensa)
27333     insn="nop"
27334     ;;
27335   ia64 | s390)
27336     insn="nop 0"
27337     ;;
27338   mmix)
27339     insn="swym 0"
27340     ;;
27341 esac
27342 if test x"$insn" != x; then
27343  conftest_s="\
27344         .file 1 \"conftest.s\"
27345         .loc 1 3 0
27346         $insn"
27347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27348 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27349 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27350   $as_echo_n "(cached) " >&6
27351 else
27352   gcc_cv_as_dwarf2_debug_line=no
27353     if test $in_tree_gas = yes; then
27354     if test $in_tree_gas_is_elf = yes \
27355   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27356   then gcc_cv_as_dwarf2_debug_line=yes
27357 fi
27358   elif test x$gcc_cv_as != x; then
27359     $as_echo "$conftest_s" > conftest.s
27360     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27361   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27362   (eval $ac_try) 2>&5
27363   ac_status=$?
27364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27365   test $ac_status = 0; }; }
27366     then
27367         if test x$gcc_cv_objdump != x \
27368    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27369       | grep debug_line > /dev/null 2>&1; then
27370      gcc_cv_as_dwarf2_debug_line=yes
27371    fi
27372     else
27373       echo "configure: failed program was" >&5
27374       cat conftest.s >&5
27375     fi
27376     rm -f conftest.o conftest.s
27377   fi
27378 fi
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27380 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27381
27382
27383 # The .debug_line file table must be in the exact order that
27384 # we specified the files, since these indices are also used
27385 # by DW_AT_decl_file.  Approximate this test by testing if
27386 # the assembler bitches if the same index is assigned twice.
27387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27388 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27389 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27390   $as_echo_n "(cached) " >&6
27391 else
27392   gcc_cv_as_dwarf2_file_buggy=no
27393   if test x$gcc_cv_as != x; then
27394     $as_echo '  .file 1 "foo.s"
27395         .file 1 "bar.s"' > conftest.s
27396     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27397   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27398   (eval $ac_try) 2>&5
27399   ac_status=$?
27400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27401   test $ac_status = 0; }; }
27402     then
27403         gcc_cv_as_dwarf2_file_buggy=yes
27404     else
27405       echo "configure: failed program was" >&5
27406       cat conftest.s >&5
27407     fi
27408     rm -f conftest.o conftest.s
27409   fi
27410 fi
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27412 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27413
27414
27415  if test $gcc_cv_as_dwarf2_debug_line = yes \
27416  && test $gcc_cv_as_dwarf2_file_buggy = no; then
27417
27418 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27419
27420  fi
27421
27422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27423 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27424 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27425   $as_echo_n "(cached) " >&6
27426 else
27427   gcc_cv_as_gdwarf2_flag=no
27428     if test $in_tree_gas = yes; then
27429     if test $in_tree_gas_is_elf = yes \
27430   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27431   then gcc_cv_as_gdwarf2_flag=yes
27432 fi
27433   elif test x$gcc_cv_as != x; then
27434     $as_echo "$insn" > conftest.s
27435     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27436   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27437   (eval $ac_try) 2>&5
27438   ac_status=$?
27439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27440   test $ac_status = 0; }; }
27441     then
27442         gcc_cv_as_gdwarf2_flag=yes
27443     else
27444       echo "configure: failed program was" >&5
27445       cat conftest.s >&5
27446     fi
27447     rm -f conftest.o conftest.s
27448   fi
27449 fi
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27451 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27452 if test $gcc_cv_as_gdwarf2_flag = yes; then
27453
27454 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27455
27456 fi
27457
27458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27459 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27460 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27461   $as_echo_n "(cached) " >&6
27462 else
27463   gcc_cv_as_gstabs_flag=no
27464     if test $in_tree_gas = yes; then
27465     if test $in_tree_gas_is_elf = yes \
27466   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27467   then gcc_cv_as_gstabs_flag=yes
27468 fi
27469   elif test x$gcc_cv_as != x; then
27470     $as_echo "$insn" > conftest.s
27471     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27472   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27473   (eval $ac_try) 2>&5
27474   ac_status=$?
27475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27476   test $ac_status = 0; }; }
27477     then
27478         gcc_cv_as_gstabs_flag=yes
27479     else
27480       echo "configure: failed program was" >&5
27481       cat conftest.s >&5
27482     fi
27483     rm -f conftest.o conftest.s
27484   fi
27485 fi
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27487 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27488 if test $gcc_cv_as_gstabs_flag = yes; then
27489
27490 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27491
27492 fi
27493
27494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27495 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27496 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27497   $as_echo_n "(cached) " >&6
27498 else
27499   gcc_cv_as_debug_prefix_map_flag=no
27500     if test $in_tree_gas = yes; then
27501     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27502   then gcc_cv_as_debug_prefix_map_flag=yes
27503 fi
27504   elif test x$gcc_cv_as != x; then
27505     $as_echo "$insn" > conftest.s
27506     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27507   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27508   (eval $ac_try) 2>&5
27509   ac_status=$?
27510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27511   test $ac_status = 0; }; }
27512     then
27513         gcc_cv_as_debug_prefix_map_flag=yes
27514     else
27515       echo "configure: failed program was" >&5
27516       cat conftest.s >&5
27517     fi
27518     rm -f conftest.o conftest.s
27519   fi
27520 fi
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27522 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27523 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27524
27525 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27526
27527 fi
27528 fi
27529
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27531 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27532 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27533   $as_echo_n "(cached) " >&6
27534 else
27535   gcc_cv_as_compress_debug=no
27536   if test x$gcc_cv_as != x; then
27537     $as_echo '' > conftest.s
27538     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27539   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27540   (eval $ac_try) 2>&5
27541   ac_status=$?
27542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27543   test $ac_status = 0; }; }
27544     then
27545         # gas compiled without zlib cannot compress debug sections and warns
27546    # about it, but still exits successfully.  So check for this, too.
27547    if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27548    then
27549      gcc_cv_as_compress_debug=0
27550    elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27551    then
27552      gcc_cv_as_compress_debug=1
27553      gcc_cv_as_compress_debug_option="--compress-debug-sections"
27554      gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27555    else
27556      gcc_cv_as_compress_debug=0
27557    # FIXME: Future gas versions will support ELF gABI style via
27558    # --compress-debug-sections[=type].
27559    fi
27560     else
27561       echo "configure: failed program was" >&5
27562       cat conftest.s >&5
27563     fi
27564     rm -f conftest.o conftest.s
27565   fi
27566 fi
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27568 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27569
27570
27571 cat >>confdefs.h <<_ACEOF
27572 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27573 _ACEOF
27574
27575
27576 cat >>confdefs.h <<_ACEOF
27577 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27578 _ACEOF
27579
27580
27581 cat >>confdefs.h <<_ACEOF
27582 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27583 _ACEOF
27584
27585
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27587 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27588 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27589   $as_echo_n "(cached) " >&6
27590 else
27591   gcc_cv_as_lcomm_with_alignment=no
27592   if test x$gcc_cv_as != x; then
27593     $as_echo '.lcomm bar,4,16' > conftest.s
27594     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27595   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27596   (eval $ac_try) 2>&5
27597   ac_status=$?
27598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27599   test $ac_status = 0; }; }
27600     then
27601         gcc_cv_as_lcomm_with_alignment=yes
27602     else
27603       echo "configure: failed program was" >&5
27604       cat conftest.s >&5
27605     fi
27606     rm -f conftest.o conftest.s
27607   fi
27608 fi
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27610 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27611 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27612
27613 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27614
27615 fi
27616
27617 if test x$with_sysroot = x && test x$host = x$target \
27618    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27619    && test "$prefix" != "NONE"; then
27620
27621 cat >>confdefs.h <<_ACEOF
27622 #define PREFIX_INCLUDE_DIR "$prefix/include"
27623 _ACEOF
27624
27625 fi
27626
27627 # Determine the version of glibc, if any, used on the target.
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27629 $as_echo_n "checking for target glibc version... " >&6; }
27630
27631 # Check whether --with-glibc-version was given.
27632 if test "${with_glibc_version+set}" = set; then :
27633   withval=$with_glibc_version;
27634 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27635   glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27636   glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27637 else
27638   as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27639 fi
27640 else
27641
27642 glibc_version_major=0
27643 glibc_version_minor=0
27644 if test -f $target_header_dir/features.h \
27645   && glibc_version_major_define=`$EGREP '^[     ]*#[    ]*define[       ]+__GLIBC__[    ]+[0-9]' $target_header_dir/features.h` \
27646   && glibc_version_minor_define=`$EGREP '^[     ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+[0-9]' $target_header_dir/features.h`; then
27647   glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[      ]*//'`
27648   glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[        ]*//'`
27649 fi
27650 fi
27651
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27653 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27654
27655 cat >>confdefs.h <<_ACEOF
27656 #define TARGET_GLIBC_MAJOR $glibc_version_major
27657 _ACEOF
27658
27659
27660 cat >>confdefs.h <<_ACEOF
27661 #define TARGET_GLIBC_MINOR $glibc_version_minor
27662 _ACEOF
27663
27664
27665 # Check whether --enable-gnu-unique-object was given.
27666 if test "${enable_gnu_unique_object+set}" = set; then :
27667   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27668     yes | no) ;;
27669     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27670 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27671   esac
27672 else
27673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27674 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27675 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27676   $as_echo_n "(cached) " >&6
27677 else
27678   gcc_cv_as_gnu_unique_object=no
27679     if test $in_tree_gas = yes; then
27680     if test $in_tree_gas_is_elf = yes \
27681   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27682   then gcc_cv_as_gnu_unique_object=yes
27683 fi
27684   elif test x$gcc_cv_as != x; then
27685     $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27686     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
27687   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27688   (eval $ac_try) 2>&5
27689   ac_status=$?
27690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27691   test $ac_status = 0; }; }
27692     then
27693         gcc_cv_as_gnu_unique_object=yes
27694     else
27695       echo "configure: failed program was" >&5
27696       cat conftest.s >&5
27697     fi
27698     rm -f conftest.o conftest.s
27699   fi
27700 fi
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27702 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27703 if test $gcc_cv_as_gnu_unique_object = yes; then
27704   # We need to unquote above to to use the definition from config.gcc.
27705 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27706
27707 if test $glibc_version_major -gt 2 \
27708   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27709   enable_gnu_unique_object=yes
27710 fi
27711
27712 fi
27713 fi
27714
27715 if test x$enable_gnu_unique_object = xyes; then
27716
27717 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27718
27719 fi
27720
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27722 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27723 if test "${gcc_cv_as_line_zero+set}" = set; then :
27724   $as_echo_n "(cached) " >&6
27725 else
27726   gcc_cv_as_line_zero=no
27727   if test $in_tree_gas = yes; then
27728     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27729   then gcc_cv_as_line_zero=yes
27730 fi
27731   elif test "x$gcc_cv_as" != x; then
27732     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27733     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27734   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27735   (eval $ac_try) 2>&5
27736   ac_status=$?
27737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27738   test $ac_status = 0; }; } &&
27739        test "x`cat conftest.out`" = x
27740     then
27741       gcc_cv_as_line_zero=yes
27742     else
27743       echo "configure: failed program was" >&5
27744       cat conftest.s >&5
27745       echo "configure: error output was" >&5
27746       cat conftest.out >&5
27747     fi
27748     rm -f conftest.o conftest.s conftest.out
27749   fi
27750 fi
27751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27752 $as_echo "$gcc_cv_as_line_zero" >&6; }
27753 if test "x$gcc_cv_as_line_zero" = xyes; then
27754
27755 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27756
27757 fi
27758
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27760 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27761 gcc_cv_ld_eh_frame_hdr=no
27762 if test $in_tree_ld = yes ; then
27763   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 \
27764      && test $in_tree_ld_is_elf = yes; then
27765     gcc_cv_ld_eh_frame_hdr=yes
27766   fi
27767 elif test x$gcc_cv_ld != x; then
27768   if echo "$ld_ver" | grep GNU > /dev/null; then
27769     # Check if linker supports --eh-frame-hdr option
27770     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27771       gcc_cv_ld_eh_frame_hdr=yes
27772     fi
27773   else
27774     case "$target" in
27775       *-*-solaris2*)
27776         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27777         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27778           gcc_cv_ld_eh_frame_hdr=yes
27779         fi
27780         ;;
27781     esac
27782   fi
27783 fi
27784
27785 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27786
27787 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27788
27789 fi
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27791 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27792
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27794 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27795 gcc_cv_ld_eh_frame_ciev3=no
27796 if test $in_tree_ld = yes ; then
27797   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 \
27798      && test $in_tree_ld_is_elf = yes; then
27799     gcc_cv_ld_eh_frame_ciev3=yes
27800   fi
27801 elif test x$gcc_cv_ld != x; then
27802   if echo "$ld_ver" | grep GNU > /dev/null; then
27803     gcc_cv_ld_eh_frame_ciev3=yes
27804     if test 0"$ld_date" -lt 20040513; then
27805       if test -n "$ld_date"; then
27806         # If there was date string, but was earlier than 2004-05-13, fail
27807         gcc_cv_ld_eh_frame_ciev3=no
27808       elif test "$ld_vers_major" -lt 2; then
27809         gcc_cv_ld_eh_frame_ciev3=no
27810       elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27811         gcc_cv_ld_eh_frame_ciev3=no
27812       fi
27813     fi
27814   else
27815     case "$target" in
27816       *-*-solaris2*)
27817         # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27818         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27819           gcc_cv_ld_eh_frame_ciev3=yes
27820         fi
27821         ;;
27822     esac
27823   fi
27824 fi
27825
27826 cat >>confdefs.h <<_ACEOF
27827 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27828 _ACEOF
27829
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27831 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27832
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27834 $as_echo_n "checking linker position independent executable support... " >&6; }
27835 gcc_cv_ld_pie=no
27836 if test $in_tree_ld = yes ; then
27837   case "$target" in
27838     # Full PIE support on Solaris was only introduced in gld 2.26.
27839     *-*-solaris2*)  gcc_gld_pie_min_version=26 ;;
27840     *)              gcc_gld_pie_min_version=15 ;;
27841   esac
27842   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
27843      && test $in_tree_ld_is_elf = yes; then
27844     gcc_cv_ld_pie=yes
27845   fi
27846 elif test x$gcc_cv_ld != x; then
27847   # Check if linker supports -pie option
27848   if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27849     gcc_cv_ld_pie=yes
27850     case "$target" in
27851       *-*-solaris2*)
27852         if echo "$ld_ver" | grep GNU > /dev/null \
27853           && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27854           gcc_cv_ld_pie=no
27855         fi
27856         ;;
27857     esac
27858   else
27859     case "$target" in
27860       *-*-solaris2.1[1-9]*)
27861         # Solaris 11.x and Solaris 12 added PIE support.
27862         if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27863           gcc_cv_ld_pie=yes
27864         fi
27865         ;;
27866     esac
27867   fi
27868 fi
27869 if test x"$gcc_cv_ld_pie" = xyes; then
27870
27871 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27872
27873 fi
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27875 $as_echo "$gcc_cv_ld_pie" >&6; }
27876
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27878 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27879 gcc_cv_ld_pie_copyreloc=no
27880 if test $gcc_cv_ld_pie = yes ; then
27881   if test $in_tree_ld = yes ; then
27882     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27883       gcc_cv_ld_pie_copyreloc=yes
27884     fi
27885   elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27886     # Check if linker supports -pie option with copy reloc
27887     case "$target" in
27888     i?86-*-linux* | x86_64-*-linux*)
27889       cat > conftest1.s <<EOF
27890         .globl  a_glob
27891         .data
27892         .type   a_glob, @object
27893         .size   a_glob, 4
27894 a_glob:
27895         .long   2
27896 EOF
27897       cat > conftest2.s <<EOF
27898         .text
27899         .globl  main
27900         .type   main, @function
27901 main:
27902         movl    %eax, a_glob(%rip)
27903         .size   main, .-main
27904         .globl  ptr
27905         .section        .data.rel,"aw",@progbits
27906         .type   ptr, @object
27907 ptr:
27908         .quad   a_glob
27909 EOF
27910       if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27911          && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27912          && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27913          && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27914         gcc_cv_ld_pie_copyreloc=yes
27915       fi
27916       rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27917       ;;
27918     esac
27919   fi
27920 fi
27921
27922 cat >>confdefs.h <<_ACEOF
27923 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27924 _ACEOF
27925
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27927 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27928
27929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27930 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27931 gcc_cv_ld_eh_gc_sections=no
27932 if test $in_tree_ld = yes ; then
27933   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 \
27934      && test $in_tree_ld_is_elf = yes; then
27935     gcc_cv_ld_eh_gc_sections=yes
27936   fi
27937 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27938   cat > conftest.s <<EOF
27939         .section        .text
27940 .globl _start
27941         .type _start, @function
27942 _start:
27943         .long foo
27944         .size _start, .-_start
27945         .section        .text.foo,"ax",@progbits
27946         .type foo, @function
27947 foo:
27948         .long 0
27949         .size foo, .-foo
27950         .section        .gcc_except_table.foo,"a",@progbits
27951 .L0:
27952         .long 0
27953         .section        .eh_frame,"a",@progbits
27954         .long .L0
27955 EOF
27956   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27957     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27958          | grep "gc-sections option ignored" > /dev/null; then
27959       gcc_cv_ld_eh_gc_sections=no
27960     elif $gcc_cv_objdump -h conftest 2> /dev/null \
27961          | grep gcc_except_table > /dev/null; then
27962       gcc_cv_ld_eh_gc_sections=yes
27963       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27964       if test x$gcc_cv_as_comdat_group != xyes; then
27965         gcc_cv_ld_eh_gc_sections=no
27966         cat > conftest.s <<EOF
27967         .section        .text
27968 .globl _start
27969         .type _start, @function
27970 _start:
27971         .long foo
27972         .size _start, .-_start
27973         .section        .gnu.linkonce.t.foo,"ax",@progbits
27974         .type foo, @function
27975 foo:
27976         .long 0
27977         .size foo, .-foo
27978         .section        .gcc_except_table.foo,"a",@progbits
27979 .L0:
27980         .long 0
27981         .section        .eh_frame,"a",@progbits
27982         .long .L0
27983 EOF
27984         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27985           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27986                | grep "gc-sections option ignored" > /dev/null; then
27987             gcc_cv_ld_eh_gc_sections=no
27988           elif $gcc_cv_objdump -h conftest 2> /dev/null \
27989                | grep gcc_except_table > /dev/null; then
27990             gcc_cv_ld_eh_gc_sections=yes
27991           fi
27992         fi
27993       fi
27994     fi
27995   fi
27996   rm -f conftest.s conftest.o conftest
27997 fi
27998 case "$target" in
27999   hppa*-*-linux*)
28000     # ??? This apparently exposes a binutils bug with PC-relative relocations.
28001     gcc_cv_ld_eh_gc_sections=no
28002     ;;
28003 esac
28004 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28005
28006 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28007
28008 fi
28009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28010 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28011
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28013 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28014 gcc_cv_ld_eh_gc_sections_bug=no
28015 if test $in_tree_ld = yes ; then
28016   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
28017      && test $in_tree_ld_is_elf = yes; then
28018     gcc_cv_ld_eh_gc_sections_bug=yes
28019   fi
28020 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
28021   gcc_cv_ld_eh_gc_sections_bug=yes
28022   cat > conftest.s <<EOF
28023         .section        .text
28024 .globl _start
28025         .type _start, @function
28026 _start:
28027         .long foo
28028         .size _start, .-_start
28029         .section        .text.startup.foo,"ax",@progbits
28030         .type foo, @function
28031 foo:
28032         .long 0
28033         .size foo, .-foo
28034         .section        .gcc_except_table.foo,"a",@progbits
28035 .L0:
28036         .long 0
28037         .section        .eh_frame,"a",@progbits
28038         .long .L0
28039 EOF
28040   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28041     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28042          | grep "gc-sections option ignored" > /dev/null; then
28043       :
28044     elif $gcc_cv_objdump -h conftest 2> /dev/null \
28045          | grep gcc_except_table > /dev/null; then
28046       gcc_cv_ld_eh_gc_sections_bug=no
28047     fi
28048   fi
28049   rm -f conftest.s conftest.o conftest
28050 fi
28051 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28052
28053 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28054
28055 fi
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28057 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28058
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28060 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28061 # gold/gld support compressed debug sections since binutils 2.19/2.21
28062 if test $in_tree_ld = yes ; then
28063   gcc_cv_ld_compress_debug=0
28064   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
28065      && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28066     gcc_cv_ld_compress_debug=2
28067     gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28068   elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
28069      && test $in_tree_ld_is_elf = yes; then
28070     gcc_cv_ld_compress_debug=1
28071   fi
28072 elif echo "$ld_ver" | grep GNU > /dev/null; then
28073   gcc_cv_ld_compress_debug=1
28074   if test 0"$ld_date" -lt 20050308; then
28075     if test -n "$ld_date"; then
28076       # If there was date string, but was earlier than 2005-03-08, fail
28077       gcc_cv_ld_compress_debug=0
28078     elif test "$ld_vers_major" -lt 2; then
28079       gcc_cv_ld_compress_debug=0
28080     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28081       gcc_cv_ld_compress_debug=0
28082     fi
28083   fi
28084   if test $ld_is_gold = yes; then
28085     gcc_cv_ld_compress_debug=2
28086     gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28087   fi
28088 else
28089   case "${target}" in
28090     *-*-solaris2*)
28091       # Introduced in Solaris 11.2.
28092       if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28093         gcc_cv_ld_compress_debug=3
28094         gcc_cv_ld_compress_debug_option="-z compress-sections"
28095       else
28096         gcc_cv_ld_compress_debug=0
28097       fi
28098       ;;
28099     *)
28100       # Assume linkers other than GNU ld don't support compessed debug
28101       # sections.
28102       gcc_cv_ld_compress_debug=0
28103       ;;
28104   esac
28105 fi
28106
28107 cat >>confdefs.h <<_ACEOF
28108 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28109 _ACEOF
28110
28111
28112 cat >>confdefs.h <<_ACEOF
28113 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28114 _ACEOF
28115
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28117 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28118
28119 if test x"$ld64_flag" = x"yes"; then
28120
28121   # Set defaults for possibly untestable items.
28122   gcc_cv_ld64_export_dynamic=0
28123
28124   if test "$build" = "$host"; then
28125     darwin_try_test=1
28126   else
28127     darwin_try_test=0
28128   fi
28129
28130   # On Darwin, because of FAT library support, it is often possible to execute
28131   # exes from compatible archs even when the host differs from the build system.
28132   case "$build","$host" in
28133     x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28134         darwin_try_test=1;;
28135     *) ;;
28136   esac
28137
28138   # If the configurer specified a minimum ld64 version to be supported, then use
28139   # that to determine feature support.
28140   if test x"${gcc_cv_ld64_version}" != x; then
28141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28142 $as_echo_n "checking ld64 specified version... " >&6; }
28143     gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28145 $as_echo "$gcc_cv_ld64_major" >&6; }
28146    if test "$gcc_cv_ld64_major" -ge 236; then
28147       gcc_cv_ld64_export_dynamic=1
28148     fi
28149   elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28150     # If the version was not specified, try to find it.
28151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28152 $as_echo_n "checking linker version... " >&6; }
28153     if test x"${gcc_cv_ld64_version}" = x; then
28154       gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28155     fi
28156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28157 $as_echo "$gcc_cv_ld64_version" >&6; }
28158
28159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28160 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28161     gcc_cv_ld64_export_dynamic=1
28162     if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28163       gcc_cv_ld64_export_dynamic=0
28164     fi
28165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28166 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28167   fi
28168
28169   if test x"${gcc_cv_ld64_version}" != x; then
28170
28171 cat >>confdefs.h <<_ACEOF
28172 #define LD64_VERSION "${gcc_cv_ld64_version}"
28173 _ACEOF
28174
28175   fi
28176
28177
28178 cat >>confdefs.h <<_ACEOF
28179 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28180 _ACEOF
28181
28182 fi
28183
28184 # --------
28185 # UNSORTED
28186 # --------
28187
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28189 $as_echo_n "checking linker --as-needed support... " >&6; }
28190 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28191   $as_echo_n "(cached) " >&6
28192 else
28193   gcc_cv_ld_as_needed=no
28194 gcc_cv_ld_as_needed_option='--as-needed'
28195 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28196 if test $in_tree_ld = yes ; then
28197   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 \
28198      && test $in_tree_ld_is_elf = yes; then
28199     gcc_cv_ld_as_needed=yes
28200   fi
28201 elif test x$gcc_cv_ld != x; then
28202         # Check if linker supports --as-needed and --no-as-needed options
28203         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28204                 gcc_cv_ld_as_needed=yes
28205         else
28206           case "$target" in
28207             # Solaris 2 ld always supports -z ignore/-z record.
28208             *-*-solaris2*)
28209               gcc_cv_ld_as_needed=yes
28210               gcc_cv_ld_as_needed_option="-z ignore"
28211               gcc_cv_ld_no_as_needed_option="-z record"
28212               ;;
28213           esac
28214         fi
28215 fi
28216 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28217 # dl_iterate_phdr, i.e. since Solaris 11.
28218 case "$target" in
28219   *-*-solaris2.1[1-9]*)
28220     case "$target" in
28221     i?86-*-* | x86_64-*-*)
28222       if echo "$ld_ver" | grep GNU > /dev/null; then
28223         # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28224         gcc_cv_ld_as_needed=no
28225       fi
28226       ;;
28227     esac
28228     ;;
28229   *-*-solaris2*)
28230     gcc_cv_ld_as_needed=no
28231     ;;
28232 esac
28233
28234 fi
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28236 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28237 if test x"$gcc_cv_ld_as_needed" = xyes; then
28238
28239 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28240
28241
28242 cat >>confdefs.h <<_ACEOF
28243 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28244 _ACEOF
28245
28246
28247 cat >>confdefs.h <<_ACEOF
28248 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28249 _ACEOF
28250
28251 fi
28252
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28254 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28255 saved_LDFLAGS="$LDFLAGS"
28256 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28257   LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28259 /* end confdefs.h.  */
28260 int main(void) {return 0;}
28261 _ACEOF
28262 if ac_fn_cxx_try_link "$LINENO"; then :
28263   gcc_cv_ld_clearcap=yes; break
28264 else
28265   gcc_cv_ld_clearcap=no
28266 fi
28267 rm -f core conftest.err conftest.$ac_objext \
28268     conftest$ac_exeext conftest.$ac_ext
28269 done
28270 LDFLAGS="$saved_LDFLAGS"
28271 if test "x$gcc_cv_ld_clearcap" = xyes; then
28272
28273 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28274
28275   ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28276
28277 fi
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28279 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28280
28281 case "$target:$tm_file" in
28282   powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28283   case "$target" in
28284      *le-*-linux*)
28285      emul_name="-melf64lppc"
28286       ;;
28287      *-*-linux*)
28288      emul_name="-melf64ppc"
28289       ;;
28290      *-*-freebsd*)
28291      emul_name="-melf64ppc_fbsd"
28292       ;;
28293   esac
28294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28295 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28296 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28297   $as_echo_n "(cached) " >&6
28298 else
28299   gcc_cv_ld_no_dot_syms=no
28300     if test x"$ld_is_gold" = xyes; then
28301       gcc_cv_ld_no_dot_syms=yes
28302     elif test $in_tree_ld = yes ; then
28303       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
28304         gcc_cv_ld_no_dot_syms=yes
28305       fi
28306     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28307       cat > conftest1.s <<EOF
28308         .text
28309         bl .foo
28310 EOF
28311       cat > conftest2.s <<EOF
28312         .section ".opd","aw"
28313         .align 3
28314         .globl foo
28315         .type foo,@function
28316 foo:
28317         .quad .LEfoo,.TOC.@tocbase,0
28318         .text
28319 .LEfoo:
28320         blr
28321         .size foo,.-.LEfoo
28322 EOF
28323       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28324          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28325          && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28326         gcc_cv_ld_no_dot_syms=yes
28327       fi
28328       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28329     fi
28330
28331 fi
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28333 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28334     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28335
28336 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28337
28338     fi
28339
28340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28341 $as_echo_n "checking linker large toc support... " >&6; }
28342 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28343   $as_echo_n "(cached) " >&6
28344 else
28345   gcc_cv_ld_large_toc=no
28346     if test x"$ld_is_gold" = xyes; then
28347       gcc_cv_ld_large_toc=yes
28348     elif test $in_tree_ld = yes ; then
28349       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
28350         gcc_cv_ld_large_toc=yes
28351       fi
28352     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28353       cat > conftest.s <<EOF
28354         .section ".tbss","awT",@nobits
28355         .align 3
28356 ie0:    .space 8
28357         .global _start
28358         .text
28359 _start:
28360         addis 9,13,ie0@got@tprel@ha
28361         ld 9,ie0@got@tprel@l(9)
28362 EOF
28363       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28364          && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28365         gcc_cv_ld_large_toc=yes
28366       fi
28367       rm -f conftest conftest.o conftest.s
28368     fi
28369
28370 fi
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28372 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28373     if test x"$gcc_cv_ld_large_toc" = xyes; then
28374
28375 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28376
28377     fi
28378
28379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28380 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28381 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28382   $as_echo_n "(cached) " >&6
28383 else
28384   if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28385       cat > conftest.s <<EOF
28386         .global _start
28387         .text
28388 _start:
28389         addis 9,2,x@got@ha
28390         .section .data.rel.ro,"aw",@progbits
28391         .p2align 16
28392         .space 32768
28393 x:      .quad .TOC.
28394 EOF
28395       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28396          && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28397         gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
28398       fi
28399       rm -f conftest conftest.o conftest.s
28400     fi
28401
28402 fi
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28404 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28405     if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28406
28407 cat >>confdefs.h <<_ACEOF
28408 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28409 _ACEOF
28410
28411     fi
28412     ;;
28413 esac
28414
28415 case "$target" in
28416   *-*-aix*)
28417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28418 $as_echo_n "checking linker large toc support... " >&6; }
28419 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28420   $as_echo_n "(cached) " >&6
28421 else
28422   gcc_cv_ld_large_toc=no
28423     if test x$gcc_cv_as != x ; then
28424       cat > conftest.s <<EOF
28425         .toc
28426 LC..1:
28427         .tc a[TC],a[RW]
28428         .extern a[RW]
28429         .csect .text[PR]
28430 .largetoctest:
28431         addis 9,LC..1@u(2)
28432         ld 3,LC..1@l(9)
28433 EOF
28434       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28435         gcc_cv_ld_large_toc=yes
28436       fi
28437       rm -f conftest conftest.o conftest.s
28438     fi
28439
28440 fi
28441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28442 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28443     if test x"$gcc_cv_ld_large_toc" = xyes; then
28444
28445 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28446
28447     fi
28448     ;;
28449 esac
28450
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28452 $as_echo_n "checking linker --build-id support... " >&6; }
28453 if test "${gcc_cv_ld_buildid+set}" = set; then :
28454   $as_echo_n "(cached) " >&6
28455 else
28456   gcc_cv_ld_buildid=no
28457   if test $in_tree_ld = yes ; then
28458     if test "$gcc_cv_gld_major_version" -eq 2 -a \
28459        "$gcc_cv_gld_minor_version" -ge 18 -o \
28460        "$gcc_cv_gld_major_version" -gt 2 \
28461        && test $in_tree_ld_is_elf = yes; then
28462       gcc_cv_ld_buildid=yes
28463     fi
28464   elif test x$gcc_cv_ld != x; then
28465     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28466       gcc_cv_ld_buildid=yes
28467     fi
28468   fi
28469 fi
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28471 $as_echo "$gcc_cv_ld_buildid" >&6; }
28472 if test x"$gcc_cv_ld_buildid" = xyes; then
28473
28474 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28475
28476 fi
28477
28478 # Check whether --enable-linker-build-id was given.
28479 if test "${enable_linker_build_id+set}" = set; then :
28480   enableval=$enable_linker_build_id;
28481 else
28482   enable_linker_build_id=no
28483 fi
28484
28485
28486 if test x"$enable_linker_build_id" = xyes; then
28487   if test x"$gcc_cv_ld_buildid" = xyes; then
28488
28489 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28490
28491   else
28492     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28493 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28494   fi
28495 fi
28496
28497 # In binutils 2.21, GNU ld gained support for new emulations fully
28498 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28500 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28501 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28502   $as_echo_n "(cached) " >&6
28503 else
28504   gcc_cv_ld_sol2_emulation=no
28505   if test $in_tree_ld = yes ; then
28506     if test "$gcc_cv_gld_major_version" -eq 2 -a \
28507        "$gcc_cv_gld_minor_version" -ge 21 -o \
28508        "$gcc_cv_gld_major_version" -gt 2 \
28509        && test $in_tree_ld_is_elf = yes; then
28510       gcc_cv_ld_sol2_emulation=yes
28511     fi
28512   elif test x$gcc_cv_ld != x; then
28513     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28514        grep _sol2 > /dev/null; then
28515       gcc_cv_ld_sol2_emulation=yes
28516     fi
28517   fi
28518 fi
28519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28520 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28521 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28522
28523 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28524
28525 fi
28526
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28528 $as_echo_n "checking linker --sysroot support... " >&6; }
28529 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28530   $as_echo_n "(cached) " >&6
28531 else
28532   gcc_cv_ld_sysroot=no
28533   if test $in_tree_ld = yes ; then
28534       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
28535         gcc_cv_ld_sysroot=yes
28536       fi
28537   elif test x$gcc_cv_ld != x; then
28538     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28539       gcc_cv_ld_sysroot=yes
28540     fi
28541   fi
28542 fi
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28544 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28545 if test x"$gcc_cv_ld_sysroot" = xyes; then
28546
28547 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28548
28549 fi
28550
28551 case $target in
28552 *-*-solaris2*)
28553   # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28555 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28556 if test "${gcc_cv_solaris_crts+set}" = set; then :
28557   $as_echo_n "(cached) " >&6
28558 else
28559   gcc_cv_solaris_crts=no
28560      if test x$host != x$target; then
28561        if test "x$with_sysroot" = xyes; then
28562          target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28563        else
28564          target_sysroot="${with_sysroot}"
28565        fi
28566      fi
28567      target_libdir="$target_sysroot/usr/lib"
28568      # At the time they were added, gcrt1.o became a symlink for backwards
28569      # compatibility on x86, while crt1.o was added on sparc, so check for that.
28570      case $target in
28571        i?86-*-solaris2* | x86_64-*-solaris2*)
28572          if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28573          ;;
28574        sparc*-*-solaris2*)
28575          if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28576          ;;
28577      esac
28578 fi
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28580 $as_echo "$gcc_cv_solaris_crts" >&6; }
28581   ;;
28582 esac
28583 if test x$gcc_cv_solaris_crts = xyes; then
28584
28585 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28586
28587 fi
28588
28589 # Test for stack protector support in target C library.
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28591 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28592 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28593   $as_echo_n "(cached) " >&6
28594 else
28595   gcc_cv_libc_provides_ssp=no
28596     case "$target" in
28597        *-*-musl*)
28598          # All versions of musl provide stack protector
28599          gcc_cv_libc_provides_ssp=yes;;
28600        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28601       # glibc 2.4 and later provides __stack_chk_fail and
28602       # either __stack_chk_guard, or TLS access to stack guard canary.
28603
28604 if test $glibc_version_major -gt 2 \
28605   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28606   gcc_cv_libc_provides_ssp=yes
28607 else
28608
28609       if test -f $target_header_dir/features.h \
28610          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
28611             $target_header_dir/features.h > /dev/null; then
28612         if $EGREP '^[   ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
28613              $target_header_dir/features.h > /dev/null && \
28614              test -f $target_header_dir/bits/uClibc_config.h && \
28615              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
28616              $target_header_dir/bits/uClibc_config.h > /dev/null; then
28617           gcc_cv_libc_provides_ssp=yes
28618         fi
28619       # all versions of Bionic support stack protector
28620       elif test -f $target_header_dir/sys/cdefs.h \
28621         && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
28622            $target_header_dir/sys/cdefs.h > /dev/null; then
28623          gcc_cv_libc_provides_ssp=yes
28624       fi
28625 fi
28626         ;;
28627        *-*-gnu*)
28628          # Avoid complicated tests (see
28629          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28630          # simply assert that glibc does provide this, which is true for all
28631          # realistically usable GNU/Hurd configurations.
28632          # All supported versions of musl provide it as well
28633          gcc_cv_libc_provides_ssp=yes;;
28634        *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28635          ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28636 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28637   gcc_cv_libc_provides_ssp=yes
28638 else
28639   echo "no __stack_chk_fail on this target"
28640 fi
28641
28642         ;;
28643   *) gcc_cv_libc_provides_ssp=no ;;
28644     esac
28645 fi
28646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28647 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28648
28649 if test x$gcc_cv_libc_provides_ssp = xyes; then
28650
28651 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28652
28653 fi
28654
28655 # Check whether --enable-default-ssp was given.
28656 # Check whether --enable-default-ssp was given.
28657 if test "${enable_default_ssp+set}" = set; then :
28658   enableval=$enable_default_ssp;
28659 if test x$gcc_cv_libc_provides_ssp = xyes; then
28660   case "$target" in
28661     ia64*-*-*) enable_default_ssp=no ;;
28662     *) enable_default_ssp=$enableval ;;
28663   esac
28664 else
28665   enable_default_ssp=no
28666 fi
28667 else
28668   enable_default_ssp=no
28669 fi
28670
28671 if test x$enable_default_ssp = xyes ; then
28672
28673 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28674
28675 fi
28676
28677
28678 # Test for <sys/sdt.h> on the target.
28679
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28681 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28682 have_sys_sdt_h=no
28683 if test -f $target_header_dir/sys/sdt.h; then
28684   have_sys_sdt_h=yes
28685
28686 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28687
28688 fi
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28690 $as_echo "$have_sys_sdt_h" >&6; }
28691
28692 # Check if TFmode long double should be used by default or not.
28693 # Some glibc targets used DFmode long double, but with glibc 2.4
28694 # and later they can use TFmode.
28695 case "$target" in
28696   powerpc*-*-linux* | \
28697   sparc*-*-linux* | \
28698   s390*-*-linux* | \
28699   alpha*-*-linux*)
28700
28701 # Check whether --with-long-double-128 was given.
28702 if test "${with_long_double_128+set}" = set; then :
28703   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28704 else
28705
28706 if test $glibc_version_major -gt 2 \
28707   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28708   gcc_cv_target_ldbl128=yes
28709 else
28710
28711       gcc_cv_target_ldbl128=no
28712       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28713         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28714       && gcc_cv_target_ldbl128=yes
28715
28716 fi
28717 fi
28718
28719     ;;
28720 esac
28721 if test x$gcc_cv_target_ldbl128 = xyes; then
28722
28723 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28724
28725 fi
28726
28727 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28728 # values in the TCB.  Currently, only GLIBC 2.23 and later support this.
28729 gcc_cv_libc_provides_hwcap_in_tcb=no
28730 case "$target" in
28731   powerpc*-*-linux*)
28732
28733 if test $glibc_version_major -gt 2 \
28734   || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28735   gcc_cv_libc_provides_hwcap_in_tcb=yes
28736 fi
28737     ;;
28738 esac
28739 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28740
28741 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28742
28743 fi
28744
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28746 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28747 gcc_cv_target_dl_iterate_phdr=unknown
28748 case "$target" in
28749   # Restrict to Solaris 11+.  While most of the Solaris 11 linker changes
28750   # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28751   # libdl there, both complicating its use and breaking compatibility
28752   # between Solaris 10 updates.
28753   *-*-solaris2.1[1-9]*)
28754     # <link.h> needs both a dl_iterate_phdr declaration and support for
28755     # compilation with largefile support.
28756     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28757       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28758       gcc_cv_target_dl_iterate_phdr=yes
28759     else
28760       gcc_cv_target_dl_iterate_phdr=no
28761     fi
28762     ;;
28763   *-*-dragonfly* | *-*-freebsd*)
28764     if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28765       gcc_cv_target_dl_iterate_phdr=yes
28766     else
28767       gcc_cv_target_dl_iterate_phdr=no
28768     fi
28769     ;;
28770   *-linux-musl*)
28771     gcc_cv_target_dl_iterate_phdr=yes
28772     ;;
28773 esac
28774
28775 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28776
28777 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28778
28779 fi
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28781 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28782
28783 # We no longer support different GC mechanisms.  Emit an error if
28784 # the user configures with --with-gc.
28785
28786 # Check whether --with-gc was given.
28787 if test "${with_gc+set}" = set; then :
28788   withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28789 fi
28790
28791
28792 # Libraries to use on the host.  This will normally be set by the top
28793 # level Makefile.  Here we simply capture the value for our Makefile.
28794 if test -z "${HOST_LIBS+set}"; then
28795   HOST_LIBS=
28796 fi
28797
28798
28799 # Use the system's zlib library.
28800
28801   # Use the system's zlib library.
28802   zlibdir="-L\$(top_builddir)/../zlib"
28803   zlibinc="-I\$(top_srcdir)/../zlib"
28804
28805 # Check whether --with-system-zlib was given.
28806 if test "${with_system_zlib+set}" = set; then :
28807   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28808     zlibdir=
28809     zlibinc=
28810   fi
28811
28812 fi
28813
28814
28815
28816
28817
28818
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28820 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28821     # Check whether --enable-maintainer-mode was given.
28822 if test "${enable_maintainer_mode+set}" = set; then :
28823   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28824 else
28825   maintainer_mode=no
28826 fi
28827
28828
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28830 $as_echo "$maintainer_mode" >&6; }
28831
28832 if test "$maintainer_mode" = "yes"; then
28833   MAINT=''
28834 else
28835   MAINT='#'
28836 fi
28837
28838
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28840 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28841   # Check whether --enable-link-mutex was given.
28842 if test "${enable_link_mutex+set}" = set; then :
28843   enableval=$enable_link_mutex; do_link_mutex=$enableval
28844 else
28845   do_link_mutex=no
28846 fi
28847
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28849 $as_echo "$do_link_mutex" >&6; }
28850
28851 if test "$do_link_mutex" = "yes"; then
28852    DO_LINK_MUTEX=true
28853 else
28854    DO_LINK_MUTEX=false
28855 fi
28856
28857
28858 # --------------
28859 # Language hooks
28860 # --------------
28861
28862 # Make empty files to contain the specs and options for each language.
28863 # Then add #include lines to for a compiler that has specs and/or options.
28864
28865 subdirs=
28866 lang_opt_files=
28867 lang_specs_files=
28868 lang_tree_files=
28869 # These (without "all_") are set in each config-lang.in.
28870 # `language' must be a single word so is spelled singularly.
28871 all_languages=
28872 all_compilers=
28873 all_outputs='Makefile'
28874 # List of language makefile fragments.
28875 all_lang_makefrags=
28876 # Additional files for gengtype
28877 all_gtfiles="$target_gtfiles"
28878
28879 # These are the languages that are set in --enable-languages,
28880 # and are available in the GCC tree.
28881 all_selected_languages=
28882
28883 # Add the language fragments.
28884 # Languages are added via two mechanisms.  Some information must be
28885 # recorded in makefile variables, these are defined in config-lang.in.
28886 # We accumulate them and plug them into the main Makefile.
28887 # The other mechanism is a set of hooks for each of the main targets
28888 # like `clean', `install', etc.
28889
28890 language_hooks="Make-hooks"
28891
28892 for lang in ${srcdir}/*/config-lang.in
28893 do
28894         test "$lang" = "${srcdir}/*/config-lang.in" && continue
28895
28896         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
28897         if test "x$lang_alias" = x
28898         then
28899               echo "$lang doesn't set \$language." 1>&2
28900               exit 1
28901         fi
28902         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28903         subdirs="$subdirs $subdir"
28904
28905         # $gcc_subdir is where the gcc integration files are to be found
28906         # for a language, both for internal compiler purposes (compiler
28907         # sources implementing front-end to GCC tree converters), and for
28908         # build infrastructure purposes (Make-lang.in, etc.)
28909         #
28910         # This will be <subdir> (relative to $srcdir) if a line like
28911         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28912         # is found in <langdir>/config-lang.in, and will remain <langdir>
28913         # otherwise.
28914         #
28915         # Except for the language alias (fetched above), the regular
28916         # "config-lang.in" contents are always retrieved from $gcc_subdir,
28917         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28918         # only this and the language alias.
28919
28920         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
28921         if [ "$gcc_subdir" = "" ]; then
28922            gcc_subdir="$subdir"
28923         fi
28924
28925         case ",$enable_languages," in
28926         *,$lang_alias,*)
28927             all_selected_languages="$all_selected_languages $lang_alias"
28928             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28929                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28930             fi
28931             ;;
28932         esac
28933
28934         language=
28935         boot_language=
28936         compilers=
28937         outputs=
28938         gtfiles=
28939         subdir_requires=
28940         . ${srcdir}/$gcc_subdir/config-lang.in
28941         if test "x$language" = x
28942         then
28943                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28944                 exit 1
28945         fi
28946
28947         ok=:
28948         case ",$enable_languages," in
28949                 *,$lang_alias,*) ;;
28950                 *)
28951                         for i in $subdir_requires; do
28952                                 test -f "${srcdir}/$i/config-lang.in" && continue
28953                                 ok=false
28954                                 break
28955                         done
28956                 ;;
28957         esac
28958         $ok || continue
28959
28960         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28961         if test -f $srcdir/$gcc_subdir/lang.opt; then
28962             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28963             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28964         fi
28965         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28966             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28967         fi
28968         all_languages="$all_languages $language"
28969         all_compilers="$all_compilers $compilers"
28970         all_outputs="$all_outputs $outputs"
28971         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28972         case ",$enable_languages," in
28973                 *,lto,*)
28974
28975 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28976
28977                     enable_lto=yes
28978
28979                     ;;
28980                 *) ;;
28981         esac
28982 done
28983
28984 check_languages=
28985 for language in $all_selected_languages
28986 do
28987         check_languages="$check_languages check-$language"
28988 done
28989
28990 # We link each language in with a set of hooks, reached indirectly via
28991 # lang.${target}.  Only do so for selected languages.
28992
28993 rm -f Make-hooks
28994 touch Make-hooks
28995 target_list="all.cross start.encap rest.encap tags \
28996         install-common install-man install-info install-pdf install-html dvi \
28997         pdf html uninstall info man srcextra srcman srcinfo \
28998         mostlyclean clean distclean maintainer-clean install-plugin"
28999
29000 for t in $target_list
29001 do
29002         x=
29003         for lang in $all_selected_languages
29004         do
29005                 x="$x $lang.$t"
29006         done
29007         echo "lang.$t: $x" >> Make-hooks
29008 done
29009
29010 # --------
29011 # Option include files
29012 # --------
29013
29014 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29015 option_includes="option-includes.mk"
29016
29017
29018 # --------
29019 # UNSORTED
29020 # --------
29021
29022 # Create .gdbinit.
29023
29024 echo "dir ." > .gdbinit
29025 echo "dir ${srcdir}" >> .gdbinit
29026 if test x$gdb_needs_out_file_path = xyes
29027 then
29028         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29029 fi
29030 if test "x$subdirs" != x; then
29031         for s in $subdirs
29032         do
29033                 echo "dir ${srcdir}/$s" >> .gdbinit
29034         done
29035 fi
29036 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29037 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29038
29039 # Put a breakpoint on __asan_report_error to help with debugging buffer
29040 # overflow.
29041 case "$CFLAGS" in
29042 *-fsanitize=address*)
29043   echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29044   ;;
29045 esac
29046
29047 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29048
29049
29050
29051 # Find a directory in which to install a shared libgcc.
29052
29053 # Check whether --enable-version-specific-runtime-libs was given.
29054 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29055   enableval=$enable_version_specific_runtime_libs;
29056 fi
29057
29058
29059 # Substitute configuration variables
29060
29061
29062
29063
29064
29065
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086
29087
29088
29089
29090
29091
29092
29093
29094
29095
29096
29097
29098
29099
29100
29101
29102
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113
29114
29115
29116
29117
29118
29119
29120
29121
29122 # Echo link setup.
29123 if test x${build} = x${host} ; then
29124   if test x${host} = x${target} ; then
29125     echo "Links are now set up to build a native compiler for ${target}." 1>&2
29126   else
29127     echo "Links are now set up to build a cross-compiler" 1>&2
29128     echo " from ${host} to ${target}." 1>&2
29129   fi
29130 else
29131   if test x${host} = x${target} ; then
29132     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29133     echo " for ${target}." 1>&2
29134   else
29135     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29136     echo " from ${host} to ${target}." 1>&2
29137   fi
29138 fi
29139
29140
29141
29142
29143
29144
29145 if test "x${ISLLIBS}" != "x" ; then
29146
29147 $as_echo "#define HAVE_isl 1" >>confdefs.h
29148
29149 fi
29150
29151 # Check whether isl_options_set_schedule_serialize_sccs is available;
29152 # it's new in isl 0.15.
29153 if test "x${ISLLIBS}" != "x" ; then
29154   saved_CXXFLAGS="$CXXFLAGS"
29155   CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29156   saved_LIBS="$LIBS"
29157   LIBS="$LIBS $ISLLIBS $GMPLIBS"
29158
29159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29160 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29162 /* end confdefs.h.  */
29163 #include <isl/schedule.h>
29164 int
29165 main ()
29166 {
29167 isl_options_set_schedule_serialize_sccs (NULL, 0);
29168   ;
29169   return 0;
29170 }
29171 _ACEOF
29172 if ac_fn_cxx_try_link "$LINENO"; then :
29173   ac_has_isl_options_set_schedule_serialize_sccs=yes
29174 else
29175   ac_has_isl_options_set_schedule_serialize_sccs=no
29176 fi
29177 rm -f core conftest.err conftest.$ac_objext \
29178     conftest$ac_exeext conftest.$ac_ext
29179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29180 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29181
29182   LIBS="$saved_LIBS"
29183   CXXFLAGS="$saved_CXXFLAGS"
29184
29185   if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29186
29187 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29188
29189   fi
29190 fi
29191
29192 # Check for plugin support
29193    # Check whether --enable-plugin was given.
29194 if test "${enable_plugin+set}" = set; then :
29195   enableval=$enable_plugin; enable_plugin=$enableval
29196 else
29197   enable_plugin=yes; default_plugin=yes
29198 fi
29199
29200
29201    pluginlibs=
29202
29203    case "${host}" in
29204      *-*-darwin*)
29205        if test x$build = x$host; then
29206          export_sym_check="nm${exeext} -g"
29207        elif test x$host = x$target; then
29208          export_sym_check="$gcc_cv_nm -g"
29209        else
29210          export_sym_check=
29211        fi
29212      ;;
29213      *)
29214        if test x$build = x$host; then
29215          export_sym_check="objdump${exeext} -T"
29216        elif test x$host = x$target; then
29217          export_sym_check="$gcc_cv_objdump -T"
29218        else
29219          export_sym_check=
29220        fi
29221      ;;
29222    esac
29223
29224    if test x"$enable_plugin" = x"yes"; then
29225
29226      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29227 $as_echo_n "checking for exported symbols... " >&6; }
29228      if test "x$export_sym_check" != x; then
29229        echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29230        ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29231        if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29232          : # No need to use a flag
29233          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29234 $as_echo "yes" >&6; }
29235        else
29236          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29237 $as_echo "yes" >&6; }
29238          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29239 $as_echo_n "checking for -rdynamic... " >&6; }
29240          ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29241          if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29242            plugin_rdynamic=yes
29243            pluginlibs="-rdynamic"
29244          else
29245            plugin_rdynamic=no
29246            enable_plugin=no
29247          fi
29248          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29249 $as_echo "$plugin_rdynamic" >&6; }
29250        fi
29251      else
29252        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29253 $as_echo "unable to check" >&6; }
29254      fi
29255
29256      # Check -ldl
29257      saved_LIBS="$LIBS"
29258      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29259 $as_echo_n "checking for library containing dlopen... " >&6; }
29260 if test "${ac_cv_search_dlopen+set}" = set; then :
29261   $as_echo_n "(cached) " >&6
29262 else
29263   ac_func_search_save_LIBS=$LIBS
29264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29265 /* end confdefs.h.  */
29266
29267 /* Override any GCC internal prototype to avoid an error.
29268    Use char because int might match the return type of a GCC
29269    builtin and then its argument prototype would still apply.  */
29270 #ifdef __cplusplus
29271 extern "C"
29272 #endif
29273 char dlopen ();
29274 int
29275 main ()
29276 {
29277 return dlopen ();
29278   ;
29279   return 0;
29280 }
29281 _ACEOF
29282 for ac_lib in '' dl; do
29283   if test -z "$ac_lib"; then
29284     ac_res="none required"
29285   else
29286     ac_res=-l$ac_lib
29287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29288   fi
29289   if ac_fn_cxx_try_link "$LINENO"; then :
29290   ac_cv_search_dlopen=$ac_res
29291 fi
29292 rm -f core conftest.err conftest.$ac_objext \
29293     conftest$ac_exeext
29294   if test "${ac_cv_search_dlopen+set}" = set; then :
29295   break
29296 fi
29297 done
29298 if test "${ac_cv_search_dlopen+set}" = set; then :
29299
29300 else
29301   ac_cv_search_dlopen=no
29302 fi
29303 rm conftest.$ac_ext
29304 LIBS=$ac_func_search_save_LIBS
29305 fi
29306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29307 $as_echo "$ac_cv_search_dlopen" >&6; }
29308 ac_res=$ac_cv_search_dlopen
29309 if test "$ac_res" != no; then :
29310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29311
29312 fi
29313
29314      if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29315        pluginlibs="$pluginlibs -ldl"
29316      fi
29317      LIBS="$saved_LIBS"
29318
29319      # Check that we can build shared objects with -fPIC -shared
29320      saved_LDFLAGS="$LDFLAGS"
29321      saved_CFLAGS="$CFLAGS"
29322      case "${host}" in
29323        *-*-darwin*)
29324          CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29325          CFLAGS="$CFLAGS -fPIC"
29326          LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29327        ;;
29328        *)
29329          CFLAGS="$CFLAGS -fPIC"
29330          LDFLAGS="$LDFLAGS -fPIC -shared"
29331        ;;
29332      esac
29333      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29334 $as_echo_n "checking for -fPIC -shared... " >&6; }
29335      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29336 /* end confdefs.h.  */
29337 extern int X;
29338 int
29339 main ()
29340 {
29341 return X == 0;
29342   ;
29343   return 0;
29344 }
29345 _ACEOF
29346 if ac_fn_cxx_try_link "$LINENO"; then :
29347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29348 $as_echo "yes" >&6; }; have_pic_shared=yes
29349 else
29350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29351 $as_echo "no" >&6; }; have_pic_shared=no
29352 fi
29353 rm -f core conftest.err conftest.$ac_objext \
29354     conftest$ac_exeext conftest.$ac_ext
29355      if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29356        pluginlibs=
29357        enable_plugin=no
29358      fi
29359      LDFLAGS="$saved_LDFLAGS"
29360      CFLAGS="$saved_CFLAGS"
29361
29362      # If plugin support had been requested but not available, fail.
29363      if test x"$enable_plugin" = x"no" ; then
29364        if test x"$default_plugin" != x"yes"; then
29365          as_fn_error "
29366    Building GCC with plugin support requires a host that supports
29367    -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29368        fi
29369      fi
29370    fi
29371
29372
29373
29374 if test x"$enable_plugin" = x"yes"; then
29375
29376 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29377
29378 fi
29379
29380
29381 # Enable --enable-host-shared
29382 # Check whether --enable-host-shared was given.
29383 if test "${enable_host_shared+set}" = set; then :
29384   enableval=$enable_host_shared; PICFLAG=-fPIC
29385 else
29386   PICFLAG=
29387 fi
29388
29389
29390
29391
29392
29393 # Check whether --enable-libquadmath-support was given.
29394 if test "${enable_libquadmath_support+set}" = set; then :
29395   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29396 else
29397   ENABLE_LIBQUADMATH_SUPPORT=yes
29398 fi
29399
29400 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29401
29402 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29403
29404 fi
29405
29406
29407 # Specify what hash style to use by default.
29408
29409 # Check whether --with-linker-hash-style was given.
29410 if test "${with_linker_hash_style+set}" = set; then :
29411   withval=$with_linker_hash_style; case x"$withval" in
29412    xsysv)
29413      LINKER_HASH_STYLE=sysv
29414      ;;
29415    xgnu)
29416      LINKER_HASH_STYLE=gnu
29417      ;;
29418    xboth)
29419      LINKER_HASH_STYLE=both
29420      ;;
29421    *)
29422      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29423      ;;
29424  esac
29425 else
29426   LINKER_HASH_STYLE=''
29427 fi
29428
29429 if test x"${LINKER_HASH_STYLE}" != x; then
29430
29431 cat >>confdefs.h <<_ACEOF
29432 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29433 _ACEOF
29434
29435 fi
29436
29437 # Specify what should be the default of -fdiagnostics-color option.
29438
29439 # Check whether --with-diagnostics-color was given.
29440 if test "${with_diagnostics_color+set}" = set; then :
29441   withval=$with_diagnostics_color; case x"$withval" in
29442    xnever)
29443      DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29444      ;;
29445    xauto)
29446      DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29447      ;;
29448    xauto-if-env)
29449      DIAGNOSTICS_COLOR_DEFAULT=-1
29450      ;;
29451    xalways)
29452      DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29453      ;;
29454    *)
29455      as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29456      ;;
29457  esac
29458 else
29459   DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29460 fi
29461
29462
29463 cat >>confdefs.h <<_ACEOF
29464 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29465 _ACEOF
29466
29467
29468 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29469 # of jit/jit-playback.c.
29470 cat > gcc-driver-name.h <<EOF
29471 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29472 EOF
29473
29474 # Check whether --enable-default-pie was given.
29475 # Check whether --enable-default-pie was given.
29476 if test "${enable_default_pie+set}" = set; then :
29477   enableval=$enable_default_pie; enable_default_pie=$enableval
29478 else
29479   enable_default_pie=no
29480 fi
29481
29482 if test x$enable_default_pie = xyes ; then
29483
29484 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29485
29486 fi
29487
29488
29489 # Check if -fno-PIE works.
29490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29491 $as_echo_n "checking for -fno-PIE option... " >&6; }
29492 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29493   $as_echo_n "(cached) " >&6
29494 else
29495   saved_CXXFLAGS="$CXXFLAGS"
29496    CXXFLAGS="$CXXFLAGS -fno-PIE"
29497    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29498 /* end confdefs.h.  */
29499 int main(void) {return 0;}
29500 _ACEOF
29501 if ac_fn_cxx_try_compile "$LINENO"; then :
29502   gcc_cv_c_no_fpie=yes
29503 else
29504   gcc_cv_c_no_fpie=no
29505 fi
29506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29507    CXXFLAGS="$saved_CXXFLAGS"
29508 fi
29509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29510 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29511 if test "$gcc_cv_c_no_fpie" = "yes"; then
29512   NO_PIE_CFLAGS="-fno-PIE"
29513 fi
29514
29515
29516 # Check if -no-pie works.
29517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29518 $as_echo_n "checking for -no-pie option... " >&6; }
29519 if test "${gcc_cv_no_pie+set}" = set; then :
29520   $as_echo_n "(cached) " >&6
29521 else
29522   saved_LDFLAGS="$LDFLAGS"
29523    LDFLAGS="$LDFLAGS -no-pie"
29524    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29525 /* end confdefs.h.  */
29526 int main(void) {return 0;}
29527 _ACEOF
29528 if ac_fn_cxx_try_link "$LINENO"; then :
29529   gcc_cv_no_pie=yes
29530 else
29531   gcc_cv_no_pie=no
29532 fi
29533 rm -f core conftest.err conftest.$ac_objext \
29534     conftest$ac_exeext conftest.$ac_ext
29535    LDFLAGS="$saved_LDFLAGS"
29536 fi
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29538 $as_echo "$gcc_cv_no_pie" >&6; }
29539 if test "$gcc_cv_no_pie" = "yes"; then
29540   NO_PIE_FLAG="-no-pie"
29541 fi
29542
29543
29544 # Check linker supports '-z bndplt'
29545 ld_bndplt_support=no
29546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29547 $as_echo_n "checking linker -z bndplt option... " >&6; }
29548 if test x"$ld_is_gold" = xno; then
29549   if test $in_tree_ld = yes ; then
29550     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
29551       ld_bndplt_support=yes
29552     fi
29553   elif test x$gcc_cv_ld != x; then
29554     # Check if linker supports -a bndplt option
29555     if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29556       ld_bndplt_support=yes
29557     fi
29558   fi
29559 fi
29560 if test x"$ld_bndplt_support" = xyes; then
29561
29562 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29563
29564 fi
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29566 $as_echo "$ld_bndplt_support" >&6; }
29567
29568 # Configure the subdirectories
29569 # AC_CONFIG_SUBDIRS($subdirs)
29570
29571 # Create the Makefile
29572 # and configure language subdirectories
29573 ac_config_files="$ac_config_files $all_outputs"
29574
29575
29576 ac_config_commands="$ac_config_commands default"
29577
29578 cat >confcache <<\_ACEOF
29579 # This file is a shell script that caches the results of configure
29580 # tests run on this system so they can be shared between configure
29581 # scripts and configure runs, see configure's option --config-cache.
29582 # It is not useful on other systems.  If it contains results you don't
29583 # want to keep, you may remove or edit it.
29584 #
29585 # config.status only pays attention to the cache file if you give it
29586 # the --recheck option to rerun configure.
29587 #
29588 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29589 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29590 # following values.
29591
29592 _ACEOF
29593
29594 # The following way of writing the cache mishandles newlines in values,
29595 # but we know of no workaround that is simple, portable, and efficient.
29596 # So, we kill variables containing newlines.
29597 # Ultrix sh set writes to stderr and can't be redirected directly,
29598 # and sets the high bit in the cache file unless we assign to the vars.
29599 (
29600   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29601     eval ac_val=\$$ac_var
29602     case $ac_val in #(
29603     *${as_nl}*)
29604       case $ac_var in #(
29605       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29606 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29607       esac
29608       case $ac_var in #(
29609       _ | IFS | as_nl) ;; #(
29610       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29611       *) { eval $ac_var=; unset $ac_var;} ;;
29612       esac ;;
29613     esac
29614   done
29615
29616   (set) 2>&1 |
29617     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29618     *${as_nl}ac_space=\ *)
29619       # `set' does not quote correctly, so add quotes: double-quote
29620       # substitution turns \\\\ into \\, and sed turns \\ into \.
29621       sed -n \
29622         "s/'/'\\\\''/g;
29623           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29624       ;; #(
29625     *)
29626       # `set' quotes correctly as required by POSIX, so do not add quotes.
29627       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29628       ;;
29629     esac |
29630     sort
29631 ) |
29632   sed '
29633      /^ac_cv_env_/b end
29634      t clear
29635      :clear
29636      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29637      t end
29638      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29639      :end' >>confcache
29640 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29641   if test -w "$cache_file"; then
29642     test "x$cache_file" != "x/dev/null" &&
29643       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29644 $as_echo "$as_me: updating cache $cache_file" >&6;}
29645     cat confcache >$cache_file
29646   else
29647     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29648 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29649   fi
29650 fi
29651 rm -f confcache
29652
29653 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29654 # Let make expand exec_prefix.
29655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29656
29657 DEFS=-DHAVE_CONFIG_H
29658
29659 ac_libobjs=
29660 ac_ltlibobjs=
29661 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29662   # 1. Remove the extension, and $U if already installed.
29663   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29664   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29665   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29666   #    will be set to the directory where LIBOBJS objects are built.
29667   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29668   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29669 done
29670 LIBOBJS=$ac_libobjs
29671
29672 LTLIBOBJS=$ac_ltlibobjs
29673
29674
29675
29676
29677 : ${CONFIG_STATUS=./config.status}
29678 ac_write_fail=0
29679 ac_clean_files_save=$ac_clean_files
29680 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29682 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29683 as_write_fail=0
29684 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29685 #! $SHELL
29686 # Generated by $as_me.
29687 # Run this file to recreate the current configuration.
29688 # Compiler output produced by configure, useful for debugging
29689 # configure, is in config.log if it exists.
29690
29691 debug=false
29692 ac_cs_recheck=false
29693 ac_cs_silent=false
29694
29695 SHELL=\${CONFIG_SHELL-$SHELL}
29696 export SHELL
29697 _ASEOF
29698 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29699 ## -------------------- ##
29700 ## M4sh Initialization. ##
29701 ## -------------------- ##
29702
29703 # Be more Bourne compatible
29704 DUALCASE=1; export DUALCASE # for MKS sh
29705 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29706   emulate sh
29707   NULLCMD=:
29708   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29709   # is contrary to our usage.  Disable this feature.
29710   alias -g '${1+"$@"}'='"$@"'
29711   setopt NO_GLOB_SUBST
29712 else
29713   case `(set -o) 2>/dev/null` in #(
29714   *posix*) :
29715     set -o posix ;; #(
29716   *) :
29717      ;;
29718 esac
29719 fi
29720
29721
29722 as_nl='
29723 '
29724 export as_nl
29725 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29726 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29728 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29729 # Prefer a ksh shell builtin over an external printf program on Solaris,
29730 # but without wasting forks for bash or zsh.
29731 if test -z "$BASH_VERSION$ZSH_VERSION" \
29732     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29733   as_echo='print -r --'
29734   as_echo_n='print -rn --'
29735 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29736   as_echo='printf %s\n'
29737   as_echo_n='printf %s'
29738 else
29739   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29740     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29741     as_echo_n='/usr/ucb/echo -n'
29742   else
29743     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29744     as_echo_n_body='eval
29745       arg=$1;
29746       case $arg in #(
29747       *"$as_nl"*)
29748         expr "X$arg" : "X\\(.*\\)$as_nl";
29749         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29750       esac;
29751       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29752     '
29753     export as_echo_n_body
29754     as_echo_n='sh -c $as_echo_n_body as_echo'
29755   fi
29756   export as_echo_body
29757   as_echo='sh -c $as_echo_body as_echo'
29758 fi
29759
29760 # The user is always right.
29761 if test "${PATH_SEPARATOR+set}" != set; then
29762   PATH_SEPARATOR=:
29763   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29764     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29765       PATH_SEPARATOR=';'
29766   }
29767 fi
29768
29769
29770 # IFS
29771 # We need space, tab and new line, in precisely that order.  Quoting is
29772 # there to prevent editors from complaining about space-tab.
29773 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29774 # splitting by setting IFS to empty value.)
29775 IFS=" ""        $as_nl"
29776
29777 # Find who we are.  Look in the path if we contain no directory separator.
29778 case $0 in #((
29779   *[\\/]* ) as_myself=$0 ;;
29780   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29781 for as_dir in $PATH
29782 do
29783   IFS=$as_save_IFS
29784   test -z "$as_dir" && as_dir=.
29785     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29786   done
29787 IFS=$as_save_IFS
29788
29789      ;;
29790 esac
29791 # We did not find ourselves, most probably we were run as `sh COMMAND'
29792 # in which case we are not to be found in the path.
29793 if test "x$as_myself" = x; then
29794   as_myself=$0
29795 fi
29796 if test ! -f "$as_myself"; then
29797   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29798   exit 1
29799 fi
29800
29801 # Unset variables that we do not need and which cause bugs (e.g. in
29802 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29803 # suppresses any "Segmentation fault" message there.  '((' could
29804 # trigger a bug in pdksh 5.2.14.
29805 for as_var in BASH_ENV ENV MAIL MAILPATH
29806 do eval test x\${$as_var+set} = xset \
29807   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29808 done
29809 PS1='$ '
29810 PS2='> '
29811 PS4='+ '
29812
29813 # NLS nuisances.
29814 LC_ALL=C
29815 export LC_ALL
29816 LANGUAGE=C
29817 export LANGUAGE
29818
29819 # CDPATH.
29820 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29821
29822
29823 # as_fn_error ERROR [LINENO LOG_FD]
29824 # ---------------------------------
29825 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29826 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29827 # script with status $?, using 1 if that was 0.
29828 as_fn_error ()
29829 {
29830   as_status=$?; test $as_status -eq 0 && as_status=1
29831   if test "$3"; then
29832     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29833     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29834   fi
29835   $as_echo "$as_me: error: $1" >&2
29836   as_fn_exit $as_status
29837 } # as_fn_error
29838
29839
29840 # as_fn_set_status STATUS
29841 # -----------------------
29842 # Set $? to STATUS, without forking.
29843 as_fn_set_status ()
29844 {
29845   return $1
29846 } # as_fn_set_status
29847
29848 # as_fn_exit STATUS
29849 # -----------------
29850 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29851 as_fn_exit ()
29852 {
29853   set +e
29854   as_fn_set_status $1
29855   exit $1
29856 } # as_fn_exit
29857
29858 # as_fn_unset VAR
29859 # ---------------
29860 # Portably unset VAR.
29861 as_fn_unset ()
29862 {
29863   { eval $1=; unset $1;}
29864 }
29865 as_unset=as_fn_unset
29866 # as_fn_append VAR VALUE
29867 # ----------------------
29868 # Append the text in VALUE to the end of the definition contained in VAR. Take
29869 # advantage of any shell optimizations that allow amortized linear growth over
29870 # repeated appends, instead of the typical quadratic growth present in naive
29871 # implementations.
29872 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29873   eval 'as_fn_append ()
29874   {
29875     eval $1+=\$2
29876   }'
29877 else
29878   as_fn_append ()
29879   {
29880     eval $1=\$$1\$2
29881   }
29882 fi # as_fn_append
29883
29884 # as_fn_arith ARG...
29885 # ------------------
29886 # Perform arithmetic evaluation on the ARGs, and store the result in the
29887 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29888 # must be portable across $(()) and expr.
29889 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29890   eval 'as_fn_arith ()
29891   {
29892     as_val=$(( $* ))
29893   }'
29894 else
29895   as_fn_arith ()
29896   {
29897     as_val=`expr "$@" || test $? -eq 1`
29898   }
29899 fi # as_fn_arith
29900
29901
29902 if expr a : '\(a\)' >/dev/null 2>&1 &&
29903    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29904   as_expr=expr
29905 else
29906   as_expr=false
29907 fi
29908
29909 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29910   as_basename=basename
29911 else
29912   as_basename=false
29913 fi
29914
29915 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29916   as_dirname=dirname
29917 else
29918   as_dirname=false
29919 fi
29920
29921 as_me=`$as_basename -- "$0" ||
29922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29923          X"$0" : 'X\(//\)$' \| \
29924          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29925 $as_echo X/"$0" |
29926     sed '/^.*\/\([^/][^/]*\)\/*$/{
29927             s//\1/
29928             q
29929           }
29930           /^X\/\(\/\/\)$/{
29931             s//\1/
29932             q
29933           }
29934           /^X\/\(\/\).*/{
29935             s//\1/
29936             q
29937           }
29938           s/.*/./; q'`
29939
29940 # Avoid depending upon Character Ranges.
29941 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29942 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29943 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29944 as_cr_digits='0123456789'
29945 as_cr_alnum=$as_cr_Letters$as_cr_digits
29946
29947 ECHO_C= ECHO_N= ECHO_T=
29948 case `echo -n x` in #(((((
29949 -n*)
29950   case `echo 'xy\c'` in
29951   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29952   xy)  ECHO_C='\c';;
29953   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29954        ECHO_T=' ';;
29955   esac;;
29956 *)
29957   ECHO_N='-n';;
29958 esac
29959
29960 rm -f conf$$ conf$$.exe conf$$.file
29961 if test -d conf$$.dir; then
29962   rm -f conf$$.dir/conf$$.file
29963 else
29964   rm -f conf$$.dir
29965   mkdir conf$$.dir 2>/dev/null
29966 fi
29967 if (echo >conf$$.file) 2>/dev/null; then
29968   if ln -s conf$$.file conf$$ 2>/dev/null; then
29969     as_ln_s='ln -s'
29970     # ... but there are two gotchas:
29971     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29972     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29973     # In both cases, we have to default to `cp -p'.
29974     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29975       as_ln_s='cp -p'
29976   elif ln conf$$.file conf$$ 2>/dev/null; then
29977     as_ln_s=ln
29978   else
29979     as_ln_s='cp -p'
29980   fi
29981 else
29982   as_ln_s='cp -p'
29983 fi
29984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29985 rmdir conf$$.dir 2>/dev/null
29986
29987
29988 # as_fn_mkdir_p
29989 # -------------
29990 # Create "$as_dir" as a directory, including parents if necessary.
29991 as_fn_mkdir_p ()
29992 {
29993
29994   case $as_dir in #(
29995   -*) as_dir=./$as_dir;;
29996   esac
29997   test -d "$as_dir" || eval $as_mkdir_p || {
29998     as_dirs=
29999     while :; do
30000       case $as_dir in #(
30001       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30002       *) as_qdir=$as_dir;;
30003       esac
30004       as_dirs="'$as_qdir' $as_dirs"
30005       as_dir=`$as_dirname -- "$as_dir" ||
30006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30007          X"$as_dir" : 'X\(//\)[^/]' \| \
30008          X"$as_dir" : 'X\(//\)$' \| \
30009          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30010 $as_echo X"$as_dir" |
30011     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30012             s//\1/
30013             q
30014           }
30015           /^X\(\/\/\)[^/].*/{
30016             s//\1/
30017             q
30018           }
30019           /^X\(\/\/\)$/{
30020             s//\1/
30021             q
30022           }
30023           /^X\(\/\).*/{
30024             s//\1/
30025             q
30026           }
30027           s/.*/./; q'`
30028       test -d "$as_dir" && break
30029     done
30030     test -z "$as_dirs" || eval "mkdir $as_dirs"
30031   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30032
30033
30034 } # as_fn_mkdir_p
30035 if mkdir -p . 2>/dev/null; then
30036   as_mkdir_p='mkdir -p "$as_dir"'
30037 else
30038   test -d ./-p && rmdir ./-p
30039   as_mkdir_p=false
30040 fi
30041
30042 if test -x / >/dev/null 2>&1; then
30043   as_test_x='test -x'
30044 else
30045   if ls -dL / >/dev/null 2>&1; then
30046     as_ls_L_option=L
30047   else
30048     as_ls_L_option=
30049   fi
30050   as_test_x='
30051     eval sh -c '\''
30052       if test -d "$1"; then
30053         test -d "$1/.";
30054       else
30055         case $1 in #(
30056         -*)set "./$1";;
30057         esac;
30058         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30059         ???[sx]*):;;*)false;;esac;fi
30060     '\'' sh
30061   '
30062 fi
30063 as_executable_p=$as_test_x
30064
30065 # Sed expression to map a string onto a valid CPP name.
30066 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30067
30068 # Sed expression to map a string onto a valid variable name.
30069 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30070
30071
30072 exec 6>&1
30073 ## ----------------------------------- ##
30074 ## Main body of $CONFIG_STATUS script. ##
30075 ## ----------------------------------- ##
30076 _ASEOF
30077 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30078
30079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30080 # Save the log message, to keep $0 and so on meaningful, and to
30081 # report actual input values of CONFIG_FILES etc. instead of their
30082 # values after options handling.
30083 ac_log="
30084 This file was extended by $as_me, which was
30085 generated by GNU Autoconf 2.64.  Invocation command line was
30086
30087   CONFIG_FILES    = $CONFIG_FILES
30088   CONFIG_HEADERS  = $CONFIG_HEADERS
30089   CONFIG_LINKS    = $CONFIG_LINKS
30090   CONFIG_COMMANDS = $CONFIG_COMMANDS
30091   $ $0 $@
30092
30093 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30094 "
30095
30096 _ACEOF
30097
30098 case $ac_config_files in *"
30099 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30100 esac
30101
30102 case $ac_config_headers in *"
30103 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30104 esac
30105
30106
30107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30108 # Files that config.status was made for.
30109 config_files="$ac_config_files"
30110 config_headers="$ac_config_headers"
30111 config_links="$ac_config_links"
30112 config_commands="$ac_config_commands"
30113
30114 _ACEOF
30115
30116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30117 ac_cs_usage="\
30118 \`$as_me' instantiates files and other configuration actions
30119 from templates according to the current configuration.  Unless the files
30120 and actions are specified as TAGs, all are instantiated by default.
30121
30122 Usage: $0 [OPTION]... [TAG]...
30123
30124   -h, --help       print this help, then exit
30125   -V, --version    print version number and configuration settings, then exit
30126   -q, --quiet, --silent
30127                    do not print progress messages
30128   -d, --debug      don't remove temporary files
30129       --recheck    update $as_me by reconfiguring in the same conditions
30130       --file=FILE[:TEMPLATE]
30131                    instantiate the configuration file FILE
30132       --header=FILE[:TEMPLATE]
30133                    instantiate the configuration header FILE
30134
30135 Configuration files:
30136 $config_files
30137
30138 Configuration headers:
30139 $config_headers
30140
30141 Configuration links:
30142 $config_links
30143
30144 Configuration commands:
30145 $config_commands
30146
30147 Report bugs to the package provider."
30148
30149 _ACEOF
30150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30151 ac_cs_version="\\
30152 config.status
30153 configured by $0, generated by GNU Autoconf 2.64,
30154   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30155
30156 Copyright (C) 2009 Free Software Foundation, Inc.
30157 This config.status script is free software; the Free Software Foundation
30158 gives unlimited permission to copy, distribute and modify it."
30159
30160 ac_pwd='$ac_pwd'
30161 srcdir='$srcdir'
30162 AWK='$AWK'
30163 test -n "\$AWK" || AWK=awk
30164 _ACEOF
30165
30166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30167 # The default lists apply if the user does not specify any file.
30168 ac_need_defaults=:
30169 while test $# != 0
30170 do
30171   case $1 in
30172   --*=*)
30173     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30174     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30175     ac_shift=:
30176     ;;
30177   *)
30178     ac_option=$1
30179     ac_optarg=$2
30180     ac_shift=shift
30181     ;;
30182   esac
30183
30184   case $ac_option in
30185   # Handling of the options.
30186   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30187     ac_cs_recheck=: ;;
30188   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30189     $as_echo "$ac_cs_version"; exit ;;
30190   --debug | --debu | --deb | --de | --d | -d )
30191     debug=: ;;
30192   --file | --fil | --fi | --f )
30193     $ac_shift
30194     case $ac_optarg in
30195     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30196     esac
30197     as_fn_append CONFIG_FILES " '$ac_optarg'"
30198     ac_need_defaults=false;;
30199   --header | --heade | --head | --hea )
30200     $ac_shift
30201     case $ac_optarg in
30202     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30203     esac
30204     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30205     ac_need_defaults=false;;
30206   --he | --h)
30207     # Conflict between --help and --header
30208     as_fn_error "ambiguous option: \`$1'
30209 Try \`$0 --help' for more information.";;
30210   --help | --hel | -h )
30211     $as_echo "$ac_cs_usage"; exit ;;
30212   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30213   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30214     ac_cs_silent=: ;;
30215
30216   # This is an error.
30217   -*) as_fn_error "unrecognized option: \`$1'
30218 Try \`$0 --help' for more information." ;;
30219
30220   *) as_fn_append ac_config_targets " $1"
30221      ac_need_defaults=false ;;
30222
30223   esac
30224   shift
30225 done
30226
30227 ac_configure_extra_args=
30228
30229 if $ac_cs_silent; then
30230   exec 6>/dev/null
30231   ac_configure_extra_args="$ac_configure_extra_args --silent"
30232 fi
30233
30234 _ACEOF
30235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30236 if \$ac_cs_recheck; then
30237   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30238   shift
30239   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30240   CONFIG_SHELL='$SHELL'
30241   export CONFIG_SHELL
30242   exec "\$@"
30243 fi
30244
30245 _ACEOF
30246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30247 exec 5>>config.log
30248 {
30249   echo
30250   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30251 ## Running $as_me. ##
30252 _ASBOX
30253   $as_echo "$ac_log"
30254 } >&5
30255
30256 _ACEOF
30257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30258 #
30259 # INIT-COMMANDS
30260 #
30261 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30262 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30263 subdirs='$subdirs'
30264
30265 _ACEOF
30266
30267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30268
30269 # Handling of arguments.
30270 for ac_config_target in $ac_config_targets
30271 do
30272   case $ac_config_target in
30273     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30274     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30275     "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30276     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30277     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30278     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30279     "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30280     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30281     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30282
30283   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30284   esac
30285 done
30286
30287
30288 # If the user did not use the arguments to specify the items to instantiate,
30289 # then the envvar interface is used.  Set only those that are not.
30290 # We use the long form for the default assignment because of an extremely
30291 # bizarre bug on SunOS 4.1.3.
30292 if $ac_need_defaults; then
30293   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30294   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30295   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30296   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30297 fi
30298
30299 # Have a temporary directory for convenience.  Make it in the build tree
30300 # simply because there is no reason against having it here, and in addition,
30301 # creating and moving files from /tmp can sometimes cause problems.
30302 # Hook for its removal unless debugging.
30303 # Note that there is a small window in which the directory will not be cleaned:
30304 # after its creation but before its name has been assigned to `$tmp'.
30305 $debug ||
30306 {
30307   tmp=
30308   trap 'exit_status=$?
30309   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30310 ' 0
30311   trap 'as_fn_exit 1' 1 2 13 15
30312 }
30313 # Create a (secure) tmp directory for tmp files.
30314
30315 {
30316   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30317   test -n "$tmp" && test -d "$tmp"
30318 }  ||
30319 {
30320   tmp=./conf$$-$RANDOM
30321   (umask 077 && mkdir "$tmp")
30322 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30323
30324 # Set up the scripts for CONFIG_FILES section.
30325 # No need to generate them if there are no CONFIG_FILES.
30326 # This happens for instance with `./config.status config.h'.
30327 if test -n "$CONFIG_FILES"; then
30328
30329 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30330   ac_cs_awk_getline=:
30331   ac_cs_awk_pipe_init=
30332   ac_cs_awk_read_file='
30333       while ((getline aline < (F[key])) > 0)
30334         print(aline)
30335       close(F[key])'
30336   ac_cs_awk_pipe_fini=
30337 else
30338   ac_cs_awk_getline=false
30339   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30340   ac_cs_awk_read_file='
30341       print "|#_!!_#|"
30342       print "cat " F[key] " &&"
30343       '$ac_cs_awk_pipe_init
30344   # The final `:' finishes the AND list.
30345   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30346 fi
30347 ac_cr=`echo X | tr X '\015'`
30348 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30349 # But we know of no other shell where ac_cr would be empty at this
30350 # point, so we can use a bashism as a fallback.
30351 if test "x$ac_cr" = x; then
30352   eval ac_cr=\$\'\\r\'
30353 fi
30354 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30355 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30356   ac_cs_awk_cr='\r'
30357 else
30358   ac_cs_awk_cr=$ac_cr
30359 fi
30360
30361 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30362 _ACEOF
30363
30364 # Create commands to substitute file output variables.
30365 {
30366   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30367   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30368   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30369   echo "_ACAWK" &&
30370   echo "_ACEOF"
30371 } >conf$$files.sh &&
30372 . ./conf$$files.sh ||
30373   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30374 rm -f conf$$files.sh
30375
30376 {
30377   echo "cat >conf$$subs.awk <<_ACEOF" &&
30378   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30379   echo "_ACEOF"
30380 } >conf$$subs.sh ||
30381   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30382 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30383 ac_delim='%!_!# '
30384 for ac_last_try in false false false false false :; do
30385   . ./conf$$subs.sh ||
30386     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30387
30388   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30389   if test $ac_delim_n = $ac_delim_num; then
30390     break
30391   elif $ac_last_try; then
30392     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30393   else
30394     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30395   fi
30396 done
30397 rm -f conf$$subs.sh
30398
30399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30400 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30401 _ACEOF
30402 sed -n '
30403 h
30404 s/^/S["/; s/!.*/"]=/
30405 p
30406 g
30407 s/^[^!]*!//
30408 :repl
30409 t repl
30410 s/'"$ac_delim"'$//
30411 t delim
30412 :nl
30413 h
30414 s/\(.\{148\}\).*/\1/
30415 t more1
30416 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30417 p
30418 n
30419 b repl
30420 :more1
30421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30422 p
30423 g
30424 s/.\{148\}//
30425 t nl
30426 :delim
30427 h
30428 s/\(.\{148\}\).*/\1/
30429 t more2
30430 s/["\\]/\\&/g; s/^/"/; s/$/"/
30431 p
30432 b
30433 :more2
30434 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30435 p
30436 g
30437 s/.\{148\}//
30438 t delim
30439 ' <conf$$subs.awk | sed '
30440 /^[^""]/{
30441   N
30442   s/\n//
30443 }
30444 ' >>$CONFIG_STATUS || ac_write_fail=1
30445 rm -f conf$$subs.awk
30446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30447 _ACAWK
30448 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30449   for (key in S) S_is_set[key] = 1
30450   FS = "\a"
30451   \$ac_cs_awk_pipe_init
30452 }
30453 {
30454   line = $ 0
30455   nfields = split(line, field, "@")
30456   substed = 0
30457   len = length(field[1])
30458   for (i = 2; i < nfields; i++) {
30459     key = field[i]
30460     keylen = length(key)
30461     if (S_is_set[key]) {
30462       value = S[key]
30463       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30464       len += length(value) + length(field[++i])
30465       substed = 1
30466     } else
30467       len += 1 + keylen
30468   }
30469   if (nfields == 3 && !substed) {
30470     key = field[2]
30471     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
30472       \$ac_cs_awk_read_file
30473       next
30474     }
30475   }
30476   print line
30477 }
30478 \$ac_cs_awk_pipe_fini
30479 _ACAWK
30480 _ACEOF
30481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30482 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30483   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30484 else
30485   cat
30486 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30487   || as_fn_error "could not setup config files machinery" "$LINENO" 5
30488 _ACEOF
30489
30490 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30491 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30492 # trailing colons and then remove the whole line if VPATH becomes empty
30493 # (actually we leave an empty line to preserve line numbers).
30494 if test "x$srcdir" = x.; then
30495   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30496 s/:*\$(srcdir):*/:/
30497 s/:*\${srcdir}:*/:/
30498 s/:*@srcdir@:*/:/
30499 s/^\([^=]*=[     ]*\):*/\1/
30500 s/:*$//
30501 s/^[^=]*=[       ]*$//
30502 }'
30503 fi
30504
30505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30506 fi # test -n "$CONFIG_FILES"
30507
30508 # Set up the scripts for CONFIG_HEADERS section.
30509 # No need to generate them if there are no CONFIG_HEADERS.
30510 # This happens for instance with `./config.status Makefile'.
30511 if test -n "$CONFIG_HEADERS"; then
30512 cat >"$tmp/defines.awk" <<\_ACAWK ||
30513 BEGIN {
30514 _ACEOF
30515
30516 # Transform confdefs.h into an awk script `defines.awk', embedded as
30517 # here-document in config.status, that substitutes the proper values into
30518 # config.h.in to produce config.h.
30519
30520 # Create a delimiter string that does not exist in confdefs.h, to ease
30521 # handling of long lines.
30522 ac_delim='%!_!# '
30523 for ac_last_try in false false :; do
30524   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30525   if test -z "$ac_t"; then
30526     break
30527   elif $ac_last_try; then
30528     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30529   else
30530     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30531   fi
30532 done
30533
30534 # For the awk script, D is an array of macro values keyed by name,
30535 # likewise P contains macro parameters if any.  Preserve backslash
30536 # newline sequences.
30537
30538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30539 sed -n '
30540 s/.\{148\}/&'"$ac_delim"'/g
30541 t rset
30542 :rset
30543 s/^[     ]*#[    ]*define[       ][      ]*/ /
30544 t def
30545 d
30546 :def
30547 s/\\$//
30548 t bsnl
30549 s/["\\]/\\&/g
30550 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30551 D["\1"]=" \3"/p
30552 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30553 d
30554 :bsnl
30555 s/["\\]/\\&/g
30556 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30557 D["\1"]=" \3\\\\\\n"\\/p
30558 t cont
30559 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30560 t cont
30561 d
30562 :cont
30563 n
30564 s/.\{148\}/&'"$ac_delim"'/g
30565 t clear
30566 :clear
30567 s/\\$//
30568 t bsnlc
30569 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30570 d
30571 :bsnlc
30572 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30573 b cont
30574 ' <confdefs.h | sed '
30575 s/'"$ac_delim"'/"\\\
30576 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30577
30578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30579   for (key in D) D_is_set[key] = 1
30580   FS = "\a"
30581 }
30582 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30583   line = \$ 0
30584   split(line, arg, " ")
30585   if (arg[1] == "#") {
30586     defundef = arg[2]
30587     mac1 = arg[3]
30588   } else {
30589     defundef = substr(arg[1], 2)
30590     mac1 = arg[2]
30591   }
30592   split(mac1, mac2, "(") #)
30593   macro = mac2[1]
30594   prefix = substr(line, 1, index(line, defundef) - 1)
30595   if (D_is_set[macro]) {
30596     # Preserve the white space surrounding the "#".
30597     print prefix "define", macro P[macro] D[macro]
30598     next
30599   } else {
30600     # Replace #undef with comments.  This is necessary, for example,
30601     # in the case of _POSIX_SOURCE, which is predefined and required
30602     # on some systems where configure will not decide to define it.
30603     if (defundef == "undef") {
30604       print "/*", prefix defundef, macro, "*/"
30605       next
30606     }
30607   }
30608 }
30609 { print }
30610 _ACAWK
30611 _ACEOF
30612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30613   as_fn_error "could not setup config headers machinery" "$LINENO" 5
30614 fi # test -n "$CONFIG_HEADERS"
30615
30616
30617 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30618 shift
30619 for ac_tag
30620 do
30621   case $ac_tag in
30622   :[FHLC]) ac_mode=$ac_tag; continue;;
30623   esac
30624   case $ac_mode$ac_tag in
30625   :[FHL]*:*);;
30626   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30627   :[FH]-) ac_tag=-:-;;
30628   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30629   esac
30630   ac_save_IFS=$IFS
30631   IFS=:
30632   set x $ac_tag
30633   IFS=$ac_save_IFS
30634   shift
30635   ac_file=$1
30636   shift
30637
30638   case $ac_mode in
30639   :L) ac_source=$1;;
30640   :[FH])
30641     ac_file_inputs=
30642     for ac_f
30643     do
30644       case $ac_f in
30645       -) ac_f="$tmp/stdin";;
30646       *) # Look for the file first in the build tree, then in the source tree
30647          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30648          # because $ac_f cannot contain `:'.
30649          test -f "$ac_f" ||
30650            case $ac_f in
30651            [\\/$]*) false;;
30652            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30653            esac ||
30654            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30655       esac
30656       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30657       as_fn_append ac_file_inputs " '$ac_f'"
30658     done
30659
30660     # Let's still pretend it is `configure' which instantiates (i.e., don't
30661     # use $as_me), people would be surprised to read:
30662     #    /* config.h.  Generated by config.status.  */
30663     configure_input='Generated from '`
30664           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30665         `' by configure.'
30666     if test x"$ac_file" != x-; then
30667       configure_input="$ac_file.  $configure_input"
30668       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30669 $as_echo "$as_me: creating $ac_file" >&6;}
30670     fi
30671     # Neutralize special characters interpreted by sed in replacement strings.
30672     case $configure_input in #(
30673     *\&* | *\|* | *\\* )
30674        ac_sed_conf_input=`$as_echo "$configure_input" |
30675        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30676     *) ac_sed_conf_input=$configure_input;;
30677     esac
30678
30679     case $ac_tag in
30680     *:-:* | *:-) cat >"$tmp/stdin" \
30681       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30682     esac
30683     ;;
30684   esac
30685
30686   ac_dir=`$as_dirname -- "$ac_file" ||
30687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30688          X"$ac_file" : 'X\(//\)[^/]' \| \
30689          X"$ac_file" : 'X\(//\)$' \| \
30690          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30691 $as_echo X"$ac_file" |
30692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30693             s//\1/
30694             q
30695           }
30696           /^X\(\/\/\)[^/].*/{
30697             s//\1/
30698             q
30699           }
30700           /^X\(\/\/\)$/{
30701             s//\1/
30702             q
30703           }
30704           /^X\(\/\).*/{
30705             s//\1/
30706             q
30707           }
30708           s/.*/./; q'`
30709   as_dir="$ac_dir"; as_fn_mkdir_p
30710   ac_builddir=.
30711
30712 case "$ac_dir" in
30713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30714 *)
30715   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30716   # A ".." for each directory in $ac_dir_suffix.
30717   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30718   case $ac_top_builddir_sub in
30719   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30720   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30721   esac ;;
30722 esac
30723 ac_abs_top_builddir=$ac_pwd
30724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30725 # for backward compatibility:
30726 ac_top_builddir=$ac_top_build_prefix
30727
30728 case $srcdir in
30729   .)  # We are building in place.
30730     ac_srcdir=.
30731     ac_top_srcdir=$ac_top_builddir_sub
30732     ac_abs_top_srcdir=$ac_pwd ;;
30733   [\\/]* | ?:[\\/]* )  # Absolute name.
30734     ac_srcdir=$srcdir$ac_dir_suffix;
30735     ac_top_srcdir=$srcdir
30736     ac_abs_top_srcdir=$srcdir ;;
30737   *) # Relative name.
30738     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30739     ac_top_srcdir=$ac_top_build_prefix$srcdir
30740     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30741 esac
30742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30743
30744
30745   case $ac_mode in
30746   :F)
30747   #
30748   # CONFIG_FILE
30749   #
30750
30751 _ACEOF
30752
30753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30754 # If the template does not know about datarootdir, expand it.
30755 # FIXME: This hack should be removed a few years after 2.60.
30756 ac_datarootdir_hack=; ac_datarootdir_seen=
30757 ac_sed_dataroot='
30758 /datarootdir/ {
30759   p
30760   q
30761 }
30762 /@datadir@/p
30763 /@docdir@/p
30764 /@infodir@/p
30765 /@localedir@/p
30766 /@mandir@/p'
30767 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30768 *datarootdir*) ac_datarootdir_seen=yes;;
30769 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30770   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30771 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30772 _ACEOF
30773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30774   ac_datarootdir_hack='
30775   s&@datadir@&$datadir&g
30776   s&@docdir@&$docdir&g
30777   s&@infodir@&$infodir&g
30778   s&@localedir@&$localedir&g
30779   s&@mandir@&$mandir&g
30780   s&\\\${datarootdir}&$datarootdir&g' ;;
30781 esac
30782 _ACEOF
30783
30784 # Neutralize VPATH when `$srcdir' = `.'.
30785 # Shell code in configure.ac might set extrasub.
30786 # FIXME: do we really want to maintain this feature?
30787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30788 ac_sed_extra="$ac_vpsub
30789 $extrasub
30790 _ACEOF
30791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30792 :t
30793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30794 s|@configure_input@|$ac_sed_conf_input|;t t
30795 s&@top_builddir@&$ac_top_builddir_sub&;t t
30796 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30797 s&@srcdir@&$ac_srcdir&;t t
30798 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30799 s&@top_srcdir@&$ac_top_srcdir&;t t
30800 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30801 s&@builddir@&$ac_builddir&;t t
30802 s&@abs_builddir@&$ac_abs_builddir&;t t
30803 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30804 $ac_datarootdir_hack
30805 "
30806 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30807 if $ac_cs_awk_getline; then
30808   $AWK -f "$tmp/subs.awk"
30809 else
30810   $AWK -f "$tmp/subs.awk" | $SHELL
30811 fi >$tmp/out \
30812   || as_fn_error "could not create $ac_file" "$LINENO" 5
30813
30814 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30815   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30816   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30817   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30818 which seems to be undefined.  Please make sure it is defined." >&5
30819 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30820 which seems to be undefined.  Please make sure it is defined." >&2;}
30821
30822   rm -f "$tmp/stdin"
30823   case $ac_file in
30824   -) cat "$tmp/out" && rm -f "$tmp/out";;
30825   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30826   esac \
30827   || as_fn_error "could not create $ac_file" "$LINENO" 5
30828  ;;
30829   :H)
30830   #
30831   # CONFIG_HEADER
30832   #
30833   if test x"$ac_file" != x-; then
30834     {
30835       $as_echo "/* $configure_input  */" \
30836       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30837     } >"$tmp/config.h" \
30838       || as_fn_error "could not create $ac_file" "$LINENO" 5
30839     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30840       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30841 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30842     else
30843       rm -f "$ac_file"
30844       mv "$tmp/config.h" "$ac_file" \
30845         || as_fn_error "could not create $ac_file" "$LINENO" 5
30846     fi
30847   else
30848     $as_echo "/* $configure_input  */" \
30849       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30850       || as_fn_error "could not create -" "$LINENO" 5
30851   fi
30852  ;;
30853   :L)
30854   #
30855   # CONFIG_LINK
30856   #
30857
30858   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30859     :
30860   else
30861     # Prefer the file from the source tree if names are identical.
30862     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30863       ac_source=$srcdir/$ac_source
30864     fi
30865
30866     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30867 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30868
30869     if test ! -r "$ac_source"; then
30870       as_fn_error "$ac_source: file not found" "$LINENO" 5
30871     fi
30872     rm -f "$ac_file"
30873
30874     # Try a relative symlink, then a hard link, then a copy.
30875     case $srcdir in
30876     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30877         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30878     esac
30879     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30880       ln "$ac_source" "$ac_file" 2>/dev/null ||
30881       cp -p "$ac_source" "$ac_file" ||
30882       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30883   fi
30884  ;;
30885   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30886 $as_echo "$as_me: executing $ac_file commands" >&6;}
30887  ;;
30888   esac
30889
30890
30891   case $ac_file$ac_mode in
30892     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30893     "gccdepdir":C)
30894   ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30895   for lang in $subdirs c-family common
30896   do
30897       ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30898   done ;;
30899     "as":F) chmod +x as ;;
30900     "collect-ld":F) chmod +x collect-ld ;;
30901     "nm":F) chmod +x nm ;;
30902     "default":C)
30903 case ${CONFIG_HEADERS} in
30904   *auto-host.h:config.in*)
30905   echo > cstamp-h ;;
30906 esac
30907 # Make sure all the subdirs exist.
30908 for d in $subdirs doc build common c-family
30909 do
30910     test -d $d || mkdir $d
30911 done
30912  ;;
30913
30914   esac
30915 done # for ac_tag
30916
30917
30918 as_fn_exit 0
30919 _ACEOF
30920 ac_clean_files=$ac_clean_files_save
30921
30922 test $ac_write_fail = 0 ||
30923   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30924
30925
30926 # configure is writing to config.log, and then calls config.status.
30927 # config.status does its own redirection, appending to config.log.
30928 # Unfortunately, on DOS this fails, as config.log is still kept open
30929 # by configure, so config.status won't be able to write to it; its
30930 # output is simply discarded.  So we exec the FD to /dev/null,
30931 # effectively closing config.log, so it can be properly (re)opened and
30932 # appended to by config.status.  When coming back to configure, we
30933 # need to make the FD available again.
30934 if test "$no_create" != yes; then
30935   ac_cs_success=:
30936   ac_config_status_args=
30937   test "$silent" = yes &&
30938     ac_config_status_args="$ac_config_status_args --quiet"
30939   exec 5>/dev/null
30940   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30941   exec 5>>config.log
30942   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30943   # would make configure fail if this is the last instruction.
30944   $ac_cs_success || as_fn_exit $?
30945 fi
30946 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30947   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30948 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30949 fi
30950
30951