OSDN Git Service

* dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Go for Go.
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir
641 gcc_config_arguments
642 float_h_file
643 extra_programs
644 extra_passes
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 GGC
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CFLAGS
707 CC_FOR_BUILD
708 inhibit_libc
709 SYSTEM_HEADER_DIR
710 ALL
711 CROSS
712 CATOBJEXT
713 GENCAT
714 INSTOBJEXT
715 DATADIRNAME
716 CATALOGS
717 POSUB
718 GMSGFMT
719 XGETTEXT
720 INCINTL
721 LIBINTL_DEP
722 LIBINTL
723 USE_NLS
724 extra_opt_files
725 extra_modes_file
726 NATIVE_SYSTEM_HEADER_DIR
727 objext
728 manext
729 LIBICONV_DEP
730 LTLIBICONV
731 LIBICONV
732 LDEXP_LIB
733 EXTRA_GCC_LIBS
734 GNAT_LIBEXC
735 COLLECT2_LIBS
736 CXXCPP
737 AR
738 NM
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
751 LN
752 LN_S
753 AWK
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 SYSROOT_CFLAGS_FOR_TARGET
763 enable_shared
764 enable_fixed_point
765 enable_decimal_float
766 enable_multilib
767 ENABLE_BUILD_WITH_CXX
768 coverage_flags
769 valgrind_command
770 valgrind_path_defines
771 valgrind_path
772 TREEBROWSER
773 nocommon_flag
774 noexception_flags
775 warn_cxxflags
776 warn_cflags
777 c_strict_warn
778 strict_warn
779 c_loose_warn
780 loose_warn
781 EGREP
782 GREP
783 CPP
784 PICFLAG_FOR_TARGET
785 OUTPUT_OPTION
786 NO_MINUS_C_MINUS_O
787 GNATMAKE
788 GNATBIND
789 ac_ct_CXX
790 CXXFLAGS
791 CXX
792 OBJEXT
793 EXEEXT
794 ac_ct_CC
795 CPPFLAGS
796 LDFLAGS
797 CFLAGS
798 CC
799 GENINSRC
800 target_subdir
801 host_subdir
802 build_subdir
803 build_libsubdir
804 target_noncanonical
805 target_os
806 target_vendor
807 target_cpu
808 target
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 target_alias
818 host_alias
819 build_alias
820 LIBS
821 ECHO_T
822 ECHO_N
823 ECHO_C
824 DEFS
825 mandir
826 localedir
827 libdir
828 psdir
829 pdfdir
830 dvidir
831 htmldir
832 infodir
833 docdir
834 oldincludedir
835 includedir
836 localstatedir
837 sharedstatedir
838 sysconfdir
839 datadir
840 datarootdir
841 libexecdir
842 sbindir
843 bindir
844 program_transform_name
845 prefix
846 exec_prefix
847 PACKAGE_URL
848 PACKAGE_BUGREPORT
849 PACKAGE_STRING
850 PACKAGE_VERSION
851 PACKAGE_TARNAME
852 PACKAGE_NAME
853 PATH_SEPARATOR
854 SHELL'
855 ac_subst_files='option_includes
856 language_hooks'
857 ac_user_opts='
858 enable_option_checking
859 with_build_libsubdir
860 with_local_prefix
861 with_gxx_include_dir
862 with_cpp_install_dir
863 enable_generated_files_in_srcdir
864 with_gnu_ld
865 with_ld
866 with_demangler_in_ld
867 with_gnu_as
868 with_as
869 enable_largefile
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_specs
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_initfini_array
896 enable_sjlj_exceptions
897 enable_secureplt
898 enable_leading_mingw64_underscores
899 enable_cld
900 enable_frame_pointer
901 enable_win32_registry
902 enable_static
903 with_pic
904 enable_fast_install
905 enable_libtool_lock
906 with_plugin_ld
907 enable_gnu_indirect_function
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 enable_plugin
917 enable_libquadmath_support
918 with_linker_hash_style
919 '
920       ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CXX
929 CXXFLAGS
930 CCC
931 CPP
932 CXXCPP
933 GMPLIBS
934 GMPINC
935 PPLLIBS
936 PPLINC
937 CLOOGLIBS
938 CLOOGINC'
939
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993   # If the previous option needs an argument, assign it.
994   if test -n "$ac_prev"; then
995     eval $ac_prev=\$ac_option
996     ac_prev=
997     continue
998   fi
999
1000   case $ac_option in
1001   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002   *)    ac_optarg=yes ;;
1003   esac
1004
1005   # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007   case $ac_dashdash$ac_option in
1008   --)
1009     ac_dashdash=yes ;;
1010
1011   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012     ac_prev=bindir ;;
1013   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014     bindir=$ac_optarg ;;
1015
1016   -build | --build | --buil | --bui | --bu)
1017     ac_prev=build_alias ;;
1018   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019     build_alias=$ac_optarg ;;
1020
1021   -cache-file | --cache-file | --cache-fil | --cache-fi \
1022   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023     ac_prev=cache_file ;;
1024   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026     cache_file=$ac_optarg ;;
1027
1028   --config-cache | -C)
1029     cache_file=config.cache ;;
1030
1031   -datadir | --datadir | --datadi | --datad)
1032     ac_prev=datadir ;;
1033   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034     datadir=$ac_optarg ;;
1035
1036   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037   | --dataroo | --dataro | --datar)
1038     ac_prev=datarootdir ;;
1039   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041     datarootdir=$ac_optarg ;;
1042
1043   -disable-* | --disable-*)
1044     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047       as_fn_error "invalid feature name: $ac_useropt"
1048     ac_useropt_orig=$ac_useropt
1049     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050     case $ac_user_opts in
1051       *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055          ac_unrecognized_sep=', ';;
1056     esac
1057     eval enable_$ac_useropt=no ;;
1058
1059   -docdir | --docdir | --docdi | --doc | --do)
1060     ac_prev=docdir ;;
1061   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062     docdir=$ac_optarg ;;
1063
1064   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065     ac_prev=dvidir ;;
1066   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067     dvidir=$ac_optarg ;;
1068
1069   -enable-* | --enable-*)
1070     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073       as_fn_error "invalid feature name: $ac_useropt"
1074     ac_useropt_orig=$ac_useropt
1075     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076     case $ac_user_opts in
1077       *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081          ac_unrecognized_sep=', ';;
1082     esac
1083     eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087   | --exec | --exe | --ex)
1088     ac_prev=exec_prefix ;;
1089   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091   | --exec=* | --exe=* | --ex=*)
1092     exec_prefix=$ac_optarg ;;
1093
1094   -gas | --gas | --ga | --g)
1095     # Obsolete; use --with-gas.
1096     with_gas=yes ;;
1097
1098   -help | --help | --hel | --he | -h)
1099     ac_init_help=long ;;
1100   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101     ac_init_help=recursive ;;
1102   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103     ac_init_help=short ;;
1104
1105   -host | --host | --hos | --ho)
1106     ac_prev=host_alias ;;
1107   -host=* | --host=* | --hos=* | --ho=*)
1108     host_alias=$ac_optarg ;;
1109
1110   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111     ac_prev=htmldir ;;
1112   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113   | --ht=*)
1114     htmldir=$ac_optarg ;;
1115
1116   -includedir | --includedir | --includedi | --included | --include \
1117   | --includ | --inclu | --incl | --inc)
1118     ac_prev=includedir ;;
1119   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120   | --includ=* | --inclu=* | --incl=* | --inc=*)
1121     includedir=$ac_optarg ;;
1122
1123   -infodir | --infodir | --infodi | --infod | --info | --inf)
1124     ac_prev=infodir ;;
1125   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126     infodir=$ac_optarg ;;
1127
1128   -libdir | --libdir | --libdi | --libd)
1129     ac_prev=libdir ;;
1130   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131     libdir=$ac_optarg ;;
1132
1133   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134   | --libexe | --libex | --libe)
1135     ac_prev=libexecdir ;;
1136   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137   | --libexe=* | --libex=* | --libe=*)
1138     libexecdir=$ac_optarg ;;
1139
1140   -localedir | --localedir | --localedi | --localed | --locale)
1141     ac_prev=localedir ;;
1142   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143     localedir=$ac_optarg ;;
1144
1145   -localstatedir | --localstatedir | --localstatedi | --localstated \
1146   | --localstate | --localstat | --localsta | --localst | --locals)
1147     ac_prev=localstatedir ;;
1148   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150     localstatedir=$ac_optarg ;;
1151
1152   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153     ac_prev=mandir ;;
1154   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155     mandir=$ac_optarg ;;
1156
1157   -nfp | --nfp | --nf)
1158     # Obsolete; use --without-fp.
1159     with_fp=no ;;
1160
1161   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162   | --no-cr | --no-c | -n)
1163     no_create=yes ;;
1164
1165   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167     no_recursion=yes ;;
1168
1169   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171   | --oldin | --oldi | --old | --ol | --o)
1172     ac_prev=oldincludedir ;;
1173   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176     oldincludedir=$ac_optarg ;;
1177
1178   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179     ac_prev=prefix ;;
1180   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181     prefix=$ac_optarg ;;
1182
1183   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184   | --program-pre | --program-pr | --program-p)
1185     ac_prev=program_prefix ;;
1186   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188     program_prefix=$ac_optarg ;;
1189
1190   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191   | --program-suf | --program-su | --program-s)
1192     ac_prev=program_suffix ;;
1193   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195     program_suffix=$ac_optarg ;;
1196
1197   -program-transform-name | --program-transform-name \
1198   | --program-transform-nam | --program-transform-na \
1199   | --program-transform-n | --program-transform- \
1200   | --program-transform | --program-transfor \
1201   | --program-transfo | --program-transf \
1202   | --program-trans | --program-tran \
1203   | --progr-tra | --program-tr | --program-t)
1204     ac_prev=program_transform_name ;;
1205   -program-transform-name=* | --program-transform-name=* \
1206   | --program-transform-nam=* | --program-transform-na=* \
1207   | --program-transform-n=* | --program-transform-=* \
1208   | --program-transform=* | --program-transfor=* \
1209   | --program-transfo=* | --program-transf=* \
1210   | --program-trans=* | --program-tran=* \
1211   | --progr-tra=* | --program-tr=* | --program-t=*)
1212     program_transform_name=$ac_optarg ;;
1213
1214   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215     ac_prev=pdfdir ;;
1216   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217     pdfdir=$ac_optarg ;;
1218
1219   -psdir | --psdir | --psdi | --psd | --ps)
1220     ac_prev=psdir ;;
1221   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222     psdir=$ac_optarg ;;
1223
1224   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225   | -silent | --silent | --silen | --sile | --sil)
1226     silent=yes ;;
1227
1228   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229     ac_prev=sbindir ;;
1230   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231   | --sbi=* | --sb=*)
1232     sbindir=$ac_optarg ;;
1233
1234   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236   | --sharedst | --shareds | --shared | --share | --shar \
1237   | --sha | --sh)
1238     ac_prev=sharedstatedir ;;
1239   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242   | --sha=* | --sh=*)
1243     sharedstatedir=$ac_optarg ;;
1244
1245   -site | --site | --sit)
1246     ac_prev=site ;;
1247   -site=* | --site=* | --sit=*)
1248     site=$ac_optarg ;;
1249
1250   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251     ac_prev=srcdir ;;
1252   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253     srcdir=$ac_optarg ;;
1254
1255   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256   | --syscon | --sysco | --sysc | --sys | --sy)
1257     ac_prev=sysconfdir ;;
1258   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260     sysconfdir=$ac_optarg ;;
1261
1262   -target | --target | --targe | --targ | --tar | --ta | --t)
1263     ac_prev=target_alias ;;
1264   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265     target_alias=$ac_optarg ;;
1266
1267   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268     verbose=yes ;;
1269
1270   -version | --version | --versio | --versi | --vers | -V)
1271     ac_init_version=: ;;
1272
1273   -with-* | --with-*)
1274     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277       as_fn_error "invalid package name: $ac_useropt"
1278     ac_useropt_orig=$ac_useropt
1279     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280     case $ac_user_opts in
1281       *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285          ac_unrecognized_sep=', ';;
1286     esac
1287     eval with_$ac_useropt=\$ac_optarg ;;
1288
1289   -without-* | --without-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       as_fn_error "invalid package name: $ac_useropt"
1294     ac_useropt_orig=$ac_useropt
1295     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296     case $ac_user_opts in
1297       *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301          ac_unrecognized_sep=', ';;
1302     esac
1303     eval with_$ac_useropt=no ;;
1304
1305   --x)
1306     # Obsolete; use --with-x.
1307     with_x=yes ;;
1308
1309   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310   | --x-incl | --x-inc | --x-in | --x-i)
1311     ac_prev=x_includes ;;
1312   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314     x_includes=$ac_optarg ;;
1315
1316   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318     ac_prev=x_libraries ;;
1319   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321     x_libraries=$ac_optarg ;;
1322
1323   -*) as_fn_error "unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1325     ;;
1326
1327   *=*)
1328     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329     # Reject names that are not valid shell variable names.
1330     case $ac_envvar in #(
1331       '' | [0-9]* | *[!_$as_cr_alnum]* )
1332       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333     esac
1334     eval $ac_envvar=\$ac_optarg
1335     export $ac_envvar ;;
1336
1337   *)
1338     # FIXME: should be removed in autoconf 3.0.
1339     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343     ;;
1344
1345   esac
1346 done
1347
1348 if test -n "$ac_prev"; then
1349   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350   as_fn_error "missing argument to $ac_option"
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354   case $enable_option_checking in
1355     no) ;;
1356     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1357     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358   esac
1359 fi
1360
1361 # Check all directory arguments for consistency.
1362 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363                 datadir sysconfdir sharedstatedir localstatedir includedir \
1364                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365                 libdir localedir mandir
1366 do
1367   eval ac_val=\$$ac_var
1368   # Remove trailing slashes.
1369   case $ac_val in
1370     */ )
1371       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372       eval $ac_var=\$ac_val;;
1373   esac
1374   # Be sure to have absolute directory names.
1375   case $ac_val in
1376     [\\/$]* | ?:[\\/]* )  continue;;
1377     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378   esac
1379   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380 done
1381
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1388
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391   if test "x$build_alias" = x; then
1392     cross_compiling=maybe
1393     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394     If a cross compiler is detected then cross compile mode will be used." >&2
1395   elif test "x$build_alias" != "x$host_alias"; then
1396     cross_compiling=yes
1397   fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409   as_fn_error "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411   as_fn_error "pwd does not report name of working directory"
1412
1413
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416   ac_srcdir_defaulted=yes
1417   # Try the directory containing this script, then the parent directory.
1418   ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420          X"$as_myself" : 'X\(//\)[^/]' \| \
1421          X"$as_myself" : 'X\(//\)$' \| \
1422          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\/\)[^/].*/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\/\)$/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\).*/{
1437             s//\1/
1438             q
1439           }
1440           s/.*/./; q'`
1441   srcdir=$ac_confdir
1442   if test ! -r "$srcdir/$ac_unique_file"; then
1443     srcdir=..
1444   fi
1445 else
1446   ac_srcdir_defaulted=no
1447 fi
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451 fi
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455         pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458   srcdir=.
1459 fi
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468   eval ac_env_${ac_var}_value=\$${ac_var}
1469   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1472
1473 #
1474 # Report the --help message.
1475 #
1476 if test "$ac_init_help" = "long"; then
1477   # Omit some internal or obsolete options to make the list less imposing.
1478   # This message is too long to be a string in the A/UX 3.1 sh.
1479   cat <<_ACEOF
1480 \`configure' configures this package to adapt to many kinds of systems.
1481
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
1487 Defaults for the options are specified in brackets.
1488
1489 Configuration:
1490   -h, --help              display this help and exit
1491       --help=short        display options specific to this package
1492       --help=recursive    display the short help of all the included packages
1493   -V, --version           display version information and exit
1494   -q, --quiet, --silent   do not print \`checking...' messages
1495       --cache-file=FILE   cache test results in FILE [disabled]
1496   -C, --config-cache      alias for \`--cache-file=config.cache'
1497   -n, --no-create         do not create output files
1498       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
1500 Installation directories:
1501   --prefix=PREFIX         install architecture-independent files in PREFIX
1502                           [$ac_default_prefix]
1503   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504                           [PREFIX]
1505
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1510
1511 For better control, use the options below.
1512
1513 Fine tuning of the installation directories:
1514   --bindir=DIR            user executables [EPREFIX/bin]
1515   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1516   --libexecdir=DIR        program executables [EPREFIX/libexec]
1517   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1518   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1519   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1520   --libdir=DIR            object code libraries [EPREFIX/lib]
1521   --includedir=DIR        C header files [PREFIX/include]
1522   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1523   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1524   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1525   --infodir=DIR           info documentation [DATAROOTDIR/info]
1526   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1527   --mandir=DIR            man documentation [DATAROOTDIR/man]
1528   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1529   --htmldir=DIR           html documentation [DOCDIR]
1530   --dvidir=DIR            dvi documentation [DOCDIR]
1531   --pdfdir=DIR            pdf documentation [DOCDIR]
1532   --psdir=DIR             ps documentation [DOCDIR]
1533 _ACEOF
1534
1535   cat <<\_ACEOF
1536
1537 Program names:
1538   --program-prefix=PREFIX            prepend PREFIX to installed program names
1539   --program-suffix=SUFFIX            append SUFFIX to installed program names
1540   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1541
1542 System types:
1543   --build=BUILD     configure for building on BUILD [guessed]
1544   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545   --target=TARGET   configure for building compilers for TARGET [HOST]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550
1551   cat <<\_ACEOF
1552
1553 Optional Features:
1554   --disable-option-checking  ignore unrecognized --enable/--with options
1555   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1556   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1557   --enable-generated-files-in-srcdir
1558                           put copies of generated files in source dir intended
1559                           for creating source tarballs for users without
1560                           texinfo bison or flex
1561   --disable-largefile     omit support for large files
1562   --enable-werror-always  enable -Werror despite compiler version
1563   --enable-checking[=LIST]
1564                           enable expensive run-time checks. With LIST, enable
1565                           only specific categories of checks. Categories are:
1566                           yes,no,all,none,release. Flags are:
1567                           assert,df,fold,gc,gcac,gimple,misc,
1568                           rtlflag,rtl,runtime,tree,valgrind,types
1569   --enable-coverage[=LEVEL]
1570                           enable compiler's code coverage collection. Use to
1571                           measure compiler performance and locate unused parts
1572                           of the compiler. With LEVEL, specify optimization.
1573                           Values are opt, noopt, default is noopt
1574   --enable-gather-detailed-mem-stats
1575                           enable detailed memory allocation stats gathering
1576   --enable-build-with-cxx build with C++ compiler instead of C compiler
1577   --enable-multilib       enable library support for multiple ABIs
1578   --enable-__cxa_atexit   enable __cxa_atexit for C++
1579   --enable-decimal-float={no,yes,bid,dpd}
1580                         enable decimal float extension to C.  Selecting 'bid'
1581                         or 'dpd' choses which decimal floating point format
1582                         to use
1583   --enable-fixed-point    enable fixed-point arithmetic extension to C
1584   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1585                           package
1586   --enable-tls            enable or disable generation of tls code overriding
1587                           the assembler check for tls support
1588   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1589                           GNU Objective-C runtime
1590   --disable-shared        don't provide a shared libgcc
1591   --enable-languages=LIST specify which front-ends to build
1592   --disable-rpath         do not hardcode runtime library paths
1593   --enable-initfini-array       use .init_array/.fini_array sections
1594   --enable-sjlj-exceptions
1595                           arrange to use setjmp/longjmp exception handling
1596   --enable-secureplt      enable -msecure-plt by default for PowerPC
1597   --enable-leading-mingw64-underscores
1598                           enable leading underscores on 64 bit mingw targets
1599   --enable-cld            enable -mcld by default for 32bit x86
1600   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1601                           x86
1602   --disable-win32-registry
1603                           disable lookup of installation paths in the Registry
1604                           on Windows hosts
1605   --enable-win32-registry enable registry lookup (default)
1606   --enable-win32-registry=KEY
1607                           use KEY instead of GCC version as the last portion
1608                           of the registry key
1609   --enable-shared[=PKGS]  build shared libraries [default=yes]
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-fast-install[=PKGS]
1612                           optimize for fast installation [default=yes]
1613   --disable-libtool-lock  avoid locking (might break parallel builds)
1614   --enable-gnu-indirect-function
1615                           enable the use of the @gnu_indirect_function to
1616                           glibc systems
1617   --enable-comdat         enable COMDAT group support
1618   --enable-gnu-unique-object
1619                           enable the use of the @gnu_unique_object ELF
1620                           extension on glibc systems
1621   --enable-linker-build-id
1622                           compiler will always pass --build-id to linker
1623   --enable-maintainer-mode
1624                           enable make rules and dependencies not useful (and
1625                           sometimes confusing) to the casual installer
1626   --enable-version-specific-runtime-libs
1627                           specify that runtime libraries should be installed
1628                           in a compiler-specific directory
1629   --enable-plugin         enable plugin support
1630   --disable-libquadmath-support
1631                           disable libquadmath support for Fortran
1632
1633 Optional Packages:
1634   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1635   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1636   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1637   --with-local-prefix=DIR specifies directory to put local include
1638   --with-gxx-include-dir=DIR
1639                           specifies directory to put g++ header files
1640   --with-cpp-install-dir=DIR
1641                           install the user visible C preprocessor in DIR
1642                           (relative to PREFIX) as well as PREFIX/bin
1643   --with-gnu-ld           arrange to work with GNU ld
1644   --with-ld               arrange to use the specified ld (full pathname)
1645   --with-demangler-in-ld  try to use demangler in GNU ld
1646   --with-gnu-as           arrange to work with GNU as
1647   --with-as               arrange to use the specified as (full pathname)
1648   --with-stabs            arrange to use stabs instead of host debug format
1649   --with-dwarf2           force the default debug format to be DWARF 2
1650   --with-native-system-header-dir=dir
1651                           use dir as the directory to look for standard
1652                           system header files in.  Defaults to /usr/include.
1653   --with-build-sysroot=sysroot
1654                           use sysroot as the system root during the build
1655   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1656   --with-specs=SPECS      add SPECS to driver command-line processing
1657   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1658   --with-bugurl=URL       Direct users to URL to report a bug
1659   --with-multilib-list    select multilibs (SH and x86-64 only)
1660   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1661   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1662   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1663   --with-pic              try to use only PIC/non-PIC objects [default=use
1664                           both]
1665   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1666   --with-plugin-ld=[ARG]  specify the plugin linker
1667   --with-long-double-128  use 128-bit long double by default
1668   --with-gc={page,zone}   choose the garbage collection mechanism to use with
1669                           the compiler
1670   --with-system-zlib      use installed libz
1671   --with-linker-hash-style={sysv,gnu,both}
1672                           specify the linker hash style
1673
1674 Some influential environment variables:
1675   CC          C compiler command
1676   CFLAGS      C compiler flags
1677   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1678               nonstandard directory <lib dir>
1679   LIBS        libraries to pass to the linker, e.g. -l<library>
1680   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1681               you have headers in a nonstandard directory <include dir>
1682   CXX         C++ compiler command
1683   CXXFLAGS    C++ compiler flags
1684   CPP         C preprocessor
1685   CXXCPP      C++ preprocessor
1686   GMPLIBS     How to link GMP
1687   GMPINC      How to find GMP include files
1688   PPLLIBS     How to link PPL
1689   PPLINC      How to find PPL include files
1690   CLOOGLIBS   How to link CLOOG
1691   CLOOGINC    How to find CLOOG include files
1692
1693 Use these variables to override the choices made by `configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1695
1696 Report bugs to the package provider.
1697 _ACEOF
1698 ac_status=$?
1699 fi
1700
1701 if test "$ac_init_help" = "recursive"; then
1702   # If there are subdirs, report their specific --help.
1703   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704     test -d "$ac_dir" ||
1705       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706       continue
1707     ac_builddir=.
1708
1709 case "$ac_dir" in
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *)
1712   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1713   # A ".." for each directory in $ac_dir_suffix.
1714   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715   case $ac_top_builddir_sub in
1716   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718   esac ;;
1719 esac
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1724
1725 case $srcdir in
1726   .)  # We are building in place.
1727     ac_srcdir=.
1728     ac_top_srcdir=$ac_top_builddir_sub
1729     ac_abs_top_srcdir=$ac_pwd ;;
1730   [\\/]* | ?:[\\/]* )  # Absolute name.
1731     ac_srcdir=$srcdir$ac_dir_suffix;
1732     ac_top_srcdir=$srcdir
1733     ac_abs_top_srcdir=$srcdir ;;
1734   *) # Relative name.
1735     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736     ac_top_srcdir=$ac_top_build_prefix$srcdir
1737     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 esac
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740
1741     cd "$ac_dir" || { ac_status=$?; continue; }
1742     # Check for guested configure.
1743     if test -f "$ac_srcdir/configure.gnu"; then
1744       echo &&
1745       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746     elif test -f "$ac_srcdir/configure"; then
1747       echo &&
1748       $SHELL "$ac_srcdir/configure" --help=recursive
1749     else
1750       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751     fi || ac_status=$?
1752     cd "$ac_pwd" || { ac_status=$?; break; }
1753   done
1754 fi
1755
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1758   cat <<\_ACEOF
1759 configure
1760 generated by GNU Autoconf 2.64
1761
1762 Copyright (C) 2009 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1765 _ACEOF
1766   exit
1767 fi
1768
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1772
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   rm -f conftest.$ac_objext
1780   if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783   *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787   (eval "$ac_compile") 2>conftest.err
1788   ac_status=$?
1789   if test -s conftest.err; then
1790     grep -v '^ *+' conftest.err >conftest.er1
1791     cat conftest.er1 >&5
1792     mv -f conftest.er1 conftest.err
1793   fi
1794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795   test $ac_status = 0; } && {
1796          test -z "$ac_c_werror_flag" ||
1797          test ! -s conftest.err
1798        } && test -s conftest.$ac_objext; then :
1799   ac_retval=0
1800 else
1801   $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804         ac_retval=1
1805 fi
1806   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807   return $ac_retval
1808
1809 } # ac_fn_c_try_compile
1810
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   rm -f conftest.$ac_objext
1818   if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821   *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825   (eval "$ac_compile") 2>conftest.err
1826   ac_status=$?
1827   if test -s conftest.err; then
1828     grep -v '^ *+' conftest.err >conftest.er1
1829     cat conftest.er1 >&5
1830     mv -f conftest.er1 conftest.err
1831   fi
1832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833   test $ac_status = 0; } && {
1834          test -z "$ac_cxx_werror_flag" ||
1835          test ! -s conftest.err
1836        } && test -s conftest.$ac_objext; then :
1837   ac_retval=0
1838 else
1839   $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842         ac_retval=1
1843 fi
1844   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845   return $ac_retval
1846
1847 } # ac_fn_cxx_try_compile
1848
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_cpp ()
1853 {
1854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855   if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858   *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863   ac_status=$?
1864   if test -s conftest.err; then
1865     grep -v '^ *+' conftest.err >conftest.er1
1866     cat conftest.er1 >&5
1867     mv -f conftest.er1 conftest.err
1868   fi
1869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870   test $ac_status = 0; } >/dev/null && {
1871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872          test ! -s conftest.err
1873        }; then :
1874   ac_retval=0
1875 else
1876   $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879     ac_retval=1
1880 fi
1881   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882   return $ac_retval
1883
1884 } # ac_fn_c_try_cpp
1885
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1890 # accordingly.
1891 ac_fn_c_check_header_mongrel ()
1892 {
1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898   $as_echo_n "(cached) " >&6
1899 fi
1900 eval ac_res=\$$3
1901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 else
1904   # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h.  */
1909 $4
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913   ac_header_compiler=yes
1914 else
1915   ac_header_compiler=no
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1920
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_cpp "$LINENO"; then :
1929   ac_header_preproc=yes
1930 else
1931   ac_header_preproc=no
1932 fi
1933 rm -f conftest.err conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1936
1937 # So?  What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939   yes:no: )
1940     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944     ;;
1945   no:yes:* )
1946     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1950     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1954     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956     ;;
1957 esac
1958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961   $as_echo_n "(cached) " >&6
1962 else
1963   eval "$3=\$ac_header_compiler"
1964 fi
1965 eval ac_res=\$$3
1966                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 fi
1969   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971 } # ac_fn_c_check_header_mongrel
1972
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1977 ac_fn_c_try_run ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983   *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987   (eval "$ac_link") 2>&5
1988   ac_status=$?
1989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991   { { case "(($ac_try" in
1992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993   *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997   (eval "$ac_try") 2>&5
1998   ac_status=$?
1999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000   test $ac_status = 0; }; }; then :
2001   ac_retval=0
2002 else
2003   $as_echo "$as_me: program exited with status $ac_status" >&5
2004        $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007        ac_retval=$ac_status
2008 fi
2009   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011   return $ac_retval
2012
2013 } # ac_fn_c_try_run
2014
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   eval "$3=yes"
2034 else
2035   eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$3
2040                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044 } # ac_fn_c_check_header_compile
2045
2046 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2047 # --------------------------------------------
2048 # Tries to find the compile-time value of EXPR in a program that includes
2049 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 # computed
2051 ac_fn_c_compute_int ()
2052 {
2053   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054   if test "$cross_compiling" = yes; then
2055     # Depending upon the size, compute the lo and hi bounds.
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h.  */
2058 $4
2059 int
2060 main ()
2061 {
2062 static int test_array [1 - 2 * !(($2) >= 0)];
2063 test_array [0] = 0
2064
2065   ;
2066   return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070   ac_lo=0 ac_mid=0
2071   while :; do
2072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h.  */
2074 $4
2075 int
2076 main ()
2077 {
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2079 test_array [0] = 0
2080
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086   ac_hi=$ac_mid; break
2087 else
2088   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2089                         if test $ac_lo -le $ac_mid; then
2090                           ac_lo= ac_hi=
2091                           break
2092                         fi
2093                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096   done
2097 else
2098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h.  */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) < 0)];
2105 test_array [0] = 0
2106
2107   ;
2108   return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112   ac_hi=-1 ac_mid=-1
2113   while :; do
2114     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h.  */
2116 $4
2117 int
2118 main ()
2119 {
2120 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2121 test_array [0] = 0
2122
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128   ac_lo=$ac_mid; break
2129 else
2130   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2131                         if test $ac_mid -le $ac_hi; then
2132                           ac_lo= ac_hi=
2133                           break
2134                         fi
2135                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138   done
2139 else
2140   ac_lo= ac_hi=
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 # Binary search between lo and hi bounds.
2146 while test "x$ac_lo" != "x$ac_hi"; do
2147   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h.  */
2150 $4
2151 int
2152 main ()
2153 {
2154 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2155 test_array [0] = 0
2156
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162   ac_hi=$ac_mid
2163 else
2164   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 case $ac_lo in #((
2169 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2170 '') ac_retval=1 ;;
2171 esac
2172   else
2173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h.  */
2175 $4
2176 static long int longval () { return $2; }
2177 static unsigned long int ulongval () { return $2; }
2178 #include <stdio.h>
2179 #include <stdlib.h>
2180 int
2181 main ()
2182 {
2183
2184   FILE *f = fopen ("conftest.val", "w");
2185   if (! f)
2186     return 1;
2187   if (($2) < 0)
2188     {
2189       long int i = longval ();
2190       if (i != ($2))
2191         return 1;
2192       fprintf (f, "%ld", i);
2193     }
2194   else
2195     {
2196       unsigned long int i = ulongval ();
2197       if (i != ($2))
2198         return 1;
2199       fprintf (f, "%lu", i);
2200     }
2201   /* Do not output a trailing newline, as this causes \r\n confusion
2202      on some platforms.  */
2203   return ferror (f) || fclose (f) != 0;
2204
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_run "$LINENO"; then :
2210   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2211 else
2212   ac_retval=1
2213 fi
2214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2215   conftest.$ac_objext conftest.beam conftest.$ac_ext
2216 rm -f conftest.val
2217
2218   fi
2219   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220   return $ac_retval
2221
2222 } # ac_fn_c_compute_int
2223
2224 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2225 # -------------------------------------------
2226 # Tests whether TYPE exists after having included INCLUDES, setting cache
2227 # variable VAR accordingly.
2228 ac_fn_c_check_type ()
2229 {
2230   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234   $as_echo_n "(cached) " >&6
2235 else
2236   eval "$3=no"
2237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h.  */
2239 $4
2240 int
2241 main ()
2242 {
2243 if (sizeof ($2))
2244          return 0;
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h.  */
2252 $4
2253 int
2254 main ()
2255 {
2256 if (sizeof (($2)))
2257             return 0;
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263
2264 else
2265   eval "$3=yes"
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275
2276 } # ac_fn_c_check_type
2277
2278 # ac_fn_c_find_intX_t LINENO BITS VAR
2279 # -----------------------------------
2280 # Finds a signed integer type with width BITS, setting cache variable VAR
2281 # accordingly.
2282 ac_fn_c_find_intX_t ()
2283 {
2284   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2286 $as_echo_n "checking for int$2_t... " >&6; }
2287 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288   $as_echo_n "(cached) " >&6
2289 else
2290   eval "$3=no"
2291      for ac_type in int$2_t 'int' 'long int' \
2292          'long long int' 'short int' 'signed char'; do
2293        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h.  */
2295 $ac_includes_default
2296 int
2297 main ()
2298 {
2299 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2300 test_array [0] = 0
2301
2302   ;
2303   return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h.  */
2309 $ac_includes_default
2310 int
2311 main ()
2312 {
2313 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2314                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2315 test_array [0] = 0
2316
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322
2323 else
2324   case $ac_type in #(
2325   int$2_t) :
2326     eval "$3=yes" ;; #(
2327   *) :
2328     eval "$3=\$ac_type" ;;
2329 esac
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334        eval as_val=\$$3
2335    if test "x$as_val" = x""no; then :
2336
2337 else
2338   break
2339 fi
2340      done
2341 fi
2342 eval ac_res=\$$3
2343                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346
2347 } # ac_fn_c_find_intX_t
2348
2349 # ac_fn_c_try_link LINENO
2350 # -----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded.
2352 ac_fn_c_try_link ()
2353 {
2354   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355   rm -f conftest.$ac_objext conftest$ac_exeext
2356   if { { ac_try="$ac_link"
2357 case "(($ac_try" in
2358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359   *) ac_try_echo=$ac_try;;
2360 esac
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363   (eval "$ac_link") 2>conftest.err
2364   ac_status=$?
2365   if test -s conftest.err; then
2366     grep -v '^ *+' conftest.err >conftest.er1
2367     cat conftest.er1 >&5
2368     mv -f conftest.er1 conftest.err
2369   fi
2370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371   test $ac_status = 0; } && {
2372          test -z "$ac_c_werror_flag" ||
2373          test ! -s conftest.err
2374        } && test -s conftest$ac_exeext && {
2375          test "$cross_compiling" = yes ||
2376          $as_test_x conftest$ac_exeext
2377        }; then :
2378   ac_retval=0
2379 else
2380   $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383         ac_retval=1
2384 fi
2385   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387   # interfere with the next link command; also delete a directory that is
2388   # left behind by Apple's compiler.  We do this before executing the actions.
2389   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2390   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391   return $ac_retval
2392
2393 } # ac_fn_c_try_link
2394
2395 # ac_fn_c_find_uintX_t LINENO BITS VAR
2396 # ------------------------------------
2397 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2398 # accordingly.
2399 ac_fn_c_find_uintX_t ()
2400 {
2401   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403 $as_echo_n "checking for uint$2_t... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405   $as_echo_n "(cached) " >&6
2406 else
2407   eval "$3=no"
2408      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h.  */
2412 $ac_includes_default
2413 int
2414 main ()
2415 {
2416 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2417 test_array [0] = 0
2418
2419   ;
2420   return 0;
2421 }
2422 _ACEOF
2423 if ac_fn_c_try_compile "$LINENO"; then :
2424   case $ac_type in #(
2425   uint$2_t) :
2426     eval "$3=yes" ;; #(
2427   *) :
2428     eval "$3=\$ac_type" ;;
2429 esac
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432        eval as_val=\$$3
2433    if test "x$as_val" = x""no; then :
2434
2435 else
2436   break
2437 fi
2438      done
2439 fi
2440 eval ac_res=\$$3
2441                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444
2445 } # ac_fn_c_find_uintX_t
2446
2447 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2448 # ----------------------------------------------
2449 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_preproc ()
2451 {
2452   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456   $as_echo_n "(cached) " >&6
2457 else
2458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h.  */
2460 #include <$2>
2461 _ACEOF
2462 if ac_fn_c_try_cpp "$LINENO"; then :
2463   eval "$3=yes"
2464 else
2465   eval "$3=no"
2466 fi
2467 rm -f conftest.err conftest.$ac_ext
2468 fi
2469 eval ac_res=\$$3
2470                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473
2474 } # ac_fn_c_check_header_preproc
2475
2476 # ac_fn_cxx_try_cpp LINENO
2477 # ------------------------
2478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_cpp ()
2480 {
2481   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482   if { { ac_try="$ac_cpp conftest.$ac_ext"
2483 case "(($ac_try" in
2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485   *) ac_try_echo=$ac_try;;
2486 esac
2487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488 $as_echo "$ac_try_echo"; } >&5
2489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2490   ac_status=$?
2491   if test -s conftest.err; then
2492     grep -v '^ *+' conftest.err >conftest.er1
2493     cat conftest.er1 >&5
2494     mv -f conftest.er1 conftest.err
2495   fi
2496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497   test $ac_status = 0; } >/dev/null && {
2498          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2499          test ! -s conftest.err
2500        }; then :
2501   ac_retval=0
2502 else
2503   $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506     ac_retval=1
2507 fi
2508   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509   return $ac_retval
2510
2511 } # ac_fn_cxx_try_cpp
2512
2513 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2514 # ------------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_cxx_check_header_preproc ()
2517 {
2518   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522   $as_echo_n "(cached) " >&6
2523 else
2524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h.  */
2526 #include <$2>
2527 _ACEOF
2528 if ac_fn_cxx_try_cpp "$LINENO"; then :
2529   eval "$3=yes"
2530 else
2531   eval "$3=no"
2532 fi
2533 rm -f conftest.err conftest.$ac_ext
2534 fi
2535 eval ac_res=\$$3
2536                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2539
2540 } # ac_fn_cxx_check_header_preproc
2541
2542 # ac_fn_c_check_func LINENO FUNC VAR
2543 # ----------------------------------
2544 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2545 ac_fn_c_check_func ()
2546 {
2547   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551   $as_echo_n "(cached) " >&6
2552 else
2553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h.  */
2555 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2557 #define $2 innocuous_$2
2558
2559 /* System header to define __stub macros and hopefully few prototypes,
2560     which can conflict with char $2 (); below.
2561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562     <limits.h> exists even on freestanding compilers.  */
2563
2564 #ifdef __STDC__
2565 # include <limits.h>
2566 #else
2567 # include <assert.h>
2568 #endif
2569
2570 #undef $2
2571
2572 /* Override any GCC internal prototype to avoid an error.
2573    Use char because int might match the return type of a GCC
2574    builtin and then its argument prototype would still apply.  */
2575 #ifdef __cplusplus
2576 extern "C"
2577 #endif
2578 char $2 ();
2579 /* The GNU C library defines this for functions which it implements
2580     to always fail with ENOSYS.  Some functions are actually named
2581     something starting with __ and the normal name is an alias.  */
2582 #if defined __stub_$2 || defined __stub___$2
2583 choke me
2584 #endif
2585
2586 int
2587 main ()
2588 {
2589 return $2 ();
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_link "$LINENO"; then :
2595   eval "$3=yes"
2596 else
2597   eval "$3=no"
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext \
2600     conftest$ac_exeext conftest.$ac_ext
2601 fi
2602 eval ac_res=\$$3
2603                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2606
2607 } # ac_fn_c_check_func
2608
2609 # ac_fn_cxx_try_link LINENO
2610 # -------------------------
2611 # Try to link conftest.$ac_ext, and return whether this succeeded.
2612 ac_fn_cxx_try_link ()
2613 {
2614   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615   rm -f conftest.$ac_objext conftest$ac_exeext
2616   if { { ac_try="$ac_link"
2617 case "(($ac_try" in
2618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619   *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623   (eval "$ac_link") 2>conftest.err
2624   ac_status=$?
2625   if test -s conftest.err; then
2626     grep -v '^ *+' conftest.err >conftest.er1
2627     cat conftest.er1 >&5
2628     mv -f conftest.er1 conftest.err
2629   fi
2630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631   test $ac_status = 0; } && {
2632          test -z "$ac_cxx_werror_flag" ||
2633          test ! -s conftest.err
2634        } && test -s conftest$ac_exeext && {
2635          test "$cross_compiling" = yes ||
2636          $as_test_x conftest$ac_exeext
2637        }; then :
2638   ac_retval=0
2639 else
2640   $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643         ac_retval=1
2644 fi
2645   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2646   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2647   # interfere with the next link command; also delete a directory that is
2648   # left behind by Apple's compiler.  We do this before executing the actions.
2649   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2650   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2651   return $ac_retval
2652
2653 } # ac_fn_cxx_try_link
2654 cat >config.log <<_ACEOF
2655 This file contains any messages produced by compilers while
2656 running configure, to aid debugging if configure makes a mistake.
2657
2658 It was created by $as_me, which was
2659 generated by GNU Autoconf 2.64.  Invocation command line was
2660
2661   $ $0 $@
2662
2663 _ACEOF
2664 exec 5>>config.log
2665 {
2666 cat <<_ASUNAME
2667 ## --------- ##
2668 ## Platform. ##
2669 ## --------- ##
2670
2671 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2672 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2673 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2674 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2675 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2676
2677 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2678 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2679
2680 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2681 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2682 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2683 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2684 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2685 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2686 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2687
2688 _ASUNAME
2689
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695     $as_echo "PATH: $as_dir"
2696   done
2697 IFS=$as_save_IFS
2698
2699 } >&5
2700
2701 cat >&5 <<_ACEOF
2702
2703
2704 ## ----------- ##
2705 ## Core tests. ##
2706 ## ----------- ##
2707
2708 _ACEOF
2709
2710
2711 # Keep a trace of the command line.
2712 # Strip out --no-create and --no-recursion so they do not pile up.
2713 # Strip out --silent because we don't want to record it for future runs.
2714 # Also quote any args containing shell meta-characters.
2715 # Make two passes to allow for proper duplicate-argument suppression.
2716 ac_configure_args=
2717 ac_configure_args0=
2718 ac_configure_args1=
2719 ac_must_keep_next=false
2720 for ac_pass in 1 2
2721 do
2722   for ac_arg
2723   do
2724     case $ac_arg in
2725     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2726     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2727     | -silent | --silent | --silen | --sile | --sil)
2728       continue ;;
2729     *\'*)
2730       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2731     esac
2732     case $ac_pass in
2733     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734     2)
2735       as_fn_append ac_configure_args1 " '$ac_arg'"
2736       if test $ac_must_keep_next = true; then
2737         ac_must_keep_next=false # Got value, back to normal.
2738       else
2739         case $ac_arg in
2740           *=* | --config-cache | -C | -disable-* | --disable-* \
2741           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2742           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2743           | -with-* | --with-* | -without-* | --without-* | --x)
2744             case "$ac_configure_args0 " in
2745               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2746             esac
2747             ;;
2748           -* ) ac_must_keep_next=true ;;
2749         esac
2750       fi
2751       as_fn_append ac_configure_args " '$ac_arg'"
2752       ;;
2753     esac
2754   done
2755 done
2756 { ac_configure_args0=; unset ac_configure_args0;}
2757 { ac_configure_args1=; unset ac_configure_args1;}
2758
2759 # When interrupted or exit'd, cleanup temporary files, and complete
2760 # config.log.  We remove comments because anyway the quotes in there
2761 # would cause problems or look ugly.
2762 # WARNING: Use '\'' to represent an apostrophe within the trap.
2763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2764 trap 'exit_status=$?
2765   # Save into config.log some information that might help in debugging.
2766   {
2767     echo
2768
2769     cat <<\_ASBOX
2770 ## ---------------- ##
2771 ## Cache variables. ##
2772 ## ---------------- ##
2773 _ASBOX
2774     echo
2775     # The following way of writing the cache mishandles newlines in values,
2776 (
2777   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2778     eval ac_val=\$$ac_var
2779     case $ac_val in #(
2780     *${as_nl}*)
2781       case $ac_var in #(
2782       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2784       esac
2785       case $ac_var in #(
2786       _ | IFS | as_nl) ;; #(
2787       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2788       *) { eval $ac_var=; unset $ac_var;} ;;
2789       esac ;;
2790     esac
2791   done
2792   (set) 2>&1 |
2793     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2794     *${as_nl}ac_space=\ *)
2795       sed -n \
2796         "s/'\''/'\''\\\\'\'''\''/g;
2797           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2798       ;; #(
2799     *)
2800       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2801       ;;
2802     esac |
2803     sort
2804 )
2805     echo
2806
2807     cat <<\_ASBOX
2808 ## ----------------- ##
2809 ## Output variables. ##
2810 ## ----------------- ##
2811 _ASBOX
2812     echo
2813     for ac_var in $ac_subst_vars
2814     do
2815       eval ac_val=\$$ac_var
2816       case $ac_val in
2817       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818       esac
2819       $as_echo "$ac_var='\''$ac_val'\''"
2820     done | sort
2821     echo
2822
2823     if test -n "$ac_subst_files"; then
2824       cat <<\_ASBOX
2825 ## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##
2828 _ASBOX
2829       echo
2830       for ac_var in $ac_subst_files
2831       do
2832         eval ac_val=\$$ac_var
2833         case $ac_val in
2834         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835         esac
2836         $as_echo "$ac_var='\''$ac_val'\''"
2837       done | sort
2838       echo
2839     fi
2840
2841     if test -s confdefs.h; then
2842       cat <<\_ASBOX
2843 ## ----------- ##
2844 ## confdefs.h. ##
2845 ## ----------- ##
2846 _ASBOX
2847       echo
2848       cat confdefs.h
2849       echo
2850     fi
2851     test "$ac_signal" != 0 &&
2852       $as_echo "$as_me: caught signal $ac_signal"
2853     $as_echo "$as_me: exit $exit_status"
2854   } >&5
2855   rm -f core *.core core.conftest.* &&
2856     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2857     exit $exit_status
2858 ' 0
2859 for ac_signal in 1 2 13 15; do
2860   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2861 done
2862 ac_signal=0
2863
2864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2865 rm -f -r conftest* confdefs.h
2866
2867 $as_echo "/* confdefs.h */" > confdefs.h
2868
2869 # Predefined preprocessor variables.
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_NAME "$PACKAGE_NAME"
2873 _ACEOF
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2877 _ACEOF
2878
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2881 _ACEOF
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_STRING "$PACKAGE_STRING"
2885 _ACEOF
2886
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2889 _ACEOF
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_URL "$PACKAGE_URL"
2893 _ACEOF
2894
2895
2896 # Let the site file select an alternate cache file if it wants to.
2897 # Prefer an explicitly selected file to automatically selected ones.
2898 ac_site_file1=NONE
2899 ac_site_file2=NONE
2900 if test -n "$CONFIG_SITE"; then
2901   ac_site_file1=$CONFIG_SITE
2902 elif test "x$prefix" != xNONE; then
2903   ac_site_file1=$prefix/share/config.site
2904   ac_site_file2=$prefix/etc/config.site
2905 else
2906   ac_site_file1=$ac_default_prefix/share/config.site
2907   ac_site_file2=$ac_default_prefix/etc/config.site
2908 fi
2909 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2910 do
2911   test "x$ac_site_file" = xNONE && continue
2912   if test -r "$ac_site_file"; then
2913     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2914 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2915     sed 's/^/| /' "$ac_site_file" >&5
2916     . "$ac_site_file"
2917   fi
2918 done
2919
2920 if test -r "$cache_file"; then
2921   # Some versions of bash will fail to source /dev/null (special
2922   # files actually), so we avoid doing that.
2923   if test -f "$cache_file"; then
2924     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2925 $as_echo "$as_me: loading cache $cache_file" >&6;}
2926     case $cache_file in
2927       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2928       *)                      . "./$cache_file";;
2929     esac
2930   fi
2931 else
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2933 $as_echo "$as_me: creating cache $cache_file" >&6;}
2934   >$cache_file
2935 fi
2936
2937 # Check that the precious variables saved in the cache have kept the same
2938 # value.
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942   eval ac_new_set=\$ac_env_${ac_var}_set
2943   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944   eval ac_new_val=\$ac_env_${ac_var}_value
2945   case $ac_old_set,$ac_new_set in
2946     set,)
2947       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949       ac_cache_corrupted=: ;;
2950     ,set)
2951       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2953       ac_cache_corrupted=: ;;
2954     ,);;
2955     *)
2956       if test "x$ac_old_val" != "x$ac_new_val"; then
2957         # differences in whitespace do not lead to failure.
2958         ac_old_val_w=`echo x $ac_old_val`
2959         ac_new_val_w=`echo x $ac_new_val`
2960         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2963           ac_cache_corrupted=:
2964         else
2965           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967           eval $ac_var=\$ac_old_val
2968         fi
2969         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2970 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2971         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2973       fi;;
2974   esac
2975   # Pass precious variables to config.status.
2976   if test "$ac_new_set" = set; then
2977     case $ac_new_val in
2978     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2979     *) ac_arg=$ac_var=$ac_new_val ;;
2980     esac
2981     case " $ac_configure_args " in
2982       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2983       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2984     esac
2985   fi
2986 done
2987 if $ac_cache_corrupted; then
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2993 fi
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2997
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003
3004
3005
3006
3007
3008
3009 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3010
3011
3012 gcc_version=`cat $srcdir/BASE-VER`
3013
3014 # Determine the host, build, and target systems
3015 ac_aux_dir=
3016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3017   for ac_t in install-sh install.sh shtool; do
3018     if test -f "$ac_dir/$ac_t"; then
3019       ac_aux_dir=$ac_dir
3020       ac_install_sh="$ac_aux_dir/$ac_t -c"
3021       break 2
3022     fi
3023   done
3024 done
3025 if test -z "$ac_aux_dir"; then
3026   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3027 fi
3028
3029 # These three variables are undocumented and unsupported,
3030 # and are intended to be withdrawn in a future Autoconf release.
3031 # They can cause serious problems if a builder's source tree is in a directory
3032 # whose full name contains unusual characters.
3033 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3034 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3035 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3036
3037
3038 # Make sure we can run config.sub.
3039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3040   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3043 $as_echo_n "checking build system type... " >&6; }
3044 if test "${ac_cv_build+set}" = set; then :
3045   $as_echo_n "(cached) " >&6
3046 else
3047   ac_build_alias=$build_alias
3048 test "x$ac_build_alias" = x &&
3049   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3050 test "x$ac_build_alias" = x &&
3051   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3053   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3054
3055 fi
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3057 $as_echo "$ac_cv_build" >&6; }
3058 case $ac_cv_build in
3059 *-*-*) ;;
3060 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3061 esac
3062 build=$ac_cv_build
3063 ac_save_IFS=$IFS; IFS='-'
3064 set x $ac_cv_build
3065 shift
3066 build_cpu=$1
3067 build_vendor=$2
3068 shift; shift
3069 # Remember, the first character of IFS is used to create $*,
3070 # except with old shells:
3071 build_os=$*
3072 IFS=$ac_save_IFS
3073 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3074
3075
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3077 $as_echo_n "checking host system type... " >&6; }
3078 if test "${ac_cv_host+set}" = set; then :
3079   $as_echo_n "(cached) " >&6
3080 else
3081   if test "x$host_alias" = x; then
3082   ac_cv_host=$ac_cv_build
3083 else
3084   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3085     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3086 fi
3087
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3090 $as_echo "$ac_cv_host" >&6; }
3091 case $ac_cv_host in
3092 *-*-*) ;;
3093 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3094 esac
3095 host=$ac_cv_host
3096 ac_save_IFS=$IFS; IFS='-'
3097 set x $ac_cv_host
3098 shift
3099 host_cpu=$1
3100 host_vendor=$2
3101 shift; shift
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3104 host_os=$*
3105 IFS=$ac_save_IFS
3106 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3107
3108
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3110 $as_echo_n "checking target system type... " >&6; }
3111 if test "${ac_cv_target+set}" = set; then :
3112   $as_echo_n "(cached) " >&6
3113 else
3114   if test "x$target_alias" = x; then
3115   ac_cv_target=$ac_cv_host
3116 else
3117   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3118     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3119 fi
3120
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3123 $as_echo "$ac_cv_target" >&6; }
3124 case $ac_cv_target in
3125 *-*-*) ;;
3126 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3127 esac
3128 target=$ac_cv_target
3129 ac_save_IFS=$IFS; IFS='-'
3130 set x $ac_cv_target
3131 shift
3132 target_cpu=$1
3133 target_vendor=$2
3134 shift; shift
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3137 target_os=$*
3138 IFS=$ac_save_IFS
3139 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3140
3141
3142 # The aliases save the names the user supplied, while $host etc.
3143 # will get canonicalized.
3144 test -n "$target_alias" &&
3145   test "$program_prefix$program_suffix$program_transform_name" = \
3146     NONENONEs,x,x, &&
3147   program_prefix=${target_alias}-
3148
3149 # Determine the noncanonical target name, for directory use.
3150  case ${build_alias} in
3151   "") build_noncanonical=${build} ;;
3152   *) build_noncanonical=${build_alias} ;;
3153 esac
3154
3155  case ${host_alias} in
3156   "") host_noncanonical=${build_noncanonical} ;;
3157   *) host_noncanonical=${host_alias} ;;
3158 esac
3159
3160  case ${target_alias} in
3161   "") target_noncanonical=${host_noncanonical} ;;
3162   *) target_noncanonical=${target_alias} ;;
3163 esac
3164
3165
3166
3167
3168 # Determine the target- and build-specific subdirectories
3169
3170 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3171 # have matching libraries, they should use host libraries: Makefile.tpl
3172 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3173 # However, they still use the build modules, because the corresponding
3174 # host modules (e.g. bison) are only built for the host when bootstrap
3175 # finishes. So:
3176 # - build_subdir is where we find build modules, and never changes.
3177 # - build_libsubdir is where we find build libraries, and can be overridden.
3178
3179 # Prefix 'build-' so this never conflicts with target_subdir.
3180 build_subdir="build-${build_noncanonical}"
3181
3182 # Check whether --with-build-libsubdir was given.
3183 if test "${with_build_libsubdir+set}" = set; then :
3184   withval=$with_build_libsubdir; build_libsubdir="$withval"
3185 else
3186   build_libsubdir="$build_subdir"
3187 fi
3188
3189 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3190 if ( test $srcdir = . && test -d gcc ) \
3191    || test -d $srcdir/../host-${host_noncanonical}; then
3192   host_subdir="host-${host_noncanonical}"
3193 else
3194   host_subdir=.
3195 fi
3196 # No prefix.
3197 target_subdir=${target_noncanonical}
3198
3199
3200 # Set program_transform_name
3201 test "$program_prefix" != NONE &&
3202   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3203 # Use a double $ so make ignores it.
3204 test "$program_suffix" != NONE &&
3205   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3206 # Double any \ or $.
3207 # By default was `s,x,x', remove it if useless.
3208 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3209 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3210
3211
3212 # Check for bogus environment variables.
3213 # Test if LIBRARY_PATH contains the notation for the current directory
3214 # since this would lead to problems installing/building glibc.
3215 # LIBRARY_PATH contains the current directory if one of the following
3216 # is true:
3217 # - one of the terminals (":" and ";") is the first or last sign
3218 # - two terminals occur directly after each other
3219 # - the path contains an element with a dot in it
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3221 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3222 case ${LIBRARY_PATH} in
3223   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3224     library_path_setting="contains current directory"
3225     ;;
3226   *)
3227     library_path_setting="ok"
3228     ;;
3229 esac
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3231 $as_echo "$library_path_setting" >&6; }
3232 if test "$library_path_setting" != "ok"; then
3233 as_fn_error "
3234 *** LIBRARY_PATH shouldn't contain the current directory when
3235 *** building gcc. Please change the environment variable
3236 *** and run configure again." "$LINENO" 5
3237 fi
3238
3239 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # GCC_EXEC_PREFIX contains the current directory if one of the following
3242 # is true:
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3247 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3248 case ${GCC_EXEC_PREFIX} in
3249   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250     gcc_exec_prefix_setting="contains current directory"
3251     ;;
3252   *)
3253     gcc_exec_prefix_setting="ok"
3254     ;;
3255 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3257 $as_echo "$gcc_exec_prefix_setting" >&6; }
3258 if test "$gcc_exec_prefix_setting" != "ok"; then
3259 as_fn_error "
3260 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3263 fi
3264
3265 # -----------
3266 # Directories
3267 # -----------
3268
3269 # Specify the local prefix
3270 local_prefix=
3271
3272 # Check whether --with-local-prefix was given.
3273 if test "${with_local_prefix+set}" = set; then :
3274   withval=$with_local_prefix; case "${withval}" in
3275 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3276 no)     ;;
3277 *)      local_prefix=$with_local_prefix ;;
3278 esac
3279 fi
3280
3281
3282 # Default local prefix if it is empty
3283 if test x$local_prefix = x; then
3284         local_prefix=/usr/local
3285 fi
3286
3287 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3288 # passed in by the toplevel make and thus we'd get different behavior
3289 # depending on where we built the sources.
3290 gcc_gxx_include_dir=
3291 # Specify the g++ header file directory
3292
3293 # Check whether --with-gxx-include-dir was given.
3294 if test "${with_gxx_include_dir+set}" = set; then :
3295   withval=$with_gxx_include_dir; case "${withval}" in
3296 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3297 no)     ;;
3298 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3299 esac
3300 fi
3301
3302
3303 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3304 if test x${gcc_gxx_include_dir} = x; then
3305   if test x${enable_version_specific_runtime_libs} = xyes; then
3306     gcc_gxx_include_dir='${libsubdir}/include/c++'
3307   else
3308     libstdcxx_incdir='include/c++/$(version)'
3309     if test x$host != x$target; then
3310        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3311     fi
3312     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3313   fi
3314 fi
3315
3316
3317 # Check whether --with-cpp_install_dir was given.
3318 if test "${with_cpp_install_dir+set}" = set; then :
3319   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3320   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3321 elif test x$withval != xno; then
3322   cpp_install_dir=$withval
3323 fi
3324 fi
3325
3326
3327 # We would like to our source tree to be readonly.  However when releases or
3328 # pre-releases are generated, the flex/bison generated files as well as the
3329 # various formats of manuals need to be included along with the rest of the
3330 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3331 # just that.
3332
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3334 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3335     # Check whether --enable-generated-files-in-srcdir was given.
3336 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3337   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3338 else
3339   generated_files_in_srcdir=no
3340 fi
3341
3342
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3344 $as_echo "$generated_files_in_srcdir" >&6; }
3345
3346 if test "$generated_files_in_srcdir" = "yes"; then
3347   GENINSRC=''
3348 else
3349   GENINSRC='#'
3350 fi
3351
3352
3353 # -------------------
3354 # Find default linker
3355 # -------------------
3356
3357 # With GNU ld
3358
3359 # Check whether --with-gnu-ld was given.
3360 if test "${with_gnu_ld+set}" = set; then :
3361   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3362 else
3363   gnu_ld_flag=no
3364 fi
3365
3366
3367 # With pre-defined ld
3368
3369 # Check whether --with-ld was given.
3370 if test "${with_ld+set}" = set; then :
3371   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3372 fi
3373
3374 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3375   if test ! -x "$DEFAULT_LINKER"; then
3376     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3377   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3378     gnu_ld_flag=yes
3379   fi
3380
3381 cat >>confdefs.h <<_ACEOF
3382 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3383 _ACEOF
3384
3385 fi
3386
3387 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3388
3389 cat >>confdefs.h <<_ACEOF
3390 #define HAVE_GNU_LD $gnu_ld
3391 _ACEOF
3392
3393
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3395 $as_echo_n "checking whether a default linker was specified... " >&6; }
3396 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3397   if test x"$gnu_ld_flag" = x"no"; then
3398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3399 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3400   else
3401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3402 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3403   fi
3404 else
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 fi
3408
3409 # With demangler in GNU ld
3410
3411 # Check whether --with-demangler-in-ld was given.
3412 if test "${with_demangler_in_ld+set}" = set; then :
3413   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3414 else
3415   demangler_in_ld=yes
3416 fi
3417
3418
3419 # ----------------------
3420 # Find default assembler
3421 # ----------------------
3422
3423 # With GNU as
3424
3425 # Check whether --with-gnu-as was given.
3426 if test "${with_gnu_as+set}" = set; then :
3427   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3428 else
3429   gas_flag=no
3430 fi
3431
3432
3433
3434 # Check whether --with-as was given.
3435 if test "${with_as+set}" = set; then :
3436   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3437 fi
3438
3439 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3440   if test ! -x "$DEFAULT_ASSEMBLER"; then
3441     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3442   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3443     gas_flag=yes
3444   fi
3445
3446 cat >>confdefs.h <<_ACEOF
3447 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3448 _ACEOF
3449
3450 fi
3451
3452 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3453
3454 cat >>confdefs.h <<_ACEOF
3455 #define HAVE_GNU_AS $gnu_as
3456 _ACEOF
3457
3458
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3460 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3461 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3462   if test x"$gas_flag" = x"no"; then
3463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3465   else
3466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3468   fi
3469 else
3470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474 # ---------------
3475 # Find C compiler
3476 # ---------------
3477
3478 # If a non-executable a.out is present (e.g. created by GNU as above even if
3479 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3480 # file, even when creating an executable, so an execution test fails.
3481 # Remove possible default executable files to avoid this.
3482 #
3483 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3484 # Autoconf includes it.
3485 rm -f a.out a.exe b.out
3486
3487 # Find the native compiler
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 if test -n "$ac_tool_prefix"; then
3494   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3495 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_CC+set}" = set; then :
3499   $as_echo_n "(cached) " >&6
3500 else
3501   if test -n "$CC"; then
3502   ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507   IFS=$as_save_IFS
3508   test -z "$as_dir" && as_dir=.
3509     for ac_exec_ext in '' $ac_executable_extensions; do
3510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513     break 2
3514   fi
3515 done
3516   done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530
3531 fi
3532 if test -z "$ac_cv_prog_CC"; then
3533   ac_ct_CC=$CC
3534   # Extract the first word of "gcc", so it can be a program name with args.
3535 set dummy gcc; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539   $as_echo_n "(cached) " >&6
3540 else
3541   if test -n "$ac_ct_CC"; then
3542   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547   IFS=$as_save_IFS
3548   test -z "$as_dir" && as_dir=.
3549     for ac_exec_ext in '' $ac_executable_extensions; do
3550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551     ac_cv_prog_ac_ct_CC="gcc"
3552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553     break 2
3554   fi
3555 done
3556   done
3557 IFS=$as_save_IFS
3558
3559 fi
3560 fi
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3565 else
3566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 fi
3569
3570   if test "x$ac_ct_CC" = x; then
3571     CC=""
3572   else
3573     case $cross_compiling:$ac_tool_warned in
3574 yes:)
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577 ac_tool_warned=yes ;;
3578 esac
3579     CC=$ac_ct_CC
3580   fi
3581 else
3582   CC="$ac_cv_prog_CC"
3583 fi
3584
3585 if test -z "$CC"; then
3586           if test -n "$ac_tool_prefix"; then
3587     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3588 set dummy ${ac_tool_prefix}cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592   $as_echo_n "(cached) " >&6
3593 else
3594   if test -n "$CC"; then
3595   ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600   IFS=$as_save_IFS
3601   test -z "$as_dir" && as_dir=.
3602     for ac_exec_ext in '' $ac_executable_extensions; do
3603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604     ac_cv_prog_CC="${ac_tool_prefix}cc"
3605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606     break 2
3607   fi
3608 done
3609   done
3610 IFS=$as_save_IFS
3611
3612 fi
3613 fi
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3618 else
3619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3621 fi
3622
3623
3624   fi
3625 fi
3626 if test -z "$CC"; then
3627   # Extract the first word of "cc", so it can be a program name with args.
3628 set dummy cc; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   if test -n "$CC"; then
3635   ac_cv_prog_CC="$CC" # Let the user override the test.
3636 else
3637   ac_prog_rejected=no
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641   IFS=$as_save_IFS
3642   test -z "$as_dir" && as_dir=.
3643     for ac_exec_ext in '' $ac_executable_extensions; do
3644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3646        ac_prog_rejected=yes
3647        continue
3648      fi
3649     ac_cv_prog_CC="cc"
3650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651     break 2
3652   fi
3653 done
3654   done
3655 IFS=$as_save_IFS
3656
3657 if test $ac_prog_rejected = yes; then
3658   # We found a bogon in the path, so make sure we never use it.
3659   set dummy $ac_cv_prog_CC
3660   shift
3661   if test $# != 0; then
3662     # We chose a different compiler from the bogus one.
3663     # However, it has the same basename, so the bogon will be chosen
3664     # first if we set CC to just the basename; use the full file name.
3665     shift
3666     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3667   fi
3668 fi
3669 fi
3670 fi
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680
3681 fi
3682 if test -z "$CC"; then
3683   if test -n "$ac_tool_prefix"; then
3684   for ac_prog in cl.exe
3685   do
3686     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_CC+set}" = set; then :
3691   $as_echo_n "(cached) " >&6
3692 else
3693   if test -n "$CC"; then
3694   ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699   IFS=$as_save_IFS
3700   test -z "$as_dir" && as_dir=.
3701     for ac_exec_ext in '' $ac_executable_extensions; do
3702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705     break 2
3706   fi
3707 done
3708   done
3709 IFS=$as_save_IFS
3710
3711 fi
3712 fi
3713 CC=$ac_cv_prog_CC
3714 if test -n "$CC"; then
3715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3717 else
3718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3720 fi
3721
3722
3723     test -n "$CC" && break
3724   done
3725 fi
3726 if test -z "$CC"; then
3727   ac_ct_CC=$CC
3728   for ac_prog in cl.exe
3729 do
3730   # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy $ac_prog; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3735   $as_echo_n "(cached) " >&6
3736 else
3737   if test -n "$ac_ct_CC"; then
3738   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745     for ac_exec_ext in '' $ac_executable_extensions; do
3746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747     ac_cv_prog_ac_ct_CC="$ac_prog"
3748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752   done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3761 else
3762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3765
3766
3767   test -n "$ac_ct_CC" && break
3768 done
3769
3770   if test "x$ac_ct_CC" = x; then
3771     CC=""
3772   else
3773     case $cross_compiling:$ac_tool_warned in
3774 yes:)
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned=yes ;;
3778 esac
3779     CC=$ac_ct_CC
3780   fi
3781 fi
3782
3783 fi
3784
3785
3786 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error "no acceptable C compiler found in \$PATH
3789 See \`config.log' for more details." "$LINENO" 5; }
3790
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3793 set X $ac_compile
3794 ac_compiler=$2
3795 for ac_option in --version -v -V -qversion; do
3796   { { ac_try="$ac_compiler $ac_option >&5"
3797 case "(($ac_try" in
3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799   *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804   ac_status=$?
3805   if test -s conftest.err; then
3806     sed '10a\
3807 ... rest of stderr output deleted ...
3808          10q' conftest.err >conftest.er1
3809     cat conftest.er1 >&5
3810     rm -f conftest.er1 conftest.err
3811   fi
3812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813   test $ac_status = 0; }
3814 done
3815
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h.  */
3818
3819 int
3820 main ()
3821 {
3822
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3831 # of exeext.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3835
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3838
3839 ac_rmfiles=
3840 for ac_file in $ac_files
3841 do
3842   case $ac_file in
3843     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3845   esac
3846 done
3847 rm -f $ac_rmfiles
3848
3849 if { { ac_try="$ac_link_default"
3850 case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856   (eval "$ac_link_default") 2>&5
3857   ac_status=$?
3858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859   test $ac_status = 0; }; then :
3860   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3863 # so that the user can short-circuit this test for compilers unknown to
3864 # Autoconf.
3865 for ac_file in $ac_files ''
3866 do
3867   test -f "$ac_file" || continue
3868   case $ac_file in
3869     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3870         ;;
3871     [ab].out )
3872         # We found the default executable, but exeext='' is most
3873         # certainly right.
3874         break;;
3875     *.* )
3876         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3877         then :; else
3878            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3879         fi
3880         # We set ac_cv_exeext here because the later test for it is not
3881         # safe: cross compilers may not add the suffix if given an `-o'
3882         # argument, so we may need to know it at that point already.
3883         # Even if this section looks crufty: it has the advantage of
3884         # actually working.
3885         break;;
3886     * )
3887         break;;
3888   esac
3889 done
3890 test "$ac_cv_exeext" = no && ac_cv_exeext=
3891
3892 else
3893   ac_file=''
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 if test -z "$ac_file"; then :
3898   $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { as_fn_set_status 77
3904 as_fn_error "C compiler cannot create executables
3905 See \`config.log' for more details." "$LINENO" 5; }; }
3906 fi
3907 ac_exeext=$ac_cv_exeext
3908
3909 # Check that the compiler produces executables we can run.  If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 # If not cross compiling, check that we can run a simple program.
3914 if test "$cross_compiling" != yes; then
3915   if { ac_try='./$ac_file'
3916   { { case "(($ac_try" in
3917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918   *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922   (eval "$ac_try") 2>&5
3923   ac_status=$?
3924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925   test $ac_status = 0; }; }; then
3926     cross_compiling=no
3927   else
3928     if test "$cross_compiling" = maybe; then
3929         cross_compiling=yes
3930     else
3931         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile, use \`--host'.
3935 See \`config.log' for more details." "$LINENO" 5; }
3936     fi
3937   fi
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3941
3942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 # Check that the compiler produces executables we can run.  If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3950
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3954 case "(($ac_try" in
3955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956   *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960   (eval "$ac_link") 2>&5
3961   ac_status=$?
3962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963   test $ac_status = 0; }; then :
3964   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969   test -f "$ac_file" || continue
3970   case $ac_file in
3971     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973           break;;
3974     * ) break;;
3975   esac
3976 done
3977 else
3978   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details." "$LINENO" 5; }
3982 fi
3983 rm -f conftest$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3986
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h.  */
3997
3998 int
3999 main ()
4000 {
4001
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try="$ac_compile"
4008 case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014   (eval "$ac_compile") 2>&5
4015   ac_status=$?
4016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017   test $ac_status = 0; }; then :
4018   for ac_file in conftest.o conftest.obj conftest.*; do
4019   test -f "$ac_file" || continue;
4020   case $ac_file in
4021     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4023        break;;
4024   esac
4025 done
4026 else
4027   $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "cannot compute suffix of object files: cannot compile
4033 See \`config.log' for more details." "$LINENO" 5; }
4034 fi
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4040 ac_objext=$OBJEXT
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044   $as_echo_n "(cached) " >&6
4045 else
4046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h.  */
4048
4049 int
4050 main ()
4051 {
4052 #ifndef __GNUC__
4053        choke me
4054 #endif
4055
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061   ac_compiler_gnu=yes
4062 else
4063   ac_compiler_gnu=no
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4067
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4072   GCC=yes
4073 else
4074   GCC=
4075 fi
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081   $as_echo_n "(cached) " >&6
4082 else
4083   ac_save_c_werror_flag=$ac_c_werror_flag
4084    ac_c_werror_flag=yes
4085    ac_cv_prog_cc_g=no
4086    CFLAGS="-g"
4087    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h.  */
4089
4090 int
4091 main ()
4092 {
4093
4094   ;
4095   return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099   ac_cv_prog_cc_g=yes
4100 else
4101   CFLAGS=""
4102       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h.  */
4104
4105 int
4106 main ()
4107 {
4108
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114
4115 else
4116   ac_c_werror_flag=$ac_save_c_werror_flag
4117          CFLAGS="-g"
4118          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h.  */
4120
4121 int
4122 main ()
4123 {
4124
4125   ;
4126   return 0;
4127 }
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130   ac_cv_prog_cc_g=yes
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137    ac_c_werror_flag=$ac_save_c_werror_flag
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142   CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144   if test "$GCC" = yes; then
4145     CFLAGS="-g -O2"
4146   else
4147     CFLAGS="-g"
4148   fi
4149 else
4150   if test "$GCC" = yes; then
4151     CFLAGS="-O2"
4152   else
4153     CFLAGS=
4154   fi
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159   $as_echo_n "(cached) " >&6
4160 else
4161   ac_cv_prog_cc_c89=no
4162 ac_save_CC=$CC
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h.  */
4165 #include <stdarg.h>
4166 #include <stdio.h>
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4173      char **p;
4174      int i;
4175 {
4176   return p[i];
4177 }
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4179 {
4180   char *s;
4181   va_list v;
4182   va_start (v,p);
4183   s = g (p, va_arg (v,int));
4184   va_end (v);
4185   return s;
4186 }
4187
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4189    function prototypes and stuff, but not '\xHH' hex character constants.
4190    These don't provoke an error unfortunately, instead are silently treated
4191    as 'x'.  The following induces an error, until -std is added to get
4192    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4193    array size at least.  It's necessary to write '\x00'==0 to get something
4194    that's true only with -std.  */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4196
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198    inside strings and character constants.  */
4199 #define FOO(x) 'x'
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4201
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4206 int argc;
4207 char **argv;
4208 int
4209 main ()
4210 {
4211 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4212   ;
4213   return 0;
4214 }
4215 _ACEOF
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4218 do
4219   CC="$ac_save_CC $ac_arg"
4220   if ac_fn_c_try_compile "$LINENO"; then :
4221   ac_cv_prog_cc_c89=$ac_arg
4222 fi
4223 rm -f core conftest.err conftest.$ac_objext
4224   test "x$ac_cv_prog_cc_c89" != "xno" && break
4225 done
4226 rm -f conftest.$ac_ext
4227 CC=$ac_save_CC
4228
4229 fi
4230 # AC_CACHE_VAL
4231 case "x$ac_cv_prog_cc_c89" in
4232   x)
4233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4235   xno)
4236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4238   *)
4239     CC="$CC $ac_cv_prog_cc_c89"
4240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4242 esac
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4244
4245 fi
4246
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252
4253 if test "x$CC" != xcc; then
4254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4255 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4256 else
4257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4258 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4259 fi
4260 set dummy $CC; ac_cc=`$as_echo "$2" |
4261                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4263   $as_echo_n "(cached) " >&6
4264 else
4265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h.  */
4267
4268 int
4269 main ()
4270 {
4271
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 # Make sure it works both with $CC and with simple cc.
4277 # We do the test twice because some compilers refuse to overwrite an
4278 # existing .o file with -o, though they will create one.
4279 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4280 rm -f conftest2.*
4281 if { { case "(($ac_try" in
4282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283   *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287   (eval "$ac_try") 2>&5
4288   ac_status=$?
4289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290   test $ac_status = 0; } &&
4291    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297   (eval "$ac_try") 2>&5
4298   ac_status=$?
4299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300   test $ac_status = 0; };
4301 then
4302   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4303   if test "x$CC" != xcc; then
4304     # Test first that cc exists at all.
4305     if { ac_try='cc -c conftest.$ac_ext >&5'
4306   { { case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312   (eval "$ac_try") 2>&5
4313   ac_status=$?
4314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315   test $ac_status = 0; }; }; then
4316       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4317       rm -f conftest2.*
4318       if { { case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324   (eval "$ac_try") 2>&5
4325   ac_status=$?
4326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327   test $ac_status = 0; } &&
4328          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334   (eval "$ac_try") 2>&5
4335   ac_status=$?
4336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337   test $ac_status = 0; };
4338       then
4339         # cc works too.
4340         :
4341       else
4342         # cc exists but doesn't like -o.
4343         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4344       fi
4345     fi
4346   fi
4347 else
4348   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4349 fi
4350 rm -f core conftest*
4351
4352 fi
4353 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4356 else
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359
4360 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4361
4362 fi
4363
4364 # expand $ac_aux_dir to an absolute path
4365 am_aux_dir=`cd $ac_aux_dir && pwd`
4366
4367 # FIXME: we rely on the cache variable name because
4368 # there is no other way.
4369 set dummy $CC
4370 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4372 if test "$am_t" != yes; then
4373    # Losing compiler, so override with the script.
4374    # FIXME: It is wrong to rewrite CC.
4375    # But if we don't then we get into trouble of one sort or another.
4376    # A longer-term fix would be to have automake use am__CC in this case,
4377    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378    CC="$am_aux_dir/compile $CC"
4379 fi
4380
4381
4382 ac_ext=cpp
4383 ac_cpp='$CXXCPP $CPPFLAGS'
4384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4387 if test -z "$CXX"; then
4388   if test -n "$CCC"; then
4389     CXX=$CCC
4390   else
4391     if test -n "$ac_tool_prefix"; then
4392   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4393   do
4394     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CXX+set}" = set; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   if test -n "$CXX"; then
4402   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409     for ac_exec_ext in '' $ac_executable_extensions; do
4410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416   done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 CXX=$ac_cv_prog_CXX
4422 if test -n "$CXX"; then
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4424 $as_echo "$CXX" >&6; }
4425 else
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429
4430
4431     test -n "$CXX" && break
4432   done
4433 fi
4434 if test -z "$CXX"; then
4435   ac_ct_CXX=$CXX
4436   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4437 do
4438   # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445   if test -n "$ac_ct_CXX"; then
4446   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453     for ac_exec_ext in '' $ac_executable_extensions; do
4454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455     ac_cv_prog_ac_ct_CXX="$ac_prog"
4456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460   done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4466 if test -n "$ac_ct_CXX"; then
4467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4468 $as_echo "$ac_ct_CXX" >&6; }
4469 else
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474
4475   test -n "$ac_ct_CXX" && break
4476 done
4477
4478   if test "x$ac_ct_CXX" = x; then
4479     CXX="g++"
4480   else
4481     case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487     CXX=$ac_ct_CXX
4488   fi
4489 fi
4490
4491   fi
4492 fi
4493 # Provide some information about the compiler.
4494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4495 set X $ac_compile
4496 ac_compiler=$2
4497 for ac_option in --version -v -V -qversion; do
4498   { { ac_try="$ac_compiler $ac_option >&5"
4499 case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506   ac_status=$?
4507   if test -s conftest.err; then
4508     sed '10a\
4509 ... rest of stderr output deleted ...
4510          10q' conftest.err >conftest.er1
4511     cat conftest.er1 >&5
4512     rm -f conftest.er1 conftest.err
4513   fi
4514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515   test $ac_status = 0; }
4516 done
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h.  */
4525
4526 int
4527 main ()
4528 {
4529 #ifndef __GNUC__
4530        choke me
4531 #endif
4532
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4538   ac_compiler_gnu=yes
4539 else
4540   ac_compiler_gnu=no
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4544
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4548 if test $ac_compiler_gnu = yes; then
4549   GXX=yes
4550 else
4551   GXX=
4552 fi
4553 ac_test_CXXFLAGS=${CXXFLAGS+set}
4554 ac_save_CXXFLAGS=$CXXFLAGS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4561    ac_cxx_werror_flag=yes
4562    ac_cv_prog_cxx_g=no
4563    CXXFLAGS="-g"
4564    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h.  */
4566
4567 int
4568 main ()
4569 {
4570
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4576   ac_cv_prog_cxx_g=yes
4577 else
4578   CXXFLAGS=""
4579       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h.  */
4581
4582 int
4583 main ()
4584 {
4585
4586   ;
4587   return 0;
4588 }
4589 _ACEOF
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4591
4592 else
4593   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4594          CXXFLAGS="-g"
4595          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h.  */
4597
4598 int
4599 main ()
4600 {
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4607   ac_cv_prog_cxx_g=yes
4608 fi
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4618 if test "$ac_test_CXXFLAGS" = set; then
4619   CXXFLAGS=$ac_save_CXXFLAGS
4620 elif test $ac_cv_prog_cxx_g = yes; then
4621   if test "$GXX" = yes; then
4622     CXXFLAGS="-g -O2"
4623   else
4624     CXXFLAGS="-g"
4625   fi
4626 else
4627   if test "$GXX" = yes; then
4628     CXXFLAGS="-O2"
4629   else
4630     CXXFLAGS=
4631   fi
4632 fi
4633 ac_ext=c
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
4639
4640
4641
4642 if test -n "$ac_tool_prefix"; then
4643   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4648   $as_echo_n "(cached) " >&6
4649 else
4650   if test -n "$GNATBIND"; then
4651   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656   IFS=$as_save_IFS
4657   test -z "$as_dir" && as_dir=.
4658     for ac_exec_ext in '' $ac_executable_extensions; do
4659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662     break 2
4663   fi
4664 done
4665   done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 GNATBIND=$ac_cv_prog_GNATBIND
4671 if test -n "$GNATBIND"; then
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4673 $as_echo "$GNATBIND" >&6; }
4674 else
4675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679
4680 fi
4681 if test -z "$ac_cv_prog_GNATBIND"; then
4682   ac_ct_GNATBIND=$GNATBIND
4683   # Extract the first word of "gnatbind", so it can be a program name with args.
4684 set dummy gnatbind; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4688   $as_echo_n "(cached) " >&6
4689 else
4690   if test -n "$ac_ct_GNATBIND"; then
4691   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705   done
4706 IFS=$as_save_IFS
4707
4708 fi
4709 fi
4710 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4711 if test -n "$ac_ct_GNATBIND"; then
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4713 $as_echo "$ac_ct_GNATBIND" >&6; }
4714 else
4715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4717 fi
4718
4719   if test "x$ac_ct_GNATBIND" = x; then
4720     GNATBIND="no"
4721   else
4722     case $cross_compiling:$ac_tool_warned in
4723 yes:)
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4727 esac
4728     GNATBIND=$ac_ct_GNATBIND
4729   fi
4730 else
4731   GNATBIND="$ac_cv_prog_GNATBIND"
4732 fi
4733
4734 if test -n "$ac_tool_prefix"; then
4735   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4740   $as_echo_n "(cached) " >&6
4741 else
4742   if test -n "$GNATMAKE"; then
4743   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750     for ac_exec_ext in '' $ac_executable_extensions; do
4751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754     break 2
4755   fi
4756 done
4757   done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 GNATMAKE=$ac_cv_prog_GNATMAKE
4763 if test -n "$GNATMAKE"; then
4764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4765 $as_echo "$GNATMAKE" >&6; }
4766 else
4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771
4772 fi
4773 if test -z "$ac_cv_prog_GNATMAKE"; then
4774   ac_ct_GNATMAKE=$GNATMAKE
4775   # Extract the first word of "gnatmake", so it can be a program name with args.
4776 set dummy gnatmake; 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_ac_ct_GNATMAKE+set}" = set; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782   if test -n "$ac_ct_GNATMAKE"; then
4783   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # 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_ac_ct_GNATMAKE="gnatmake"
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 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4803 if test -n "$ac_ct_GNATMAKE"; then
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4805 $as_echo "$ac_ct_GNATMAKE" >&6; }
4806 else
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811   if test "x$ac_ct_GNATMAKE" = x; then
4812     GNATMAKE="no"
4813   else
4814     case $cross_compiling:$ac_tool_warned in
4815 yes:)
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4819 esac
4820     GNATMAKE=$ac_ct_GNATMAKE
4821   fi
4822 else
4823   GNATMAKE="$ac_cv_prog_GNATMAKE"
4824 fi
4825
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4827 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4828 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   cat >conftest.adb <<EOF
4832 procedure conftest is begin null; end conftest;
4833 EOF
4834 acx_cv_cc_gcc_supports_ada=no
4835 # There is a bug in old released versions of GCC which causes the
4836 # driver to exit successfully when the appropriate language module
4837 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4838 # Therefore we must check for the error message as well as an
4839 # unsuccessful exit.
4840 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4841 # given a .adb file, but produce no object file.  So we must check
4842 # if an object file was really produced to guard against this.
4843 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4844 if test x"$errors" = x && test -f conftest.$ac_objext; then
4845   acx_cv_cc_gcc_supports_ada=yes
4846 fi
4847 rm -f conftest.*
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4850 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4851
4852 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4853   have_gnat=yes
4854 else
4855   have_gnat=no
4856 fi
4857
4858
4859 # autoconf is lame and doesn't give us any substitution variable for this.
4860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4861   NO_MINUS_C_MINUS_O=yes
4862 else
4863   OUTPUT_OPTION='-o $@'
4864 fi
4865
4866
4867
4868 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4869 # optimizations to be activated explicitly by the toplevel.
4870 case "$CC" in
4871   */prev-gcc/xgcc*) ;;
4872   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4873 esac
4874
4875
4876 # Determine PICFLAG for target gnatlib.
4877
4878
4879
4880
4881 case "${target}" in
4882     # PIC is the default on some targets or must not be used.
4883     *-*-darwin*)
4884         # PIC is the default on this platform
4885         # Common symbols not allowed in MH_DYLIB files
4886         PICFLAG_FOR_TARGET=-fno-common
4887         ;;
4888     alpha*-dec-osf5*)
4889         # PIC is the default.
4890         ;;
4891     hppa*64*-*-hpux*)
4892         # PIC is the default for 64-bit PA HP-UX.
4893         ;;
4894     i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4895         ;;
4896     i[34567]86-*-interix3*)
4897         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4898         # Instead, we relocate shared libraries at runtime.
4899         ;;
4900     i[34567]86-*-nto-qnx*)
4901         # QNX uses GNU C++, but need to define -shared option too, otherwise
4902         # it will coredump.
4903         PICFLAG_FOR_TARGET='-fPIC -shared'
4904         ;;
4905     i[34567]86-pc-msdosdjgpp*)
4906         # DJGPP does not support shared libraries at all.
4907         ;;
4908     ia64*-*-hpux*)
4909         # On IA64 HP-UX, PIC is the default but the pic flag
4910         # sets the default TLS model and affects inlining.
4911         PICFLAG_FOR_TARGET=-fPIC
4912         ;;
4913     mips-sgi-irix6*)
4914         # PIC is the default.
4915         ;;
4916     rs6000-ibm-aix* | powerpc-ibm-aix*)
4917         # All AIX code is PIC.
4918         ;;
4919
4920     # Some targets support both -fPIC and -fpic, but prefer the latter.
4921     # FIXME: Why?
4922     i[34567]86-*-* | x86_64-*-*)
4923         PICFLAG_FOR_TARGET=-fpic
4924         ;;
4925     m68k-*-*)
4926         PICFLAG_FOR_TARGET=-fpic
4927         ;;
4928     s390*-*-*)
4929         PICFLAG_FOR_TARGET=-fpic
4930         ;;
4931     # FIXME: Override -fPIC default in libgcc only?
4932     sh-*-linux* | sh[2346lbe]*-*-linux*)
4933         PICFLAG_FOR_TARGET=-fpic
4934         ;;
4935     # FIXME: Simplify to sh*-*-netbsd*?
4936     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4937       sh64-*-netbsd* | sh64l*-*-netbsd*)
4938         PICFLAG_FOR_TARGET=-fpic
4939         ;;
4940     # Default to -fPIC unless specified otherwise.
4941     *)
4942         PICFLAG_FOR_TARGET=-fPIC
4943         ;;
4944 esac
4945
4946 # If the user explicitly uses -fpic/-fPIC, keep that.
4947 case "${CFLAGS_FOR_TARGET}" in
4948     *-fpic*)
4949         PICFLAG_FOR_TARGET=-fpic
4950         ;;
4951     *-fPIC*)
4952         PICFLAG_FOR_TARGET=-fPIC
4953         ;;
4954 esac
4955
4956
4957
4958 # -------------------------
4959 # Check C compiler features
4960 # -------------------------
4961
4962
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4969 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4970 # On Suns, sometimes $CPP names a directory.
4971 if test -n "$CPP" && test -d "$CPP"; then
4972   CPP=
4973 fi
4974 if test -z "$CPP"; then
4975   if test "${ac_cv_prog_CPP+set}" = set; then :
4976   $as_echo_n "(cached) " >&6
4977 else
4978       # Double quotes because CPP needs to be expanded
4979     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4980     do
4981       ac_preproc_ok=false
4982 for ac_c_preproc_warn_flag in '' yes
4983 do
4984   # Use a header file that comes with gcc, so configuring glibc
4985   # with a fresh cross-compiler works.
4986   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987   # <limits.h> exists even on freestanding compilers.
4988   # On the NeXT, cc -E runs the code through the compiler's parser,
4989   # not just through cpp. "Syntax error" is here to catch this case.
4990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h.  */
4992 #ifdef __STDC__
4993 # include <limits.h>
4994 #else
4995 # include <assert.h>
4996 #endif
4997                      Syntax error
4998 _ACEOF
4999 if ac_fn_c_try_cpp "$LINENO"; then :
5000
5001 else
5002   # Broken: fails on valid input.
5003 continue
5004 fi
5005 rm -f conftest.err conftest.$ac_ext
5006
5007   # OK, works on sane cases.  Now check whether nonexistent headers
5008   # can be detected and how.
5009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h.  */
5011 #include <ac_nonexistent.h>
5012 _ACEOF
5013 if ac_fn_c_try_cpp "$LINENO"; then :
5014   # Broken: success on invalid input.
5015 continue
5016 else
5017   # Passes both tests.
5018 ac_preproc_ok=:
5019 break
5020 fi
5021 rm -f conftest.err conftest.$ac_ext
5022
5023 done
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.$ac_ext
5026 if $ac_preproc_ok; then :
5027   break
5028 fi
5029
5030     done
5031     ac_cv_prog_CPP=$CPP
5032
5033 fi
5034   CPP=$ac_cv_prog_CPP
5035 else
5036   ac_cv_prog_CPP=$CPP
5037 fi
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5039 $as_echo "$CPP" >&6; }
5040 ac_preproc_ok=false
5041 for ac_c_preproc_warn_flag in '' yes
5042 do
5043   # Use a header file that comes with gcc, so configuring glibc
5044   # with a fresh cross-compiler works.
5045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046   # <limits.h> exists even on freestanding compilers.
5047   # On the NeXT, cc -E runs the code through the compiler's parser,
5048   # not just through cpp. "Syntax error" is here to catch this case.
5049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h.  */
5051 #ifdef __STDC__
5052 # include <limits.h>
5053 #else
5054 # include <assert.h>
5055 #endif
5056                      Syntax error
5057 _ACEOF
5058 if ac_fn_c_try_cpp "$LINENO"; then :
5059
5060 else
5061   # Broken: fails on valid input.
5062 continue
5063 fi
5064 rm -f conftest.err conftest.$ac_ext
5065
5066   # OK, works on sane cases.  Now check whether nonexistent headers
5067   # can be detected and how.
5068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h.  */
5070 #include <ac_nonexistent.h>
5071 _ACEOF
5072 if ac_fn_c_try_cpp "$LINENO"; then :
5073   # Broken: success on invalid input.
5074 continue
5075 else
5076   # Passes both tests.
5077 ac_preproc_ok=:
5078 break
5079 fi
5080 rm -f conftest.err conftest.$ac_ext
5081
5082 done
5083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5084 rm -f conftest.err conftest.$ac_ext
5085 if $ac_preproc_ok; then :
5086
5087 else
5088   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5090 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5091 See \`config.log' for more details." "$LINENO" 5; }
5092 fi
5093
5094 ac_ext=c
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5103 if test "${ac_cv_path_GREP+set}" = set; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   if test -z "$GREP"; then
5107   ac_path_GREP_found=false
5108   # Loop through the user's path and test for each of PROGNAME-LIST
5109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5111 do
5112   IFS=$as_save_IFS
5113   test -z "$as_dir" && as_dir=.
5114     for ac_prog in grep ggrep; do
5115     for ac_exec_ext in '' $ac_executable_extensions; do
5116       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5117       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5118 # Check for GNU ac_path_GREP and select it if it is found.
5119   # Check for GNU $ac_path_GREP
5120 case `"$ac_path_GREP" --version 2>&1` in
5121 *GNU*)
5122   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5123 *)
5124   ac_count=0
5125   $as_echo_n 0123456789 >"conftest.in"
5126   while :
5127   do
5128     cat "conftest.in" "conftest.in" >"conftest.tmp"
5129     mv "conftest.tmp" "conftest.in"
5130     cp "conftest.in" "conftest.nl"
5131     $as_echo 'GREP' >> "conftest.nl"
5132     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5133     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5134     as_fn_arith $ac_count + 1 && ac_count=$as_val
5135     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5136       # Best one so far, save it but keep looking for a better one
5137       ac_cv_path_GREP="$ac_path_GREP"
5138       ac_path_GREP_max=$ac_count
5139     fi
5140     # 10*(2^10) chars as input seems more than enough
5141     test $ac_count -gt 10 && break
5142   done
5143   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5144 esac
5145
5146       $ac_path_GREP_found && break 3
5147     done
5148   done
5149   done
5150 IFS=$as_save_IFS
5151   if test -z "$ac_cv_path_GREP"; then
5152     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5153   fi
5154 else
5155   ac_cv_path_GREP=$GREP
5156 fi
5157
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5160 $as_echo "$ac_cv_path_GREP" >&6; }
5161  GREP="$ac_cv_path_GREP"
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5165 $as_echo_n "checking for egrep... " >&6; }
5166 if test "${ac_cv_path_EGREP+set}" = set; then :
5167   $as_echo_n "(cached) " >&6
5168 else
5169   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5170    then ac_cv_path_EGREP="$GREP -E"
5171    else
5172      if test -z "$EGREP"; then
5173   ac_path_EGREP_found=false
5174   # Loop through the user's path and test for each of PROGNAME-LIST
5175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180     for ac_prog in egrep; do
5181     for ac_exec_ext in '' $ac_executable_extensions; do
5182       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5183       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5184 # Check for GNU ac_path_EGREP and select it if it is found.
5185   # Check for GNU $ac_path_EGREP
5186 case `"$ac_path_EGREP" --version 2>&1` in
5187 *GNU*)
5188   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5189 *)
5190   ac_count=0
5191   $as_echo_n 0123456789 >"conftest.in"
5192   while :
5193   do
5194     cat "conftest.in" "conftest.in" >"conftest.tmp"
5195     mv "conftest.tmp" "conftest.in"
5196     cp "conftest.in" "conftest.nl"
5197     $as_echo 'EGREP' >> "conftest.nl"
5198     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200     as_fn_arith $ac_count + 1 && ac_count=$as_val
5201     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5202       # Best one so far, save it but keep looking for a better one
5203       ac_cv_path_EGREP="$ac_path_EGREP"
5204       ac_path_EGREP_max=$ac_count
5205     fi
5206     # 10*(2^10) chars as input seems more than enough
5207     test $ac_count -gt 10 && break
5208   done
5209   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 esac
5211
5212       $ac_path_EGREP_found && break 3
5213     done
5214   done
5215   done
5216 IFS=$as_save_IFS
5217   if test -z "$ac_cv_path_EGREP"; then
5218     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5219   fi
5220 else
5221   ac_cv_path_EGREP=$EGREP
5222 fi
5223
5224    fi
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5227 $as_echo "$ac_cv_path_EGREP" >&6; }
5228  EGREP="$ac_cv_path_EGREP"
5229
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5232 $as_echo_n "checking for ANSI C header files... " >&6; }
5233 if test "${ac_cv_header_stdc+set}" = set; then :
5234   $as_echo_n "(cached) " >&6
5235 else
5236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h.  */
5238 #include <stdlib.h>
5239 #include <stdarg.h>
5240 #include <string.h>
5241 #include <float.h>
5242
5243 int
5244 main ()
5245 {
5246
5247   ;
5248   return 0;
5249 }
5250 _ACEOF
5251 if ac_fn_c_try_compile "$LINENO"; then :
5252   ac_cv_header_stdc=yes
5253 else
5254   ac_cv_header_stdc=no
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257
5258 if test $ac_cv_header_stdc = yes; then
5259   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h.  */
5262 #include <string.h>
5263
5264 _ACEOF
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266   $EGREP "memchr" >/dev/null 2>&1; then :
5267
5268 else
5269   ac_cv_header_stdc=no
5270 fi
5271 rm -f conftest*
5272
5273 fi
5274
5275 if test $ac_cv_header_stdc = yes; then
5276   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h.  */
5279 #include <stdlib.h>
5280
5281 _ACEOF
5282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5283   $EGREP "free" >/dev/null 2>&1; then :
5284
5285 else
5286   ac_cv_header_stdc=no
5287 fi
5288 rm -f conftest*
5289
5290 fi
5291
5292 if test $ac_cv_header_stdc = yes; then
5293   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5294   if test "$cross_compiling" = yes; then :
5295   :
5296 else
5297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h.  */
5299 #include <ctype.h>
5300 #include <stdlib.h>
5301 #if ((' ' & 0x0FF) == 0x020)
5302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5304 #else
5305 # define ISLOWER(c) \
5306                    (('a' <= (c) && (c) <= 'i') \
5307                      || ('j' <= (c) && (c) <= 'r') \
5308                      || ('s' <= (c) && (c) <= 'z'))
5309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5310 #endif
5311
5312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5313 int
5314 main ()
5315 {
5316   int i;
5317   for (i = 0; i < 256; i++)
5318     if (XOR (islower (i), ISLOWER (i))
5319         || toupper (i) != TOUPPER (i))
5320       return 2;
5321   return 0;
5322 }
5323 _ACEOF
5324 if ac_fn_c_try_run "$LINENO"; then :
5325
5326 else
5327   ac_cv_header_stdc=no
5328 fi
5329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5330   conftest.$ac_objext conftest.beam conftest.$ac_ext
5331 fi
5332
5333 fi
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5336 $as_echo "$ac_cv_header_stdc" >&6; }
5337 if test $ac_cv_header_stdc = yes; then
5338
5339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5340
5341 fi
5342
5343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5345                   inttypes.h stdint.h unistd.h
5346 do :
5347   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5348 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5349 "
5350 eval as_val=\$$as_ac_Header
5351    if test "x$as_val" = x""yes; then :
5352   cat >>confdefs.h <<_ACEOF
5353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5354 _ACEOF
5355
5356 fi
5357
5358 done
5359
5360
5361
5362   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5363 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5364   MINIX=yes
5365 else
5366   MINIX=
5367 fi
5368
5369
5370   if test "$MINIX" = yes; then
5371
5372 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5373
5374
5375 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5376
5377
5378 $as_echo "#define _MINIX 1" >>confdefs.h
5379
5380   fi
5381
5382
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5384 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5385 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5386   $as_echo_n "(cached) " >&6
5387 else
5388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h.  */
5390
5391 #         define __EXTENSIONS__ 1
5392           $ac_includes_default
5393 int
5394 main ()
5395 {
5396
5397   ;
5398   return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"; then :
5402   ac_cv_safe_to_define___extensions__=yes
5403 else
5404   ac_cv_safe_to_define___extensions__=no
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5409 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5410   test $ac_cv_safe_to_define___extensions__ = yes &&
5411     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5412
5413   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5414
5415   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5416
5417   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5418
5419   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5420
5421
5422 ac_ext=c
5423 ac_cpp='$CPP $CPPFLAGS'
5424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5428 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5429 # On Suns, sometimes $CPP names a directory.
5430 if test -n "$CPP" && test -d "$CPP"; then
5431   CPP=
5432 fi
5433 if test -z "$CPP"; then
5434   if test "${ac_cv_prog_CPP+set}" = set; then :
5435   $as_echo_n "(cached) " >&6
5436 else
5437       # Double quotes because CPP needs to be expanded
5438     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5439     do
5440       ac_preproc_ok=false
5441 for ac_c_preproc_warn_flag in '' yes
5442 do
5443   # Use a header file that comes with gcc, so configuring glibc
5444   # with a fresh cross-compiler works.
5445   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5446   # <limits.h> exists even on freestanding compilers.
5447   # On the NeXT, cc -E runs the code through the compiler's parser,
5448   # not just through cpp. "Syntax error" is here to catch this case.
5449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h.  */
5451 #ifdef __STDC__
5452 # include <limits.h>
5453 #else
5454 # include <assert.h>
5455 #endif
5456                      Syntax error
5457 _ACEOF
5458 if ac_fn_c_try_cpp "$LINENO"; then :
5459
5460 else
5461   # Broken: fails on valid input.
5462 continue
5463 fi
5464 rm -f conftest.err conftest.$ac_ext
5465
5466   # OK, works on sane cases.  Now check whether nonexistent headers
5467   # can be detected and how.
5468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h.  */
5470 #include <ac_nonexistent.h>
5471 _ACEOF
5472 if ac_fn_c_try_cpp "$LINENO"; then :
5473   # Broken: success on invalid input.
5474 continue
5475 else
5476   # Passes both tests.
5477 ac_preproc_ok=:
5478 break
5479 fi
5480 rm -f conftest.err conftest.$ac_ext
5481
5482 done
5483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5484 rm -f conftest.err conftest.$ac_ext
5485 if $ac_preproc_ok; then :
5486   break
5487 fi
5488
5489     done
5490     ac_cv_prog_CPP=$CPP
5491
5492 fi
5493   CPP=$ac_cv_prog_CPP
5494 else
5495   ac_cv_prog_CPP=$CPP
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5498 $as_echo "$CPP" >&6; }
5499 ac_preproc_ok=false
5500 for ac_c_preproc_warn_flag in '' yes
5501 do
5502   # Use a header file that comes with gcc, so configuring glibc
5503   # with a fresh cross-compiler works.
5504   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5505   # <limits.h> exists even on freestanding compilers.
5506   # On the NeXT, cc -E runs the code through the compiler's parser,
5507   # not just through cpp. "Syntax error" is here to catch this case.
5508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h.  */
5510 #ifdef __STDC__
5511 # include <limits.h>
5512 #else
5513 # include <assert.h>
5514 #endif
5515                      Syntax error
5516 _ACEOF
5517 if ac_fn_c_try_cpp "$LINENO"; then :
5518
5519 else
5520   # Broken: fails on valid input.
5521 continue
5522 fi
5523 rm -f conftest.err conftest.$ac_ext
5524
5525   # OK, works on sane cases.  Now check whether nonexistent headers
5526   # can be detected and how.
5527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h.  */
5529 #include <ac_nonexistent.h>
5530 _ACEOF
5531 if ac_fn_c_try_cpp "$LINENO"; then :
5532   # Broken: success on invalid input.
5533 continue
5534 else
5535   # Passes both tests.
5536 ac_preproc_ok=:
5537 break
5538 fi
5539 rm -f conftest.err conftest.$ac_ext
5540
5541 done
5542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5543 rm -f conftest.err conftest.$ac_ext
5544 if $ac_preproc_ok; then :
5545
5546 else
5547   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5549 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5550 See \`config.log' for more details." "$LINENO" 5; }
5551 fi
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
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5560 $as_echo_n "checking for inline... " >&6; }
5561 if test "${ac_cv_c_inline+set}" = set; then :
5562   $as_echo_n "(cached) " >&6
5563 else
5564   ac_cv_c_inline=no
5565 for ac_kw in inline __inline__ __inline; do
5566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h.  */
5568 #ifndef __cplusplus
5569 typedef int foo_t;
5570 static $ac_kw foo_t static_foo () {return 0; }
5571 $ac_kw foo_t foo () {return 0; }
5572 #endif
5573
5574 _ACEOF
5575 if ac_fn_c_try_compile "$LINENO"; then :
5576   ac_cv_c_inline=$ac_kw
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579   test "$ac_cv_c_inline" != no && break
5580 done
5581
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5584 $as_echo "$ac_cv_c_inline" >&6; }
5585
5586 case $ac_cv_c_inline in
5587   inline | yes) ;;
5588   *)
5589     case $ac_cv_c_inline in
5590       no) ac_val=;;
5591       *) ac_val=$ac_cv_c_inline;;
5592     esac
5593     cat >>confdefs.h <<_ACEOF
5594 #ifndef __cplusplus
5595 #define inline $ac_val
5596 #endif
5597 _ACEOF
5598     ;;
5599 esac
5600
5601
5602 # Check whether --enable-largefile was given.
5603 if test "${enable_largefile+set}" = set; then :
5604   enableval=$enable_largefile;
5605 fi
5606
5607 if test "$enable_largefile" != no; then
5608
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5610 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5611 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5612   $as_echo_n "(cached) " >&6
5613 else
5614   ac_cv_sys_largefile_CC=no
5615      if test "$GCC" != yes; then
5616        ac_save_CC=$CC
5617        while :; do
5618          # IRIX 6.2 and later do not support large files by default,
5619          # so use the C compiler's -n32 option if that helps.
5620          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h.  */
5622 #include <sys/types.h>
5623  /* Check that off_t can represent 2**63 - 1 correctly.
5624     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5625     since some C++ compilers masquerading as C compilers
5626     incorrectly reject 9223372036854775807.  */
5627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5628   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5629                        && LARGE_OFF_T % 2147483647 == 1)
5630                       ? 1 : -1];
5631 int
5632 main ()
5633 {
5634
5635   ;
5636   return 0;
5637 }
5638 _ACEOF
5639          if ac_fn_c_try_compile "$LINENO"; then :
5640   break
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext
5643          CC="$CC -n32"
5644          if ac_fn_c_try_compile "$LINENO"; then :
5645   ac_cv_sys_largefile_CC=' -n32'; break
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext
5648          break
5649        done
5650        CC=$ac_save_CC
5651        rm -f conftest.$ac_ext
5652     fi
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5655 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5656   if test "$ac_cv_sys_largefile_CC" != no; then
5657     CC=$CC$ac_cv_sys_largefile_CC
5658   fi
5659
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5661 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5662 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665   while :; do
5666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h.  */
5668 #include <sys/types.h>
5669  /* Check that off_t can represent 2**63 - 1 correctly.
5670     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671     since some C++ compilers masquerading as C compilers
5672     incorrectly reject 9223372036854775807.  */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675                        && LARGE_OFF_T % 2147483647 == 1)
5676                       ? 1 : -1];
5677 int
5678 main ()
5679 {
5680
5681   ;
5682   return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686   ac_cv_sys_file_offset_bits=no; break
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h.  */
5691 #define _FILE_OFFSET_BITS 64
5692 #include <sys/types.h>
5693  /* Check that off_t can represent 2**63 - 1 correctly.
5694     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695     since some C++ compilers masquerading as C compilers
5696     incorrectly reject 9223372036854775807.  */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699                        && LARGE_OFF_T % 2147483647 == 1)
5700                       ? 1 : -1];
5701 int
5702 main ()
5703 {
5704
5705   ;
5706   return 0;
5707 }
5708 _ACEOF
5709 if ac_fn_c_try_compile "$LINENO"; then :
5710   ac_cv_sys_file_offset_bits=64; break
5711 fi
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713   ac_cv_sys_file_offset_bits=unknown
5714   break
5715 done
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5718 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5719 case $ac_cv_sys_file_offset_bits in #(
5720   no | unknown) ;;
5721   *)
5722 cat >>confdefs.h <<_ACEOF
5723 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5724 _ACEOF
5725 ;;
5726 esac
5727 rm -rf conftest*
5728   if test $ac_cv_sys_file_offset_bits = unknown; then
5729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5730 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5731 if test "${ac_cv_sys_large_files+set}" = set; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   while :; do
5735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h.  */
5737 #include <sys/types.h>
5738  /* Check that off_t can represent 2**63 - 1 correctly.
5739     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5740     since some C++ compilers masquerading as C compilers
5741     incorrectly reject 9223372036854775807.  */
5742 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5743   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5744                        && LARGE_OFF_T % 2147483647 == 1)
5745                       ? 1 : -1];
5746 int
5747 main ()
5748 {
5749
5750   ;
5751   return 0;
5752 }
5753 _ACEOF
5754 if ac_fn_c_try_compile "$LINENO"; then :
5755   ac_cv_sys_large_files=no; break
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h.  */
5760 #define _LARGE_FILES 1
5761 #include <sys/types.h>
5762  /* Check that off_t can represent 2**63 - 1 correctly.
5763     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5764     since some C++ compilers masquerading as C compilers
5765     incorrectly reject 9223372036854775807.  */
5766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5767   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5768                        && LARGE_OFF_T % 2147483647 == 1)
5769                       ? 1 : -1];
5770 int
5771 main ()
5772 {
5773
5774   ;
5775   return 0;
5776 }
5777 _ACEOF
5778 if ac_fn_c_try_compile "$LINENO"; then :
5779   ac_cv_sys_large_files=1; break
5780 fi
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782   ac_cv_sys_large_files=unknown
5783   break
5784 done
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5787 $as_echo "$ac_cv_sys_large_files" >&6; }
5788 case $ac_cv_sys_large_files in #(
5789   no | unknown) ;;
5790   *)
5791 cat >>confdefs.h <<_ACEOF
5792 #define _LARGE_FILES $ac_cv_sys_large_files
5793 _ACEOF
5794 ;;
5795 esac
5796 rm -rf conftest*
5797   fi
5798 fi
5799
5800
5801 # sizeof(char) is 1 by definition.
5802 # The cast to long int works around a bug in the HP C Compiler
5803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5805 # This bug is HP SR number 8606223364.
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5807 $as_echo_n "checking size of void *... " >&6; }
5808 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5809   $as_echo_n "(cached) " >&6
5810 else
5811   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5812
5813 else
5814   if test "$ac_cv_type_void_p" = yes; then
5815      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5817 { as_fn_set_status 77
5818 as_fn_error "cannot compute sizeof (void *)
5819 See \`config.log' for more details." "$LINENO" 5; }; }
5820    else
5821      ac_cv_sizeof_void_p=0
5822    fi
5823 fi
5824
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5827 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5828
5829
5830
5831 cat >>confdefs.h <<_ACEOF
5832 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5833 _ACEOF
5834
5835
5836 # The cast to long int works around a bug in the HP C Compiler
5837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5839 # This bug is HP SR number 8606223364.
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5841 $as_echo_n "checking size of short... " >&6; }
5842 if test "${ac_cv_sizeof_short+set}" = set; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5846
5847 else
5848   if test "$ac_cv_type_short" = yes; then
5849      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5851 { as_fn_set_status 77
5852 as_fn_error "cannot compute sizeof (short)
5853 See \`config.log' for more details." "$LINENO" 5; }; }
5854    else
5855      ac_cv_sizeof_short=0
5856    fi
5857 fi
5858
5859 fi
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5861 $as_echo "$ac_cv_sizeof_short" >&6; }
5862
5863
5864
5865 cat >>confdefs.h <<_ACEOF
5866 #define SIZEOF_SHORT $ac_cv_sizeof_short
5867 _ACEOF
5868
5869
5870 # The cast to long int works around a bug in the HP C Compiler
5871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5873 # This bug is HP SR number 8606223364.
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5875 $as_echo_n "checking size of int... " >&6; }
5876 if test "${ac_cv_sizeof_int+set}" = set; then :
5877   $as_echo_n "(cached) " >&6
5878 else
5879   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5880
5881 else
5882   if test "$ac_cv_type_int" = yes; then
5883      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5885 { as_fn_set_status 77
5886 as_fn_error "cannot compute sizeof (int)
5887 See \`config.log' for more details." "$LINENO" 5; }; }
5888    else
5889      ac_cv_sizeof_int=0
5890    fi
5891 fi
5892
5893 fi
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5895 $as_echo "$ac_cv_sizeof_int" >&6; }
5896
5897
5898
5899 cat >>confdefs.h <<_ACEOF
5900 #define SIZEOF_INT $ac_cv_sizeof_int
5901 _ACEOF
5902
5903
5904 # The cast to long int works around a bug in the HP C Compiler
5905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5907 # This bug is HP SR number 8606223364.
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5909 $as_echo_n "checking size of long... " >&6; }
5910 if test "${ac_cv_sizeof_long+set}" = set; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5914
5915 else
5916   if test "$ac_cv_type_long" = yes; then
5917      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5919 { as_fn_set_status 77
5920 as_fn_error "cannot compute sizeof (long)
5921 See \`config.log' for more details." "$LINENO" 5; }; }
5922    else
5923      ac_cv_sizeof_long=0
5924    fi
5925 fi
5926
5927 fi
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5929 $as_echo "$ac_cv_sizeof_long" >&6; }
5930
5931
5932
5933 cat >>confdefs.h <<_ACEOF
5934 #define SIZEOF_LONG $ac_cv_sizeof_long
5935 _ACEOF
5936
5937
5938 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5939 if test "x$ac_cv_type_long_long" = x""yes; then :
5940
5941 cat >>confdefs.h <<_ACEOF
5942 #define HAVE_LONG_LONG 1
5943 _ACEOF
5944
5945 # The cast to long int works around a bug in the HP C Compiler
5946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5948 # This bug is HP SR number 8606223364.
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5950 $as_echo_n "checking size of long long... " >&6; }
5951 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5952   $as_echo_n "(cached) " >&6
5953 else
5954   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5955
5956 else
5957   if test "$ac_cv_type_long_long" = yes; then
5958      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5960 { as_fn_set_status 77
5961 as_fn_error "cannot compute sizeof (long long)
5962 See \`config.log' for more details." "$LINENO" 5; }; }
5963    else
5964      ac_cv_sizeof_long_long=0
5965    fi
5966 fi
5967
5968 fi
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5970 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5971
5972
5973
5974 cat >>confdefs.h <<_ACEOF
5975 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5976 _ACEOF
5977
5978
5979 fi
5980
5981 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5982 if test "x$ac_cv_type___int64" = x""yes; then :
5983
5984 cat >>confdefs.h <<_ACEOF
5985 #define HAVE___INT64 1
5986 _ACEOF
5987
5988 # The cast to long int works around a bug in the HP C Compiler
5989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5991 # This bug is HP SR number 8606223364.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5993 $as_echo_n "checking size of __int64... " >&6; }
5994 if test "${ac_cv_sizeof___int64+set}" = set; then :
5995   $as_echo_n "(cached) " >&6
5996 else
5997   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5998
5999 else
6000   if test "$ac_cv_type___int64" = yes; then
6001      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6003 { as_fn_set_status 77
6004 as_fn_error "cannot compute sizeof (__int64)
6005 See \`config.log' for more details." "$LINENO" 5; }; }
6006    else
6007      ac_cv_sizeof___int64=0
6008    fi
6009 fi
6010
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6013 $as_echo "$ac_cv_sizeof___int64" >&6; }
6014
6015
6016
6017 cat >>confdefs.h <<_ACEOF
6018 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6019 _ACEOF
6020
6021
6022 fi
6023
6024 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6025 case $ac_cv_c_int8_t in #(
6026   no|yes) ;; #(
6027   *)
6028
6029 cat >>confdefs.h <<_ACEOF
6030 #define int8_t $ac_cv_c_int8_t
6031 _ACEOF
6032 ;;
6033 esac
6034
6035 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6036 case $ac_cv_c_int16_t in #(
6037   no|yes) ;; #(
6038   *)
6039
6040 cat >>confdefs.h <<_ACEOF
6041 #define int16_t $ac_cv_c_int16_t
6042 _ACEOF
6043 ;;
6044 esac
6045
6046 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6047 case $ac_cv_c_int32_t in #(
6048   no|yes) ;; #(
6049   *)
6050
6051 cat >>confdefs.h <<_ACEOF
6052 #define int32_t $ac_cv_c_int32_t
6053 _ACEOF
6054 ;;
6055 esac
6056
6057 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6058 case $ac_cv_c_int64_t in #(
6059   no|yes) ;; #(
6060   *)
6061
6062 cat >>confdefs.h <<_ACEOF
6063 #define int64_t $ac_cv_c_int64_t
6064 _ACEOF
6065 ;;
6066 esac
6067
6068
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6070 $as_echo_n "checking for long long int... " >&6; }
6071 if test "${ac_cv_type_long_long_int+set}" = set; then :
6072   $as_echo_n "(cached) " >&6
6073 else
6074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h.  */
6076
6077   /* For now, do not test the preprocessor; as of 2007 there are too many
6078          implementations with broken preprocessors.  Perhaps this can
6079          be revisited in 2012.  In the meantime, code should not expect
6080          #if to work with literals wider than 32 bits.  */
6081       /* Test literals.  */
6082       long long int ll = 9223372036854775807ll;
6083       long long int nll = -9223372036854775807LL;
6084       unsigned long long int ull = 18446744073709551615ULL;
6085       /* Test constant expressions.   */
6086       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6087                      ? 1 : -1)];
6088       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6089                      ? 1 : -1)];
6090       int i = 63;
6091 int
6092 main ()
6093 {
6094 /* Test availability of runtime routines for shift and division.  */
6095       long long int llmax = 9223372036854775807ll;
6096       unsigned long long int ullmax = 18446744073709551615ull;
6097       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6098               | (llmax / ll) | (llmax % ll)
6099               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6100               | (ullmax / ull) | (ullmax % ull));
6101   ;
6102   return 0;
6103 }
6104
6105 _ACEOF
6106 if ac_fn_c_try_link "$LINENO"; then :
6107                         if test "$cross_compiling" = yes; then :
6108   ac_cv_type_long_long_int=yes
6109 else
6110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h.  */
6112 #include <limits.h>
6113                #ifndef LLONG_MAX
6114                # define HALF \
6115                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6116                # define LLONG_MAX (HALF - 1 + HALF)
6117                #endif
6118 int
6119 main ()
6120 {
6121 long long int n = 1;
6122                int i;
6123                for (i = 0; ; i++)
6124                  {
6125                    long long int m = n << i;
6126                    if (m >> i != n)
6127                      return 1;
6128                    if (LLONG_MAX / 2 < m)
6129                      break;
6130                  }
6131                return 0;
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 if ac_fn_c_try_run "$LINENO"; then :
6137   ac_cv_type_long_long_int=yes
6138 else
6139   ac_cv_type_long_long_int=no
6140 fi
6141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6142   conftest.$ac_objext conftest.beam conftest.$ac_ext
6143 fi
6144
6145 else
6146   ac_cv_type_long_long_int=no
6147 fi
6148 rm -f core conftest.err conftest.$ac_objext \
6149     conftest$ac_exeext conftest.$ac_ext
6150 fi
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6152 $as_echo "$ac_cv_type_long_long_int" >&6; }
6153   if test $ac_cv_type_long_long_int = yes; then
6154
6155 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6156
6157   fi
6158
6159
6160
6161   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6162 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6163
6164 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6165
6166 else
6167   test $ac_cv_type_long_long_int = yes \
6168        && ac_type='long long int' \
6169        || ac_type='long int'
6170
6171 cat >>confdefs.h <<_ACEOF
6172 #define intmax_t $ac_type
6173 _ACEOF
6174
6175 fi
6176
6177
6178
6179   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6180 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6181
6182 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6183
6184 else
6185   for ac_type in 'int' 'long int' 'long long int'; do
6186        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h.  */
6188 $ac_includes_default
6189 int
6190 main ()
6191 {
6192 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6193 test_array [0] = 0
6194
6195   ;
6196   return 0;
6197 }
6198 _ACEOF
6199 if ac_fn_c_try_compile "$LINENO"; then :
6200
6201 cat >>confdefs.h <<_ACEOF
6202 #define intptr_t $ac_type
6203 _ACEOF
6204
6205           ac_type=
6206 fi
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208        test -z "$ac_type" && break
6209      done
6210 fi
6211
6212
6213 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6214 case $ac_cv_c_uint8_t in #(
6215   no|yes) ;; #(
6216   *)
6217
6218 $as_echo "#define _UINT8_T 1" >>confdefs.h
6219
6220
6221 cat >>confdefs.h <<_ACEOF
6222 #define uint8_t $ac_cv_c_uint8_t
6223 _ACEOF
6224 ;;
6225   esac
6226
6227 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6228 case $ac_cv_c_uint16_t in #(
6229   no|yes) ;; #(
6230   *)
6231
6232
6233 cat >>confdefs.h <<_ACEOF
6234 #define uint16_t $ac_cv_c_uint16_t
6235 _ACEOF
6236 ;;
6237   esac
6238
6239 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6240 case $ac_cv_c_uint32_t in #(
6241   no|yes) ;; #(
6242   *)
6243
6244 $as_echo "#define _UINT32_T 1" >>confdefs.h
6245
6246
6247 cat >>confdefs.h <<_ACEOF
6248 #define uint32_t $ac_cv_c_uint32_t
6249 _ACEOF
6250 ;;
6251   esac
6252
6253 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6254 case $ac_cv_c_uint64_t in #(
6255   no|yes) ;; #(
6256   *)
6257
6258 $as_echo "#define _UINT64_T 1" >>confdefs.h
6259
6260
6261 cat >>confdefs.h <<_ACEOF
6262 #define uint64_t $ac_cv_c_uint64_t
6263 _ACEOF
6264 ;;
6265   esac
6266
6267
6268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6269 $as_echo_n "checking for unsigned long long int... " >&6; }
6270 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6271   $as_echo_n "(cached) " >&6
6272 else
6273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h.  */
6275
6276   /* For now, do not test the preprocessor; as of 2007 there are too many
6277          implementations with broken preprocessors.  Perhaps this can
6278          be revisited in 2012.  In the meantime, code should not expect
6279          #if to work with literals wider than 32 bits.  */
6280       /* Test literals.  */
6281       long long int ll = 9223372036854775807ll;
6282       long long int nll = -9223372036854775807LL;
6283       unsigned long long int ull = 18446744073709551615ULL;
6284       /* Test constant expressions.   */
6285       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6286                      ? 1 : -1)];
6287       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6288                      ? 1 : -1)];
6289       int i = 63;
6290 int
6291 main ()
6292 {
6293 /* Test availability of runtime routines for shift and division.  */
6294       long long int llmax = 9223372036854775807ll;
6295       unsigned long long int ullmax = 18446744073709551615ull;
6296       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6297               | (llmax / ll) | (llmax % ll)
6298               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6299               | (ullmax / ull) | (ullmax % ull));
6300   ;
6301   return 0;
6302 }
6303
6304 _ACEOF
6305 if ac_fn_c_try_link "$LINENO"; then :
6306   ac_cv_type_unsigned_long_long_int=yes
6307 else
6308   ac_cv_type_unsigned_long_long_int=no
6309 fi
6310 rm -f core conftest.err conftest.$ac_objext \
6311     conftest$ac_exeext conftest.$ac_ext
6312 fi
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6314 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6315   if test $ac_cv_type_unsigned_long_long_int = yes; then
6316
6317 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6318
6319   fi
6320
6321
6322
6323   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6324 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6325
6326 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6327
6328 else
6329   test $ac_cv_type_unsigned_long_long_int = yes \
6330        && ac_type='unsigned long long int' \
6331        || ac_type='unsigned long int'
6332
6333 cat >>confdefs.h <<_ACEOF
6334 #define uintmax_t $ac_type
6335 _ACEOF
6336
6337 fi
6338
6339
6340
6341   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6342 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6343
6344 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6345
6346 else
6347   for ac_type in 'unsigned int' 'unsigned long int' \
6348         'unsigned long long int'; do
6349        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h.  */
6351 $ac_includes_default
6352 int
6353 main ()
6354 {
6355 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6356 test_array [0] = 0
6357
6358   ;
6359   return 0;
6360 }
6361 _ACEOF
6362 if ac_fn_c_try_compile "$LINENO"; then :
6363
6364 cat >>confdefs.h <<_ACEOF
6365 #define uintptr_t $ac_type
6366 _ACEOF
6367
6368           ac_type=
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371        test -z "$ac_type" && break
6372      done
6373 fi
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389 # ---------------------
6390 # Warnings and checking
6391 # ---------------------
6392
6393 # Check $CC warning features (if it's GCC).
6394 # We want to use -pedantic, but we don't want warnings about
6395 # * 'long long'
6396 # * variadic macros
6397 # * overlong strings
6398 # * C++11 narrowing conversions in { }
6399 # So, we only use -pedantic if we can disable those warnings.
6400
6401 loose_warn=
6402 save_CFLAGS="$CFLAGS"
6403 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6404   # Do the check with the no- prefix removed since gcc silently
6405   # accepts any -Wno-* option on purpose
6406   case $real_option in
6407     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6408     *) option=$real_option ;;
6409   esac
6410   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6411
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6413 $as_echo_n "checking whether $CC supports $option... " >&6; }
6414 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6415   $as_echo_n "(cached) " >&6
6416 else
6417   CFLAGS="$option"
6418     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h.  */
6420
6421 int
6422 main ()
6423 {
6424
6425   ;
6426   return 0;
6427 }
6428 _ACEOF
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430   eval "$as_acx_Woption=yes"
6431 else
6432   eval "$as_acx_Woption=no"
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435
6436 fi
6437 eval ac_res=\$$as_acx_Woption
6438                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6441   loose_warn="$loose_warn${loose_warn:+ }$real_option"
6442 fi
6443   done
6444 CFLAGS="$save_CFLAGS"
6445
6446 c_loose_warn=
6447 save_CFLAGS="$CFLAGS"
6448 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6449   # Do the check with the no- prefix removed since gcc silently
6450   # accepts any -Wno-* option on purpose
6451   case $real_option in
6452     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6453     *) option=$real_option ;;
6454   esac
6455   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6456
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6458 $as_echo_n "checking whether $CC supports $option... " >&6; }
6459 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6460   $as_echo_n "(cached) " >&6
6461 else
6462   CFLAGS="$option"
6463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h.  */
6465
6466 int
6467 main ()
6468 {
6469
6470   ;
6471   return 0;
6472 }
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475   eval "$as_acx_Woption=yes"
6476 else
6477   eval "$as_acx_Woption=no"
6478 fi
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480
6481 fi
6482 eval ac_res=\$$as_acx_Woption
6483                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6484 $as_echo "$ac_res" >&6; }
6485   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6486   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6487 fi
6488   done
6489 CFLAGS="$save_CFLAGS"
6490
6491 strict_warn=
6492 save_CFLAGS="$CFLAGS"
6493 for real_option in -Wmissing-format-attribute; do
6494   # Do the check with the no- prefix removed since gcc silently
6495   # accepts any -Wno-* option on purpose
6496   case $real_option in
6497     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6498     *) option=$real_option ;;
6499   esac
6500   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6501
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6503 $as_echo_n "checking whether $CC supports $option... " >&6; }
6504 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6505   $as_echo_n "(cached) " >&6
6506 else
6507   CFLAGS="$option"
6508     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h.  */
6510
6511 int
6512 main ()
6513 {
6514
6515   ;
6516   return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_compile "$LINENO"; then :
6520   eval "$as_acx_Woption=yes"
6521 else
6522   eval "$as_acx_Woption=no"
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525
6526 fi
6527 eval ac_res=\$$as_acx_Woption
6528                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6529 $as_echo "$ac_res" >&6; }
6530   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6531   strict_warn="$strict_warn${strict_warn:+ }$real_option"
6532 fi
6533   done
6534 CFLAGS="$save_CFLAGS"
6535
6536 c_strict_warn=
6537 save_CFLAGS="$CFLAGS"
6538 for real_option in -Wold-style-definition -Wc++-compat; do
6539   # Do the check with the no- prefix removed since gcc silently
6540   # accepts any -Wno-* option on purpose
6541   case $real_option in
6542     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6543     *) option=$real_option ;;
6544   esac
6545   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6546
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6548 $as_echo_n "checking whether $CC supports $option... " >&6; }
6549 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6550   $as_echo_n "(cached) " >&6
6551 else
6552   CFLAGS="$option"
6553     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h.  */
6555
6556 int
6557 main ()
6558 {
6559
6560   ;
6561   return 0;
6562 }
6563 _ACEOF
6564 if ac_fn_c_try_compile "$LINENO"; then :
6565   eval "$as_acx_Woption=yes"
6566 else
6567   eval "$as_acx_Woption=no"
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570
6571 fi
6572 eval ac_res=\$$as_acx_Woption
6573                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6574 $as_echo "$ac_res" >&6; }
6575   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6576   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6577 fi
6578   done
6579 CFLAGS="$save_CFLAGS"
6580
6581 # Do the check with the no- prefix removed from the warning options
6582 # since gcc silently accepts any -Wno-* option on purpose
6583 if test "$GCC" = yes; then :
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6585 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6586 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6587   $as_echo_n "(cached) " >&6
6588 else
6589   save_CFLAGS="$CFLAGS"
6590 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h.  */
6593
6594 int
6595 main ()
6596 {
6597
6598   ;
6599   return 0;
6600 }
6601 _ACEOF
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6604 else
6605   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 CFLAGS="$save_CFLAGS"
6609 fi
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6611 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6612 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6613   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6614 fi
6615
6616 fi
6617
6618 # Check whether --enable-werror-always was given.
6619 if test "${enable_werror_always+set}" = set; then :
6620   enableval=$enable_werror_always;
6621 else
6622   enable_werror_always=no
6623 fi
6624
6625 if test $enable_werror_always = yes; then :
6626   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6627 fi
6628
6629
6630
6631 # The above macros do nothing if the compiler is not GCC.  However, the
6632 # Makefile has more goo to add other flags, so these variables are used
6633 # to enable warnings only for GCC.
6634 warn_cflags=
6635 warn_cxxflags=
6636 if test "x$GCC" = "xyes"; then
6637   warn_cflags='$(GCC_WARN_CFLAGS)'
6638   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6639 fi
6640
6641
6642
6643 # Disable exceptions and RTTI if building with g++
6644 noexception_flags=
6645 save_CFLAGS="$CFLAGS"
6646 for real_option in -fno-exceptions -fno-rtti; do
6647   # Do the check with the no- prefix removed since gcc silently
6648   # accepts any -Wno-* option on purpose
6649   case $real_option in
6650     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6651     *) option=$real_option ;;
6652   esac
6653   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6654
6655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6656 $as_echo_n "checking whether $CC supports $option... " >&6; }
6657 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6658   $as_echo_n "(cached) " >&6
6659 else
6660   CFLAGS="$option"
6661     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h.  */
6663
6664 int
6665 main ()
6666 {
6667
6668   ;
6669   return 0;
6670 }
6671 _ACEOF
6672 if ac_fn_c_try_compile "$LINENO"; then :
6673   eval "$as_acx_Woption=yes"
6674 else
6675   eval "$as_acx_Woption=no"
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678
6679 fi
6680 eval ac_res=\$$as_acx_Woption
6681                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6682 $as_echo "$ac_res" >&6; }
6683   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6684   noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6685 fi
6686   done
6687 CFLAGS="$save_CFLAGS"
6688
6689
6690 # Enable expensive internal checks
6691 is_release=
6692 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6693   is_release=yes
6694 fi
6695
6696 # Check whether --enable-checking was given.
6697 if test "${enable_checking+set}" = set; then :
6698   enableval=$enable_checking; ac_checking_flags="${enableval}"
6699 else
6700
6701 # Determine the default checks.
6702 if test x$is_release = x ; then
6703   ac_checking_flags=yes
6704 else
6705   ac_checking_flags=release
6706 fi
6707 fi
6708
6709 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6710 for check in release $ac_checking_flags
6711 do
6712         case $check in
6713         # these set all the flags to specific states
6714         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6715                         ac_fold_checking= ; ac_gc_checking=1 ;
6716                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6717                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6718                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6719                         ac_types_checking=1 ;;
6720         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6721                         ac_fold_checking= ; ac_gc_checking= ;
6722                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6723                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6724                         ac_tree_checking= ; ac_valgrind_checking= ;
6725                         ac_types_checking= ;;
6726         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6727                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6728                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6729                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6730                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6731                         ac_types_checking=1 ;;
6732         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6733                         ac_fold_checking= ; ac_gc_checking= ;
6734                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6735                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6736                         ac_tree_checking= ; ac_valgrind_checking= ;
6737                         ac_types_checking= ;;
6738         # these enable particular checks
6739         assert)         ac_assert_checking=1 ;;
6740         df)             ac_df_checking=1 ;;
6741         fold)           ac_fold_checking=1 ;;
6742         gc)             ac_gc_checking=1 ;;
6743         gcac)           ac_gc_always_collect=1 ;;
6744         gimple)         ac_gimple_checking=1 ;;
6745         misc)           ac_checking=1 ;;
6746         rtl)            ac_rtl_checking=1 ;;
6747         rtlflag)        ac_rtlflag_checking=1 ;;
6748         runtime)        ac_runtime_checking=1 ;;
6749         tree)           ac_tree_checking=1 ;;
6750         types)          ac_types_checking=1 ;;
6751         valgrind)       ac_valgrind_checking=1 ;;
6752         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6753         esac
6754 done
6755 IFS="$ac_save_IFS"
6756
6757 nocommon_flag=""
6758 if test x$ac_checking != x ; then
6759
6760 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6761
6762   nocommon_flag=-fno-common
6763 fi
6764
6765 if test x$ac_df_checking != x ; then
6766
6767 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6768
6769 fi
6770 if test x$ac_assert_checking != x ; then
6771
6772 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6773
6774 fi
6775 if test x$ac_gimple_checking != x ; then
6776
6777 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6778
6779 fi
6780
6781 if test x$ac_runtime_checking != x ; then
6782
6783 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6784
6785 fi
6786 if test x$ac_tree_checking != x ; then
6787
6788 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6789
6790   TREEBROWSER=tree-browser.o
6791 fi
6792 if test x$ac_types_checking != x ; then
6793
6794 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6795
6796 fi
6797
6798 if test x$ac_rtl_checking != x ; then
6799
6800 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6801
6802 fi
6803 if test x$ac_rtlflag_checking != x ; then
6804
6805 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6806
6807 fi
6808 if test x$ac_gc_checking != x ; then
6809
6810 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6811
6812 fi
6813 if test x$ac_gc_always_collect != x ; then
6814
6815 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6816
6817 fi
6818 if test x$ac_fold_checking != x ; then
6819
6820 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6821
6822 fi
6823 valgrind_path_defines=
6824 valgrind_command=
6825
6826 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6827 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6828   have_valgrind_h=yes
6829 else
6830   have_valgrind_h=no
6831 fi
6832
6833
6834
6835 if test x$ac_valgrind_checking != x ; then
6836   # It is certainly possible that there's valgrind but no valgrind.h.
6837   # GCC relies on making annotations so we must have both.
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6839 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h.  */
6842 #include <valgrind/memcheck.h>
6843 #ifndef VALGRIND_DISCARD
6844 #error VALGRIND_DISCARD not defined
6845 #endif
6846 _ACEOF
6847 if ac_fn_c_try_cpp "$LINENO"; then :
6848   gcc_cv_header_valgrind_memcheck_h=yes
6849 else
6850   gcc_cv_header_valgrind_memcheck_h=no
6851 fi
6852 rm -f conftest.err conftest.$ac_ext
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6854 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6856 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h.  */
6859 #include <memcheck.h>
6860 #ifndef VALGRIND_DISCARD
6861 #error VALGRIND_DISCARD not defined
6862 #endif
6863 _ACEOF
6864 if ac_fn_c_try_cpp "$LINENO"; then :
6865   gcc_cv_header_memcheck_h=yes
6866 else
6867   gcc_cv_header_memcheck_h=no
6868 fi
6869 rm -f conftest.err conftest.$ac_ext
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6871 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6872
6873 # Prepare PATH_SEPARATOR.
6874 # The user is always right.
6875 if test "${PATH_SEPARATOR+set}" != set; then
6876   echo "#! /bin/sh" >conf$$.sh
6877   echo  "exit 0"   >>conf$$.sh
6878   chmod +x conf$$.sh
6879   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6880     PATH_SEPARATOR=';'
6881   else
6882     PATH_SEPARATOR=:
6883   fi
6884   rm -f conf$$.sh
6885 fi
6886
6887 # Find out how to test for executable files. Don't use a zero-byte file,
6888 # as systems may use methods other than mode bits to determine executability.
6889 cat >conf$$.file <<_ASEOF
6890 #! /bin/sh
6891 exit 0
6892 _ASEOF
6893 chmod +x conf$$.file
6894 if test -x conf$$.file >/dev/null 2>&1; then
6895   ac_executable_p="test -x"
6896 else
6897   ac_executable_p="test -f"
6898 fi
6899 rm -f conf$$.file
6900
6901 # Extract the first word of "valgrind", so it can be a program name with args.
6902 set dummy valgrind; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6906   $as_echo_n "(cached) " >&6
6907 else
6908   case "$valgrind_path" in
6909   [\\/]* | ?:[\\/]*)
6910     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6911     ;;
6912   *)
6913     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6914     for ac_dir in $PATH; do
6915       IFS="$ac_save_IFS"
6916       test -z "$ac_dir" && ac_dir=.
6917       for ac_exec_ext in '' $ac_executable_extensions; do
6918         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6919           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6920             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6921             break 2
6922           fi
6923         fi
6924       done
6925     done
6926     IFS="$ac_save_IFS"
6927     ;;
6928 esac
6929 fi
6930 valgrind_path="$ac_cv_path_valgrind_path"
6931 if test -n "$valgrind_path"; then
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6933 $as_echo "$valgrind_path" >&6; }
6934 else
6935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6938
6939   if test "x$valgrind_path" = "x" \
6940     || (test $have_valgrind_h = no \
6941         && test $gcc_cv_header_memcheck_h = no \
6942         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6943         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6944   fi
6945   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6946   valgrind_command="$valgrind_path -q"
6947
6948 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6949
6950   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6951
6952 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6953
6954   fi
6955   if test $gcc_cv_header_memcheck_h = yes; then
6956
6957 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6958
6959   fi
6960 fi
6961
6962
6963
6964 # Enable code coverage collection
6965 # Check whether --enable-coverage was given.
6966 if test "${enable_coverage+set}" = set; then :
6967   enableval=$enable_coverage; case "${enableval}" in
6968   yes|noopt)
6969     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6970     ;;
6971   opt)
6972     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6973     ;;
6974   no)
6975     # a.k.a. --disable-coverage
6976     coverage_flags=""
6977     ;;
6978   *)
6979     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6980     ;;
6981 esac
6982 else
6983   coverage_flags=""
6984 fi
6985
6986
6987
6988 # Check whether --enable-gather-detailed-mem-stats was given.
6989 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6990   enableval=$enable_gather_detailed_mem_stats;
6991 else
6992   enable_gather_detailed_mem_stats=no
6993 fi
6994
6995 if test x$enable_gather_detailed_mem_stats = xyes ; then
6996
6997 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6998
6999 fi
7000
7001 # -------------------------------
7002 # Miscenalleous configure options
7003 # -------------------------------
7004
7005 # See if we are building gcc with C++.
7006 # Check whether --enable-build-with-cxx was given.
7007 if test "${enable_build_with_cxx+set}" = set; then :
7008   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7009 else
7010   ENABLE_BUILD_WITH_CXX=no
7011 fi
7012
7013
7014 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7015
7016 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7017
7018 fi
7019
7020 # With stabs
7021
7022 # Check whether --with-stabs was given.
7023 if test "${with_stabs+set}" = set; then :
7024   withval=$with_stabs; stabs="$with_stabs"
7025 else
7026   stabs=no
7027 fi
7028
7029
7030 # Determine whether or not multilibs are enabled.
7031 # Check whether --enable-multilib was given.
7032 if test "${enable_multilib+set}" = set; then :
7033   enableval=$enable_multilib;
7034 else
7035   enable_multilib=yes
7036 fi
7037
7038
7039
7040 # Enable __cxa_atexit for C++.
7041 # Check whether --enable-__cxa_atexit was given.
7042 if test "${enable___cxa_atexit+set}" = set; then :
7043   enableval=$enable___cxa_atexit;
7044 fi
7045
7046
7047 # Enable C extension for decimal float if target supports it.
7048
7049 # Check whether --enable-decimal-float was given.
7050 if test "${enable_decimal_float+set}" = set; then :
7051   enableval=$enable_decimal_float;
7052   case $enable_decimal_float in
7053     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7054     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7055 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7056   esac
7057
7058 else
7059
7060   case $target in
7061     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7062     i?86*-*-mingw* | x86_64*-*-mingw* | \
7063     i?86*-*-cygwin*)
7064       enable_decimal_float=yes
7065       ;;
7066     *)
7067       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7068 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7069       enable_decimal_float=no
7070       ;;
7071   esac
7072
7073 fi
7074
7075
7076 # x86's use BID format instead of DPD
7077 case x$enable_decimal_float in
7078   xyes)
7079     case $target in
7080       i?86*-*-* | x86_64*-*-*)
7081         enable_decimal_float=bid
7082         ;;
7083       *)
7084         enable_decimal_float=dpd
7085         ;;
7086     esac
7087     default_decimal_float=$enable_decimal_float
7088     ;;
7089   xno)
7090     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7091     # dependency on libdecnumber.
7092     default_decimal_float=dpd
7093     ;;
7094 esac
7095
7096
7097
7098
7099 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7100
7101 cat >>confdefs.h <<_ACEOF
7102 #define ENABLE_DECIMAL_FLOAT $dfp
7103 _ACEOF
7104
7105
7106 # Use default_decimal_float for dependency.
7107 enable_decimal_float=$default_decimal_float
7108
7109 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7110
7111 cat >>confdefs.h <<_ACEOF
7112 #define ENABLE_DECIMAL_BID_FORMAT $bid
7113 _ACEOF
7114
7115
7116 # Enable C extension for fixed-point arithmetic.
7117 # Check whether --enable-fixed-point was given.
7118 if test "${enable_fixed_point+set}" = set; then :
7119   enableval=$enable_fixed_point;
7120 else
7121
7122   case $target in
7123     arm*)
7124       enable_fixed_point=yes
7125       ;;
7126
7127     mips*-*-*)
7128       case $host in
7129         mips*-sgi-irix*)
7130           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7131 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7132           enable_fixed_point=no
7133           ;;
7134         *)
7135           enable_fixed_point=yes
7136           ;;
7137       esac
7138       ;;
7139     *)
7140       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7141 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7142       enable_fixed_point=no
7143       ;;
7144   esac
7145
7146 fi
7147
7148
7149
7150 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7151
7152 cat >>confdefs.h <<_ACEOF
7153 #define ENABLE_FIXED_POINT $fixedpoint
7154 _ACEOF
7155
7156
7157 # Enable threads
7158 # Pass with no value to take the default
7159 # Pass with a value to specify a thread package
7160 # Check whether --enable-threads was given.
7161 if test "${enable_threads+set}" = set; then :
7162   enableval=$enable_threads;
7163 else
7164   enable_threads=''
7165 fi
7166
7167
7168 # Check whether --enable-tls was given.
7169 if test "${enable_tls+set}" = set; then :
7170   enableval=$enable_tls;
7171   case $enable_tls in
7172     yes | no) ;;
7173     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7174 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7175   esac
7176
7177 else
7178   enable_tls=''
7179 fi
7180
7181
7182 # Check whether --enable-objc-gc was given.
7183 if test "${enable_objc_gc+set}" = set; then :
7184   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7185         objc_boehm_gc=''
7186 else
7187         objc_boehm_gc=1
7188 fi
7189 else
7190   objc_boehm_gc=''
7191 fi
7192
7193
7194
7195 # Check whether --with-dwarf2 was given.
7196 if test "${with_dwarf2+set}" = set; then :
7197   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7198 else
7199   dwarf2=no
7200 fi
7201
7202
7203 # Check whether --enable-shared was given.
7204 if test "${enable_shared+set}" = set; then :
7205   enableval=$enable_shared;
7206   case $enable_shared in
7207   yes | no) ;;
7208   *)
7209     enable_shared=no
7210     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7211     for pkg in $enableval; do
7212       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7213         enable_shared=yes
7214       fi
7215     done
7216     IFS="$ac_save_ifs"
7217     ;;
7218   esac
7219
7220 else
7221   enable_shared=yes
7222 fi
7223
7224
7225
7226
7227 # Check whether --with-native-system-header-dir was given.
7228 if test "${with_native_system_header_dir+set}" = set; then :
7229   withval=$with_native_system_header_dir;
7230  case ${with_native_system_header_dir} in
7231  yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7232  /* | [A-Za-z]:[\\/]*) ;;
7233  *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7234  esac
7235  configured_native_system_header_dir="${withval}"
7236
7237 else
7238   configured_native_system_header_dir=
7239 fi
7240
7241
7242
7243 # Check whether --with-build-sysroot was given.
7244 if test "${with_build_sysroot+set}" = set; then :
7245   withval=$with_build_sysroot; if test x"$withval" != x ; then
7246      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7247    fi
7248 else
7249   SYSROOT_CFLAGS_FOR_TARGET=
7250 fi
7251
7252
7253
7254
7255 # Check whether --with-sysroot was given.
7256 if test "${with_sysroot+set}" = set; then :
7257   withval=$with_sysroot;
7258  case ${with_sysroot} in
7259  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7260  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7261  esac
7262
7263  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7264  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7265
7266  if test "x$prefix" = xNONE; then
7267   test_prefix=/usr/local
7268  else
7269   test_prefix=$prefix
7270  fi
7271  if test "x$exec_prefix" = xNONE; then
7272   test_exec_prefix=$test_prefix
7273  else
7274   test_exec_prefix=$exec_prefix
7275  fi
7276  case ${TARGET_SYSTEM_ROOT} in
7277  "${test_prefix}"|"${test_prefix}/"*|\
7278  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7279  '${prefix}'|'${prefix}/'*|\
7280  '${exec_prefix}'|'${exec_prefix}/'*)
7281    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7282    TARGET_SYSTEM_ROOT_DEFINE="$t"
7283    ;;
7284  esac
7285
7286 else
7287
7288  TARGET_SYSTEM_ROOT=
7289  TARGET_SYSTEM_ROOT_DEFINE=
7290  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7291
7292 fi
7293
7294
7295
7296
7297
7298
7299 # Check whether --with-specs was given.
7300 if test "${with_specs+set}" = set; then :
7301   withval=$with_specs; CONFIGURE_SPECS=$withval
7302 else
7303   CONFIGURE_SPECS=
7304
7305 fi
7306
7307
7308
7309
7310
7311 # Check whether --with-pkgversion was given.
7312 if test "${with_pkgversion+set}" = set; then :
7313   withval=$with_pkgversion; case "$withval" in
7314       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7315       no)  PKGVERSION= ;;
7316       *)   PKGVERSION="($withval) " ;;
7317      esac
7318 else
7319   PKGVERSION="(GCC) "
7320
7321 fi
7322
7323
7324
7325
7326
7327 # Check whether --with-bugurl was given.
7328 if test "${with_bugurl+set}" = set; then :
7329   withval=$with_bugurl; case "$withval" in
7330       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7331       no)  BUGURL=
7332            ;;
7333       *)   BUGURL="$withval"
7334            ;;
7335      esac
7336 else
7337   BUGURL="http://gcc.gnu.org/bugs.html"
7338
7339 fi
7340
7341   case ${BUGURL} in
7342   "")
7343     REPORT_BUGS_TO=
7344     REPORT_BUGS_TEXI=
7345     ;;
7346   *)
7347     REPORT_BUGS_TO="<$BUGURL>"
7348     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7349     ;;
7350   esac;
7351
7352
7353
7354
7355 # Sanity check enable_languages in case someone does not run the toplevel
7356 # configure # script.
7357 # Check whether --enable-languages was given.
7358 if test "${enable_languages+set}" = set; then :
7359   enableval=$enable_languages; case ,${enable_languages}, in
7360        ,,|,yes,)
7361                 # go safe -- we cannot be much sure without the toplevel
7362                 # configure's
7363                 # analysis of which target libs are present and usable
7364                 enable_languages=c
7365                 ;;
7366          *,all,*)
7367                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7368                 ;;
7369         *,c,*)
7370                 ;;
7371         *)
7372                 enable_languages=c,${enable_languages}
7373                 ;;
7374 esac
7375 else
7376   enable_languages=c
7377 fi
7378
7379
7380
7381 # Check whether --with-multilib-list was given.
7382 if test "${with_multilib_list+set}" = set; then :
7383   withval=$with_multilib_list; :
7384 else
7385   with_multilib_list=default
7386 fi
7387
7388
7389 # -------------------------
7390 # Checks for other programs
7391 # -------------------------
7392
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7394 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7395 set x ${MAKE-make}
7396 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7397 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   cat >conftest.make <<\_ACEOF
7401 SHELL = /bin/sh
7402 all:
7403         @echo '@@@%%%=$(MAKE)=@@@%%%'
7404 _ACEOF
7405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7406 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7407   *@@@%%%=?*=@@@%%%*)
7408     eval ac_cv_prog_make_${ac_make}_set=yes;;
7409   *)
7410     eval ac_cv_prog_make_${ac_make}_set=no;;
7411 esac
7412 rm -f conftest.make
7413 fi
7414 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7416 $as_echo "yes" >&6; }
7417   SET_MAKE=
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421   SET_MAKE="MAKE=${MAKE-make}"
7422 fi
7423
7424
7425 # Find some useful tools
7426 for ac_prog in gawk mawk nawk awk
7427 do
7428   # Extract the first word of "$ac_prog", so it can be a program name with args.
7429 set dummy $ac_prog; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if test "${ac_cv_prog_AWK+set}" = set; then :
7433   $as_echo_n "(cached) " >&6
7434 else
7435   if test -n "$AWK"; then
7436   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441   IFS=$as_save_IFS
7442   test -z "$as_dir" && as_dir=.
7443     for ac_exec_ext in '' $ac_executable_extensions; do
7444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7445     ac_cv_prog_AWK="$ac_prog"
7446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447     break 2
7448   fi
7449 done
7450   done
7451 IFS=$as_save_IFS
7452
7453 fi
7454 fi
7455 AWK=$ac_cv_prog_AWK
7456 if test -n "$AWK"; then
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7458 $as_echo "$AWK" >&6; }
7459 else
7460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7462 fi
7463
7464
7465   test -n "$AWK" && break
7466 done
7467
7468 # We need awk to create options.c and options.h.
7469 # Bail out if it's missing.
7470 case ${AWK} in
7471   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7472 esac
7473
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7475 $as_echo_n "checking whether ln -s works... " >&6; }
7476 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7477   $as_echo_n "(cached) " >&6
7478 else
7479   rm -f conftestdata_t
7480 echo >conftestdata_f
7481 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7482 then
7483   gcc_cv_prog_LN_S="ln -s"
7484 else
7485   if ln conftestdata_f conftestdata_t 2>/dev/null
7486   then
7487     gcc_cv_prog_LN_S=ln
7488   else
7489     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7490     then
7491       gcc_cv_prog_LN_S="cp -p"
7492     else
7493       gcc_cv_prog_LN_S=cp
7494     fi
7495   fi
7496 fi
7497 rm -f conftestdata_f conftestdata_t
7498
7499 fi
7500 LN_S="$gcc_cv_prog_LN_S"
7501 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7503 $as_echo "yes" >&6; }
7504 else
7505   if test "$gcc_cv_prog_LN_S" = "ln"; then
7506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7507 $as_echo "no, using ln" >&6; }
7508   else
7509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7510 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7511   fi
7512 fi
7513
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7515 $as_echo_n "checking whether ln works... " >&6; }
7516 if test "${acx_cv_prog_LN+set}" = set; then :
7517   $as_echo_n "(cached) " >&6
7518 else
7519   rm -f conftestdata_t
7520 echo >conftestdata_f
7521 if ln conftestdata_f conftestdata_t 2>/dev/null
7522 then
7523   acx_cv_prog_LN=ln
7524 else
7525   acx_cv_prog_LN=no
7526 fi
7527 rm -f conftestdata_f conftestdata_t
7528
7529 fi
7530 if test $acx_cv_prog_LN = no; then
7531   LN="$LN_S"
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7533 $as_echo "no, using $LN" >&6; }
7534 else
7535   LN="$acx_cv_prog_LN"
7536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7537 $as_echo "yes" >&6; }
7538 fi
7539
7540 if test -n "$ac_tool_prefix"; then
7541   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7546   $as_echo_n "(cached) " >&6
7547 else
7548   if test -n "$RANLIB"; then
7549   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556     for ac_exec_ext in '' $ac_executable_extensions; do
7557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563   done
7564 IFS=$as_save_IFS
7565
7566 fi
7567 fi
7568 RANLIB=$ac_cv_prog_RANLIB
7569 if test -n "$RANLIB"; then
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7571 $as_echo "$RANLIB" >&6; }
7572 else
7573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7575 fi
7576
7577
7578 fi
7579 if test -z "$ac_cv_prog_RANLIB"; then
7580   ac_ct_RANLIB=$RANLIB
7581   # Extract the first word of "ranlib", so it can be a program name with args.
7582 set dummy ranlib; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7586   $as_echo_n "(cached) " >&6
7587 else
7588   if test -n "$ac_ct_RANLIB"; then
7589   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594   IFS=$as_save_IFS
7595   test -z "$as_dir" && as_dir=.
7596     for ac_exec_ext in '' $ac_executable_extensions; do
7597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598     ac_cv_prog_ac_ct_RANLIB="ranlib"
7599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600     break 2
7601   fi
7602 done
7603   done
7604 IFS=$as_save_IFS
7605
7606 fi
7607 fi
7608 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7609 if test -n "$ac_ct_RANLIB"; then
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7611 $as_echo "$ac_ct_RANLIB" >&6; }
7612 else
7613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617   if test "x$ac_ct_RANLIB" = x; then
7618     RANLIB=":"
7619   else
7620     case $cross_compiling:$ac_tool_warned in
7621 yes:)
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 ac_tool_warned=yes ;;
7625 esac
7626     RANLIB=$ac_ct_RANLIB
7627   fi
7628 else
7629   RANLIB="$ac_cv_prog_RANLIB"
7630 fi
7631
7632 ranlib_flags=""
7633
7634
7635 # Find a good install program.  We prefer a C program (faster),
7636 # so one script is as good as another.  But avoid the broken or
7637 # incompatible versions:
7638 # SysV /etc/install, /usr/sbin/install
7639 # SunOS /usr/etc/install
7640 # IRIX /sbin/install
7641 # AIX /bin/install
7642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7644 # ./install, which can be erroneously created by make from ./install.sh.
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7646 $as_echo_n "checking for a BSD compatible install... " >&6; }
7647 if test -z "$INSTALL"; then
7648 if test "${ac_cv_path_install+set}" = set; then :
7649   $as_echo_n "(cached) " >&6
7650 else
7651     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7652   for ac_dir in $PATH; do
7653     # Account for people who put trailing slashes in PATH elements.
7654     case "$ac_dir/" in
7655     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7656     *)
7657       # OSF1 and SCO ODT 3.0 have their own names for install.
7658       for ac_prog in ginstall scoinst install; do
7659         if test -f $ac_dir/$ac_prog; then
7660           if test $ac_prog = install &&
7661             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7662             # AIX install.  It has an incompatible calling convention.
7663             # OSF/1 installbsd also uses dspmsg, but is usable.
7664             :
7665           else
7666             ac_cv_path_install="$ac_dir/$ac_prog -c"
7667             break 2
7668           fi
7669         fi
7670       done
7671       ;;
7672     esac
7673   done
7674   IFS="$ac_save_IFS"
7675
7676 fi
7677   if test "${ac_cv_path_install+set}" = set; then
7678     INSTALL="$ac_cv_path_install"
7679   else
7680     # As a last resort, use the slow shell script.  We don't cache a
7681     # path for INSTALL within a source directory, because that will
7682     # break other packages using the cache if that directory is
7683     # removed, or if the path is relative.
7684     INSTALL="$ac_install_sh"
7685   fi
7686 fi
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7688 $as_echo "$INSTALL" >&6; }
7689
7690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7691 # It thinks the first close brace ends the variable substitution.
7692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7693
7694 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7695
7696
7697 # See if cmp has --ignore-initial.
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7699 $as_echo_n "checking for cmp's capabilities... " >&6; }
7700 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7701   $as_echo_n "(cached) " >&6
7702 else
7703    echo abfoo >t1
7704   echo cdfoo >t2
7705   gcc_cv_prog_cmp_skip=slowcompare
7706   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7707     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7708       :
7709     else
7710       gcc_cv_prog_cmp_skip=gnucompare
7711     fi
7712   fi
7713   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7714     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7715       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7716         :
7717       else
7718         gcc_cv_prog_cmp_skip=fastcompare
7719       fi
7720     fi
7721   fi
7722   rm t1 t2
7723
7724 fi
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7726 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7727 make_compare_target=$gcc_cv_prog_cmp_skip
7728
7729
7730
7731 # See if we have the mktemp command.
7732 # Extract the first word of "mktemp", so it can be a program name with args.
7733 set dummy mktemp; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7737   $as_echo_n "(cached) " >&6
7738 else
7739   if test -n "$have_mktemp_command"; then
7740   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745   IFS=$as_save_IFS
7746   test -z "$as_dir" && as_dir=.
7747     for ac_exec_ext in '' $ac_executable_extensions; do
7748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7749     ac_cv_prog_have_mktemp_command="yes"
7750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754   done
7755 IFS=$as_save_IFS
7756
7757   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7758 fi
7759 fi
7760 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7761 if test -n "$have_mktemp_command"; then
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7763 $as_echo "$have_mktemp_command" >&6; }
7764 else
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769
7770
7771 # See if makeinfo has been installed and is modern enough
7772 # that we can use it.
7773
7774   # Extract the first word of "makeinfo", so it can be a program name with args.
7775 set dummy makeinfo; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7779   $as_echo_n "(cached) " >&6
7780 else
7781   if test -n "$MAKEINFO"; then
7782   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   test -z "$as_dir" && as_dir=.
7789     for ac_exec_ext in '' $ac_executable_extensions; do
7790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7791     ac_cv_prog_MAKEINFO="makeinfo"
7792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793     break 2
7794   fi
7795 done
7796   done
7797 IFS=$as_save_IFS
7798
7799 fi
7800 fi
7801 MAKEINFO=$ac_cv_prog_MAKEINFO
7802 if test -n "$MAKEINFO"; then
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7804 $as_echo "$MAKEINFO" >&6; }
7805 else
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 fi
7809
7810
7811   if test -n "$MAKEINFO"; then
7812     # Found it, now check the version.
7813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7814 $as_echo_n "checking for modern makeinfo... " >&6; }
7815 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7816   $as_echo_n "(cached) " >&6
7817 else
7818   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7819                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7820
7821                     case $ac_prog_version in
7822                       '')  gcc_cv_prog_makeinfo_modern=no;;
7823                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7824                       *)   gcc_cv_prog_makeinfo_modern=no;;
7825                     esac
7826
7827 fi
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7829 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7830   else
7831     gcc_cv_prog_makeinfo_modern=no
7832   fi
7833   if test $gcc_cv_prog_makeinfo_modern = no; then
7834     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7835   fi
7836
7837 if test $gcc_cv_prog_makeinfo_modern = no; then
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7839 *** Makeinfo is missing or too old.
7840 *** Info documentation will not be built." >&5
7841 $as_echo "$as_me: WARNING:
7842 *** Makeinfo is missing or too old.
7843 *** Info documentation will not be built." >&2;}
7844   BUILD_INFO=
7845 else
7846   BUILD_INFO=info
7847 fi
7848
7849
7850 # Is pod2man recent enough to regenerate manpages?
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7852 $as_echo_n "checking for recent Pod::Man... " >&6; }
7853 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7855 $as_echo "yes" >&6; }
7856   GENERATED_MANPAGES=generated-manpages
7857 else
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7860   GENERATED_MANPAGES=
7861 fi
7862
7863
7864 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7865
7866 # How about lex?
7867 for ac_prog in flex
7868 do
7869   # Extract the first word of "$ac_prog", so it can be a program name with args.
7870 set dummy $ac_prog; ac_word=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if test "${ac_cv_prog_FLEX+set}" = set; then :
7874   $as_echo_n "(cached) " >&6
7875 else
7876   if test -n "$FLEX"; then
7877   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7878 else
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7881 do
7882   IFS=$as_save_IFS
7883   test -z "$as_dir" && as_dir=.
7884     for ac_exec_ext in '' $ac_executable_extensions; do
7885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7886     ac_cv_prog_FLEX="$ac_prog"
7887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888     break 2
7889   fi
7890 done
7891   done
7892 IFS=$as_save_IFS
7893
7894 fi
7895 fi
7896 FLEX=$ac_cv_prog_FLEX
7897 if test -n "$FLEX"; then
7898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7899 $as_echo "$FLEX" >&6; }
7900 else
7901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7903 fi
7904
7905
7906   test -n "$FLEX" && break
7907 done
7908 test -n "$FLEX" || FLEX="$MISSING flex"
7909
7910
7911 # Bison?
7912 for ac_prog in bison
7913 do
7914   # Extract the first word of "$ac_prog", so it can be a program name with args.
7915 set dummy $ac_prog; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_BISON+set}" = set; then :
7919   $as_echo_n "(cached) " >&6
7920 else
7921   if test -n "$BISON"; then
7922   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927   IFS=$as_save_IFS
7928   test -z "$as_dir" && as_dir=.
7929     for ac_exec_ext in '' $ac_executable_extensions; do
7930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931     ac_cv_prog_BISON="$ac_prog"
7932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933     break 2
7934   fi
7935 done
7936   done
7937 IFS=$as_save_IFS
7938
7939 fi
7940 fi
7941 BISON=$ac_cv_prog_BISON
7942 if test -n "$BISON"; then
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7944 $as_echo "$BISON" >&6; }
7945 else
7946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949
7950
7951   test -n "$BISON" && break
7952 done
7953 test -n "$BISON" || BISON="$MISSING bison"
7954
7955
7956 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7957 # check for build == host before using them.
7958
7959 # NM
7960 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7961   && test -d ../binutils ; then
7962   NM='${objdir}/../binutils/nm-new'
7963 else
7964   # Extract the first word of "nm", so it can be a program name with args.
7965 set dummy nm; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if test "${ac_cv_prog_NM+set}" = set; then :
7969   $as_echo_n "(cached) " >&6
7970 else
7971   if test -n "$NM"; then
7972   ac_cv_prog_NM="$NM" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977   IFS=$as_save_IFS
7978   test -z "$as_dir" && as_dir=.
7979     for ac_exec_ext in '' $ac_executable_extensions; do
7980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7981     ac_cv_prog_NM="nm"
7982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983     break 2
7984   fi
7985 done
7986   done
7987 IFS=$as_save_IFS
7988
7989   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7990 fi
7991 fi
7992 NM=$ac_cv_prog_NM
7993 if test -n "$NM"; then
7994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7995 $as_echo "$NM" >&6; }
7996 else
7997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 $as_echo "no" >&6; }
7999 fi
8000
8001
8002 fi
8003
8004 # AR
8005 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8006   && test -d ../binutils ; then
8007   AR='${objdir}/../binutils/ar'
8008 else
8009   # Extract the first word of "ar", so it can be a program name with args.
8010 set dummy ar; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if test "${ac_cv_prog_AR+set}" = set; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   if test -n "$AR"; then
8017   ac_cv_prog_AR="$AR" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022   IFS=$as_save_IFS
8023   test -z "$as_dir" && as_dir=.
8024     for ac_exec_ext in '' $ac_executable_extensions; do
8025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026     ac_cv_prog_AR="ar"
8027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028     break 2
8029   fi
8030 done
8031   done
8032 IFS=$as_save_IFS
8033
8034   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8035 fi
8036 fi
8037 AR=$ac_cv_prog_AR
8038 if test -n "$AR"; then
8039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8040 $as_echo "$AR" >&6; }
8041 else
8042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8044 fi
8045
8046
8047 fi
8048
8049
8050 # --------------------
8051 # Checks for C headers
8052 # --------------------
8053
8054 # Need to reject headers which give warnings, so that the -Werror bootstrap
8055 # works later. *sigh*  This needs to come before all header checks.
8056
8057 ac_c_preproc_warn_flag=yes
8058
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8060 $as_echo_n "checking for ANSI C header files... " >&6; }
8061 if test "${ac_cv_header_stdc+set}" = set; then :
8062   $as_echo_n "(cached) " >&6
8063 else
8064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h.  */
8066 #include <stdlib.h>
8067 #include <stdarg.h>
8068 #include <string.h>
8069 #include <float.h>
8070
8071 int
8072 main ()
8073 {
8074
8075   ;
8076   return 0;
8077 }
8078 _ACEOF
8079 if ac_fn_c_try_compile "$LINENO"; then :
8080   ac_cv_header_stdc=yes
8081 else
8082   ac_cv_header_stdc=no
8083 fi
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085
8086 if test $ac_cv_header_stdc = yes; then
8087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h.  */
8090 #include <string.h>
8091
8092 _ACEOF
8093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8094   $EGREP "memchr" >/dev/null 2>&1; then :
8095
8096 else
8097   ac_cv_header_stdc=no
8098 fi
8099 rm -f conftest*
8100
8101 fi
8102
8103 if test $ac_cv_header_stdc = yes; then
8104   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h.  */
8107 #include <stdlib.h>
8108
8109 _ACEOF
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111   $EGREP "free" >/dev/null 2>&1; then :
8112
8113 else
8114   ac_cv_header_stdc=no
8115 fi
8116 rm -f conftest*
8117
8118 fi
8119
8120 if test $ac_cv_header_stdc = yes; then
8121   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8122   if test "$cross_compiling" = yes; then :
8123   :
8124 else
8125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h.  */
8127 #include <ctype.h>
8128 #include <stdlib.h>
8129 #if ((' ' & 0x0FF) == 0x020)
8130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8132 #else
8133 # define ISLOWER(c) \
8134                    (('a' <= (c) && (c) <= 'i') \
8135                      || ('j' <= (c) && (c) <= 'r') \
8136                      || ('s' <= (c) && (c) <= 'z'))
8137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8138 #endif
8139
8140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8141 int
8142 main ()
8143 {
8144   int i;
8145   for (i = 0; i < 256; i++)
8146     if (XOR (islower (i), ISLOWER (i))
8147         || toupper (i) != TOUPPER (i))
8148       return 2;
8149   return 0;
8150 }
8151 _ACEOF
8152 if ac_fn_c_try_run "$LINENO"; then :
8153
8154 else
8155   ac_cv_header_stdc=no
8156 fi
8157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8158   conftest.$ac_objext conftest.beam conftest.$ac_ext
8159 fi
8160
8161 fi
8162 fi
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8164 $as_echo "$ac_cv_header_stdc" >&6; }
8165 if test $ac_cv_header_stdc = yes; then
8166
8167 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8168
8169 fi
8170
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8172 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8173 if test "${ac_cv_header_time+set}" = set; then :
8174   $as_echo_n "(cached) " >&6
8175 else
8176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h.  */
8178 #include <sys/types.h>
8179 #include <sys/time.h>
8180 #include <time.h>
8181
8182 int
8183 main ()
8184 {
8185 if ((struct tm *) 0)
8186 return 0;
8187   ;
8188   return 0;
8189 }
8190 _ACEOF
8191 if ac_fn_c_try_compile "$LINENO"; then :
8192   ac_cv_header_time=yes
8193 else
8194   ac_cv_header_time=no
8195 fi
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197 fi
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8199 $as_echo "$ac_cv_header_time" >&6; }
8200 if test $ac_cv_header_time = yes; then
8201
8202 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8203
8204 fi
8205
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8207 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8208 if test "${gcc_cv_header_string+set}" = set; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h.  */
8213 #include <string.h>
8214 #include <strings.h>
8215 int
8216 main ()
8217 {
8218
8219   ;
8220   return 0;
8221 }
8222 _ACEOF
8223 if ac_fn_c_try_compile "$LINENO"; then :
8224   gcc_cv_header_string=yes
8225 else
8226   gcc_cv_header_string=no
8227 fi
8228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229 fi
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8231 $as_echo "$gcc_cv_header_string" >&6; }
8232 if test $gcc_cv_header_string = yes; then
8233
8234 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8235
8236 fi
8237
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8239 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8240 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h.  */
8245 #include <sys/types.h>
8246 #include <sys/wait.h>
8247 #ifndef WEXITSTATUS
8248 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8249 #endif
8250 #ifndef WIFEXITED
8251 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8252 #endif
8253
8254 int
8255 main ()
8256 {
8257   int s;
8258   wait (&s);
8259   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8260   ;
8261   return 0;
8262 }
8263 _ACEOF
8264 if ac_fn_c_try_compile "$LINENO"; then :
8265   ac_cv_header_sys_wait_h=yes
8266 else
8267   ac_cv_header_sys_wait_h=no
8268 fi
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 fi
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8272 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8273 if test $ac_cv_header_sys_wait_h = yes; then
8274
8275 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8276
8277 fi
8278
8279 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8280                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8281                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8282                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8283 do :
8284   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8285 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8286 eval as_val=\$$as_ac_Header
8287    if test "x$as_val" = x""yes; then :
8288   cat >>confdefs.h <<_ACEOF
8289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8290 _ACEOF
8291
8292 fi
8293 done
8294
8295
8296 # Check for thread headers.
8297 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8298 if test "x$ac_cv_header_thread_h" = x""yes; then :
8299   have_thread_h=yes
8300 else
8301   have_thread_h=
8302 fi
8303
8304 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8305 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8306   have_pthread_h=yes
8307 else
8308   have_pthread_h=
8309 fi
8310
8311
8312 # These tests can't be done till we know if we have limits.h.
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8314 $as_echo_n "checking for CHAR_BIT... " >&6; }
8315 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8316   $as_echo_n "(cached) " >&6
8317 else
8318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h.  */
8320 #ifdef HAVE_LIMITS_H
8321 #include <limits.h>
8322 #endif
8323 #ifdef CHAR_BIT
8324 found
8325 #endif
8326 _ACEOF
8327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8328   $EGREP "found" >/dev/null 2>&1; then :
8329   gcc_cv_decl_char_bit=yes
8330 else
8331   gcc_cv_decl_char_bit=no
8332 fi
8333 rm -f conftest*
8334
8335
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8338 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8339 if test $gcc_cv_decl_char_bit = no; then
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8341 $as_echo_n "checking number of bits in a byte... " >&6; }
8342 if test "${gcc_cv_c_nbby+set}" = set; then :
8343   $as_echo_n "(cached) " >&6
8344 else
8345   i=8
8346  gcc_cv_c_nbby=
8347  while test $i -lt 65; do
8348    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h.  */
8350
8351 int
8352 main ()
8353 {
8354 switch(0) {
8355   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8356   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8357   ; }
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 if ac_fn_c_try_compile "$LINENO"; then :
8363   gcc_cv_c_nbby=$i; break
8364 fi
8365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366    i=`expr $i + 1`
8367  done
8368  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8369
8370 fi
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8372 $as_echo "$gcc_cv_c_nbby" >&6; }
8373 if test $gcc_cv_c_nbby = failed; then
8374   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8375 else
8376
8377 cat >>confdefs.h <<_ACEOF
8378 #define CHAR_BIT $gcc_cv_c_nbby
8379 _ACEOF
8380
8381 fi
8382 fi
8383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8384 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8385 if test "${ac_cv_c_bigendian+set}" = set; then :
8386   $as_echo_n "(cached) " >&6
8387 else
8388   ac_cv_c_bigendian=unknown
8389     # See if we're dealing with a universal compiler.
8390     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h.  */
8392 #ifndef __APPLE_CC__
8393                not a universal capable compiler
8394              #endif
8395              typedef int dummy;
8396
8397 _ACEOF
8398 if ac_fn_c_try_compile "$LINENO"; then :
8399
8400         # Check for potential -arch flags.  It is not universal unless
8401         # there are at least two -arch flags with different values.
8402         ac_arch=
8403         ac_prev=
8404         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8405          if test -n "$ac_prev"; then
8406            case $ac_word in
8407              i?86 | x86_64 | ppc | ppc64)
8408                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8409                  ac_arch=$ac_word
8410                else
8411                  ac_cv_c_bigendian=universal
8412                  break
8413                fi
8414                ;;
8415            esac
8416            ac_prev=
8417          elif test "x$ac_word" = "x-arch"; then
8418            ac_prev=arch
8419          fi
8420        done
8421 fi
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423     if test $ac_cv_c_bigendian = unknown; then
8424       # See if sys/param.h defines the BYTE_ORDER macro.
8425       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h.  */
8427 #include <sys/types.h>
8428              #include <sys/param.h>
8429
8430 int
8431 main ()
8432 {
8433 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8434                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8435                      && LITTLE_ENDIAN)
8436               bogus endian macros
8437              #endif
8438
8439   ;
8440   return 0;
8441 }
8442 _ACEOF
8443 if ac_fn_c_try_compile "$LINENO"; then :
8444   # It does; now see whether it defined to BIG_ENDIAN or not.
8445          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h.  */
8447 #include <sys/types.h>
8448                 #include <sys/param.h>
8449
8450 int
8451 main ()
8452 {
8453 #if BYTE_ORDER != BIG_ENDIAN
8454                  not big endian
8455                 #endif
8456
8457   ;
8458   return 0;
8459 }
8460 _ACEOF
8461 if ac_fn_c_try_compile "$LINENO"; then :
8462   ac_cv_c_bigendian=yes
8463 else
8464   ac_cv_c_bigendian=no
8465 fi
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 fi
8468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469     fi
8470     if test $ac_cv_c_bigendian = unknown; then
8471       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8472       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h.  */
8474 #include <limits.h>
8475
8476 int
8477 main ()
8478 {
8479 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8480               bogus endian macros
8481              #endif
8482
8483   ;
8484   return 0;
8485 }
8486 _ACEOF
8487 if ac_fn_c_try_compile "$LINENO"; then :
8488   # It does; now see whether it defined to _BIG_ENDIAN or not.
8489          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h.  */
8491 #include <limits.h>
8492
8493 int
8494 main ()
8495 {
8496 #ifndef _BIG_ENDIAN
8497                  not big endian
8498                 #endif
8499
8500   ;
8501   return 0;
8502 }
8503 _ACEOF
8504 if ac_fn_c_try_compile "$LINENO"; then :
8505   ac_cv_c_bigendian=yes
8506 else
8507   ac_cv_c_bigendian=no
8508 fi
8509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510 fi
8511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8512     fi
8513     if test $ac_cv_c_bigendian = unknown; then
8514       # Compile a test program.
8515       if test "$cross_compiling" = yes; then :
8516   # Try to guess by grepping values from an object file.
8517          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h.  */
8519 short int ascii_mm[] =
8520                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8521                 short int ascii_ii[] =
8522                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8523                 int use_ascii (int i) {
8524                   return ascii_mm[i] + ascii_ii[i];
8525                 }
8526                 short int ebcdic_ii[] =
8527                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8528                 short int ebcdic_mm[] =
8529                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8530                 int use_ebcdic (int i) {
8531                   return ebcdic_mm[i] + ebcdic_ii[i];
8532                 }
8533                 extern int foo;
8534
8535 int
8536 main ()
8537 {
8538 return use_ascii (foo) == use_ebcdic (foo);
8539   ;
8540   return 0;
8541 }
8542 _ACEOF
8543 if ac_fn_c_try_compile "$LINENO"; then :
8544   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8545               ac_cv_c_bigendian=yes
8546             fi
8547             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8548               if test "$ac_cv_c_bigendian" = unknown; then
8549                 ac_cv_c_bigendian=no
8550               else
8551                 # finding both strings is unlikely to happen, but who knows?
8552                 ac_cv_c_bigendian=unknown
8553               fi
8554             fi
8555 fi
8556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557 else
8558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h.  */
8560 $ac_includes_default
8561 int
8562 main ()
8563 {
8564
8565              /* Are we little or big endian?  From Harbison&Steele.  */
8566              union
8567              {
8568                long int l;
8569                char c[sizeof (long int)];
8570              } u;
8571              u.l = 1;
8572              return u.c[sizeof (long int) - 1] == 1;
8573
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 if ac_fn_c_try_run "$LINENO"; then :
8579   ac_cv_c_bigendian=no
8580 else
8581   ac_cv_c_bigendian=yes
8582 fi
8583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8584   conftest.$ac_objext conftest.beam conftest.$ac_ext
8585 fi
8586
8587     fi
8588 fi
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8590 $as_echo "$ac_cv_c_bigendian" >&6; }
8591  case $ac_cv_c_bigendian in #(
8592    yes)
8593      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8594 ;; #(
8595    no)
8596       ;; #(
8597    universal)
8598
8599 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8600
8601      ;; #(
8602    *)
8603      as_fn_error "unknown endianness
8604  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8605  esac
8606
8607
8608 # ----------------------
8609 # Checks for C++ headers
8610 # ----------------------
8611
8612 ac_ext=cpp
8613 ac_cpp='$CXXCPP $CPPFLAGS'
8614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8618 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8619 if test -z "$CXXCPP"; then
8620   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8621   $as_echo_n "(cached) " >&6
8622 else
8623       # Double quotes because CXXCPP needs to be expanded
8624     for CXXCPP in "$CXX -E" "/lib/cpp"
8625     do
8626       ac_preproc_ok=false
8627 for ac_cxx_preproc_warn_flag in '' yes
8628 do
8629   # Use a header file that comes with gcc, so configuring glibc
8630   # with a fresh cross-compiler works.
8631   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8632   # <limits.h> exists even on freestanding compilers.
8633   # On the NeXT, cc -E runs the code through the compiler's parser,
8634   # not just through cpp. "Syntax error" is here to catch this case.
8635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h.  */
8637 #ifdef __STDC__
8638 # include <limits.h>
8639 #else
8640 # include <assert.h>
8641 #endif
8642                      Syntax error
8643 _ACEOF
8644 if ac_fn_cxx_try_cpp "$LINENO"; then :
8645
8646 else
8647   # Broken: fails on valid input.
8648 continue
8649 fi
8650 rm -f conftest.err conftest.$ac_ext
8651
8652   # OK, works on sane cases.  Now check whether nonexistent headers
8653   # can be detected and how.
8654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h.  */
8656 #include <ac_nonexistent.h>
8657 _ACEOF
8658 if ac_fn_cxx_try_cpp "$LINENO"; then :
8659   # Broken: success on invalid input.
8660 continue
8661 else
8662   # Passes both tests.
8663 ac_preproc_ok=:
8664 break
8665 fi
8666 rm -f conftest.err conftest.$ac_ext
8667
8668 done
8669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8670 rm -f conftest.err conftest.$ac_ext
8671 if $ac_preproc_ok; then :
8672   break
8673 fi
8674
8675     done
8676     ac_cv_prog_CXXCPP=$CXXCPP
8677
8678 fi
8679   CXXCPP=$ac_cv_prog_CXXCPP
8680 else
8681   ac_cv_prog_CXXCPP=$CXXCPP
8682 fi
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8684 $as_echo "$CXXCPP" >&6; }
8685 ac_preproc_ok=false
8686 for ac_cxx_preproc_warn_flag in '' yes
8687 do
8688   # Use a header file that comes with gcc, so configuring glibc
8689   # with a fresh cross-compiler works.
8690   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8691   # <limits.h> exists even on freestanding compilers.
8692   # On the NeXT, cc -E runs the code through the compiler's parser,
8693   # not just through cpp. "Syntax error" is here to catch this case.
8694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h.  */
8696 #ifdef __STDC__
8697 # include <limits.h>
8698 #else
8699 # include <assert.h>
8700 #endif
8701                      Syntax error
8702 _ACEOF
8703 if ac_fn_cxx_try_cpp "$LINENO"; then :
8704
8705 else
8706   # Broken: fails on valid input.
8707 continue
8708 fi
8709 rm -f conftest.err conftest.$ac_ext
8710
8711   # OK, works on sane cases.  Now check whether nonexistent headers
8712   # can be detected and how.
8713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h.  */
8715 #include <ac_nonexistent.h>
8716 _ACEOF
8717 if ac_fn_cxx_try_cpp "$LINENO"; then :
8718   # Broken: success on invalid input.
8719 continue
8720 else
8721   # Passes both tests.
8722 ac_preproc_ok=:
8723 break
8724 fi
8725 rm -f conftest.err conftest.$ac_ext
8726
8727 done
8728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8729 rm -f conftest.err conftest.$ac_ext
8730 if $ac_preproc_ok; then :
8731
8732 else
8733   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8736 See \`config.log' for more details." >&5
8737 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8738 See \`config.log' for more details." >&2;}; }
8739 fi
8740
8741 ac_ext=c
8742 ac_cpp='$CPP $CPPFLAGS'
8743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8746
8747
8748 ac_ext=cpp
8749 ac_cpp='$CXXCPP $CPPFLAGS'
8750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8753
8754
8755
8756
8757 for ac_header in unordered_map
8758 do :
8759   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8760 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8761   cat >>confdefs.h <<_ACEOF
8762 #define HAVE_UNORDERED_MAP 1
8763 _ACEOF
8764
8765 fi
8766 done
8767
8768 for ac_header in tr1/unordered_map
8769 do :
8770   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8771 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8772   cat >>confdefs.h <<_ACEOF
8773 #define HAVE_TR1_UNORDERED_MAP 1
8774 _ACEOF
8775
8776 fi
8777 done
8778
8779 for ac_header in ext/hash_map
8780 do :
8781   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8782 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8783   cat >>confdefs.h <<_ACEOF
8784 #define HAVE_EXT_HASH_MAP 1
8785 _ACEOF
8786
8787 fi
8788 done
8789
8790
8791 ac_ext=c
8792 ac_cpp='$CPP $CPPFLAGS'
8793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8796
8797
8798 # --------
8799 # UNSORTED
8800 # --------
8801
8802
8803 # These libraries may be used by collect2.
8804 # We may need a special search path to get them linked.
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8806 $as_echo_n "checking for collect2 libraries... " >&6; }
8807 if test "${gcc_cv_collect2_libs+set}" = set; then :
8808   $as_echo_n "(cached) " >&6
8809 else
8810   save_LIBS="$LIBS"
8811 for libs in '' -lld -lmld \
8812                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8813                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8814 do
8815         LIBS="$libs"
8816         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h.  */
8818
8819 /* Override any GCC internal prototype to avoid an error.
8820    Use char because int might match the return type of a GCC
8821    builtin and then its argument prototype would still apply.  */
8822 #ifdef __cplusplus
8823 extern "C"
8824 #endif
8825 char ldopen ();
8826 int
8827 main ()
8828 {
8829 return ldopen ();
8830   ;
8831   return 0;
8832 }
8833 _ACEOF
8834 if ac_fn_c_try_link "$LINENO"; then :
8835   gcc_cv_collect2_libs="$libs"; break
8836 fi
8837 rm -f core conftest.err conftest.$ac_objext \
8838     conftest$ac_exeext conftest.$ac_ext
8839 done
8840 LIBS="$save_LIBS"
8841 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8842 fi
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8844 $as_echo "$gcc_cv_collect2_libs" >&6; }
8845 case $gcc_cv_collect2_libs in
8846         "none required")        ;;
8847         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8848 esac
8849
8850
8851 # When building Ada code on Alpha, we need exc_resume which is usually in
8852 # -lexc.  So test for it.
8853 save_LIBS="$LIBS"
8854 LIBS=
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8856 $as_echo_n "checking for library containing exc_resume... " >&6; }
8857 if test "${ac_cv_search_exc_resume+set}" = set; then :
8858   $as_echo_n "(cached) " >&6
8859 else
8860   ac_func_search_save_LIBS=$LIBS
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h.  */
8863
8864 /* Override any GCC internal prototype to avoid an error.
8865    Use char because int might match the return type of a GCC
8866    builtin and then its argument prototype would still apply.  */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 char exc_resume ();
8871 int
8872 main ()
8873 {
8874 return exc_resume ();
8875   ;
8876   return 0;
8877 }
8878 _ACEOF
8879 for ac_lib in '' exc; do
8880   if test -z "$ac_lib"; then
8881     ac_res="none required"
8882   else
8883     ac_res=-l$ac_lib
8884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8885   fi
8886   if ac_fn_c_try_link "$LINENO"; then :
8887   ac_cv_search_exc_resume=$ac_res
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext \
8890     conftest$ac_exeext
8891   if test "${ac_cv_search_exc_resume+set}" = set; then :
8892   break
8893 fi
8894 done
8895 if test "${ac_cv_search_exc_resume+set}" = set; then :
8896
8897 else
8898   ac_cv_search_exc_resume=no
8899 fi
8900 rm conftest.$ac_ext
8901 LIBS=$ac_func_search_save_LIBS
8902 fi
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8904 $as_echo "$ac_cv_search_exc_resume" >&6; }
8905 ac_res=$ac_cv_search_exc_resume
8906 if test "$ac_res" != no; then :
8907   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8908
8909 fi
8910
8911 GNAT_LIBEXC="$LIBS"
8912 LIBS="$save_LIBS"
8913
8914
8915 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8916 save_LIBS="$LIBS"
8917 LIBS=
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8919 $as_echo_n "checking for library containing kstat_open... " >&6; }
8920 if test "${ac_cv_search_kstat_open+set}" = set; then :
8921   $as_echo_n "(cached) " >&6
8922 else
8923   ac_func_search_save_LIBS=$LIBS
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h.  */
8926
8927 /* Override any GCC internal prototype to avoid an error.
8928    Use char because int might match the return type of a GCC
8929    builtin and then its argument prototype would still apply.  */
8930 #ifdef __cplusplus
8931 extern "C"
8932 #endif
8933 char kstat_open ();
8934 int
8935 main ()
8936 {
8937 return kstat_open ();
8938   ;
8939   return 0;
8940 }
8941 _ACEOF
8942 for ac_lib in '' kstat; do
8943   if test -z "$ac_lib"; then
8944     ac_res="none required"
8945   else
8946     ac_res=-l$ac_lib
8947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8948   fi
8949   if ac_fn_c_try_link "$LINENO"; then :
8950   ac_cv_search_kstat_open=$ac_res
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext \
8953     conftest$ac_exeext
8954   if test "${ac_cv_search_kstat_open+set}" = set; then :
8955   break
8956 fi
8957 done
8958 if test "${ac_cv_search_kstat_open+set}" = set; then :
8959
8960 else
8961   ac_cv_search_kstat_open=no
8962 fi
8963 rm conftest.$ac_ext
8964 LIBS=$ac_func_search_save_LIBS
8965 fi
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8967 $as_echo "$ac_cv_search_kstat_open" >&6; }
8968 ac_res=$ac_cv_search_kstat_open
8969 if test "$ac_res" != no; then :
8970   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8971
8972 fi
8973
8974 EXTRA_GCC_LIBS="$LIBS"
8975 LIBS="$save_LIBS"
8976
8977
8978 # Some systems put ldexp and frexp in libm instead of libc; assume
8979 # they're both in the same place.  jcf-dump needs them.
8980 save_LIBS="$LIBS"
8981 LIBS=
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8983 $as_echo_n "checking for library containing ldexp... " >&6; }
8984 if test "${ac_cv_search_ldexp+set}" = set; then :
8985   $as_echo_n "(cached) " >&6
8986 else
8987   ac_func_search_save_LIBS=$LIBS
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h.  */
8990
8991 /* Override any GCC internal prototype to avoid an error.
8992    Use char because int might match the return type of a GCC
8993    builtin and then its argument prototype would still apply.  */
8994 #ifdef __cplusplus
8995 extern "C"
8996 #endif
8997 char ldexp ();
8998 int
8999 main ()
9000 {
9001 return ldexp ();
9002   ;
9003   return 0;
9004 }
9005 _ACEOF
9006 for ac_lib in '' m; do
9007   if test -z "$ac_lib"; then
9008     ac_res="none required"
9009   else
9010     ac_res=-l$ac_lib
9011     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9012   fi
9013   if ac_fn_c_try_link "$LINENO"; then :
9014   ac_cv_search_ldexp=$ac_res
9015 fi
9016 rm -f core conftest.err conftest.$ac_objext \
9017     conftest$ac_exeext
9018   if test "${ac_cv_search_ldexp+set}" = set; then :
9019   break
9020 fi
9021 done
9022 if test "${ac_cv_search_ldexp+set}" = set; then :
9023
9024 else
9025   ac_cv_search_ldexp=no
9026 fi
9027 rm conftest.$ac_ext
9028 LIBS=$ac_func_search_save_LIBS
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9031 $as_echo "$ac_cv_search_ldexp" >&6; }
9032 ac_res=$ac_cv_search_ldexp
9033 if test "$ac_res" != no; then :
9034   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9035
9036 fi
9037
9038 LDEXP_LIB="$LIBS"
9039 LIBS="$save_LIBS"
9040
9041
9042 # Use <inttypes.h> only if it exists,
9043 # doesn't clash with <sys/types.h>, and declares intmax_t.
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9045 $as_echo_n "checking for inttypes.h... " >&6; }
9046 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h.  */
9051 #include <sys/types.h>
9052 #include <inttypes.h>
9053 int
9054 main ()
9055 {
9056 intmax_t i = -1;
9057   ;
9058   return 0;
9059 }
9060 _ACEOF
9061 if ac_fn_c_try_compile "$LINENO"; then :
9062   gcc_cv_header_inttypes_h=yes
9063 else
9064   gcc_cv_header_inttypes_h=no
9065 fi
9066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9067 fi
9068
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9070 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9071 if test $gcc_cv_header_inttypes_h = yes; then
9072
9073 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9074
9075 fi
9076
9077
9078
9079 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9080         sysconf strsignal getrusage nl_langinfo \
9081         gettimeofday mbstowcs wcswidth mmap setlocale \
9082         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
9083 do :
9084   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9085 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9086 eval as_val=\$$as_ac_var
9087    if test "x$as_val" = x""yes; then :
9088   cat >>confdefs.h <<_ACEOF
9089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9090 _ACEOF
9091
9092 fi
9093 done
9094
9095
9096 if test x$ac_cv_func_mbstowcs = xyes; then
9097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9098 $as_echo_n "checking whether mbstowcs works... " >&6; }
9099 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9100   $as_echo_n "(cached) " >&6
9101 else
9102       if test "$cross_compiling" = yes; then :
9103   gcc_cv_func_mbstowcs_works=yes
9104 else
9105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h.  */
9107 #include <stdlib.h>
9108 int main()
9109 {
9110   mbstowcs(0, "", 0);
9111   return 0;
9112 }
9113 _ACEOF
9114 if ac_fn_c_try_run "$LINENO"; then :
9115   gcc_cv_func_mbstowcs_works=yes
9116 else
9117   gcc_cv_func_mbstowcs_works=no
9118 fi
9119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9120   conftest.$ac_objext conftest.beam conftest.$ac_ext
9121 fi
9122
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9125 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9126   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9127
9128 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9129
9130   fi
9131 fi
9132
9133 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9134 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9135
9136 else
9137
9138 cat >>confdefs.h <<_ACEOF
9139 #define ssize_t int
9140 _ACEOF
9141
9142 fi
9143
9144 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9145 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9146
9147 else
9148
9149 cat >>confdefs.h <<_ACEOF
9150 #define caddr_t char *
9151 _ACEOF
9152
9153 fi
9154
9155
9156
9157 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9158 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9159   gcc_header_sys_mman_h=yes
9160 else
9161   gcc_header_sys_mman_h=no
9162 fi
9163
9164 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9165 if test "x$ac_cv_func_mmap" = x""yes; then :
9166   gcc_func_mmap=yes
9167 else
9168   gcc_func_mmap=no
9169 fi
9170
9171 if test "$gcc_header_sys_mman_h" != yes \
9172  || test "$gcc_func_mmap" != yes; then
9173    gcc_cv_func_mmap_file=no
9174    gcc_cv_func_mmap_dev_zero=no
9175    gcc_cv_func_mmap_anon=no
9176 else
9177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9178 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9179 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9180   $as_echo_n "(cached) " >&6
9181 else
9182   # Add a system to this blacklist if
9183    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9184    # memory area containing the same data that you'd get if you applied
9185    # read() to the same fd.  The only system known to have a problem here
9186    # is VMS, where text files have record structure.
9187    case "$host_os" in
9188      vms* | ultrix*)
9189         gcc_cv_func_mmap_file=no ;;
9190      *)
9191         gcc_cv_func_mmap_file=yes;;
9192    esac
9193 fi
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9195 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9196    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9197 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9198 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9199   $as_echo_n "(cached) " >&6
9200 else
9201   # Add a system to this blacklist if it has mmap() but /dev/zero
9202    # does not exist, or if mmapping /dev/zero does not give anonymous
9203    # zeroed pages with both the following properties:
9204    # 1. If you map N consecutive pages in with one call, and then
9205    #    unmap any subset of those pages, the pages that were not
9206    #    explicitly unmapped remain accessible.
9207    # 2. If you map two adjacent blocks of memory and then unmap them
9208    #    both at once, they must both go away.
9209    # Systems known to be in this category are Windows (all variants),
9210    # VMS, and Darwin.
9211    case "$host_os" in
9212      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9213         gcc_cv_func_mmap_dev_zero=no ;;
9214      *)
9215         gcc_cv_func_mmap_dev_zero=yes;;
9216    esac
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9219 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9220
9221    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9223 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9224 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9225   $as_echo_n "(cached) " >&6
9226 else
9227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h.  */
9229 #include <sys/types.h>
9230 #include <sys/mman.h>
9231 #include <unistd.h>
9232
9233 #ifndef MAP_ANONYMOUS
9234 #define MAP_ANONYMOUS MAP_ANON
9235 #endif
9236
9237 int
9238 main ()
9239 {
9240 int n = MAP_ANONYMOUS;
9241   ;
9242   return 0;
9243 }
9244 _ACEOF
9245 if ac_fn_c_try_compile "$LINENO"; then :
9246   gcc_cv_decl_map_anon=yes
9247 else
9248   gcc_cv_decl_map_anon=no
9249 fi
9250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9253 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9254
9255    if test $gcc_cv_decl_map_anon = no; then
9256      gcc_cv_func_mmap_anon=no
9257    else
9258      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9259 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9260 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9261   $as_echo_n "(cached) " >&6
9262 else
9263   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9264    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9265    # doesn't give anonymous zeroed pages with the same properties listed
9266    # above for use of /dev/zero.
9267    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9268    case "$host_os" in
9269      vms* | cygwin* | pe | mingw* | sco* | udk* )
9270         gcc_cv_func_mmap_anon=no ;;
9271      *)
9272         gcc_cv_func_mmap_anon=yes;;
9273    esac
9274 fi
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9276 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9277    fi
9278 fi
9279
9280 if test $gcc_cv_func_mmap_file = yes; then
9281
9282 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9283
9284 fi
9285 if test $gcc_cv_func_mmap_dev_zero = yes; then
9286
9287 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9288
9289 fi
9290 if test $gcc_cv_func_mmap_anon = yes; then
9291
9292 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9293
9294 fi
9295
9296
9297 case "${host}" in
9298 *-*-*vms*)
9299   # Under VMS, vfork works very differently than on Unix. The standard test
9300   # won't work, and it isn't easily adaptable. It makes more sense to
9301   # just force it.
9302   ac_cv_func_vfork_works=yes
9303   ;;
9304 esac
9305 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9306 if test "x$ac_cv_type_pid_t" = x""yes; then :
9307
9308 else
9309
9310 cat >>confdefs.h <<_ACEOF
9311 #define pid_t int
9312 _ACEOF
9313
9314 fi
9315
9316 for ac_header in vfork.h
9317 do :
9318   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9319 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9320   cat >>confdefs.h <<_ACEOF
9321 #define HAVE_VFORK_H 1
9322 _ACEOF
9323
9324 fi
9325 done
9326
9327 for ac_func in fork vfork
9328 do :
9329   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9330 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9331 eval as_val=\$$as_ac_var
9332    if test "x$as_val" = x""yes; then :
9333   cat >>confdefs.h <<_ACEOF
9334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9335 _ACEOF
9336
9337 fi
9338 done
9339
9340 if test "x$ac_cv_func_fork" = xyes; then
9341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9342 $as_echo_n "checking for working fork... " >&6; }
9343 if test "${ac_cv_func_fork_works+set}" = set; then :
9344   $as_echo_n "(cached) " >&6
9345 else
9346   if test "$cross_compiling" = yes; then :
9347   ac_cv_func_fork_works=cross
9348 else
9349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h.  */
9351 $ac_includes_default
9352 int
9353 main ()
9354 {
9355
9356           /* By Ruediger Kuhlmann. */
9357           return fork () < 0;
9358
9359   ;
9360   return 0;
9361 }
9362 _ACEOF
9363 if ac_fn_c_try_run "$LINENO"; then :
9364   ac_cv_func_fork_works=yes
9365 else
9366   ac_cv_func_fork_works=no
9367 fi
9368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9369   conftest.$ac_objext conftest.beam conftest.$ac_ext
9370 fi
9371
9372 fi
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9374 $as_echo "$ac_cv_func_fork_works" >&6; }
9375
9376 else
9377   ac_cv_func_fork_works=$ac_cv_func_fork
9378 fi
9379 if test "x$ac_cv_func_fork_works" = xcross; then
9380   case $host in
9381     *-*-amigaos* | *-*-msdosdjgpp*)
9382       # Override, as these systems have only a dummy fork() stub
9383       ac_cv_func_fork_works=no
9384       ;;
9385     *)
9386       ac_cv_func_fork_works=yes
9387       ;;
9388   esac
9389   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9390 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9391 fi
9392 ac_cv_func_vfork_works=$ac_cv_func_vfork
9393 if test "x$ac_cv_func_vfork" = xyes; then
9394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9395 $as_echo_n "checking for working vfork... " >&6; }
9396 if test "${ac_cv_func_vfork_works+set}" = set; then :
9397   $as_echo_n "(cached) " >&6
9398 else
9399   if test "$cross_compiling" = yes; then :
9400   ac_cv_func_vfork_works=cross
9401 else
9402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h.  */
9404 /* Thanks to Paul Eggert for this test.  */
9405 $ac_includes_default
9406 #include <sys/wait.h>
9407 #ifdef HAVE_VFORK_H
9408 # include <vfork.h>
9409 #endif
9410 /* On some sparc systems, changes by the child to local and incoming
9411    argument registers are propagated back to the parent.  The compiler
9412    is told about this with #include <vfork.h>, but some compilers
9413    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9414    static variable whose address is put into a register that is
9415    clobbered by the vfork.  */
9416 static void
9417 #ifdef __cplusplus
9418 sparc_address_test (int arg)
9419 # else
9420 sparc_address_test (arg) int arg;
9421 #endif
9422 {
9423   static pid_t child;
9424   if (!child) {
9425     child = vfork ();
9426     if (child < 0) {
9427       perror ("vfork");
9428       _exit(2);
9429     }
9430     if (!child) {
9431       arg = getpid();
9432       write(-1, "", 0);
9433       _exit (arg);
9434     }
9435   }
9436 }
9437
9438 int
9439 main ()
9440 {
9441   pid_t parent = getpid ();
9442   pid_t child;
9443
9444   sparc_address_test (0);
9445
9446   child = vfork ();
9447
9448   if (child == 0) {
9449     /* Here is another test for sparc vfork register problems.  This
9450        test uses lots of local variables, at least as many local
9451        variables as main has allocated so far including compiler
9452        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9453        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9454        reuse the register of parent for one of the local variables,
9455        since it will think that parent can't possibly be used any more
9456        in this routine.  Assigning to the local variable will thus
9457        munge parent in the parent process.  */
9458     pid_t
9459       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9460       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9461     /* Convince the compiler that p..p7 are live; otherwise, it might
9462        use the same hardware register for all 8 local variables.  */
9463     if (p != p1 || p != p2 || p != p3 || p != p4
9464         || p != p5 || p != p6 || p != p7)
9465       _exit(1);
9466
9467     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9468        from child file descriptors.  If the child closes a descriptor
9469        before it execs or exits, this munges the parent's descriptor
9470        as well.  Test for this by closing stdout in the child.  */
9471     _exit(close(fileno(stdout)) != 0);
9472   } else {
9473     int status;
9474     struct stat st;
9475
9476     while (wait(&status) != child)
9477       ;
9478     return (
9479          /* Was there some problem with vforking?  */
9480          child < 0
9481
9482          /* Did the child fail?  (This shouldn't happen.)  */
9483          || status
9484
9485          /* Did the vfork/compiler bug occur?  */
9486          || parent != getpid()
9487
9488          /* Did the file descriptor bug occur?  */
9489          || fstat(fileno(stdout), &st) != 0
9490          );
9491   }
9492 }
9493 _ACEOF
9494 if ac_fn_c_try_run "$LINENO"; then :
9495   ac_cv_func_vfork_works=yes
9496 else
9497   ac_cv_func_vfork_works=no
9498 fi
9499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9500   conftest.$ac_objext conftest.beam conftest.$ac_ext
9501 fi
9502
9503 fi
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9505 $as_echo "$ac_cv_func_vfork_works" >&6; }
9506
9507 fi;
9508 if test "x$ac_cv_func_fork_works" = xcross; then
9509   ac_cv_func_vfork_works=$ac_cv_func_vfork
9510   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9511 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9512 fi
9513
9514 if test "x$ac_cv_func_vfork_works" = xyes; then
9515
9516 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9517
9518 else
9519
9520 $as_echo "#define vfork fork" >>confdefs.h
9521
9522 fi
9523 if test "x$ac_cv_func_fork_works" = xyes; then
9524
9525 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9526
9527 fi
9528
9529
9530 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9531 # iconv() prototype.
9532
9533       if test "X$prefix" = "XNONE"; then
9534     acl_final_prefix="$ac_default_prefix"
9535   else
9536     acl_final_prefix="$prefix"
9537   fi
9538   if test "X$exec_prefix" = "XNONE"; then
9539     acl_final_exec_prefix='${prefix}'
9540   else
9541     acl_final_exec_prefix="$exec_prefix"
9542   fi
9543   acl_save_prefix="$prefix"
9544   prefix="$acl_final_prefix"
9545   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9546   prefix="$acl_save_prefix"
9547
9548
9549 # Check whether --with-gnu-ld was given.
9550 if test "${with_gnu_ld+set}" = set; then :
9551   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9552 else
9553   with_gnu_ld=no
9554 fi
9555
9556 # Prepare PATH_SEPARATOR.
9557 # The user is always right.
9558 if test "${PATH_SEPARATOR+set}" != set; then
9559   echo "#! /bin/sh" >conf$$.sh
9560   echo  "exit 0"   >>conf$$.sh
9561   chmod +x conf$$.sh
9562   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9563     PATH_SEPARATOR=';'
9564   else
9565     PATH_SEPARATOR=:
9566   fi
9567   rm -f conf$$.sh
9568 fi
9569 ac_prog=ld
9570 if test "$GCC" = yes; then
9571   # Check if gcc -print-prog-name=ld gives a path.
9572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9573 $as_echo_n "checking for ld used by GCC... " >&6; }
9574   case $host in
9575   *-*-mingw*)
9576     # gcc leaves a trailing carriage return which upsets mingw
9577     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9578   *)
9579     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9580   esac
9581   case $ac_prog in
9582     # Accept absolute paths.
9583     [\\/]* | [A-Za-z]:[\\/]*)
9584       re_direlt='/[^/][^/]*/\.\./'
9585       # Canonicalize the path of ld
9586       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9587       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9588         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9589       done
9590       test -z "$LD" && LD="$ac_prog"
9591       ;;
9592   "")
9593     # If it fails, then pretend we aren't using GCC.
9594     ac_prog=ld
9595     ;;
9596   *)
9597     # If it is relative, then search for the first ld in PATH.
9598     with_gnu_ld=unknown
9599     ;;
9600   esac
9601 elif test "$with_gnu_ld" = yes; then
9602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9603 $as_echo_n "checking for GNU ld... " >&6; }
9604 else
9605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9606 $as_echo_n "checking for non-GNU ld... " >&6; }
9607 fi
9608 if test "${acl_cv_path_LD+set}" = set; then :
9609   $as_echo_n "(cached) " >&6
9610 else
9611   if test -z "$LD"; then
9612   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9613   for ac_dir in $PATH; do
9614     test -z "$ac_dir" && ac_dir=.
9615     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9616       acl_cv_path_LD="$ac_dir/$ac_prog"
9617       # Check to see if the program is GNU ld.  I'd rather use --version,
9618       # but apparently some GNU ld's only accept -v.
9619       # Break only if it was the GNU/non-GNU ld that we prefer.
9620       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9621         test "$with_gnu_ld" != no && break
9622       else
9623         test "$with_gnu_ld" != yes && break
9624       fi
9625     fi
9626   done
9627   IFS="$ac_save_ifs"
9628 else
9629   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9630 fi
9631 fi
9632
9633 LD="$acl_cv_path_LD"
9634 if test -n "$LD"; then
9635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9636 $as_echo "$LD" >&6; }
9637 else
9638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9639 $as_echo "no" >&6; }
9640 fi
9641 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9643 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9644 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9645   $as_echo_n "(cached) " >&6
9646 else
9647   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9648 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9649   acl_cv_prog_gnu_ld=yes
9650 else
9651   acl_cv_prog_gnu_ld=no
9652 fi
9653 fi
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9655 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9656 with_gnu_ld=$acl_cv_prog_gnu_ld
9657
9658
9659
9660                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9661 $as_echo_n "checking for shared library run path origin... " >&6; }
9662 if test "${acl_cv_rpath+set}" = set; then :
9663   $as_echo_n "(cached) " >&6
9664 else
9665
9666     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9667     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9668     . ./conftest.sh
9669     rm -f ./conftest.sh
9670     acl_cv_rpath=done
9671
9672 fi
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9674 $as_echo "$acl_cv_rpath" >&6; }
9675   wl="$acl_cv_wl"
9676   libext="$acl_cv_libext"
9677   shlibext="$acl_cv_shlibext"
9678   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9679   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9680   hardcode_direct="$acl_cv_hardcode_direct"
9681   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9682     # Check whether --enable-rpath was given.
9683 if test "${enable_rpath+set}" = set; then :
9684   enableval=$enable_rpath; :
9685 else
9686   enable_rpath=yes
9687 fi
9688
9689
9690
9691
9692
9693
9694
9695
9696     use_additional=yes
9697
9698   acl_save_prefix="$prefix"
9699   prefix="$acl_final_prefix"
9700   acl_save_exec_prefix="$exec_prefix"
9701   exec_prefix="$acl_final_exec_prefix"
9702
9703     eval additional_includedir=\"$includedir\"
9704     eval additional_libdir=\"$libdir\"
9705
9706   exec_prefix="$acl_save_exec_prefix"
9707   prefix="$acl_save_prefix"
9708
9709
9710 # Check whether --with-libiconv-prefix was given.
9711 if test "${with_libiconv_prefix+set}" = set; then :
9712   withval=$with_libiconv_prefix;
9713     if test "X$withval" = "Xno"; then
9714       use_additional=no
9715     else
9716       if test "X$withval" = "X"; then
9717
9718   acl_save_prefix="$prefix"
9719   prefix="$acl_final_prefix"
9720   acl_save_exec_prefix="$exec_prefix"
9721   exec_prefix="$acl_final_exec_prefix"
9722
9723           eval additional_includedir=\"$includedir\"
9724           eval additional_libdir=\"$libdir\"
9725
9726   exec_prefix="$acl_save_exec_prefix"
9727   prefix="$acl_save_prefix"
9728
9729       else
9730         additional_includedir="$withval/include"
9731         additional_libdir="$withval/lib"
9732       fi
9733     fi
9734
9735 fi
9736
9737       LIBICONV=
9738   LTLIBICONV=
9739   INCICONV=
9740   rpathdirs=
9741   ltrpathdirs=
9742   names_already_handled=
9743   names_next_round='iconv '
9744   while test -n "$names_next_round"; do
9745     names_this_round="$names_next_round"
9746     names_next_round=
9747     for name in $names_this_round; do
9748       already_handled=
9749       for n in $names_already_handled; do
9750         if test "$n" = "$name"; then
9751           already_handled=yes
9752           break
9753         fi
9754       done
9755       if test -z "$already_handled"; then
9756         names_already_handled="$names_already_handled $name"
9757                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9758         eval value=\"\$HAVE_LIB$uppername\"
9759         if test -n "$value"; then
9760           if test "$value" = yes; then
9761             eval value=\"\$LIB$uppername\"
9762             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9763             eval value=\"\$LTLIB$uppername\"
9764             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9765           else
9766                                     :
9767           fi
9768         else
9769                               found_dir=
9770           found_la=
9771           found_so=
9772           found_a=
9773           if test $use_additional = yes; then
9774             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9775               found_dir="$additional_libdir"
9776               found_so="$additional_libdir/lib$name.$shlibext"
9777               if test -f "$additional_libdir/lib$name.la"; then
9778                 found_la="$additional_libdir/lib$name.la"
9779               fi
9780             else
9781               if test -f "$additional_libdir/lib$name.$libext"; then
9782                 found_dir="$additional_libdir"
9783                 found_a="$additional_libdir/lib$name.$libext"
9784                 if test -f "$additional_libdir/lib$name.la"; then
9785                   found_la="$additional_libdir/lib$name.la"
9786                 fi
9787               fi
9788             fi
9789           fi
9790           if test "X$found_dir" = "X"; then
9791             for x in $LDFLAGS $LTLIBICONV; do
9792
9793   acl_save_prefix="$prefix"
9794   prefix="$acl_final_prefix"
9795   acl_save_exec_prefix="$exec_prefix"
9796   exec_prefix="$acl_final_exec_prefix"
9797   eval x=\"$x\"
9798   exec_prefix="$acl_save_exec_prefix"
9799   prefix="$acl_save_prefix"
9800
9801               case "$x" in
9802                 -L*)
9803                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9804                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9805                     found_dir="$dir"
9806                     found_so="$dir/lib$name.$shlibext"
9807                     if test -f "$dir/lib$name.la"; then
9808                       found_la="$dir/lib$name.la"
9809                     fi
9810                   else
9811                     if test -f "$dir/lib$name.$libext"; then
9812                       found_dir="$dir"
9813                       found_a="$dir/lib$name.$libext"
9814                       if test -f "$dir/lib$name.la"; then
9815                         found_la="$dir/lib$name.la"
9816                       fi
9817                     fi
9818                   fi
9819                   ;;
9820               esac
9821               if test "X$found_dir" != "X"; then
9822                 break
9823               fi
9824             done
9825           fi
9826           if test "X$found_dir" != "X"; then
9827                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9828             if test "X$found_so" != "X"; then
9829                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9830                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9831               else
9832                                                                                 haveit=
9833                 for x in $ltrpathdirs; do
9834                   if test "X$x" = "X$found_dir"; then
9835                     haveit=yes
9836                     break
9837                   fi
9838                 done
9839                 if test -z "$haveit"; then
9840                   ltrpathdirs="$ltrpathdirs $found_dir"
9841                 fi
9842                                 if test "$hardcode_direct" = yes; then
9843                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9844                 else
9845                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9846                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9847                                                             haveit=
9848                     for x in $rpathdirs; do
9849                       if test "X$x" = "X$found_dir"; then
9850                         haveit=yes
9851                         break
9852                       fi
9853                     done
9854                     if test -z "$haveit"; then
9855                       rpathdirs="$rpathdirs $found_dir"
9856                     fi
9857                   else
9858                                                                                 haveit=
9859                     for x in $LDFLAGS $LIBICONV; do
9860
9861   acl_save_prefix="$prefix"
9862   prefix="$acl_final_prefix"
9863   acl_save_exec_prefix="$exec_prefix"
9864   exec_prefix="$acl_final_exec_prefix"
9865   eval x=\"$x\"
9866   exec_prefix="$acl_save_exec_prefix"
9867   prefix="$acl_save_prefix"
9868
9869                       if test "X$x" = "X-L$found_dir"; then
9870                         haveit=yes
9871                         break
9872                       fi
9873                     done
9874                     if test -z "$haveit"; then
9875                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9876                     fi
9877                     if test "$hardcode_minus_L" != no; then
9878                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9879                     else
9880                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9881                     fi
9882                   fi
9883                 fi
9884               fi
9885             else
9886               if test "X$found_a" != "X"; then
9887                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9888               else
9889                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9890               fi
9891             fi
9892                         additional_includedir=
9893             case "$found_dir" in
9894               */lib | */lib/)
9895                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9896                 additional_includedir="$basedir/include"
9897                 ;;
9898             esac
9899             if test "X$additional_includedir" != "X"; then
9900                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9901                 haveit=
9902                 if test "X$additional_includedir" = "X/usr/local/include"; then
9903                   if test -n "$GCC"; then
9904                     case $host_os in
9905                       linux*) haveit=yes;;
9906                     esac
9907                   fi
9908                 fi
9909                 if test -z "$haveit"; then
9910                   for x in $CPPFLAGS $INCICONV; do
9911
9912   acl_save_prefix="$prefix"
9913   prefix="$acl_final_prefix"
9914   acl_save_exec_prefix="$exec_prefix"
9915   exec_prefix="$acl_final_exec_prefix"
9916   eval x=\"$x\"
9917   exec_prefix="$acl_save_exec_prefix"
9918   prefix="$acl_save_prefix"
9919
9920                     if test "X$x" = "X-I$additional_includedir"; then
9921                       haveit=yes
9922                       break
9923                     fi
9924                   done
9925                   if test -z "$haveit"; then
9926                     if test -d "$additional_includedir"; then
9927                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9928                     fi
9929                   fi
9930                 fi
9931               fi
9932             fi
9933                         if test -n "$found_la"; then
9934                                                         save_libdir="$libdir"
9935               case "$found_la" in
9936                 */* | *\\*) . "$found_la" ;;
9937                 *) . "./$found_la" ;;
9938               esac
9939               libdir="$save_libdir"
9940                             for dep in $dependency_libs; do
9941                 case "$dep" in
9942                   -L*)
9943                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9944                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9945                       haveit=
9946                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9947                         if test -n "$GCC"; then
9948                           case $host_os in
9949                             linux*) haveit=yes;;
9950                           esac
9951                         fi
9952                       fi
9953                       if test -z "$haveit"; then
9954                         haveit=
9955                         for x in $LDFLAGS $LIBICONV; do
9956
9957   acl_save_prefix="$prefix"
9958   prefix="$acl_final_prefix"
9959   acl_save_exec_prefix="$exec_prefix"
9960   exec_prefix="$acl_final_exec_prefix"
9961   eval x=\"$x\"
9962   exec_prefix="$acl_save_exec_prefix"
9963   prefix="$acl_save_prefix"
9964
9965                           if test "X$x" = "X-L$additional_libdir"; then
9966                             haveit=yes
9967                             break
9968                           fi
9969                         done
9970                         if test -z "$haveit"; then
9971                           if test -d "$additional_libdir"; then
9972                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9973                           fi
9974                         fi
9975                         haveit=
9976                         for x in $LDFLAGS $LTLIBICONV; do
9977
9978   acl_save_prefix="$prefix"
9979   prefix="$acl_final_prefix"
9980   acl_save_exec_prefix="$exec_prefix"
9981   exec_prefix="$acl_final_exec_prefix"
9982   eval x=\"$x\"
9983   exec_prefix="$acl_save_exec_prefix"
9984   prefix="$acl_save_prefix"
9985
9986                           if test "X$x" = "X-L$additional_libdir"; then
9987                             haveit=yes
9988                             break
9989                           fi
9990                         done
9991                         if test -z "$haveit"; then
9992                           if test -d "$additional_libdir"; then
9993                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9994                           fi
9995                         fi
9996                       fi
9997                     fi
9998                     ;;
9999                   -R*)
10000                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10001                     if test "$enable_rpath" != no; then
10002                                                                   haveit=
10003                       for x in $rpathdirs; do
10004                         if test "X$x" = "X$dir"; then
10005                           haveit=yes
10006                           break
10007                         fi
10008                       done
10009                       if test -z "$haveit"; then
10010                         rpathdirs="$rpathdirs $dir"
10011                       fi
10012                                                                   haveit=
10013                       for x in $ltrpathdirs; do
10014                         if test "X$x" = "X$dir"; then
10015                           haveit=yes
10016                           break
10017                         fi
10018                       done
10019                       if test -z "$haveit"; then
10020                         ltrpathdirs="$ltrpathdirs $dir"
10021                       fi
10022                     fi
10023                     ;;
10024                   -l*)
10025                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10026                     ;;
10027                   *.la)
10028                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10029                     ;;
10030                   *)
10031                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10032                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10033                     ;;
10034                 esac
10035               done
10036             fi
10037           else
10038                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10039             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10040           fi
10041         fi
10042       fi
10043     done
10044   done
10045   if test "X$rpathdirs" != "X"; then
10046     if test -n "$hardcode_libdir_separator"; then
10047                         alldirs=
10048       for found_dir in $rpathdirs; do
10049         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10050       done
10051             acl_save_libdir="$libdir"
10052       libdir="$alldirs"
10053       eval flag=\"$hardcode_libdir_flag_spec\"
10054       libdir="$acl_save_libdir"
10055       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10056     else
10057             for found_dir in $rpathdirs; do
10058         acl_save_libdir="$libdir"
10059         libdir="$found_dir"
10060         eval flag=\"$hardcode_libdir_flag_spec\"
10061         libdir="$acl_save_libdir"
10062         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10063       done
10064     fi
10065   fi
10066   if test "X$ltrpathdirs" != "X"; then
10067             for found_dir in $ltrpathdirs; do
10068       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10069     done
10070   fi
10071
10072
10073 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10074   ac_ext=cpp
10075 ac_cpp='$CXXCPP $CPPFLAGS'
10076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10079
10080
10081
10082
10083
10084
10085           am_save_CPPFLAGS="$CPPFLAGS"
10086
10087   for element in $INCICONV; do
10088     haveit=
10089     for x in $CPPFLAGS; do
10090
10091   acl_save_prefix="$prefix"
10092   prefix="$acl_final_prefix"
10093   acl_save_exec_prefix="$exec_prefix"
10094   exec_prefix="$acl_final_exec_prefix"
10095   eval x=\"$x\"
10096   exec_prefix="$acl_save_exec_prefix"
10097   prefix="$acl_save_prefix"
10098
10099       if test "X$x" = "X$element"; then
10100         haveit=yes
10101         break
10102       fi
10103     done
10104     if test -z "$haveit"; then
10105       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10106     fi
10107   done
10108
10109
10110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10111 $as_echo_n "checking for iconv... " >&6; }
10112 if test "${am_cv_func_iconv+set}" = set; then :
10113   $as_echo_n "(cached) " >&6
10114 else
10115
10116     am_cv_func_iconv="no, consider installing GNU libiconv"
10117     am_cv_lib_iconv=no
10118     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h.  */
10120 #include <stdlib.h>
10121 #include <iconv.h>
10122 int
10123 main ()
10124 {
10125 iconv_t cd = iconv_open("","");
10126        iconv(cd,NULL,NULL,NULL,NULL);
10127        iconv_close(cd);
10128   ;
10129   return 0;
10130 }
10131 _ACEOF
10132 if ac_fn_cxx_try_link "$LINENO"; then :
10133   am_cv_func_iconv=yes
10134 fi
10135 rm -f core conftest.err conftest.$ac_objext \
10136     conftest$ac_exeext conftest.$ac_ext
10137     if test "$am_cv_func_iconv" != yes; then
10138       am_save_LIBS="$LIBS"
10139       LIBS="$LIBS $LIBICONV"
10140       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h.  */
10142 #include <stdlib.h>
10143 #include <iconv.h>
10144 int
10145 main ()
10146 {
10147 iconv_t cd = iconv_open("","");
10148          iconv(cd,NULL,NULL,NULL,NULL);
10149          iconv_close(cd);
10150   ;
10151   return 0;
10152 }
10153 _ACEOF
10154 if ac_fn_cxx_try_link "$LINENO"; then :
10155   am_cv_lib_iconv=yes
10156         am_cv_func_iconv=yes
10157 fi
10158 rm -f core conftest.err conftest.$ac_objext \
10159     conftest$ac_exeext conftest.$ac_ext
10160       LIBS="$am_save_LIBS"
10161     fi
10162
10163 fi
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10165 $as_echo "$am_cv_func_iconv" >&6; }
10166   if test "$am_cv_func_iconv" = yes; then
10167
10168 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10169
10170   fi
10171   if test "$am_cv_lib_iconv" = yes; then
10172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10173 $as_echo_n "checking how to link with libiconv... " >&6; }
10174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10175 $as_echo "$LIBICONV" >&6; }
10176   else
10177             CPPFLAGS="$am_save_CPPFLAGS"
10178     LIBICONV=
10179     LTLIBICONV=
10180   fi
10181
10182
10183
10184   if test "$am_cv_func_iconv" = yes; then
10185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10186 $as_echo_n "checking for iconv declaration... " >&6; }
10187     if test "${am_cv_proto_iconv+set}" = set; then :
10188   $as_echo_n "(cached) " >&6
10189 else
10190
10191       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h.  */
10193
10194 #include <stdlib.h>
10195 #include <iconv.h>
10196 extern
10197 #ifdef __cplusplus
10198 "C"
10199 #endif
10200 #if defined(__STDC__) || defined(__cplusplus)
10201 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10202 #else
10203 size_t iconv();
10204 #endif
10205
10206 int
10207 main ()
10208 {
10209
10210   ;
10211   return 0;
10212 }
10213 _ACEOF
10214 if ac_fn_cxx_try_compile "$LINENO"; then :
10215   am_cv_proto_iconv_arg1=""
10216 else
10217   am_cv_proto_iconv_arg1="const"
10218 fi
10219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10220       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);"
10221 fi
10222
10223     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10225          }$am_cv_proto_iconv" >&5
10226 $as_echo "${ac_t:-
10227          }$am_cv_proto_iconv" >&6; }
10228
10229 cat >>confdefs.h <<_ACEOF
10230 #define ICONV_CONST $am_cv_proto_iconv_arg1
10231 _ACEOF
10232
10233   fi
10234
10235    ac_ext=c
10236 ac_cpp='$CPP $CPPFLAGS'
10237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10240
10241 else
10242
10243
10244
10245
10246
10247           am_save_CPPFLAGS="$CPPFLAGS"
10248
10249   for element in $INCICONV; do
10250     haveit=
10251     for x in $CPPFLAGS; do
10252
10253   acl_save_prefix="$prefix"
10254   prefix="$acl_final_prefix"
10255   acl_save_exec_prefix="$exec_prefix"
10256   exec_prefix="$acl_final_exec_prefix"
10257   eval x=\"$x\"
10258   exec_prefix="$acl_save_exec_prefix"
10259   prefix="$acl_save_prefix"
10260
10261       if test "X$x" = "X$element"; then
10262         haveit=yes
10263         break
10264       fi
10265     done
10266     if test -z "$haveit"; then
10267       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10268     fi
10269   done
10270
10271
10272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10273 $as_echo_n "checking for iconv... " >&6; }
10274 if test "${am_cv_func_iconv+set}" = set; then :
10275   $as_echo_n "(cached) " >&6
10276 else
10277
10278     am_cv_func_iconv="no, consider installing GNU libiconv"
10279     am_cv_lib_iconv=no
10280     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h.  */
10282 #include <stdlib.h>
10283 #include <iconv.h>
10284 int
10285 main ()
10286 {
10287 iconv_t cd = iconv_open("","");
10288        iconv(cd,NULL,NULL,NULL,NULL);
10289        iconv_close(cd);
10290   ;
10291   return 0;
10292 }
10293 _ACEOF
10294 if ac_fn_c_try_link "$LINENO"; then :
10295   am_cv_func_iconv=yes
10296 fi
10297 rm -f core conftest.err conftest.$ac_objext \
10298     conftest$ac_exeext conftest.$ac_ext
10299     if test "$am_cv_func_iconv" != yes; then
10300       am_save_LIBS="$LIBS"
10301       LIBS="$LIBS $LIBICONV"
10302       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h.  */
10304 #include <stdlib.h>
10305 #include <iconv.h>
10306 int
10307 main ()
10308 {
10309 iconv_t cd = iconv_open("","");
10310          iconv(cd,NULL,NULL,NULL,NULL);
10311          iconv_close(cd);
10312   ;
10313   return 0;
10314 }
10315 _ACEOF
10316 if ac_fn_c_try_link "$LINENO"; then :
10317   am_cv_lib_iconv=yes
10318         am_cv_func_iconv=yes
10319 fi
10320 rm -f core conftest.err conftest.$ac_objext \
10321     conftest$ac_exeext conftest.$ac_ext
10322       LIBS="$am_save_LIBS"
10323     fi
10324
10325 fi
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10327 $as_echo "$am_cv_func_iconv" >&6; }
10328   if test "$am_cv_func_iconv" = yes; then
10329
10330 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10331
10332   fi
10333   if test "$am_cv_lib_iconv" = yes; then
10334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10335 $as_echo_n "checking how to link with libiconv... " >&6; }
10336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10337 $as_echo "$LIBICONV" >&6; }
10338   else
10339             CPPFLAGS="$am_save_CPPFLAGS"
10340     LIBICONV=
10341     LTLIBICONV=
10342   fi
10343
10344
10345
10346   if test "$am_cv_func_iconv" = yes; then
10347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10348 $as_echo_n "checking for iconv declaration... " >&6; }
10349     if test "${am_cv_proto_iconv+set}" = set; then :
10350   $as_echo_n "(cached) " >&6
10351 else
10352
10353       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h.  */
10355
10356 #include <stdlib.h>
10357 #include <iconv.h>
10358 extern
10359 #ifdef __cplusplus
10360 "C"
10361 #endif
10362 #if defined(__STDC__) || defined(__cplusplus)
10363 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10364 #else
10365 size_t iconv();
10366 #endif
10367
10368 int
10369 main ()
10370 {
10371
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 if ac_fn_c_try_compile "$LINENO"; then :
10377   am_cv_proto_iconv_arg1=""
10378 else
10379   am_cv_proto_iconv_arg1="const"
10380 fi
10381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10382       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);"
10383 fi
10384
10385     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10387          }$am_cv_proto_iconv" >&5
10388 $as_echo "${ac_t:-
10389          }$am_cv_proto_iconv" >&6; }
10390
10391 cat >>confdefs.h <<_ACEOF
10392 #define ICONV_CONST $am_cv_proto_iconv_arg1
10393 _ACEOF
10394
10395   fi
10396
10397 fi
10398
10399 # Until we have in-tree GNU iconv:
10400 LIBICONV_DEP=
10401
10402
10403
10404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10405 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10406 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10407   $as_echo_n "(cached) " >&6
10408 else
10409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h.  */
10411 #include <locale.h>
10412 int
10413 main ()
10414 {
10415 return LC_MESSAGES
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 if ac_fn_c_try_link "$LINENO"; then :
10421   am_cv_val_LC_MESSAGES=yes
10422 else
10423   am_cv_val_LC_MESSAGES=no
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext \
10426     conftest$ac_exeext conftest.$ac_ext
10427 fi
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10429 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10430   if test $am_cv_val_LC_MESSAGES = yes; then
10431
10432 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10433
10434   fi
10435
10436
10437
10438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10439 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10440 if test "${am_cv_langinfo_codeset+set}" = set; then :
10441   $as_echo_n "(cached) " >&6
10442 else
10443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h.  */
10445 #include <langinfo.h>
10446 int
10447 main ()
10448 {
10449 char* cs = nl_langinfo(CODESET);
10450   ;
10451   return 0;
10452 }
10453 _ACEOF
10454 if ac_fn_c_try_link "$LINENO"; then :
10455   am_cv_langinfo_codeset=yes
10456 else
10457   am_cv_langinfo_codeset=no
10458 fi
10459 rm -f core conftest.err conftest.$ac_objext \
10460     conftest$ac_exeext conftest.$ac_ext
10461
10462 fi
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10464 $as_echo "$am_cv_langinfo_codeset" >&6; }
10465   if test $am_cv_langinfo_codeset = yes; then
10466
10467 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10468
10469   fi
10470
10471
10472 # We will need to find libiberty.h and ansidecl.h
10473 saved_CFLAGS="$CFLAGS"
10474 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10475 saved_CXXFLAGS="$CXXFLAGS"
10476 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10477 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10478         strsignal strstr stpcpy strverscmp \
10479         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10480         free basename getopt clock getpagesize clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
10481 do
10482   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10484 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10485 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h.  */
10490 #undef $ac_tr_decl
10491 #define $ac_tr_decl 1
10492
10493 #include "ansidecl.h"
10494 #include "system.h"
10495
10496 int
10497 main ()
10498 {
10499 #ifndef $ac_func
10500 char *(*pfn) = (char *(*)) $ac_func ;
10501 #endif
10502   ;
10503   return 0;
10504 }
10505 _ACEOF
10506 if ac_fn_c_try_compile "$LINENO"; then :
10507   eval "gcc_cv_have_decl_$ac_func=yes"
10508 else
10509   eval "gcc_cv_have_decl_$ac_func=no"
10510 fi
10511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10512 fi
10513
10514 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10516 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10517 #define $ac_tr_decl 1
10518 _ACEOF
10519
10520 else
10521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10523 #define $ac_tr_decl 0
10524 _ACEOF
10525
10526 fi
10527
10528 done
10529
10530
10531 for ac_func in getrlimit setrlimit getrusage
10532 do
10533   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10535 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10536 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10537   $as_echo_n "(cached) " >&6
10538 else
10539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h.  */
10541 #undef $ac_tr_decl
10542 #define $ac_tr_decl 1
10543
10544 #include "ansidecl.h"
10545 #include "system.h"
10546 #ifdef HAVE_SYS_RESOURCE_H
10547 #include <sys/resource.h>
10548 #endif
10549
10550
10551 int
10552 main ()
10553 {
10554 #ifndef $ac_func
10555 char *(*pfn) = (char *(*)) $ac_func ;
10556 #endif
10557   ;
10558   return 0;
10559 }
10560 _ACEOF
10561 if ac_fn_c_try_compile "$LINENO"; then :
10562   eval "gcc_cv_have_decl_$ac_func=yes"
10563 else
10564   eval "gcc_cv_have_decl_$ac_func=no"
10565 fi
10566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10567 fi
10568
10569 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10571 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10572 #define $ac_tr_decl 1
10573 _ACEOF
10574
10575 else
10576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10577 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10578 #define $ac_tr_decl 0
10579 _ACEOF
10580
10581 fi
10582
10583 done
10584
10585
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h.  */
10588
10589 #include "ansidecl.h"
10590 #include "system.h"
10591 #ifdef HAVE_SYS_RESOURCE_H
10592 #include <sys/resource.h>
10593 #endif
10594
10595 int
10596 main ()
10597 {
10598 rlim_t l = 0;
10599   ;
10600   return 0;
10601 }
10602 _ACEOF
10603 if ac_fn_c_try_compile "$LINENO"; then :
10604
10605 else
10606
10607 $as_echo "#define rlim_t long" >>confdefs.h
10608
10609 fi
10610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611
10612 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10613 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10614 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10615 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10616 for ac_func in ldgetname
10617 do
10618   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10620 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10621 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10622   $as_echo_n "(cached) " >&6
10623 else
10624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h.  */
10626 #undef $ac_tr_decl
10627 #define $ac_tr_decl 1
10628
10629 #include "ansidecl.h"
10630 #include "system.h"
10631 #ifdef HAVE_LDFCN_H
10632 #undef FREAD
10633 #undef FWRITE
10634 #include <ldfcn.h>
10635 #endif
10636
10637
10638 int
10639 main ()
10640 {
10641 #ifndef $ac_func
10642 char *(*pfn) = (char *(*)) $ac_func ;
10643 #endif
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 if ac_fn_c_try_compile "$LINENO"; then :
10649   eval "gcc_cv_have_decl_$ac_func=yes"
10650 else
10651   eval "gcc_cv_have_decl_$ac_func=no"
10652 fi
10653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654 fi
10655
10656 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10658 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10659 #define $ac_tr_decl 1
10660 _ACEOF
10661
10662 else
10663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10665 #define $ac_tr_decl 0
10666 _ACEOF
10667
10668 fi
10669
10670 done
10671
10672
10673 for ac_func in times
10674 do
10675   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10677 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10678 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10679   $as_echo_n "(cached) " >&6
10680 else
10681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h.  */
10683 #undef $ac_tr_decl
10684 #define $ac_tr_decl 1
10685
10686 #include "ansidecl.h"
10687 #include "system.h"
10688 #ifdef HAVE_SYS_TIMES_H
10689 #include <sys/times.h>
10690 #endif
10691
10692
10693 int
10694 main ()
10695 {
10696 #ifndef $ac_func
10697 char *(*pfn) = (char *(*)) $ac_func ;
10698 #endif
10699   ;
10700   return 0;
10701 }
10702 _ACEOF
10703 if ac_fn_c_try_compile "$LINENO"; then :
10704   eval "gcc_cv_have_decl_$ac_func=yes"
10705 else
10706   eval "gcc_cv_have_decl_$ac_func=no"
10707 fi
10708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10709 fi
10710
10711 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10713 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10714 #define $ac_tr_decl 1
10715 _ACEOF
10716
10717 else
10718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10720 #define $ac_tr_decl 0
10721 _ACEOF
10722
10723 fi
10724
10725 done
10726
10727
10728 for ac_func in sigaltstack
10729 do
10730   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10732 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10733 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10734   $as_echo_n "(cached) " >&6
10735 else
10736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h.  */
10738 #undef $ac_tr_decl
10739 #define $ac_tr_decl 1
10740
10741 #include "ansidecl.h"
10742 #include "system.h"
10743 #include <signal.h>
10744
10745
10746 int
10747 main ()
10748 {
10749 #ifndef $ac_func
10750 char *(*pfn) = (char *(*)) $ac_func ;
10751 #endif
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 if ac_fn_c_try_compile "$LINENO"; then :
10757   eval "gcc_cv_have_decl_$ac_func=yes"
10758 else
10759   eval "gcc_cv_have_decl_$ac_func=no"
10760 fi
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 fi
10763
10764 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10766 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10767 #define $ac_tr_decl 1
10768 _ACEOF
10769
10770 else
10771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10773 #define $ac_tr_decl 0
10774 _ACEOF
10775
10776 fi
10777
10778 done
10779
10780
10781 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10782 # prototype.
10783 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10784   ac_ext=cpp
10785 ac_cpp='$CXXCPP $CPPFLAGS'
10786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10789
10790    for ac_func in madvise
10791 do
10792   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10794 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10795 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10796   $as_echo_n "(cached) " >&6
10797 else
10798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h.  */
10800 #undef $ac_tr_decl
10801 #define $ac_tr_decl 1
10802
10803      #include "ansidecl.h"
10804      #include "system.h"
10805
10806
10807 int
10808 main ()
10809 {
10810 #ifndef $ac_func
10811 char *(*pfn) = (char *(*)) $ac_func ;
10812 #endif
10813   ;
10814   return 0;
10815 }
10816 _ACEOF
10817 if ac_fn_cxx_try_compile "$LINENO"; then :
10818   eval "gcc_cv_have_decl_$ac_func=yes"
10819 else
10820   eval "gcc_cv_have_decl_$ac_func=no"
10821 fi
10822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10823 fi
10824
10825 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10827 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10828 #define $ac_tr_decl 1
10829 _ACEOF
10830
10831 else
10832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10834 #define $ac_tr_decl 0
10835 _ACEOF
10836
10837 fi
10838
10839 done
10840
10841    ac_ext=c
10842 ac_cpp='$CPP $CPPFLAGS'
10843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10846
10847 else
10848   for ac_func in madvise
10849 do
10850   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10852 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10853 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10854   $as_echo_n "(cached) " >&6
10855 else
10856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h.  */
10858 #undef $ac_tr_decl
10859 #define $ac_tr_decl 1
10860
10861      #include "ansidecl.h"
10862      #include "system.h"
10863
10864
10865 int
10866 main ()
10867 {
10868 #ifndef $ac_func
10869 char *(*pfn) = (char *(*)) $ac_func ;
10870 #endif
10871   ;
10872   return 0;
10873 }
10874 _ACEOF
10875 if ac_fn_c_try_compile "$LINENO"; then :
10876   eval "gcc_cv_have_decl_$ac_func=yes"
10877 else
10878   eval "gcc_cv_have_decl_$ac_func=no"
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881 fi
10882
10883 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10885 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10886 #define $ac_tr_decl 1
10887 _ACEOF
10888
10889 else
10890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10892 #define $ac_tr_decl 0
10893 _ACEOF
10894
10895 fi
10896
10897 done
10898
10899
10900 fi
10901
10902 # More time-related stuff.
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10904 $as_echo_n "checking for struct tms... " >&6; }
10905 if test "${ac_cv_struct_tms+set}" = set; then :
10906   $as_echo_n "(cached) " >&6
10907 else
10908
10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h.  */
10911
10912 #include "ansidecl.h"
10913 #include "system.h"
10914 #ifdef HAVE_SYS_TIMES_H
10915 #include <sys/times.h>
10916 #endif
10917
10918 int
10919 main ()
10920 {
10921 struct tms tms;
10922   ;
10923   return 0;
10924 }
10925 _ACEOF
10926 if ac_fn_c_try_compile "$LINENO"; then :
10927   ac_cv_struct_tms=yes
10928 else
10929   ac_cv_struct_tms=no
10930 fi
10931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10932 fi
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10934 $as_echo "$ac_cv_struct_tms" >&6; }
10935 if test $ac_cv_struct_tms = yes; then
10936
10937 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10938
10939 fi
10940
10941 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10942 # revisit after autoconf 2.50.
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10944 $as_echo_n "checking for clock_t... " >&6; }
10945 if test "${gcc_cv_type_clock_t+set}" = set; then :
10946   $as_echo_n "(cached) " >&6
10947 else
10948
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h.  */
10951
10952 #include "ansidecl.h"
10953 #include "system.h"
10954
10955 int
10956 main ()
10957 {
10958 clock_t x;
10959   ;
10960   return 0;
10961 }
10962 _ACEOF
10963 if ac_fn_c_try_compile "$LINENO"; then :
10964   gcc_cv_type_clock_t=yes
10965 else
10966   gcc_cv_type_clock_t=no
10967 fi
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969 fi
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10971 $as_echo "$gcc_cv_type_clock_t" >&6; }
10972 if test $gcc_cv_type_clock_t = yes; then
10973
10974 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10975
10976 fi
10977
10978 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10979 CFLAGS="$saved_CFLAGS"
10980 CXXFLAGS="$saved_CXXFLAGS"
10981
10982 # Check whether --enable-initfini-array was given.
10983 if test "${enable_initfini_array+set}" = set; then :
10984   enableval=$enable_initfini_array;
10985 else
10986
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10988 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10989 if test "${gcc_cv_initfini_array+set}" = set; then :
10990   $as_echo_n "(cached) " >&6
10991 else
10992     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10993     if test "$cross_compiling" = yes; then :
10994   gcc_cv_initfini_array=no
10995 else
10996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h.  */
10998
10999 #ifndef __ELF__
11000 #error Not an ELF OS
11001 #endif
11002 #ifdef __ia64__
11003 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
11004    if it can be used.  */
11005 static int x = -1;
11006 int main (void) { return x; }
11007 int foo (void) { x = 0; }
11008 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11009 #else
11010 extern void abort ();
11011 static int count;
11012
11013 static void
11014 init1005 ()
11015 {
11016   if (count != 0)
11017     abort ();
11018   count = 1005;
11019 }
11020 void (*const init_array1005) ()
11021   __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
11022   = { init1005 };
11023 static void
11024 fini1005 ()
11025 {
11026   if (count != 1005)
11027     abort ();
11028 }
11029 void (*const fini_array1005) ()
11030   __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
11031   = { fini1005 };
11032
11033 static void
11034 ctor1007 ()
11035 {
11036   if (count != 1005)
11037     abort ();
11038   count = 1007;
11039 }
11040 void (*const ctors1007) ()
11041   __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
11042   = { ctor1007 };
11043 static void
11044 dtor1007 ()
11045 {
11046   if (count != 1007)
11047     abort ();
11048   count = 1005;
11049 }
11050 void (*const dtors1007) ()
11051   __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
11052   = { dtor1007 };
11053
11054 static void
11055 init65530 ()
11056 {
11057   if (count != 1007)
11058     abort ();
11059   count = 65530;
11060 }
11061 void (*const init_array65530) ()
11062   __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11063   = { init65530 };
11064 static void
11065 fini65530 ()
11066 {
11067   if (count != 65530)
11068     abort ();
11069   count = 1007;
11070 }
11071 void (*const fini_array65530) ()
11072   __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11073   = { fini65530 };
11074
11075 static void
11076 ctor65535 ()
11077 {
11078   if (count != 65530)
11079     abort ();
11080   count = 65535;
11081 }
11082 void (*const ctors65535) ()
11083   __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11084   = { ctor65535 };
11085 static void
11086 dtor65535 ()
11087 {
11088   if (count != 65535)
11089     abort ();
11090   count = 65530;
11091 }
11092 void (*const dtors65535) ()
11093   __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11094   = { dtor65535 };
11095
11096 int
11097 main ()
11098 {
11099   if (count != 65535)
11100     abort ();
11101   return 0;
11102 }
11103 #endif
11104
11105 _ACEOF
11106 if ac_fn_c_try_run "$LINENO"; then :
11107   gcc_cv_initfini_array=yes
11108 else
11109   gcc_cv_initfini_array=no
11110 fi
11111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11112   conftest.$ac_objext conftest.beam conftest.$ac_ext
11113 fi
11114
11115    else
11116      { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11117 $as_echo_n "checking cross compile... guessing... " >&6; }
11118      gcc_cv_initfini_array=no
11119    fi
11120 fi
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11122 $as_echo "$gcc_cv_initfini_array" >&6; }
11123   enable_initfini_array=$gcc_cv_initfini_array
11124
11125 fi
11126
11127 if test $enable_initfini_array = yes; then
11128
11129 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11130
11131 fi
11132
11133 # mkdir takes a single argument on some systems.
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11135 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11136 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11137   $as_echo_n "(cached) " >&6
11138 else
11139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h.  */
11141
11142 #include <sys/types.h>
11143 #ifdef HAVE_SYS_STAT_H
11144 # include <sys/stat.h>
11145 #endif
11146 #ifdef HAVE_UNISTD_H
11147 # include <unistd.h>
11148 #endif
11149 #ifdef HAVE_DIRECT_H
11150 # include <direct.h>
11151 #endif
11152 int
11153 main ()
11154 {
11155 mkdir ("foo", 0);
11156   ;
11157   return 0;
11158 }
11159 _ACEOF
11160 if ac_fn_c_try_compile "$LINENO"; then :
11161   gcc_cv_mkdir_takes_one_arg=no
11162 else
11163   gcc_cv_mkdir_takes_one_arg=yes
11164 fi
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166 fi
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11168 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11169 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11170
11171 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11172
11173 fi
11174
11175
11176 # File extensions
11177 manext='.1'
11178 objext='.o'
11179
11180
11181
11182 # With Setjmp/Longjmp based exception handling.
11183 # Check whether --enable-sjlj-exceptions was given.
11184 if test "${enable_sjlj_exceptions+set}" = set; then :
11185   enableval=$enable_sjlj_exceptions; case $target in
11186   *-*-hpux10*)
11187     if test $enableval != yes; then
11188       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11189 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11190       enableval=yes
11191     fi
11192     ;;
11193 esac
11194 force_sjlj_exceptions=yes
11195 else
11196   case $target in
11197   *-*-hpux10*)
11198     force_sjlj_exceptions=yes
11199     enableval=yes
11200     ;;
11201   *)
11202     force_sjlj_exceptions=no
11203     ;;
11204 esac
11205 fi
11206
11207 if test $force_sjlj_exceptions = yes; then
11208   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11209
11210 cat >>confdefs.h <<_ACEOF
11211 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11212 _ACEOF
11213
11214 fi
11215
11216 # --------------------------------------------------------
11217 # Build, host, and target specific configuration fragments
11218 # --------------------------------------------------------
11219
11220 # Collect build-machine-specific information.
11221 . ${srcdir}/config.build
11222
11223 # Collect host-machine-specific information.
11224 . ${srcdir}/config.host
11225
11226 target_gtfiles=
11227
11228 # Collect target-machine-specific information.
11229 . ${srcdir}/config.gcc
11230
11231 extra_objs="${host_extra_objs} ${extra_objs}"
11232 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11233
11234 # Default the target-machine variables that were not explicitly set.
11235 if test x"$tm_file" = x
11236 then tm_file=$cpu_type/$cpu_type.h; fi
11237
11238 if test x"$extra_headers" = x
11239 then extra_headers=; fi
11240
11241 if test x$md_file = x
11242 then md_file=$cpu_type/$cpu_type.md; fi
11243
11244 if test x$out_file = x
11245 then out_file=$cpu_type/$cpu_type.c; fi
11246
11247 if test x"$tmake_file" = x
11248 then tmake_file=$cpu_type/t-$cpu_type
11249 fi
11250
11251 if test x"$dwarf2" = xyes
11252 then tm_file="$tm_file tm-dwarf2.h"
11253 fi
11254
11255 # Say what files are being used for the output code and MD file.
11256 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11257 echo "Using \`$srcdir/config/$md_file' as machine description file."
11258
11259 # If any of the xm_file variables contain nonexistent files, warn
11260 # about them and drop them.
11261
11262 bx=
11263 for x in $build_xm_file; do
11264   if    test -f $srcdir/config/$x
11265   then      bx="$bx $x"
11266   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11267 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11268   fi
11269 done
11270 build_xm_file="$bx"
11271
11272 hx=
11273 for x in $host_xm_file; do
11274   if    test -f $srcdir/config/$x
11275   then      hx="$hx $x"
11276   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11277 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11278   fi
11279 done
11280 host_xm_file="$hx"
11281
11282 tx=
11283 for x in $xm_file; do
11284   if    test -f $srcdir/config/$x
11285   then      tx="$tx $x"
11286   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11287 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11288   fi
11289 done
11290 xm_file="$tx"
11291
11292 count=a
11293 for f in $tm_file; do
11294         count=${count}x
11295 done
11296 if test $count = ax; then
11297         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11298 else
11299         echo "Using the following target machine macro files:"
11300         for f in $tm_file; do
11301                 echo "  $srcdir/config/$f"
11302         done
11303 fi
11304
11305 if test x$need_64bit_hwint = xyes; then
11306
11307 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11308
11309 fi
11310
11311 if test x$use_long_long_for_widest_fast_int = xyes; then
11312
11313 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11314
11315 fi
11316
11317 count=a
11318 for f in $host_xm_file; do
11319         count=${count}x
11320 done
11321 if test $count = a; then
11322         :
11323 elif test $count = ax; then
11324         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11325 else
11326         echo "Using the following host machine macro files:"
11327         for f in $host_xm_file; do
11328                 echo "  $srcdir/config/$f"
11329         done
11330 fi
11331 echo "Using ${out_host_hook_obj} for host machine hooks."
11332
11333 if test "$host_xm_file" != "$build_xm_file"; then
11334         count=a
11335         for f in $build_xm_file; do
11336                 count=${count}x
11337         done
11338         if test $count = a; then
11339                 :
11340         elif test $count = ax; then
11341                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11342         else
11343                 echo "Using the following build machine macro files:"
11344                 for f in $build_xm_file; do
11345                         echo "  $srcdir/config/$f"
11346                 done
11347         fi
11348 fi
11349
11350 if test -n "$configured_native_system_header_dir"; then
11351   native_system_header_dir=$configured_native_system_header_dir
11352 fi
11353 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11354
11355
11356 case ${host} in
11357   powerpc*-*-darwin*)
11358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11359 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11360 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11361   $as_echo_n "(cached) " >&6
11362 else
11363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h.  */
11365
11366 #include <sys/cdefs.h>
11367 #include <sys/signal.h>
11368 #include <ucontext.h>
11369 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11370
11371 _ACEOF
11372 if ac_fn_c_try_compile "$LINENO"; then :
11373   gcc_cv_mcontext_underscores=no
11374 else
11375   gcc_cv_mcontext_underscores=yes
11376 fi
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 fi
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11380 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11381       if test $gcc_cv_mcontext_underscores = yes; then
11382
11383 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11384
11385       fi
11386     ;;
11387 esac
11388
11389 # ---------
11390 # Threading
11391 # ---------
11392
11393 # Check if a valid thread package
11394 case ${enable_threads} in
11395   "" | no)
11396     # No threads
11397     target_thread_file='single'
11398     ;;
11399   yes)
11400     # default
11401     target_thread_file='single'
11402     ;;
11403   aix | dce | lynx | mipssde | posix | rtems | \
11404   single | tpf | vxworks | win32)
11405     target_thread_file=${enable_threads}
11406     ;;
11407   *)
11408     echo "${enable_threads} is an unknown thread package" 1>&2
11409     exit 1
11410     ;;
11411 esac
11412
11413 if test x${thread_file} = x; then
11414   # No thread file set by target-specific clauses in config.gcc,
11415   # so use file chosen by default logic above
11416   thread_file=${target_thread_file}
11417 fi
11418
11419 # --------
11420 # UNSORTED
11421 # --------
11422
11423 use_cxa_atexit=no
11424 if test x$enable___cxa_atexit = xyes || \
11425    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11426   if test x$host = x$target; then
11427     case $host in
11428       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11429       # keyed to flag_use_cxa_atexit
11430       *-*-mingw32*)
11431         use_cxa_atexit=yes
11432         ;;
11433       *)
11434         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11435 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11436   use_cxa_atexit=yes
11437 else
11438   echo "__cxa_atexit can't be enabled on this target"
11439 fi
11440
11441         ;;
11442     esac
11443   else
11444     # We can't check for __cxa_atexit when building a cross, so assume
11445     # it is available
11446     use_cxa_atexit=yes
11447   fi
11448   if test x$use_cxa_atexit = xyes; then
11449
11450 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11451
11452   fi
11453 fi
11454
11455 # Look for a file containing extra machine modes.
11456 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11457   extra_modes_file='$(srcdir)'/config/${extra_modes}
11458
11459
11460 cat >>confdefs.h <<_ACEOF
11461 #define EXTRA_MODES_FILE "config/$extra_modes"
11462 _ACEOF
11463
11464 fi
11465
11466 # Convert extra_options into a form suitable for Makefile use.
11467 extra_opt_files=
11468 all_opt_files=
11469 for f in $extra_options; do
11470   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11471   all_opt_files="$all_opt_files $srcdir/config/$f"
11472 done
11473
11474
11475 # auto-host.h is the file containing items generated by autoconf and is
11476 # the first file included by config.h.
11477 # If host=build, it is correct to have bconfig include auto-host.h
11478 # as well.  If host!=build, we are in error and need to do more
11479 # work to find out the build config parameters.
11480 if test x$host = x$build
11481 then
11482         build_auto=auto-host.h
11483 else
11484         # We create a subdir, then run autoconf in the subdir.
11485         # To prevent recursion we set host and build for the new
11486         # invocation of configure to the build for this invocation
11487         # of configure.
11488         tempdir=build.$$
11489         rm -rf $tempdir
11490         mkdir $tempdir
11491         cd $tempdir
11492         case ${srcdir} in
11493         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11494         *) realsrcdir=../${srcdir};;
11495         esac
11496         saved_CFLAGS="${CFLAGS}"
11497         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11498         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11499         ${realsrcdir}/configure \
11500                 --enable-languages=${enable_languages-all} \
11501                 --target=$target_alias --host=$build_alias --build=$build_alias
11502         CFLAGS="${saved_CFLAGS}"
11503
11504         # We just finished tests for the build machine, so rename
11505         # the file auto-build.h in the gcc directory.
11506         mv auto-host.h ../auto-build.h
11507         cd ..
11508         rm -rf $tempdir
11509         build_auto=auto-build.h
11510 fi
11511
11512
11513 tm_file="${tm_file} defaults.h"
11514 tm_p_file="${tm_p_file} tm-preds.h"
11515 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11516 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11517 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11518 # put this back in temporarily.
11519 xm_file="auto-host.h ansidecl.h ${xm_file}"
11520
11521 # --------
11522 # UNSORTED
11523 # --------
11524
11525 # Compile in configure arguments.
11526 if test -f configargs.h ; then
11527         # Being re-configured.
11528         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11529         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11530 else
11531         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11532 fi
11533
11534 # Double all backslashes and backslash all quotes to turn
11535 # gcc_config_arguments into a C string.
11536 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11537 $gcc_config_arguments
11538 EOF
11539 gcc_config_arguments_str=`cat conftest.out`
11540 rm -f conftest.out
11541
11542 cat > configargs.h <<EOF
11543 /* Generated automatically. */
11544 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11545 static const char thread_model[] = "$thread_file";
11546
11547 static const struct {
11548   const char *name, *value;
11549 } configure_default_options[] = $configure_default_options;
11550 EOF
11551
11552 gcc_BASEVER=`cat $srcdir/BASE-VER`
11553 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11554 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11555 if test -f $srcdir/REVISION ; then
11556         gcc_REVISION=`cat $srcdir/REVISION`
11557 else
11558         gcc_REVISION=""
11559 fi
11560 cat > plugin-version.h <<EOF
11561 #include "configargs.h"
11562
11563 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11564 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11565 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11566 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11567
11568 static char basever[] = "$gcc_BASEVER";
11569 static char datestamp[] = "$gcc_DATESTAMP";
11570 static char devphase[] = "$gcc_DEVPHASE";
11571 static char revision[] = "$gcc_REVISION";
11572
11573 /* FIXME plugins: We should make the version information more precise.
11574    One way to do is to add a checksum. */
11575
11576 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11577                                                 devphase, revision,
11578                                                 configuration_arguments};
11579 EOF
11580
11581 # Internationalization
11582 # If we haven't got the data from the intl directory,
11583 # assume NLS is disabled.
11584 USE_NLS=no
11585 LIBINTL=
11586 LIBINTL_DEP=
11587 INCINTL=
11588 XGETTEXT=
11589 GMSGFMT=
11590 POSUB=
11591
11592 if test -f  ../intl/config.intl; then
11593   .  ../intl/config.intl
11594 fi
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11596 $as_echo_n "checking whether NLS is requested... " >&6; }
11597 if test x"$USE_NLS" != xyes; then
11598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11600 else
11601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11602 $as_echo "yes" >&6; }
11603
11604 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11605
11606
11607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11608 $as_echo_n "checking for catalogs to be installed... " >&6; }
11609   # Look for .po and .gmo files in the source directory.
11610   CATALOGS=
11611   XLINGUAS=
11612   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11613     # If there aren't any .gmo files the shell will give us the
11614     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11615     # weeded out.
11616     case "$cat" in *\**)
11617       continue;;
11618     esac
11619     # The quadruple backslash is collapsed to a double backslash
11620     # by the backticks, then collapsed again by the double quotes,
11621     # leaving us with one backslash in the sed expression (right
11622     # before the dot that mustn't act as a wildcard).
11623     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11624     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11625     # The user is allowed to set LINGUAS to a list of languages to
11626     # install catalogs for.  If it's empty that means "all of them."
11627     if test "x$LINGUAS" = x; then
11628       CATALOGS="$CATALOGS $cat"
11629       XLINGUAS="$XLINGUAS $lang"
11630     else
11631       case "$LINGUAS" in *$lang*)
11632         CATALOGS="$CATALOGS $cat"
11633         XLINGUAS="$XLINGUAS $lang"
11634         ;;
11635       esac
11636     fi
11637   done
11638   LINGUAS="$XLINGUAS"
11639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11640 $as_echo "$LINGUAS" >&6; }
11641
11642
11643     DATADIRNAME=share
11644
11645   INSTOBJEXT=.mo
11646
11647   GENCAT=gencat
11648
11649   CATOBJEXT=.gmo
11650
11651 fi
11652
11653 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11654 # -liconv on the link line twice.
11655 case "$LIBINTL" in *$LIBICONV*)
11656         LIBICONV= ;;
11657 esac
11658
11659 # Check whether --enable-secureplt was given.
11660 if test "${enable_secureplt+set}" = set; then :
11661   enableval=$enable_secureplt;
11662 fi
11663
11664
11665 # Check whether --enable-leading-mingw64-underscores was given.
11666 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11667   enableval=$enable_leading_mingw64_underscores;
11668 fi
11669
11670 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11671
11672 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11673
11674 fi
11675
11676 # Check whether --enable-cld was given.
11677 if test "${enable_cld+set}" = set; then :
11678   enableval=$enable_cld;
11679 else
11680   enable_cld=no
11681 fi
11682
11683
11684 # Check whether --enable-frame-pointer was given.
11685 if test "${enable_frame_pointer+set}" = set; then :
11686   enableval=$enable_frame_pointer;
11687 else
11688
11689 case $target_os in
11690 linux* | darwin[8912]*)
11691   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11692   # DWARF2.
11693   enable_frame_pointer=no
11694   ;;
11695 *)
11696   enable_frame_pointer=yes
11697   ;;
11698 esac
11699
11700 fi
11701
11702
11703 # Windows32 Registry support for specifying GCC installation paths.
11704 # Check whether --enable-win32-registry was given.
11705 if test "${enable_win32_registry+set}" = set; then :
11706   enableval=$enable_win32_registry;
11707 fi
11708
11709
11710 case $host_os in
11711   win32 | pe | cygwin* | mingw32* | uwin*)
11712     if test "x$enable_win32_registry" != xno; then
11713       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11714 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11715 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11716   $as_echo_n "(cached) " >&6
11717 else
11718   ac_func_search_save_LIBS=$LIBS
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h.  */
11721
11722 /* Override any GCC internal prototype to avoid an error.
11723    Use char because int might match the return type of a GCC
11724    builtin and then its argument prototype would still apply.  */
11725 #ifdef __cplusplus
11726 extern "C"
11727 #endif
11728 char RegOpenKeyExA ();
11729 int
11730 main ()
11731 {
11732 return RegOpenKeyExA ();
11733   ;
11734   return 0;
11735 }
11736 _ACEOF
11737 for ac_lib in '' advapi32; do
11738   if test -z "$ac_lib"; then
11739     ac_res="none required"
11740   else
11741     ac_res=-l$ac_lib
11742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11743   fi
11744   if ac_fn_c_try_link "$LINENO"; then :
11745   ac_cv_search_RegOpenKeyExA=$ac_res
11746 fi
11747 rm -f core conftest.err conftest.$ac_objext \
11748     conftest$ac_exeext
11749   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11750   break
11751 fi
11752 done
11753 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11754
11755 else
11756   ac_cv_search_RegOpenKeyExA=no
11757 fi
11758 rm conftest.$ac_ext
11759 LIBS=$ac_func_search_save_LIBS
11760 fi
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11762 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11763 ac_res=$ac_cv_search_RegOpenKeyExA
11764 if test "$ac_res" != no; then :
11765   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11766
11767 else
11768   enable_win32_registry=no
11769 fi
11770
11771     fi
11772
11773     if test "x$enable_win32_registry" != xno; then
11774
11775 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11776
11777
11778       if test "x$enable_win32_registry" != xyes \
11779          && test "x$enable_win32_registry" != x; then
11780
11781 cat >>confdefs.h <<_ACEOF
11782 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11783 _ACEOF
11784
11785       fi
11786     fi
11787   ;;
11788 esac
11789
11790 # Get an absolute path to the GCC top-level source directory
11791 holddir=`${PWDCMD-pwd}`
11792 cd $srcdir
11793 topdir=`${PWDCMD-pwd}`
11794 cd $holddir
11795
11796 # Conditionalize the makefile for this host machine.
11797 xmake_file=
11798 for f in ${host_xmake_file}
11799 do
11800         if test -f ${srcdir}/config/$f
11801         then
11802                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11803         fi
11804 done
11805
11806 # Conditionalize the makefile for this target machine.
11807 tmake_file_=
11808 for f in ${tmake_file}
11809 do
11810         if test -f ${srcdir}/config/$f
11811         then
11812                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11813         fi
11814 done
11815 tmake_file="${tmake_file_}"
11816
11817 out_object_file=`basename $out_file .c`.o
11818 common_out_object_file=`basename $common_out_file .c`.o
11819
11820 tm_file_list="options.h"
11821 tm_include_list="options.h insn-constants.h"
11822 for f in $tm_file; do
11823   case $f in
11824     ./* )
11825        f=`echo $f | sed 's/^..//'`
11826        tm_file_list="${tm_file_list} $f"
11827        tm_include_list="${tm_include_list} $f"
11828        ;;
11829     defaults.h )
11830        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11831        tm_include_list="${tm_include_list} $f"
11832        ;;
11833     * )
11834        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11835        tm_include_list="${tm_include_list} config/$f"
11836        ;;
11837   esac
11838 done
11839
11840 tm_p_file_list=
11841 tm_p_include_list=
11842 for f in $tm_p_file; do
11843   case $f in
11844     tm-preds.h )
11845        tm_p_file_list="${tm_p_file_list} $f"
11846        tm_p_include_list="${tm_p_include_list} $f"
11847        ;;
11848     * )
11849        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11850        tm_p_include_list="${tm_p_include_list} config/$f"
11851   esac
11852 done
11853
11854 xm_file_list=
11855 xm_include_list=
11856 for f in $xm_file; do
11857   case $f in
11858     ansidecl.h )
11859        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11860        xm_include_list="${xm_include_list} $f"
11861        ;;
11862     auto-host.h )
11863        xm_file_list="${xm_file_list} $f"
11864        xm_include_list="${xm_include_list} $f"
11865        ;;
11866     * )
11867        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11868        xm_include_list="${xm_include_list} config/$f"
11869        ;;
11870   esac
11871 done
11872
11873 host_xm_file_list=
11874 host_xm_include_list=
11875 for f in $host_xm_file; do
11876   case $f in
11877     ansidecl.h )
11878        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11879        host_xm_include_list="${host_xm_include_list} $f"
11880        ;;
11881     auto-host.h )
11882        host_xm_file_list="${host_xm_file_list} $f"
11883        host_xm_include_list="${host_xm_include_list} $f"
11884        ;;
11885     * )
11886        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11887        host_xm_include_list="${host_xm_include_list} config/$f"
11888        ;;
11889   esac
11890 done
11891
11892 build_xm_file_list=
11893 for f in $build_xm_file; do
11894   case $f in
11895     ansidecl.h )
11896        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11897        build_xm_include_list="${build_xm_include_list} $f"
11898        ;;
11899     auto-build.h | auto-host.h )
11900        build_xm_file_list="${build_xm_file_list} $f"
11901        build_xm_include_list="${build_xm_include_list} $f"
11902        ;;
11903     * )
11904        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11905        build_xm_include_list="${build_xm_include_list} config/$f"
11906        ;;
11907   esac
11908 done
11909
11910 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11911 # cross-compiler which does not use the native headers and libraries.
11912 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11913 CROSS=
11914 ALL=all.internal
11915 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11916
11917 if test "x$with_build_sysroot" != x; then
11918   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11919 else
11920   # This value is used, even on a native system, because
11921   # CROSS_SYSTEM_HEADER_DIR is just
11922   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11923   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11924 fi
11925
11926 if test x$host != x$target
11927 then
11928         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11929         ALL=all.cross
11930         SYSTEM_HEADER_DIR=$build_system_header_dir
11931         case "$host","$target" in
11932         # Darwin crosses can use the host system's libraries and headers,
11933         # because of the fat library support.  Of course, it must be the
11934         # same version of Darwin on both sides.  Allow the user to
11935         # just say --target=foo-darwin without a version number to mean
11936         # "the version on this system".
11937             *-*-darwin*,*-*-darwin*)
11938                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11939                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11940                 if test $hostos = $targetos -o $targetos = darwin ; then
11941                     CROSS=
11942                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11943                     with_headers=yes
11944                 fi
11945                 ;;
11946
11947             i?86-*-*,x86_64-*-* \
11948             | powerpc*-*-*,powerpc64*-*-*)
11949                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11950         esac
11951
11952         case $target in
11953                 *-*-mingw*)
11954                         if test "x$with_headers" = x; then
11955                                 with_headers=yes
11956                         fi
11957                         ;;
11958                 *)
11959                         ;;
11960         esac
11961 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11962         SYSTEM_HEADER_DIR=$build_system_header_dir
11963 fi
11964
11965 # If this is a cross-compiler that does not
11966 # have its own set of headers then define
11967 # inhibit_libc
11968
11969 # If this is using newlib, without having the headers available now,
11970 # then define inhibit_libc in LIBGCC2_CFLAGS.
11971 # This prevents libgcc2 from containing any code which requires libc
11972 # support.
11973 : ${inhibit_libc=false}
11974 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11975        test x$with_newlib = xyes ; } &&
11976      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11977        inhibit_libc=true
11978 fi
11979
11980
11981 # When building gcc with a cross-compiler, we need to adjust things so
11982 # that the generator programs are still built with the native compiler.
11983 # Also, we cannot run fixincludes.
11984
11985 # These are the normal (build=host) settings:
11986 CC_FOR_BUILD='$(CC)'
11987 BUILD_CFLAGS='$(ALL_CFLAGS)'
11988 BUILD_LDFLAGS='$(LDFLAGS)'
11989 STMP_FIXINC=stmp-fixinc
11990
11991 # And these apply if build != host, or we are generating coverage data
11992 if test x$build != x$host || test "x$coverage_flags" != x
11993 then
11994     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11995     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11996 fi
11997
11998 # Expand extra_headers to include complete path.
11999 # This substitutes for lots of t-* files.
12000 extra_headers_list=
12001 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12002 for file in ${extra_headers} ; do
12003   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12004 done
12005
12006 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12007 if test x"$use_gcc_tgmath" = xyes
12008 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12009 fi
12010
12011 # Define collect2 in Makefile.
12012 case $host_can_use_collect2 in
12013   no) collect2= ;;
12014   *) collect2='collect2$(exeext)' ;;
12015 esac
12016
12017
12018 # Add a definition of USE_COLLECT2 if system wants one.
12019 case $use_collect2 in
12020   no) use_collect2= ;;
12021   "") ;;
12022   *)
12023     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12024     xm_defines="${xm_defines} USE_COLLECT2"
12025     case $host_can_use_collect2 in
12026       no)
12027         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12028         ;;
12029     esac
12030     ;;
12031 esac
12032
12033
12034 cat >>confdefs.h <<_ACEOF
12035 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12036 _ACEOF
12037
12038
12039 # ---------------------------
12040 # Assembler & linker features
12041 # ---------------------------
12042
12043 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12044 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12045 # However when ld-new is first executed from the build tree, libtool will
12046 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12047 # to the build tree.  While doing this we need to use the previous-stage
12048 # linker, or we have an infinite loop.  The presence of a shell script as
12049 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12050 # the gcc/collect-ld script.  So we need to know how libtool works, or
12051 # exec-tool will fail.
12052
12053
12054 case `pwd` in
12055   *\ * | *\     *)
12056     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12057 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12058 esac
12059
12060
12061
12062 macro_version='2.2.7a'
12063 macro_revision='1.3134'
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077 ltmain="$ac_aux_dir/ltmain.sh"
12078
12079 # Backslashify metacharacters that are still active within
12080 # double-quoted strings.
12081 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12082
12083 # Same as above, but do not quote variable references.
12084 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12085
12086 # Sed substitution to delay expansion of an escaped shell variable in a
12087 # double_quote_subst'ed string.
12088 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12089
12090 # Sed substitution to delay expansion of an escaped single quote.
12091 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12092
12093 # Sed substitution to avoid accidental globbing in evaled expressions
12094 no_glob_subst='s/\*/\\\*/g'
12095
12096 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12097 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12098 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12099
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12101 $as_echo_n "checking how to print strings... " >&6; }
12102 # Test print first, because it will be a builtin if present.
12103 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12104    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12105   ECHO='print -r --'
12106 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12107   ECHO='printf %s\n'
12108 else
12109   # Use this function as a fallback that always works.
12110   func_fallback_echo ()
12111   {
12112     eval 'cat <<_LTECHO_EOF
12113 $1
12114 _LTECHO_EOF'
12115   }
12116   ECHO='func_fallback_echo'
12117 fi
12118
12119 # func_echo_all arg...
12120 # Invoke $ECHO with all args, space-separated.
12121 func_echo_all ()
12122 {
12123     $ECHO ""
12124 }
12125
12126 case "$ECHO" in
12127   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12128 $as_echo "printf" >&6; } ;;
12129   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12130 $as_echo "print -r" >&6; } ;;
12131   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12132 $as_echo "cat" >&6; } ;;
12133 esac
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12149 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12150 if test "${ac_cv_path_SED+set}" = set; then :
12151   $as_echo_n "(cached) " >&6
12152 else
12153             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12154      for ac_i in 1 2 3 4 5 6 7; do
12155        ac_script="$ac_script$as_nl$ac_script"
12156      done
12157      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12158      { ac_script=; unset ac_script;}
12159      if test -z "$SED"; then
12160   ac_path_SED_found=false
12161   # Loop through the user's path and test for each of PROGNAME-LIST
12162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12164 do
12165   IFS=$as_save_IFS
12166   test -z "$as_dir" && as_dir=.
12167     for ac_prog in sed gsed; do
12168     for ac_exec_ext in '' $ac_executable_extensions; do
12169       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12170       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12171 # Check for GNU ac_path_SED and select it if it is found.
12172   # Check for GNU $ac_path_SED
12173 case `"$ac_path_SED" --version 2>&1` in
12174 *GNU*)
12175   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12176 *)
12177   ac_count=0
12178   $as_echo_n 0123456789 >"conftest.in"
12179   while :
12180   do
12181     cat "conftest.in" "conftest.in" >"conftest.tmp"
12182     mv "conftest.tmp" "conftest.in"
12183     cp "conftest.in" "conftest.nl"
12184     $as_echo '' >> "conftest.nl"
12185     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12186     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12187     as_fn_arith $ac_count + 1 && ac_count=$as_val
12188     if test $ac_count -gt ${ac_path_SED_max-0}; then
12189       # Best one so far, save it but keep looking for a better one
12190       ac_cv_path_SED="$ac_path_SED"
12191       ac_path_SED_max=$ac_count
12192     fi
12193     # 10*(2^10) chars as input seems more than enough
12194     test $ac_count -gt 10 && break
12195   done
12196   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12197 esac
12198
12199       $ac_path_SED_found && break 3
12200     done
12201   done
12202   done
12203 IFS=$as_save_IFS
12204   if test -z "$ac_cv_path_SED"; then
12205     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12206   fi
12207 else
12208   ac_cv_path_SED=$SED
12209 fi
12210
12211 fi
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12213 $as_echo "$ac_cv_path_SED" >&6; }
12214  SED="$ac_cv_path_SED"
12215   rm -f conftest.sed
12216
12217 test -z "$SED" && SED=sed
12218 Xsed="$SED -e 1s/^X//"
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12231 $as_echo_n "checking for fgrep... " >&6; }
12232 if test "${ac_cv_path_FGREP+set}" = set; then :
12233   $as_echo_n "(cached) " >&6
12234 else
12235   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12236    then ac_cv_path_FGREP="$GREP -F"
12237    else
12238      if test -z "$FGREP"; then
12239   ac_path_FGREP_found=false
12240   # Loop through the user's path and test for each of PROGNAME-LIST
12241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12243 do
12244   IFS=$as_save_IFS
12245   test -z "$as_dir" && as_dir=.
12246     for ac_prog in fgrep; do
12247     for ac_exec_ext in '' $ac_executable_extensions; do
12248       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12249       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12250 # Check for GNU ac_path_FGREP and select it if it is found.
12251   # Check for GNU $ac_path_FGREP
12252 case `"$ac_path_FGREP" --version 2>&1` in
12253 *GNU*)
12254   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12255 *)
12256   ac_count=0
12257   $as_echo_n 0123456789 >"conftest.in"
12258   while :
12259   do
12260     cat "conftest.in" "conftest.in" >"conftest.tmp"
12261     mv "conftest.tmp" "conftest.in"
12262     cp "conftest.in" "conftest.nl"
12263     $as_echo 'FGREP' >> "conftest.nl"
12264     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12265     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12266     as_fn_arith $ac_count + 1 && ac_count=$as_val
12267     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12268       # Best one so far, save it but keep looking for a better one
12269       ac_cv_path_FGREP="$ac_path_FGREP"
12270       ac_path_FGREP_max=$ac_count
12271     fi
12272     # 10*(2^10) chars as input seems more than enough
12273     test $ac_count -gt 10 && break
12274   done
12275   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12276 esac
12277
12278       $ac_path_FGREP_found && break 3
12279     done
12280   done
12281   done
12282 IFS=$as_save_IFS
12283   if test -z "$ac_cv_path_FGREP"; then
12284     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12285   fi
12286 else
12287   ac_cv_path_FGREP=$FGREP
12288 fi
12289
12290    fi
12291 fi
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12293 $as_echo "$ac_cv_path_FGREP" >&6; }
12294  FGREP="$ac_cv_path_FGREP"
12295
12296
12297 test -z "$GREP" && GREP=grep
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317 # Check whether --with-gnu-ld was given.
12318 if test "${with_gnu_ld+set}" = set; then :
12319   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12320 else
12321   with_gnu_ld=no
12322 fi
12323
12324 ac_prog=ld
12325 if test "$GCC" = yes; then
12326   # Check if gcc -print-prog-name=ld gives a path.
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12328 $as_echo_n "checking for ld used by $CC... " >&6; }
12329   case $host in
12330   *-*-mingw*)
12331     # gcc leaves a trailing carriage return which upsets mingw
12332     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12333   *)
12334     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12335   esac
12336   case $ac_prog in
12337     # Accept absolute paths.
12338     [\\/]* | ?:[\\/]*)
12339       re_direlt='/[^/][^/]*/\.\./'
12340       # Canonicalize the pathname of ld
12341       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12342       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12343         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12344       done
12345       test -z "$LD" && LD="$ac_prog"
12346       ;;
12347   "")
12348     # If it fails, then pretend we aren't using GCC.
12349     ac_prog=ld
12350     ;;
12351   *)
12352     # If it is relative, then search for the first ld in PATH.
12353     with_gnu_ld=unknown
12354     ;;
12355   esac
12356 elif test "$with_gnu_ld" = yes; then
12357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12358 $as_echo_n "checking for GNU ld... " >&6; }
12359 else
12360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12361 $as_echo_n "checking for non-GNU ld... " >&6; }
12362 fi
12363 if test "${lt_cv_path_LD+set}" = set; then :
12364   $as_echo_n "(cached) " >&6
12365 else
12366   if test -z "$LD"; then
12367   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12368   for ac_dir in $PATH; do
12369     IFS="$lt_save_ifs"
12370     test -z "$ac_dir" && ac_dir=.
12371     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12372       lt_cv_path_LD="$ac_dir/$ac_prog"
12373       # Check to see if the program is GNU ld.  I'd rather use --version,
12374       # but apparently some variants of GNU ld only accept -v.
12375       # Break only if it was the GNU/non-GNU ld that we prefer.
12376       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12377       *GNU* | *'with BFD'*)
12378         test "$with_gnu_ld" != no && break
12379         ;;
12380       *)
12381         test "$with_gnu_ld" != yes && break
12382         ;;
12383       esac
12384     fi
12385   done
12386   IFS="$lt_save_ifs"
12387 else
12388   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12389 fi
12390 fi
12391
12392 LD="$lt_cv_path_LD"
12393 if test -n "$LD"; then
12394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12395 $as_echo "$LD" >&6; }
12396 else
12397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12399 fi
12400 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12402 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12403 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12407 case `$LD -v 2>&1 </dev/null` in
12408 *GNU* | *'with BFD'*)
12409   lt_cv_prog_gnu_ld=yes
12410   ;;
12411 *)
12412   lt_cv_prog_gnu_ld=no
12413   ;;
12414 esac
12415 fi
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12417 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12418 with_gnu_ld=$lt_cv_prog_gnu_ld
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12429 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12430 if test "${lt_cv_path_NM+set}" = set; then :
12431   $as_echo_n "(cached) " >&6
12432 else
12433   if test -n "$NM"; then
12434   # Let the user override the test.
12435   lt_cv_path_NM="$NM"
12436 else
12437   lt_nm_to_check="${ac_tool_prefix}nm"
12438   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12439     lt_nm_to_check="$lt_nm_to_check nm"
12440   fi
12441   for lt_tmp_nm in $lt_nm_to_check; do
12442     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12443     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12444       IFS="$lt_save_ifs"
12445       test -z "$ac_dir" && ac_dir=.
12446       tmp_nm="$ac_dir/$lt_tmp_nm"
12447       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12448         # Check to see if the nm accepts a BSD-compat flag.
12449         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12450         #   nm: unknown option "B" ignored
12451         # Tru64's nm complains that /dev/null is an invalid object file
12452         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12453         */dev/null* | *'Invalid file or object type'*)
12454           lt_cv_path_NM="$tmp_nm -B"
12455           break
12456           ;;
12457         *)
12458           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12459           */dev/null*)
12460             lt_cv_path_NM="$tmp_nm -p"
12461             break
12462             ;;
12463           *)
12464             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12465             continue # so that we can try to find one that supports BSD flags
12466             ;;
12467           esac
12468           ;;
12469         esac
12470       fi
12471     done
12472     IFS="$lt_save_ifs"
12473   done
12474   : ${lt_cv_path_NM=no}
12475 fi
12476 fi
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12478 $as_echo "$lt_cv_path_NM" >&6; }
12479 if test "$lt_cv_path_NM" != "no"; then
12480   NM="$lt_cv_path_NM"
12481 else
12482   # Didn't find any BSD compatible name lister, look for dumpbin.
12483   if test -n "$DUMPBIN"; then :
12484     # Let the user override the test.
12485   else
12486     if test -n "$ac_tool_prefix"; then
12487   for ac_prog in dumpbin "link -dump"
12488   do
12489     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492 $as_echo_n "checking for $ac_word... " >&6; }
12493 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12494   $as_echo_n "(cached) " >&6
12495 else
12496   if test -n "$DUMPBIN"; then
12497   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12498 else
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_exec_ext in '' $ac_executable_extensions; do
12505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12506     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12508     break 2
12509   fi
12510 done
12511   done
12512 IFS=$as_save_IFS
12513
12514 fi
12515 fi
12516 DUMPBIN=$ac_cv_prog_DUMPBIN
12517 if test -n "$DUMPBIN"; then
12518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12519 $as_echo "$DUMPBIN" >&6; }
12520 else
12521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 $as_echo "no" >&6; }
12523 fi
12524
12525
12526     test -n "$DUMPBIN" && break
12527   done
12528 fi
12529 if test -z "$DUMPBIN"; then
12530   ac_ct_DUMPBIN=$DUMPBIN
12531   for ac_prog in dumpbin "link -dump"
12532 do
12533   # Extract the first word of "$ac_prog", so it can be a program name with args.
12534 set dummy $ac_prog; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536 $as_echo_n "checking for $ac_word... " >&6; }
12537 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12538   $as_echo_n "(cached) " >&6
12539 else
12540   if test -n "$ac_ct_DUMPBIN"; then
12541   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12542 else
12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in $PATH
12545 do
12546   IFS=$as_save_IFS
12547   test -z "$as_dir" && as_dir=.
12548     for ac_exec_ext in '' $ac_executable_extensions; do
12549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12550     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552     break 2
12553   fi
12554 done
12555   done
12556 IFS=$as_save_IFS
12557
12558 fi
12559 fi
12560 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12561 if test -n "$ac_ct_DUMPBIN"; then
12562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12563 $as_echo "$ac_ct_DUMPBIN" >&6; }
12564 else
12565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566 $as_echo "no" >&6; }
12567 fi
12568
12569
12570   test -n "$ac_ct_DUMPBIN" && break
12571 done
12572
12573   if test "x$ac_ct_DUMPBIN" = x; then
12574     DUMPBIN=":"
12575   else
12576     case $cross_compiling:$ac_tool_warned in
12577 yes:)
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12580 ac_tool_warned=yes ;;
12581 esac
12582     DUMPBIN=$ac_ct_DUMPBIN
12583   fi
12584 fi
12585
12586     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12587     *COFF*)
12588       DUMPBIN="$DUMPBIN -symbols"
12589       ;;
12590     *)
12591       DUMPBIN=:
12592       ;;
12593     esac
12594   fi
12595
12596   if test "$DUMPBIN" != ":"; then
12597     NM="$DUMPBIN"
12598   fi
12599 fi
12600 test -z "$NM" && NM=nm
12601
12602
12603
12604
12605
12606
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12608 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12609 if test "${lt_cv_nm_interface+set}" = set; then :
12610   $as_echo_n "(cached) " >&6
12611 else
12612   lt_cv_nm_interface="BSD nm"
12613   echo "int some_variable = 0;" > conftest.$ac_ext
12614   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12615   (eval "$ac_compile" 2>conftest.err)
12616   cat conftest.err >&5
12617   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12618   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12619   cat conftest.err >&5
12620   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12621   cat conftest.out >&5
12622   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12623     lt_cv_nm_interface="MS dumpbin"
12624   fi
12625   rm -f conftest*
12626 fi
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12628 $as_echo "$lt_cv_nm_interface" >&6; }
12629
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12631 $as_echo_n "checking whether ln -s works... " >&6; }
12632 LN_S=$as_ln_s
12633 if test "$LN_S" = "ln -s"; then
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12635 $as_echo "yes" >&6; }
12636 else
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12638 $as_echo "no, using $LN_S" >&6; }
12639 fi
12640
12641 # find the maximum length of command line arguments
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12643 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12644 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12645   $as_echo_n "(cached) " >&6
12646 else
12647     i=0
12648   teststring="ABCD"
12649
12650   case $build_os in
12651   msdosdjgpp*)
12652     # On DJGPP, this test can blow up pretty badly due to problems in libc
12653     # (any single argument exceeding 2000 bytes causes a buffer overrun
12654     # during glob expansion).  Even if it were fixed, the result of this
12655     # check would be larger than it should be.
12656     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12657     ;;
12658
12659   gnu*)
12660     # Under GNU Hurd, this test is not required because there is
12661     # no limit to the length of command line arguments.
12662     # Libtool will interpret -1 as no limit whatsoever
12663     lt_cv_sys_max_cmd_len=-1;
12664     ;;
12665
12666   cygwin* | mingw* | cegcc*)
12667     # On Win9x/ME, this test blows up -- it succeeds, but takes
12668     # about 5 minutes as the teststring grows exponentially.
12669     # Worse, since 9x/ME are not pre-emptively multitasking,
12670     # you end up with a "frozen" computer, even though with patience
12671     # the test eventually succeeds (with a max line length of 256k).
12672     # Instead, let's just punt: use the minimum linelength reported by
12673     # all of the supported platforms: 8192 (on NT/2K/XP).
12674     lt_cv_sys_max_cmd_len=8192;
12675     ;;
12676
12677   mint*)
12678     # On MiNT this can take a long time and run out of memory.
12679     lt_cv_sys_max_cmd_len=8192;
12680     ;;
12681
12682   amigaos*)
12683     # On AmigaOS with pdksh, this test takes hours, literally.
12684     # So we just punt and use a minimum line length of 8192.
12685     lt_cv_sys_max_cmd_len=8192;
12686     ;;
12687
12688   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12689     # This has been around since 386BSD, at least.  Likely further.
12690     if test -x /sbin/sysctl; then
12691       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12692     elif test -x /usr/sbin/sysctl; then
12693       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12694     else
12695       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12696     fi
12697     # And add a safety zone
12698     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12699     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12700     ;;
12701
12702   interix*)
12703     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12704     lt_cv_sys_max_cmd_len=196608
12705     ;;
12706
12707   osf*)
12708     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12709     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12710     # nice to cause kernel panics so lets avoid the loop below.
12711     # First set a reasonable default.
12712     lt_cv_sys_max_cmd_len=16384
12713     #
12714     if test -x /sbin/sysconfig; then
12715       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12716         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12717       esac
12718     fi
12719     ;;
12720   sco3.2v5*)
12721     lt_cv_sys_max_cmd_len=102400
12722     ;;
12723   sysv5* | sco5v6* | sysv4.2uw2*)
12724     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12725     if test -n "$kargmax"; then
12726       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12727     else
12728       lt_cv_sys_max_cmd_len=32768
12729     fi
12730     ;;
12731   *)
12732     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12733     if test -n "$lt_cv_sys_max_cmd_len"; then
12734       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12735       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12736     else
12737       # Make teststring a little bigger before we do anything with it.
12738       # a 1K string should be a reasonable start.
12739       for i in 1 2 3 4 5 6 7 8 ; do
12740         teststring=$teststring$teststring
12741       done
12742       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12743       # If test is not a shell built-in, we'll probably end up computing a
12744       # maximum length that is only half of the actual maximum length, but
12745       # we can't tell.
12746       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12747                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12748               test $i != 17 # 1/2 MB should be enough
12749       do
12750         i=`expr $i + 1`
12751         teststring=$teststring$teststring
12752       done
12753       # Only check the string length outside the loop.
12754       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12755       teststring=
12756       # Add a significant safety factor because C++ compilers can tack on
12757       # massive amounts of additional arguments before passing them to the
12758       # linker.  It appears as though 1/2 is a usable value.
12759       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12760     fi
12761     ;;
12762   esac
12763
12764 fi
12765
12766 if test -n $lt_cv_sys_max_cmd_len ; then
12767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12768 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12769 else
12770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12771 $as_echo "none" >&6; }
12772 fi
12773 max_cmd_len=$lt_cv_sys_max_cmd_len
12774
12775
12776
12777
12778
12779
12780 : ${CP="cp -f"}
12781 : ${MV="mv -f"}
12782 : ${RM="rm -f"}
12783
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12785 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12786 # Try some XSI features
12787 xsi_shell=no
12788 ( _lt_dummy="a/b/c"
12789   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12790       = c,a/b,, \
12791     && eval 'test $(( 1 + 1 )) -eq 2 \
12792     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12793   && xsi_shell=yes
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12795 $as_echo "$xsi_shell" >&6; }
12796
12797
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12799 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12800 lt_shell_append=no
12801 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12802     >/dev/null 2>&1 \
12803   && lt_shell_append=yes
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12805 $as_echo "$lt_shell_append" >&6; }
12806
12807
12808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12809   lt_unset=unset
12810 else
12811   lt_unset=false
12812 fi
12813
12814
12815
12816
12817
12818 # test EBCDIC or ASCII
12819 case `echo X|tr X '\101'` in
12820  A) # ASCII based system
12821     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12822   lt_SP2NL='tr \040 \012'
12823   lt_NL2SP='tr \015\012 \040\040'
12824   ;;
12825  *) # EBCDIC based system
12826   lt_SP2NL='tr \100 \n'
12827   lt_NL2SP='tr \r\n \100\100'
12828   ;;
12829 esac
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12840 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12841 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12842   $as_echo_n "(cached) " >&6
12843 else
12844   lt_cv_ld_reload_flag='-r'
12845 fi
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12847 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12848 reload_flag=$lt_cv_ld_reload_flag
12849 case $reload_flag in
12850 "" | " "*) ;;
12851 *) reload_flag=" $reload_flag" ;;
12852 esac
12853 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12854 case $host_os in
12855   darwin*)
12856     if test "$GCC" = yes; then
12857       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12858     else
12859       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12860     fi
12861     ;;
12862 esac
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872 if test -n "$ac_tool_prefix"; then
12873   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12874 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12878   $as_echo_n "(cached) " >&6
12879 else
12880   if test -n "$OBJDUMP"; then
12881   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12882 else
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12885 do
12886   IFS=$as_save_IFS
12887   test -z "$as_dir" && as_dir=.
12888     for ac_exec_ext in '' $ac_executable_extensions; do
12889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12890     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892     break 2
12893   fi
12894 done
12895   done
12896 IFS=$as_save_IFS
12897
12898 fi
12899 fi
12900 OBJDUMP=$ac_cv_prog_OBJDUMP
12901 if test -n "$OBJDUMP"; then
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12903 $as_echo "$OBJDUMP" >&6; }
12904 else
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12907 fi
12908
12909
12910 fi
12911 if test -z "$ac_cv_prog_OBJDUMP"; then
12912   ac_ct_OBJDUMP=$OBJDUMP
12913   # Extract the first word of "objdump", so it can be a program name with args.
12914 set dummy objdump; ac_word=$2
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12916 $as_echo_n "checking for $ac_word... " >&6; }
12917 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12918   $as_echo_n "(cached) " >&6
12919 else
12920   if test -n "$ac_ct_OBJDUMP"; then
12921   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12922 else
12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924 for as_dir in $PATH
12925 do
12926   IFS=$as_save_IFS
12927   test -z "$as_dir" && as_dir=.
12928     for ac_exec_ext in '' $ac_executable_extensions; do
12929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12930     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12932     break 2
12933   fi
12934 done
12935   done
12936 IFS=$as_save_IFS
12937
12938 fi
12939 fi
12940 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12941 if test -n "$ac_ct_OBJDUMP"; then
12942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12943 $as_echo "$ac_ct_OBJDUMP" >&6; }
12944 else
12945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12947 fi
12948
12949   if test "x$ac_ct_OBJDUMP" = x; then
12950     OBJDUMP="false"
12951   else
12952     case $cross_compiling:$ac_tool_warned in
12953 yes:)
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12956 ac_tool_warned=yes ;;
12957 esac
12958     OBJDUMP=$ac_ct_OBJDUMP
12959   fi
12960 else
12961   OBJDUMP="$ac_cv_prog_OBJDUMP"
12962 fi
12963
12964 test -z "$OBJDUMP" && OBJDUMP=objdump
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12975 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12976 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12977   $as_echo_n "(cached) " >&6
12978 else
12979   lt_cv_file_magic_cmd='$MAGIC_CMD'
12980 lt_cv_file_magic_test_file=
12981 lt_cv_deplibs_check_method='unknown'
12982 # Need to set the preceding variable on all platforms that support
12983 # interlibrary dependencies.
12984 # 'none' -- dependencies not supported.
12985 # `unknown' -- same as none, but documents that we really don't know.
12986 # 'pass_all' -- all dependencies passed with no checks.
12987 # 'test_compile' -- check by making test program.
12988 # 'file_magic [[regex]]' -- check by looking for files in library path
12989 # which responds to the $file_magic_cmd with a given extended regex.
12990 # If you have `file' or equivalent on your system and you're not sure
12991 # whether `pass_all' will *always* work, you probably want this one.
12992
12993 case $host_os in
12994 aix[4-9]*)
12995   lt_cv_deplibs_check_method=pass_all
12996   ;;
12997
12998 beos*)
12999   lt_cv_deplibs_check_method=pass_all
13000   ;;
13001
13002 bsdi[45]*)
13003   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13004   lt_cv_file_magic_cmd='/usr/bin/file -L'
13005   lt_cv_file_magic_test_file=/shlib/libc.so
13006   ;;
13007
13008 cygwin*)
13009   # func_win32_libid is a shell function defined in ltmain.sh
13010   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13011   lt_cv_file_magic_cmd='func_win32_libid'
13012   ;;
13013
13014 mingw* | pw32*)
13015   # Base MSYS/MinGW do not provide the 'file' command needed by
13016   # func_win32_libid shell function, so use a weaker test based on 'objdump',
13017   # unless we find 'file', for example because we are cross-compiling.
13018   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13019   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13020     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13021     lt_cv_file_magic_cmd='func_win32_libid'
13022   else
13023     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13024     lt_cv_file_magic_cmd='$OBJDUMP -f'
13025   fi
13026   ;;
13027
13028 cegcc*)
13029   # use the weaker test based on 'objdump'. See mingw*.
13030   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13031   lt_cv_file_magic_cmd='$OBJDUMP -f'
13032   ;;
13033
13034 darwin* | rhapsody*)
13035   lt_cv_deplibs_check_method=pass_all
13036   ;;
13037
13038 freebsd* | dragonfly*)
13039   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13040     case $host_cpu in
13041     i*86 )
13042       # Not sure whether the presence of OpenBSD here was a mistake.
13043       # Let's accept both of them until this is cleared up.
13044       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13045       lt_cv_file_magic_cmd=/usr/bin/file
13046       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13047       ;;
13048     esac
13049   else
13050     lt_cv_deplibs_check_method=pass_all
13051   fi
13052   ;;
13053
13054 gnu*)
13055   lt_cv_deplibs_check_method=pass_all
13056   ;;
13057
13058 haiku*)
13059   lt_cv_deplibs_check_method=pass_all
13060   ;;
13061
13062 hpux10.20* | hpux11*)
13063   lt_cv_file_magic_cmd=/usr/bin/file
13064   case $host_cpu in
13065   ia64*)
13066     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13067     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13068     ;;
13069   hppa*64*)
13070     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]'
13071     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13072     ;;
13073   *)
13074     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13075     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13076     ;;
13077   esac
13078   ;;
13079
13080 interix[3-9]*)
13081   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13082   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13083   ;;
13084
13085 irix5* | irix6* | nonstopux*)
13086   case $LD in
13087   *-32|*"-32 ") libmagic=32-bit;;
13088   *-n32|*"-n32 ") libmagic=N32;;
13089   *-64|*"-64 ") libmagic=64-bit;;
13090   *) libmagic=never-match;;
13091   esac
13092   lt_cv_deplibs_check_method=pass_all
13093   ;;
13094
13095 # This must be Linux ELF.
13096 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13097   lt_cv_deplibs_check_method=pass_all
13098   ;;
13099
13100 netbsd*)
13101   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13102     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13103   else
13104     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13105   fi
13106   ;;
13107
13108 newos6*)
13109   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13110   lt_cv_file_magic_cmd=/usr/bin/file
13111   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13112   ;;
13113
13114 *nto* | *qnx*)
13115   lt_cv_deplibs_check_method=pass_all
13116   ;;
13117
13118 openbsd*)
13119   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13120     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13121   else
13122     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13123   fi
13124   ;;
13125
13126 osf3* | osf4* | osf5*)
13127   lt_cv_deplibs_check_method=pass_all
13128   ;;
13129
13130 rdos*)
13131   lt_cv_deplibs_check_method=pass_all
13132   ;;
13133
13134 solaris*)
13135   lt_cv_deplibs_check_method=pass_all
13136   ;;
13137
13138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13139   lt_cv_deplibs_check_method=pass_all
13140   ;;
13141
13142 sysv4 | sysv4.3*)
13143   case $host_vendor in
13144   motorola)
13145     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]'
13146     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13147     ;;
13148   ncr)
13149     lt_cv_deplibs_check_method=pass_all
13150     ;;
13151   sequent)
13152     lt_cv_file_magic_cmd='/bin/file'
13153     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13154     ;;
13155   sni)
13156     lt_cv_file_magic_cmd='/bin/file'
13157     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13158     lt_cv_file_magic_test_file=/lib/libc.so
13159     ;;
13160   siemens)
13161     lt_cv_deplibs_check_method=pass_all
13162     ;;
13163   pc)
13164     lt_cv_deplibs_check_method=pass_all
13165     ;;
13166   esac
13167   ;;
13168
13169 tpf*)
13170   lt_cv_deplibs_check_method=pass_all
13171   ;;
13172 esac
13173
13174 fi
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13176 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13177 file_magic_cmd=$lt_cv_file_magic_cmd
13178 deplibs_check_method=$lt_cv_deplibs_check_method
13179 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192 if test -n "$ac_tool_prefix"; then
13193   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13194 set dummy ${ac_tool_prefix}ar; ac_word=$2
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13196 $as_echo_n "checking for $ac_word... " >&6; }
13197 if test "${ac_cv_prog_AR+set}" = set; then :
13198   $as_echo_n "(cached) " >&6
13199 else
13200   if test -n "$AR"; then
13201   ac_cv_prog_AR="$AR" # Let the user override the test.
13202 else
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13205 do
13206   IFS=$as_save_IFS
13207   test -z "$as_dir" && as_dir=.
13208     for ac_exec_ext in '' $ac_executable_extensions; do
13209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13210     ac_cv_prog_AR="${ac_tool_prefix}ar"
13211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13212     break 2
13213   fi
13214 done
13215   done
13216 IFS=$as_save_IFS
13217
13218 fi
13219 fi
13220 AR=$ac_cv_prog_AR
13221 if test -n "$AR"; then
13222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13223 $as_echo "$AR" >&6; }
13224 else
13225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227 fi
13228
13229
13230 fi
13231 if test -z "$ac_cv_prog_AR"; then
13232   ac_ct_AR=$AR
13233   # Extract the first word of "ar", so it can be a program name with args.
13234 set dummy ar; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13238   $as_echo_n "(cached) " >&6
13239 else
13240   if test -n "$ac_ct_AR"; then
13241   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13242 else
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13245 do
13246   IFS=$as_save_IFS
13247   test -z "$as_dir" && as_dir=.
13248     for ac_exec_ext in '' $ac_executable_extensions; do
13249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250     ac_cv_prog_ac_ct_AR="ar"
13251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252     break 2
13253   fi
13254 done
13255   done
13256 IFS=$as_save_IFS
13257
13258 fi
13259 fi
13260 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13261 if test -n "$ac_ct_AR"; then
13262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13263 $as_echo "$ac_ct_AR" >&6; }
13264 else
13265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13267 fi
13268
13269   if test "x$ac_ct_AR" = x; then
13270     AR="false"
13271   else
13272     case $cross_compiling:$ac_tool_warned in
13273 yes:)
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13276 ac_tool_warned=yes ;;
13277 esac
13278     AR=$ac_ct_AR
13279   fi
13280 else
13281   AR="$ac_cv_prog_AR"
13282 fi
13283
13284 test -z "$AR" && AR=ar
13285 test -z "$AR_FLAGS" && AR_FLAGS=cru
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297 if test -n "$ac_tool_prefix"; then
13298   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13299 set dummy ${ac_tool_prefix}strip; ac_word=$2
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13301 $as_echo_n "checking for $ac_word... " >&6; }
13302 if test "${ac_cv_prog_STRIP+set}" = set; then :
13303   $as_echo_n "(cached) " >&6
13304 else
13305   if test -n "$STRIP"; then
13306   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13307 else
13308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309 for as_dir in $PATH
13310 do
13311   IFS=$as_save_IFS
13312   test -z "$as_dir" && as_dir=.
13313     for ac_exec_ext in '' $ac_executable_extensions; do
13314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13315     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13317     break 2
13318   fi
13319 done
13320   done
13321 IFS=$as_save_IFS
13322
13323 fi
13324 fi
13325 STRIP=$ac_cv_prog_STRIP
13326 if test -n "$STRIP"; then
13327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13328 $as_echo "$STRIP" >&6; }
13329 else
13330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13332 fi
13333
13334
13335 fi
13336 if test -z "$ac_cv_prog_STRIP"; then
13337   ac_ct_STRIP=$STRIP
13338   # Extract the first word of "strip", so it can be a program name with args.
13339 set dummy strip; ac_word=$2
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341 $as_echo_n "checking for $ac_word... " >&6; }
13342 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13343   $as_echo_n "(cached) " >&6
13344 else
13345   if test -n "$ac_ct_STRIP"; then
13346   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13347 else
13348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349 for as_dir in $PATH
13350 do
13351   IFS=$as_save_IFS
13352   test -z "$as_dir" && as_dir=.
13353     for ac_exec_ext in '' $ac_executable_extensions; do
13354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13355     ac_cv_prog_ac_ct_STRIP="strip"
13356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357     break 2
13358   fi
13359 done
13360   done
13361 IFS=$as_save_IFS
13362
13363 fi
13364 fi
13365 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13366 if test -n "$ac_ct_STRIP"; then
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13368 $as_echo "$ac_ct_STRIP" >&6; }
13369 else
13370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371 $as_echo "no" >&6; }
13372 fi
13373
13374   if test "x$ac_ct_STRIP" = x; then
13375     STRIP=":"
13376   else
13377     case $cross_compiling:$ac_tool_warned in
13378 yes:)
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13381 ac_tool_warned=yes ;;
13382 esac
13383     STRIP=$ac_ct_STRIP
13384   fi
13385 else
13386   STRIP="$ac_cv_prog_STRIP"
13387 fi
13388
13389 test -z "$STRIP" && STRIP=:
13390
13391
13392
13393
13394
13395
13396 if test -n "$ac_tool_prefix"; then
13397   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13398 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13400 $as_echo_n "checking for $ac_word... " >&6; }
13401 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13402   $as_echo_n "(cached) " >&6
13403 else
13404   if test -n "$RANLIB"; then
13405   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13406 else
13407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408 for as_dir in $PATH
13409 do
13410   IFS=$as_save_IFS
13411   test -z "$as_dir" && as_dir=.
13412     for ac_exec_ext in '' $ac_executable_extensions; do
13413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13414     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416     break 2
13417   fi
13418 done
13419   done
13420 IFS=$as_save_IFS
13421
13422 fi
13423 fi
13424 RANLIB=$ac_cv_prog_RANLIB
13425 if test -n "$RANLIB"; then
13426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13427 $as_echo "$RANLIB" >&6; }
13428 else
13429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13431 fi
13432
13433
13434 fi
13435 if test -z "$ac_cv_prog_RANLIB"; then
13436   ac_ct_RANLIB=$RANLIB
13437   # Extract the first word of "ranlib", so it can be a program name with args.
13438 set dummy ranlib; ac_word=$2
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13440 $as_echo_n "checking for $ac_word... " >&6; }
13441 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13442   $as_echo_n "(cached) " >&6
13443 else
13444   if test -n "$ac_ct_RANLIB"; then
13445   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13446 else
13447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448 for as_dir in $PATH
13449 do
13450   IFS=$as_save_IFS
13451   test -z "$as_dir" && as_dir=.
13452     for ac_exec_ext in '' $ac_executable_extensions; do
13453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13454     ac_cv_prog_ac_ct_RANLIB="ranlib"
13455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13456     break 2
13457   fi
13458 done
13459   done
13460 IFS=$as_save_IFS
13461
13462 fi
13463 fi
13464 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13465 if test -n "$ac_ct_RANLIB"; then
13466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13467 $as_echo "$ac_ct_RANLIB" >&6; }
13468 else
13469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13470 $as_echo "no" >&6; }
13471 fi
13472
13473   if test "x$ac_ct_RANLIB" = x; then
13474     RANLIB=":"
13475   else
13476     case $cross_compiling:$ac_tool_warned in
13477 yes:)
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13480 ac_tool_warned=yes ;;
13481 esac
13482     RANLIB=$ac_ct_RANLIB
13483   fi
13484 else
13485   RANLIB="$ac_cv_prog_RANLIB"
13486 fi
13487
13488 test -z "$RANLIB" && RANLIB=:
13489
13490
13491
13492
13493
13494
13495 # Determine commands to create old-style static archives.
13496 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13497 old_postinstall_cmds='chmod 644 $oldlib'
13498 old_postuninstall_cmds=
13499
13500 if test -n "$RANLIB"; then
13501   case $host_os in
13502   openbsd*)
13503     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13504     ;;
13505   *)
13506     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13507     ;;
13508   esac
13509   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13510 fi
13511
13512 case $host_os in
13513   darwin*)
13514     lock_old_archive_extraction=yes ;;
13515   *)
13516     lock_old_archive_extraction=no ;;
13517 esac
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557 # If no C compiler was specified, use CC.
13558 LTCC=${LTCC-"$CC"}
13559
13560 # If no C compiler flags were specified, use CFLAGS.
13561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13562
13563 # Allow CC to be a program name with arguments.
13564 compiler=$CC
13565
13566
13567 # Check for command to grab the raw symbol name followed by C symbol from nm.
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13569 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13570 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13571   $as_echo_n "(cached) " >&6
13572 else
13573
13574 # These are sane defaults that work on at least a few old systems.
13575 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13576
13577 # Character class describing NM global symbol codes.
13578 symcode='[BCDEGRST]'
13579
13580 # Regexp to match symbols that can be accessed directly from C.
13581 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13582
13583 # Define system-specific variables.
13584 case $host_os in
13585 aix*)
13586   symcode='[BCDT]'
13587   ;;
13588 cygwin* | mingw* | pw32* | cegcc*)
13589   symcode='[ABCDGISTW]'
13590   ;;
13591 hpux*)
13592   if test "$host_cpu" = ia64; then
13593     symcode='[ABCDEGRST]'
13594   fi
13595   ;;
13596 irix* | nonstopux*)
13597   symcode='[BCDEGRST]'
13598   ;;
13599 osf*)
13600   symcode='[BCDEGQRST]'
13601   ;;
13602 solaris*)
13603   symcode='[BDRT]'
13604   ;;
13605 sco3.2v5*)
13606   symcode='[DT]'
13607   ;;
13608 sysv4.2uw2*)
13609   symcode='[DT]'
13610   ;;
13611 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13612   symcode='[ABDT]'
13613   ;;
13614 sysv4)
13615   symcode='[DFNSTU]'
13616   ;;
13617 esac
13618
13619 # If we're using GNU nm, then use its standard symbol codes.
13620 case `$NM -V 2>&1` in
13621 *GNU* | *'with BFD'*)
13622   symcode='[ABCDGIRSTW]' ;;
13623 esac
13624
13625 # Transform an extracted symbol line into a proper C declaration.
13626 # Some systems (esp. on ia64) link data and code symbols differently,
13627 # so use this general approach.
13628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13629
13630 # Transform an extracted symbol line into symbol name and symbol address
13631 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13632 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'"
13633
13634 # Handle CRLF in mingw tool chain
13635 opt_cr=
13636 case $build_os in
13637 mingw*)
13638   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13639   ;;
13640 esac
13641
13642 # Try without a prefix underscore, then with it.
13643 for ac_symprfx in "" "_"; do
13644
13645   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13646   symxfrm="\\1 $ac_symprfx\\2 \\2"
13647
13648   # Write the raw and C identifiers.
13649   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13650     # Fake it for dumpbin and say T for any non-static function
13651     # and D for any global variable.
13652     # Also find C++ and __fastcall symbols from MSVC++,
13653     # which start with @ or ?.
13654     lt_cv_sys_global_symbol_pipe="$AWK '"\
13655 "     {last_section=section; section=\$ 3};"\
13656 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13657 "     \$ 0!~/External *\|/{next};"\
13658 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13659 "     {if(hide[section]) next};"\
13660 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13661 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13662 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13663 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13664 "     ' prfx=^$ac_symprfx"
13665   else
13666     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13667   fi
13668
13669   # Check to see that the pipe works correctly.
13670   pipe_works=no
13671
13672   rm -f conftest*
13673   cat > conftest.$ac_ext <<_LT_EOF
13674 #ifdef __cplusplus
13675 extern "C" {
13676 #endif
13677 char nm_test_var;
13678 void nm_test_func(void);
13679 void nm_test_func(void){}
13680 #ifdef __cplusplus
13681 }
13682 #endif
13683 int main(){nm_test_var='a';nm_test_func();return(0);}
13684 _LT_EOF
13685
13686   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13687   (eval $ac_compile) 2>&5
13688   ac_status=$?
13689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13690   test $ac_status = 0; }; then
13691     # Now try to grab the symbols.
13692     nlist=conftest.nm
13693     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13694   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13695   ac_status=$?
13696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13697   test $ac_status = 0; } && test -s "$nlist"; then
13698       # Try sorting and uniquifying the output.
13699       if sort "$nlist" | uniq > "$nlist"T; then
13700         mv -f "$nlist"T "$nlist"
13701       else
13702         rm -f "$nlist"T
13703       fi
13704
13705       # Make sure that we snagged all the symbols we need.
13706       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13707         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13708           cat <<_LT_EOF > conftest.$ac_ext
13709 #ifdef __cplusplus
13710 extern "C" {
13711 #endif
13712
13713 _LT_EOF
13714           # Now generate the symbol file.
13715           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13716
13717           cat <<_LT_EOF >> conftest.$ac_ext
13718
13719 /* The mapping between symbol names and symbols.  */
13720 const struct {
13721   const char *name;
13722   void       *address;
13723 }
13724 lt__PROGRAM__LTX_preloaded_symbols[] =
13725 {
13726   { "@PROGRAM@", (void *) 0 },
13727 _LT_EOF
13728           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13729           cat <<\_LT_EOF >> conftest.$ac_ext
13730   {0, (void *) 0}
13731 };
13732
13733 /* This works around a problem in FreeBSD linker */
13734 #ifdef FREEBSD_WORKAROUND
13735 static const void *lt_preloaded_setup() {
13736   return lt__PROGRAM__LTX_preloaded_symbols;
13737 }
13738 #endif
13739
13740 #ifdef __cplusplus
13741 }
13742 #endif
13743 _LT_EOF
13744           # Now try linking the two files.
13745           mv conftest.$ac_objext conftstm.$ac_objext
13746           lt_save_LIBS="$LIBS"
13747           lt_save_CFLAGS="$CFLAGS"
13748           LIBS="conftstm.$ac_objext"
13749           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13750           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13751   (eval $ac_link) 2>&5
13752   ac_status=$?
13753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13754   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13755             pipe_works=yes
13756           fi
13757           LIBS="$lt_save_LIBS"
13758           CFLAGS="$lt_save_CFLAGS"
13759         else
13760           echo "cannot find nm_test_func in $nlist" >&5
13761         fi
13762       else
13763         echo "cannot find nm_test_var in $nlist" >&5
13764       fi
13765     else
13766       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13767     fi
13768   else
13769     echo "$progname: failed program was:" >&5
13770     cat conftest.$ac_ext >&5
13771   fi
13772   rm -rf conftest* conftst*
13773
13774   # Do not use the global_symbol_pipe unless it works.
13775   if test "$pipe_works" = yes; then
13776     break
13777   else
13778     lt_cv_sys_global_symbol_pipe=
13779   fi
13780 done
13781
13782 fi
13783
13784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13785   lt_cv_sys_global_symbol_to_cdecl=
13786 fi
13787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13789 $as_echo "failed" >&6; }
13790 else
13791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13792 $as_echo "ok" >&6; }
13793 fi
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816 # Check whether --enable-libtool-lock was given.
13817 if test "${enable_libtool_lock+set}" = set; then :
13818   enableval=$enable_libtool_lock;
13819 fi
13820
13821 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13822
13823 # Some flags need to be propagated to the compiler or linker for good
13824 # libtool support.
13825 case $host in
13826 ia64-*-hpux*)
13827   # Find out which ABI we are using.
13828   echo 'int i;' > conftest.$ac_ext
13829   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13830   (eval $ac_compile) 2>&5
13831   ac_status=$?
13832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13833   test $ac_status = 0; }; then
13834     case `/usr/bin/file conftest.$ac_objext` in
13835       *ELF-32*)
13836         HPUX_IA64_MODE="32"
13837         ;;
13838       *ELF-64*)
13839         HPUX_IA64_MODE="64"
13840         ;;
13841     esac
13842   fi
13843   rm -rf conftest*
13844   ;;
13845 *-*-irix6*)
13846   # Find out which ABI we are using.
13847   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13848   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13849   (eval $ac_compile) 2>&5
13850   ac_status=$?
13851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13852   test $ac_status = 0; }; then
13853     if test "$lt_cv_prog_gnu_ld" = yes; then
13854       case `/usr/bin/file conftest.$ac_objext` in
13855         *32-bit*)
13856           LD="${LD-ld} -melf32bsmip"
13857           ;;
13858         *N32*)
13859           LD="${LD-ld} -melf32bmipn32"
13860           ;;
13861         *64-bit*)
13862           LD="${LD-ld} -melf64bmip"
13863         ;;
13864       esac
13865     else
13866       case `/usr/bin/file conftest.$ac_objext` in
13867         *32-bit*)
13868           LD="${LD-ld} -32"
13869           ;;
13870         *N32*)
13871           LD="${LD-ld} -n32"
13872           ;;
13873         *64-bit*)
13874           LD="${LD-ld} -64"
13875           ;;
13876       esac
13877     fi
13878   fi
13879   rm -rf conftest*
13880   ;;
13881
13882 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13883 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13884   # Find out which ABI we are using.
13885   echo 'int i;' > conftest.$ac_ext
13886   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13887   (eval $ac_compile) 2>&5
13888   ac_status=$?
13889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13890   test $ac_status = 0; }; then
13891     case `/usr/bin/file conftest.o` in
13892       *32-bit*)
13893         case $host in
13894           x86_64-*kfreebsd*-gnu)
13895             LD="${LD-ld} -m elf_i386_fbsd"
13896             ;;
13897           x86_64-*linux*)
13898             LD="${LD-ld} -m elf_i386"
13899             ;;
13900           ppc64-*linux*|powerpc64-*linux*)
13901             LD="${LD-ld} -m elf32ppclinux"
13902             ;;
13903           s390x-*linux*)
13904             LD="${LD-ld} -m elf_s390"
13905             ;;
13906           sparc64-*linux*)
13907             LD="${LD-ld} -m elf32_sparc"
13908             ;;
13909         esac
13910         ;;
13911       *64-bit*)
13912         case $host in
13913           x86_64-*kfreebsd*-gnu)
13914             LD="${LD-ld} -m elf_x86_64_fbsd"
13915             ;;
13916           x86_64-*linux*)
13917             LD="${LD-ld} -m elf_x86_64"
13918             ;;
13919           ppc*-*linux*|powerpc*-*linux*)
13920             LD="${LD-ld} -m elf64ppc"
13921             ;;
13922           s390*-*linux*|s390*-*tpf*)
13923             LD="${LD-ld} -m elf64_s390"
13924             ;;
13925           sparc*-*linux*)
13926             LD="${LD-ld} -m elf64_sparc"
13927             ;;
13928         esac
13929         ;;
13930     esac
13931   fi
13932   rm -rf conftest*
13933   ;;
13934
13935 *-*-sco3.2v5*)
13936   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13937   SAVE_CFLAGS="$CFLAGS"
13938   CFLAGS="$CFLAGS -belf"
13939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13940 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13941 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13942   $as_echo_n "(cached) " >&6
13943 else
13944   ac_ext=c
13945 ac_cpp='$CPP $CPPFLAGS'
13946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13949
13950      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13951 /* end confdefs.h.  */
13952
13953 int
13954 main ()
13955 {
13956
13957   ;
13958   return 0;
13959 }
13960 _ACEOF
13961 if ac_fn_c_try_link "$LINENO"; then :
13962   lt_cv_cc_needs_belf=yes
13963 else
13964   lt_cv_cc_needs_belf=no
13965 fi
13966 rm -f core conftest.err conftest.$ac_objext \
13967     conftest$ac_exeext conftest.$ac_ext
13968      ac_ext=c
13969 ac_cpp='$CPP $CPPFLAGS'
13970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13973
13974 fi
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13976 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13977   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13978     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13979     CFLAGS="$SAVE_CFLAGS"
13980   fi
13981   ;;
13982 sparc*-*solaris*)
13983   # Find out which ABI we are using.
13984   echo 'int i;' > conftest.$ac_ext
13985   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13986   (eval $ac_compile) 2>&5
13987   ac_status=$?
13988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13989   test $ac_status = 0; }; then
13990     case `/usr/bin/file conftest.o` in
13991     *64-bit*)
13992       case $lt_cv_prog_gnu_ld in
13993       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13994       *)
13995         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13996           LD="${LD-ld} -64"
13997         fi
13998         ;;
13999       esac
14000       ;;
14001     esac
14002   fi
14003   rm -rf conftest*
14004   ;;
14005 esac
14006
14007 need_locks="$enable_libtool_lock"
14008
14009
14010   case $host_os in
14011     rhapsody* | darwin*)
14012     if test -n "$ac_tool_prefix"; then
14013   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14014 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14016 $as_echo_n "checking for $ac_word... " >&6; }
14017 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14018   $as_echo_n "(cached) " >&6
14019 else
14020   if test -n "$DSYMUTIL"; then
14021   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14022 else
14023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024 for as_dir in $PATH
14025 do
14026   IFS=$as_save_IFS
14027   test -z "$as_dir" && as_dir=.
14028     for ac_exec_ext in '' $ac_executable_extensions; do
14029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14030     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14032     break 2
14033   fi
14034 done
14035   done
14036 IFS=$as_save_IFS
14037
14038 fi
14039 fi
14040 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14041 if test -n "$DSYMUTIL"; then
14042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14043 $as_echo "$DSYMUTIL" >&6; }
14044 else
14045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 $as_echo "no" >&6; }
14047 fi
14048
14049
14050 fi
14051 if test -z "$ac_cv_prog_DSYMUTIL"; then
14052   ac_ct_DSYMUTIL=$DSYMUTIL
14053   # Extract the first word of "dsymutil", so it can be a program name with args.
14054 set dummy dsymutil; ac_word=$2
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14056 $as_echo_n "checking for $ac_word... " >&6; }
14057 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14058   $as_echo_n "(cached) " >&6
14059 else
14060   if test -n "$ac_ct_DSYMUTIL"; then
14061   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14062 else
14063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14064 for as_dir in $PATH
14065 do
14066   IFS=$as_save_IFS
14067   test -z "$as_dir" && as_dir=.
14068     for ac_exec_ext in '' $ac_executable_extensions; do
14069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14070     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14072     break 2
14073   fi
14074 done
14075   done
14076 IFS=$as_save_IFS
14077
14078 fi
14079 fi
14080 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14081 if test -n "$ac_ct_DSYMUTIL"; then
14082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14083 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14084 else
14085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14086 $as_echo "no" >&6; }
14087 fi
14088
14089   if test "x$ac_ct_DSYMUTIL" = x; then
14090     DSYMUTIL=":"
14091   else
14092     case $cross_compiling:$ac_tool_warned in
14093 yes:)
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14096 ac_tool_warned=yes ;;
14097 esac
14098     DSYMUTIL=$ac_ct_DSYMUTIL
14099   fi
14100 else
14101   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14102 fi
14103
14104     if test -n "$ac_tool_prefix"; then
14105   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14106 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14108 $as_echo_n "checking for $ac_word... " >&6; }
14109 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14110   $as_echo_n "(cached) " >&6
14111 else
14112   if test -n "$NMEDIT"; then
14113   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14114 else
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in $PATH
14117 do
14118   IFS=$as_save_IFS
14119   test -z "$as_dir" && as_dir=.
14120     for ac_exec_ext in '' $ac_executable_extensions; do
14121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14122     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14124     break 2
14125   fi
14126 done
14127   done
14128 IFS=$as_save_IFS
14129
14130 fi
14131 fi
14132 NMEDIT=$ac_cv_prog_NMEDIT
14133 if test -n "$NMEDIT"; then
14134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14135 $as_echo "$NMEDIT" >&6; }
14136 else
14137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14139 fi
14140
14141
14142 fi
14143 if test -z "$ac_cv_prog_NMEDIT"; then
14144   ac_ct_NMEDIT=$NMEDIT
14145   # Extract the first word of "nmedit", so it can be a program name with args.
14146 set dummy nmedit; ac_word=$2
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14148 $as_echo_n "checking for $ac_word... " >&6; }
14149 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14150   $as_echo_n "(cached) " >&6
14151 else
14152   if test -n "$ac_ct_NMEDIT"; then
14153   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14154 else
14155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156 for as_dir in $PATH
14157 do
14158   IFS=$as_save_IFS
14159   test -z "$as_dir" && as_dir=.
14160     for ac_exec_ext in '' $ac_executable_extensions; do
14161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14162     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14164     break 2
14165   fi
14166 done
14167   done
14168 IFS=$as_save_IFS
14169
14170 fi
14171 fi
14172 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14173 if test -n "$ac_ct_NMEDIT"; then
14174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14175 $as_echo "$ac_ct_NMEDIT" >&6; }
14176 else
14177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14179 fi
14180
14181   if test "x$ac_ct_NMEDIT" = x; then
14182     NMEDIT=":"
14183   else
14184     case $cross_compiling:$ac_tool_warned in
14185 yes:)
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14188 ac_tool_warned=yes ;;
14189 esac
14190     NMEDIT=$ac_ct_NMEDIT
14191   fi
14192 else
14193   NMEDIT="$ac_cv_prog_NMEDIT"
14194 fi
14195
14196     if test -n "$ac_tool_prefix"; then
14197   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14198 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14200 $as_echo_n "checking for $ac_word... " >&6; }
14201 if test "${ac_cv_prog_LIPO+set}" = set; then :
14202   $as_echo_n "(cached) " >&6
14203 else
14204   if test -n "$LIPO"; then
14205   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14206 else
14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 for as_dir in $PATH
14209 do
14210   IFS=$as_save_IFS
14211   test -z "$as_dir" && as_dir=.
14212     for ac_exec_ext in '' $ac_executable_extensions; do
14213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14214     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14216     break 2
14217   fi
14218 done
14219   done
14220 IFS=$as_save_IFS
14221
14222 fi
14223 fi
14224 LIPO=$ac_cv_prog_LIPO
14225 if test -n "$LIPO"; then
14226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14227 $as_echo "$LIPO" >&6; }
14228 else
14229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14230 $as_echo "no" >&6; }
14231 fi
14232
14233
14234 fi
14235 if test -z "$ac_cv_prog_LIPO"; then
14236   ac_ct_LIPO=$LIPO
14237   # Extract the first word of "lipo", so it can be a program name with args.
14238 set dummy lipo; ac_word=$2
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240 $as_echo_n "checking for $ac_word... " >&6; }
14241 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14242   $as_echo_n "(cached) " >&6
14243 else
14244   if test -n "$ac_ct_LIPO"; then
14245   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14246 else
14247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248 for as_dir in $PATH
14249 do
14250   IFS=$as_save_IFS
14251   test -z "$as_dir" && as_dir=.
14252     for ac_exec_ext in '' $ac_executable_extensions; do
14253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14254     ac_cv_prog_ac_ct_LIPO="lipo"
14255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14256     break 2
14257   fi
14258 done
14259   done
14260 IFS=$as_save_IFS
14261
14262 fi
14263 fi
14264 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14265 if test -n "$ac_ct_LIPO"; then
14266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14267 $as_echo "$ac_ct_LIPO" >&6; }
14268 else
14269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270 $as_echo "no" >&6; }
14271 fi
14272
14273   if test "x$ac_ct_LIPO" = x; then
14274     LIPO=":"
14275   else
14276     case $cross_compiling:$ac_tool_warned in
14277 yes:)
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14280 ac_tool_warned=yes ;;
14281 esac
14282     LIPO=$ac_ct_LIPO
14283   fi
14284 else
14285   LIPO="$ac_cv_prog_LIPO"
14286 fi
14287
14288     if test -n "$ac_tool_prefix"; then
14289   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14290 set dummy ${ac_tool_prefix}otool; ac_word=$2
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14292 $as_echo_n "checking for $ac_word... " >&6; }
14293 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14294   $as_echo_n "(cached) " >&6
14295 else
14296   if test -n "$OTOOL"; then
14297   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14298 else
14299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14300 for as_dir in $PATH
14301 do
14302   IFS=$as_save_IFS
14303   test -z "$as_dir" && as_dir=.
14304     for ac_exec_ext in '' $ac_executable_extensions; do
14305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14306     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14308     break 2
14309   fi
14310 done
14311   done
14312 IFS=$as_save_IFS
14313
14314 fi
14315 fi
14316 OTOOL=$ac_cv_prog_OTOOL
14317 if test -n "$OTOOL"; then
14318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14319 $as_echo "$OTOOL" >&6; }
14320 else
14321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322 $as_echo "no" >&6; }
14323 fi
14324
14325
14326 fi
14327 if test -z "$ac_cv_prog_OTOOL"; then
14328   ac_ct_OTOOL=$OTOOL
14329   # Extract the first word of "otool", so it can be a program name with args.
14330 set dummy otool; ac_word=$2
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14332 $as_echo_n "checking for $ac_word... " >&6; }
14333 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14334   $as_echo_n "(cached) " >&6
14335 else
14336   if test -n "$ac_ct_OTOOL"; then
14337   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14338 else
14339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14340 for as_dir in $PATH
14341 do
14342   IFS=$as_save_IFS
14343   test -z "$as_dir" && as_dir=.
14344     for ac_exec_ext in '' $ac_executable_extensions; do
14345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14346     ac_cv_prog_ac_ct_OTOOL="otool"
14347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14348     break 2
14349   fi
14350 done
14351   done
14352 IFS=$as_save_IFS
14353
14354 fi
14355 fi
14356 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14357 if test -n "$ac_ct_OTOOL"; then
14358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14359 $as_echo "$ac_ct_OTOOL" >&6; }
14360 else
14361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14362 $as_echo "no" >&6; }
14363 fi
14364
14365   if test "x$ac_ct_OTOOL" = x; then
14366     OTOOL=":"
14367   else
14368     case $cross_compiling:$ac_tool_warned in
14369 yes:)
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14372 ac_tool_warned=yes ;;
14373 esac
14374     OTOOL=$ac_ct_OTOOL
14375   fi
14376 else
14377   OTOOL="$ac_cv_prog_OTOOL"
14378 fi
14379
14380     if test -n "$ac_tool_prefix"; then
14381   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14382 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14384 $as_echo_n "checking for $ac_word... " >&6; }
14385 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14386   $as_echo_n "(cached) " >&6
14387 else
14388   if test -n "$OTOOL64"; then
14389   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14390 else
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14393 do
14394   IFS=$as_save_IFS
14395   test -z "$as_dir" && as_dir=.
14396     for ac_exec_ext in '' $ac_executable_extensions; do
14397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14398     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14400     break 2
14401   fi
14402 done
14403   done
14404 IFS=$as_save_IFS
14405
14406 fi
14407 fi
14408 OTOOL64=$ac_cv_prog_OTOOL64
14409 if test -n "$OTOOL64"; then
14410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14411 $as_echo "$OTOOL64" >&6; }
14412 else
14413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414 $as_echo "no" >&6; }
14415 fi
14416
14417
14418 fi
14419 if test -z "$ac_cv_prog_OTOOL64"; then
14420   ac_ct_OTOOL64=$OTOOL64
14421   # Extract the first word of "otool64", so it can be a program name with args.
14422 set dummy otool64; ac_word=$2
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14424 $as_echo_n "checking for $ac_word... " >&6; }
14425 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14426   $as_echo_n "(cached) " >&6
14427 else
14428   if test -n "$ac_ct_OTOOL64"; then
14429   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14430 else
14431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432 for as_dir in $PATH
14433 do
14434   IFS=$as_save_IFS
14435   test -z "$as_dir" && as_dir=.
14436     for ac_exec_ext in '' $ac_executable_extensions; do
14437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14438     ac_cv_prog_ac_ct_OTOOL64="otool64"
14439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14440     break 2
14441   fi
14442 done
14443   done
14444 IFS=$as_save_IFS
14445
14446 fi
14447 fi
14448 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14449 if test -n "$ac_ct_OTOOL64"; then
14450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14451 $as_echo "$ac_ct_OTOOL64" >&6; }
14452 else
14453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14454 $as_echo "no" >&6; }
14455 fi
14456
14457   if test "x$ac_ct_OTOOL64" = x; then
14458     OTOOL64=":"
14459   else
14460     case $cross_compiling:$ac_tool_warned in
14461 yes:)
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14464 ac_tool_warned=yes ;;
14465 esac
14466     OTOOL64=$ac_ct_OTOOL64
14467   fi
14468 else
14469   OTOOL64="$ac_cv_prog_OTOOL64"
14470 fi
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14499 $as_echo_n "checking for -single_module linker flag... " >&6; }
14500 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14501   $as_echo_n "(cached) " >&6
14502 else
14503   lt_cv_apple_cc_single_mod=no
14504       if test -z "${LT_MULTI_MODULE}"; then
14505         # By default we will add the -single_module flag. You can override
14506         # by either setting the environment variable LT_MULTI_MODULE
14507         # non-empty at configure time, or by adding -multi_module to the
14508         # link flags.
14509         rm -rf libconftest.dylib*
14510         echo "int foo(void){return 1;}" > conftest.c
14511         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14512 -dynamiclib -Wl,-single_module conftest.c" >&5
14513         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14514           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14515         _lt_result=$?
14516         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14517           lt_cv_apple_cc_single_mod=yes
14518         else
14519           cat conftest.err >&5
14520         fi
14521         rm -rf libconftest.dylib*
14522         rm -f conftest.*
14523       fi
14524 fi
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14526 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14528 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14529 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14530   $as_echo_n "(cached) " >&6
14531 else
14532   lt_cv_ld_exported_symbols_list=no
14533       save_LDFLAGS=$LDFLAGS
14534       echo "_main" > conftest.sym
14535       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14536       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h.  */
14538
14539 int
14540 main ()
14541 {
14542
14543   ;
14544   return 0;
14545 }
14546 _ACEOF
14547 if ac_fn_c_try_link "$LINENO"; then :
14548   lt_cv_ld_exported_symbols_list=yes
14549 else
14550   lt_cv_ld_exported_symbols_list=no
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext \
14553     conftest$ac_exeext conftest.$ac_ext
14554         LDFLAGS="$save_LDFLAGS"
14555
14556 fi
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14558 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14560 $as_echo_n "checking for -force_load linker flag... " >&6; }
14561 if test "${lt_cv_ld_force_load+set}" = set; then :
14562   $as_echo_n "(cached) " >&6
14563 else
14564   lt_cv_ld_force_load=no
14565       cat > conftest.c << _LT_EOF
14566 int forced_loaded() { return 2;}
14567 _LT_EOF
14568       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14569       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14570       echo "$AR cru libconftest.a conftest.o" >&5
14571       $AR cru libconftest.a conftest.o 2>&5
14572       cat > conftest.c << _LT_EOF
14573 int main() { return 0;}
14574 _LT_EOF
14575       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14576       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14577       _lt_result=$?
14578       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14579         lt_cv_ld_force_load=yes
14580       else
14581         cat conftest.err >&5
14582       fi
14583         rm -f conftest.err libconftest.a conftest conftest.c
14584         rm -rf conftest.dSYM
14585
14586 fi
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14588 $as_echo "$lt_cv_ld_force_load" >&6; }
14589     case $host_os in
14590     rhapsody* | darwin1.[012])
14591       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14592     darwin1.*)
14593       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14594     darwin*) # darwin 5.x on
14595       # if running on 10.5 or later, the deployment target defaults
14596       # to the OS version, if on x86, and 10.4, the deployment
14597       # target defaults to 10.4. Don't you love it?
14598       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14599         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14600           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14601         10.[012]*)
14602           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14603         10.*)
14604           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14605       esac
14606     ;;
14607   esac
14608     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14609       _lt_dar_single_mod='$single_module'
14610     fi
14611     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14612       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14613     else
14614       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14615     fi
14616     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14617       _lt_dsymutil='~$DSYMUTIL $lib || :'
14618     else
14619       _lt_dsymutil=
14620     fi
14621     ;;
14622   esac
14623
14624 for ac_header in dlfcn.h
14625 do :
14626   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14627 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14628   cat >>confdefs.h <<_ACEOF
14629 #define HAVE_DLFCN_H 1
14630 _ACEOF
14631
14632 fi
14633 done
14634
14635
14636
14637
14638
14639 # Set options
14640
14641
14642
14643         enable_dlopen=no
14644
14645
14646   enable_win32_dll=no
14647
14648
14649             # Check whether --enable-shared was given.
14650 if test "${enable_shared+set}" = set; then :
14651   enableval=$enable_shared; p=${PACKAGE-default}
14652     case $enableval in
14653     yes) enable_shared=yes ;;
14654     no) enable_shared=no ;;
14655     *)
14656       enable_shared=no
14657       # Look at the argument we got.  We use all the common list separators.
14658       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14659       for pkg in $enableval; do
14660         IFS="$lt_save_ifs"
14661         if test "X$pkg" = "X$p"; then
14662           enable_shared=yes
14663         fi
14664       done
14665       IFS="$lt_save_ifs"
14666       ;;
14667     esac
14668 else
14669   enable_shared=yes
14670 fi
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680   # Check whether --enable-static was given.
14681 if test "${enable_static+set}" = set; then :
14682   enableval=$enable_static; p=${PACKAGE-default}
14683     case $enableval in
14684     yes) enable_static=yes ;;
14685     no) enable_static=no ;;
14686     *)
14687      enable_static=no
14688       # Look at the argument we got.  We use all the common list separators.
14689       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14690       for pkg in $enableval; do
14691         IFS="$lt_save_ifs"
14692         if test "X$pkg" = "X$p"; then
14693           enable_static=yes
14694         fi
14695       done
14696       IFS="$lt_save_ifs"
14697       ;;
14698     esac
14699 else
14700   enable_static=yes
14701 fi
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712 # Check whether --with-pic was given.
14713 if test "${with_pic+set}" = set; then :
14714   withval=$with_pic; pic_mode="$withval"
14715 else
14716   pic_mode=default
14717 fi
14718
14719
14720 test -z "$pic_mode" && pic_mode=default
14721
14722
14723
14724
14725
14726
14727
14728   # Check whether --enable-fast-install was given.
14729 if test "${enable_fast_install+set}" = set; then :
14730   enableval=$enable_fast_install; p=${PACKAGE-default}
14731     case $enableval in
14732     yes) enable_fast_install=yes ;;
14733     no) enable_fast_install=no ;;
14734     *)
14735       enable_fast_install=no
14736       # Look at the argument we got.  We use all the common list separators.
14737       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14738       for pkg in $enableval; do
14739         IFS="$lt_save_ifs"
14740         if test "X$pkg" = "X$p"; then
14741           enable_fast_install=yes
14742         fi
14743       done
14744       IFS="$lt_save_ifs"
14745       ;;
14746     esac
14747 else
14748   enable_fast_install=yes
14749 fi
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761 # This can be used to rebuild libtool when needed
14762 LIBTOOL_DEPS="$ltmain"
14763
14764 # Always use our own libtool.
14765 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792 test -z "$LN_S" && LN_S="ln -s"
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807 if test -n "${ZSH_VERSION+set}" ; then
14808    setopt NO_GLOB_SUBST
14809 fi
14810
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14812 $as_echo_n "checking for objdir... " >&6; }
14813 if test "${lt_cv_objdir+set}" = set; then :
14814   $as_echo_n "(cached) " >&6
14815 else
14816   rm -f .libs 2>/dev/null
14817 mkdir .libs 2>/dev/null
14818 if test -d .libs; then
14819   lt_cv_objdir=.libs
14820 else
14821   # MS-DOS does not allow filenames that begin with a dot.
14822   lt_cv_objdir=_libs
14823 fi
14824 rmdir .libs 2>/dev/null
14825 fi
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14827 $as_echo "$lt_cv_objdir" >&6; }
14828 objdir=$lt_cv_objdir
14829
14830
14831
14832
14833
14834 cat >>confdefs.h <<_ACEOF
14835 #define LT_OBJDIR "$lt_cv_objdir/"
14836 _ACEOF
14837
14838
14839
14840
14841 case $host_os in
14842 aix3*)
14843   # AIX sometimes has problems with the GCC collect2 program.  For some
14844   # reason, if we set the COLLECT_NAMES environment variable, the problems
14845   # vanish in a puff of smoke.
14846   if test "X${COLLECT_NAMES+set}" != Xset; then
14847     COLLECT_NAMES=
14848     export COLLECT_NAMES
14849   fi
14850   ;;
14851 esac
14852
14853 # Global variables:
14854 ofile=libtool
14855 can_build_shared=yes
14856
14857 # All known linkers require a `.a' archive for static linking (except MSVC,
14858 # which needs '.lib').
14859 libext=a
14860
14861 with_gnu_ld="$lt_cv_prog_gnu_ld"
14862
14863 old_CC="$CC"
14864 old_CFLAGS="$CFLAGS"
14865
14866 # Set sane defaults for various variables
14867 test -z "$CC" && CC=cc
14868 test -z "$LTCC" && LTCC=$CC
14869 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14870 test -z "$LD" && LD=ld
14871 test -z "$ac_objext" && ac_objext=o
14872
14873 for cc_temp in $compiler""; do
14874   case $cc_temp in
14875     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14876     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14877     \-*) ;;
14878     *) break;;
14879   esac
14880 done
14881 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14882
14883
14884 # Only perform the check for file, if the check method requires it
14885 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14886 case $deplibs_check_method in
14887 file_magic*)
14888   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14890 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14891 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14892   $as_echo_n "(cached) " >&6
14893 else
14894   case $MAGIC_CMD in
14895 [\\/*] |  ?:[\\/]*)
14896   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14897   ;;
14898 *)
14899   lt_save_MAGIC_CMD="$MAGIC_CMD"
14900   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14901   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14902   for ac_dir in $ac_dummy; do
14903     IFS="$lt_save_ifs"
14904     test -z "$ac_dir" && ac_dir=.
14905     if test -f $ac_dir/${ac_tool_prefix}file; then
14906       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14907       if test -n "$file_magic_test_file"; then
14908         case $deplibs_check_method in
14909         "file_magic "*)
14910           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14911           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14912           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14913             $EGREP "$file_magic_regex" > /dev/null; then
14914             :
14915           else
14916             cat <<_LT_EOF 1>&2
14917
14918 *** Warning: the command libtool uses to detect shared libraries,
14919 *** $file_magic_cmd, produces output that libtool cannot recognize.
14920 *** The result is that libtool may fail to recognize shared libraries
14921 *** as such.  This will affect the creation of libtool libraries that
14922 *** depend on shared libraries, but programs linked with such libtool
14923 *** libraries will work regardless of this problem.  Nevertheless, you
14924 *** may want to report the problem to your system manager and/or to
14925 *** bug-libtool@gnu.org
14926
14927 _LT_EOF
14928           fi ;;
14929         esac
14930       fi
14931       break
14932     fi
14933   done
14934   IFS="$lt_save_ifs"
14935   MAGIC_CMD="$lt_save_MAGIC_CMD"
14936   ;;
14937 esac
14938 fi
14939
14940 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14941 if test -n "$MAGIC_CMD"; then
14942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14943 $as_echo "$MAGIC_CMD" >&6; }
14944 else
14945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14946 $as_echo "no" >&6; }
14947 fi
14948
14949
14950
14951
14952
14953 if test -z "$lt_cv_path_MAGIC_CMD"; then
14954   if test -n "$ac_tool_prefix"; then
14955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14956 $as_echo_n "checking for file... " >&6; }
14957 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14958   $as_echo_n "(cached) " >&6
14959 else
14960   case $MAGIC_CMD in
14961 [\\/*] |  ?:[\\/]*)
14962   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14963   ;;
14964 *)
14965   lt_save_MAGIC_CMD="$MAGIC_CMD"
14966   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14967   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14968   for ac_dir in $ac_dummy; do
14969     IFS="$lt_save_ifs"
14970     test -z "$ac_dir" && ac_dir=.
14971     if test -f $ac_dir/file; then
14972       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14973       if test -n "$file_magic_test_file"; then
14974         case $deplibs_check_method in
14975         "file_magic "*)
14976           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14977           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14978           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14979             $EGREP "$file_magic_regex" > /dev/null; then
14980             :
14981           else
14982             cat <<_LT_EOF 1>&2
14983
14984 *** Warning: the command libtool uses to detect shared libraries,
14985 *** $file_magic_cmd, produces output that libtool cannot recognize.
14986 *** The result is that libtool may fail to recognize shared libraries
14987 *** as such.  This will affect the creation of libtool libraries that
14988 *** depend on shared libraries, but programs linked with such libtool
14989 *** libraries will work regardless of this problem.  Nevertheless, you
14990 *** may want to report the problem to your system manager and/or to
14991 *** bug-libtool@gnu.org
14992
14993 _LT_EOF
14994           fi ;;
14995         esac
14996       fi
14997       break
14998     fi
14999   done
15000   IFS="$lt_save_ifs"
15001   MAGIC_CMD="$lt_save_MAGIC_CMD"
15002   ;;
15003 esac
15004 fi
15005
15006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15007 if test -n "$MAGIC_CMD"; then
15008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15009 $as_echo "$MAGIC_CMD" >&6; }
15010 else
15011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15012 $as_echo "no" >&6; }
15013 fi
15014
15015
15016   else
15017     MAGIC_CMD=:
15018   fi
15019 fi
15020
15021   fi
15022   ;;
15023 esac
15024
15025 # Use C for the default configuration in the libtool script
15026
15027 lt_save_CC="$CC"
15028 ac_ext=c
15029 ac_cpp='$CPP $CPPFLAGS'
15030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15033
15034
15035 # Source file extension for C test sources.
15036 ac_ext=c
15037
15038 # Object file extension for compiled C test sources.
15039 objext=o
15040 objext=$objext
15041
15042 # Code to be used in simple compile tests
15043 lt_simple_compile_test_code="int some_variable = 0;"
15044
15045 # Code to be used in simple link tests
15046 lt_simple_link_test_code='int main(){return(0);}'
15047
15048
15049
15050
15051
15052
15053
15054 # If no C compiler was specified, use CC.
15055 LTCC=${LTCC-"$CC"}
15056
15057 # If no C compiler flags were specified, use CFLAGS.
15058 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15059
15060 # Allow CC to be a program name with arguments.
15061 compiler=$CC
15062
15063 # Save the default compiler, since it gets overwritten when the other
15064 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15065 compiler_DEFAULT=$CC
15066
15067 # save warnings/boilerplate of simple test code
15068 ac_outfile=conftest.$ac_objext
15069 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15070 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15071 _lt_compiler_boilerplate=`cat conftest.err`
15072 $RM conftest*
15073
15074 ac_outfile=conftest.$ac_objext
15075 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15076 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15077 _lt_linker_boilerplate=`cat conftest.err`
15078 $RM -r conftest*
15079
15080
15081 ## CAVEAT EMPTOR:
15082 ## There is no encapsulation within the following macros, do not change
15083 ## the running order or otherwise move them around unless you know exactly
15084 ## what you are doing...
15085 if test -n "$compiler"; then
15086
15087 lt_prog_compiler_no_builtin_flag=
15088
15089 if test "$GCC" = yes; then
15090   case $cc_basename in
15091   nvcc*)
15092     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15093   *)
15094     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15095   esac
15096
15097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15098 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15099 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15100   $as_echo_n "(cached) " >&6
15101 else
15102   lt_cv_prog_compiler_rtti_exceptions=no
15103    ac_outfile=conftest.$ac_objext
15104    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15105    lt_compiler_flag="-fno-rtti -fno-exceptions"
15106    # Insert the option either (1) after the last *FLAGS variable, or
15107    # (2) before a word containing "conftest.", or (3) at the end.
15108    # Note that $ac_compile itself does not contain backslashes and begins
15109    # with a dollar sign (not a hyphen), so the echo should work correctly.
15110    # The option is referenced via a variable to avoid confusing sed.
15111    lt_compile=`echo "$ac_compile" | $SED \
15112    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15113    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15114    -e 's:$: $lt_compiler_flag:'`
15115    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15116    (eval "$lt_compile" 2>conftest.err)
15117    ac_status=$?
15118    cat conftest.err >&5
15119    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120    if (exit $ac_status) && test -s "$ac_outfile"; then
15121      # The compiler can only warn and ignore the option if not recognized
15122      # So say no if there are warnings other than the usual output.
15123      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15124      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15125      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15126        lt_cv_prog_compiler_rtti_exceptions=yes
15127      fi
15128    fi
15129    $RM conftest*
15130
15131 fi
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15133 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15134
15135 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15136     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15137 else
15138     :
15139 fi
15140
15141 fi
15142
15143
15144
15145
15146
15147
15148   lt_prog_compiler_wl=
15149 lt_prog_compiler_pic=
15150 lt_prog_compiler_static=
15151
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15153 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15154
15155   if test "$GCC" = yes; then
15156     lt_prog_compiler_wl='-Wl,'
15157     lt_prog_compiler_static='-static'
15158
15159     case $host_os in
15160       aix*)
15161       # All AIX code is PIC.
15162       if test "$host_cpu" = ia64; then
15163         # AIX 5 now supports IA64 processor
15164         lt_prog_compiler_static='-Bstatic'
15165       fi
15166       ;;
15167
15168     amigaos*)
15169       case $host_cpu in
15170       powerpc)
15171             # see comment about AmigaOS4 .so support
15172             lt_prog_compiler_pic='-fPIC'
15173         ;;
15174       m68k)
15175             # FIXME: we need at least 68020 code to build shared libraries, but
15176             # adding the `-m68020' flag to GCC prevents building anything better,
15177             # like `-m68040'.
15178             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15179         ;;
15180       esac
15181       ;;
15182
15183     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15184       # PIC is the default for these OSes.
15185       ;;
15186
15187     mingw* | cygwin* | pw32* | os2* | cegcc*)
15188       # This hack is so that the source file can tell whether it is being
15189       # built for inclusion in a dll (and should export symbols for example).
15190       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15191       # (--disable-auto-import) libraries
15192       lt_prog_compiler_pic='-DDLL_EXPORT'
15193       ;;
15194
15195     darwin* | rhapsody*)
15196       # PIC is the default on this platform
15197       # Common symbols not allowed in MH_DYLIB files
15198       lt_prog_compiler_pic='-fno-common'
15199       ;;
15200
15201     haiku*)
15202       # PIC is the default for Haiku.
15203       # The "-static" flag exists, but is broken.
15204       lt_prog_compiler_static=
15205       ;;
15206
15207     hpux*)
15208       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15209       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15210       # sets the default TLS model and affects inlining.
15211       case $host_cpu in
15212       hppa*64*)
15213         # +Z the default
15214         ;;
15215       *)
15216         lt_prog_compiler_pic='-fPIC'
15217         ;;
15218       esac
15219       ;;
15220
15221     interix[3-9]*)
15222       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15223       # Instead, we relocate shared libraries at runtime.
15224       ;;
15225
15226     msdosdjgpp*)
15227       # Just because we use GCC doesn't mean we suddenly get shared libraries
15228       # on systems that don't support them.
15229       lt_prog_compiler_can_build_shared=no
15230       enable_shared=no
15231       ;;
15232
15233     *nto* | *qnx*)
15234       # QNX uses GNU C++, but need to define -shared option too, otherwise
15235       # it will coredump.
15236       lt_prog_compiler_pic='-fPIC -shared'
15237       ;;
15238
15239     sysv4*MP*)
15240       if test -d /usr/nec; then
15241         lt_prog_compiler_pic=-Kconform_pic
15242       fi
15243       ;;
15244
15245     *)
15246       lt_prog_compiler_pic='-fPIC'
15247       ;;
15248     esac
15249
15250     case $cc_basename in
15251     nvcc*) # Cuda Compiler Driver 2.2
15252       lt_prog_compiler_wl='-Xlinker '
15253       lt_prog_compiler_pic='-Xcompiler -fPIC'
15254       ;;
15255     esac
15256   else
15257     # PORTME Check for flag to pass linker flags through the system compiler.
15258     case $host_os in
15259     aix*)
15260       lt_prog_compiler_wl='-Wl,'
15261       if test "$host_cpu" = ia64; then
15262         # AIX 5 now supports IA64 processor
15263         lt_prog_compiler_static='-Bstatic'
15264       else
15265         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15266       fi
15267       ;;
15268
15269     mingw* | cygwin* | pw32* | os2* | cegcc*)
15270       # This hack is so that the source file can tell whether it is being
15271       # built for inclusion in a dll (and should export symbols for example).
15272       lt_prog_compiler_pic='-DDLL_EXPORT'
15273       ;;
15274
15275     hpux9* | hpux10* | hpux11*)
15276       lt_prog_compiler_wl='-Wl,'
15277       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15278       # not for PA HP-UX.
15279       case $host_cpu in
15280       hppa*64*|ia64*)
15281         # +Z the default
15282         ;;
15283       *)
15284         lt_prog_compiler_pic='+Z'
15285         ;;
15286       esac
15287       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15288       lt_prog_compiler_static='${wl}-a ${wl}archive'
15289       ;;
15290
15291     irix5* | irix6* | nonstopux*)
15292       lt_prog_compiler_wl='-Wl,'
15293       # PIC (with -KPIC) is the default.
15294       lt_prog_compiler_static='-non_shared'
15295       ;;
15296
15297     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15298       case $cc_basename in
15299       # old Intel for x86_64 which still supported -KPIC.
15300       ecc*)
15301         lt_prog_compiler_wl='-Wl,'
15302         lt_prog_compiler_pic='-KPIC'
15303         lt_prog_compiler_static='-static'
15304         ;;
15305       # icc used to be incompatible with GCC.
15306       # ICC 10 doesn't accept -KPIC any more.
15307       icc* | ifort*)
15308         lt_prog_compiler_wl='-Wl,'
15309         lt_prog_compiler_pic='-fPIC'
15310         lt_prog_compiler_static='-static'
15311         ;;
15312       # Lahey Fortran 8.1.
15313       lf95*)
15314         lt_prog_compiler_wl='-Wl,'
15315         lt_prog_compiler_pic='--shared'
15316         lt_prog_compiler_static='--static'
15317         ;;
15318       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15319         # Portland Group compilers (*not* the Pentium gcc compiler,
15320         # which looks to be a dead project)
15321         lt_prog_compiler_wl='-Wl,'
15322         lt_prog_compiler_pic='-fpic'
15323         lt_prog_compiler_static='-Bstatic'
15324         ;;
15325       ccc*)
15326         lt_prog_compiler_wl='-Wl,'
15327         # All Alpha code is PIC.
15328         lt_prog_compiler_static='-non_shared'
15329         ;;
15330       xl* | bgxl* | bgf* | mpixl*)
15331         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15332         lt_prog_compiler_wl='-Wl,'
15333         lt_prog_compiler_pic='-qpic'
15334         lt_prog_compiler_static='-qstaticlink'
15335         ;;
15336       *)
15337         case `$CC -V 2>&1 | sed 5q` in
15338         *Sun\ F* | *Sun*Fortran*)
15339           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15340           lt_prog_compiler_pic='-KPIC'
15341           lt_prog_compiler_static='-Bstatic'
15342           lt_prog_compiler_wl=''
15343           ;;
15344         *Sun\ C*)
15345           # Sun C 5.9
15346           lt_prog_compiler_pic='-KPIC'
15347           lt_prog_compiler_static='-Bstatic'
15348           lt_prog_compiler_wl='-Wl,'
15349           ;;
15350         esac
15351         ;;
15352       esac
15353       ;;
15354
15355     newsos6)
15356       lt_prog_compiler_pic='-KPIC'
15357       lt_prog_compiler_static='-Bstatic'
15358       ;;
15359
15360     *nto* | *qnx*)
15361       # QNX uses GNU C++, but need to define -shared option too, otherwise
15362       # it will coredump.
15363       lt_prog_compiler_pic='-fPIC -shared'
15364       ;;
15365
15366     osf3* | osf4* | osf5*)
15367       lt_prog_compiler_wl='-Wl,'
15368       # All OSF/1 code is PIC.
15369       lt_prog_compiler_static='-non_shared'
15370       ;;
15371
15372     rdos*)
15373       lt_prog_compiler_static='-non_shared'
15374       ;;
15375
15376     solaris*)
15377       lt_prog_compiler_pic='-KPIC'
15378       lt_prog_compiler_static='-Bstatic'
15379       case $cc_basename in
15380       f77* | f90* | f95*)
15381         lt_prog_compiler_wl='-Qoption ld ';;
15382       *)
15383         lt_prog_compiler_wl='-Wl,';;
15384       esac
15385       ;;
15386
15387     sunos4*)
15388       lt_prog_compiler_wl='-Qoption ld '
15389       lt_prog_compiler_pic='-PIC'
15390       lt_prog_compiler_static='-Bstatic'
15391       ;;
15392
15393     sysv4 | sysv4.2uw2* | sysv4.3*)
15394       lt_prog_compiler_wl='-Wl,'
15395       lt_prog_compiler_pic='-KPIC'
15396       lt_prog_compiler_static='-Bstatic'
15397       ;;
15398
15399     sysv4*MP*)
15400       if test -d /usr/nec ;then
15401         lt_prog_compiler_pic='-Kconform_pic'
15402         lt_prog_compiler_static='-Bstatic'
15403       fi
15404       ;;
15405
15406     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15407       lt_prog_compiler_wl='-Wl,'
15408       lt_prog_compiler_pic='-KPIC'
15409       lt_prog_compiler_static='-Bstatic'
15410       ;;
15411
15412     unicos*)
15413       lt_prog_compiler_wl='-Wl,'
15414       lt_prog_compiler_can_build_shared=no
15415       ;;
15416
15417     uts4*)
15418       lt_prog_compiler_pic='-pic'
15419       lt_prog_compiler_static='-Bstatic'
15420       ;;
15421
15422     *)
15423       lt_prog_compiler_can_build_shared=no
15424       ;;
15425     esac
15426   fi
15427
15428 case $host_os in
15429   # For platforms which do not support PIC, -DPIC is meaningless:
15430   *djgpp*)
15431     lt_prog_compiler_pic=
15432     ;;
15433   *)
15434     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15435     ;;
15436 esac
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15438 $as_echo "$lt_prog_compiler_pic" >&6; }
15439
15440
15441
15442
15443
15444
15445 #
15446 # Check to make sure the PIC flag actually works.
15447 #
15448 if test -n "$lt_prog_compiler_pic"; then
15449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15450 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15451 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15452   $as_echo_n "(cached) " >&6
15453 else
15454   lt_cv_prog_compiler_pic_works=no
15455    ac_outfile=conftest.$ac_objext
15456    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15457    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15458    # Insert the option either (1) after the last *FLAGS variable, or
15459    # (2) before a word containing "conftest.", or (3) at the end.
15460    # Note that $ac_compile itself does not contain backslashes and begins
15461    # with a dollar sign (not a hyphen), so the echo should work correctly.
15462    # The option is referenced via a variable to avoid confusing sed.
15463    lt_compile=`echo "$ac_compile" | $SED \
15464    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15465    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15466    -e 's:$: $lt_compiler_flag:'`
15467    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15468    (eval "$lt_compile" 2>conftest.err)
15469    ac_status=$?
15470    cat conftest.err >&5
15471    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472    if (exit $ac_status) && test -s "$ac_outfile"; then
15473      # The compiler can only warn and ignore the option if not recognized
15474      # So say no if there are warnings other than the usual output.
15475      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15476      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15477      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15478        lt_cv_prog_compiler_pic_works=yes
15479      fi
15480    fi
15481    $RM conftest*
15482
15483 fi
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15485 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15486
15487 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15488     case $lt_prog_compiler_pic in
15489      "" | " "*) ;;
15490      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15491      esac
15492 else
15493     lt_prog_compiler_pic=
15494      lt_prog_compiler_can_build_shared=no
15495 fi
15496
15497 fi
15498
15499
15500
15501
15502
15503
15504 #
15505 # Check to make sure the static flag actually works.
15506 #
15507 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15509 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15510 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15511   $as_echo_n "(cached) " >&6
15512 else
15513   lt_cv_prog_compiler_static_works=no
15514    save_LDFLAGS="$LDFLAGS"
15515    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15516    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15517    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15518      # The linker can only warn and ignore the option if not recognized
15519      # So say no if there are warnings
15520      if test -s conftest.err; then
15521        # Append any errors to the config.log.
15522        cat conftest.err 1>&5
15523        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15524        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15525        if diff conftest.exp conftest.er2 >/dev/null; then
15526          lt_cv_prog_compiler_static_works=yes
15527        fi
15528      else
15529        lt_cv_prog_compiler_static_works=yes
15530      fi
15531    fi
15532    $RM -r conftest*
15533    LDFLAGS="$save_LDFLAGS"
15534
15535 fi
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15537 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15538
15539 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15540     :
15541 else
15542     lt_prog_compiler_static=
15543 fi
15544
15545
15546
15547
15548
15549
15550
15551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15552 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15553 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15554   $as_echo_n "(cached) " >&6
15555 else
15556   lt_cv_prog_compiler_c_o=no
15557    $RM -r conftest 2>/dev/null
15558    mkdir conftest
15559    cd conftest
15560    mkdir out
15561    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15562
15563    lt_compiler_flag="-o out/conftest2.$ac_objext"
15564    # Insert the option either (1) after the last *FLAGS variable, or
15565    # (2) before a word containing "conftest.", or (3) at the end.
15566    # Note that $ac_compile itself does not contain backslashes and begins
15567    # with a dollar sign (not a hyphen), so the echo should work correctly.
15568    lt_compile=`echo "$ac_compile" | $SED \
15569    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15570    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15571    -e 's:$: $lt_compiler_flag:'`
15572    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15573    (eval "$lt_compile" 2>out/conftest.err)
15574    ac_status=$?
15575    cat out/conftest.err >&5
15576    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15578    then
15579      # The compiler can only warn and ignore the option if not recognized
15580      # So say no if there are warnings
15581      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15582      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15583      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15584        lt_cv_prog_compiler_c_o=yes
15585      fi
15586    fi
15587    chmod u+w . 2>&5
15588    $RM conftest*
15589    # SGI C++ compiler will create directory out/ii_files/ for
15590    # template instantiation
15591    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15592    $RM out/* && rmdir out
15593    cd ..
15594    $RM -r conftest
15595    $RM conftest*
15596
15597 fi
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15599 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15600
15601
15602
15603
15604
15605
15606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15607 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15608 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15609   $as_echo_n "(cached) " >&6
15610 else
15611   lt_cv_prog_compiler_c_o=no
15612    $RM -r conftest 2>/dev/null
15613    mkdir conftest
15614    cd conftest
15615    mkdir out
15616    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15617
15618    lt_compiler_flag="-o out/conftest2.$ac_objext"
15619    # Insert the option either (1) after the last *FLAGS variable, or
15620    # (2) before a word containing "conftest.", or (3) at the end.
15621    # Note that $ac_compile itself does not contain backslashes and begins
15622    # with a dollar sign (not a hyphen), so the echo should work correctly.
15623    lt_compile=`echo "$ac_compile" | $SED \
15624    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15625    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15626    -e 's:$: $lt_compiler_flag:'`
15627    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15628    (eval "$lt_compile" 2>out/conftest.err)
15629    ac_status=$?
15630    cat out/conftest.err >&5
15631    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15633    then
15634      # The compiler can only warn and ignore the option if not recognized
15635      # So say no if there are warnings
15636      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15637      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15638      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15639        lt_cv_prog_compiler_c_o=yes
15640      fi
15641    fi
15642    chmod u+w . 2>&5
15643    $RM conftest*
15644    # SGI C++ compiler will create directory out/ii_files/ for
15645    # template instantiation
15646    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15647    $RM out/* && rmdir out
15648    cd ..
15649    $RM -r conftest
15650    $RM conftest*
15651
15652 fi
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15654 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15655
15656
15657
15658
15659 hard_links="nottested"
15660 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15661   # do not overwrite the value of need_locks provided by the user
15662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15663 $as_echo_n "checking if we can lock with hard links... " >&6; }
15664   hard_links=yes
15665   $RM conftest*
15666   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15667   touch conftest.a
15668   ln conftest.a conftest.b 2>&5 || hard_links=no
15669   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15671 $as_echo "$hard_links" >&6; }
15672   if test "$hard_links" = no; then
15673     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15674 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15675     need_locks=warn
15676   fi
15677 else
15678   need_locks=no
15679 fi
15680
15681
15682
15683
15684
15685
15686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15687 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15688
15689   runpath_var=
15690   allow_undefined_flag=
15691   always_export_symbols=no
15692   archive_cmds=
15693   archive_expsym_cmds=
15694   compiler_needs_object=no
15695   enable_shared_with_static_runtimes=no
15696   export_dynamic_flag_spec=
15697   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15698   hardcode_automatic=no
15699   hardcode_direct=no
15700   hardcode_direct_absolute=no
15701   hardcode_libdir_flag_spec=
15702   hardcode_libdir_flag_spec_ld=
15703   hardcode_libdir_separator=
15704   hardcode_minus_L=no
15705   hardcode_shlibpath_var=unsupported
15706   inherit_rpath=no
15707   link_all_deplibs=unknown
15708   module_cmds=
15709   module_expsym_cmds=
15710   old_archive_from_new_cmds=
15711   old_archive_from_expsyms_cmds=
15712   thread_safe_flag_spec=
15713   whole_archive_flag_spec=
15714   # include_expsyms should be a list of space-separated symbols to be *always*
15715   # included in the symbol list
15716   include_expsyms=
15717   # exclude_expsyms can be an extended regexp of symbols to exclude
15718   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15719   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15720   # as well as any symbol that contains `d'.
15721   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15722   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15723   # platforms (ab)use it in PIC code, but their linkers get confused if
15724   # the symbol is explicitly referenced.  Since portable code cannot
15725   # rely on this symbol name, it's probably fine to never include it in
15726   # preloaded symbol tables.
15727   # Exclude shared library initialization/finalization symbols.
15728   extract_expsyms_cmds=
15729
15730   case $host_os in
15731   cygwin* | mingw* | pw32* | cegcc*)
15732     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15733     # When not using gcc, we currently assume that we are using
15734     # Microsoft Visual C++.
15735     if test "$GCC" != yes; then
15736       with_gnu_ld=no
15737     fi
15738     ;;
15739   interix*)
15740     # we just hope/assume this is gcc and not c89 (= MSVC++)
15741     with_gnu_ld=yes
15742     ;;
15743   openbsd*)
15744     with_gnu_ld=no
15745     ;;
15746   esac
15747
15748   ld_shlibs=yes
15749
15750   # On some targets, GNU ld is compatible enough with the native linker
15751   # that we're better off using the native interface for both.
15752   lt_use_gnu_ld_interface=no
15753   if test "$with_gnu_ld" = yes; then
15754     case $host_os in
15755       aix*)
15756         # The AIX port of GNU ld has always aspired to compatibility
15757         # with the native linker.  However, as the warning in the GNU ld
15758         # block says, versions before 2.19.5* couldn't really create working
15759         # shared libraries, regardless of the interface used.
15760         case `$LD -v 2>&1` in
15761           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15762           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15763           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15764           *)
15765             lt_use_gnu_ld_interface=yes
15766             ;;
15767         esac
15768         ;;
15769       *)
15770         lt_use_gnu_ld_interface=yes
15771         ;;
15772     esac
15773   fi
15774
15775   if test "$lt_use_gnu_ld_interface" = yes; then
15776     # If archive_cmds runs LD, not CC, wlarc should be empty
15777     wlarc='${wl}'
15778
15779     # Set some defaults for GNU ld with shared library support. These
15780     # are reset later if shared libraries are not supported. Putting them
15781     # here allows them to be overridden if necessary.
15782     runpath_var=LD_RUN_PATH
15783     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15784     export_dynamic_flag_spec='${wl}--export-dynamic'
15785     # ancient GNU ld didn't support --whole-archive et. al.
15786     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15787       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15788     else
15789       whole_archive_flag_spec=
15790     fi
15791     supports_anon_versioning=no
15792     case `$LD -v 2>&1` in
15793       *GNU\ gold*) supports_anon_versioning=yes ;;
15794       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15795       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15796       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15797       *\ 2.11.*) ;; # other 2.11 versions
15798       *) supports_anon_versioning=yes ;;
15799     esac
15800
15801     # See if GNU ld supports shared libraries.
15802     case $host_os in
15803     aix[3-9]*)
15804       # On AIX/PPC, the GNU linker is very broken
15805       if test "$host_cpu" != ia64; then
15806         ld_shlibs=no
15807         cat <<_LT_EOF 1>&2
15808
15809 *** Warning: the GNU linker, at least up to release 2.19, is reported
15810 *** to be unable to reliably create shared libraries on AIX.
15811 *** Therefore, libtool is disabling shared libraries support.  If you
15812 *** really care for shared libraries, you may want to install binutils
15813 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15814 *** You will then need to restart the configuration process.
15815
15816 _LT_EOF
15817       fi
15818       ;;
15819
15820     amigaos*)
15821       case $host_cpu in
15822       powerpc)
15823             # see comment about AmigaOS4 .so support
15824             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15825             archive_expsym_cmds=''
15826         ;;
15827       m68k)
15828             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)'
15829             hardcode_libdir_flag_spec='-L$libdir'
15830             hardcode_minus_L=yes
15831         ;;
15832       esac
15833       ;;
15834
15835     beos*)
15836       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15837         allow_undefined_flag=unsupported
15838         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15839         # support --undefined.  This deserves some investigation.  FIXME
15840         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15841       else
15842         ld_shlibs=no
15843       fi
15844       ;;
15845
15846     cygwin* | mingw* | pw32* | cegcc*)
15847       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15848       # as there is no search path for DLLs.
15849       hardcode_libdir_flag_spec='-L$libdir'
15850       export_dynamic_flag_spec='${wl}--export-all-symbols'
15851       allow_undefined_flag=unsupported
15852       always_export_symbols=no
15853       enable_shared_with_static_runtimes=yes
15854       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15855
15856       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15857         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15858         # If the export-symbols file already is a .def file (1st line
15859         # is EXPORTS), use it as is; otherwise, prepend...
15860         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15861           cp $export_symbols $output_objdir/$soname.def;
15862         else
15863           echo EXPORTS > $output_objdir/$soname.def;
15864           cat $export_symbols >> $output_objdir/$soname.def;
15865         fi~
15866         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15867       else
15868         ld_shlibs=no
15869       fi
15870       ;;
15871
15872     haiku*)
15873       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15874       link_all_deplibs=yes
15875       ;;
15876
15877     interix[3-9]*)
15878       hardcode_direct=no
15879       hardcode_shlibpath_var=no
15880       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15881       export_dynamic_flag_spec='${wl}-E'
15882       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15883       # Instead, shared libraries are loaded at an image base (0x10000000 by
15884       # default) and relocated if they conflict, which is a slow very memory
15885       # consuming and fragmenting process.  To avoid this, we pick a random,
15886       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15887       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15888       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15889       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'
15890       ;;
15891
15892     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15893       tmp_diet=no
15894       if test "$host_os" = linux-dietlibc; then
15895         case $cc_basename in
15896           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15897         esac
15898       fi
15899       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15900          && test "$tmp_diet" = no
15901       then
15902         tmp_addflag=
15903         tmp_sharedflag='-shared'
15904         case $cc_basename,$host_cpu in
15905         pgcc*)                          # Portland Group C compiler
15906           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'
15907           tmp_addflag=' $pic_flag'
15908           ;;
15909         pgf77* | pgf90* | pgf95* | pgfortran*)
15910                                         # Portland Group f77 and f90 compilers
15911           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'
15912           tmp_addflag=' $pic_flag -Mnomain' ;;
15913         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15914           tmp_addflag=' -i_dynamic' ;;
15915         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15916           tmp_addflag=' -i_dynamic -nofor_main' ;;
15917         ifc* | ifort*)                  # Intel Fortran compiler
15918           tmp_addflag=' -nofor_main' ;;
15919         lf95*)                          # Lahey Fortran 8.1
15920           whole_archive_flag_spec=
15921           tmp_sharedflag='--shared' ;;
15922         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15923           tmp_sharedflag='-qmkshrobj'
15924           tmp_addflag= ;;
15925         nvcc*)  # Cuda Compiler Driver 2.2
15926           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'
15927           compiler_needs_object=yes
15928           ;;
15929         esac
15930         case `$CC -V 2>&1 | sed 5q` in
15931         *Sun\ C*)                       # Sun C 5.9
15932           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'
15933           compiler_needs_object=yes
15934           tmp_sharedflag='-G' ;;
15935         *Sun\ F*)                       # Sun Fortran 8.3
15936           tmp_sharedflag='-G' ;;
15937         esac
15938         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15939
15940         if test "x$supports_anon_versioning" = xyes; then
15941           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15942             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15943             echo "local: *; };" >> $output_objdir/$libname.ver~
15944             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15945         fi
15946
15947         case $cc_basename in
15948         xlf* | bgf* | bgxlf* | mpixlf*)
15949           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15950           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15951           hardcode_libdir_flag_spec=
15952           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15953           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15954           if test "x$supports_anon_versioning" = xyes; then
15955             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15956               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15957               echo "local: *; };" >> $output_objdir/$libname.ver~
15958               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15959           fi
15960           ;;
15961         esac
15962       else
15963         ld_shlibs=no
15964       fi
15965       ;;
15966
15967     netbsd*)
15968       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15969         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15970         wlarc=
15971       else
15972         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15973         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15974       fi
15975       ;;
15976
15977     solaris*)
15978       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15979         ld_shlibs=no
15980         cat <<_LT_EOF 1>&2
15981
15982 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15983 *** create shared libraries on Solaris systems.  Therefore, libtool
15984 *** is disabling shared libraries support.  We urge you to upgrade GNU
15985 *** binutils to release 2.9.1 or newer.  Another option is to modify
15986 *** your PATH or compiler configuration so that the native linker is
15987 *** used, and then restart.
15988
15989 _LT_EOF
15990       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15991         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15992         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15993       else
15994         ld_shlibs=no
15995       fi
15996       ;;
15997
15998     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15999       case `$LD -v 2>&1` in
16000         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16001         ld_shlibs=no
16002         cat <<_LT_EOF 1>&2
16003
16004 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16005 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16006 *** is disabling shared libraries support.  We urge you to upgrade GNU
16007 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16008 *** your PATH or compiler configuration so that the native linker is
16009 *** used, and then restart.
16010
16011 _LT_EOF
16012         ;;
16013         *)
16014           # For security reasons, it is highly recommended that you always
16015           # use absolute paths for naming shared libraries, and exclude the
16016           # DT_RUNPATH tag from executables and libraries.  But doing so
16017           # requires that you compile everything twice, which is a pain.
16018           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16019             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16020             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16021             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16022           else
16023             ld_shlibs=no
16024           fi
16025         ;;
16026       esac
16027       ;;
16028
16029     sunos4*)
16030       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16031       wlarc=
16032       hardcode_direct=yes
16033       hardcode_shlibpath_var=no
16034       ;;
16035
16036     *)
16037       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16038         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16039         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16040       else
16041         ld_shlibs=no
16042       fi
16043       ;;
16044     esac
16045
16046     if test "$ld_shlibs" = no; then
16047       runpath_var=
16048       hardcode_libdir_flag_spec=
16049       export_dynamic_flag_spec=
16050       whole_archive_flag_spec=
16051     fi
16052   else
16053     # PORTME fill in a description of your system's linker (not GNU ld)
16054     case $host_os in
16055     aix3*)
16056       allow_undefined_flag=unsupported
16057       always_export_symbols=yes
16058       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'
16059       # Note: this linker hardcodes the directories in LIBPATH if there
16060       # are no directories specified by -L.
16061       hardcode_minus_L=yes
16062       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16063         # Neither direct hardcoding nor static linking is supported with a
16064         # broken collect2.
16065         hardcode_direct=unsupported
16066       fi
16067       ;;
16068
16069     aix[4-9]*)
16070       if test "$host_cpu" = ia64; then
16071         # On IA64, the linker does run time linking by default, so we don't
16072         # have to do anything special.
16073         aix_use_runtimelinking=no
16074         exp_sym_flag='-Bexport'
16075         no_entry_flag=""
16076       else
16077         # If we're using GNU nm, then we don't want the "-C" option.
16078         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16079         # Also, AIX nm treats weak defined symbols like other global
16080         # defined symbols, whereas GNU nm marks them as "W".
16081         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16082           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'
16083         else
16084           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16085         fi
16086         aix_use_runtimelinking=no
16087
16088         # Test if we are trying to use run time linking or normal
16089         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16090         # need to do runtime linking.
16091         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16092           for ld_flag in $LDFLAGS; do
16093           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16094             aix_use_runtimelinking=yes
16095             break
16096           fi
16097           done
16098           ;;
16099         esac
16100
16101         exp_sym_flag='-bexport'
16102         no_entry_flag='-bnoentry'
16103       fi
16104
16105       # When large executables or shared objects are built, AIX ld can
16106       # have problems creating the table of contents.  If linking a library
16107       # or program results in "error TOC overflow" add -mminimal-toc to
16108       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16109       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16110
16111       archive_cmds=''
16112       hardcode_direct=yes
16113       hardcode_direct_absolute=yes
16114       hardcode_libdir_separator=':'
16115       link_all_deplibs=yes
16116       file_list_spec='${wl}-f,'
16117
16118       if test "$GCC" = yes; then
16119         case $host_os in aix4.[012]|aix4.[012].*)
16120         # We only want to do this on AIX 4.2 and lower, the check
16121         # below for broken collect2 doesn't work under 4.3+
16122           collect2name=`${CC} -print-prog-name=collect2`
16123           if test -f "$collect2name" &&
16124            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16125           then
16126           # We have reworked collect2
16127           :
16128           else
16129           # We have old collect2
16130           hardcode_direct=unsupported
16131           # It fails to find uninstalled libraries when the uninstalled
16132           # path is not listed in the libpath.  Setting hardcode_minus_L
16133           # to unsupported forces relinking
16134           hardcode_minus_L=yes
16135           hardcode_libdir_flag_spec='-L$libdir'
16136           hardcode_libdir_separator=
16137           fi
16138           ;;
16139         esac
16140         shared_flag='-shared'
16141         if test "$aix_use_runtimelinking" = yes; then
16142           shared_flag="$shared_flag "'${wl}-G'
16143         fi
16144       else
16145         # not using gcc
16146         if test "$host_cpu" = ia64; then
16147         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16148         # chokes on -Wl,-G. The following line is correct:
16149           shared_flag='-G'
16150         else
16151           if test "$aix_use_runtimelinking" = yes; then
16152             shared_flag='${wl}-G'
16153           else
16154             shared_flag='${wl}-bM:SRE'
16155           fi
16156         fi
16157       fi
16158
16159       export_dynamic_flag_spec='${wl}-bexpall'
16160       # It seems that -bexpall does not export symbols beginning with
16161       # underscore (_), so it is better to generate a list of symbols to export.
16162       always_export_symbols=yes
16163       if test "$aix_use_runtimelinking" = yes; then
16164         # Warning - without using the other runtime loading flags (-brtl),
16165         # -berok will link without error, but may produce a broken library.
16166         allow_undefined_flag='-berok'
16167         # Determine the default libpath from the value encoded in an
16168         # empty executable.
16169         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16170 /* end confdefs.h.  */
16171
16172 int
16173 main ()
16174 {
16175
16176   ;
16177   return 0;
16178 }
16179 _ACEOF
16180 if ac_fn_c_try_link "$LINENO"; then :
16181
16182 lt_aix_libpath_sed='
16183     /Import File Strings/,/^$/ {
16184         /^0/ {
16185             s/^0  *\(.*\)$/\1/
16186             p
16187         }
16188     }'
16189 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16190 # Check for a 64-bit object if we didn't find anything.
16191 if test -z "$aix_libpath"; then
16192   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16193 fi
16194 fi
16195 rm -f core conftest.err conftest.$ac_objext \
16196     conftest$ac_exeext conftest.$ac_ext
16197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16198
16199         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16200         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"
16201       else
16202         if test "$host_cpu" = ia64; then
16203           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16204           allow_undefined_flag="-z nodefs"
16205           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"
16206         else
16207          # Determine the default libpath from the value encoded in an
16208          # empty executable.
16209          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h.  */
16211
16212 int
16213 main ()
16214 {
16215
16216   ;
16217   return 0;
16218 }
16219 _ACEOF
16220 if ac_fn_c_try_link "$LINENO"; then :
16221
16222 lt_aix_libpath_sed='
16223     /Import File Strings/,/^$/ {
16224         /^0/ {
16225             s/^0  *\(.*\)$/\1/
16226             p
16227         }
16228     }'
16229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16230 # Check for a 64-bit object if we didn't find anything.
16231 if test -z "$aix_libpath"; then
16232   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16233 fi
16234 fi
16235 rm -f core conftest.err conftest.$ac_objext \
16236     conftest$ac_exeext conftest.$ac_ext
16237 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16238
16239          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16240           # Warning - without using the other run time loading flags,
16241           # -berok will link without error, but may produce a broken library.
16242           no_undefined_flag=' ${wl}-bernotok'
16243           allow_undefined_flag=' ${wl}-berok'
16244           if test "$with_gnu_ld" = yes; then
16245             # We only use this code for GNU lds that support --whole-archive.
16246             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16247           else
16248             # Exported symbols can be pulled into shared objects from archives
16249             whole_archive_flag_spec='$convenience'
16250           fi
16251           archive_cmds_need_lc=yes
16252           # This is similar to how AIX traditionally builds its shared libraries.
16253           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'
16254         fi
16255       fi
16256       ;;
16257
16258     amigaos*)
16259       case $host_cpu in
16260       powerpc)
16261             # see comment about AmigaOS4 .so support
16262             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16263             archive_expsym_cmds=''
16264         ;;
16265       m68k)
16266             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)'
16267             hardcode_libdir_flag_spec='-L$libdir'
16268             hardcode_minus_L=yes
16269         ;;
16270       esac
16271       ;;
16272
16273     bsdi[45]*)
16274       export_dynamic_flag_spec=-rdynamic
16275       ;;
16276
16277     cygwin* | mingw* | pw32* | cegcc*)
16278       # When not using gcc, we currently assume that we are using
16279       # Microsoft Visual C++.
16280       # hardcode_libdir_flag_spec is actually meaningless, as there is
16281       # no search path for DLLs.
16282       hardcode_libdir_flag_spec=' '
16283       allow_undefined_flag=unsupported
16284       # Tell ltmain to make .lib files, not .a files.
16285       libext=lib
16286       # Tell ltmain to make .dll files, not .so files.
16287       shrext_cmds=".dll"
16288       # FIXME: Setting linknames here is a bad hack.
16289       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16290       # The linker will automatically build a .lib file if we build a DLL.
16291       old_archive_from_new_cmds='true'
16292       # FIXME: Should let the user specify the lib program.
16293       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16294       fix_srcfile_path='`cygpath -w "$srcfile"`'
16295       enable_shared_with_static_runtimes=yes
16296       ;;
16297
16298     darwin* | rhapsody*)
16299
16300
16301   archive_cmds_need_lc=no
16302   hardcode_direct=no
16303   hardcode_automatic=yes
16304   hardcode_shlibpath_var=unsupported
16305   if test "$lt_cv_ld_force_load" = "yes"; then
16306     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\"`'
16307   else
16308     whole_archive_flag_spec=''
16309   fi
16310   link_all_deplibs=yes
16311   allow_undefined_flag="$_lt_dar_allow_undefined"
16312   case $cc_basename in
16313      ifort*) _lt_dar_can_shared=yes ;;
16314      *) _lt_dar_can_shared=$GCC ;;
16315   esac
16316   if test "$_lt_dar_can_shared" = "yes"; then
16317     output_verbose_link_cmd=func_echo_all
16318     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16319     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16320     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}"
16321     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}"
16322
16323   else
16324   ld_shlibs=no
16325   fi
16326
16327       ;;
16328
16329     dgux*)
16330       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16331       hardcode_libdir_flag_spec='-L$libdir'
16332       hardcode_shlibpath_var=no
16333       ;;
16334
16335     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16336     # support.  Future versions do this automatically, but an explicit c++rt0.o
16337     # does not break anything, and helps significantly (at the cost of a little
16338     # extra space).
16339     freebsd2.2*)
16340       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16341       hardcode_libdir_flag_spec='-R$libdir'
16342       hardcode_direct=yes
16343       hardcode_shlibpath_var=no
16344       ;;
16345
16346     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16347     freebsd2.*)
16348       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16349       hardcode_direct=yes
16350       hardcode_minus_L=yes
16351       hardcode_shlibpath_var=no
16352       ;;
16353
16354     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16355     freebsd* | dragonfly*)
16356       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16357       hardcode_libdir_flag_spec='-R$libdir'
16358       hardcode_direct=yes
16359       hardcode_shlibpath_var=no
16360       ;;
16361
16362     hpux9*)
16363       if test "$GCC" = yes; then
16364         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'
16365       else
16366         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'
16367       fi
16368       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16369       hardcode_libdir_separator=:
16370       hardcode_direct=yes
16371
16372       # hardcode_minus_L: Not really in the search PATH,
16373       # but as the default location of the library.
16374       hardcode_minus_L=yes
16375       export_dynamic_flag_spec='${wl}-E'
16376       ;;
16377
16378     hpux10*)
16379       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16380         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16381       else
16382         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16383       fi
16384       if test "$with_gnu_ld" = no; then
16385         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16386         hardcode_libdir_flag_spec_ld='+b $libdir'
16387         hardcode_libdir_separator=:
16388         hardcode_direct=yes
16389         hardcode_direct_absolute=yes
16390         export_dynamic_flag_spec='${wl}-E'
16391         # hardcode_minus_L: Not really in the search PATH,
16392         # but as the default location of the library.
16393         hardcode_minus_L=yes
16394       fi
16395       ;;
16396
16397     hpux11*)
16398       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16399         case $host_cpu in
16400         hppa*64*)
16401           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16402           ;;
16403         ia64*)
16404           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16405           ;;
16406         *)
16407           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16408           ;;
16409         esac
16410       else
16411         case $host_cpu in
16412         hppa*64*)
16413           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16414           ;;
16415         ia64*)
16416           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16417           ;;
16418         *)
16419
16420           # Older versions of the 11.00 compiler do not understand -b yet
16421           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16422           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16423 $as_echo_n "checking if $CC understands -b... " >&6; }
16424 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16425   $as_echo_n "(cached) " >&6
16426 else
16427   lt_cv_prog_compiler__b=no
16428    save_LDFLAGS="$LDFLAGS"
16429    LDFLAGS="$LDFLAGS -b"
16430    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16431    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16432      # The linker can only warn and ignore the option if not recognized
16433      # So say no if there are warnings
16434      if test -s conftest.err; then
16435        # Append any errors to the config.log.
16436        cat conftest.err 1>&5
16437        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16438        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16439        if diff conftest.exp conftest.er2 >/dev/null; then
16440          lt_cv_prog_compiler__b=yes
16441        fi
16442      else
16443        lt_cv_prog_compiler__b=yes
16444      fi
16445    fi
16446    $RM -r conftest*
16447    LDFLAGS="$save_LDFLAGS"
16448
16449 fi
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16451 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16452
16453 if test x"$lt_cv_prog_compiler__b" = xyes; then
16454     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16455 else
16456     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16457 fi
16458
16459           ;;
16460         esac
16461       fi
16462       if test "$with_gnu_ld" = no; then
16463         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16464         hardcode_libdir_separator=:
16465
16466         case $host_cpu in
16467         hppa*64*|ia64*)
16468           hardcode_direct=no
16469           hardcode_shlibpath_var=no
16470           ;;
16471         *)
16472           hardcode_direct=yes
16473           hardcode_direct_absolute=yes
16474           export_dynamic_flag_spec='${wl}-E'
16475
16476           # hardcode_minus_L: Not really in the search PATH,
16477           # but as the default location of the library.
16478           hardcode_minus_L=yes
16479           ;;
16480         esac
16481       fi
16482       ;;
16483
16484     irix5* | irix6* | nonstopux*)
16485       if test "$GCC" = yes; then
16486         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'
16487         # Try to use the -exported_symbol ld option, if it does not
16488         # work, assume that -exports_file does not work either and
16489         # implicitly export all symbols.
16490         save_LDFLAGS="$LDFLAGS"
16491         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16492         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h.  */
16494 int foo(void) {}
16495 _ACEOF
16496 if ac_fn_c_try_link "$LINENO"; then :
16497   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'
16498
16499 fi
16500 rm -f core conftest.err conftest.$ac_objext \
16501     conftest$ac_exeext conftest.$ac_ext
16502         LDFLAGS="$save_LDFLAGS"
16503       else
16504         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'
16505         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'
16506       fi
16507       archive_cmds_need_lc='no'
16508       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16509       hardcode_libdir_separator=:
16510       inherit_rpath=yes
16511       link_all_deplibs=yes
16512       ;;
16513
16514     netbsd*)
16515       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16516         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16517       else
16518         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16519       fi
16520       hardcode_libdir_flag_spec='-R$libdir'
16521       hardcode_direct=yes
16522       hardcode_shlibpath_var=no
16523       ;;
16524
16525     newsos6)
16526       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16527       hardcode_direct=yes
16528       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16529       hardcode_libdir_separator=:
16530       hardcode_shlibpath_var=no
16531       ;;
16532
16533     *nto* | *qnx*)
16534       ;;
16535
16536     openbsd*)
16537       if test -f /usr/libexec/ld.so; then
16538         hardcode_direct=yes
16539         hardcode_shlibpath_var=no
16540         hardcode_direct_absolute=yes
16541         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16542           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16543           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16544           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16545           export_dynamic_flag_spec='${wl}-E'
16546         else
16547           case $host_os in
16548            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16549              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16550              hardcode_libdir_flag_spec='-R$libdir'
16551              ;;
16552            *)
16553              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16554              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16555              ;;
16556           esac
16557         fi
16558       else
16559         ld_shlibs=no
16560       fi
16561       ;;
16562
16563     os2*)
16564       hardcode_libdir_flag_spec='-L$libdir'
16565       hardcode_minus_L=yes
16566       allow_undefined_flag=unsupported
16567       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'
16568       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16569       ;;
16570
16571     osf3*)
16572       if test "$GCC" = yes; then
16573         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16574         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'
16575       else
16576         allow_undefined_flag=' -expect_unresolved \*'
16577         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'
16578       fi
16579       archive_cmds_need_lc='no'
16580       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16581       hardcode_libdir_separator=:
16582       ;;
16583
16584     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16585       if test "$GCC" = yes; then
16586         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16587         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'
16588         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16589       else
16590         allow_undefined_flag=' -expect_unresolved \*'
16591         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'
16592         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~
16593         $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'
16594
16595         # Both c and cxx compiler support -rpath directly
16596         hardcode_libdir_flag_spec='-rpath $libdir'
16597       fi
16598       archive_cmds_need_lc='no'
16599       hardcode_libdir_separator=:
16600       ;;
16601
16602     solaris*)
16603       no_undefined_flag=' -z defs'
16604       if test "$GCC" = yes; then
16605         wlarc='${wl}'
16606         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16607         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16608           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16609       else
16610         case `$CC -V 2>&1` in
16611         *"Compilers 5.0"*)
16612           wlarc=''
16613           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16614           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16615           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16616           ;;
16617         *)
16618           wlarc='${wl}'
16619           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16620           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16621           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16622           ;;
16623         esac
16624       fi
16625       hardcode_libdir_flag_spec='-R$libdir'
16626       hardcode_shlibpath_var=no
16627       case $host_os in
16628       solaris2.[0-5] | solaris2.[0-5].*) ;;
16629       *)
16630         # The compiler driver will combine and reorder linker options,
16631         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16632         # but is careful enough not to reorder.
16633         # Supported since Solaris 2.6 (maybe 2.5.1?)
16634         if test "$GCC" = yes; then
16635           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16636         else
16637           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16638         fi
16639         ;;
16640       esac
16641       link_all_deplibs=yes
16642       ;;
16643
16644     sunos4*)
16645       if test "x$host_vendor" = xsequent; then
16646         # Use $CC to link under sequent, because it throws in some extra .o
16647         # files that make .init and .fini sections work.
16648         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16649       else
16650         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16651       fi
16652       hardcode_libdir_flag_spec='-L$libdir'
16653       hardcode_direct=yes
16654       hardcode_minus_L=yes
16655       hardcode_shlibpath_var=no
16656       ;;
16657
16658     sysv4)
16659       case $host_vendor in
16660         sni)
16661           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662           hardcode_direct=yes # is this really true???
16663         ;;
16664         siemens)
16665           ## LD is ld it makes a PLAMLIB
16666           ## CC just makes a GrossModule.
16667           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16668           reload_cmds='$CC -r -o $output$reload_objs'
16669           hardcode_direct=no
16670         ;;
16671         motorola)
16672           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16673           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16674         ;;
16675       esac
16676       runpath_var='LD_RUN_PATH'
16677       hardcode_shlibpath_var=no
16678       ;;
16679
16680     sysv4.3*)
16681       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16682       hardcode_shlibpath_var=no
16683       export_dynamic_flag_spec='-Bexport'
16684       ;;
16685
16686     sysv4*MP*)
16687       if test -d /usr/nec; then
16688         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689         hardcode_shlibpath_var=no
16690         runpath_var=LD_RUN_PATH
16691         hardcode_runpath_var=yes
16692         ld_shlibs=yes
16693       fi
16694       ;;
16695
16696     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16697       no_undefined_flag='${wl}-z,text'
16698       archive_cmds_need_lc=no
16699       hardcode_shlibpath_var=no
16700       runpath_var='LD_RUN_PATH'
16701
16702       if test "$GCC" = yes; then
16703         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16704         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16705       else
16706         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16707         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16708       fi
16709       ;;
16710
16711     sysv5* | sco3.2v5* | sco5v6*)
16712       # Note: We can NOT use -z defs as we might desire, because we do not
16713       # link with -lc, and that would cause any symbols used from libc to
16714       # always be unresolved, which means just about no library would
16715       # ever link correctly.  If we're not using GNU ld we use -z text
16716       # though, which does catch some bad symbols but isn't as heavy-handed
16717       # as -z defs.
16718       no_undefined_flag='${wl}-z,text'
16719       allow_undefined_flag='${wl}-z,nodefs'
16720       archive_cmds_need_lc=no
16721       hardcode_shlibpath_var=no
16722       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16723       hardcode_libdir_separator=':'
16724       link_all_deplibs=yes
16725       export_dynamic_flag_spec='${wl}-Bexport'
16726       runpath_var='LD_RUN_PATH'
16727
16728       if test "$GCC" = yes; then
16729         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16730         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16731       else
16732         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16733         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16734       fi
16735       ;;
16736
16737     uts4*)
16738       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16739       hardcode_libdir_flag_spec='-L$libdir'
16740       hardcode_shlibpath_var=no
16741       ;;
16742
16743     *)
16744       ld_shlibs=no
16745       ;;
16746     esac
16747
16748     if test x$host_vendor = xsni; then
16749       case $host in
16750       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16751         export_dynamic_flag_spec='${wl}-Blargedynsym'
16752         ;;
16753       esac
16754     fi
16755   fi
16756
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16758 $as_echo "$ld_shlibs" >&6; }
16759 test "$ld_shlibs" = no && can_build_shared=no
16760
16761 with_gnu_ld=$with_gnu_ld
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777 #
16778 # Do we need to explicitly link libc?
16779 #
16780 case "x$archive_cmds_need_lc" in
16781 x|xyes)
16782   # Assume -lc should be added
16783   archive_cmds_need_lc=yes
16784
16785   if test "$enable_shared" = yes && test "$GCC" = yes; then
16786     case $archive_cmds in
16787     *'~'*)
16788       # FIXME: we may have to deal with multi-command sequences.
16789       ;;
16790     '$CC '*)
16791       # Test whether the compiler implicitly links with -lc since on some
16792       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16793       # to ld, don't add -lc before -lgcc.
16794       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16795 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16796 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16797   $as_echo_n "(cached) " >&6
16798 else
16799   $RM conftest*
16800         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16801
16802         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16803   (eval $ac_compile) 2>&5
16804   ac_status=$?
16805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16806   test $ac_status = 0; } 2>conftest.err; then
16807           soname=conftest
16808           lib=conftest
16809           libobjs=conftest.$ac_objext
16810           deplibs=
16811           wl=$lt_prog_compiler_wl
16812           pic_flag=$lt_prog_compiler_pic
16813           compiler_flags=-v
16814           linker_flags=-v
16815           verstring=
16816           output_objdir=.
16817           libname=conftest
16818           lt_save_allow_undefined_flag=$allow_undefined_flag
16819           allow_undefined_flag=
16820           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16821   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16822   ac_status=$?
16823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16824   test $ac_status = 0; }
16825           then
16826             lt_cv_archive_cmds_need_lc=no
16827           else
16828             lt_cv_archive_cmds_need_lc=yes
16829           fi
16830           allow_undefined_flag=$lt_save_allow_undefined_flag
16831         else
16832           cat conftest.err 1>&5
16833         fi
16834         $RM conftest*
16835
16836 fi
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16838 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16839       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16840       ;;
16841     esac
16842   fi
16843   ;;
16844 esac
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17003 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17004
17005 if test "$GCC" = yes; then
17006   case $host_os in
17007     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17008     *) lt_awk_arg="/^libraries:/" ;;
17009   esac
17010   case $host_os in
17011     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17012     *) lt_sed_strip_eq="s,=/,/,g" ;;
17013   esac
17014   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17015   case $lt_search_path_spec in
17016   *\;*)
17017     # if the path contains ";" then we assume it to be the separator
17018     # otherwise default to the standard path separator (i.e. ":") - it is
17019     # assumed that no part of a normal pathname contains ";" but that should
17020     # okay in the real world where ";" in dirpaths is itself problematic.
17021     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17022     ;;
17023   *)
17024     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17025     ;;
17026   esac
17027   # Ok, now we have the path, separated by spaces, we can step through it
17028   # and add multilib dir if necessary.
17029   lt_tmp_lt_search_path_spec=
17030   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17031   for lt_sys_path in $lt_search_path_spec; do
17032     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17033       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17034     else
17035       test -d "$lt_sys_path" && \
17036         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17037     fi
17038   done
17039   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17040 BEGIN {RS=" "; FS="/|\n";} {
17041   lt_foo="";
17042   lt_count=0;
17043   for (lt_i = NF; lt_i > 0; lt_i--) {
17044     if ($lt_i != "" && $lt_i != ".") {
17045       if ($lt_i == "..") {
17046         lt_count++;
17047       } else {
17048         if (lt_count == 0) {
17049           lt_foo="/" $lt_i lt_foo;
17050         } else {
17051           lt_count--;
17052         }
17053       }
17054     }
17055   }
17056   if (lt_foo != "") { lt_freq[lt_foo]++; }
17057   if (lt_freq[lt_foo] == 1) { print lt_foo; }
17058 }'`
17059   # AWK program above erroneously prepends '/' to C:/dos/paths
17060   # for these hosts.
17061   case $host_os in
17062     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17063       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17064   esac
17065   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17066 else
17067   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17068 fi
17069 library_names_spec=
17070 libname_spec='lib$name'
17071 soname_spec=
17072 shrext_cmds=".so"
17073 postinstall_cmds=
17074 postuninstall_cmds=
17075 finish_cmds=
17076 finish_eval=
17077 shlibpath_var=
17078 shlibpath_overrides_runpath=unknown
17079 version_type=none
17080 dynamic_linker="$host_os ld.so"
17081 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17082 need_lib_prefix=unknown
17083 hardcode_into_libs=no
17084
17085 # when you set need_version to no, make sure it does not cause -set_version
17086 # flags to be left without arguments
17087 need_version=unknown
17088
17089 case $host_os in
17090 aix3*)
17091   version_type=linux
17092   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17093   shlibpath_var=LIBPATH
17094
17095   # AIX 3 has no versioning support, so we append a major version to the name.
17096   soname_spec='${libname}${release}${shared_ext}$major'
17097   ;;
17098
17099 aix[4-9]*)
17100   version_type=linux
17101   need_lib_prefix=no
17102   need_version=no
17103   hardcode_into_libs=yes
17104   if test "$host_cpu" = ia64; then
17105     # AIX 5 supports IA64
17106     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17107     shlibpath_var=LD_LIBRARY_PATH
17108   else
17109     # With GCC up to 2.95.x, collect2 would create an import file
17110     # for dependence libraries.  The import file would start with
17111     # the line `#! .'.  This would cause the generated library to
17112     # depend on `.', always an invalid library.  This was fixed in
17113     # development snapshots of GCC prior to 3.0.
17114     case $host_os in
17115       aix4 | aix4.[01] | aix4.[01].*)
17116       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17117            echo ' yes '
17118            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17119         :
17120       else
17121         can_build_shared=no
17122       fi
17123       ;;
17124     esac
17125     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17126     # soname into executable. Probably we can add versioning support to
17127     # collect2, so additional links can be useful in future.
17128     if test "$aix_use_runtimelinking" = yes; then
17129       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17130       # instead of lib<name>.a to let people know that these are not
17131       # typical AIX shared libraries.
17132       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133     else
17134       # We preserve .a as extension for shared libraries through AIX4.2
17135       # and later when we are not doing run time linking.
17136       library_names_spec='${libname}${release}.a $libname.a'
17137       soname_spec='${libname}${release}${shared_ext}$major'
17138     fi
17139     shlibpath_var=LIBPATH
17140   fi
17141   ;;
17142
17143 amigaos*)
17144   case $host_cpu in
17145   powerpc)
17146     # Since July 2007 AmigaOS4 officially supports .so libraries.
17147     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149     ;;
17150   m68k)
17151     library_names_spec='$libname.ixlibrary $libname.a'
17152     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17153     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'
17154     ;;
17155   esac
17156   ;;
17157
17158 beos*)
17159   library_names_spec='${libname}${shared_ext}'
17160   dynamic_linker="$host_os ld.so"
17161   shlibpath_var=LIBRARY_PATH
17162   ;;
17163
17164 bsdi[45]*)
17165   version_type=linux
17166   need_version=no
17167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168   soname_spec='${libname}${release}${shared_ext}$major'
17169   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17170   shlibpath_var=LD_LIBRARY_PATH
17171   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17172   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17173   # the default ld.so.conf also contains /usr/contrib/lib and
17174   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17175   # libtool to hard-code these into programs
17176   ;;
17177
17178 cygwin* | mingw* | pw32* | cegcc*)
17179   version_type=windows
17180   shrext_cmds=".dll"
17181   need_version=no
17182   need_lib_prefix=no
17183
17184   case $GCC,$host_os in
17185   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17186     library_names_spec='$libname.dll.a'
17187     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17188     postinstall_cmds='base_file=`basename \${file}`~
17189       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17190       dldir=$destdir/`dirname \$dlpath`~
17191       test -d \$dldir || mkdir -p \$dldir~
17192       $install_prog $dir/$dlname \$dldir/$dlname~
17193       chmod a+x \$dldir/$dlname~
17194       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17195         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17196       fi'
17197     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17198       dlpath=$dir/\$dldll~
17199        $RM \$dlpath'
17200     shlibpath_overrides_runpath=yes
17201
17202     case $host_os in
17203     cygwin*)
17204       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17205       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17206
17207       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17208       ;;
17209     mingw* | cegcc*)
17210       # MinGW DLLs use traditional 'lib' prefix
17211       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17212       ;;
17213     pw32*)
17214       # pw32 DLLs use 'pw' prefix rather than 'lib'
17215       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17216       ;;
17217     esac
17218     ;;
17219
17220   *)
17221     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17222     ;;
17223   esac
17224   dynamic_linker='Win32 ld.exe'
17225   # FIXME: first we should search . and the directory the executable is in
17226   shlibpath_var=PATH
17227   ;;
17228
17229 darwin* | rhapsody*)
17230   dynamic_linker="$host_os dyld"
17231   version_type=darwin
17232   need_lib_prefix=no
17233   need_version=no
17234   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17235   soname_spec='${libname}${release}${major}$shared_ext'
17236   shlibpath_overrides_runpath=yes
17237   shlibpath_var=DYLD_LIBRARY_PATH
17238   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17239
17240   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17241   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17242   ;;
17243
17244 dgux*)
17245   version_type=linux
17246   need_lib_prefix=no
17247   need_version=no
17248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17249   soname_spec='${libname}${release}${shared_ext}$major'
17250   shlibpath_var=LD_LIBRARY_PATH
17251   ;;
17252
17253 freebsd* | dragonfly*)
17254   # DragonFly does not have aout.  When/if they implement a new
17255   # versioning mechanism, adjust this.
17256   if test -x /usr/bin/objformat; then
17257     objformat=`/usr/bin/objformat`
17258   else
17259     case $host_os in
17260     freebsd[23].*) objformat=aout ;;
17261     *) objformat=elf ;;
17262     esac
17263   fi
17264   version_type=freebsd-$objformat
17265   case $version_type in
17266     freebsd-elf*)
17267       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17268       need_version=no
17269       need_lib_prefix=no
17270       ;;
17271     freebsd-*)
17272       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17273       need_version=yes
17274       ;;
17275   esac
17276   shlibpath_var=LD_LIBRARY_PATH
17277   case $host_os in
17278   freebsd2.*)
17279     shlibpath_overrides_runpath=yes
17280     ;;
17281   freebsd3.[01]* | freebsdelf3.[01]*)
17282     shlibpath_overrides_runpath=yes
17283     hardcode_into_libs=yes
17284     ;;
17285   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17286   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17287     shlibpath_overrides_runpath=no
17288     hardcode_into_libs=yes
17289     ;;
17290   *) # from 4.6 on, and DragonFly
17291     shlibpath_overrides_runpath=yes
17292     hardcode_into_libs=yes
17293     ;;
17294   esac
17295   ;;
17296
17297 gnu*)
17298   version_type=linux
17299   need_lib_prefix=no
17300   need_version=no
17301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17302   soname_spec='${libname}${release}${shared_ext}$major'
17303   shlibpath_var=LD_LIBRARY_PATH
17304   hardcode_into_libs=yes
17305   ;;
17306
17307 haiku*)
17308   version_type=linux
17309   need_lib_prefix=no
17310   need_version=no
17311   dynamic_linker="$host_os runtime_loader"
17312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17313   soname_spec='${libname}${release}${shared_ext}$major'
17314   shlibpath_var=LIBRARY_PATH
17315   shlibpath_overrides_runpath=yes
17316   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17317   hardcode_into_libs=yes
17318   ;;
17319
17320 hpux9* | hpux10* | hpux11*)
17321   # Give a soname corresponding to the major version so that dld.sl refuses to
17322   # link against other versions.
17323   version_type=sunos
17324   need_lib_prefix=no
17325   need_version=no
17326   case $host_cpu in
17327   ia64*)
17328     shrext_cmds='.so'
17329     hardcode_into_libs=yes
17330     dynamic_linker="$host_os dld.so"
17331     shlibpath_var=LD_LIBRARY_PATH
17332     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334     soname_spec='${libname}${release}${shared_ext}$major'
17335     if test "X$HPUX_IA64_MODE" = X32; then
17336       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17337     else
17338       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17339     fi
17340     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17341     ;;
17342   hppa*64*)
17343     shrext_cmds='.sl'
17344     hardcode_into_libs=yes
17345     dynamic_linker="$host_os dld.sl"
17346     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17347     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17348     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17349     soname_spec='${libname}${release}${shared_ext}$major'
17350     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17351     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17352     ;;
17353   *)
17354     shrext_cmds='.sl'
17355     dynamic_linker="$host_os dld.sl"
17356     shlibpath_var=SHLIB_PATH
17357     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17359     soname_spec='${libname}${release}${shared_ext}$major'
17360     ;;
17361   esac
17362   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17363   postinstall_cmds='chmod 555 $lib'
17364   # or fails outright, so override atomically:
17365   install_override_mode=555
17366   ;;
17367
17368 interix[3-9]*)
17369   version_type=linux
17370   need_lib_prefix=no
17371   need_version=no
17372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17373   soname_spec='${libname}${release}${shared_ext}$major'
17374   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17375   shlibpath_var=LD_LIBRARY_PATH
17376   shlibpath_overrides_runpath=no
17377   hardcode_into_libs=yes
17378   ;;
17379
17380 irix5* | irix6* | nonstopux*)
17381   case $host_os in
17382     nonstopux*) version_type=nonstopux ;;
17383     *)
17384         if test "$lt_cv_prog_gnu_ld" = yes; then
17385                 version_type=linux
17386         else
17387                 version_type=irix
17388         fi ;;
17389   esac
17390   need_lib_prefix=no
17391   need_version=no
17392   soname_spec='${libname}${release}${shared_ext}$major'
17393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17394   case $host_os in
17395   irix5* | nonstopux*)
17396     libsuff= shlibsuff=
17397     ;;
17398   *)
17399     case $LD in # libtool.m4 will add one of these switches to LD
17400     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17401       libsuff= shlibsuff= libmagic=32-bit;;
17402     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17403       libsuff=32 shlibsuff=N32 libmagic=N32;;
17404     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17405       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17406     *) libsuff= shlibsuff= libmagic=never-match;;
17407     esac
17408     ;;
17409   esac
17410   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17411   shlibpath_overrides_runpath=no
17412   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17413   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17414   hardcode_into_libs=yes
17415   ;;
17416
17417 # No shared lib support for Linux oldld, aout, or coff.
17418 linux*oldld* | linux*aout* | linux*coff*)
17419   dynamic_linker=no
17420   ;;
17421
17422 # This must be Linux ELF.
17423 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17424   version_type=linux
17425   need_lib_prefix=no
17426   need_version=no
17427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428   soname_spec='${libname}${release}${shared_ext}$major'
17429   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17430   shlibpath_var=LD_LIBRARY_PATH
17431   shlibpath_overrides_runpath=no
17432
17433   # Some binutils ld are patched to set DT_RUNPATH
17434   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17435   $as_echo_n "(cached) " >&6
17436 else
17437   lt_cv_shlibpath_overrides_runpath=no
17438     save_LDFLAGS=$LDFLAGS
17439     save_libdir=$libdir
17440     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17441          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17442     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h.  */
17444
17445 int
17446 main ()
17447 {
17448
17449   ;
17450   return 0;
17451 }
17452 _ACEOF
17453 if ac_fn_c_try_link "$LINENO"; then :
17454   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17455   lt_cv_shlibpath_overrides_runpath=yes
17456 fi
17457 fi
17458 rm -f core conftest.err conftest.$ac_objext \
17459     conftest$ac_exeext conftest.$ac_ext
17460     LDFLAGS=$save_LDFLAGS
17461     libdir=$save_libdir
17462
17463 fi
17464
17465   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17466
17467   # This implies no fast_install, which is unacceptable.
17468   # Some rework will be needed to allow for fast_install
17469   # before this can be enabled.
17470   hardcode_into_libs=yes
17471
17472   # Append ld.so.conf contents to the search path
17473   if test -f /etc/ld.so.conf; then
17474     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' ' '`
17475     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17476   fi
17477
17478   # We used to test for /lib/ld.so.1 and disable shared libraries on
17479   # powerpc, because MkLinux only supported shared libraries with the
17480   # GNU dynamic linker.  Since this was broken with cross compilers,
17481   # most powerpc-linux boxes support dynamic linking these days and
17482   # people can always --disable-shared, the test was removed, and we
17483   # assume the GNU/Linux dynamic linker is in use.
17484   dynamic_linker='GNU/Linux ld.so'
17485   ;;
17486
17487 netbsd*)
17488   version_type=sunos
17489   need_lib_prefix=no
17490   need_version=no
17491   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17493     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17494     dynamic_linker='NetBSD (a.out) ld.so'
17495   else
17496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17497     soname_spec='${libname}${release}${shared_ext}$major'
17498     dynamic_linker='NetBSD ld.elf_so'
17499   fi
17500   shlibpath_var=LD_LIBRARY_PATH
17501   shlibpath_overrides_runpath=yes
17502   hardcode_into_libs=yes
17503   ;;
17504
17505 newsos6)
17506   version_type=linux
17507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17508   shlibpath_var=LD_LIBRARY_PATH
17509   shlibpath_overrides_runpath=yes
17510   ;;
17511
17512 *nto* | *qnx*)
17513   version_type=qnx
17514   need_lib_prefix=no
17515   need_version=no
17516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517   soname_spec='${libname}${release}${shared_ext}$major'
17518   shlibpath_var=LD_LIBRARY_PATH
17519   shlibpath_overrides_runpath=no
17520   hardcode_into_libs=yes
17521   dynamic_linker='ldqnx.so'
17522   ;;
17523
17524 openbsd*)
17525   version_type=sunos
17526   sys_lib_dlsearch_path_spec="/usr/lib"
17527   need_lib_prefix=no
17528   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17529   case $host_os in
17530     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17531     *)                          need_version=no  ;;
17532   esac
17533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17534   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17535   shlibpath_var=LD_LIBRARY_PATH
17536   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17537     case $host_os in
17538       openbsd2.[89] | openbsd2.[89].*)
17539         shlibpath_overrides_runpath=no
17540         ;;
17541       *)
17542         shlibpath_overrides_runpath=yes
17543         ;;
17544       esac
17545   else
17546     shlibpath_overrides_runpath=yes
17547   fi
17548   ;;
17549
17550 os2*)
17551   libname_spec='$name'
17552   shrext_cmds=".dll"
17553   need_lib_prefix=no
17554   library_names_spec='$libname${shared_ext} $libname.a'
17555   dynamic_linker='OS/2 ld.exe'
17556   shlibpath_var=LIBPATH
17557   ;;
17558
17559 osf3* | osf4* | osf5*)
17560   version_type=osf
17561   need_lib_prefix=no
17562   need_version=no
17563   soname_spec='${libname}${release}${shared_ext}$major'
17564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17565   shlibpath_var=LD_LIBRARY_PATH
17566   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17567   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17568   ;;
17569
17570 rdos*)
17571   dynamic_linker=no
17572   ;;
17573
17574 solaris*)
17575   version_type=linux
17576   need_lib_prefix=no
17577   need_version=no
17578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17579   soname_spec='${libname}${release}${shared_ext}$major'
17580   shlibpath_var=LD_LIBRARY_PATH
17581   shlibpath_overrides_runpath=yes
17582   hardcode_into_libs=yes
17583   # ldd complains unless libraries are executable
17584   postinstall_cmds='chmod +x $lib'
17585   ;;
17586
17587 sunos4*)
17588   version_type=sunos
17589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17590   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17591   shlibpath_var=LD_LIBRARY_PATH
17592   shlibpath_overrides_runpath=yes
17593   if test "$with_gnu_ld" = yes; then
17594     need_lib_prefix=no
17595   fi
17596   need_version=yes
17597   ;;
17598
17599 sysv4 | sysv4.3*)
17600   version_type=linux
17601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17602   soname_spec='${libname}${release}${shared_ext}$major'
17603   shlibpath_var=LD_LIBRARY_PATH
17604   case $host_vendor in
17605     sni)
17606       shlibpath_overrides_runpath=no
17607       need_lib_prefix=no
17608       runpath_var=LD_RUN_PATH
17609       ;;
17610     siemens)
17611       need_lib_prefix=no
17612       ;;
17613     motorola)
17614       need_lib_prefix=no
17615       need_version=no
17616       shlibpath_overrides_runpath=no
17617       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17618       ;;
17619   esac
17620   ;;
17621
17622 sysv4*MP*)
17623   if test -d /usr/nec ;then
17624     version_type=linux
17625     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17626     soname_spec='$libname${shared_ext}.$major'
17627     shlibpath_var=LD_LIBRARY_PATH
17628   fi
17629   ;;
17630
17631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17632   version_type=freebsd-elf
17633   need_lib_prefix=no
17634   need_version=no
17635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17636   soname_spec='${libname}${release}${shared_ext}$major'
17637   shlibpath_var=LD_LIBRARY_PATH
17638   shlibpath_overrides_runpath=yes
17639   hardcode_into_libs=yes
17640   if test "$with_gnu_ld" = yes; then
17641     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17642   else
17643     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17644     case $host_os in
17645       sco3.2v5*)
17646         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17647         ;;
17648     esac
17649   fi
17650   sys_lib_dlsearch_path_spec='/usr/lib'
17651   ;;
17652
17653 tpf*)
17654   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17655   version_type=linux
17656   need_lib_prefix=no
17657   need_version=no
17658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17659   shlibpath_var=LD_LIBRARY_PATH
17660   shlibpath_overrides_runpath=no
17661   hardcode_into_libs=yes
17662   ;;
17663
17664 uts4*)
17665   version_type=linux
17666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17667   soname_spec='${libname}${release}${shared_ext}$major'
17668   shlibpath_var=LD_LIBRARY_PATH
17669   ;;
17670
17671 *)
17672   dynamic_linker=no
17673   ;;
17674 esac
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17676 $as_echo "$dynamic_linker" >&6; }
17677 test "$dynamic_linker" = no && can_build_shared=no
17678
17679 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17680 if test "$GCC" = yes; then
17681   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17682 fi
17683
17684 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17685   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17686 fi
17687 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17688   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17689 fi
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17783 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17784 hardcode_action=
17785 if test -n "$hardcode_libdir_flag_spec" ||
17786    test -n "$runpath_var" ||
17787    test "X$hardcode_automatic" = "Xyes" ; then
17788
17789   # We can hardcode non-existent directories.
17790   if test "$hardcode_direct" != no &&
17791      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17792      # have to relink, otherwise we might link with an installed library
17793      # when we should be linking with a yet-to-be-installed one
17794      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17795      test "$hardcode_minus_L" != no; then
17796     # Linking always hardcodes the temporary library directory.
17797     hardcode_action=relink
17798   else
17799     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17800     hardcode_action=immediate
17801   fi
17802 else
17803   # We cannot hardcode anything, or else we can only hardcode existing
17804   # directories.
17805   hardcode_action=unsupported
17806 fi
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17808 $as_echo "$hardcode_action" >&6; }
17809
17810 if test "$hardcode_action" = relink ||
17811    test "$inherit_rpath" = yes; then
17812   # Fast installation is not supported
17813   enable_fast_install=no
17814 elif test "$shlibpath_overrides_runpath" = yes ||
17815      test "$enable_shared" = no; then
17816   # Fast installation is not necessary
17817   enable_fast_install=needless
17818 fi
17819
17820
17821
17822
17823
17824
17825   if test "x$enable_dlopen" != xyes; then
17826   enable_dlopen=unknown
17827   enable_dlopen_self=unknown
17828   enable_dlopen_self_static=unknown
17829 else
17830   lt_cv_dlopen=no
17831   lt_cv_dlopen_libs=
17832
17833   case $host_os in
17834   beos*)
17835     lt_cv_dlopen="load_add_on"
17836     lt_cv_dlopen_libs=
17837     lt_cv_dlopen_self=yes
17838     ;;
17839
17840   mingw* | pw32* | cegcc*)
17841     lt_cv_dlopen="LoadLibrary"
17842     lt_cv_dlopen_libs=
17843     ;;
17844
17845   cygwin*)
17846     lt_cv_dlopen="dlopen"
17847     lt_cv_dlopen_libs=
17848     ;;
17849
17850   darwin*)
17851   # if libdl is installed we need to link against it
17852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17853 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17854 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17855   $as_echo_n "(cached) " >&6
17856 else
17857   ac_check_lib_save_LIBS=$LIBS
17858 LIBS="-ldl  $LIBS"
17859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860 /* end confdefs.h.  */
17861
17862 /* Override any GCC internal prototype to avoid an error.
17863    Use char because int might match the return type of a GCC
17864    builtin and then its argument prototype would still apply.  */
17865 #ifdef __cplusplus
17866 extern "C"
17867 #endif
17868 char dlopen ();
17869 int
17870 main ()
17871 {
17872 return dlopen ();
17873   ;
17874   return 0;
17875 }
17876 _ACEOF
17877 if ac_fn_c_try_link "$LINENO"; then :
17878   ac_cv_lib_dl_dlopen=yes
17879 else
17880   ac_cv_lib_dl_dlopen=no
17881 fi
17882 rm -f core conftest.err conftest.$ac_objext \
17883     conftest$ac_exeext conftest.$ac_ext
17884 LIBS=$ac_check_lib_save_LIBS
17885 fi
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17887 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17888 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17889   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17890 else
17891
17892     lt_cv_dlopen="dyld"
17893     lt_cv_dlopen_libs=
17894     lt_cv_dlopen_self=yes
17895
17896 fi
17897
17898     ;;
17899
17900   *)
17901     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17902 if test "x$ac_cv_func_shl_load" = x""yes; then :
17903   lt_cv_dlopen="shl_load"
17904 else
17905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17906 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17907 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17908   $as_echo_n "(cached) " >&6
17909 else
17910   ac_check_lib_save_LIBS=$LIBS
17911 LIBS="-ldld  $LIBS"
17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17913 /* end confdefs.h.  */
17914
17915 /* Override any GCC internal prototype to avoid an error.
17916    Use char because int might match the return type of a GCC
17917    builtin and then its argument prototype would still apply.  */
17918 #ifdef __cplusplus
17919 extern "C"
17920 #endif
17921 char shl_load ();
17922 int
17923 main ()
17924 {
17925 return shl_load ();
17926   ;
17927   return 0;
17928 }
17929 _ACEOF
17930 if ac_fn_c_try_link "$LINENO"; then :
17931   ac_cv_lib_dld_shl_load=yes
17932 else
17933   ac_cv_lib_dld_shl_load=no
17934 fi
17935 rm -f core conftest.err conftest.$ac_objext \
17936     conftest$ac_exeext conftest.$ac_ext
17937 LIBS=$ac_check_lib_save_LIBS
17938 fi
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17940 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17941 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17942   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17943 else
17944   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17945 if test "x$ac_cv_func_dlopen" = x""yes; then :
17946   lt_cv_dlopen="dlopen"
17947 else
17948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17949 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17951   $as_echo_n "(cached) " >&6
17952 else
17953   ac_check_lib_save_LIBS=$LIBS
17954 LIBS="-ldl  $LIBS"
17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h.  */
17957
17958 /* Override any GCC internal prototype to avoid an error.
17959    Use char because int might match the return type of a GCC
17960    builtin and then its argument prototype would still apply.  */
17961 #ifdef __cplusplus
17962 extern "C"
17963 #endif
17964 char dlopen ();
17965 int
17966 main ()
17967 {
17968 return dlopen ();
17969   ;
17970   return 0;
17971 }
17972 _ACEOF
17973 if ac_fn_c_try_link "$LINENO"; then :
17974   ac_cv_lib_dl_dlopen=yes
17975 else
17976   ac_cv_lib_dl_dlopen=no
17977 fi
17978 rm -f core conftest.err conftest.$ac_objext \
17979     conftest$ac_exeext conftest.$ac_ext
17980 LIBS=$ac_check_lib_save_LIBS
17981 fi
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17983 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17984 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17985   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17986 else
17987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17988 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17989 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17990   $as_echo_n "(cached) " >&6
17991 else
17992   ac_check_lib_save_LIBS=$LIBS
17993 LIBS="-lsvld  $LIBS"
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h.  */
17996
17997 /* Override any GCC internal prototype to avoid an error.
17998    Use char because int might match the return type of a GCC
17999    builtin and then its argument prototype would still apply.  */
18000 #ifdef __cplusplus
18001 extern "C"
18002 #endif
18003 char dlopen ();
18004 int
18005 main ()
18006 {
18007 return dlopen ();
18008   ;
18009   return 0;
18010 }
18011 _ACEOF
18012 if ac_fn_c_try_link "$LINENO"; then :
18013   ac_cv_lib_svld_dlopen=yes
18014 else
18015   ac_cv_lib_svld_dlopen=no
18016 fi
18017 rm -f core conftest.err conftest.$ac_objext \
18018     conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18020 fi
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18022 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18023 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18024   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18025 else
18026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18027 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18028 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18029   $as_echo_n "(cached) " >&6
18030 else
18031   ac_check_lib_save_LIBS=$LIBS
18032 LIBS="-ldld  $LIBS"
18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h.  */
18035
18036 /* Override any GCC internal prototype to avoid an error.
18037    Use char because int might match the return type of a GCC
18038    builtin and then its argument prototype would still apply.  */
18039 #ifdef __cplusplus
18040 extern "C"
18041 #endif
18042 char dld_link ();
18043 int
18044 main ()
18045 {
18046 return dld_link ();
18047   ;
18048   return 0;
18049 }
18050 _ACEOF
18051 if ac_fn_c_try_link "$LINENO"; then :
18052   ac_cv_lib_dld_dld_link=yes
18053 else
18054   ac_cv_lib_dld_dld_link=no
18055 fi
18056 rm -f core conftest.err conftest.$ac_objext \
18057     conftest$ac_exeext conftest.$ac_ext
18058 LIBS=$ac_check_lib_save_LIBS
18059 fi
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18061 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18062 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18063   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18064 fi
18065
18066
18067 fi
18068
18069
18070 fi
18071
18072
18073 fi
18074
18075
18076 fi
18077
18078
18079 fi
18080
18081     ;;
18082   esac
18083
18084   if test "x$lt_cv_dlopen" != xno; then
18085     enable_dlopen=yes
18086   else
18087     enable_dlopen=no
18088   fi
18089
18090   case $lt_cv_dlopen in
18091   dlopen)
18092     save_CPPFLAGS="$CPPFLAGS"
18093     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18094
18095     save_LDFLAGS="$LDFLAGS"
18096     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18097
18098     save_LIBS="$LIBS"
18099     LIBS="$lt_cv_dlopen_libs $LIBS"
18100
18101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18102 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18103 if test "${lt_cv_dlopen_self+set}" = set; then :
18104   $as_echo_n "(cached) " >&6
18105 else
18106           if test "$cross_compiling" = yes; then :
18107   lt_cv_dlopen_self=cross
18108 else
18109   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18110   lt_status=$lt_dlunknown
18111   cat > conftest.$ac_ext <<_LT_EOF
18112 #line 18112 "configure"
18113 #include "confdefs.h"
18114
18115 #if HAVE_DLFCN_H
18116 #include <dlfcn.h>
18117 #endif
18118
18119 #include <stdio.h>
18120
18121 #ifdef RTLD_GLOBAL
18122 #  define LT_DLGLOBAL           RTLD_GLOBAL
18123 #else
18124 #  ifdef DL_GLOBAL
18125 #    define LT_DLGLOBAL         DL_GLOBAL
18126 #  else
18127 #    define LT_DLGLOBAL         0
18128 #  endif
18129 #endif
18130
18131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18132    find out it does not work in some platform. */
18133 #ifndef LT_DLLAZY_OR_NOW
18134 #  ifdef RTLD_LAZY
18135 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18136 #  else
18137 #    ifdef DL_LAZY
18138 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18139 #    else
18140 #      ifdef RTLD_NOW
18141 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18142 #      else
18143 #        ifdef DL_NOW
18144 #          define LT_DLLAZY_OR_NOW      DL_NOW
18145 #        else
18146 #          define LT_DLLAZY_OR_NOW      0
18147 #        endif
18148 #      endif
18149 #    endif
18150 #  endif
18151 #endif
18152
18153 /* When -fvisbility=hidden is used, assume the code has been annotated
18154    correspondingly for the symbols needed.  */
18155 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18156 void fnord () __attribute__((visibility("default")));
18157 #endif
18158
18159 void fnord () { int i=42; }
18160 int main ()
18161 {
18162   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18163   int status = $lt_dlunknown;
18164
18165   if (self)
18166     {
18167       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18168       else
18169         {
18170           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18171           else puts (dlerror ());
18172         }
18173       /* dlclose (self); */
18174     }
18175   else
18176     puts (dlerror ());
18177
18178   return status;
18179 }
18180 _LT_EOF
18181   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18182   (eval $ac_link) 2>&5
18183   ac_status=$?
18184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18185   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18186     (./conftest; exit; ) >&5 2>/dev/null
18187     lt_status=$?
18188     case x$lt_status in
18189       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18190       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18191       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18192     esac
18193   else :
18194     # compilation failed
18195     lt_cv_dlopen_self=no
18196   fi
18197 fi
18198 rm -fr conftest*
18199
18200
18201 fi
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18203 $as_echo "$lt_cv_dlopen_self" >&6; }
18204
18205     if test "x$lt_cv_dlopen_self" = xyes; then
18206       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18207       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18208 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18209 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18210   $as_echo_n "(cached) " >&6
18211 else
18212           if test "$cross_compiling" = yes; then :
18213   lt_cv_dlopen_self_static=cross
18214 else
18215   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18216   lt_status=$lt_dlunknown
18217   cat > conftest.$ac_ext <<_LT_EOF
18218 #line 18218 "configure"
18219 #include "confdefs.h"
18220
18221 #if HAVE_DLFCN_H
18222 #include <dlfcn.h>
18223 #endif
18224
18225 #include <stdio.h>
18226
18227 #ifdef RTLD_GLOBAL
18228 #  define LT_DLGLOBAL           RTLD_GLOBAL
18229 #else
18230 #  ifdef DL_GLOBAL
18231 #    define LT_DLGLOBAL         DL_GLOBAL
18232 #  else
18233 #    define LT_DLGLOBAL         0
18234 #  endif
18235 #endif
18236
18237 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18238    find out it does not work in some platform. */
18239 #ifndef LT_DLLAZY_OR_NOW
18240 #  ifdef RTLD_LAZY
18241 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18242 #  else
18243 #    ifdef DL_LAZY
18244 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18245 #    else
18246 #      ifdef RTLD_NOW
18247 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18248 #      else
18249 #        ifdef DL_NOW
18250 #          define LT_DLLAZY_OR_NOW      DL_NOW
18251 #        else
18252 #          define LT_DLLAZY_OR_NOW      0
18253 #        endif
18254 #      endif
18255 #    endif
18256 #  endif
18257 #endif
18258
18259 /* When -fvisbility=hidden is used, assume the code has been annotated
18260    correspondingly for the symbols needed.  */
18261 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18262 void fnord () __attribute__((visibility("default")));
18263 #endif
18264
18265 void fnord () { int i=42; }
18266 int main ()
18267 {
18268   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18269   int status = $lt_dlunknown;
18270
18271   if (self)
18272     {
18273       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18274       else
18275         {
18276           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18277           else puts (dlerror ());
18278         }
18279       /* dlclose (self); */
18280     }
18281   else
18282     puts (dlerror ());
18283
18284   return status;
18285 }
18286 _LT_EOF
18287   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18288   (eval $ac_link) 2>&5
18289   ac_status=$?
18290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18291   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18292     (./conftest; exit; ) >&5 2>/dev/null
18293     lt_status=$?
18294     case x$lt_status in
18295       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18296       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18297       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18298     esac
18299   else :
18300     # compilation failed
18301     lt_cv_dlopen_self_static=no
18302   fi
18303 fi
18304 rm -fr conftest*
18305
18306
18307 fi
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18309 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18310     fi
18311
18312     CPPFLAGS="$save_CPPFLAGS"
18313     LDFLAGS="$save_LDFLAGS"
18314     LIBS="$save_LIBS"
18315     ;;
18316   esac
18317
18318   case $lt_cv_dlopen_self in
18319   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18320   *) enable_dlopen_self=unknown ;;
18321   esac
18322
18323   case $lt_cv_dlopen_self_static in
18324   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18325   *) enable_dlopen_self_static=unknown ;;
18326   esac
18327 fi
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345 striplib=
18346 old_striplib=
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18348 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18349 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18350   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18351   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18353 $as_echo "yes" >&6; }
18354 else
18355 # FIXME - insert some real tests, host_os isn't really good enough
18356   case $host_os in
18357   darwin*)
18358     if test -n "$STRIP" ; then
18359       striplib="$STRIP -x"
18360       old_striplib="$STRIP -S"
18361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18362 $as_echo "yes" >&6; }
18363     else
18364       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18365 $as_echo "no" >&6; }
18366     fi
18367     ;;
18368   *)
18369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18370 $as_echo "no" >&6; }
18371     ;;
18372   esac
18373 fi
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386   # Report which library types will actually be built
18387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18388 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18390 $as_echo "$can_build_shared" >&6; }
18391
18392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18393 $as_echo_n "checking whether to build shared libraries... " >&6; }
18394   test "$can_build_shared" = "no" && enable_shared=no
18395
18396   # On AIX, shared libraries and static libraries use the same namespace, and
18397   # are all built from PIC.
18398   case $host_os in
18399   aix3*)
18400     test "$enable_shared" = yes && enable_static=no
18401     if test -n "$RANLIB"; then
18402       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18403       postinstall_cmds='$RANLIB $lib'
18404     fi
18405     ;;
18406
18407   aix[4-9]*)
18408     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18409       test "$enable_shared" = yes && enable_static=no
18410     fi
18411     ;;
18412   esac
18413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18414 $as_echo "$enable_shared" >&6; }
18415
18416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18417 $as_echo_n "checking whether to build static libraries... " >&6; }
18418   # Make sure either enable_shared or enable_static is yes.
18419   test "$enable_shared" = yes || enable_static=yes
18420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18421 $as_echo "$enable_static" >&6; }
18422
18423
18424
18425
18426 fi
18427 ac_ext=c
18428 ac_cpp='$CPP $CPPFLAGS'
18429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18432
18433 CC="$lt_save_CC"
18434
18435       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18436     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18437     (test "X$CXX" != "Xg++"))) ; then
18438   ac_ext=cpp
18439 ac_cpp='$CXXCPP $CPPFLAGS'
18440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18444 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18445 if test -z "$CXXCPP"; then
18446   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18447   $as_echo_n "(cached) " >&6
18448 else
18449       # Double quotes because CXXCPP needs to be expanded
18450     for CXXCPP in "$CXX -E" "/lib/cpp"
18451     do
18452       ac_preproc_ok=false
18453 for ac_cxx_preproc_warn_flag in '' yes
18454 do
18455   # Use a header file that comes with gcc, so configuring glibc
18456   # with a fresh cross-compiler works.
18457   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18458   # <limits.h> exists even on freestanding compilers.
18459   # On the NeXT, cc -E runs the code through the compiler's parser,
18460   # not just through cpp. "Syntax error" is here to catch this case.
18461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h.  */
18463 #ifdef __STDC__
18464 # include <limits.h>
18465 #else
18466 # include <assert.h>
18467 #endif
18468                      Syntax error
18469 _ACEOF
18470 if ac_fn_cxx_try_cpp "$LINENO"; then :
18471
18472 else
18473   # Broken: fails on valid input.
18474 continue
18475 fi
18476 rm -f conftest.err conftest.$ac_ext
18477
18478   # OK, works on sane cases.  Now check whether nonexistent headers
18479   # can be detected and how.
18480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h.  */
18482 #include <ac_nonexistent.h>
18483 _ACEOF
18484 if ac_fn_cxx_try_cpp "$LINENO"; then :
18485   # Broken: success on invalid input.
18486 continue
18487 else
18488   # Passes both tests.
18489 ac_preproc_ok=:
18490 break
18491 fi
18492 rm -f conftest.err conftest.$ac_ext
18493
18494 done
18495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18496 rm -f conftest.err conftest.$ac_ext
18497 if $ac_preproc_ok; then :
18498   break
18499 fi
18500
18501     done
18502     ac_cv_prog_CXXCPP=$CXXCPP
18503
18504 fi
18505   CXXCPP=$ac_cv_prog_CXXCPP
18506 else
18507   ac_cv_prog_CXXCPP=$CXXCPP
18508 fi
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18510 $as_echo "$CXXCPP" >&6; }
18511 ac_preproc_ok=false
18512 for ac_cxx_preproc_warn_flag in '' yes
18513 do
18514   # Use a header file that comes with gcc, so configuring glibc
18515   # with a fresh cross-compiler works.
18516   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18517   # <limits.h> exists even on freestanding compilers.
18518   # On the NeXT, cc -E runs the code through the compiler's parser,
18519   # not just through cpp. "Syntax error" is here to catch this case.
18520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h.  */
18522 #ifdef __STDC__
18523 # include <limits.h>
18524 #else
18525 # include <assert.h>
18526 #endif
18527                      Syntax error
18528 _ACEOF
18529 if ac_fn_cxx_try_cpp "$LINENO"; then :
18530
18531 else
18532   # Broken: fails on valid input.
18533 continue
18534 fi
18535 rm -f conftest.err conftest.$ac_ext
18536
18537   # OK, works on sane cases.  Now check whether nonexistent headers
18538   # can be detected and how.
18539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540 /* end confdefs.h.  */
18541 #include <ac_nonexistent.h>
18542 _ACEOF
18543 if ac_fn_cxx_try_cpp "$LINENO"; then :
18544   # Broken: success on invalid input.
18545 continue
18546 else
18547   # Passes both tests.
18548 ac_preproc_ok=:
18549 break
18550 fi
18551 rm -f conftest.err conftest.$ac_ext
18552
18553 done
18554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18555 rm -f conftest.err conftest.$ac_ext
18556 if $ac_preproc_ok; then :
18557
18558 else
18559   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18561 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18562 See \`config.log' for more details." "$LINENO" 5; }
18563 fi
18564
18565 ac_ext=c
18566 ac_cpp='$CPP $CPPFLAGS'
18567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18570
18571 else
18572   _lt_caught_CXX_error=yes
18573 fi
18574
18575 ac_ext=cpp
18576 ac_cpp='$CXXCPP $CPPFLAGS'
18577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18580
18581 archive_cmds_need_lc_CXX=no
18582 allow_undefined_flag_CXX=
18583 always_export_symbols_CXX=no
18584 archive_expsym_cmds_CXX=
18585 compiler_needs_object_CXX=no
18586 export_dynamic_flag_spec_CXX=
18587 hardcode_direct_CXX=no
18588 hardcode_direct_absolute_CXX=no
18589 hardcode_libdir_flag_spec_CXX=
18590 hardcode_libdir_flag_spec_ld_CXX=
18591 hardcode_libdir_separator_CXX=
18592 hardcode_minus_L_CXX=no
18593 hardcode_shlibpath_var_CXX=unsupported
18594 hardcode_automatic_CXX=no
18595 inherit_rpath_CXX=no
18596 module_cmds_CXX=
18597 module_expsym_cmds_CXX=
18598 link_all_deplibs_CXX=unknown
18599 old_archive_cmds_CXX=$old_archive_cmds
18600 reload_flag_CXX=$reload_flag
18601 reload_cmds_CXX=$reload_cmds
18602 no_undefined_flag_CXX=
18603 whole_archive_flag_spec_CXX=
18604 enable_shared_with_static_runtimes_CXX=no
18605
18606 # Source file extension for C++ test sources.
18607 ac_ext=cpp
18608
18609 # Object file extension for compiled C++ test sources.
18610 objext=o
18611 objext_CXX=$objext
18612
18613 # No sense in running all these tests if we already determined that
18614 # the CXX compiler isn't working.  Some variables (like enable_shared)
18615 # are currently assumed to apply to all compilers on this platform,
18616 # and will be corrupted by setting them based on a non-working compiler.
18617 if test "$_lt_caught_CXX_error" != yes; then
18618   # Code to be used in simple compile tests
18619   lt_simple_compile_test_code="int some_variable = 0;"
18620
18621   # Code to be used in simple link tests
18622   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18623
18624   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18625
18626
18627
18628
18629
18630
18631 # If no C compiler was specified, use CC.
18632 LTCC=${LTCC-"$CC"}
18633
18634 # If no C compiler flags were specified, use CFLAGS.
18635 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18636
18637 # Allow CC to be a program name with arguments.
18638 compiler=$CC
18639
18640
18641   # save warnings/boilerplate of simple test code
18642   ac_outfile=conftest.$ac_objext
18643 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18644 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18645 _lt_compiler_boilerplate=`cat conftest.err`
18646 $RM conftest*
18647
18648   ac_outfile=conftest.$ac_objext
18649 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18650 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18651 _lt_linker_boilerplate=`cat conftest.err`
18652 $RM -r conftest*
18653
18654
18655   # Allow CC to be a program name with arguments.
18656   lt_save_CC=$CC
18657   lt_save_LD=$LD
18658   lt_save_GCC=$GCC
18659   GCC=$GXX
18660   lt_save_with_gnu_ld=$with_gnu_ld
18661   lt_save_path_LD=$lt_cv_path_LD
18662   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18663     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18664   else
18665     $as_unset lt_cv_prog_gnu_ld
18666   fi
18667   if test -n "${lt_cv_path_LDCXX+set}"; then
18668     lt_cv_path_LD=$lt_cv_path_LDCXX
18669   else
18670     $as_unset lt_cv_path_LD
18671   fi
18672   test -z "${LDCXX+set}" || LD=$LDCXX
18673   CC=${CXX-"c++"}
18674   compiler=$CC
18675   compiler_CXX=$CC
18676   for cc_temp in $compiler""; do
18677   case $cc_temp in
18678     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18679     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18680     \-*) ;;
18681     *) break;;
18682   esac
18683 done
18684 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18685
18686
18687   if test -n "$compiler"; then
18688     # We don't want -fno-exception when compiling C++ code, so set the
18689     # no_builtin_flag separately
18690     if test "$GXX" = yes; then
18691       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18692     else
18693       lt_prog_compiler_no_builtin_flag_CXX=
18694     fi
18695
18696     if test "$GXX" = yes; then
18697       # Set up default GNU C++ configuration
18698
18699
18700
18701 # Check whether --with-gnu-ld was given.
18702 if test "${with_gnu_ld+set}" = set; then :
18703   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18704 else
18705   with_gnu_ld=no
18706 fi
18707
18708 ac_prog=ld
18709 if test "$GCC" = yes; then
18710   # Check if gcc -print-prog-name=ld gives a path.
18711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18712 $as_echo_n "checking for ld used by $CC... " >&6; }
18713   case $host in
18714   *-*-mingw*)
18715     # gcc leaves a trailing carriage return which upsets mingw
18716     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18717   *)
18718     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18719   esac
18720   case $ac_prog in
18721     # Accept absolute paths.
18722     [\\/]* | ?:[\\/]*)
18723       re_direlt='/[^/][^/]*/\.\./'
18724       # Canonicalize the pathname of ld
18725       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18726       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18727         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18728       done
18729       test -z "$LD" && LD="$ac_prog"
18730       ;;
18731   "")
18732     # If it fails, then pretend we aren't using GCC.
18733     ac_prog=ld
18734     ;;
18735   *)
18736     # If it is relative, then search for the first ld in PATH.
18737     with_gnu_ld=unknown
18738     ;;
18739   esac
18740 elif test "$with_gnu_ld" = yes; then
18741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18742 $as_echo_n "checking for GNU ld... " >&6; }
18743 else
18744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18745 $as_echo_n "checking for non-GNU ld... " >&6; }
18746 fi
18747 if test "${lt_cv_path_LD+set}" = set; then :
18748   $as_echo_n "(cached) " >&6
18749 else
18750   if test -z "$LD"; then
18751   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18752   for ac_dir in $PATH; do
18753     IFS="$lt_save_ifs"
18754     test -z "$ac_dir" && ac_dir=.
18755     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18756       lt_cv_path_LD="$ac_dir/$ac_prog"
18757       # Check to see if the program is GNU ld.  I'd rather use --version,
18758       # but apparently some variants of GNU ld only accept -v.
18759       # Break only if it was the GNU/non-GNU ld that we prefer.
18760       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18761       *GNU* | *'with BFD'*)
18762         test "$with_gnu_ld" != no && break
18763         ;;
18764       *)
18765         test "$with_gnu_ld" != yes && break
18766         ;;
18767       esac
18768     fi
18769   done
18770   IFS="$lt_save_ifs"
18771 else
18772   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18773 fi
18774 fi
18775
18776 LD="$lt_cv_path_LD"
18777 if test -n "$LD"; then
18778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18779 $as_echo "$LD" >&6; }
18780 else
18781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18782 $as_echo "no" >&6; }
18783 fi
18784 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18786 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18787 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18788   $as_echo_n "(cached) " >&6
18789 else
18790   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18791 case `$LD -v 2>&1 </dev/null` in
18792 *GNU* | *'with BFD'*)
18793   lt_cv_prog_gnu_ld=yes
18794   ;;
18795 *)
18796   lt_cv_prog_gnu_ld=no
18797   ;;
18798 esac
18799 fi
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18801 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18802 with_gnu_ld=$lt_cv_prog_gnu_ld
18803
18804
18805
18806
18807
18808
18809
18810       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18811       # archiving commands below assume that GNU ld is being used.
18812       if test "$with_gnu_ld" = yes; then
18813         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18814         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18815
18816         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18817         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18818
18819         # If archive_cmds runs LD, not CC, wlarc should be empty
18820         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18821         #     investigate it a little bit more. (MM)
18822         wlarc='${wl}'
18823
18824         # ancient GNU ld didn't support --whole-archive et. al.
18825         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18826           $GREP 'no-whole-archive' > /dev/null; then
18827           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18828         else
18829           whole_archive_flag_spec_CXX=
18830         fi
18831       else
18832         with_gnu_ld=no
18833         wlarc=
18834
18835         # A generic and very simple default shared library creation
18836         # command for GNU C++ for the case where it uses the native
18837         # linker, instead of GNU ld.  If possible, this setting should
18838         # overridden to take advantage of the native linker features on
18839         # the platform it is being used on.
18840         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18841       fi
18842
18843       # Commands to make compiler produce verbose output that lists
18844       # what "hidden" libraries, object files and flags are used when
18845       # linking a shared library.
18846       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18847
18848     else
18849       GXX=no
18850       with_gnu_ld=no
18851       wlarc=
18852     fi
18853
18854     # PORTME: fill in a description of your system's C++ link characteristics
18855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18856 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18857     ld_shlibs_CXX=yes
18858     case $host_os in
18859       aix3*)
18860         # FIXME: insert proper C++ library support
18861         ld_shlibs_CXX=no
18862         ;;
18863       aix[4-9]*)
18864         if test "$host_cpu" = ia64; then
18865           # On IA64, the linker does run time linking by default, so we don't
18866           # have to do anything special.
18867           aix_use_runtimelinking=no
18868           exp_sym_flag='-Bexport'
18869           no_entry_flag=""
18870         else
18871           aix_use_runtimelinking=no
18872
18873           # Test if we are trying to use run time linking or normal
18874           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18875           # need to do runtime linking.
18876           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18877             for ld_flag in $LDFLAGS; do
18878               case $ld_flag in
18879               *-brtl*)
18880                 aix_use_runtimelinking=yes
18881                 break
18882                 ;;
18883               esac
18884             done
18885             ;;
18886           esac
18887
18888           exp_sym_flag='-bexport'
18889           no_entry_flag='-bnoentry'
18890         fi
18891
18892         # When large executables or shared objects are built, AIX ld can
18893         # have problems creating the table of contents.  If linking a library
18894         # or program results in "error TOC overflow" add -mminimal-toc to
18895         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18896         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18897
18898         archive_cmds_CXX=''
18899         hardcode_direct_CXX=yes
18900         hardcode_direct_absolute_CXX=yes
18901         hardcode_libdir_separator_CXX=':'
18902         link_all_deplibs_CXX=yes
18903         file_list_spec_CXX='${wl}-f,'
18904
18905         if test "$GXX" = yes; then
18906           case $host_os in aix4.[012]|aix4.[012].*)
18907           # We only want to do this on AIX 4.2 and lower, the check
18908           # below for broken collect2 doesn't work under 4.3+
18909           collect2name=`${CC} -print-prog-name=collect2`
18910           if test -f "$collect2name" &&
18911              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18912           then
18913             # We have reworked collect2
18914             :
18915           else
18916             # We have old collect2
18917             hardcode_direct_CXX=unsupported
18918             # It fails to find uninstalled libraries when the uninstalled
18919             # path is not listed in the libpath.  Setting hardcode_minus_L
18920             # to unsupported forces relinking
18921             hardcode_minus_L_CXX=yes
18922             hardcode_libdir_flag_spec_CXX='-L$libdir'
18923             hardcode_libdir_separator_CXX=
18924           fi
18925           esac
18926           shared_flag='-shared'
18927           if test "$aix_use_runtimelinking" = yes; then
18928             shared_flag="$shared_flag "'${wl}-G'
18929           fi
18930         else
18931           # not using gcc
18932           if test "$host_cpu" = ia64; then
18933           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18934           # chokes on -Wl,-G. The following line is correct:
18935           shared_flag='-G'
18936           else
18937             if test "$aix_use_runtimelinking" = yes; then
18938               shared_flag='${wl}-G'
18939             else
18940               shared_flag='${wl}-bM:SRE'
18941             fi
18942           fi
18943         fi
18944
18945         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18946         # It seems that -bexpall does not export symbols beginning with
18947         # underscore (_), so it is better to generate a list of symbols to
18948         # export.
18949         always_export_symbols_CXX=yes
18950         if test "$aix_use_runtimelinking" = yes; then
18951           # Warning - without using the other runtime loading flags (-brtl),
18952           # -berok will link without error, but may produce a broken library.
18953           allow_undefined_flag_CXX='-berok'
18954           # Determine the default libpath from the value encoded in an empty
18955           # executable.
18956           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18957 /* end confdefs.h.  */
18958
18959 int
18960 main ()
18961 {
18962
18963   ;
18964   return 0;
18965 }
18966 _ACEOF
18967 if ac_fn_cxx_try_link "$LINENO"; then :
18968
18969 lt_aix_libpath_sed='
18970     /Import File Strings/,/^$/ {
18971         /^0/ {
18972             s/^0  *\(.*\)$/\1/
18973             p
18974         }
18975     }'
18976 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18977 # Check for a 64-bit object if we didn't find anything.
18978 if test -z "$aix_libpath"; then
18979   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18980 fi
18981 fi
18982 rm -f core conftest.err conftest.$ac_objext \
18983     conftest$ac_exeext conftest.$ac_ext
18984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18985
18986           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18987
18988           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"
18989         else
18990           if test "$host_cpu" = ia64; then
18991             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18992             allow_undefined_flag_CXX="-z nodefs"
18993             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"
18994           else
18995             # Determine the default libpath from the value encoded in an
18996             # empty executable.
18997             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h.  */
18999
19000 int
19001 main ()
19002 {
19003
19004   ;
19005   return 0;
19006 }
19007 _ACEOF
19008 if ac_fn_cxx_try_link "$LINENO"; then :
19009
19010 lt_aix_libpath_sed='
19011     /Import File Strings/,/^$/ {
19012         /^0/ {
19013             s/^0  *\(.*\)$/\1/
19014             p
19015         }
19016     }'
19017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19018 # Check for a 64-bit object if we didn't find anything.
19019 if test -z "$aix_libpath"; then
19020   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19021 fi
19022 fi
19023 rm -f core conftest.err conftest.$ac_objext \
19024     conftest$ac_exeext conftest.$ac_ext
19025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19026
19027             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19028             # Warning - without using the other run time loading flags,
19029             # -berok will link without error, but may produce a broken library.
19030             no_undefined_flag_CXX=' ${wl}-bernotok'
19031             allow_undefined_flag_CXX=' ${wl}-berok'
19032             if test "$with_gnu_ld" = yes; then
19033               # We only use this code for GNU lds that support --whole-archive.
19034               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19035             else
19036               # Exported symbols can be pulled into shared objects from archives
19037               whole_archive_flag_spec_CXX='$convenience'
19038             fi
19039             archive_cmds_need_lc_CXX=yes
19040             # This is similar to how AIX traditionally builds its shared
19041             # libraries.
19042             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'
19043           fi
19044         fi
19045         ;;
19046
19047       beos*)
19048         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19049           allow_undefined_flag_CXX=unsupported
19050           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19051           # support --undefined.  This deserves some investigation.  FIXME
19052           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19053         else
19054           ld_shlibs_CXX=no
19055         fi
19056         ;;
19057
19058       chorus*)
19059         case $cc_basename in
19060           *)
19061           # FIXME: insert proper C++ library support
19062           ld_shlibs_CXX=no
19063           ;;
19064         esac
19065         ;;
19066
19067       cygwin* | mingw* | pw32* | cegcc*)
19068         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19069         # as there is no search path for DLLs.
19070         hardcode_libdir_flag_spec_CXX='-L$libdir'
19071         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19072         allow_undefined_flag_CXX=unsupported
19073         always_export_symbols_CXX=no
19074         enable_shared_with_static_runtimes_CXX=yes
19075
19076         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19077           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'
19078           # If the export-symbols file already is a .def file (1st line
19079           # is EXPORTS), use it as is; otherwise, prepend...
19080           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19081             cp $export_symbols $output_objdir/$soname.def;
19082           else
19083             echo EXPORTS > $output_objdir/$soname.def;
19084             cat $export_symbols >> $output_objdir/$soname.def;
19085           fi~
19086           $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'
19087         else
19088           ld_shlibs_CXX=no
19089         fi
19090         ;;
19091       darwin* | rhapsody*)
19092
19093
19094   archive_cmds_need_lc_CXX=no
19095   hardcode_direct_CXX=no
19096   hardcode_automatic_CXX=yes
19097   hardcode_shlibpath_var_CXX=unsupported
19098   if test "$lt_cv_ld_force_load" = "yes"; then
19099     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\"`'
19100   else
19101     whole_archive_flag_spec_CXX=''
19102   fi
19103   link_all_deplibs_CXX=yes
19104   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19105   case $cc_basename in
19106      ifort*) _lt_dar_can_shared=yes ;;
19107      *) _lt_dar_can_shared=$GCC ;;
19108   esac
19109   if test "$_lt_dar_can_shared" = "yes"; then
19110     output_verbose_link_cmd=func_echo_all
19111     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}"
19112     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19113     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}"
19114     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}"
19115        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19116       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}"
19117       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}"
19118     fi
19119
19120   else
19121   ld_shlibs_CXX=no
19122   fi
19123
19124         ;;
19125
19126       dgux*)
19127         case $cc_basename in
19128           ec++*)
19129             # FIXME: insert proper C++ library support
19130             ld_shlibs_CXX=no
19131             ;;
19132           ghcx*)
19133             # Green Hills C++ Compiler
19134             # FIXME: insert proper C++ library support
19135             ld_shlibs_CXX=no
19136             ;;
19137           *)
19138             # FIXME: insert proper C++ library support
19139             ld_shlibs_CXX=no
19140             ;;
19141         esac
19142         ;;
19143
19144       freebsd2.*)
19145         # C++ shared libraries reported to be fairly broken before
19146         # switch to ELF
19147         ld_shlibs_CXX=no
19148         ;;
19149
19150       freebsd-elf*)
19151         archive_cmds_need_lc_CXX=no
19152         ;;
19153
19154       freebsd* | dragonfly*)
19155         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19156         # conventions
19157         ld_shlibs_CXX=yes
19158         ;;
19159
19160       gnu*)
19161         ;;
19162
19163       haiku*)
19164         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19165         link_all_deplibs_CXX=yes
19166         ;;
19167
19168       hpux9*)
19169         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19170         hardcode_libdir_separator_CXX=:
19171         export_dynamic_flag_spec_CXX='${wl}-E'
19172         hardcode_direct_CXX=yes
19173         hardcode_minus_L_CXX=yes # Not in the search PATH,
19174                                              # but as the default
19175                                              # location of the library.
19176
19177         case $cc_basename in
19178           CC*)
19179             # FIXME: insert proper C++ library support
19180             ld_shlibs_CXX=no
19181             ;;
19182           aCC*)
19183             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'
19184             # Commands to make compiler produce verbose output that lists
19185             # what "hidden" libraries, object files and flags are used when
19186             # linking a shared library.
19187             #
19188             # There doesn't appear to be a way to prevent this compiler from
19189             # explicitly linking system object files so we need to strip them
19190             # from the output so that they don't get included in the library
19191             # dependencies.
19192             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"'
19193             ;;
19194           *)
19195             if test "$GXX" = yes; then
19196               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'
19197             else
19198               # FIXME: insert proper C++ library support
19199               ld_shlibs_CXX=no
19200             fi
19201             ;;
19202         esac
19203         ;;
19204
19205       hpux10*|hpux11*)
19206         if test $with_gnu_ld = no; then
19207           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19208           hardcode_libdir_separator_CXX=:
19209
19210           case $host_cpu in
19211             hppa*64*|ia64*)
19212               ;;
19213             *)
19214               export_dynamic_flag_spec_CXX='${wl}-E'
19215               ;;
19216           esac
19217         fi
19218         case $host_cpu in
19219           hppa*64*|ia64*)
19220             hardcode_direct_CXX=no
19221             hardcode_shlibpath_var_CXX=no
19222             ;;
19223           *)
19224             hardcode_direct_CXX=yes
19225             hardcode_direct_absolute_CXX=yes
19226             hardcode_minus_L_CXX=yes # Not in the search PATH,
19227                                                  # but as the default
19228                                                  # location of the library.
19229             ;;
19230         esac
19231
19232         case $cc_basename in
19233           CC*)
19234             # FIXME: insert proper C++ library support
19235             ld_shlibs_CXX=no
19236             ;;
19237           aCC*)
19238             case $host_cpu in
19239               hppa*64*)
19240                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19241                 ;;
19242               ia64*)
19243                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19244                 ;;
19245               *)
19246                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19247                 ;;
19248             esac
19249             # Commands to make compiler produce verbose output that lists
19250             # what "hidden" libraries, object files and flags are used when
19251             # linking a shared library.
19252             #
19253             # There doesn't appear to be a way to prevent this compiler from
19254             # explicitly linking system object files so we need to strip them
19255             # from the output so that they don't get included in the library
19256             # dependencies.
19257             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"'
19258             ;;
19259           *)
19260             if test "$GXX" = yes; then
19261               if test $with_gnu_ld = no; then
19262                 case $host_cpu in
19263                   hppa*64*)
19264                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19265                     ;;
19266                   ia64*)
19267                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19268                     ;;
19269                   *)
19270                     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'
19271                     ;;
19272                 esac
19273               fi
19274             else
19275               # FIXME: insert proper C++ library support
19276               ld_shlibs_CXX=no
19277             fi
19278             ;;
19279         esac
19280         ;;
19281
19282       interix[3-9]*)
19283         hardcode_direct_CXX=no
19284         hardcode_shlibpath_var_CXX=no
19285         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19286         export_dynamic_flag_spec_CXX='${wl}-E'
19287         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19288         # Instead, shared libraries are loaded at an image base (0x10000000 by
19289         # default) and relocated if they conflict, which is a slow very memory
19290         # consuming and fragmenting process.  To avoid this, we pick a random,
19291         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19292         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19293         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'
19294         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'
19295         ;;
19296       irix5* | irix6*)
19297         case $cc_basename in
19298           CC*)
19299             # SGI C++
19300             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'
19301
19302             # Archives containing C++ object files must be created using
19303             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19304             # necessary to make sure instantiated templates are included
19305             # in the archive.
19306             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19307             ;;
19308           *)
19309             if test "$GXX" = yes; then
19310               if test "$with_gnu_ld" = no; then
19311                 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'
19312               else
19313                 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'
19314               fi
19315             fi
19316             link_all_deplibs_CXX=yes
19317             ;;
19318         esac
19319         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19320         hardcode_libdir_separator_CXX=:
19321         inherit_rpath_CXX=yes
19322         ;;
19323
19324       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19325         case $cc_basename in
19326           KCC*)
19327             # Kuck and Associates, Inc. (KAI) C++ Compiler
19328
19329             # KCC will only create a shared library if the output file
19330             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19331             # to its proper name (with version) after linking.
19332             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'
19333             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'
19334             # Commands to make compiler produce verbose output that lists
19335             # what "hidden" libraries, object files and flags are used when
19336             # linking a shared library.
19337             #
19338             # There doesn't appear to be a way to prevent this compiler from
19339             # explicitly linking system object files so we need to strip them
19340             # from the output so that they don't get included in the library
19341             # dependencies.
19342             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"'
19343
19344             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19345             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19346
19347             # Archives containing C++ object files must be created using
19348             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19349             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19350             ;;
19351           icpc* | ecpc* )
19352             # Intel C++
19353             with_gnu_ld=yes
19354             # version 8.0 and above of icpc choke on multiply defined symbols
19355             # if we add $predep_objects and $postdep_objects, however 7.1 and
19356             # earlier do not add the objects themselves.
19357             case `$CC -V 2>&1` in
19358               *"Version 7."*)
19359                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19360                 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'
19361                 ;;
19362               *)  # Version 8.0 or newer
19363                 tmp_idyn=
19364                 case $host_cpu in
19365                   ia64*) tmp_idyn=' -i_dynamic';;
19366                 esac
19367                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19368                 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'
19369                 ;;
19370             esac
19371             archive_cmds_need_lc_CXX=no
19372             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19373             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19374             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19375             ;;
19376           pgCC* | pgcpp*)
19377             # Portland Group C++ compiler
19378             case `$CC -V` in
19379             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19380               prelink_cmds_CXX='tpldir=Template.dir~
19381                 rm -rf $tpldir~
19382                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19383                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19384               old_archive_cmds_CXX='tpldir=Template.dir~
19385                 rm -rf $tpldir~
19386                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19387                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19388                 $RANLIB $oldlib'
19389               archive_cmds_CXX='tpldir=Template.dir~
19390                 rm -rf $tpldir~
19391                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19392                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19393               archive_expsym_cmds_CXX='tpldir=Template.dir~
19394                 rm -rf $tpldir~
19395                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19396                 $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'
19397               ;;
19398             *) # Version 6 and above use weak symbols
19399               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19400               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'
19401               ;;
19402             esac
19403
19404             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19405             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19406             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'
19407             ;;
19408           cxx*)
19409             # Compaq C++
19410             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19411             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'
19412
19413             runpath_var=LD_RUN_PATH
19414             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19415             hardcode_libdir_separator_CXX=:
19416
19417             # Commands to make compiler produce verbose output that lists
19418             # what "hidden" libraries, object files and flags are used when
19419             # linking a shared library.
19420             #
19421             # There doesn't appear to be a way to prevent this compiler from
19422             # explicitly linking system object files so we need to strip them
19423             # from the output so that they don't get included in the library
19424             # dependencies.
19425             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'
19426             ;;
19427           xl* | mpixl* | bgxl*)
19428             # IBM XL 8.0 on PPC, with GNU ld
19429             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19430             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19431             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19432             if test "x$supports_anon_versioning" = xyes; then
19433               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19434                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19435                 echo "local: *; };" >> $output_objdir/$libname.ver~
19436                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19437             fi
19438             ;;
19439           *)
19440             case `$CC -V 2>&1 | sed 5q` in
19441             *Sun\ C*)
19442               # Sun C++ 5.9
19443               no_undefined_flag_CXX=' -zdefs'
19444               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19445               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'
19446               hardcode_libdir_flag_spec_CXX='-R$libdir'
19447               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'
19448               compiler_needs_object_CXX=yes
19449
19450               # Not sure whether something based on
19451               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19452               # would be better.
19453               output_verbose_link_cmd='func_echo_all'
19454
19455               # Archives containing C++ object files must be created using
19456               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19457               # necessary to make sure instantiated templates are included
19458               # in the archive.
19459               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19460               ;;
19461             esac
19462             ;;
19463         esac
19464         ;;
19465
19466       lynxos*)
19467         # FIXME: insert proper C++ library support
19468         ld_shlibs_CXX=no
19469         ;;
19470
19471       m88k*)
19472         # FIXME: insert proper C++ library support
19473         ld_shlibs_CXX=no
19474         ;;
19475
19476       mvs*)
19477         case $cc_basename in
19478           cxx*)
19479             # FIXME: insert proper C++ library support
19480             ld_shlibs_CXX=no
19481             ;;
19482           *)
19483             # FIXME: insert proper C++ library support
19484             ld_shlibs_CXX=no
19485             ;;
19486         esac
19487         ;;
19488
19489       netbsd*)
19490         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19491           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19492           wlarc=
19493           hardcode_libdir_flag_spec_CXX='-R$libdir'
19494           hardcode_direct_CXX=yes
19495           hardcode_shlibpath_var_CXX=no
19496         fi
19497         # Workaround some broken pre-1.5 toolchains
19498         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19499         ;;
19500
19501       *nto* | *qnx*)
19502         ld_shlibs_CXX=yes
19503         ;;
19504
19505       openbsd2*)
19506         # C++ shared libraries are fairly broken
19507         ld_shlibs_CXX=no
19508         ;;
19509
19510       openbsd*)
19511         if test -f /usr/libexec/ld.so; then
19512           hardcode_direct_CXX=yes
19513           hardcode_shlibpath_var_CXX=no
19514           hardcode_direct_absolute_CXX=yes
19515           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19516           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19517           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19518             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19519             export_dynamic_flag_spec_CXX='${wl}-E'
19520             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19521           fi
19522           output_verbose_link_cmd=func_echo_all
19523         else
19524           ld_shlibs_CXX=no
19525         fi
19526         ;;
19527
19528       osf3* | osf4* | osf5*)
19529         case $cc_basename in
19530           KCC*)
19531             # Kuck and Associates, Inc. (KAI) C++ Compiler
19532
19533             # KCC will only create a shared library if the output file
19534             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19535             # to its proper name (with version) after linking.
19536             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'
19537
19538             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19539             hardcode_libdir_separator_CXX=:
19540
19541             # Archives containing C++ object files must be created using
19542             # the KAI C++ compiler.
19543             case $host in
19544               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19545               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19546             esac
19547             ;;
19548           RCC*)
19549             # Rational C++ 2.4.1
19550             # FIXME: insert proper C++ library support
19551             ld_shlibs_CXX=no
19552             ;;
19553           cxx*)
19554             case $host in
19555               osf3*)
19556                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19557                 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'
19558                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19559                 ;;
19560               *)
19561                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19562                 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'
19563                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19564                   echo "-hidden">> $lib.exp~
19565                   $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~
19566                   $RM $lib.exp'
19567                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19568                 ;;
19569             esac
19570
19571             hardcode_libdir_separator_CXX=:
19572
19573             # Commands to make compiler produce verbose output that lists
19574             # what "hidden" libraries, object files and flags are used when
19575             # linking a shared library.
19576             #
19577             # There doesn't appear to be a way to prevent this compiler from
19578             # explicitly linking system object files so we need to strip them
19579             # from the output so that they don't get included in the library
19580             # dependencies.
19581             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"'
19582             ;;
19583           *)
19584             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19585               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19586               case $host in
19587                 osf3*)
19588                   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'
19589                   ;;
19590                 *)
19591                   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'
19592                   ;;
19593               esac
19594
19595               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19596               hardcode_libdir_separator_CXX=:
19597
19598               # Commands to make compiler produce verbose output that lists
19599               # what "hidden" libraries, object files and flags are used when
19600               # linking a shared library.
19601               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19602
19603             else
19604               # FIXME: insert proper C++ library support
19605               ld_shlibs_CXX=no
19606             fi
19607             ;;
19608         esac
19609         ;;
19610
19611       psos*)
19612         # FIXME: insert proper C++ library support
19613         ld_shlibs_CXX=no
19614         ;;
19615
19616       sunos4*)
19617         case $cc_basename in
19618           CC*)
19619             # Sun C++ 4.x
19620             # FIXME: insert proper C++ library support
19621             ld_shlibs_CXX=no
19622             ;;
19623           lcc*)
19624             # Lucid
19625             # FIXME: insert proper C++ library support
19626             ld_shlibs_CXX=no
19627             ;;
19628           *)
19629             # FIXME: insert proper C++ library support
19630             ld_shlibs_CXX=no
19631             ;;
19632         esac
19633         ;;
19634
19635       solaris*)
19636         case $cc_basename in
19637           CC*)
19638             # Sun C++ 4.2, 5.x and Centerline C++
19639             archive_cmds_need_lc_CXX=yes
19640             no_undefined_flag_CXX=' -zdefs'
19641             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19642             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19643               $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'
19644
19645             hardcode_libdir_flag_spec_CXX='-R$libdir'
19646             hardcode_shlibpath_var_CXX=no
19647             case $host_os in
19648               solaris2.[0-5] | solaris2.[0-5].*) ;;
19649               *)
19650                 # The compiler driver will combine and reorder linker options,
19651                 # but understands `-z linker_flag'.
19652                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19653                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19654                 ;;
19655             esac
19656             link_all_deplibs_CXX=yes
19657
19658             output_verbose_link_cmd='func_echo_all'
19659
19660             # Archives containing C++ object files must be created using
19661             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19662             # necessary to make sure instantiated templates are included
19663             # in the archive.
19664             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19665             ;;
19666           gcx*)
19667             # Green Hills C++ Compiler
19668             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19669
19670             # The C++ compiler must be used to create the archive.
19671             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19672             ;;
19673           *)
19674             # GNU C++ compiler with Solaris linker
19675             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19676               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19677               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19678                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19679                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19680                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19681
19682                 # Commands to make compiler produce verbose output that lists
19683                 # what "hidden" libraries, object files and flags are used when
19684                 # linking a shared library.
19685                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19686               else
19687                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19688                 # platform.
19689                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19690                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19691                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19692
19693                 # Commands to make compiler produce verbose output that lists
19694                 # what "hidden" libraries, object files and flags are used when
19695                 # linking a shared library.
19696                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19697               fi
19698
19699               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19700               case $host_os in
19701                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19702                 *)
19703                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19704                   ;;
19705               esac
19706             fi
19707             ;;
19708         esac
19709         ;;
19710
19711     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19712       no_undefined_flag_CXX='${wl}-z,text'
19713       archive_cmds_need_lc_CXX=no
19714       hardcode_shlibpath_var_CXX=no
19715       runpath_var='LD_RUN_PATH'
19716
19717       case $cc_basename in
19718         CC*)
19719           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19720           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19721           ;;
19722         *)
19723           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19724           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19725           ;;
19726       esac
19727       ;;
19728
19729       sysv5* | sco3.2v5* | sco5v6*)
19730         # Note: We can NOT use -z defs as we might desire, because we do not
19731         # link with -lc, and that would cause any symbols used from libc to
19732         # always be unresolved, which means just about no library would
19733         # ever link correctly.  If we're not using GNU ld we use -z text
19734         # though, which does catch some bad symbols but isn't as heavy-handed
19735         # as -z defs.
19736         no_undefined_flag_CXX='${wl}-z,text'
19737         allow_undefined_flag_CXX='${wl}-z,nodefs'
19738         archive_cmds_need_lc_CXX=no
19739         hardcode_shlibpath_var_CXX=no
19740         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19741         hardcode_libdir_separator_CXX=':'
19742         link_all_deplibs_CXX=yes
19743         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19744         runpath_var='LD_RUN_PATH'
19745
19746         case $cc_basename in
19747           CC*)
19748             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19749             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19750             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19751               '"$old_archive_cmds_CXX"
19752             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19753               '"$reload_cmds_CXX"
19754             ;;
19755           *)
19756             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19757             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19758             ;;
19759         esac
19760       ;;
19761
19762       tandem*)
19763         case $cc_basename in
19764           NCC*)
19765             # NonStop-UX NCC 3.20
19766             # FIXME: insert proper C++ library support
19767             ld_shlibs_CXX=no
19768             ;;
19769           *)
19770             # FIXME: insert proper C++ library support
19771             ld_shlibs_CXX=no
19772             ;;
19773         esac
19774         ;;
19775
19776       vxworks*)
19777         # FIXME: insert proper C++ library support
19778         ld_shlibs_CXX=no
19779         ;;
19780
19781       *)
19782         # FIXME: insert proper C++ library support
19783         ld_shlibs_CXX=no
19784         ;;
19785     esac
19786
19787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19788 $as_echo "$ld_shlibs_CXX" >&6; }
19789     test "$ld_shlibs_CXX" = no && can_build_shared=no
19790
19791     GCC_CXX="$GXX"
19792     LD_CXX="$LD"
19793
19794     ## CAVEAT EMPTOR:
19795     ## There is no encapsulation within the following macros, do not change
19796     ## the running order or otherwise move them around unless you know exactly
19797     ## what you are doing...
19798     # Dependencies to place before and after the object being linked:
19799 predep_objects_CXX=
19800 postdep_objects_CXX=
19801 predeps_CXX=
19802 postdeps_CXX=
19803 compiler_lib_search_path_CXX=
19804
19805 cat > conftest.$ac_ext <<_LT_EOF
19806 class Foo
19807 {
19808 public:
19809   Foo (void) { a = 0; }
19810 private:
19811   int a;
19812 };
19813 _LT_EOF
19814
19815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19816   (eval $ac_compile) 2>&5
19817   ac_status=$?
19818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19819   test $ac_status = 0; }; then
19820   # Parse the compiler output and extract the necessary
19821   # objects, libraries and library flags.
19822
19823   # Sentinel used to keep track of whether or not we are before
19824   # the conftest object file.
19825   pre_test_object_deps_done=no
19826
19827   for p in `eval "$output_verbose_link_cmd"`; do
19828     case $p in
19829
19830     -L* | -R* | -l*)
19831        # Some compilers place space between "-{L,R}" and the path.
19832        # Remove the space.
19833        if test $p = "-L" ||
19834           test $p = "-R"; then
19835          prev=$p
19836          continue
19837        else
19838          prev=
19839        fi
19840
19841        if test "$pre_test_object_deps_done" = no; then
19842          case $p in
19843          -L* | -R*)
19844            # Internal compiler library paths should come after those
19845            # provided the user.  The postdeps already come after the
19846            # user supplied libs so there is no need to process them.
19847            if test -z "$compiler_lib_search_path_CXX"; then
19848              compiler_lib_search_path_CXX="${prev}${p}"
19849            else
19850              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19851            fi
19852            ;;
19853          # The "-l" case would never come before the object being
19854          # linked, so don't bother handling this case.
19855          esac
19856        else
19857          if test -z "$postdeps_CXX"; then
19858            postdeps_CXX="${prev}${p}"
19859          else
19860            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19861          fi
19862        fi
19863        ;;
19864
19865     *.$objext)
19866        # This assumes that the test object file only shows up
19867        # once in the compiler output.
19868        if test "$p" = "conftest.$objext"; then
19869          pre_test_object_deps_done=yes
19870          continue
19871        fi
19872
19873        if test "$pre_test_object_deps_done" = no; then
19874          if test -z "$predep_objects_CXX"; then
19875            predep_objects_CXX="$p"
19876          else
19877            predep_objects_CXX="$predep_objects_CXX $p"
19878          fi
19879        else
19880          if test -z "$postdep_objects_CXX"; then
19881            postdep_objects_CXX="$p"
19882          else
19883            postdep_objects_CXX="$postdep_objects_CXX $p"
19884          fi
19885        fi
19886        ;;
19887
19888     *) ;; # Ignore the rest.
19889
19890     esac
19891   done
19892
19893   # Clean up.
19894   rm -f a.out a.exe
19895 else
19896   echo "libtool.m4: error: problem compiling CXX test program"
19897 fi
19898
19899 $RM -f confest.$objext
19900
19901 # PORTME: override above test on systems where it is broken
19902 case $host_os in
19903 interix[3-9]*)
19904   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19905   # hack all around it, let's just trust "g++" to DTRT.
19906   predep_objects_CXX=
19907   postdep_objects_CXX=
19908   postdeps_CXX=
19909   ;;
19910
19911 linux*)
19912   case `$CC -V 2>&1 | sed 5q` in
19913   *Sun\ C*)
19914     # Sun C++ 5.9
19915
19916     # The more standards-conforming stlport4 library is
19917     # incompatible with the Cstd library. Avoid specifying
19918     # it if it's in CXXFLAGS. Ignore libCrun as
19919     # -library=stlport4 depends on it.
19920     case " $CXX $CXXFLAGS " in
19921     *" -library=stlport4 "*)
19922       solaris_use_stlport4=yes
19923       ;;
19924     esac
19925
19926     if test "$solaris_use_stlport4" != yes; then
19927       postdeps_CXX='-library=Cstd -library=Crun'
19928     fi
19929     ;;
19930   esac
19931   ;;
19932
19933 solaris*)
19934   case $cc_basename in
19935   CC*)
19936     # The more standards-conforming stlport4 library is
19937     # incompatible with the Cstd library. Avoid specifying
19938     # it if it's in CXXFLAGS. Ignore libCrun as
19939     # -library=stlport4 depends on it.
19940     case " $CXX $CXXFLAGS " in
19941     *" -library=stlport4 "*)
19942       solaris_use_stlport4=yes
19943       ;;
19944     esac
19945
19946     # Adding this requires a known-good setup of shared libraries for
19947     # Sun compiler versions before 5.6, else PIC objects from an old
19948     # archive will be linked into the output, leading to subtle bugs.
19949     if test "$solaris_use_stlport4" != yes; then
19950       postdeps_CXX='-library=Cstd -library=Crun'
19951     fi
19952     ;;
19953   esac
19954   ;;
19955 esac
19956
19957
19958 case " $postdeps_CXX " in
19959 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19960 esac
19961  compiler_lib_search_dirs_CXX=
19962 if test -n "${compiler_lib_search_path_CXX}"; then
19963  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19964 fi
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996     lt_prog_compiler_wl_CXX=
19997 lt_prog_compiler_pic_CXX=
19998 lt_prog_compiler_static_CXX=
19999
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20001 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20002
20003   # C++ specific cases for pic, static, wl, etc.
20004   if test "$GXX" = yes; then
20005     lt_prog_compiler_wl_CXX='-Wl,'
20006     lt_prog_compiler_static_CXX='-static'
20007
20008     case $host_os in
20009     aix*)
20010       # All AIX code is PIC.
20011       if test "$host_cpu" = ia64; then
20012         # AIX 5 now supports IA64 processor
20013         lt_prog_compiler_static_CXX='-Bstatic'
20014       fi
20015       ;;
20016
20017     amigaos*)
20018       case $host_cpu in
20019       powerpc)
20020             # see comment about AmigaOS4 .so support
20021             lt_prog_compiler_pic_CXX='-fPIC'
20022         ;;
20023       m68k)
20024             # FIXME: we need at least 68020 code to build shared libraries, but
20025             # adding the `-m68020' flag to GCC prevents building anything better,
20026             # like `-m68040'.
20027             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20028         ;;
20029       esac
20030       ;;
20031
20032     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20033       # PIC is the default for these OSes.
20034       ;;
20035     mingw* | cygwin* | os2* | pw32* | cegcc*)
20036       # This hack is so that the source file can tell whether it is being
20037       # built for inclusion in a dll (and should export symbols for example).
20038       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20039       # (--disable-auto-import) libraries
20040       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20041       ;;
20042     darwin* | rhapsody*)
20043       # PIC is the default on this platform
20044       # Common symbols not allowed in MH_DYLIB files
20045       lt_prog_compiler_pic_CXX='-fno-common'
20046       ;;
20047     *djgpp*)
20048       # DJGPP does not support shared libraries at all
20049       lt_prog_compiler_pic_CXX=
20050       ;;
20051     haiku*)
20052       # PIC is the default for Haiku.
20053       # The "-static" flag exists, but is broken.
20054       lt_prog_compiler_static_CXX=
20055       ;;
20056     interix[3-9]*)
20057       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20058       # Instead, we relocate shared libraries at runtime.
20059       ;;
20060     sysv4*MP*)
20061       if test -d /usr/nec; then
20062         lt_prog_compiler_pic_CXX=-Kconform_pic
20063       fi
20064       ;;
20065     hpux*)
20066       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20067       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20068       # sets the default TLS model and affects inlining.
20069       case $host_cpu in
20070       hppa*64*)
20071         ;;
20072       *)
20073         lt_prog_compiler_pic_CXX='-fPIC'
20074         ;;
20075       esac
20076       ;;
20077     *qnx* | *nto*)
20078       # QNX uses GNU C++, but need to define -shared option too, otherwise
20079       # it will coredump.
20080       lt_prog_compiler_pic_CXX='-fPIC -shared'
20081       ;;
20082     *)
20083       lt_prog_compiler_pic_CXX='-fPIC'
20084       ;;
20085     esac
20086   else
20087     case $host_os in
20088       aix[4-9]*)
20089         # All AIX code is PIC.
20090         if test "$host_cpu" = ia64; then
20091           # AIX 5 now supports IA64 processor
20092           lt_prog_compiler_static_CXX='-Bstatic'
20093         else
20094           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20095         fi
20096         ;;
20097       chorus*)
20098         case $cc_basename in
20099         cxch68*)
20100           # Green Hills C++ Compiler
20101           # _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"
20102           ;;
20103         esac
20104         ;;
20105       dgux*)
20106         case $cc_basename in
20107           ec++*)
20108             lt_prog_compiler_pic_CXX='-KPIC'
20109             ;;
20110           ghcx*)
20111             # Green Hills C++ Compiler
20112             lt_prog_compiler_pic_CXX='-pic'
20113             ;;
20114           *)
20115             ;;
20116         esac
20117         ;;
20118       freebsd* | dragonfly*)
20119         # FreeBSD uses GNU C++
20120         ;;
20121       hpux9* | hpux10* | hpux11*)
20122         case $cc_basename in
20123           CC*)
20124             lt_prog_compiler_wl_CXX='-Wl,'
20125             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20126             if test "$host_cpu" != ia64; then
20127               lt_prog_compiler_pic_CXX='+Z'
20128             fi
20129             ;;
20130           aCC*)
20131             lt_prog_compiler_wl_CXX='-Wl,'
20132             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20133             case $host_cpu in
20134             hppa*64*|ia64*)
20135               # +Z the default
20136               ;;
20137             *)
20138               lt_prog_compiler_pic_CXX='+Z'
20139               ;;
20140             esac
20141             ;;
20142           *)
20143             ;;
20144         esac
20145         ;;
20146       interix*)
20147         # This is c89, which is MS Visual C++ (no shared libs)
20148         # Anyone wants to do a port?
20149         ;;
20150       irix5* | irix6* | nonstopux*)
20151         case $cc_basename in
20152           CC*)
20153             lt_prog_compiler_wl_CXX='-Wl,'
20154             lt_prog_compiler_static_CXX='-non_shared'
20155             # CC pic flag -KPIC is the default.
20156             ;;
20157           *)
20158             ;;
20159         esac
20160         ;;
20161       linux* | k*bsd*-gnu | kopensolaris*-gnu)
20162         case $cc_basename in
20163           KCC*)
20164             # KAI C++ Compiler
20165             lt_prog_compiler_wl_CXX='--backend -Wl,'
20166             lt_prog_compiler_pic_CXX='-fPIC'
20167             ;;
20168           ecpc* )
20169             # old Intel C++ for x86_64 which still supported -KPIC.
20170             lt_prog_compiler_wl_CXX='-Wl,'
20171             lt_prog_compiler_pic_CXX='-KPIC'
20172             lt_prog_compiler_static_CXX='-static'
20173             ;;
20174           icpc* )
20175             # Intel C++, used to be incompatible with GCC.
20176             # ICC 10 doesn't accept -KPIC any more.
20177             lt_prog_compiler_wl_CXX='-Wl,'
20178             lt_prog_compiler_pic_CXX='-fPIC'
20179             lt_prog_compiler_static_CXX='-static'
20180             ;;
20181           pgCC* | pgcpp*)
20182             # Portland Group C++ compiler
20183             lt_prog_compiler_wl_CXX='-Wl,'
20184             lt_prog_compiler_pic_CXX='-fpic'
20185             lt_prog_compiler_static_CXX='-Bstatic'
20186             ;;
20187           cxx*)
20188             # Compaq C++
20189             # Make sure the PIC flag is empty.  It appears that all Alpha
20190             # Linux and Compaq Tru64 Unix objects are PIC.
20191             lt_prog_compiler_pic_CXX=
20192             lt_prog_compiler_static_CXX='-non_shared'
20193             ;;
20194           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20195             # IBM XL 8.0, 9.0 on PPC and BlueGene
20196             lt_prog_compiler_wl_CXX='-Wl,'
20197             lt_prog_compiler_pic_CXX='-qpic'
20198             lt_prog_compiler_static_CXX='-qstaticlink'
20199             ;;
20200           *)
20201             case `$CC -V 2>&1 | sed 5q` in
20202             *Sun\ C*)
20203               # Sun C++ 5.9
20204               lt_prog_compiler_pic_CXX='-KPIC'
20205               lt_prog_compiler_static_CXX='-Bstatic'
20206               lt_prog_compiler_wl_CXX='-Qoption ld '
20207               ;;
20208             esac
20209             ;;
20210         esac
20211         ;;
20212       lynxos*)
20213         ;;
20214       m88k*)
20215         ;;
20216       mvs*)
20217         case $cc_basename in
20218           cxx*)
20219             lt_prog_compiler_pic_CXX='-W c,exportall'
20220             ;;
20221           *)
20222             ;;
20223         esac
20224         ;;
20225       netbsd*)
20226         ;;
20227       *qnx* | *nto*)
20228         # QNX uses GNU C++, but need to define -shared option too, otherwise
20229         # it will coredump.
20230         lt_prog_compiler_pic_CXX='-fPIC -shared'
20231         ;;
20232       osf3* | osf4* | osf5*)
20233         case $cc_basename in
20234           KCC*)
20235             lt_prog_compiler_wl_CXX='--backend -Wl,'
20236             ;;
20237           RCC*)
20238             # Rational C++ 2.4.1
20239             lt_prog_compiler_pic_CXX='-pic'
20240             ;;
20241           cxx*)
20242             # Digital/Compaq C++
20243             lt_prog_compiler_wl_CXX='-Wl,'
20244             # Make sure the PIC flag is empty.  It appears that all Alpha
20245             # Linux and Compaq Tru64 Unix objects are PIC.
20246             lt_prog_compiler_pic_CXX=
20247             lt_prog_compiler_static_CXX='-non_shared'
20248             ;;
20249           *)
20250             ;;
20251         esac
20252         ;;
20253       psos*)
20254         ;;
20255       solaris*)
20256         case $cc_basename in
20257           CC*)
20258             # Sun C++ 4.2, 5.x and Centerline C++
20259             lt_prog_compiler_pic_CXX='-KPIC'
20260             lt_prog_compiler_static_CXX='-Bstatic'
20261             lt_prog_compiler_wl_CXX='-Qoption ld '
20262             ;;
20263           gcx*)
20264             # Green Hills C++ Compiler
20265             lt_prog_compiler_pic_CXX='-PIC'
20266             ;;
20267           *)
20268             ;;
20269         esac
20270         ;;
20271       sunos4*)
20272         case $cc_basename in
20273           CC*)
20274             # Sun C++ 4.x
20275             lt_prog_compiler_pic_CXX='-pic'
20276             lt_prog_compiler_static_CXX='-Bstatic'
20277             ;;
20278           lcc*)
20279             # Lucid
20280             lt_prog_compiler_pic_CXX='-pic'
20281             ;;
20282           *)
20283             ;;
20284         esac
20285         ;;
20286       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20287         case $cc_basename in
20288           CC*)
20289             lt_prog_compiler_wl_CXX='-Wl,'
20290             lt_prog_compiler_pic_CXX='-KPIC'
20291             lt_prog_compiler_static_CXX='-Bstatic'
20292             ;;
20293         esac
20294         ;;
20295       tandem*)
20296         case $cc_basename in
20297           NCC*)
20298             # NonStop-UX NCC 3.20
20299             lt_prog_compiler_pic_CXX='-KPIC'
20300             ;;
20301           *)
20302             ;;
20303         esac
20304         ;;
20305       vxworks*)
20306         ;;
20307       *)
20308         lt_prog_compiler_can_build_shared_CXX=no
20309         ;;
20310     esac
20311   fi
20312
20313 case $host_os in
20314   # For platforms which do not support PIC, -DPIC is meaningless:
20315   *djgpp*)
20316     lt_prog_compiler_pic_CXX=
20317     ;;
20318   *)
20319     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20320     ;;
20321 esac
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20323 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20324
20325
20326
20327 #
20328 # Check to make sure the PIC flag actually works.
20329 #
20330 if test -n "$lt_prog_compiler_pic_CXX"; then
20331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20332 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20333 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20334   $as_echo_n "(cached) " >&6
20335 else
20336   lt_cv_prog_compiler_pic_works_CXX=no
20337    ac_outfile=conftest.$ac_objext
20338    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20339    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20340    # Insert the option either (1) after the last *FLAGS variable, or
20341    # (2) before a word containing "conftest.", or (3) at the end.
20342    # Note that $ac_compile itself does not contain backslashes and begins
20343    # with a dollar sign (not a hyphen), so the echo should work correctly.
20344    # The option is referenced via a variable to avoid confusing sed.
20345    lt_compile=`echo "$ac_compile" | $SED \
20346    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20347    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20348    -e 's:$: $lt_compiler_flag:'`
20349    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20350    (eval "$lt_compile" 2>conftest.err)
20351    ac_status=$?
20352    cat conftest.err >&5
20353    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354    if (exit $ac_status) && test -s "$ac_outfile"; then
20355      # The compiler can only warn and ignore the option if not recognized
20356      # So say no if there are warnings other than the usual output.
20357      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20358      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20359      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20360        lt_cv_prog_compiler_pic_works_CXX=yes
20361      fi
20362    fi
20363    $RM conftest*
20364
20365 fi
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20367 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20368
20369 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20370     case $lt_prog_compiler_pic_CXX in
20371      "" | " "*) ;;
20372      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20373      esac
20374 else
20375     lt_prog_compiler_pic_CXX=
20376      lt_prog_compiler_can_build_shared_CXX=no
20377 fi
20378
20379 fi
20380
20381
20382
20383 #
20384 # Check to make sure the static flag actually works.
20385 #
20386 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20388 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20389 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20390   $as_echo_n "(cached) " >&6
20391 else
20392   lt_cv_prog_compiler_static_works_CXX=no
20393    save_LDFLAGS="$LDFLAGS"
20394    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20395    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20396    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20397      # The linker can only warn and ignore the option if not recognized
20398      # So say no if there are warnings
20399      if test -s conftest.err; then
20400        # Append any errors to the config.log.
20401        cat conftest.err 1>&5
20402        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20403        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20404        if diff conftest.exp conftest.er2 >/dev/null; then
20405          lt_cv_prog_compiler_static_works_CXX=yes
20406        fi
20407      else
20408        lt_cv_prog_compiler_static_works_CXX=yes
20409      fi
20410    fi
20411    $RM -r conftest*
20412    LDFLAGS="$save_LDFLAGS"
20413
20414 fi
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20416 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20417
20418 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20419     :
20420 else
20421     lt_prog_compiler_static_CXX=
20422 fi
20423
20424
20425
20426
20427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20428 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20429 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20430   $as_echo_n "(cached) " >&6
20431 else
20432   lt_cv_prog_compiler_c_o_CXX=no
20433    $RM -r conftest 2>/dev/null
20434    mkdir conftest
20435    cd conftest
20436    mkdir out
20437    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20438
20439    lt_compiler_flag="-o out/conftest2.$ac_objext"
20440    # Insert the option either (1) after the last *FLAGS variable, or
20441    # (2) before a word containing "conftest.", or (3) at the end.
20442    # Note that $ac_compile itself does not contain backslashes and begins
20443    # with a dollar sign (not a hyphen), so the echo should work correctly.
20444    lt_compile=`echo "$ac_compile" | $SED \
20445    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20447    -e 's:$: $lt_compiler_flag:'`
20448    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20449    (eval "$lt_compile" 2>out/conftest.err)
20450    ac_status=$?
20451    cat out/conftest.err >&5
20452    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20454    then
20455      # The compiler can only warn and ignore the option if not recognized
20456      # So say no if there are warnings
20457      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20458      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20459      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20460        lt_cv_prog_compiler_c_o_CXX=yes
20461      fi
20462    fi
20463    chmod u+w . 2>&5
20464    $RM conftest*
20465    # SGI C++ compiler will create directory out/ii_files/ for
20466    # template instantiation
20467    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20468    $RM out/* && rmdir out
20469    cd ..
20470    $RM -r conftest
20471    $RM conftest*
20472
20473 fi
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20475 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20476
20477
20478
20479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20480 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20481 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20482   $as_echo_n "(cached) " >&6
20483 else
20484   lt_cv_prog_compiler_c_o_CXX=no
20485    $RM -r conftest 2>/dev/null
20486    mkdir conftest
20487    cd conftest
20488    mkdir out
20489    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20490
20491    lt_compiler_flag="-o out/conftest2.$ac_objext"
20492    # Insert the option either (1) after the last *FLAGS variable, or
20493    # (2) before a word containing "conftest.", or (3) at the end.
20494    # Note that $ac_compile itself does not contain backslashes and begins
20495    # with a dollar sign (not a hyphen), so the echo should work correctly.
20496    lt_compile=`echo "$ac_compile" | $SED \
20497    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20498    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20499    -e 's:$: $lt_compiler_flag:'`
20500    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20501    (eval "$lt_compile" 2>out/conftest.err)
20502    ac_status=$?
20503    cat out/conftest.err >&5
20504    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20506    then
20507      # The compiler can only warn and ignore the option if not recognized
20508      # So say no if there are warnings
20509      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20510      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20511      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20512        lt_cv_prog_compiler_c_o_CXX=yes
20513      fi
20514    fi
20515    chmod u+w . 2>&5
20516    $RM conftest*
20517    # SGI C++ compiler will create directory out/ii_files/ for
20518    # template instantiation
20519    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20520    $RM out/* && rmdir out
20521    cd ..
20522    $RM -r conftest
20523    $RM conftest*
20524
20525 fi
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20527 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20528
20529
20530
20531
20532 hard_links="nottested"
20533 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20534   # do not overwrite the value of need_locks provided by the user
20535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20536 $as_echo_n "checking if we can lock with hard links... " >&6; }
20537   hard_links=yes
20538   $RM conftest*
20539   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20540   touch conftest.a
20541   ln conftest.a conftest.b 2>&5 || hard_links=no
20542   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20544 $as_echo "$hard_links" >&6; }
20545   if test "$hard_links" = no; then
20546     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20547 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20548     need_locks=warn
20549   fi
20550 else
20551   need_locks=no
20552 fi
20553
20554
20555
20556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20557 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20558
20559   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20560   case $host_os in
20561   aix[4-9]*)
20562     # If we're using GNU nm, then we don't want the "-C" option.
20563     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20564     # Also, AIX nm treats weak defined symbols like other global defined
20565     # symbols, whereas GNU nm marks them as "W".
20566     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20567       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'
20568     else
20569       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20570     fi
20571     ;;
20572   pw32*)
20573     export_symbols_cmds_CXX="$ltdll_cmds"
20574   ;;
20575   cygwin* | mingw* | cegcc*)
20576     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'
20577   ;;
20578   *)
20579     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20580   ;;
20581   esac
20582   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20583
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20585 $as_echo "$ld_shlibs_CXX" >&6; }
20586 test "$ld_shlibs_CXX" = no && can_build_shared=no
20587
20588 with_gnu_ld_CXX=$with_gnu_ld
20589
20590
20591
20592
20593
20594
20595 #
20596 # Do we need to explicitly link libc?
20597 #
20598 case "x$archive_cmds_need_lc_CXX" in
20599 x|xyes)
20600   # Assume -lc should be added
20601   archive_cmds_need_lc_CXX=yes
20602
20603   if test "$enable_shared" = yes && test "$GCC" = yes; then
20604     case $archive_cmds_CXX in
20605     *'~'*)
20606       # FIXME: we may have to deal with multi-command sequences.
20607       ;;
20608     '$CC '*)
20609       # Test whether the compiler implicitly links with -lc since on some
20610       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20611       # to ld, don't add -lc before -lgcc.
20612       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20613 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20614 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20615   $as_echo_n "(cached) " >&6
20616 else
20617   $RM conftest*
20618         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20619
20620         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20621   (eval $ac_compile) 2>&5
20622   ac_status=$?
20623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20624   test $ac_status = 0; } 2>conftest.err; then
20625           soname=conftest
20626           lib=conftest
20627           libobjs=conftest.$ac_objext
20628           deplibs=
20629           wl=$lt_prog_compiler_wl_CXX
20630           pic_flag=$lt_prog_compiler_pic_CXX
20631           compiler_flags=-v
20632           linker_flags=-v
20633           verstring=
20634           output_objdir=.
20635           libname=conftest
20636           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20637           allow_undefined_flag_CXX=
20638           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20639   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20640   ac_status=$?
20641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20642   test $ac_status = 0; }
20643           then
20644             lt_cv_archive_cmds_need_lc_CXX=no
20645           else
20646             lt_cv_archive_cmds_need_lc_CXX=yes
20647           fi
20648           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20649         else
20650           cat conftest.err 1>&5
20651         fi
20652         $RM conftest*
20653
20654 fi
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20656 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20657       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20658       ;;
20659     esac
20660   fi
20661   ;;
20662 esac
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20728 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20729
20730 library_names_spec=
20731 libname_spec='lib$name'
20732 soname_spec=
20733 shrext_cmds=".so"
20734 postinstall_cmds=
20735 postuninstall_cmds=
20736 finish_cmds=
20737 finish_eval=
20738 shlibpath_var=
20739 shlibpath_overrides_runpath=unknown
20740 version_type=none
20741 dynamic_linker="$host_os ld.so"
20742 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20743 need_lib_prefix=unknown
20744 hardcode_into_libs=no
20745
20746 # when you set need_version to no, make sure it does not cause -set_version
20747 # flags to be left without arguments
20748 need_version=unknown
20749
20750 case $host_os in
20751 aix3*)
20752   version_type=linux
20753   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20754   shlibpath_var=LIBPATH
20755
20756   # AIX 3 has no versioning support, so we append a major version to the name.
20757   soname_spec='${libname}${release}${shared_ext}$major'
20758   ;;
20759
20760 aix[4-9]*)
20761   version_type=linux
20762   need_lib_prefix=no
20763   need_version=no
20764   hardcode_into_libs=yes
20765   if test "$host_cpu" = ia64; then
20766     # AIX 5 supports IA64
20767     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20768     shlibpath_var=LD_LIBRARY_PATH
20769   else
20770     # With GCC up to 2.95.x, collect2 would create an import file
20771     # for dependence libraries.  The import file would start with
20772     # the line `#! .'.  This would cause the generated library to
20773     # depend on `.', always an invalid library.  This was fixed in
20774     # development snapshots of GCC prior to 3.0.
20775     case $host_os in
20776       aix4 | aix4.[01] | aix4.[01].*)
20777       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20778            echo ' yes '
20779            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20780         :
20781       else
20782         can_build_shared=no
20783       fi
20784       ;;
20785     esac
20786     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20787     # soname into executable. Probably we can add versioning support to
20788     # collect2, so additional links can be useful in future.
20789     if test "$aix_use_runtimelinking" = yes; then
20790       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20791       # instead of lib<name>.a to let people know that these are not
20792       # typical AIX shared libraries.
20793       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20794     else
20795       # We preserve .a as extension for shared libraries through AIX4.2
20796       # and later when we are not doing run time linking.
20797       library_names_spec='${libname}${release}.a $libname.a'
20798       soname_spec='${libname}${release}${shared_ext}$major'
20799     fi
20800     shlibpath_var=LIBPATH
20801   fi
20802   ;;
20803
20804 amigaos*)
20805   case $host_cpu in
20806   powerpc)
20807     # Since July 2007 AmigaOS4 officially supports .so libraries.
20808     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20810     ;;
20811   m68k)
20812     library_names_spec='$libname.ixlibrary $libname.a'
20813     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20814     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'
20815     ;;
20816   esac
20817   ;;
20818
20819 beos*)
20820   library_names_spec='${libname}${shared_ext}'
20821   dynamic_linker="$host_os ld.so"
20822   shlibpath_var=LIBRARY_PATH
20823   ;;
20824
20825 bsdi[45]*)
20826   version_type=linux
20827   need_version=no
20828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20829   soname_spec='${libname}${release}${shared_ext}$major'
20830   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20831   shlibpath_var=LD_LIBRARY_PATH
20832   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20833   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20834   # the default ld.so.conf also contains /usr/contrib/lib and
20835   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20836   # libtool to hard-code these into programs
20837   ;;
20838
20839 cygwin* | mingw* | pw32* | cegcc*)
20840   version_type=windows
20841   shrext_cmds=".dll"
20842   need_version=no
20843   need_lib_prefix=no
20844
20845   case $GCC,$host_os in
20846   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20847     library_names_spec='$libname.dll.a'
20848     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20849     postinstall_cmds='base_file=`basename \${file}`~
20850       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20851       dldir=$destdir/`dirname \$dlpath`~
20852       test -d \$dldir || mkdir -p \$dldir~
20853       $install_prog $dir/$dlname \$dldir/$dlname~
20854       chmod a+x \$dldir/$dlname~
20855       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20856         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20857       fi'
20858     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20859       dlpath=$dir/\$dldll~
20860        $RM \$dlpath'
20861     shlibpath_overrides_runpath=yes
20862
20863     case $host_os in
20864     cygwin*)
20865       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20866       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20867
20868       ;;
20869     mingw* | cegcc*)
20870       # MinGW DLLs use traditional 'lib' prefix
20871       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20872       ;;
20873     pw32*)
20874       # pw32 DLLs use 'pw' prefix rather than 'lib'
20875       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20876       ;;
20877     esac
20878     ;;
20879
20880   *)
20881     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20882     ;;
20883   esac
20884   dynamic_linker='Win32 ld.exe'
20885   # FIXME: first we should search . and the directory the executable is in
20886   shlibpath_var=PATH
20887   ;;
20888
20889 darwin* | rhapsody*)
20890   dynamic_linker="$host_os dyld"
20891   version_type=darwin
20892   need_lib_prefix=no
20893   need_version=no
20894   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20895   soname_spec='${libname}${release}${major}$shared_ext'
20896   shlibpath_overrides_runpath=yes
20897   shlibpath_var=DYLD_LIBRARY_PATH
20898   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20899
20900   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20901   ;;
20902
20903 dgux*)
20904   version_type=linux
20905   need_lib_prefix=no
20906   need_version=no
20907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20908   soname_spec='${libname}${release}${shared_ext}$major'
20909   shlibpath_var=LD_LIBRARY_PATH
20910   ;;
20911
20912 freebsd* | dragonfly*)
20913   # DragonFly does not have aout.  When/if they implement a new
20914   # versioning mechanism, adjust this.
20915   if test -x /usr/bin/objformat; then
20916     objformat=`/usr/bin/objformat`
20917   else
20918     case $host_os in
20919     freebsd[23].*) objformat=aout ;;
20920     *) objformat=elf ;;
20921     esac
20922   fi
20923   version_type=freebsd-$objformat
20924   case $version_type in
20925     freebsd-elf*)
20926       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20927       need_version=no
20928       need_lib_prefix=no
20929       ;;
20930     freebsd-*)
20931       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20932       need_version=yes
20933       ;;
20934   esac
20935   shlibpath_var=LD_LIBRARY_PATH
20936   case $host_os in
20937   freebsd2.*)
20938     shlibpath_overrides_runpath=yes
20939     ;;
20940   freebsd3.[01]* | freebsdelf3.[01]*)
20941     shlibpath_overrides_runpath=yes
20942     hardcode_into_libs=yes
20943     ;;
20944   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20945   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20946     shlibpath_overrides_runpath=no
20947     hardcode_into_libs=yes
20948     ;;
20949   *) # from 4.6 on, and DragonFly
20950     shlibpath_overrides_runpath=yes
20951     hardcode_into_libs=yes
20952     ;;
20953   esac
20954   ;;
20955
20956 gnu*)
20957   version_type=linux
20958   need_lib_prefix=no
20959   need_version=no
20960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20961   soname_spec='${libname}${release}${shared_ext}$major'
20962   shlibpath_var=LD_LIBRARY_PATH
20963   hardcode_into_libs=yes
20964   ;;
20965
20966 haiku*)
20967   version_type=linux
20968   need_lib_prefix=no
20969   need_version=no
20970   dynamic_linker="$host_os runtime_loader"
20971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20972   soname_spec='${libname}${release}${shared_ext}$major'
20973   shlibpath_var=LIBRARY_PATH
20974   shlibpath_overrides_runpath=yes
20975   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20976   hardcode_into_libs=yes
20977   ;;
20978
20979 hpux9* | hpux10* | hpux11*)
20980   # Give a soname corresponding to the major version so that dld.sl refuses to
20981   # link against other versions.
20982   version_type=sunos
20983   need_lib_prefix=no
20984   need_version=no
20985   case $host_cpu in
20986   ia64*)
20987     shrext_cmds='.so'
20988     hardcode_into_libs=yes
20989     dynamic_linker="$host_os dld.so"
20990     shlibpath_var=LD_LIBRARY_PATH
20991     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20992     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20993     soname_spec='${libname}${release}${shared_ext}$major'
20994     if test "X$HPUX_IA64_MODE" = X32; then
20995       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20996     else
20997       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20998     fi
20999     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21000     ;;
21001   hppa*64*)
21002     shrext_cmds='.sl'
21003     hardcode_into_libs=yes
21004     dynamic_linker="$host_os dld.sl"
21005     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21006     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21008     soname_spec='${libname}${release}${shared_ext}$major'
21009     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21010     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21011     ;;
21012   *)
21013     shrext_cmds='.sl'
21014     dynamic_linker="$host_os dld.sl"
21015     shlibpath_var=SHLIB_PATH
21016     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21018     soname_spec='${libname}${release}${shared_ext}$major'
21019     ;;
21020   esac
21021   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21022   postinstall_cmds='chmod 555 $lib'
21023   # or fails outright, so override atomically:
21024   install_override_mode=555
21025   ;;
21026
21027 interix[3-9]*)
21028   version_type=linux
21029   need_lib_prefix=no
21030   need_version=no
21031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21032   soname_spec='${libname}${release}${shared_ext}$major'
21033   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21034   shlibpath_var=LD_LIBRARY_PATH
21035   shlibpath_overrides_runpath=no
21036   hardcode_into_libs=yes
21037   ;;
21038
21039 irix5* | irix6* | nonstopux*)
21040   case $host_os in
21041     nonstopux*) version_type=nonstopux ;;
21042     *)
21043         if test "$lt_cv_prog_gnu_ld" = yes; then
21044                 version_type=linux
21045         else
21046                 version_type=irix
21047         fi ;;
21048   esac
21049   need_lib_prefix=no
21050   need_version=no
21051   soname_spec='${libname}${release}${shared_ext}$major'
21052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21053   case $host_os in
21054   irix5* | nonstopux*)
21055     libsuff= shlibsuff=
21056     ;;
21057   *)
21058     case $LD in # libtool.m4 will add one of these switches to LD
21059     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21060       libsuff= shlibsuff= libmagic=32-bit;;
21061     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21062       libsuff=32 shlibsuff=N32 libmagic=N32;;
21063     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21064       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21065     *) libsuff= shlibsuff= libmagic=never-match;;
21066     esac
21067     ;;
21068   esac
21069   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21070   shlibpath_overrides_runpath=no
21071   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21072   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21073   hardcode_into_libs=yes
21074   ;;
21075
21076 # No shared lib support for Linux oldld, aout, or coff.
21077 linux*oldld* | linux*aout* | linux*coff*)
21078   dynamic_linker=no
21079   ;;
21080
21081 # This must be Linux ELF.
21082 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21083   version_type=linux
21084   need_lib_prefix=no
21085   need_version=no
21086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21087   soname_spec='${libname}${release}${shared_ext}$major'
21088   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21089   shlibpath_var=LD_LIBRARY_PATH
21090   shlibpath_overrides_runpath=no
21091
21092   # Some binutils ld are patched to set DT_RUNPATH
21093   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21094   $as_echo_n "(cached) " >&6
21095 else
21096   lt_cv_shlibpath_overrides_runpath=no
21097     save_LDFLAGS=$LDFLAGS
21098     save_libdir=$libdir
21099     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21100          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21101     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21102 /* end confdefs.h.  */
21103
21104 int
21105 main ()
21106 {
21107
21108   ;
21109   return 0;
21110 }
21111 _ACEOF
21112 if ac_fn_cxx_try_link "$LINENO"; then :
21113   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21114   lt_cv_shlibpath_overrides_runpath=yes
21115 fi
21116 fi
21117 rm -f core conftest.err conftest.$ac_objext \
21118     conftest$ac_exeext conftest.$ac_ext
21119     LDFLAGS=$save_LDFLAGS
21120     libdir=$save_libdir
21121
21122 fi
21123
21124   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21125
21126   # This implies no fast_install, which is unacceptable.
21127   # Some rework will be needed to allow for fast_install
21128   # before this can be enabled.
21129   hardcode_into_libs=yes
21130
21131   # Append ld.so.conf contents to the search path
21132   if test -f /etc/ld.so.conf; then
21133     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' ' '`
21134     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21135   fi
21136
21137   # We used to test for /lib/ld.so.1 and disable shared libraries on
21138   # powerpc, because MkLinux only supported shared libraries with the
21139   # GNU dynamic linker.  Since this was broken with cross compilers,
21140   # most powerpc-linux boxes support dynamic linking these days and
21141   # people can always --disable-shared, the test was removed, and we
21142   # assume the GNU/Linux dynamic linker is in use.
21143   dynamic_linker='GNU/Linux ld.so'
21144   ;;
21145
21146 netbsd*)
21147   version_type=sunos
21148   need_lib_prefix=no
21149   need_version=no
21150   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21151     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21152     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21153     dynamic_linker='NetBSD (a.out) ld.so'
21154   else
21155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21156     soname_spec='${libname}${release}${shared_ext}$major'
21157     dynamic_linker='NetBSD ld.elf_so'
21158   fi
21159   shlibpath_var=LD_LIBRARY_PATH
21160   shlibpath_overrides_runpath=yes
21161   hardcode_into_libs=yes
21162   ;;
21163
21164 newsos6)
21165   version_type=linux
21166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21167   shlibpath_var=LD_LIBRARY_PATH
21168   shlibpath_overrides_runpath=yes
21169   ;;
21170
21171 *nto* | *qnx*)
21172   version_type=qnx
21173   need_lib_prefix=no
21174   need_version=no
21175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21176   soname_spec='${libname}${release}${shared_ext}$major'
21177   shlibpath_var=LD_LIBRARY_PATH
21178   shlibpath_overrides_runpath=no
21179   hardcode_into_libs=yes
21180   dynamic_linker='ldqnx.so'
21181   ;;
21182
21183 openbsd*)
21184   version_type=sunos
21185   sys_lib_dlsearch_path_spec="/usr/lib"
21186   need_lib_prefix=no
21187   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21188   case $host_os in
21189     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21190     *)                          need_version=no  ;;
21191   esac
21192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21193   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21194   shlibpath_var=LD_LIBRARY_PATH
21195   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21196     case $host_os in
21197       openbsd2.[89] | openbsd2.[89].*)
21198         shlibpath_overrides_runpath=no
21199         ;;
21200       *)
21201         shlibpath_overrides_runpath=yes
21202         ;;
21203       esac
21204   else
21205     shlibpath_overrides_runpath=yes
21206   fi
21207   ;;
21208
21209 os2*)
21210   libname_spec='$name'
21211   shrext_cmds=".dll"
21212   need_lib_prefix=no
21213   library_names_spec='$libname${shared_ext} $libname.a'
21214   dynamic_linker='OS/2 ld.exe'
21215   shlibpath_var=LIBPATH
21216   ;;
21217
21218 osf3* | osf4* | osf5*)
21219   version_type=osf
21220   need_lib_prefix=no
21221   need_version=no
21222   soname_spec='${libname}${release}${shared_ext}$major'
21223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21224   shlibpath_var=LD_LIBRARY_PATH
21225   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21226   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21227   ;;
21228
21229 rdos*)
21230   dynamic_linker=no
21231   ;;
21232
21233 solaris*)
21234   version_type=linux
21235   need_lib_prefix=no
21236   need_version=no
21237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21238   soname_spec='${libname}${release}${shared_ext}$major'
21239   shlibpath_var=LD_LIBRARY_PATH
21240   shlibpath_overrides_runpath=yes
21241   hardcode_into_libs=yes
21242   # ldd complains unless libraries are executable
21243   postinstall_cmds='chmod +x $lib'
21244   ;;
21245
21246 sunos4*)
21247   version_type=sunos
21248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21249   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21250   shlibpath_var=LD_LIBRARY_PATH
21251   shlibpath_overrides_runpath=yes
21252   if test "$with_gnu_ld" = yes; then
21253     need_lib_prefix=no
21254   fi
21255   need_version=yes
21256   ;;
21257
21258 sysv4 | sysv4.3*)
21259   version_type=linux
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   case $host_vendor in
21264     sni)
21265       shlibpath_overrides_runpath=no
21266       need_lib_prefix=no
21267       runpath_var=LD_RUN_PATH
21268       ;;
21269     siemens)
21270       need_lib_prefix=no
21271       ;;
21272     motorola)
21273       need_lib_prefix=no
21274       need_version=no
21275       shlibpath_overrides_runpath=no
21276       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21277       ;;
21278   esac
21279   ;;
21280
21281 sysv4*MP*)
21282   if test -d /usr/nec ;then
21283     version_type=linux
21284     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21285     soname_spec='$libname${shared_ext}.$major'
21286     shlibpath_var=LD_LIBRARY_PATH
21287   fi
21288   ;;
21289
21290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21291   version_type=freebsd-elf
21292   need_lib_prefix=no
21293   need_version=no
21294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21295   soname_spec='${libname}${release}${shared_ext}$major'
21296   shlibpath_var=LD_LIBRARY_PATH
21297   shlibpath_overrides_runpath=yes
21298   hardcode_into_libs=yes
21299   if test "$with_gnu_ld" = yes; then
21300     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21301   else
21302     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21303     case $host_os in
21304       sco3.2v5*)
21305         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21306         ;;
21307     esac
21308   fi
21309   sys_lib_dlsearch_path_spec='/usr/lib'
21310   ;;
21311
21312 tpf*)
21313   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21314   version_type=linux
21315   need_lib_prefix=no
21316   need_version=no
21317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21318   shlibpath_var=LD_LIBRARY_PATH
21319   shlibpath_overrides_runpath=no
21320   hardcode_into_libs=yes
21321   ;;
21322
21323 uts4*)
21324   version_type=linux
21325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21326   soname_spec='${libname}${release}${shared_ext}$major'
21327   shlibpath_var=LD_LIBRARY_PATH
21328   ;;
21329
21330 *)
21331   dynamic_linker=no
21332   ;;
21333 esac
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21335 $as_echo "$dynamic_linker" >&6; }
21336 test "$dynamic_linker" = no && can_build_shared=no
21337
21338 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21339 if test "$GCC" = yes; then
21340   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21341 fi
21342
21343 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21344   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21345 fi
21346 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21347   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21348 fi
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21388 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21389 hardcode_action_CXX=
21390 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21391    test -n "$runpath_var_CXX" ||
21392    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21393
21394   # We can hardcode non-existent directories.
21395   if test "$hardcode_direct_CXX" != no &&
21396      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21397      # have to relink, otherwise we might link with an installed library
21398      # when we should be linking with a yet-to-be-installed one
21399      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21400      test "$hardcode_minus_L_CXX" != no; then
21401     # Linking always hardcodes the temporary library directory.
21402     hardcode_action_CXX=relink
21403   else
21404     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21405     hardcode_action_CXX=immediate
21406   fi
21407 else
21408   # We cannot hardcode anything, or else we can only hardcode existing
21409   # directories.
21410   hardcode_action_CXX=unsupported
21411 fi
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21413 $as_echo "$hardcode_action_CXX" >&6; }
21414
21415 if test "$hardcode_action_CXX" = relink ||
21416    test "$inherit_rpath_CXX" = yes; then
21417   # Fast installation is not supported
21418   enable_fast_install=no
21419 elif test "$shlibpath_overrides_runpath" = yes ||
21420      test "$enable_shared" = no; then
21421   # Fast installation is not necessary
21422   enable_fast_install=needless
21423 fi
21424
21425
21426
21427
21428
21429
21430
21431   fi # test -n "$compiler"
21432
21433   CC=$lt_save_CC
21434   LDCXX=$LD
21435   LD=$lt_save_LD
21436   GCC=$lt_save_GCC
21437   with_gnu_ld=$lt_save_with_gnu_ld
21438   lt_cv_path_LDCXX=$lt_cv_path_LD
21439   lt_cv_path_LD=$lt_save_path_LD
21440   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21441   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21442 fi # test "$_lt_caught_CXX_error" != yes
21443
21444 ac_ext=c
21445 ac_cpp='$CPP $CPPFLAGS'
21446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465 # Only expand once:
21466
21467
21468
21469
21470
21471 # Identify the assembler which will work hand-in-glove with the newly
21472 # built GCC, so that we can examine its features.  This is the assembler
21473 # which will be driven by the driver program.
21474 #
21475 # If build != host, and we aren't building gas in-tree, we identify a
21476 # build->target assembler and hope that it will have the same features
21477 # as the host->target assembler we'll be using.
21478 gcc_cv_gas_major_version=
21479 gcc_cv_gas_minor_version=
21480 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21481
21482 if test "${gcc_cv_as+set}" = set; then :
21483
21484 else
21485
21486 if test -x "$DEFAULT_ASSEMBLER"; then
21487         gcc_cv_as="$DEFAULT_ASSEMBLER"
21488 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21489      && test -f ../gas/Makefile \
21490      && test x$build = x$host; then
21491         gcc_cv_as=../gas/as-new$build_exeext
21492 elif test -x as$build_exeext; then
21493         # Build using assembler in the current directory.
21494         gcc_cv_as=./as$build_exeext
21495 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21496         gcc_cv_as="$AS_FOR_TARGET"
21497 else
21498         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21499 set dummy $AS_FOR_TARGET; ac_word=$2
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21501 $as_echo_n "checking for $ac_word... " >&6; }
21502 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21503   $as_echo_n "(cached) " >&6
21504 else
21505   case $gcc_cv_as in
21506   [\\/]* | ?:[\\/]*)
21507   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21508   ;;
21509   *)
21510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21511 for as_dir in $PATH
21512 do
21513   IFS=$as_save_IFS
21514   test -z "$as_dir" && as_dir=.
21515     for ac_exec_ext in '' $ac_executable_extensions; do
21516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21517     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21519     break 2
21520   fi
21521 done
21522   done
21523 IFS=$as_save_IFS
21524
21525   ;;
21526 esac
21527 fi
21528 gcc_cv_as=$ac_cv_path_gcc_cv_as
21529 if test -n "$gcc_cv_as"; then
21530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21531 $as_echo "$gcc_cv_as" >&6; }
21532 else
21533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21534 $as_echo "no" >&6; }
21535 fi
21536
21537
21538 fi
21539 fi
21540
21541 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21542
21543 case "$ORIGINAL_AS_FOR_TARGET" in
21544   ./as | ./as$build_exeext) ;;
21545   *) ac_config_files="$ac_config_files as:exec-tool.in"
21546  ;;
21547 esac
21548
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21550 $as_echo_n "checking what assembler to use... " >&6; }
21551 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21552   # Single tree build which includes gas.  We want to prefer it
21553   # over whatever linker top-level may have detected, since
21554   # we'll use what we're building after installation anyway.
21555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21556 $as_echo "newly built gas" >&6; }
21557   in_tree_gas=yes
21558   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21559 for f in $gcc_cv_as_bfd_srcdir/configure \
21560          $gcc_cv_as_gas_srcdir/configure \
21561          $gcc_cv_as_gas_srcdir/configure.in \
21562          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21563   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21564   if test x$gcc_cv_gas_version != x; then
21565     break
21566   fi
21567 done
21568 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21569 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21570 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21571 case $gcc_cv_gas_patch_version in
21572   "") gcc_cv_gas_patch_version="0" ;;
21573 esac
21574 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21575                             + $gcc_cv_gas_minor_version \) \* 1000 \
21576                             + $gcc_cv_gas_patch_version`
21577
21578   in_tree_gas_is_elf=no
21579   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21580      || (grep 'obj_format = multi' ../gas/Makefile \
21581          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21582   then
21583     in_tree_gas_is_elf=yes
21584   fi
21585 else
21586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21587 $as_echo "$gcc_cv_as" >&6; }
21588   in_tree_gas=no
21589 fi
21590
21591 # Identify the linker which will work hand-in-glove with the newly
21592 # built GCC, so that we can examine its features.  This is the linker
21593 # which will be driven by the driver program.
21594 #
21595 # If build != host, and we aren't building gas in-tree, we identify a
21596 # build->target linker and hope that it will have the same features
21597 # as the host->target linker we'll be using.
21598 gcc_cv_gld_major_version=
21599 gcc_cv_gld_minor_version=
21600 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21601 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21602
21603 if test "${gcc_cv_ld+set}" = set; then :
21604
21605 else
21606
21607 if test -x "$DEFAULT_LINKER"; then
21608         gcc_cv_ld="$DEFAULT_LINKER"
21609 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21610      && test -f ../ld/Makefile \
21611      && test x$build = x$host; then
21612         gcc_cv_ld=../ld/ld-new$build_exeext
21613 elif test -x collect-ld$build_exeext; then
21614         # Build using linker in the current directory.
21615         gcc_cv_ld=./collect-ld$build_exeext
21616 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21617         gcc_cv_ld="$LD_FOR_TARGET"
21618 else
21619         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21620 set dummy $LD_FOR_TARGET; ac_word=$2
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21622 $as_echo_n "checking for $ac_word... " >&6; }
21623 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21624   $as_echo_n "(cached) " >&6
21625 else
21626   case $gcc_cv_ld in
21627   [\\/]* | ?:[\\/]*)
21628   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21629   ;;
21630   *)
21631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21632 for as_dir in $PATH
21633 do
21634   IFS=$as_save_IFS
21635   test -z "$as_dir" && as_dir=.
21636     for ac_exec_ext in '' $ac_executable_extensions; do
21637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21638     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21640     break 2
21641   fi
21642 done
21643   done
21644 IFS=$as_save_IFS
21645
21646   ;;
21647 esac
21648 fi
21649 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21650 if test -n "$gcc_cv_ld"; then
21651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21652 $as_echo "$gcc_cv_ld" >&6; }
21653 else
21654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21655 $as_echo "no" >&6; }
21656 fi
21657
21658
21659 fi
21660 fi
21661
21662 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21663 PLUGIN_LD=`basename $gcc_cv_ld`
21664
21665 # Check whether --with-plugin-ld was given.
21666 if test "${with_plugin_ld+set}" = set; then :
21667   withval=$with_plugin_ld; if test x"$withval" != x; then
21668    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21669    PLUGIN_LD="$withval"
21670  fi
21671 fi
21672
21673
21674
21675 cat >>confdefs.h <<_ACEOF
21676 #define PLUGIN_LD "$PLUGIN_LD"
21677 _ACEOF
21678
21679
21680 # Check to see if we are using gold instead of ld
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21682 $as_echo_n "checking whether we are using gold... " >&6; }
21683 ld_is_gold=no
21684 if test x$gcc_cv_ld != x; then
21685   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21686      | grep "GNU gold" > /dev/null; then
21687     ld_is_gold=yes
21688   fi
21689 fi
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21691 $as_echo "$ld_is_gold" >&6; }
21692
21693 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21694
21695 case "$ORIGINAL_LD_FOR_TARGET" in
21696   ./collect-ld | ./collect-ld$build_exeext) ;;
21697   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21698  ;;
21699 esac
21700
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21702 $as_echo_n "checking what linker to use... " >&6; }
21703 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21704    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21705         # Single tree build which includes ld.  We want to prefer it
21706         # over whatever linker top-level may have detected, since
21707         # we'll use what we're building after installation anyway.
21708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21709 $as_echo "newly built ld" >&6; }
21710         in_tree_ld=yes
21711         in_tree_ld_is_elf=no
21712         if (grep 'EMUL = .*elf' ../ld/Makefile \
21713             || grep 'EMUL = .*linux' ../ld/Makefile \
21714             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21715           in_tree_ld_is_elf=yes
21716         elif test "$ld_is_gold" = yes; then
21717           in_tree_ld_is_elf=yes
21718         fi
21719         for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21720         do
21721                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21722                 if test x$gcc_cv_gld_version != x; then
21723                         break
21724                 fi
21725         done
21726         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21727         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21728 else
21729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21730 $as_echo "$gcc_cv_ld" >&6; }
21731         in_tree_ld=no
21732 fi
21733
21734 # Figure out what nm we will be using.
21735 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21736 if test "${gcc_cv_nm+set}" = set; then :
21737
21738 else
21739
21740 if test -f $gcc_cv_binutils_srcdir/configure.in \
21741      && test -f ../binutils/Makefile \
21742      && test x$build = x$host; then
21743         gcc_cv_nm=../binutils/nm-new$build_exeext
21744 elif test -x nm$build_exeext; then
21745         gcc_cv_nm=./nm$build_exeext
21746 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21747         gcc_cv_nm="$NM_FOR_TARGET"
21748 else
21749         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21750 set dummy $NM_FOR_TARGET; ac_word=$2
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21752 $as_echo_n "checking for $ac_word... " >&6; }
21753 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21754   $as_echo_n "(cached) " >&6
21755 else
21756   case $gcc_cv_nm in
21757   [\\/]* | ?:[\\/]*)
21758   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21759   ;;
21760   *)
21761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21762 for as_dir in $PATH
21763 do
21764   IFS=$as_save_IFS
21765   test -z "$as_dir" && as_dir=.
21766     for ac_exec_ext in '' $ac_executable_extensions; do
21767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21768     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21770     break 2
21771   fi
21772 done
21773   done
21774 IFS=$as_save_IFS
21775
21776   ;;
21777 esac
21778 fi
21779 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21780 if test -n "$gcc_cv_nm"; then
21781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21782 $as_echo "$gcc_cv_nm" >&6; }
21783 else
21784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21785 $as_echo "no" >&6; }
21786 fi
21787
21788
21789 fi
21790 fi
21791
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21793 $as_echo_n "checking what nm to use... " >&6; }
21794 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21795         # Single tree build which includes binutils.
21796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21797 $as_echo "newly built nm" >&6; }
21798         in_tree_nm=yes
21799 else
21800         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21801 $as_echo "$gcc_cv_nm" >&6; }
21802         in_tree_nm=no
21803 fi
21804
21805 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21806
21807 case "$ORIGINAL_NM_FOR_TARGET" in
21808   ./nm | ./nm$build_exeext) ;;
21809   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21810  ;;
21811 esac
21812
21813
21814 # Figure out what objdump we will be using.
21815 if test "${gcc_cv_objdump+set}" = set; then :
21816
21817 else
21818
21819 if test -f $gcc_cv_binutils_srcdir/configure.in \
21820      && test -f ../binutils/Makefile \
21821      && test x$build = x$host; then
21822         # Single tree build which includes binutils.
21823         gcc_cv_objdump=../binutils/objdump$build_exeext
21824 elif test -x objdump$build_exeext; then
21825         gcc_cv_objdump=./objdump$build_exeext
21826 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21827         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21828 else
21829         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21830 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21832 $as_echo_n "checking for $ac_word... " >&6; }
21833 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21834   $as_echo_n "(cached) " >&6
21835 else
21836   case $gcc_cv_objdump in
21837   [\\/]* | ?:[\\/]*)
21838   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21839   ;;
21840   *)
21841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21842 for as_dir in $PATH
21843 do
21844   IFS=$as_save_IFS
21845   test -z "$as_dir" && as_dir=.
21846     for ac_exec_ext in '' $ac_executable_extensions; do
21847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21848     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21850     break 2
21851   fi
21852 done
21853   done
21854 IFS=$as_save_IFS
21855
21856   ;;
21857 esac
21858 fi
21859 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21860 if test -n "$gcc_cv_objdump"; then
21861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21862 $as_echo "$gcc_cv_objdump" >&6; }
21863 else
21864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21865 $as_echo "no" >&6; }
21866 fi
21867
21868
21869 fi
21870 fi
21871
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21873 $as_echo_n "checking what objdump to use... " >&6; }
21874 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21875         # Single tree build which includes binutils.
21876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21877 $as_echo "newly built objdump" >&6; }
21878 elif test x$gcc_cv_objdump = x; then
21879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21880 $as_echo "not found" >&6; }
21881 else
21882         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21883 $as_echo "$gcc_cv_objdump" >&6; }
21884 fi
21885
21886 # Figure out what readelf we will be using.
21887 if test "${gcc_cv_readelf+set}" = set; then :
21888
21889 else
21890
21891 if test -f $gcc_cv_binutils_srcdir/configure.in \
21892      && test -f ../binutils/Makefile \
21893      && test x$build = x$host; then
21894         # Single tree build which includes binutils.
21895         gcc_cv_readelf=../binutils/readelf$build_exeext
21896 elif test -x readelf$build_exeext; then
21897         gcc_cv_readelf=./readelf$build_exeext
21898 else
21899         # Extract the first word of "readelf", so it can be a program name with args.
21900 set dummy readelf; ac_word=$2
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21902 $as_echo_n "checking for $ac_word... " >&6; }
21903 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21904   $as_echo_n "(cached) " >&6
21905 else
21906   case $gcc_cv_readelf in
21907   [\\/]* | ?:[\\/]*)
21908   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21909   ;;
21910   *)
21911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21912 for as_dir in $PATH
21913 do
21914   IFS=$as_save_IFS
21915   test -z "$as_dir" && as_dir=.
21916     for ac_exec_ext in '' $ac_executable_extensions; do
21917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21918     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21920     break 2
21921   fi
21922 done
21923   done
21924 IFS=$as_save_IFS
21925
21926   ;;
21927 esac
21928 fi
21929 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21930 if test -n "$gcc_cv_readelf"; then
21931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21932 $as_echo "$gcc_cv_readelf" >&6; }
21933 else
21934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21935 $as_echo "no" >&6; }
21936 fi
21937
21938
21939 fi
21940 fi
21941
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21943 $as_echo_n "checking what readelf to use... " >&6; }
21944 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21945         # Single tree build which includes binutils.
21946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21947 $as_echo "newly built readelf" >&6; }
21948 elif test x$gcc_cv_readelf = x; then
21949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21950 $as_echo "not found" >&6; }
21951 else
21952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21953 $as_echo "$gcc_cv_readelf" >&6; }
21954 fi
21955
21956 # Figure out what assembler alignment features are present.
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21958 $as_echo_n "checking assembler flags... " >&6; }
21959 if test "${gcc_cv_as_flags+set}" = set; then :
21960   $as_echo_n "(cached) " >&6
21961 else
21962    case "$target" in
21963   i[34567]86-*-linux*)
21964         gcc_cv_as_flags="--32"
21965     ;;
21966   powerpc*-*-darwin*)
21967         gcc_cv_as_flags="-arch ppc"
21968     ;;
21969   *)
21970     gcc_cv_as_flags=" "
21971     ;;
21972   esac
21973 fi
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21975 $as_echo "$gcc_cv_as_flags" >&6; }
21976
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21978 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21979 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21980   $as_echo_n "(cached) " >&6
21981 else
21982   gcc_cv_as_balign_and_p2align=no
21983     if test $in_tree_gas = yes; then
21984     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21985   then gcc_cv_as_balign_and_p2align=yes
21986 fi
21987   elif test x$gcc_cv_as != x; then
21988     $as_echo '.balign 4
21989 .p2align 2' > conftest.s
21990     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21991   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21992   (eval $ac_try) 2>&5
21993   ac_status=$?
21994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21995   test $ac_status = 0; }; }
21996     then
21997         gcc_cv_as_balign_and_p2align=yes
21998     else
21999       echo "configure: failed program was" >&5
22000       cat conftest.s >&5
22001     fi
22002     rm -f conftest.o conftest.s
22003   fi
22004 fi
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22006 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22007 if test $gcc_cv_as_balign_and_p2align = yes; then
22008
22009 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22010
22011 fi
22012
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22014 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22015 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22016   $as_echo_n "(cached) " >&6
22017 else
22018   gcc_cv_as_max_skip_p2align=no
22019     if test $in_tree_gas = yes; then
22020     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22021   then gcc_cv_as_max_skip_p2align=yes
22022 fi
22023   elif test x$gcc_cv_as != x; then
22024     $as_echo '.p2align 4,,7' > conftest.s
22025     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22026   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22027   (eval $ac_try) 2>&5
22028   ac_status=$?
22029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22030   test $ac_status = 0; }; }
22031     then
22032         gcc_cv_as_max_skip_p2align=yes
22033     else
22034       echo "configure: failed program was" >&5
22035       cat conftest.s >&5
22036     fi
22037     rm -f conftest.o conftest.s
22038   fi
22039 fi
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22041 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22042 if test $gcc_cv_as_max_skip_p2align = yes; then
22043
22044 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22045
22046 fi
22047
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22049 $as_echo_n "checking assembler for .literal16... " >&6; }
22050 if test "${gcc_cv_as_literal16+set}" = set; then :
22051   $as_echo_n "(cached) " >&6
22052 else
22053   gcc_cv_as_literal16=no
22054     if test $in_tree_gas = yes; then
22055     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22056   then gcc_cv_as_literal16=yes
22057 fi
22058   elif test x$gcc_cv_as != x; then
22059     $as_echo '.literal16' > conftest.s
22060     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22061   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22062   (eval $ac_try) 2>&5
22063   ac_status=$?
22064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22065   test $ac_status = 0; }; }
22066     then
22067         gcc_cv_as_literal16=yes
22068     else
22069       echo "configure: failed program was" >&5
22070       cat conftest.s >&5
22071     fi
22072     rm -f conftest.o conftest.s
22073   fi
22074 fi
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22076 $as_echo "$gcc_cv_as_literal16" >&6; }
22077 if test $gcc_cv_as_literal16 = yes; then
22078
22079 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22080
22081 fi
22082
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22084 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22085 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22086   $as_echo_n "(cached) " >&6
22087 else
22088   gcc_cv_as_subsection_m1=no
22089     if test $in_tree_gas = yes; then
22090     if test $in_tree_gas_is_elf = yes \
22091   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22092   then gcc_cv_as_subsection_m1=yes
22093 fi
22094   elif test x$gcc_cv_as != x; then
22095     $as_echo 'conftest_label1: .word 0
22096 .subsection -1
22097 conftest_label2: .word 0
22098 .previous' > conftest.s
22099     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22100   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22101   (eval $ac_try) 2>&5
22102   ac_status=$?
22103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22104   test $ac_status = 0; }; }
22105     then
22106         if test x$gcc_cv_nm != x; then
22107     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22108     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22109     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22110     then :
22111     else gcc_cv_as_subsection_m1=yes
22112     fi
22113     rm -f conftest.nm1 conftest.nm2
22114   fi
22115     else
22116       echo "configure: failed program was" >&5
22117       cat conftest.s >&5
22118     fi
22119     rm -f conftest.o conftest.s
22120   fi
22121 fi
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22123 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22124 if test $gcc_cv_as_subsection_m1 = yes; then
22125
22126 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22127
22128 fi
22129
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22131 $as_echo_n "checking assembler for .weak... " >&6; }
22132 if test "${gcc_cv_as_weak+set}" = set; then :
22133   $as_echo_n "(cached) " >&6
22134 else
22135   gcc_cv_as_weak=no
22136     if test $in_tree_gas = yes; then
22137     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22138   then gcc_cv_as_weak=yes
22139 fi
22140   elif test x$gcc_cv_as != x; then
22141     $as_echo '  .weak foobar' > conftest.s
22142     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22143   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22144   (eval $ac_try) 2>&5
22145   ac_status=$?
22146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22147   test $ac_status = 0; }; }
22148     then
22149         gcc_cv_as_weak=yes
22150     else
22151       echo "configure: failed program was" >&5
22152       cat conftest.s >&5
22153     fi
22154     rm -f conftest.o conftest.s
22155   fi
22156 fi
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22158 $as_echo "$gcc_cv_as_weak" >&6; }
22159 if test $gcc_cv_as_weak = yes; then
22160
22161 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22162
22163 fi
22164
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22166 $as_echo_n "checking assembler for .weakref... " >&6; }
22167 if test "${gcc_cv_as_weakref+set}" = set; then :
22168   $as_echo_n "(cached) " >&6
22169 else
22170   gcc_cv_as_weakref=no
22171     if test $in_tree_gas = yes; then
22172     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22173   then gcc_cv_as_weakref=yes
22174 fi
22175   elif test x$gcc_cv_as != x; then
22176     $as_echo '  .weakref foobar, barfnot' > conftest.s
22177     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22178   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22179   (eval $ac_try) 2>&5
22180   ac_status=$?
22181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22182   test $ac_status = 0; }; }
22183     then
22184         gcc_cv_as_weakref=yes
22185     else
22186       echo "configure: failed program was" >&5
22187       cat conftest.s >&5
22188     fi
22189     rm -f conftest.o conftest.s
22190   fi
22191 fi
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22193 $as_echo "$gcc_cv_as_weakref" >&6; }
22194 if test $gcc_cv_as_weakref = yes; then
22195
22196 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22197
22198 fi
22199
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22201 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22202 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22203   $as_echo_n "(cached) " >&6
22204 else
22205   gcc_cv_as_nsubspa_comdat=no
22206     if test $in_tree_gas = yes; then
22207     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22208   then gcc_cv_as_nsubspa_comdat=yes
22209 fi
22210   elif test x$gcc_cv_as != x; then
22211     $as_echo '  .SPACE $TEXT$
22212         .NSUBSPA $CODE$,COMDAT' > conftest.s
22213     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22214   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22215   (eval $ac_try) 2>&5
22216   ac_status=$?
22217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22218   test $ac_status = 0; }; }
22219     then
22220         gcc_cv_as_nsubspa_comdat=yes
22221     else
22222       echo "configure: failed program was" >&5
22223       cat conftest.s >&5
22224     fi
22225     rm -f conftest.o conftest.s
22226   fi
22227 fi
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22229 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22230 if test $gcc_cv_as_nsubspa_comdat = yes; then
22231
22232 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22233
22234 fi
22235
22236 # .hidden needs to be supported in both the assembler and the linker,
22237 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22238 # This is irritatingly difficult to feature test for; we have to check the
22239 # date string after the version number.  If we've got an in-tree
22240 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22241 # to be safe.
22242 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22244 $as_echo_n "checking assembler for .hidden... " >&6; }
22245 if test "${gcc_cv_as_hidden+set}" = set; then :
22246   $as_echo_n "(cached) " >&6
22247 else
22248   gcc_cv_as_hidden=no
22249     if test $in_tree_gas = yes; then
22250     if test $in_tree_gas_is_elf = yes \
22251   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22252   then gcc_cv_as_hidden=yes
22253 fi
22254   elif test x$gcc_cv_as != x; then
22255     $as_echo '  .hidden foobar
22256 foobar:' > conftest.s
22257     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22258   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22259   (eval $ac_try) 2>&5
22260   ac_status=$?
22261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22262   test $ac_status = 0; }; }
22263     then
22264
22265 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22266 # STV_HIDDEN, so disable .hidden support if so.
22267 case "${target}" in
22268   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22269     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22270       cat > conftest.s <<EOF
22271 .globl hidden
22272         .hidden hidden
22273 hidden:
22274 .globl default
22275         .set    default,hidden
22276 EOF
22277       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22278         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22279         grep '\.hidden default' > /dev/null; then
22280         gcc_cv_as_hidden=no
22281       else
22282         gcc_cv_as_hidden=yes
22283       fi
22284     else
22285       # Assume bug is present if objdump is missing.
22286       gcc_cv_as_hidden=no
22287     fi
22288     ;;
22289   *)
22290     gcc_cv_as_hidden=yes
22291     ;;
22292 esac
22293     else
22294       echo "configure: failed program was" >&5
22295       cat conftest.s >&5
22296     fi
22297     rm -f conftest.o conftest.s
22298   fi
22299 fi
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22301 $as_echo "$gcc_cv_as_hidden" >&6; }
22302
22303 case "${target}" in
22304   *-*-darwin*)
22305     # Darwin as has some visibility support, though with a different syntax.
22306     gcc_cv_as_hidden=yes
22307     ;;
22308 esac
22309
22310 # gnu_indirect_function type is an extension proposed at
22311 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22312 # selection of function implementation
22313 # Check whether --enable-gnu-indirect-function was given.
22314 if test "${enable_gnu_indirect_function+set}" = set; then :
22315   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22316     yes | no) ;;
22317     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22318 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22319   esac
22320 else
22321   enable_gnu_indirect_function="$default_gnu_indirect_function"
22322 fi
22323
22324 if test x$enable_gnu_indirect_function = xyes; then
22325
22326 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22327
22328 fi
22329
22330 if test $in_tree_ld != yes ; then
22331   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22332   if echo "$ld_ver" | grep GNU > /dev/null; then
22333     if test x"$ld_is_gold" = xyes; then
22334       # GNU gold --version looks like this:
22335       #
22336       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22337       #
22338       # We extract the binutils version which is more familiar and specific
22339       # than the gold version.
22340       ld_vers=`echo $ld_ver | sed -n \
22341           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22342     else
22343       # GNU ld --version looks like this:
22344       #
22345       # GNU ld (GNU Binutils) 2.21.51.20110225
22346       ld_vers=`echo $ld_ver | sed -n \
22347           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22348     fi
22349     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'`
22350     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22351     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22352     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22353   else
22354     case "${target}" in
22355       *-*-solaris2*)
22356         #
22357         # Solaris 2 ld -V output looks like this for a regular version:
22358         #
22359         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22360         #
22361         # but test versions add stuff at the end:
22362         #
22363         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22364         #
22365         ld_ver=`$gcc_cv_ld -V 2>&1`
22366         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22367           ld_vers=`echo $ld_ver | sed -n \
22368             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22369           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22370           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22371         fi
22372         ;;
22373     esac
22374   fi
22375 fi
22376
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22378 $as_echo_n "checking linker for .hidden support... " >&6; }
22379 if test "${gcc_cv_ld_hidden+set}" = set; then :
22380   $as_echo_n "(cached) " >&6
22381 else
22382   if test $in_tree_ld = yes ; then
22383   gcc_cv_ld_hidden=no
22384   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 \
22385      && test $in_tree_ld_is_elf = yes; then
22386      gcc_cv_ld_hidden=yes
22387   fi
22388 else
22389   gcc_cv_ld_hidden=yes
22390   if test x"$ld_is_gold" = xyes; then
22391     :
22392   elif echo "$ld_ver" | grep GNU > /dev/null; then
22393     if test 0"$ld_date" -lt 20020404; then
22394       if test -n "$ld_date"; then
22395         # If there was date string, but was earlier than 2002-04-04, fail
22396         gcc_cv_ld_hidden=no
22397       elif test -z "$ld_vers"; then
22398         # If there was no date string nor ld version number, something is wrong
22399         gcc_cv_ld_hidden=no
22400       else
22401         test -z "$ld_vers_patch" && ld_vers_patch=0
22402         if test "$ld_vers_major" -lt 2; then
22403           gcc_cv_ld_hidden=no
22404         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22405           gcc_cv_ld_hidden="no"
22406         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22407           gcc_cv_ld_hidden=no
22408         fi
22409       fi
22410     fi
22411   else
22412     case "${target}" in
22413       *-*-darwin*)
22414         # Darwin ld has some visibility support.
22415         gcc_cv_ld_hidden=yes
22416         ;;
22417       hppa64*-*-hpux* | ia64*-*-hpux*)
22418         gcc_cv_ld_hidden=yes
22419         ;;
22420       *-*-solaris2.8*)
22421         # .hidden support was backported to Solaris 8, starting with ld
22422         # version 1.276.
22423         if test "$ld_vers_minor" -ge 276; then
22424           gcc_cv_ld_hidden=yes
22425         else
22426           gcc_cv_ld_hidden=no
22427         fi
22428         ;;
22429       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22430         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22431         # .symbolic was only added in Solaris 9 12/02.
22432         gcc_cv_ld_hidden=yes
22433         ;;
22434       *)
22435         gcc_cv_ld_hidden=no
22436         ;;
22437     esac
22438   fi
22439 fi
22440 fi
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22442 $as_echo "$gcc_cv_ld_hidden" >&6; }
22443 libgcc_visibility=no
22444
22445
22446 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22447   libgcc_visibility=yes
22448
22449 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22450
22451 fi
22452
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22454 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22455 gcc_cv_ld_ro_rw_mix=unknown
22456 if test $in_tree_ld = yes ; then
22457   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 \
22458      && test $in_tree_ld_is_elf = yes; then
22459     gcc_cv_ld_ro_rw_mix=read-write
22460   fi
22461 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22462   echo '.section myfoosect, "a"' > conftest1.s
22463   echo '.section myfoosect, "aw"' > conftest2.s
22464   echo '.byte 1' >> conftest2.s
22465   echo '.section myfoosect, "a"' > conftest3.s
22466   echo '.byte 0' >> conftest3.s
22467   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22468      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22469      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22470      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22471         conftest2.o conftest3.o > /dev/null 2>&1; then
22472     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22473                          | sed -e '/myfoosect/!d' -e N`
22474     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22475       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22476         gcc_cv_ld_ro_rw_mix=read-only
22477       else
22478         gcc_cv_ld_ro_rw_mix=read-write
22479       fi
22480     fi
22481   fi
22482   rm -f conftest.* conftest[123].*
22483 fi
22484 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22485
22486 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22487
22488 fi
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22490 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22491
22492 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22494 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22495 if test "${gcc_cv_as_leb128+set}" = set; then :
22496   $as_echo_n "(cached) " >&6
22497 else
22498   gcc_cv_as_leb128=no
22499     if test $in_tree_gas = yes; then
22500     if test $in_tree_gas_is_elf = yes \
22501   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22502   then gcc_cv_as_leb128=yes
22503 fi
22504   elif test x$gcc_cv_as != x; then
22505     $as_echo '  .data
22506         .uleb128 L2 - L1
22507 L1:
22508         .uleb128 1280
22509         .sleb128 -1010
22510 L2:' > conftest.s
22511     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22512   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22513   (eval $ac_try) 2>&5
22514   ac_status=$?
22515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22516   test $ac_status = 0; }; }
22517     then
22518         # GAS versions before 2.11 do not support uleb128,
22519   # despite appearing to.
22520   # ??? There exists an elf-specific test that will crash
22521   # the assembler.  Perhaps it's better to figure out whether
22522   # arbitrary sections are supported and try the test.
22523   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22524   if echo "$as_ver" | grep GNU > /dev/null; then
22525     as_vers=`echo $as_ver | sed -n \
22526         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22527     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22528     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22529     if test $as_major -eq 2 && test $as_minor -lt 11
22530     then :
22531     else gcc_cv_as_leb128=yes
22532     fi
22533   fi
22534     else
22535       echo "configure: failed program was" >&5
22536       cat conftest.s >&5
22537     fi
22538     rm -f conftest.o conftest.s
22539   fi
22540 fi
22541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22542 $as_echo "$gcc_cv_as_leb128" >&6; }
22543 if test $gcc_cv_as_leb128 = yes; then
22544
22545 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22546
22547 fi
22548
22549 # Check if we have assembler support for unwind directives.
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22551 $as_echo_n "checking assembler for cfi directives... " >&6; }
22552 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22553   $as_echo_n "(cached) " >&6
22554 else
22555   gcc_cv_as_cfi_directive=no
22556   if test x$gcc_cv_as != x; then
22557     $as_echo '  .text
22558         .cfi_startproc
22559         .cfi_offset 0, 0
22560         .cfi_same_value 1
22561         .cfi_def_cfa 1, 2
22562         .cfi_escape 1, 2, 3, 4, 5
22563         .cfi_endproc' > conftest.s
22564     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22565   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22566   (eval $ac_try) 2>&5
22567   ac_status=$?
22568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22569   test $ac_status = 0; }; }
22570     then
22571         case "$target" in
22572   *-*-solaris*)
22573     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22574     # read-only and read-write sections, we need to make sure that the
22575     # assembler used emits read-write .eh_frame sections.
22576     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22577       if test "x$gcc_cv_objdump" != x; then
22578         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22579                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22580           gcc_cv_as_cfi_directive=no
22581         else
22582           case "$target" in
22583             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22584               # On Solaris/x86, make sure that GCC and gas agree on using
22585               # read-only .eh_frame sections for 64-bit.
22586               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22587                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22588                         sed -e /.eh_frame/!d -e N | \
22589                         grep READONLY > /dev/null; then
22590                 gcc_cv_as_cfi_directive=yes
22591               else
22592                 gcc_cv_as_cfi_directive=no
22593               fi
22594               ;;
22595             *)
22596               gcc_cv_as_cfi_directive=yes
22597               ;;
22598           esac
22599         fi
22600       else
22601         # no objdump, err on the side of caution
22602         gcc_cv_as_cfi_directive=no
22603       fi
22604     else
22605       gcc_cv_as_cfi_directive=yes
22606     fi
22607     ;;
22608   *-*-*)
22609     gcc_cv_as_cfi_directive=yes
22610     ;;
22611 esac
22612     else
22613       echo "configure: failed program was" >&5
22614       cat conftest.s >&5
22615     fi
22616     rm -f conftest.o conftest.s
22617   fi
22618 fi
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22620 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22621
22622 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22624 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22625 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22626   $as_echo_n "(cached) " >&6
22627 else
22628   gcc_cv_as_cfi_advance_working=no
22629   if test x$gcc_cv_as != x; then
22630     $as_echo '  .text
22631         .cfi_startproc
22632         .cfi_adjust_cfa_offset 64
22633         .skip 75040, 0
22634         .cfi_adjust_cfa_offset 128
22635         .cfi_endproc' > conftest.s
22636     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22637   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22638   (eval $ac_try) 2>&5
22639   ac_status=$?
22640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22641   test $ac_status = 0; }; }
22642     then
22643
22644 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22645     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22646    gcc_cv_as_cfi_advance_working=yes
22647 fi
22648
22649     else
22650       echo "configure: failed program was" >&5
22651       cat conftest.s >&5
22652     fi
22653     rm -f conftest.o conftest.s
22654   fi
22655 fi
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22657 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22658
22659 else
22660   # no objdump, err on the side of caution
22661   gcc_cv_as_cfi_advance_working=no
22662 fi
22663
22664
22665 cat >>confdefs.h <<_ACEOF
22666 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22667        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22668 _ACEOF
22669
22670
22671
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22673 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22674 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22675   $as_echo_n "(cached) " >&6
22676 else
22677   gcc_cv_as_cfi_personality_directive=no
22678   if test x$gcc_cv_as != x; then
22679     $as_echo '  .text
22680         .cfi_startproc
22681         .cfi_personality 0, symbol
22682         .cfi_endproc' > conftest.s
22683     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22684   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22685   (eval $ac_try) 2>&5
22686   ac_status=$?
22687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22688   test $ac_status = 0; }; }
22689     then
22690         gcc_cv_as_cfi_personality_directive=yes
22691     else
22692       echo "configure: failed program was" >&5
22693       cat conftest.s >&5
22694     fi
22695     rm -f conftest.o conftest.s
22696   fi
22697 fi
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22699 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22700
22701
22702 cat >>confdefs.h <<_ACEOF
22703 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22704     then echo 1; else echo 0; fi`
22705 _ACEOF
22706
22707
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22709 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22710 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22711   $as_echo_n "(cached) " >&6
22712 else
22713   gcc_cv_as_cfi_sections_directive=no
22714   if test x$gcc_cv_as != x; then
22715     $as_echo '  .text
22716         .cfi_sections .debug_frame, .eh_frame
22717         .cfi_startproc
22718         .cfi_endproc' > conftest.s
22719     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22720   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22721   (eval $ac_try) 2>&5
22722   ac_status=$?
22723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22724   test $ac_status = 0; }; }
22725     then
22726         case $target_os in
22727   win32 | pe | cygwin* | mingw32* | uwin*)
22728     # Need to check that we generated the correct relocation for the
22729     # .debug_frame section.  This was fixed for binutils 2.21.
22730     gcc_cv_as_cfi_sections_directive=no
22731     if test "x$gcc_cv_objdump" != x; then
22732      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22733         grep secrel > /dev/null; then
22734       gcc_cv_as_cfi_sections_directive=yes
22735      fi
22736     fi
22737     ;;
22738   *)
22739     gcc_cv_as_cfi_sections_directive=yes
22740     ;;
22741 esac
22742     else
22743       echo "configure: failed program was" >&5
22744       cat conftest.s >&5
22745     fi
22746     rm -f conftest.o conftest.s
22747   fi
22748 fi
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22750 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22751
22752
22753
22754 cat >>confdefs.h <<_ACEOF
22755 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22756     then echo 1; else echo 0; fi`
22757 _ACEOF
22758
22759
22760 # GAS versions up to and including 2.11.0 may mis-optimize
22761 # .eh_frame data.
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22763 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22764 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22765   $as_echo_n "(cached) " >&6
22766 else
22767   gcc_cv_as_eh_frame=no
22768     if test $in_tree_gas = yes; then
22769     if test $in_tree_gas_is_elf = yes \
22770   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22771   then gcc_cv_as_eh_frame=yes
22772 fi
22773   elif test x$gcc_cv_as != x; then
22774     $as_echo '  .text
22775 .LFB1:
22776         .4byte  0
22777 .L1:
22778         .4byte  0
22779 .LFE1:
22780         .section        .eh_frame,"aw",@progbits
22781 __FRAME_BEGIN__:
22782         .4byte  .LECIE1-.LSCIE1
22783 .LSCIE1:
22784         .4byte  0x0
22785         .byte   0x1
22786         .ascii "z\0"
22787         .byte   0x1
22788         .byte   0x78
22789         .byte   0x1a
22790         .byte   0x0
22791         .byte   0x4
22792         .4byte  1
22793         .p2align 1
22794 .LECIE1:
22795 .LSFDE1:
22796         .4byte  .LEFDE1-.LASFDE1
22797 .LASFDE1:
22798         .4byte  .LASFDE1-__FRAME_BEGIN__
22799         .4byte  .LFB1
22800         .4byte  .LFE1-.LFB1
22801         .byte   0x4
22802         .4byte  .LFE1-.LFB1
22803         .byte   0x4
22804         .4byte  .L1-.LFB1
22805 .LEFDE1:' > conftest.s
22806     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22807   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22808   (eval $ac_try) 2>&5
22809   ac_status=$?
22810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22811   test $ac_status = 0; }; }
22812     then
22813           cat > conftest.lit <<EOF
22814  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22815  0010 01000000 12000000 18000000 00000000  ................
22816  0020 08000000 04080000 0044               .........D      
22817 EOF
22818 cat > conftest.big <<EOF
22819  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22820  0010 00000001 00000012 00000018 00000000  ................
22821  0020 00000008 04000000 0844               .........D      
22822 EOF
22823   # If the assembler didn't choke, and we can objdump,
22824   # and we got the correct data, then succeed.
22825   # The text in the here-document typically retains its unix-style line
22826   # endings, while the output of objdump will use host line endings.
22827   # Therefore, use diff -b for the comparisons.
22828   if test x$gcc_cv_objdump != x \
22829   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22830      | tail -3 > conftest.got \
22831   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22832     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22833   then
22834     gcc_cv_as_eh_frame=yes
22835   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22836   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837   (eval $ac_try) 2>&5
22838   ac_status=$?
22839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840   test $ac_status = 0; }; }; then
22841     gcc_cv_as_eh_frame=buggy
22842   else
22843     # Uh oh, what do we do now?
22844     gcc_cv_as_eh_frame=no
22845   fi
22846     else
22847       echo "configure: failed program was" >&5
22848       cat conftest.s >&5
22849     fi
22850     rm -f conftest.o conftest.s
22851   fi
22852 fi
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22854 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22855
22856
22857 if test $gcc_cv_as_eh_frame = buggy; then
22858
22859 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22860
22861 fi
22862
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22864 $as_echo_n "checking assembler for section merging support... " >&6; }
22865 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22866   $as_echo_n "(cached) " >&6
22867 else
22868   gcc_cv_as_shf_merge=no
22869     if test $in_tree_gas = yes; then
22870     if test $in_tree_gas_is_elf = yes \
22871   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22872   then gcc_cv_as_shf_merge=yes
22873 fi
22874   elif test x$gcc_cv_as != x; then
22875     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22876     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22877   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22878   (eval $ac_try) 2>&5
22879   ac_status=$?
22880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22881   test $ac_status = 0; }; }
22882     then
22883         gcc_cv_as_shf_merge=yes
22884     else
22885       echo "configure: failed program was" >&5
22886       cat conftest.s >&5
22887     fi
22888     rm -f conftest.o conftest.s
22889   fi
22890 fi
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22892 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22893
22894 if test $gcc_cv_as_shf_merge = no; then
22895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22896 $as_echo_n "checking assembler for section merging support... " >&6; }
22897 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22898   $as_echo_n "(cached) " >&6
22899 else
22900   gcc_cv_as_shf_merge=no
22901     if test $in_tree_gas = yes; then
22902     if test $in_tree_gas_is_elf = yes \
22903   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22904   then gcc_cv_as_shf_merge=yes
22905 fi
22906   elif test x$gcc_cv_as != x; then
22907     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22908     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22909   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22910   (eval $ac_try) 2>&5
22911   ac_status=$?
22912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22913   test $ac_status = 0; }; }
22914     then
22915         gcc_cv_as_shf_merge=yes
22916     else
22917       echo "configure: failed program was" >&5
22918       cat conftest.s >&5
22919     fi
22920     rm -f conftest.o conftest.s
22921   fi
22922 fi
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22924 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22925
22926 fi
22927
22928 cat >>confdefs.h <<_ACEOF
22929 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22930 _ACEOF
22931
22932
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22934 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22935 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22936   $as_echo_n "(cached) " >&6
22937 else
22938   gcc_cv_as_comdat_group=no
22939     if test $in_tree_gas = yes; then
22940     if test $in_tree_gas_is_elf = yes \
22941   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22942   then gcc_cv_as_comdat_group=yes
22943 fi
22944   elif test x$gcc_cv_as != x; then
22945     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22946     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22947   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22948   (eval $ac_try) 2>&5
22949   ac_status=$?
22950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22951   test $ac_status = 0; }; }
22952     then
22953         gcc_cv_as_comdat_group=yes
22954     else
22955       echo "configure: failed program was" >&5
22956       cat conftest.s >&5
22957     fi
22958     rm -f conftest.o conftest.s
22959   fi
22960 fi
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22962 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22963
22964 if test $gcc_cv_as_comdat_group = yes; then
22965   gcc_cv_as_comdat_group_percent=no
22966   gcc_cv_as_comdat_group_group=no
22967 else
22968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22969 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22970 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22971   $as_echo_n "(cached) " >&6
22972 else
22973   gcc_cv_as_comdat_group_percent=no
22974     if test $in_tree_gas = yes; then
22975     if test $in_tree_gas_is_elf = yes \
22976   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22977   then gcc_cv_as_comdat_group_percent=yes
22978 fi
22979   elif test x$gcc_cv_as != x; then
22980     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22981     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22982   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22983   (eval $ac_try) 2>&5
22984   ac_status=$?
22985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22986   test $ac_status = 0; }; }
22987     then
22988         gcc_cv_as_comdat_group_percent=yes
22989     else
22990       echo "configure: failed program was" >&5
22991       cat conftest.s >&5
22992     fi
22993     rm -f conftest.o conftest.s
22994   fi
22995 fi
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22997 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22998
22999  if test $gcc_cv_as_comdat_group_percent = yes; then
23000    gcc_cv_as_comdat_group_group=no
23001  else
23002    case "${target}" in
23003      # Sun as uses a completely different syntax.
23004      *-*-solaris2*)
23005        case "${target}" in
23006          sparc*-*-solaris2*)
23007            conftest_s='
23008                .group foo,".text%foo",#comdat
23009                .section ".text%foo", #alloc,#execinstr,#progbits
23010                .globl foo
23011              foo:
23012              '
23013            ;;
23014          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23015            conftest_s='
23016                .group foo,.text%foo,#comdat
23017                .section .text%foo, "ax", @progbits
23018                .globl  foo
23019              foo:
23020              '
23021            ;;
23022        esac
23023        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23024 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23025 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23026   $as_echo_n "(cached) " >&6
23027 else
23028   gcc_cv_as_comdat_group_group=no
23029   if test x$gcc_cv_as != x; then
23030     $as_echo "$conftest_s" > conftest.s
23031     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23032   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23033   (eval $ac_try) 2>&5
23034   ac_status=$?
23035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23036   test $ac_status = 0; }; }
23037     then
23038         gcc_cv_as_comdat_group_group=yes
23039     else
23040       echo "configure: failed program was" >&5
23041       cat conftest.s >&5
23042     fi
23043     rm -f conftest.o conftest.s
23044   fi
23045 fi
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23047 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23048
23049        ;;
23050    esac
23051  fi
23052 fi
23053 if test x"$ld_is_gold" = xyes; then
23054   comdat_group=yes
23055 elif test $in_tree_ld = yes ; then
23056   comdat_group=no
23057   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 \
23058      && test $in_tree_ld_is_elf = yes; then
23059      comdat_group=yes
23060   fi
23061 elif echo "$ld_ver" | grep GNU > /dev/null; then
23062   comdat_group=yes
23063   if test 0"$ld_date" -lt 20050308; then
23064     if test -n "$ld_date"; then
23065       # If there was date string, but was earlier than 2005-03-08, fail
23066       comdat_group=no
23067     elif test "$ld_vers_major" -lt 2; then
23068       comdat_group=no
23069     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23070       comdat_group=no
23071     fi
23072   fi
23073 else
23074   case "${target}" in
23075     *-*-solaris2.1[1-9]*)
23076       comdat_group=no
23077       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23078       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23079       # version 1.688.
23080       #
23081       # If using Sun as for COMDAT group as emitted by GCC, one needs at
23082       # least ld version 1.2267.
23083       if test "$ld_vers_major" -gt 1; then
23084         comdat_group=yes
23085       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23086         comdat_group=yes
23087       elif test "$ld_vers_minor" -ge 2267; then
23088         comdat_group=yes
23089       fi
23090       ;;
23091     *)
23092       # Assume linkers other than GNU ld don't support COMDAT group.
23093       comdat_group=no
23094       ;;
23095   esac
23096 fi
23097 # Allow overriding the automatic COMDAT group tests above.
23098 # Check whether --enable-comdat was given.
23099 if test "${enable_comdat+set}" = set; then :
23100   enableval=$enable_comdat; comdat_group="$enable_comdat"
23101 fi
23102
23103 if test $comdat_group = no; then
23104   gcc_cv_as_comdat_group=no
23105   gcc_cv_as_comdat_group_percent=no
23106   gcc_cv_as_comdat_group_group=no
23107 fi
23108
23109 cat >>confdefs.h <<_ACEOF
23110 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23111     || test $gcc_cv_as_comdat_group_percent = yes \
23112     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23113 _ACEOF
23114
23115
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23117 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23118 if test "${gcc_cv_as_discriminator+set}" = set; then :
23119   $as_echo_n "(cached) " >&6
23120 else
23121   gcc_cv_as_discriminator=no
23122     if test $in_tree_gas = yes; then
23123     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23124   then gcc_cv_as_discriminator=yes
23125 fi
23126   elif test x$gcc_cv_as != x; then
23127     $as_echo '  .text
23128         .file 1 "conf.c"
23129         .loc 1 1 0 discriminator 1' > conftest.s
23130     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23131   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23132   (eval $ac_try) 2>&5
23133   ac_status=$?
23134   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23135   test $ac_status = 0; }; }
23136     then
23137         gcc_cv_as_discriminator=yes
23138     else
23139       echo "configure: failed program was" >&5
23140       cat conftest.s >&5
23141     fi
23142     rm -f conftest.o conftest.s
23143   fi
23144 fi
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23146 $as_echo "$gcc_cv_as_discriminator" >&6; }
23147 if test $gcc_cv_as_discriminator = yes; then
23148
23149 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23150
23151 fi
23152
23153 # Thread-local storage - the check is heavily parameterized.
23154 conftest_s=
23155 tls_first_major=
23156 tls_first_minor=
23157 tls_as_opt=
23158 case "$target" in
23159   alpha*-*-*)
23160     conftest_s='
23161         .section ".tdata","awT",@progbits
23162 foo:    .long   25
23163         .text
23164         ldq     $27,__tls_get_addr($29)         !literal!1
23165         lda     $16,foo($29)                    !tlsgd!1
23166         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
23167         ldq     $27,__tls_get_addr($29)         !literal!2
23168         lda     $16,foo($29)                    !tlsldm!2
23169         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
23170         ldq     $1,foo($29)                     !gotdtprel
23171         ldah    $2,foo($29)                     !dtprelhi
23172         lda     $3,foo($2)                      !dtprello
23173         lda     $4,foo($29)                     !dtprel
23174         ldq     $1,foo($29)                     !gottprel
23175         ldah    $2,foo($29)                     !tprelhi
23176         lda     $3,foo($2)                      !tprello
23177         lda     $4,foo($29)                     !tprel'
23178         tls_first_major=2
23179         tls_first_minor=13
23180         tls_as_opt=--fatal-warnings
23181         ;;
23182   cris-*-*|crisv32-*-*)
23183     conftest_s='
23184         .section ".tdata","awT",@progbits
23185 x:      .long   25
23186         .text
23187         move.d x:IE,$r10
23188         nop'
23189         tls_first_major=2
23190         tls_first_minor=20
23191         tls_as_opt=--fatal-warnings
23192         ;;
23193   frv*-*-*)
23194     conftest_s='
23195         .section ".tdata","awT",@progbits
23196 x:      .long   25
23197         .text
23198         call    #gettlsoff(x)'
23199         tls_first_major=2
23200         tls_first_minor=14
23201         ;;
23202   hppa*-*-linux*)
23203     conftest_s='
23204 t1:     .reg    %r20
23205 t2:     .reg    %r21
23206 gp:     .reg    %r19
23207         .section ".tdata","awT",@progbits
23208 foo:    .long   25
23209         .text
23210         .align  4
23211         addil LT%foo-$tls_gdidx$,gp
23212         ldo RT%foo-$tls_gdidx$(%r1),%arg0
23213         b __tls_get_addr
23214         nop
23215         addil LT%foo-$tls_ldidx$,gp
23216         b __tls_get_addr
23217         ldo RT%foo-$tls_ldidx$(%r1),%arg0
23218         addil LR%foo-$tls_dtpoff$,%ret0
23219         ldo RR%foo-$tls_dtpoff$(%r1),%t1
23220         mfctl %cr27,%t1
23221         addil LT%foo-$tls_ieoff$,gp
23222         ldw RT%foo-$tls_ieoff$(%r1),%t2
23223         add %t1,%t2,%t3
23224         mfctl %cr27,%t1
23225         addil LR%foo-$tls_leoff$,%t1
23226         ldo RR%foo-$tls_leoff$(%r1),%t2'
23227         tls_first_major=2
23228         tls_first_minor=15
23229         tls_as_opt=--fatal-warnings
23230         ;;
23231   arm*-*-*)
23232     conftest_s='
23233         .section ".tdata","awT",%progbits
23234 foo:    .long   25
23235         .text
23236 .word foo(gottpoff)
23237 .word foo(tpoff)
23238 .word foo(tlsgd)
23239 .word foo(tlsldm)
23240 .word foo(tlsldo)'
23241         tls_first_major=2
23242         tls_first_minor=17
23243         ;;
23244   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23245     case "$target" in
23246       i[34567]86-*-solaris2.*)
23247         on_solaris=yes
23248         tga_func=___tls_get_addr
23249         ;;
23250       x86_64-*-solaris2.1[0-9]*)
23251         on_solaris=yes
23252         tga_func=__tls_get_addr
23253         ;;
23254       *)
23255         on_solaris=no
23256         ;;
23257     esac
23258     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23259       conftest_s='
23260         .section .tdata,"awt",@progbits'
23261       tls_first_major=0
23262       tls_first_minor=0
23263
23264 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23265
23266     else
23267       conftest_s='
23268         .section ".tdata","awT",@progbits'
23269       tls_first_major=2
23270       tls_first_minor=14
23271       tls_as_opt="--fatal-warnings"
23272     fi
23273     conftest_s="$conftest_s
23274 foo:    .long   25
23275         .text
23276         movl    %gs:0, %eax
23277         leal    foo@tlsgd(,%ebx,1), %eax
23278         leal    foo@tlsldm(%ebx), %eax
23279         leal    foo@dtpoff(%eax), %edx
23280         movl    foo@gottpoff(%ebx), %eax
23281         subl    foo@gottpoff(%ebx), %eax
23282         addl    foo@gotntpoff(%ebx), %eax
23283         movl    foo@indntpoff, %eax
23284         movl    \$foo@tpoff, %eax
23285         subl    \$foo@tpoff, %eax
23286         leal    foo@ntpoff(%ecx), %eax"
23287     ;;
23288   x86_64-*-*)
23289     conftest_s='
23290         .section ".tdata","awT",@progbits
23291 foo:    .long   25
23292         .text
23293         movq    %fs:0, %rax
23294         leaq    foo@TLSGD(%rip), %rdi
23295         leaq    foo@TLSLD(%rip), %rdi
23296         leaq    foo@DTPOFF(%rax), %rdx
23297         movq    foo@GOTTPOFF(%rip), %rax
23298         movq    $foo@TPOFF, %rax'
23299         tls_first_major=2
23300         tls_first_minor=14
23301         tls_as_opt=--fatal-warnings
23302         ;;
23303   ia64-*-*)
23304     conftest_s='
23305         .section ".tdata","awT",@progbits
23306 foo:    data8   25
23307         .text
23308         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23309         addl    r17 = @ltoff(@dtprel(foo#)), gp
23310         addl    r18 = @ltoff(@tprel(foo#)), gp
23311         addl    r19 = @dtprel(foo#), gp
23312         adds    r21 = @dtprel(foo#), r13
23313         movl    r23 = @dtprel(foo#)
23314         addl    r20 = @tprel(foo#), gp
23315         adds    r22 = @tprel(foo#), r13
23316         movl    r24 = @tprel(foo#)'
23317         tls_first_major=2
23318         tls_first_minor=13
23319         tls_as_opt=--fatal-warnings
23320         ;;
23321   mips*-*-*)
23322     conftest_s='
23323         .section .tdata,"awT",@progbits
23324 x:
23325         .word 2
23326         .text
23327         addiu $4, $28, %tlsgd(x)
23328         addiu $4, $28, %tlsldm(x)
23329         lui $4, %dtprel_hi(x)
23330         addiu $4, $4, %dtprel_lo(x)
23331         lw $4, %gottprel(x)($28)
23332         lui $4, %tprel_hi(x)
23333         addiu $4, $4, %tprel_lo(x)'
23334         tls_first_major=2
23335         tls_first_minor=16
23336         tls_as_opt='-32 --fatal-warnings'
23337         ;;
23338   m68k-*-*)
23339     conftest_s='
23340         .section .tdata,"awT",@progbits
23341 x:
23342         .word 2
23343         .text
23344 foo:
23345         move.l x@TLSGD(%a5),%a0
23346         move.l x@TLSLDM(%a5),%a0
23347         move.l x@TLSLDO(%a5),%a0
23348         move.l x@TLSIE(%a5),%a0
23349         move.l x@TLSLE(%a5),%a0'
23350         tls_first_major=2
23351         tls_first_minor=19
23352         tls_as_opt='--fatal-warnings'
23353         ;;
23354   powerpc-*-*)
23355     conftest_s='
23356         .section ".tdata","awT",@progbits
23357         .align 2
23358 ld0:    .space 4
23359 ld1:    .space 4
23360 x1:     .space 4
23361 x2:     .space 4
23362 x3:     .space 4
23363         .text
23364         addi 3,31,ld0@got@tlsgd
23365         bl __tls_get_addr
23366         addi 3,31,x1@got@tlsld
23367         bl __tls_get_addr
23368         addi 9,3,x1@dtprel
23369         addis 9,3,x2@dtprel@ha
23370         addi 9,9,x2@dtprel@l
23371         lwz 9,x3@got@tprel(31)
23372         add 9,9,x@tls
23373         addi 9,2,x1@tprel
23374         addis 9,2,x2@tprel@ha
23375         addi 9,9,x2@tprel@l'
23376         tls_first_major=2
23377         tls_first_minor=14
23378         tls_as_opt="-a32 --fatal-warnings"
23379         ;;
23380   powerpc64-*-*)
23381     conftest_s='
23382         .section ".tdata","awT",@progbits
23383         .align 3
23384 ld0:    .space 8
23385 ld1:    .space 8
23386 x1:     .space 8
23387 x2:     .space 8
23388 x3:     .space 8
23389         .text
23390         addi 3,2,ld0@got@tlsgd
23391         bl .__tls_get_addr
23392         nop
23393         addi 3,2,ld1@toc
23394         bl .__tls_get_addr
23395         nop
23396         addi 3,2,x1@got@tlsld
23397         bl .__tls_get_addr
23398         nop
23399         addi 9,3,x1@dtprel
23400         bl .__tls_get_addr
23401         nop
23402         addis 9,3,x2@dtprel@ha
23403         addi 9,9,x2@dtprel@l
23404         bl .__tls_get_addr
23405         nop
23406         ld 9,x3@got@dtprel(2)
23407         add 9,9,3
23408         bl .__tls_get_addr
23409         nop'
23410         tls_first_major=2
23411         tls_first_minor=14
23412         tls_as_opt="-a64 --fatal-warnings"
23413         ;;
23414   s390-*-*)
23415     conftest_s='
23416         .section ".tdata","awT",@progbits
23417 foo:    .long   25
23418         .text
23419         .long   foo@TLSGD
23420         .long   foo@TLSLDM
23421         .long   foo@DTPOFF
23422         .long   foo@NTPOFF
23423         .long   foo@GOTNTPOFF
23424         .long   foo@INDNTPOFF
23425         l       %r1,foo@GOTNTPOFF(%r12)
23426         l       %r1,0(%r1):tls_load:foo
23427         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23428         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23429         tls_first_major=2
23430         tls_first_minor=14
23431         tls_as_opt="-m31 --fatal-warnings"
23432         ;;
23433   s390x-*-*)
23434     conftest_s='
23435         .section ".tdata","awT",@progbits
23436 foo:    .long   25
23437         .text
23438         .quad   foo@TLSGD
23439         .quad   foo@TLSLDM
23440         .quad   foo@DTPOFF
23441         .quad   foo@NTPOFF
23442         .quad   foo@GOTNTPOFF
23443         lg      %r1,foo@GOTNTPOFF(%r12)
23444         larl    %r1,foo@INDNTPOFF
23445         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23446         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23447         tls_first_major=2
23448         tls_first_minor=14
23449         tls_as_opt="-m64 -Aesame --fatal-warnings"
23450         ;;
23451   sh-*-* | sh[34]-*-*)
23452     conftest_s='
23453         .section ".tdata","awT",@progbits
23454 foo:    .long   25
23455         .text
23456         .long   foo@TLSGD
23457         .long   foo@TLSLDM
23458         .long   foo@DTPOFF
23459         .long   foo@GOTTPOFF
23460         .long   foo@TPOFF'
23461         tls_first_major=2
23462         tls_first_minor=13
23463         tls_as_opt=--fatal-warnings
23464         ;;
23465   sparc*-*-*)
23466     case "$target" in
23467       sparc*-sun-solaris2.*)
23468         on_solaris=yes
23469         tga_func=__tls_get_addr
23470         ;;
23471       *)
23472         on_solaris=no
23473         ;;
23474     esac
23475     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23476       conftest_s='
23477         .section ".tdata",#alloc,#write,#tls'
23478         tls_first_major=0
23479         tls_first_minor=0
23480     else
23481       conftest_s='
23482         .section ".tdata","awT",@progbits'
23483         tls_first_major=2
23484         tls_first_minor=14
23485         tls_as_opt="-32 --fatal-warnings"
23486     fi
23487     conftest_s="$conftest_s
23488 foo:    .long   25
23489         .text
23490         sethi   %tgd_hi22(foo), %o0
23491         add     %o0, %tgd_lo10(foo), %o1
23492         add     %l7, %o1, %o0, %tgd_add(foo)
23493         call    __tls_get_addr, %tgd_call(foo)
23494         sethi   %tldm_hi22(foo), %l1
23495         add     %l1, %tldm_lo10(foo), %l2
23496         add     %l7, %l2, %o0, %tldm_add(foo)
23497         call    __tls_get_addr, %tldm_call(foo)
23498         sethi   %tldo_hix22(foo), %l3
23499         xor     %l3, %tldo_lox10(foo), %l4
23500         add     %o0, %l4, %l5, %tldo_add(foo)
23501         sethi   %tie_hi22(foo), %o3
23502         add     %o3, %tie_lo10(foo), %o3
23503         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23504         add     %g7, %o2, %o4, %tie_add(foo)
23505         sethi   %tle_hix22(foo), %l1
23506         xor     %l1, %tle_lox10(foo), %o5
23507         ld      [%g7 + %o5], %o1"
23508         ;;
23509   xtensa*-*-*)
23510     conftest_s='
23511         .section ".tdata","awT",@progbits
23512 foo:    .long   25
23513         .text
23514         movi    a8, foo@TLSFUNC
23515         movi    a10, foo@TLSARG
23516         callx8.tls a8, foo@TLSCALL'
23517         tls_first_major=2
23518         tls_first_minor=19
23519         ;;
23520 esac
23521 set_have_as_tls=no
23522 if test "x$enable_tls" = xno ; then
23523   : # TLS explicitly disabled.
23524 elif test "x$enable_tls" = xyes ; then
23525   set_have_as_tls=yes # TLS explicitly enabled.
23526 elif test -z "$tls_first_major"; then
23527   : # If we don't have a check, assume no support.
23528 else
23529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23530 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23531 if test "${gcc_cv_as_tls+set}" = set; then :
23532   $as_echo_n "(cached) " >&6
23533 else
23534   gcc_cv_as_tls=no
23535     if test $in_tree_gas = yes; then
23536     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23537   then gcc_cv_as_tls=yes
23538 fi
23539   elif test x$gcc_cv_as != x; then
23540     $as_echo "$conftest_s" > conftest.s
23541     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23542   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23543   (eval $ac_try) 2>&5
23544   ac_status=$?
23545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23546   test $ac_status = 0; }; }
23547     then
23548         gcc_cv_as_tls=yes
23549     else
23550       echo "configure: failed program was" >&5
23551       cat conftest.s >&5
23552     fi
23553     rm -f conftest.o conftest.s
23554   fi
23555 fi
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23557 $as_echo "$gcc_cv_as_tls" >&6; }
23558 if test $gcc_cv_as_tls = yes; then
23559   set_have_as_tls=yes
23560 fi
23561 fi
23562 case "$target" in
23563   *-*-irix6*)
23564     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23565     # with TLS support are in use, native TLS cannot work.
23566     set_have_as_tls=no
23567     ;;
23568   *-*-osf*)
23569     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23570     # gld with TLS support are in use, native TLS cannot work.
23571     set_have_as_tls=no
23572     ;;
23573   # TLS was introduced in the Solaris 9 FCS release and backported to
23574   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
23575   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23576   # ld and GCC don't support any longer.
23577   *-*-solaris2.*)
23578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23579 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23580     ld_tls_support=no
23581     # Check ld and ld.so.1 TLS support.
23582     if echo "$ld_ver" | grep GNU > /dev/null; then
23583       # Assume all interesting versions of GNU ld have TLS support.
23584       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23585       ld_tls_support=yes
23586     else
23587       case "$target" in
23588         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23589         i?86-*-solaris2.8)
23590           min_tls_ld_vers_minor=280
23591           ;;
23592         # Solaris 8/SPARC ld has TLS support since version 1.272.
23593         sparc*-*-solaris2.8)
23594           min_tls_ld_vers_minor=272
23595           ;;
23596         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23597         i?86-*-solaris2.9)
23598           min_tls_ld_vers_minor=374
23599           ;;
23600         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23601         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23602           min_tls_ld_vers_minor=343
23603           ;;
23604       esac
23605       if test "$ld_vers_major" -gt 1 || \
23606         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23607         ld_tls_support=yes
23608       else
23609         set_have_as_tls=no
23610       fi
23611     fi
23612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23613 $as_echo "$ld_tls_support" >&6; }
23614
23615     save_LIBS="$LIBS"
23616     save_LDFLAGS="$LDFLAGS"
23617     LIBS=
23618     LDFLAGS=
23619
23620     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23621 $as_echo_n "checking alternate thread library... " >&6; }
23622     case "$target" in
23623       # TLS support was backported to Solaris 8 patches, but only lives in
23624       # the alternate thread library which became the default in Solaris 9.
23625       # We want to always use that, irrespective of TLS support.
23626       *-*-solaris2.8)
23627         # Take multilib subdir into account.  There's no spec to handle
23628         # this.  The 64 symlink exists since Solaris 8.
23629         lwp_dir=/usr/lib/lwp
23630         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23631         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23632         ;;
23633       *-*-solaris2*)
23634         lwp_dir="none"
23635         lwp_spec=""
23636         ;;
23637     esac
23638     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23639
23640 cat >>confdefs.h <<_ACEOF
23641 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23642 _ACEOF
23643
23644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23645 $as_echo "$lwp_dir" >&6; }
23646
23647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23648 $as_echo_n "checking library containing $tga_func... " >&6; }
23649     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23650     # (32-bit x86) only lived in libthread, so check for that.  Keep
23651     # set_have_as_tls if found, disable if not.
23652     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23654 $as_echo_n "checking for library containing $tga_func... " >&6; }
23655 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23656   $as_echo_n "(cached) " >&6
23657 else
23658   ac_func_search_save_LIBS=$LIBS
23659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23660 /* end confdefs.h.  */
23661
23662 /* Override any GCC internal prototype to avoid an error.
23663    Use char because int might match the return type of a GCC
23664    builtin and then its argument prototype would still apply.  */
23665 #ifdef __cplusplus
23666 extern "C"
23667 #endif
23668 char $tga_func ();
23669 int
23670 main ()
23671 {
23672 return $tga_func ();
23673   ;
23674   return 0;
23675 }
23676 _ACEOF
23677 for ac_lib in '' thread; do
23678   if test -z "$ac_lib"; then
23679     ac_res="none required"
23680   else
23681     ac_res=-l$ac_lib
23682     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23683   fi
23684   if ac_fn_c_try_link "$LINENO"; then :
23685   eval "$as_ac_Search=\$ac_res"
23686 fi
23687 rm -f core conftest.err conftest.$ac_objext \
23688     conftest$ac_exeext
23689   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23690   break
23691 fi
23692 done
23693 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23694
23695 else
23696   eval "$as_ac_Search=no"
23697 fi
23698 rm conftest.$ac_ext
23699 LIBS=$ac_func_search_save_LIBS
23700 fi
23701 eval ac_res=\$$as_ac_Search
23702                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23703 $as_echo "$ac_res" >&6; }
23704 eval ac_res=\$$as_ac_Search
23705 if test "$ac_res" != no; then :
23706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23707
23708 else
23709   set_have_as_tls=no
23710 fi
23711
23712     # Clear LIBS if we cannot support TLS.
23713     if test $set_have_as_tls = no; then
23714       LIBS=
23715     fi
23716     # Always define LIB_TLS_SPEC, even without TLS support.
23717
23718 cat >>confdefs.h <<_ACEOF
23719 #define LIB_TLS_SPEC "$LIBS"
23720 _ACEOF
23721
23722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23723 $as_echo "$LIBS" >&6; }
23724
23725     LIBS="$save_LIBS"
23726     LDFLAGS="$save_LDFLAGS"
23727     ;;
23728 esac
23729 if test $set_have_as_tls = yes ; then
23730
23731 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23732
23733 fi
23734
23735 # Target-specific assembler checks.
23736
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23738 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23739 gcc_cv_ld_static_dynamic=no
23740 gcc_cv_ld_static_option='-Bstatic'
23741 gcc_cv_ld_dynamic_option='-Bdynamic'
23742 if test $in_tree_ld = yes ; then
23743   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
23744     gcc_cv_ld_static_dynamic=yes
23745   fi
23746 elif test x$gcc_cv_ld != x; then
23747   # Check if linker supports -Bstatic/-Bdynamic option
23748   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23749      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23750       gcc_cv_ld_static_dynamic=yes
23751   else
23752     case "$target" in
23753       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23754       alpha*-dec-osf*)
23755         gcc_cv_ld_static_dynamic=yes
23756         gcc_cv_ld_static_option="-noso"
23757         gcc_cv_ld_dynamic_option="-so_archive"
23758         ;;
23759       # HP-UX ld uses -a flags to select between shared and archive.
23760       *-*-hpux*)
23761         if test x"$gnu_ld" = xno; then
23762           gcc_cv_ld_static_dynamic=yes
23763           gcc_cv_ld_static_option="-aarchive_shared"
23764           gcc_cv_ld_dynamic_option="-adefault"
23765         fi
23766         ;;
23767       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23768       mips-sgi-irix6*)
23769         gcc_cv_ld_static_dynamic=yes
23770         ;;
23771       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23772       *-*-solaris2*)
23773         gcc_cv_ld_static_dynamic=yes
23774         ;;
23775     esac
23776   fi
23777 fi
23778 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23779
23780 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23781
23782
23783 cat >>confdefs.h <<_ACEOF
23784 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23785 _ACEOF
23786
23787
23788 cat >>confdefs.h <<_ACEOF
23789 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23790 _ACEOF
23791
23792 fi
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23794 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23795
23796 if test x"$demangler_in_ld" = xyes; then
23797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23798 $as_echo_n "checking linker --demangle support... " >&6; }
23799   gcc_cv_ld_demangle=no
23800   if test $in_tree_ld = yes; then
23801     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 \
23802       gcc_cv_ld_demangle=yes
23803     fi
23804   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23805     # Check if the GNU linker supports --demangle option
23806     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23807       gcc_cv_ld_demangle=yes
23808     fi
23809   fi
23810   if test x"$gcc_cv_ld_demangle" = xyes; then
23811
23812 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23813
23814   fi
23815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23816 $as_echo "$gcc_cv_ld_demangle" >&6; }
23817 fi
23818
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23820 $as_echo_n "checking linker plugin support... " >&6; }
23821 gcc_cv_lto_plugin=0
23822 if test -f liblto_plugin.la; then
23823   save_ld_ver="$ld_ver"
23824   save_ld_vers_major="$ld_vers_major"
23825   save_ld_vers_minor="$ld_vers_minor"
23826   save_ld_is_gold="$ld_is_gold"
23827
23828   ld_is_gold=no
23829
23830   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23831     ld_ver="GNU ld"
23832     # FIXME: ld_is_gold?
23833     ld_vers_major="$gcc_cv_gld_major_version"
23834     ld_vers_minor="$gcc_cv_gld_minor_version"
23835   else
23836     # Determine plugin linker version.
23837     # FIXME: Partial duplicate from above, generalize.
23838     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23839     if echo "$ld_ver" | grep GNU > /dev/null; then
23840       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23841         ld_is_gold=yes
23842         ld_vers=`echo $ld_ver | sed -n \
23843             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23844       else
23845         ld_vers=`echo $ld_ver | sed -n \
23846             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23847       fi
23848       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23849       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23850     fi
23851   fi
23852
23853   # Determine plugin support.
23854   if echo "$ld_ver" | grep GNU > /dev/null; then
23855     # Require GNU ld or gold 2.21+ for plugin support by default.
23856     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23857       gcc_cv_lto_plugin=2
23858     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23859     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23860       gcc_cv_lto_plugin=1
23861     fi
23862   fi
23863
23864   ld_ver="$save_ld_ver"
23865   ld_vers_major="$save_ld_vers_major"
23866   ld_vers_minor="$save_ld_vers_minor"
23867   ld_is_gold="$save_ld_is_gold"
23868 fi
23869
23870 cat >>confdefs.h <<_ACEOF
23871 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23872 _ACEOF
23873
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23875 $as_echo "$gcc_cv_lto_plugin" >&6; }
23876
23877 case "$target" in
23878   # All TARGET_ABI_OSF targets.
23879   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23881 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23882 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23883   $as_echo_n "(cached) " >&6
23884 else
23885   gcc_cv_as_alpha_explicit_relocs=no
23886     if test $in_tree_gas = yes; then
23887     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23888   then gcc_cv_as_alpha_explicit_relocs=yes
23889 fi
23890   elif test x$gcc_cv_as != x; then
23891     $as_echo '  .set nomacro
23892         .text
23893         extbl   $3, $2, $3      !lituse_bytoff!1
23894         ldq     $2, a($29)      !literal!1
23895         ldq     $4, b($29)      !literal!2
23896         ldq_u   $3, 0($2)       !lituse_base!1
23897         ldq     $27, f($29)     !literal!5
23898         jsr     $26, ($27), f   !lituse_jsr!5
23899         ldah    $29, 0($26)     !gpdisp!3
23900         lda     $0, c($29)      !gprel
23901         ldah    $1, d($29)      !gprelhigh
23902         lda     $1, d($1)       !gprellow
23903         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23904     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23905   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23906   (eval $ac_try) 2>&5
23907   ac_status=$?
23908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23909   test $ac_status = 0; }; }
23910     then
23911         gcc_cv_as_alpha_explicit_relocs=yes
23912     else
23913       echo "configure: failed program was" >&5
23914       cat conftest.s >&5
23915     fi
23916     rm -f conftest.o conftest.s
23917   fi
23918 fi
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23920 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23921 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23922
23923 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23924
23925 fi
23926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23927 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23928 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23929   $as_echo_n "(cached) " >&6
23930 else
23931   gcc_cv_as_alpha_jsrdirect_relocs=no
23932     if test $in_tree_gas = yes; then
23933     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23934   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23935 fi
23936   elif test x$gcc_cv_as != x; then
23937     $as_echo '  .set nomacro
23938         .text
23939         ldq     $27, a($29)     !literal!1
23940         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23941     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23942   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23943   (eval $ac_try) 2>&5
23944   ac_status=$?
23945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23946   test $ac_status = 0; }; }
23947     then
23948         gcc_cv_as_alpha_jsrdirect_relocs=yes
23949     else
23950       echo "configure: failed program was" >&5
23951       cat conftest.s >&5
23952     fi
23953     rm -f conftest.o conftest.s
23954   fi
23955 fi
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23957 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23958 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23959
23960 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23961
23962 fi
23963     ;;
23964
23965   cris-*-*)
23966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23967 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23968 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23969   $as_echo_n "(cached) " >&6
23970 else
23971   gcc_cv_as_cris_no_mul_bug=no
23972     if test $in_tree_gas = yes; then
23973     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23974   then gcc_cv_as_cris_no_mul_bug=yes
23975 fi
23976   elif test x$gcc_cv_as != x; then
23977     $as_echo '.text' > conftest.s
23978     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23979   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23980   (eval $ac_try) 2>&5
23981   ac_status=$?
23982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23983   test $ac_status = 0; }; }
23984     then
23985         gcc_cv_as_cris_no_mul_bug=yes
23986     else
23987       echo "configure: failed program was" >&5
23988       cat conftest.s >&5
23989     fi
23990     rm -f conftest.o conftest.s
23991   fi
23992 fi
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23994 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23995 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23996
23997 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23998
23999 fi
24000     ;;
24001
24002   sparc*-*-*)
24003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24004 $as_echo_n "checking assembler for .register... " >&6; }
24005 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24006   $as_echo_n "(cached) " >&6
24007 else
24008   gcc_cv_as_sparc_register_op=no
24009   if test x$gcc_cv_as != x; then
24010     $as_echo '.register %g2, #scratch' > conftest.s
24011     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24012   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24013   (eval $ac_try) 2>&5
24014   ac_status=$?
24015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24016   test $ac_status = 0; }; }
24017     then
24018         gcc_cv_as_sparc_register_op=yes
24019     else
24020       echo "configure: failed program was" >&5
24021       cat conftest.s >&5
24022     fi
24023     rm -f conftest.o conftest.s
24024   fi
24025 fi
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24027 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24028 if test $gcc_cv_as_sparc_register_op = yes; then
24029
24030 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24031
24032 fi
24033
24034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24035 $as_echo_n "checking assembler for -relax option... " >&6; }
24036 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24037   $as_echo_n "(cached) " >&6
24038 else
24039   gcc_cv_as_sparc_relax=no
24040   if test x$gcc_cv_as != x; then
24041     $as_echo '.text' > conftest.s
24042     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24043   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24044   (eval $ac_try) 2>&5
24045   ac_status=$?
24046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24047   test $ac_status = 0; }; }
24048     then
24049         gcc_cv_as_sparc_relax=yes
24050     else
24051       echo "configure: failed program was" >&5
24052       cat conftest.s >&5
24053     fi
24054     rm -f conftest.o conftest.s
24055   fi
24056 fi
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24058 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24059 if test $gcc_cv_as_sparc_relax = yes; then
24060
24061 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24062
24063 fi
24064
24065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24066 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24067 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24068   $as_echo_n "(cached) " >&6
24069 else
24070   gcc_cv_as_sparc_gotdata_op=no
24071   if test x$gcc_cv_as != x; then
24072     $as_echo '.text
24073 .align 4
24074 foo:
24075         nop
24076 bar:
24077         sethi %gdop_hix22(foo), %g1
24078         xor    %g1, %gdop_lox10(foo), %g1
24079         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24080     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24081   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24082   (eval $ac_try) 2>&5
24083   ac_status=$?
24084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24085   test $ac_status = 0; }; }
24086     then
24087         if test x$gcc_cv_ld != x \
24088        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24089          if test x$gcc_cv_objdump != x; then
24090            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24091               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24092                gcc_cv_as_sparc_gotdata_op=no
24093            else
24094                gcc_cv_as_sparc_gotdata_op=yes
24095            fi
24096          fi
24097        fi
24098        rm -f conftest
24099     else
24100       echo "configure: failed program was" >&5
24101       cat conftest.s >&5
24102     fi
24103     rm -f conftest.o conftest.s
24104   fi
24105 fi
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24107 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24108 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24109
24110 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24111
24112 fi
24113
24114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24115 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24116 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24117   $as_echo_n "(cached) " >&6
24118 else
24119   gcc_cv_as_sparc_ua_pcrel=no
24120   if test x$gcc_cv_as != x; then
24121     $as_echo '.text
24122 foo:
24123         nop
24124 .data
24125 .align 4
24126 .byte 0
24127 .uaword %r_disp32(foo)' > conftest.s
24128     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24129   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130   (eval $ac_try) 2>&5
24131   ac_status=$?
24132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133   test $ac_status = 0; }; }
24134     then
24135         if test x$gcc_cv_ld != x \
24136        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24137          gcc_cv_as_sparc_ua_pcrel=yes
24138        fi
24139        rm -f conftest
24140     else
24141       echo "configure: failed program was" >&5
24142       cat conftest.s >&5
24143     fi
24144     rm -f conftest.o conftest.s
24145   fi
24146 fi
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24148 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24149 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24150
24151 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24152
24153
24154       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24155 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24156 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24157   $as_echo_n "(cached) " >&6
24158 else
24159   gcc_cv_as_sparc_ua_pcrel_hidden=no
24160   if test x$gcc_cv_as != x; then
24161     $as_echo '.data
24162 .align 4
24163 .byte 0x31
24164 .uaword %r_disp32(foo)
24165 .byte 0x32, 0x33, 0x34
24166 .global foo
24167 .hidden foo
24168 foo:
24169 .skip 4' > conftest.s
24170     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24171   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24172   (eval $ac_try) 2>&5
24173   ac_status=$?
24174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24175   test $ac_status = 0; }; }
24176     then
24177         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24178          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24179          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24180             | grep ' 31000000 07323334' > /dev/null 2>&1; then
24181             if $gcc_cv_objdump -R conftest 2> /dev/null \
24182                | grep 'DISP32' > /dev/null 2>&1; then
24183                 :
24184             else
24185                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24186             fi
24187          fi
24188          rm -f conftest
24189     else
24190       echo "configure: failed program was" >&5
24191       cat conftest.s >&5
24192     fi
24193     rm -f conftest.o conftest.s
24194   fi
24195 fi
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24197 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24198 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24199
24200 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24201
24202 fi
24203
24204 fi # unaligned pcrel relocs
24205
24206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24207 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24208 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24209   $as_echo_n "(cached) " >&6
24210 else
24211   gcc_cv_as_sparc_offsetable_lo10=no
24212   if test x$gcc_cv_as != x; then
24213     $as_echo '.text
24214         or %g1, %lo(ab) + 12, %g1
24215         or %g1, %lo(ab + 12), %g1' > conftest.s
24216     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24217   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24218   (eval $ac_try) 2>&5
24219   ac_status=$?
24220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24221   test $ac_status = 0; }; }
24222     then
24223         if test x$gcc_cv_objdump != x \
24224        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24225           | grep ' 82106000 82106000' > /dev/null 2>&1; then
24226          gcc_cv_as_sparc_offsetable_lo10=yes
24227        fi
24228     else
24229       echo "configure: failed program was" >&5
24230       cat conftest.s >&5
24231     fi
24232     rm -f conftest.o conftest.s
24233   fi
24234 fi
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24236 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24237 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24238
24239 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24240
24241 fi
24242
24243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24244 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24245 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24246   $as_echo_n "(cached) " >&6
24247 else
24248   gcc_cv_as_sparc_fmaf=no
24249   if test x$gcc_cv_as != x; then
24250     $as_echo '.text
24251        .register %g2, #scratch
24252        .register %g3, #scratch
24253        .align 4
24254        fmaddd %f0, %f2, %f4, %f6
24255        addxccc %g1, %g2, %g3
24256        fsrl32 %f2, %f4, %f8
24257        fnaddd %f10, %f12, %f14' > conftest.s
24258     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24259   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24260   (eval $ac_try) 2>&5
24261   ac_status=$?
24262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24263   test $ac_status = 0; }; }
24264     then
24265         gcc_cv_as_sparc_fmaf=yes
24266     else
24267       echo "configure: failed program was" >&5
24268       cat conftest.s >&5
24269     fi
24270     rm -f conftest.o conftest.s
24271   fi
24272 fi
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24274 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24275 if test $gcc_cv_as_sparc_fmaf = yes; then
24276
24277 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24278
24279 fi
24280     ;;
24281
24282   i[34567]86-*-* | x86_64-*-*)
24283     case $target_os in
24284       cygwin*)
24285         # Full C++ conformance when using a shared libstdc++-v3 requires some
24286         # support from the Cygwin DLL, which in more recent versions exports
24287         # wrappers to aid in interposing and redirecting operators new, delete,
24288         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24289         # are configuring for a version of Cygwin that exports the wrappers.
24290         if test x$host = x$target; then
24291           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24292 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24293   gcc_ac_cygwin_dll_wrappers=yes
24294 else
24295   gcc_ac_cygwin_dll_wrappers=no
24296 fi
24297
24298         else
24299           # Can't check presence of libc functions during cross-compile, so
24300           # we just have to assume we're building for an up-to-date target.
24301           gcc_ac_cygwin_dll_wrappers=yes
24302         fi
24303
24304 cat >>confdefs.h <<_ACEOF
24305 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24306 _ACEOF
24307
24308     esac
24309     case $target_os in
24310       cygwin* | pe | mingw32*)
24311         # Recent binutils allows the three-operand form of ".comm" on PE.  This
24312         # definition is used unconditionally to initialise the default state of
24313         # the target option variable that governs usage of the feature.
24314         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24315 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24316 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24317   $as_echo_n "(cached) " >&6
24318 else
24319   gcc_cv_as_comm_has_align=no
24320     if test $in_tree_gas = yes; then
24321     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24322   then gcc_cv_as_comm_has_align=yes
24323 fi
24324   elif test x$gcc_cv_as != x; then
24325     $as_echo '.comm foo,1,32' > conftest.s
24326     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24327   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24328   (eval $ac_try) 2>&5
24329   ac_status=$?
24330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331   test $ac_status = 0; }; }
24332     then
24333         gcc_cv_as_comm_has_align=yes
24334     else
24335       echo "configure: failed program was" >&5
24336       cat conftest.s >&5
24337     fi
24338     rm -f conftest.o conftest.s
24339   fi
24340 fi
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24342 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24343
24344
24345 cat >>confdefs.h <<_ACEOF
24346 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24347 _ACEOF
24348
24349         # Used for DWARF 2 in PE
24350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24351 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24352 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24353   $as_echo_n "(cached) " >&6
24354 else
24355   gcc_cv_as_ix86_pe_secrel32=no
24356     if test $in_tree_gas = yes; then
24357     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24358   then gcc_cv_as_ix86_pe_secrel32=yes
24359 fi
24360   elif test x$gcc_cv_as != x; then
24361     $as_echo '.text
24362 foo:    nop
24363 .data
24364         .secrel32 foo' > conftest.s
24365     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24366   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24367   (eval $ac_try) 2>&5
24368   ac_status=$?
24369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24370   test $ac_status = 0; }; }
24371     then
24372         if test x$gcc_cv_ld != x \
24373            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24374              gcc_cv_as_ix86_pe_secrel32=yes
24375            fi
24376            rm -f conftest
24377     else
24378       echo "configure: failed program was" >&5
24379       cat conftest.s >&5
24380     fi
24381     rm -f conftest.o conftest.s
24382   fi
24383 fi
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24385 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24386 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24387
24388 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24389
24390 fi
24391         # Test if the assembler supports the extended form of the .section
24392         # directive that specifies section alignment.  LTO support uses this,
24393         # but normally only after installation, so we warn but don't fail the
24394         # configure if LTO is enabled but the assembler does not support it.
24395         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24396 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24397 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24398   $as_echo_n "(cached) " >&6
24399 else
24400   gcc_cv_as_section_has_align=no
24401     if test $in_tree_gas = yes; then
24402     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24403   then gcc_cv_as_section_has_align=yes
24404 fi
24405   elif test x$gcc_cv_as != x; then
24406     $as_echo '.section lto_test,"dr0"' > conftest.s
24407     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24408   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24409   (eval $ac_try) 2>&5
24410   ac_status=$?
24411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24412   test $ac_status = 0; }; }
24413     then
24414         gcc_cv_as_section_has_align=yes
24415     else
24416       echo "configure: failed program was" >&5
24417       cat conftest.s >&5
24418     fi
24419     rm -f conftest.o conftest.s
24420   fi
24421 fi
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24423 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24424
24425         if test x$gcc_cv_as_section_has_align != xyes; then
24426           case ",$enable_languages," in
24427             *,lto,*)
24428               { $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
24429 $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;}
24430               ;;
24431           esac
24432         fi
24433         # Test if the assembler supports the section flag 'e' for specifying
24434         # an excluded section.
24435         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24436 $as_echo_n "checking assembler for .section with e... " >&6; }
24437 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24438   $as_echo_n "(cached) " >&6
24439 else
24440   gcc_cv_as_section_has_e=no
24441     if test $in_tree_gas = yes; then
24442     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24443   then gcc_cv_as_section_has_e=yes
24444 fi
24445   elif test x$gcc_cv_as != x; then
24446     $as_echo '.section foo1,"e"
24447 .byte 0,0,0,0' > conftest.s
24448     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24449   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24450   (eval $ac_try) 2>&5
24451   ac_status=$?
24452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24453   test $ac_status = 0; }; }
24454     then
24455         gcc_cv_as_section_has_e=yes
24456     else
24457       echo "configure: failed program was" >&5
24458       cat conftest.s >&5
24459     fi
24460     rm -f conftest.o conftest.s
24461   fi
24462 fi
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24464 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24465
24466
24467 cat >>confdefs.h <<_ACEOF
24468 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24469 _ACEOF
24470
24471         ;;
24472     esac
24473
24474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24475 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24476 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24477   $as_echo_n "(cached) " >&6
24478 else
24479   gcc_cv_as_ix86_filds=no
24480   if test x$gcc_cv_as != x; then
24481     $as_echo 'filds mem; fists mem' > conftest.s
24482     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24483   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24484   (eval $ac_try) 2>&5
24485   ac_status=$?
24486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24487   test $ac_status = 0; }; }
24488     then
24489         gcc_cv_as_ix86_filds=yes
24490     else
24491       echo "configure: failed program was" >&5
24492       cat conftest.s >&5
24493     fi
24494     rm -f conftest.o conftest.s
24495   fi
24496 fi
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24498 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24499 if test $gcc_cv_as_ix86_filds = yes; then
24500
24501 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24502
24503 fi
24504
24505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24506 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24507 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24508   $as_echo_n "(cached) " >&6
24509 else
24510   gcc_cv_as_ix86_fildq=no
24511   if test x$gcc_cv_as != x; then
24512     $as_echo 'fildq mem; fistpq mem' > conftest.s
24513     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24514   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24515   (eval $ac_try) 2>&5
24516   ac_status=$?
24517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24518   test $ac_status = 0; }; }
24519     then
24520         gcc_cv_as_ix86_fildq=yes
24521     else
24522       echo "configure: failed program was" >&5
24523       cat conftest.s >&5
24524     fi
24525     rm -f conftest.o conftest.s
24526   fi
24527 fi
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24529 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24530 if test $gcc_cv_as_ix86_fildq = yes; then
24531
24532 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24533
24534 fi
24535
24536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24537 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24538 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24539   $as_echo_n "(cached) " >&6
24540 else
24541   gcc_cv_as_ix86_cmov_sun_syntax=no
24542   if test x$gcc_cv_as != x; then
24543     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24544     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24545   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24546   (eval $ac_try) 2>&5
24547   ac_status=$?
24548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24549   test $ac_status = 0; }; }
24550     then
24551         gcc_cv_as_ix86_cmov_sun_syntax=yes
24552     else
24553       echo "configure: failed program was" >&5
24554       cat conftest.s >&5
24555     fi
24556     rm -f conftest.o conftest.s
24557   fi
24558 fi
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24560 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24561 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24562
24563 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24564
24565 fi
24566
24567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24568 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24569 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24570   $as_echo_n "(cached) " >&6
24571 else
24572   gcc_cv_as_ix86_ffreep=no
24573   if test x$gcc_cv_as != x; then
24574     $as_echo 'ffreep %st(1)' > conftest.s
24575     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24576   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24577   (eval $ac_try) 2>&5
24578   ac_status=$?
24579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24580   test $ac_status = 0; }; }
24581     then
24582         gcc_cv_as_ix86_ffreep=yes
24583     else
24584       echo "configure: failed program was" >&5
24585       cat conftest.s >&5
24586     fi
24587     rm -f conftest.o conftest.s
24588   fi
24589 fi
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24591 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24592 if test $gcc_cv_as_ix86_ffreep = yes; then
24593
24594 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24595
24596 fi
24597
24598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24599 $as_echo_n "checking assembler for .quad directive... " >&6; }
24600 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24601   $as_echo_n "(cached) " >&6
24602 else
24603   gcc_cv_as_ix86_quad=no
24604   if test x$gcc_cv_as != x; then
24605     $as_echo '.quad 0' > conftest.s
24606     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24607   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24608   (eval $ac_try) 2>&5
24609   ac_status=$?
24610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24611   test $ac_status = 0; }; }
24612     then
24613         gcc_cv_as_ix86_quad=yes
24614     else
24615       echo "configure: failed program was" >&5
24616       cat conftest.s >&5
24617     fi
24618     rm -f conftest.o conftest.s
24619   fi
24620 fi
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24622 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24623 if test $gcc_cv_as_ix86_quad = yes; then
24624
24625 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24626
24627 fi
24628
24629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24630 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24631 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24632   $as_echo_n "(cached) " >&6
24633 else
24634   gcc_cv_as_ix86_sahf=no
24635   if test x$gcc_cv_as != x; then
24636     $as_echo '.code64
24637        sahf' > conftest.s
24638     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24639   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24640   (eval $ac_try) 2>&5
24641   ac_status=$?
24642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24643   test $ac_status = 0; }; }
24644     then
24645         gcc_cv_as_ix86_sahf=yes
24646     else
24647       echo "configure: failed program was" >&5
24648       cat conftest.s >&5
24649     fi
24650     rm -f conftest.o conftest.s
24651   fi
24652 fi
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24654 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24655 if test $gcc_cv_as_ix86_sahf = yes; then
24656
24657 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24658
24659 fi
24660
24661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24662 $as_echo_n "checking assembler for swap suffix... " >&6; }
24663 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24664   $as_echo_n "(cached) " >&6
24665 else
24666   gcc_cv_as_ix86_swap=no
24667   if test x$gcc_cv_as != x; then
24668     $as_echo 'movl.s %esp, %ebp' > conftest.s
24669     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24670   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24671   (eval $ac_try) 2>&5
24672   ac_status=$?
24673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24674   test $ac_status = 0; }; }
24675     then
24676         gcc_cv_as_ix86_swap=yes
24677     else
24678       echo "configure: failed program was" >&5
24679       cat conftest.s >&5
24680     fi
24681     rm -f conftest.o conftest.s
24682   fi
24683 fi
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24685 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24686 if test $gcc_cv_as_ix86_swap = yes; then
24687
24688 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24689
24690 fi
24691
24692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24693 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24694 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24695   $as_echo_n "(cached) " >&6
24696 else
24697   gcc_cv_as_ix86_diff_sect_delta=no
24698   if test x$gcc_cv_as != x; then
24699     $as_echo '.section .rodata
24700 .L1:
24701         .long .L2-.L1
24702         .long .L3-.L1
24703         .text
24704 .L3:    nop
24705 .L2:    nop' > conftest.s
24706     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24707   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24708   (eval $ac_try) 2>&5
24709   ac_status=$?
24710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24711   test $ac_status = 0; }; }
24712     then
24713         gcc_cv_as_ix86_diff_sect_delta=yes
24714     else
24715       echo "configure: failed program was" >&5
24716       cat conftest.s >&5
24717     fi
24718     rm -f conftest.o conftest.s
24719   fi
24720 fi
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24722 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24723 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24724
24725 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24726
24727 fi
24728
24729     # These two are used unconditionally by i386.[ch]; it is to be defined
24730     # to 1 if the feature is present, 0 otherwise.
24731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24732 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24733 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24734   $as_echo_n "(cached) " >&6
24735 else
24736   gcc_cv_as_ix86_gotoff_in_data=no
24737     if test $in_tree_gas = yes; then
24738     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24739   then gcc_cv_as_ix86_gotoff_in_data=yes
24740 fi
24741   elif test x$gcc_cv_as != x; then
24742     $as_echo '  .text
24743 .L0:
24744         nop
24745         .data
24746         .long .L0@GOTOFF' > conftest.s
24747     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24748   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749   (eval $ac_try) 2>&5
24750   ac_status=$?
24751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752   test $ac_status = 0; }; }
24753     then
24754         gcc_cv_as_ix86_gotoff_in_data=yes
24755     else
24756       echo "configure: failed program was" >&5
24757       cat conftest.s >&5
24758     fi
24759     rm -f conftest.o conftest.s
24760   fi
24761 fi
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24763 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24764
24765
24766 cat >>confdefs.h <<_ACEOF
24767 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24768 _ACEOF
24769
24770
24771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24772 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24773 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24774   $as_echo_n "(cached) " >&6
24775 else
24776   gcc_cv_as_ix86_rep_lock_prefix=no
24777   if test x$gcc_cv_as != x; then
24778     $as_echo 'rep movsl
24779          lock addl %edi, (%eax,%esi)
24780          lock orl $0, (%esp)' > conftest.s
24781     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24782   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24783   (eval $ac_try) 2>&5
24784   ac_status=$?
24785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24786   test $ac_status = 0; }; }
24787     then
24788         gcc_cv_as_ix86_rep_lock_prefix=yes
24789     else
24790       echo "configure: failed program was" >&5
24791       cat conftest.s >&5
24792     fi
24793     rm -f conftest.o conftest.s
24794   fi
24795 fi
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24797 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24798 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24799
24800 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24801
24802 fi
24803
24804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24805 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24806 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24807   $as_echo_n "(cached) " >&6
24808 else
24809   gcc_cv_as_ix86_tlsgdplt=no
24810   if test x$gcc_cv_as != x; then
24811     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24812     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24813   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24814   (eval $ac_try) 2>&5
24815   ac_status=$?
24816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24817   test $ac_status = 0; }; }
24818     then
24819         gcc_cv_as_ix86_tlsgdplt=yes
24820     else
24821       echo "configure: failed program was" >&5
24822       cat conftest.s >&5
24823     fi
24824     rm -f conftest.o conftest.s
24825   fi
24826 fi
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24828 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24829 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24830
24831 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24832
24833 fi
24834
24835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24836 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24837 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24838   $as_echo_n "(cached) " >&6
24839 else
24840   gcc_cv_as_ix86_tlsldmplt=no
24841   if test x$gcc_cv_as != x; then
24842     $as_echo 'call    tls_ld@tlsldmplt' > conftest.s
24843     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24844   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24845   (eval $ac_try) 2>&5
24846   ac_status=$?
24847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24848   test $ac_status = 0; }; }
24849     then
24850         gcc_cv_as_ix86_tlsldmplt=yes
24851     else
24852       echo "configure: failed program was" >&5
24853       cat conftest.s >&5
24854     fi
24855     rm -f conftest.o conftest.s
24856   fi
24857 fi
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24859 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24860 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24861
24862 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24863
24864 fi
24865
24866     ;;
24867
24868   ia64*-*-*)
24869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24870 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24871 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24872   $as_echo_n "(cached) " >&6
24873 else
24874   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24875     if test $in_tree_gas = yes; then
24876     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24877   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24878 fi
24879   elif test x$gcc_cv_as != x; then
24880     $as_echo '  .text
24881         addl r15 = @ltoffx(x#), gp
24882         ;;
24883         ld8.mov r16 = [r15], x#' > conftest.s
24884     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24885   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886   (eval $ac_try) 2>&5
24887   ac_status=$?
24888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889   test $ac_status = 0; }; }
24890     then
24891         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24892     else
24893       echo "configure: failed program was" >&5
24894       cat conftest.s >&5
24895     fi
24896     rm -f conftest.o conftest.s
24897   fi
24898 fi
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24900 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24901 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24902
24903 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24904
24905 fi
24906
24907     ;;
24908
24909   powerpc*-*-*)
24910     case $target in
24911       *-*-aix*) conftest_s='    .machine "pwr5"
24912         .csect .text[PR]
24913         mfcr 3,128';;
24914       *-*-darwin*)
24915         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24916 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24917 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24918   $as_echo_n "(cached) " >&6
24919 else
24920   gcc_cv_as_machine_directive=no
24921   if test x$gcc_cv_as != x; then
24922     $as_echo '  .machine ppc7400' > conftest.s
24923     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24924   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24925   (eval $ac_try) 2>&5
24926   ac_status=$?
24927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24928   test $ac_status = 0; }; }
24929     then
24930         gcc_cv_as_machine_directive=yes
24931     else
24932       echo "configure: failed program was" >&5
24933       cat conftest.s >&5
24934     fi
24935     rm -f conftest.o conftest.s
24936   fi
24937 fi
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24939 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24940
24941         if test x$gcc_cv_as_machine_directive != xyes; then
24942           echo "*** This target requires an assembler supporting \".machine\"" >&2
24943           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24944           test x$build = x$target && exit 1
24945         fi
24946         conftest_s='    .text
24947         mfcr r3,128';;
24948       *) conftest_s='   .machine power4
24949         .text
24950         mfcr 3,128';;
24951     esac
24952
24953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24954 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24955 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24956   $as_echo_n "(cached) " >&6
24957 else
24958   gcc_cv_as_powerpc_mfcrf=no
24959     if test $in_tree_gas = yes; then
24960     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24961   then gcc_cv_as_powerpc_mfcrf=yes
24962 fi
24963   elif test x$gcc_cv_as != x; then
24964     $as_echo "$conftest_s" > conftest.s
24965     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24966   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24967   (eval $ac_try) 2>&5
24968   ac_status=$?
24969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24970   test $ac_status = 0; }; }
24971     then
24972         gcc_cv_as_powerpc_mfcrf=yes
24973     else
24974       echo "configure: failed program was" >&5
24975       cat conftest.s >&5
24976     fi
24977     rm -f conftest.o conftest.s
24978   fi
24979 fi
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24981 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24982 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24983
24984 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24985
24986 fi
24987
24988     case $target in
24989       *-*-aix*) conftest_s='    .machine "pwr5"
24990         .csect .text[PR]
24991         popcntb 3,3';;
24992       *) conftest_s='   .machine power5
24993         .text
24994         popcntb 3,3';;
24995     esac
24996
24997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24998 $as_echo_n "checking assembler for popcntb support... " >&6; }
24999 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25000   $as_echo_n "(cached) " >&6
25001 else
25002   gcc_cv_as_powerpc_popcntb=no
25003     if test $in_tree_gas = yes; then
25004     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25005   then gcc_cv_as_powerpc_popcntb=yes
25006 fi
25007   elif test x$gcc_cv_as != x; then
25008     $as_echo "$conftest_s" > conftest.s
25009     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25010   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25011   (eval $ac_try) 2>&5
25012   ac_status=$?
25013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25014   test $ac_status = 0; }; }
25015     then
25016         gcc_cv_as_powerpc_popcntb=yes
25017     else
25018       echo "configure: failed program was" >&5
25019       cat conftest.s >&5
25020     fi
25021     rm -f conftest.o conftest.s
25022   fi
25023 fi
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25025 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25026 if test $gcc_cv_as_powerpc_popcntb = yes; then
25027
25028 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25029
25030 fi
25031
25032     case $target in
25033       *-*-aix*) conftest_s='    .machine "pwr5x"
25034         .csect .text[PR]
25035         frin 1,1';;
25036       *) conftest_s='   .machine power5
25037         .text
25038         frin 1,1';;
25039     esac
25040
25041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25042 $as_echo_n "checking assembler for fp round support... " >&6; }
25043 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25044   $as_echo_n "(cached) " >&6
25045 else
25046   gcc_cv_as_powerpc_fprnd=no
25047     if test $in_tree_gas = yes; then
25048     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25049   then gcc_cv_as_powerpc_fprnd=yes
25050 fi
25051   elif test x$gcc_cv_as != x; then
25052     $as_echo "$conftest_s" > conftest.s
25053     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25054   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25055   (eval $ac_try) 2>&5
25056   ac_status=$?
25057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25058   test $ac_status = 0; }; }
25059     then
25060         gcc_cv_as_powerpc_fprnd=yes
25061     else
25062       echo "configure: failed program was" >&5
25063       cat conftest.s >&5
25064     fi
25065     rm -f conftest.o conftest.s
25066   fi
25067 fi
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25069 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25070 if test $gcc_cv_as_powerpc_fprnd = yes; then
25071
25072 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25073
25074 fi
25075
25076     case $target in
25077       *-*-aix*) conftest_s='    .machine "pwr6"
25078         .csect .text[PR]
25079         mffgpr 1,3';;
25080       *) conftest_s='   .machine power6
25081         .text
25082         mffgpr 1,3';;
25083     esac
25084
25085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25086 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25087 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25088   $as_echo_n "(cached) " >&6
25089 else
25090   gcc_cv_as_powerpc_mfpgpr=no
25091     if test $in_tree_gas = yes; then
25092     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25093   then gcc_cv_as_powerpc_mfpgpr=yes
25094 fi
25095   elif test x$gcc_cv_as != x; then
25096     $as_echo "$conftest_s" > conftest.s
25097     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25098   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099   (eval $ac_try) 2>&5
25100   ac_status=$?
25101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102   test $ac_status = 0; }; }
25103     then
25104         gcc_cv_as_powerpc_mfpgpr=yes
25105     else
25106       echo "configure: failed program was" >&5
25107       cat conftest.s >&5
25108     fi
25109     rm -f conftest.o conftest.s
25110   fi
25111 fi
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25113 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25114 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25115
25116 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25117
25118 fi
25119
25120     case $target in
25121       *-*-aix*) conftest_s='    .csect .text[PR]
25122 LCF..0:
25123         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25124       *-*-darwin*)
25125         conftest_s='    .text
25126 LCF0:
25127         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25128       *) conftest_s='   .text
25129 .LCF0:
25130         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25131     esac
25132
25133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25134 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25135 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25136   $as_echo_n "(cached) " >&6
25137 else
25138   gcc_cv_as_powerpc_rel16=no
25139     if test $in_tree_gas = yes; then
25140     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25141   then gcc_cv_as_powerpc_rel16=yes
25142 fi
25143   elif test x$gcc_cv_as != x; then
25144     $as_echo "$conftest_s" > conftest.s
25145     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25146   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25147   (eval $ac_try) 2>&5
25148   ac_status=$?
25149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25150   test $ac_status = 0; }; }
25151     then
25152         gcc_cv_as_powerpc_rel16=yes
25153     else
25154       echo "configure: failed program was" >&5
25155       cat conftest.s >&5
25156     fi
25157     rm -f conftest.o conftest.s
25158   fi
25159 fi
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25161 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25162 if test $gcc_cv_as_powerpc_rel16 = yes; then
25163
25164 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25165
25166 fi
25167
25168     case $target in
25169       *-*-aix*) conftest_s='    .machine "pwr6"
25170         .csect .text[PR]
25171         cmpb 3,4,5';;
25172       *) conftest_s='   .machine power6
25173         .text
25174         cmpb 3,4,5';;
25175     esac
25176
25177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25178 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25179 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25180   $as_echo_n "(cached) " >&6
25181 else
25182   gcc_cv_as_powerpc_cmpb=no
25183     if test $in_tree_gas = yes; then
25184     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25185   then gcc_cv_as_powerpc_cmpb=yes
25186 fi
25187   elif test x$gcc_cv_as != x; then
25188     $as_echo "$conftest_s" > conftest.s
25189     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25190   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25191   (eval $ac_try) 2>&5
25192   ac_status=$?
25193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25194   test $ac_status = 0; }; }
25195     then
25196         gcc_cv_as_powerpc_cmpb=yes
25197     else
25198       echo "configure: failed program was" >&5
25199       cat conftest.s >&5
25200     fi
25201     rm -f conftest.o conftest.s
25202   fi
25203 fi
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25205 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25206 if test $gcc_cv_as_powerpc_cmpb = yes; then
25207
25208 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25209
25210 fi
25211
25212     case $target in
25213       *-*-aix*) conftest_s='    .machine "pwr6"
25214         .csect .text[PR]
25215         dadd 1,2,3';;
25216       *) conftest_s='   .machine power6
25217         .text
25218         dadd 1,2,3';;
25219     esac
25220
25221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25222 $as_echo_n "checking assembler for decimal float support... " >&6; }
25223 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25224   $as_echo_n "(cached) " >&6
25225 else
25226   gcc_cv_as_powerpc_dfp=no
25227     if test $in_tree_gas = yes; then
25228     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25229   then gcc_cv_as_powerpc_dfp=yes
25230 fi
25231   elif test x$gcc_cv_as != x; then
25232     $as_echo "$conftest_s" > conftest.s
25233     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25234   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25235   (eval $ac_try) 2>&5
25236   ac_status=$?
25237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25238   test $ac_status = 0; }; }
25239     then
25240         gcc_cv_as_powerpc_dfp=yes
25241     else
25242       echo "configure: failed program was" >&5
25243       cat conftest.s >&5
25244     fi
25245     rm -f conftest.o conftest.s
25246   fi
25247 fi
25248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25249 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25250 if test $gcc_cv_as_powerpc_dfp = yes; then
25251
25252 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25253
25254 fi
25255
25256     case $target in
25257       *-*-aix*) conftest_s='    .machine "pwr7"
25258         .csect .text[PR]
25259         lxvd2x 1,2,3';;
25260       *) conftest_s='   .machine power7
25261         .text
25262         lxvd2x 1,2,3';;
25263     esac
25264
25265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25266 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25267 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25268   $as_echo_n "(cached) " >&6
25269 else
25270   gcc_cv_as_powerpc_vsx=no
25271     if test $in_tree_gas = yes; then
25272     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25273   then gcc_cv_as_powerpc_vsx=yes
25274 fi
25275   elif test x$gcc_cv_as != x; then
25276     $as_echo "$conftest_s" > conftest.s
25277     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25278   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25279   (eval $ac_try) 2>&5
25280   ac_status=$?
25281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25282   test $ac_status = 0; }; }
25283     then
25284         gcc_cv_as_powerpc_vsx=yes
25285     else
25286       echo "configure: failed program was" >&5
25287       cat conftest.s >&5
25288     fi
25289     rm -f conftest.o conftest.s
25290   fi
25291 fi
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25293 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25294 if test $gcc_cv_as_powerpc_vsx = yes; then
25295
25296 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25297
25298 fi
25299
25300     case $target in
25301       *-*-aix*) conftest_s='    .machine "pwr7"
25302         .csect .text[PR]
25303         popcntd 3,3';;
25304       *) conftest_s='   .machine power7
25305         .text
25306         popcntd 3,3';;
25307     esac
25308
25309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25310 $as_echo_n "checking assembler for popcntd support... " >&6; }
25311 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25312   $as_echo_n "(cached) " >&6
25313 else
25314   gcc_cv_as_powerpc_popcntd=no
25315     if test $in_tree_gas = yes; then
25316     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25317   then gcc_cv_as_powerpc_popcntd=yes
25318 fi
25319   elif test x$gcc_cv_as != x; then
25320     $as_echo "$conftest_s" > conftest.s
25321     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25322   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25323   (eval $ac_try) 2>&5
25324   ac_status=$?
25325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25326   test $ac_status = 0; }; }
25327     then
25328         gcc_cv_as_powerpc_popcntd=yes
25329     else
25330       echo "configure: failed program was" >&5
25331       cat conftest.s >&5
25332     fi
25333     rm -f conftest.o conftest.s
25334   fi
25335 fi
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25337 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25338 if test $gcc_cv_as_powerpc_popcntd = yes; then
25339
25340 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25341
25342 fi
25343
25344     case $target in
25345       *-*-aix*) conftest_s='    .csect .text[PR]
25346         lwsync';;
25347       *) conftest_s='   .text
25348         lwsync';;
25349     esac
25350
25351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25352 $as_echo_n "checking assembler for lwsync support... " >&6; }
25353 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25354   $as_echo_n "(cached) " >&6
25355 else
25356   gcc_cv_as_powerpc_lwsync=no
25357     if test $in_tree_gas = yes; then
25358     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25359   then gcc_cv_as_powerpc_lwsync=yes
25360 fi
25361   elif test x$gcc_cv_as != x; then
25362     $as_echo "$conftest_s" > conftest.s
25363     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25364   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25365   (eval $ac_try) 2>&5
25366   ac_status=$?
25367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25368   test $ac_status = 0; }; }
25369     then
25370         gcc_cv_as_powerpc_lwsync=yes
25371     else
25372       echo "configure: failed program was" >&5
25373       cat conftest.s >&5
25374     fi
25375     rm -f conftest.o conftest.s
25376   fi
25377 fi
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25379 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25380 if test $gcc_cv_as_powerpc_lwsync = yes; then
25381
25382 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25383
25384 fi
25385
25386     case $target in
25387       *-*-aix*) conftest_s='    .machine "476"
25388         .csect .text[PR]
25389         dci 0';;
25390       *) conftest_s='   .machine "476"
25391         .text
25392         dci 0';;
25393     esac
25394
25395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25396 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25397 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25398   $as_echo_n "(cached) " >&6
25399 else
25400   gcc_cv_as_powerpc_dci=no
25401     if test $in_tree_gas = yes; then
25402     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25403   then gcc_cv_as_powerpc_dci=yes
25404 fi
25405   elif test x$gcc_cv_as != x; then
25406     $as_echo "$conftest_s" > conftest.s
25407     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25408   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25409   (eval $ac_try) 2>&5
25410   ac_status=$?
25411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25412   test $ac_status = 0; }; }
25413     then
25414         gcc_cv_as_powerpc_dci=yes
25415     else
25416       echo "configure: failed program was" >&5
25417       cat conftest.s >&5
25418     fi
25419     rm -f conftest.o conftest.s
25420   fi
25421 fi
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25423 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25424 if test $gcc_cv_as_powerpc_dci = yes; then
25425
25426 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25427
25428 fi
25429
25430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25431 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25432 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25433   $as_echo_n "(cached) " >&6
25434 else
25435   gcc_cv_as_powerpc_gnu_attribute=no
25436     if test $in_tree_gas = yes; then
25437     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25438   then gcc_cv_as_powerpc_gnu_attribute=yes
25439 fi
25440   elif test x$gcc_cv_as != x; then
25441     $as_echo '.gnu_attribute 4,1' > conftest.s
25442     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25443   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25444   (eval $ac_try) 2>&5
25445   ac_status=$?
25446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25447   test $ac_status = 0; }; }
25448     then
25449         gcc_cv_as_powerpc_gnu_attribute=yes
25450     else
25451       echo "configure: failed program was" >&5
25452       cat conftest.s >&5
25453     fi
25454     rm -f conftest.o conftest.s
25455   fi
25456 fi
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25458 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25459 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25460
25461 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25462
25463 fi
25464
25465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25466 $as_echo_n "checking assembler for tls marker support... " >&6; }
25467 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25468   $as_echo_n "(cached) " >&6
25469 else
25470   gcc_cv_as_powerpc_tls_markers=no
25471     if test $in_tree_gas = yes; then
25472     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25473   then gcc_cv_as_powerpc_tls_markers=yes
25474 fi
25475   elif test x$gcc_cv_as != x; then
25476     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25477     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25478   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25479   (eval $ac_try) 2>&5
25480   ac_status=$?
25481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25482   test $ac_status = 0; }; }
25483     then
25484         gcc_cv_as_powerpc_tls_markers=yes
25485     else
25486       echo "configure: failed program was" >&5
25487       cat conftest.s >&5
25488     fi
25489     rm -f conftest.o conftest.s
25490   fi
25491 fi
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25493 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25494 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25495
25496 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25497
25498 fi
25499
25500     case $target in
25501       *-*-aix*)
25502         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25503 $as_echo_n "checking assembler for .ref support... " >&6; }
25504 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25505   $as_echo_n "(cached) " >&6
25506 else
25507   gcc_cv_as_aix_ref=no
25508     if test $in_tree_gas = yes; then
25509     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25510   then :
25511 fi
25512   elif test x$gcc_cv_as != x; then
25513     $as_echo '  .csect stuff[rw]
25514              stuff:
25515                 .long 1
25516                 .extern sym
25517                 .ref sym
25518           ' > conftest.s
25519     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25520   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25521   (eval $ac_try) 2>&5
25522   ac_status=$?
25523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25524   test $ac_status = 0; }; }
25525     then
25526         gcc_cv_as_aix_ref=yes
25527     else
25528       echo "configure: failed program was" >&5
25529       cat conftest.s >&5
25530     fi
25531     rm -f conftest.o conftest.s
25532   fi
25533 fi
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25535 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25536 if test $gcc_cv_as_aix_ref = yes; then
25537
25538 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25539
25540 fi
25541         ;;
25542     esac
25543     ;;
25544
25545   mips*-*-*)
25546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25547 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25548 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25549   $as_echo_n "(cached) " >&6
25550 else
25551   gcc_cv_as_mips_explicit_relocs=no
25552     if test $in_tree_gas = yes; then
25553     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25554   then gcc_cv_as_mips_explicit_relocs=yes
25555 fi
25556   elif test x$gcc_cv_as != x; then
25557     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25558     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25559   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25560   (eval $ac_try) 2>&5
25561   ac_status=$?
25562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25563   test $ac_status = 0; }; }
25564     then
25565         gcc_cv_as_mips_explicit_relocs=yes
25566     else
25567       echo "configure: failed program was" >&5
25568       cat conftest.s >&5
25569     fi
25570     rm -f conftest.o conftest.s
25571   fi
25572 fi
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25574 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25575 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25576   if test x$target_cpu_default = x
25577        then target_cpu_default=MASK_EXPLICIT_RELOCS
25578        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25579        fi
25580 fi
25581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25582 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25583 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25584   $as_echo_n "(cached) " >&6
25585 else
25586   gcc_cv_as_mips_no_shared=no
25587     if test $in_tree_gas = yes; then
25588     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25589   then gcc_cv_as_mips_no_shared=yes
25590 fi
25591   elif test x$gcc_cv_as != x; then
25592     $as_echo 'nop' > conftest.s
25593     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25594   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25595   (eval $ac_try) 2>&5
25596   ac_status=$?
25597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25598   test $ac_status = 0; }; }
25599     then
25600         gcc_cv_as_mips_no_shared=yes
25601     else
25602       echo "configure: failed program was" >&5
25603       cat conftest.s >&5
25604     fi
25605     rm -f conftest.o conftest.s
25606   fi
25607 fi
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25609 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25610 if test $gcc_cv_as_mips_no_shared = yes; then
25611
25612 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25613
25614 fi
25615
25616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25617 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25618 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25619   $as_echo_n "(cached) " >&6
25620 else
25621   gcc_cv_as_mips_gnu_attribute=no
25622     if test $in_tree_gas = yes; then
25623     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25624   then gcc_cv_as_mips_gnu_attribute=yes
25625 fi
25626   elif test x$gcc_cv_as != x; then
25627     $as_echo '.gnu_attribute 4,1' > conftest.s
25628     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25629   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25630   (eval $ac_try) 2>&5
25631   ac_status=$?
25632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25633   test $ac_status = 0; }; }
25634     then
25635         gcc_cv_as_mips_gnu_attribute=yes
25636     else
25637       echo "configure: failed program was" >&5
25638       cat conftest.s >&5
25639     fi
25640     rm -f conftest.o conftest.s
25641   fi
25642 fi
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25644 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25645 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25646
25647 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25648
25649 fi
25650
25651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25652 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25653 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25654   $as_echo_n "(cached) " >&6
25655 else
25656   gcc_cv_as_mips_dtprelword=no
25657     if test $in_tree_gas = yes; then
25658     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25659   then gcc_cv_as_mips_dtprelword=yes
25660 fi
25661   elif test x$gcc_cv_as != x; then
25662     $as_echo '.section .tdata,"awT",@progbits
25663 x:
25664         .word 2
25665         .text
25666         .dtprelword x+0x8000' > conftest.s
25667     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25668   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25669   (eval $ac_try) 2>&5
25670   ac_status=$?
25671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25672   test $ac_status = 0; }; }
25673     then
25674         gcc_cv_as_mips_dtprelword=yes
25675     else
25676       echo "configure: failed program was" >&5
25677       cat conftest.s >&5
25678     fi
25679     rm -f conftest.o conftest.s
25680   fi
25681 fi
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25683 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25684 if test $gcc_cv_as_mips_dtprelword = yes; then
25685
25686 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25687
25688 fi
25689
25690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25691 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25692 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25693   $as_echo_n "(cached) " >&6
25694 else
25695   gcc_cv_as_mips_dspr1_mult=no
25696   if test x$gcc_cv_as != x; then
25697     $as_echo '  .set    mips32r2
25698         .set    nodspr2
25699         .set    dsp
25700         madd    $ac3,$4,$5
25701         maddu   $ac3,$4,$5
25702         msub    $ac3,$4,$5
25703         msubu   $ac3,$4,$5
25704         mult    $ac3,$4,$5
25705         multu   $ac3,$4,$5' > 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_mips_dspr1_mult=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_mips_dspr1_mult" >&5
25722 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25723 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25724
25725 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25726
25727 fi
25728
25729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25730 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25731     gcc_cv_as_ld_jalr_reloc=no
25732     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25733       if test $in_tree_ld = yes ; then
25734         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 \
25735            && test $in_tree_ld_is_elf = yes; then
25736           gcc_cv_as_ld_jalr_reloc=yes
25737         fi
25738       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25739         echo '  .ent x' > conftest.s
25740         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25741         echo '  ld $25,%call16(y)($28)' >> conftest.s
25742         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25743         echo '1:        jalr $25' >> conftest.s
25744         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25745         echo '1:        jalr $25' >> conftest.s
25746         echo '  .end x' >> conftest.s
25747         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25748            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25749           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25750              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25751             gcc_cv_as_ld_jalr_reloc=yes
25752           fi
25753         fi
25754         rm -f conftest.*
25755       fi
25756     fi
25757     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25758       if test x$target_cpu_default = x; then
25759         target_cpu_default=MASK_RELAX_PIC_CALLS
25760       else
25761         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25762       fi
25763     fi
25764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25765 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25766
25767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25768 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25769 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25770   $as_echo_n "(cached) " >&6
25771 else
25772   gcc_cv_ld_mips_personality_relaxation=no
25773        if test $in_tree_ld = yes ; then
25774          if test "$gcc_cv_gld_major_version" -eq 2 \
25775                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25776                  -o "$gcc_cv_gld_major_version" -gt 2; then
25777            gcc_cv_ld_mips_personality_relaxation=yes
25778          fi
25779        elif test x$gcc_cv_as != x \
25780                  -a x$gcc_cv_ld != x \
25781                  -a x$gcc_cv_readelf != x ; then
25782          cat > conftest.s <<EOF
25783         .cfi_startproc
25784         .cfi_personality 0x80,indirect_ptr
25785         .ent test
25786 test:
25787         nop
25788         .end test
25789         .cfi_endproc
25790
25791         .section .data,"aw",@progbits
25792 indirect_ptr:
25793         .dc.a personality
25794 EOF
25795          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25796             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25797            if $gcc_cv_readelf -d conftest 2>&1 \
25798               | grep TEXTREL > /dev/null 2>&1; then
25799              :
25800            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25801                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25802              :
25803            else
25804              gcc_cv_ld_mips_personality_relaxation=yes
25805            fi
25806          fi
25807        fi
25808        rm -f conftest.s conftest.o conftest
25809 fi
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25811 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25812     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25813
25814 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25815
25816     fi
25817     ;;
25818 esac
25819
25820 # Mips and HP-UX need the GNU assembler.
25821 # Linux on IA64 might be able to use the Intel assembler.
25822
25823 case "$target" in
25824   mips*-*-* | *-*-hpux* )
25825     if test x$gas_flag = xyes \
25826        || test x"$host" != x"$build" \
25827        || test ! -x "$gcc_cv_as" \
25828        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25829       :
25830     else
25831       echo "*** This configuration requires the GNU assembler" >&2
25832       exit 1
25833     fi
25834     ;;
25835 esac
25836
25837 # ??? Not all targets support dwarf2 debug_line, even within a version
25838 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25839 # info to the output file.  So, as supported targets are added to gas 2.11,
25840 # add some instruction here to (also) show we expect this might work.
25841 # ??? Once 2.11 is released, probably need to add first known working
25842 # version to the per-target configury.
25843 case "$cpu_type" in
25844   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25845   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25846     insn="nop"
25847     ;;
25848   ia64 | s390)
25849     insn="nop 0"
25850     ;;
25851   mmix)
25852     insn="swym 0"
25853     ;;
25854 esac
25855 if test x"$insn" != x; then
25856  conftest_s="\
25857         .file 1 \"conftest.s\"
25858         .loc 1 3 0
25859         $insn"
25860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25861 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25862 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25863   $as_echo_n "(cached) " >&6
25864 else
25865   gcc_cv_as_dwarf2_debug_line=no
25866     if test $in_tree_gas = yes; then
25867     if test $in_tree_gas_is_elf = yes \
25868   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25869   then gcc_cv_as_dwarf2_debug_line=yes
25870 fi
25871   elif test x$gcc_cv_as != x; then
25872     $as_echo "$conftest_s" > conftest.s
25873     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25874   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25875   (eval $ac_try) 2>&5
25876   ac_status=$?
25877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25878   test $ac_status = 0; }; }
25879     then
25880         if test x$gcc_cv_objdump != x \
25881    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25882       | grep debug_line > /dev/null 2>&1; then
25883      gcc_cv_as_dwarf2_debug_line=yes
25884    fi
25885     else
25886       echo "configure: failed program was" >&5
25887       cat conftest.s >&5
25888     fi
25889     rm -f conftest.o conftest.s
25890   fi
25891 fi
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25893 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25894
25895
25896 # The .debug_line file table must be in the exact order that
25897 # we specified the files, since these indices are also used
25898 # by DW_AT_decl_file.  Approximate this test by testing if
25899 # the assembler bitches if the same index is assigned twice.
25900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25901 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25902 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25903   $as_echo_n "(cached) " >&6
25904 else
25905   gcc_cv_as_dwarf2_file_buggy=no
25906   if test x$gcc_cv_as != x; then
25907     $as_echo '  .file 1 "foo.s"
25908         .file 1 "bar.s"' > conftest.s
25909     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25910   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25911   (eval $ac_try) 2>&5
25912   ac_status=$?
25913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25914   test $ac_status = 0; }; }
25915     then
25916         gcc_cv_as_dwarf2_file_buggy=yes
25917     else
25918       echo "configure: failed program was" >&5
25919       cat conftest.s >&5
25920     fi
25921     rm -f conftest.o conftest.s
25922   fi
25923 fi
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25925 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25926
25927
25928  if test $gcc_cv_as_dwarf2_debug_line = yes \
25929  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25930
25931 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25932
25933  fi
25934
25935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25936 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25937 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25938   $as_echo_n "(cached) " >&6
25939 else
25940   gcc_cv_as_gdwarf2_flag=no
25941     if test $in_tree_gas = yes; then
25942     if test $in_tree_gas_is_elf = yes \
25943   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25944   then gcc_cv_as_gdwarf2_flag=yes
25945 fi
25946   elif test x$gcc_cv_as != x; then
25947     $as_echo "$insn" > conftest.s
25948     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25949   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25950   (eval $ac_try) 2>&5
25951   ac_status=$?
25952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25953   test $ac_status = 0; }; }
25954     then
25955         gcc_cv_as_gdwarf2_flag=yes
25956     else
25957       echo "configure: failed program was" >&5
25958       cat conftest.s >&5
25959     fi
25960     rm -f conftest.o conftest.s
25961   fi
25962 fi
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25964 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25965 if test $gcc_cv_as_gdwarf2_flag = yes; then
25966
25967 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25968
25969 fi
25970
25971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25972 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25973 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25974   $as_echo_n "(cached) " >&6
25975 else
25976   gcc_cv_as_gstabs_flag=no
25977     if test $in_tree_gas = yes; then
25978     if test $in_tree_gas_is_elf = yes \
25979   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25980   then gcc_cv_as_gstabs_flag=yes
25981 fi
25982   elif test x$gcc_cv_as != x; then
25983     $as_echo "$insn" > conftest.s
25984     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25985   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25986   (eval $ac_try) 2>&5
25987   ac_status=$?
25988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25989   test $ac_status = 0; }; }
25990     then
25991         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25992    # and warns about it, but still exits successfully.  So check for
25993    # this.
25994    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25995   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25996   (eval $ac_try) 2>&5
25997   ac_status=$?
25998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25999   test $ac_status = 0; }; }
26000    then :
26001    else gcc_cv_as_gstabs_flag=yes
26002    fi
26003     else
26004       echo "configure: failed program was" >&5
26005       cat conftest.s >&5
26006     fi
26007     rm -f conftest.o conftest.s
26008   fi
26009 fi
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26011 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26012 if test $gcc_cv_as_gstabs_flag = yes; then
26013
26014 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26015
26016 fi
26017
26018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26019 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26020 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26021   $as_echo_n "(cached) " >&6
26022 else
26023   gcc_cv_as_debug_prefix_map_flag=no
26024     if test $in_tree_gas = yes; then
26025     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26026   then gcc_cv_as_debug_prefix_map_flag=yes
26027 fi
26028   elif test x$gcc_cv_as != x; then
26029     $as_echo "$insn" > conftest.s
26030     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26031   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26032   (eval $ac_try) 2>&5
26033   ac_status=$?
26034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26035   test $ac_status = 0; }; }
26036     then
26037         gcc_cv_as_debug_prefix_map_flag=yes
26038     else
26039       echo "configure: failed program was" >&5
26040       cat conftest.s >&5
26041     fi
26042     rm -f conftest.o conftest.s
26043   fi
26044 fi
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26046 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26047 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26048
26049 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26050
26051 fi
26052 fi
26053
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26055 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26056 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26057   $as_echo_n "(cached) " >&6
26058 else
26059   gcc_cv_as_lcomm_with_alignment=no
26060   if test x$gcc_cv_as != x; then
26061     $as_echo '.lcomm bar,4,16' > conftest.s
26062     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26063   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26064   (eval $ac_try) 2>&5
26065   ac_status=$?
26066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26067   test $ac_status = 0; }; }
26068     then
26069         gcc_cv_as_lcomm_with_alignment=yes
26070     else
26071       echo "configure: failed program was" >&5
26072       cat conftest.s >&5
26073     fi
26074     rm -f conftest.o conftest.s
26075   fi
26076 fi
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26078 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26079 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26080
26081 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26082
26083 fi
26084
26085 # Check whether --enable-gnu-unique-object was given.
26086 if test "${enable_gnu_unique_object+set}" = set; then :
26087   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26088     yes | no) ;;
26089     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26090 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26091   esac
26092 else
26093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26094 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26095 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26096   $as_echo_n "(cached) " >&6
26097 else
26098   gcc_cv_as_gnu_unique_object=no
26099     if test $in_tree_gas = yes; then
26100     if test $in_tree_gas_is_elf = yes \
26101   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26102   then gcc_cv_as_gnu_unique_object=yes
26103 fi
26104   elif test x$gcc_cv_as != x; then
26105     $as_echo '.type foo, @gnu_unique_object' > conftest.s
26106     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26107   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26108   (eval $ac_try) 2>&5
26109   ac_status=$?
26110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26111   test $ac_status = 0; }; }
26112     then
26113         gcc_cv_as_gnu_unique_object=yes
26114     else
26115       echo "configure: failed program was" >&5
26116       cat conftest.s >&5
26117     fi
26118     rm -f conftest.o conftest.s
26119   fi
26120 fi
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26122 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26123 if test $gcc_cv_as_gnu_unique_object = yes; then
26124   # Also check for ld.so support, i.e. glibc 2.11 or higher.
26125    if test x$host = x$build -a x$host = x$target &&
26126        ldd --version 2>/dev/null &&
26127        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26128       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26129       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26130       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26131       if test "$glibcnum" -ge 2011 ; then
26132         enable_gnu_unique_object=yes
26133       fi
26134     fi
26135 fi
26136 fi
26137
26138 if test x$enable_gnu_unique_object = xyes; then
26139
26140 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26141
26142 fi
26143
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26145 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26146 if test "${gcc_cv_as_line_zero+set}" = set; then :
26147   $as_echo_n "(cached) " >&6
26148 else
26149   gcc_cv_as_line_zero=no
26150   if test $in_tree_gas = yes; then
26151     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26152   then gcc_cv_as_line_zero=yes
26153 fi
26154   elif test "x$gcc_cv_as" != x; then
26155     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26156     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26157   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26158   (eval $ac_try) 2>&5
26159   ac_status=$?
26160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26161   test $ac_status = 0; }; } &&
26162        test "x`cat conftest.out`" = x
26163     then
26164       gcc_cv_as_line_zero=yes
26165     else
26166       echo "configure: failed program was" >&5
26167       cat conftest.s >&5
26168       echo "configure: error output was" >&5
26169       cat conftest.out >&5
26170     fi
26171     rm -f conftest.o conftest.s conftest.out
26172   fi
26173 fi
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26175 $as_echo "$gcc_cv_as_line_zero" >&6; }
26176 if test "x$gcc_cv_as_line_zero" = xyes; then
26177
26178 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26179
26180 fi
26181
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26183 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26184 gcc_cv_ld_eh_frame_hdr=no
26185 if test $in_tree_ld = yes ; then
26186   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 \
26187      && test $in_tree_ld_is_elf = yes; then
26188     gcc_cv_ld_eh_frame_hdr=yes
26189   fi
26190 elif test x$gcc_cv_ld != x; then
26191   if echo "$ld_ver" | grep GNU > /dev/null; then
26192     # Check if linker supports --eh-frame-hdr option
26193     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26194       gcc_cv_ld_eh_frame_hdr=yes
26195     fi
26196   else
26197     case "$target" in
26198       *-*-solaris2*)
26199         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26200         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26201           gcc_cv_ld_eh_frame_hdr=yes
26202         fi
26203         ;;
26204     esac
26205   fi
26206 fi
26207
26208 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26209
26210 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26211
26212 fi
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26214 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26215
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26217 $as_echo_n "checking linker position independent executable support... " >&6; }
26218 gcc_cv_ld_pie=no
26219 if test $in_tree_ld = yes ; then
26220   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26221      && test $in_tree_ld_is_elf = yes; then
26222     gcc_cv_ld_pie=yes
26223   fi
26224 elif test x$gcc_cv_ld != x; then
26225         # Check if linker supports -pie option
26226         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26227                 gcc_cv_ld_pie=yes
26228         fi
26229 fi
26230 if test x"$gcc_cv_ld_pie" = xyes; then
26231
26232 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26233
26234 fi
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26236 $as_echo "$gcc_cv_ld_pie" >&6; }
26237
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26239 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26240 gcc_cv_ld_eh_gc_sections=no
26241 if test $in_tree_ld = yes ; then
26242   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 \
26243      && test $in_tree_ld_is_elf = yes; then
26244     gcc_cv_ld_eh_gc_sections=yes
26245   fi
26246 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26247   cat > conftest.s <<EOF
26248         .section        .text
26249 .globl _start
26250         .type _start, @function
26251 _start:
26252         .long foo
26253         .size _start, .-_start
26254         .section        .text.foo,"ax",@progbits
26255         .type foo, @function
26256 foo:
26257         .long 0
26258         .size foo, .-foo
26259         .section        .gcc_except_table.foo,"a",@progbits
26260 .L0:
26261         .long 0
26262         .section        .eh_frame,"a",@progbits
26263         .long .L0
26264 EOF
26265   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26266     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26267          | grep "gc-sections option ignored" > /dev/null; then
26268       gcc_cv_ld_eh_gc_sections=no
26269     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26270          | grep gcc_except_table > /dev/null; then
26271       gcc_cv_ld_eh_gc_sections=yes
26272       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26273       if test x$gcc_cv_as_comdat_group != xyes; then
26274         gcc_cv_ld_eh_gc_sections=no
26275         cat > conftest.s <<EOF
26276         .section        .text
26277 .globl _start
26278         .type _start, @function
26279 _start:
26280         .long foo
26281         .size _start, .-_start
26282         .section        .gnu.linkonce.t.foo,"ax",@progbits
26283         .type foo, @function
26284 foo:
26285         .long 0
26286         .size foo, .-foo
26287         .section        .gcc_except_table.foo,"a",@progbits
26288 .L0:
26289         .long 0
26290         .section        .eh_frame,"a",@progbits
26291         .long .L0
26292 EOF
26293         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26294           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26295                | grep "gc-sections option ignored" > /dev/null; then
26296             gcc_cv_ld_eh_gc_sections=no
26297           elif $gcc_cv_objdump -h conftest 2> /dev/null \
26298                | grep gcc_except_table > /dev/null; then
26299             gcc_cv_ld_eh_gc_sections=yes
26300           fi
26301         fi
26302       fi
26303     fi
26304   fi
26305   rm -f conftest.s conftest.o conftest
26306 fi
26307 case "$target" in
26308   hppa*-*-linux*)
26309     # ??? This apparently exposes a binutils bug with PC-relative relocations.
26310     gcc_cv_ld_eh_gc_sections=no
26311     ;;
26312 esac
26313 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26314
26315 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26316
26317 fi
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26319 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26320
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26322 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26323 gcc_cv_ld_eh_gc_sections_bug=no
26324 if test $in_tree_ld = yes ; then
26325   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 \
26326      && test $in_tree_ld_is_elf = yes; then
26327     gcc_cv_ld_eh_gc_sections_bug=yes
26328   fi
26329 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
26330   gcc_cv_ld_eh_gc_sections_bug=yes
26331   cat > conftest.s <<EOF
26332         .section        .text
26333 .globl _start
26334         .type _start, @function
26335 _start:
26336         .long foo
26337         .size _start, .-_start
26338         .section        .text.startup.foo,"ax",@progbits
26339         .type foo, @function
26340 foo:
26341         .long 0
26342         .size foo, .-foo
26343         .section        .gcc_except_table.foo,"a",@progbits
26344 .L0:
26345         .long 0
26346         .section        .eh_frame,"a",@progbits
26347         .long .L0
26348 EOF
26349   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26350     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26351          | grep "gc-sections option ignored" > /dev/null; then
26352       :
26353     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26354          | grep gcc_except_table > /dev/null; then
26355       gcc_cv_ld_eh_gc_sections_bug=no
26356     fi
26357   fi
26358   rm -f conftest.s conftest.o conftest
26359 fi
26360 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26361
26362 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26363
26364 fi
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26366 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26367
26368 # --------
26369 # UNSORTED
26370 # --------
26371
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26373 $as_echo_n "checking linker --as-needed support... " >&6; }
26374 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26375   $as_echo_n "(cached) " >&6
26376 else
26377   gcc_cv_ld_as_needed=no
26378 if test $in_tree_ld = yes ; then
26379   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 \
26380      && test $in_tree_ld_is_elf = yes; then
26381     gcc_cv_ld_as_needed=yes
26382   fi
26383 elif test x$gcc_cv_ld != x; then
26384         # Check if linker supports --as-needed and --no-as-needed options
26385         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26386                 gcc_cv_ld_as_needed=yes
26387         fi
26388 fi
26389
26390 fi
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26392 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26393 if test x"$gcc_cv_ld_as_needed" = xyes; then
26394
26395 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26396
26397 fi
26398
26399 case "$target:$tm_file" in
26400   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26402 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26403 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26404   $as_echo_n "(cached) " >&6
26405 else
26406   gcc_cv_ld_no_dot_syms=no
26407     if test $in_tree_ld = yes ; then
26408       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
26409         gcc_cv_ld_no_dot_syms=yes
26410       fi
26411     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26412       cat > conftest1.s <<EOF
26413         .text
26414         bl .foo
26415 EOF
26416       cat > conftest2.s <<EOF
26417         .section ".opd","aw"
26418         .align 3
26419         .globl foo
26420         .type foo,@function
26421 foo:
26422         .quad .LEfoo,.TOC.@tocbase,0
26423         .text
26424 .LEfoo:
26425         blr
26426         .size foo,.-.LEfoo
26427 EOF
26428       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26429          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26430          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26431         gcc_cv_ld_no_dot_syms=yes
26432       fi
26433       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26434     fi
26435
26436 fi
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26438 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26439     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26440
26441 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26442
26443     fi
26444
26445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26446 $as_echo_n "checking linker large toc support... " >&6; }
26447 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26448   $as_echo_n "(cached) " >&6
26449 else
26450   gcc_cv_ld_large_toc=no
26451     if test $in_tree_ld = yes ; then
26452       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
26453         gcc_cv_ld_large_toc=yes
26454       fi
26455     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26456       cat > conftest.s <<EOF
26457         .section ".tbss","awT",@nobits
26458         .align 3
26459 ie0:    .space 8
26460         .global _start
26461         .text
26462 _start:
26463         addis 9,13,ie0@got@tprel@ha
26464         ld 9,ie0@got@tprel@l(9)
26465 EOF
26466       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26467          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26468         gcc_cv_ld_large_toc=yes
26469       fi
26470       rm -f conftest conftest.o conftest.s
26471     fi
26472
26473 fi
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26475 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26476     if test x"$gcc_cv_ld_large_toc" = xyes; then
26477
26478 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26479
26480     fi
26481     ;;
26482 esac
26483
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26485 $as_echo_n "checking linker --build-id support... " >&6; }
26486 if test "${gcc_cv_ld_buildid+set}" = set; then :
26487   $as_echo_n "(cached) " >&6
26488 else
26489   gcc_cv_ld_buildid=no
26490   if test $in_tree_ld = yes ; then
26491     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26492        "$gcc_cv_gld_minor_version" -ge 18 -o \
26493        "$gcc_cv_gld_major_version" -gt 2 \
26494        && test $in_tree_ld_is_elf = yes; then
26495       gcc_cv_ld_buildid=yes
26496     fi
26497   elif test x$gcc_cv_ld != x; then
26498     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26499       gcc_cv_ld_buildid=yes
26500     fi
26501   fi
26502 fi
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26504 $as_echo "$gcc_cv_ld_buildid" >&6; }
26505 if test x"$gcc_cv_ld_buildid" = xyes; then
26506
26507 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26508
26509 fi
26510
26511 # Check whether --enable-linker-build-id was given.
26512 if test "${enable_linker_build_id+set}" = set; then :
26513   enableval=$enable_linker_build_id;
26514 else
26515   enable_linker_build_id=no
26516 fi
26517
26518
26519 if test x"$enable_linker_build_id" = xyes; then
26520   if test x"$gcc_cv_ld_buildid" = xyes; then
26521
26522 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26523
26524   else
26525     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26526 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26527   fi
26528 fi
26529
26530 # In binutils 2.21, GNU ld gained support for new emulations fully
26531 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26533 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26534 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26535   $as_echo_n "(cached) " >&6
26536 else
26537   gcc_cv_ld_sol2_emulation=no
26538   if test $in_tree_ld = yes ; then
26539     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26540        "$gcc_cv_gld_minor_version" -ge 21 -o \
26541        "$gcc_cv_gld_major_version" -gt 2 \
26542        && test $in_tree_ld_is_elf = yes; then
26543       gcc_cv_ld_sol2_emulation=yes
26544     fi
26545   elif test x$gcc_cv_ld != x; then
26546     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26547        grep _sol2 > /dev/null; then
26548       gcc_cv_ld_sol2_emulation=yes
26549     fi
26550   fi
26551 fi
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26553 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26554 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26555
26556 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26557
26558 fi
26559
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26561 $as_echo_n "checking linker --sysroot support... " >&6; }
26562 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26563   $as_echo_n "(cached) " >&6
26564 else
26565   gcc_cv_ld_sysroot=no
26566   if test $in_tree_ld = yes ; then
26567       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
26568         gcc_cv_ld_sysroot=yes
26569       fi
26570   elif test x$gcc_cv_ld != x; then
26571     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26572       gcc_cv_ld_sysroot=yes
26573     fi
26574   fi
26575 fi
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26577 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26578 if test x"$gcc_cv_ld_sysroot" = xyes; then
26579
26580 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26581
26582 fi
26583
26584 if test x$with_sysroot = x && test x$host = x$target \
26585    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26586    && test "$prefix" != "NONE"; then
26587
26588 cat >>confdefs.h <<_ACEOF
26589 #define PREFIX_INCLUDE_DIR "$prefix/include"
26590 _ACEOF
26591
26592 fi
26593
26594 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26595   if test "x$with_headers" != x; then
26596     target_header_dir=$with_headers
26597   elif test "x$with_sysroot" = x; then
26598     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26599   elif test "x$with_build_sysroot" != "x"; then
26600     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26601   elif test "x$with_sysroot" = xyes; then
26602     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26603   else
26604     target_header_dir="${with_sysroot}${native_system_header_dir}"
26605   fi
26606 else
26607   target_header_dir=${native_system_header_dir}
26608 fi
26609
26610 # Test for stack protector support in target C library.
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26612 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26613 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26614   $as_echo_n "(cached) " >&6
26615 else
26616   gcc_cv_libc_provides_ssp=no
26617     case "$target" in
26618        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26619       # glibc 2.4 and later provides __stack_chk_fail and
26620       # either __stack_chk_guard, or TLS access to stack guard canary.
26621       if test -f $target_header_dir/features.h \
26622          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26623             $target_header_dir/features.h > /dev/null; then
26624         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26625            $target_header_dir/features.h > /dev/null; then
26626           gcc_cv_libc_provides_ssp=yes
26627         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26628              $target_header_dir/features.h > /dev/null \
26629              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26630              $target_header_dir/features.h > /dev/null; then
26631           gcc_cv_libc_provides_ssp=yes
26632         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26633              $target_header_dir/features.h > /dev/null && \
26634              test -f $target_header_dir/bits/uClibc_config.h && \
26635              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26636              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26637           gcc_cv_libc_provides_ssp=yes
26638         fi
26639       fi
26640         ;;
26641        *-*-gnu*)
26642          # Avoid complicated tests (see
26643          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26644          # simply assert that glibc does provide this, which is true for all
26645          # realistically usable GNU/Hurd configurations.
26646          gcc_cv_libc_provides_ssp=yes;;
26647        *-*-darwin* | *-*-freebsd*)
26648          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26649 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26650   gcc_cv_libc_provides_ssp=yes
26651 else
26652   echo "no __stack_chk_fail on this target"
26653 fi
26654
26655         ;;
26656   *) gcc_cv_libc_provides_ssp=no ;;
26657     esac
26658 fi
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26660 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26661
26662 if test x$gcc_cv_libc_provides_ssp = xyes; then
26663
26664 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26665
26666 fi
26667
26668 # Test for <sys/sdt.h> on the target.
26669
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26671 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26672 have_sys_sdt_h=no
26673 if test -f $target_header_dir/sys/sdt.h; then
26674   have_sys_sdt_h=yes
26675
26676 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26677
26678 fi
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26680 $as_echo "$have_sys_sdt_h" >&6; }
26681
26682 # Check if TFmode long double should be used by default or not.
26683 # Some glibc targets used DFmode long double, but with glibc 2.4
26684 # and later they can use TFmode.
26685 case "$target" in
26686   powerpc*-*-linux* | \
26687   sparc*-*-linux* | \
26688   s390*-*-linux* | \
26689   alpha*-*-linux*)
26690
26691 # Check whether --with-long-double-128 was given.
26692 if test "${with_long_double_128+set}" = set; then :
26693   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26694 else
26695   gcc_cv_target_ldbl128=no
26696       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26697         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26698       && gcc_cv_target_ldbl128=yes
26699
26700 fi
26701
26702     ;;
26703 esac
26704 if test x$gcc_cv_target_ldbl128 = xyes; then
26705
26706 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26707
26708 fi
26709
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26711 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26712 gcc_cv_target_dl_iterate_phdr=unknown
26713 case "$target" in
26714   *-*-solaris2*)
26715     # <link.h> needs both a dl_iterate_phdr declaration and support for
26716     # compilation with largefile support.
26717     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26718       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26719       gcc_cv_target_dl_iterate_phdr=yes
26720     else
26721       gcc_cv_target_dl_iterate_phdr=no
26722     fi
26723     ;;
26724 esac
26725
26726 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26727
26728 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26729
26730 fi
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26732 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26733
26734 # Find out what GC implementation we want, or may, use.
26735
26736 # Check whether --with-gc was given.
26737 if test "${with_gc+set}" = set; then :
26738   withval=$with_gc; case "$withval" in
26739   page)
26740     GGC=ggc-$withval
26741     ;;
26742   zone)
26743     GGC=ggc-$withval
26744
26745 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26746
26747     ;;
26748   *)
26749     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26750     ;;
26751 esac
26752 else
26753   GGC=ggc-page
26754 fi
26755
26756
26757 echo "Using $GGC for garbage collection."
26758
26759 # Libraries to use on the host.  This will normally be set by the top
26760 # level Makefile.  Here we simply capture the value for our Makefile.
26761 if test -z "${HOST_LIBS+set}"; then
26762   HOST_LIBS=
26763 fi
26764
26765
26766 # Use the system's zlib library.
26767 zlibdir=-L../zlib
26768 zlibinc="-I\$(srcdir)/../zlib"
26769
26770 # Check whether --with-system-zlib was given.
26771 if test "${with_system_zlib+set}" = set; then :
26772   withval=$with_system_zlib; zlibdir=
26773 zlibinc=
26774
26775 fi
26776
26777
26778
26779
26780
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26782 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26783     # Check whether --enable-maintainer-mode was given.
26784 if test "${enable_maintainer_mode+set}" = set; then :
26785   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26786 else
26787   maintainer_mode=no
26788 fi
26789
26790
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26792 $as_echo "$maintainer_mode" >&6; }
26793
26794 if test "$maintainer_mode" = "yes"; then
26795   MAINT=''
26796 else
26797   MAINT='#'
26798 fi
26799
26800 # --------------
26801 # Language hooks
26802 # --------------
26803
26804 # Make empty files to contain the specs and options for each language.
26805 # Then add #include lines to for a compiler that has specs and/or options.
26806
26807 subdirs=
26808 lang_opt_files=
26809 lang_specs_files=
26810 lang_tree_files=
26811 # These (without "all_") are set in each config-lang.in.
26812 # `language' must be a single word so is spelled singularly.
26813 all_languages=
26814 all_compilers=
26815 all_outputs='Makefile'
26816 # List of language makefile fragments.
26817 all_lang_makefrags=
26818 # Additional files for gengtype
26819 all_gtfiles="$target_gtfiles"
26820
26821 # These are the languages that are set in --enable-languages,
26822 # and are available in the GCC tree.
26823 all_selected_languages=
26824
26825 # Add the language fragments.
26826 # Languages are added via two mechanisms.  Some information must be
26827 # recorded in makefile variables, these are defined in config-lang.in.
26828 # We accumulate them and plug them into the main Makefile.
26829 # The other mechanism is a set of hooks for each of the main targets
26830 # like `clean', `install', etc.
26831
26832 language_hooks="Make-hooks"
26833
26834 for lang in ${srcdir}/*/config-lang.in
26835 do
26836         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26837
26838         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26839         if test "x$lang_alias" = x
26840         then
26841               echo "$lang doesn't set \$language." 1>&2
26842               exit 1
26843         fi
26844         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26845         subdirs="$subdirs $subdir"
26846
26847         # $gcc_subdir is where the gcc integration files are to be found
26848         # for a language, both for internal compiler purposes (compiler
26849         # sources implementing front-end to GCC tree converters), and for
26850         # build infrastructure purposes (Make-lang.in, etc.)
26851         #
26852         # This will be <subdir> (relative to $srcdir) if a line like
26853         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26854         # is found in <langdir>/config-lang.in, and will remain <langdir>
26855         # otherwise.
26856         #
26857         # Except for the language alias (fetched above), the regular
26858         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26859         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26860         # only this and the language alias.
26861
26862         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26863         if [ "$gcc_subdir" = "" ]; then
26864            gcc_subdir="$subdir"
26865         fi
26866
26867         case ",$enable_languages," in
26868         *,$lang_alias,*)
26869             all_selected_languages="$all_selected_languages $lang_alias"
26870             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26871                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26872             fi
26873             ;;
26874         esac
26875
26876         language=
26877         boot_language=
26878         compilers=
26879         outputs=
26880         gtfiles=
26881         subdir_requires=
26882         . ${srcdir}/$gcc_subdir/config-lang.in
26883         if test "x$language" = x
26884         then
26885                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26886                 exit 1
26887         fi
26888
26889         ok=:
26890         case ",$enable_languages," in
26891                 *,$lang_alias,*) ;;
26892                 *)
26893                         for i in $subdir_requires; do
26894                                 test -f "${srcdir}/$i/config-lang.in" && continue
26895                                 ok=false
26896                                 break
26897                         done
26898                 ;;
26899         esac
26900         $ok || continue
26901
26902         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26903         if test -f $srcdir/$gcc_subdir/lang.opt; then
26904             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26905             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26906         fi
26907         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26908             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26909         fi
26910         all_languages="$all_languages $language"
26911         all_compilers="$all_compilers $compilers"
26912         all_outputs="$all_outputs $outputs"
26913         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26914         case ",$enable_languages," in
26915                 *,lto,*)
26916
26917 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26918
26919                     enable_lto=yes
26920
26921                     ;;
26922                 *) ;;
26923         esac
26924 done
26925
26926 # Pick up gtfiles for c
26927 gtfiles=
26928 . ${srcdir}/c-config-lang.in
26929 all_gtfiles="$all_gtfiles [c] $gtfiles"
26930
26931 check_languages=
26932 for language in $all_selected_languages
26933 do
26934         check_languages="$check_languages check-$language"
26935 done
26936
26937 # We link each language in with a set of hooks, reached indirectly via
26938 # lang.${target}.  Only do so for selected languages.
26939
26940 rm -f Make-hooks
26941 touch Make-hooks
26942 target_list="all.cross start.encap rest.encap tags \
26943         install-common install-man install-info install-pdf install-html dvi \
26944         pdf html uninstall info man srcextra srcman srcinfo \
26945         mostlyclean clean distclean maintainer-clean install-plugin"
26946
26947 for t in $target_list
26948 do
26949         x=
26950         for lang in $all_selected_languages
26951         do
26952                 x="$x $lang.$t"
26953         done
26954         echo "lang.$t: $x" >> Make-hooks
26955 done
26956
26957 # --------
26958 # Option include files
26959 # --------
26960
26961 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26962 option_includes="option-includes.mk"
26963
26964
26965 # --------
26966 # UNSORTED
26967 # --------
26968
26969 # Create .gdbinit.
26970
26971 echo "dir ." > .gdbinit
26972 echo "dir ${srcdir}" >> .gdbinit
26973 if test x$gdb_needs_out_file_path = xyes
26974 then
26975         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26976 fi
26977 if test "x$subdirs" != x; then
26978         for s in $subdirs
26979         do
26980                 echo "dir ${srcdir}/$s" >> .gdbinit
26981         done
26982 fi
26983 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26984
26985 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26986
26987
26988
26989 # Find a directory in which to install a shared libgcc.
26990
26991 # Check whether --enable-version-specific-runtime-libs was given.
26992 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26993   enableval=$enable_version_specific_runtime_libs;
26994 fi
26995
26996
26997 # Substitute configuration variables
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060 # Echo link setup.
27061 if test x${build} = x${host} ; then
27062   if test x${host} = x${target} ; then
27063     echo "Links are now set up to build a native compiler for ${target}." 1>&2
27064   else
27065     echo "Links are now set up to build a cross-compiler" 1>&2
27066     echo " from ${host} to ${target}." 1>&2
27067   fi
27068 else
27069   if test x${host} = x${target} ; then
27070     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27071     echo " for ${target}." 1>&2
27072   else
27073     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27074     echo " from ${host} to ${target}." 1>&2
27075   fi
27076 fi
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086 if test "x${CLOOGLIBS}" != "x" ; then
27087
27088 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27089
27090 fi
27091
27092 # Check for plugin support
27093 # Check whether --enable-plugin was given.
27094 if test "${enable_plugin+set}" = set; then :
27095   enableval=$enable_plugin; enable_plugin=$enableval
27096 else
27097   enable_plugin=yes; default_plugin=yes
27098 fi
27099
27100
27101 pluginlibs=
27102
27103 case "${host}" in
27104   *-*-darwin*)
27105     if test x$build = x$host; then
27106       export_sym_check="nm${exeext} -g"
27107     elif test x$host = x$target; then
27108       export_sym_check="$gcc_cv_nm -g"
27109     else
27110       export_sym_check=
27111     fi
27112   ;;
27113   *)
27114     if test x$build = x$host; then
27115       export_sym_check="objdump${exeext} -T"
27116     elif test x$host = x$target; then
27117       export_sym_check="$gcc_cv_objdump -T"
27118     else
27119       export_sym_check=
27120     fi
27121   ;;
27122 esac
27123
27124 if test x"$enable_plugin" = x"yes"; then
27125
27126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27127 $as_echo_n "checking for exported symbols... " >&6; }
27128   if test "x$export_sym_check" != x; then
27129     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27130     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27131     if $export_sym_check conftest | grep foobar > /dev/null; then
27132       : # No need to use a flag
27133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27134 $as_echo "yes" >&6; }
27135     else
27136       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27137 $as_echo "yes" >&6; }
27138       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27139 $as_echo_n "checking for -rdynamic... " >&6; }
27140       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27141       if $export_sym_check conftest | grep foobar > /dev/null; then
27142         plugin_rdynamic=yes
27143         pluginlibs="-rdynamic"
27144       else
27145         plugin_rdynamic=no
27146         enable_plugin=no
27147       fi
27148       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27149 $as_echo "$plugin_rdynamic" >&6; }
27150     fi
27151   else
27152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27153 $as_echo "unable to check" >&6; }
27154   fi
27155
27156   # Check -ldl
27157   saved_LIBS="$LIBS"
27158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27159 $as_echo_n "checking for library containing dlopen... " >&6; }
27160 if test "${ac_cv_search_dlopen+set}" = set; then :
27161   $as_echo_n "(cached) " >&6
27162 else
27163   ac_func_search_save_LIBS=$LIBS
27164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27165 /* end confdefs.h.  */
27166
27167 /* Override any GCC internal prototype to avoid an error.
27168    Use char because int might match the return type of a GCC
27169    builtin and then its argument prototype would still apply.  */
27170 #ifdef __cplusplus
27171 extern "C"
27172 #endif
27173 char dlopen ();
27174 int
27175 main ()
27176 {
27177 return dlopen ();
27178   ;
27179   return 0;
27180 }
27181 _ACEOF
27182 for ac_lib in '' dl; do
27183   if test -z "$ac_lib"; then
27184     ac_res="none required"
27185   else
27186     ac_res=-l$ac_lib
27187     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27188   fi
27189   if ac_fn_c_try_link "$LINENO"; then :
27190   ac_cv_search_dlopen=$ac_res
27191 fi
27192 rm -f core conftest.err conftest.$ac_objext \
27193     conftest$ac_exeext
27194   if test "${ac_cv_search_dlopen+set}" = set; then :
27195   break
27196 fi
27197 done
27198 if test "${ac_cv_search_dlopen+set}" = set; then :
27199
27200 else
27201   ac_cv_search_dlopen=no
27202 fi
27203 rm conftest.$ac_ext
27204 LIBS=$ac_func_search_save_LIBS
27205 fi
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27207 $as_echo "$ac_cv_search_dlopen" >&6; }
27208 ac_res=$ac_cv_search_dlopen
27209 if test "$ac_res" != no; then :
27210   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27211
27212 fi
27213
27214   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27215     pluginlibs="$pluginlibs -ldl"
27216   fi
27217   LIBS="$saved_LIBS"
27218
27219   # Check that we can build shared objects with -fPIC -shared
27220   saved_LDFLAGS="$LDFLAGS"
27221   saved_CFLAGS="$CFLAGS"
27222   case "${host}" in
27223     *-*-darwin*)
27224       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27225       CFLAGS="$CFLAGS -fPIC"
27226       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27227     ;;
27228     *)
27229       CFLAGS="$CFLAGS -fPIC"
27230       LDFLAGS="$LDFLAGS -fPIC -shared"
27231     ;;
27232   esac
27233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27234 $as_echo_n "checking for -fPIC -shared... " >&6; }
27235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27236 /* end confdefs.h.  */
27237 extern int X;
27238 int
27239 main ()
27240 {
27241 return X == 0;
27242   ;
27243   return 0;
27244 }
27245 _ACEOF
27246 if ac_fn_c_try_link "$LINENO"; then :
27247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27248 $as_echo "yes" >&6; }; have_pic_shared=yes
27249 else
27250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27251 $as_echo "no" >&6; }; have_pic_shared=no
27252 fi
27253 rm -f core conftest.err conftest.$ac_objext \
27254     conftest$ac_exeext conftest.$ac_ext
27255   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27256     pluginlibs=
27257     enable_plugin=no
27258   fi
27259   LDFLAGS="$saved_LDFLAGS"
27260   CFLAGS="$saved_CFLAGS"
27261
27262   # If plugin support had been requested but not available, fail.
27263   if test x"$enable_plugin" = x"no" ; then
27264     if test x"$default_plugin" != x"yes"; then
27265       as_fn_error "
27266 Building GCC with plugin support requires a host that supports
27267 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27268     fi
27269   fi
27270 fi
27271
27272
27273
27274 if test x"$enable_plugin" = x"yes"; then
27275
27276 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27277
27278 fi
27279
27280
27281 # Check whether --enable-libquadmath-support was given.
27282 if test "${enable_libquadmath_support+set}" = set; then :
27283   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27284 else
27285   ENABLE_LIBQUADMATH_SUPPORT=yes
27286 fi
27287
27288 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27289
27290 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27291
27292 fi
27293
27294
27295 # Specify what hash style to use by default.
27296
27297 # Check whether --with-linker-hash-style was given.
27298 if test "${with_linker_hash_style+set}" = set; then :
27299   withval=$with_linker_hash_style; case x"$withval" in
27300    xsysv)
27301      LINKER_HASH_STYLE=sysv
27302      ;;
27303    xgnu)
27304      LINKER_HASH_STYLE=gnu
27305      ;;
27306    xboth)
27307      LINKER_HASH_STYLE=both
27308      ;;
27309    *)
27310      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27311      ;;
27312  esac
27313 else
27314   LINKER_HASH_STYLE=''
27315 fi
27316
27317 if test x"${LINKER_HASH_STYLE}" != x; then
27318
27319 cat >>confdefs.h <<_ACEOF
27320 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27321 _ACEOF
27322
27323 fi
27324
27325 # Configure the subdirectories
27326 # AC_CONFIG_SUBDIRS($subdirs)
27327
27328 # Create the Makefile
27329 # and configure language subdirectories
27330 ac_config_files="$ac_config_files $all_outputs"
27331
27332
27333 ac_config_commands="$ac_config_commands default"
27334
27335 cat >confcache <<\_ACEOF
27336 # This file is a shell script that caches the results of configure
27337 # tests run on this system so they can be shared between configure
27338 # scripts and configure runs, see configure's option --config-cache.
27339 # It is not useful on other systems.  If it contains results you don't
27340 # want to keep, you may remove or edit it.
27341 #
27342 # config.status only pays attention to the cache file if you give it
27343 # the --recheck option to rerun configure.
27344 #
27345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27347 # following values.
27348
27349 _ACEOF
27350
27351 # The following way of writing the cache mishandles newlines in values,
27352 # but we know of no workaround that is simple, portable, and efficient.
27353 # So, we kill variables containing newlines.
27354 # Ultrix sh set writes to stderr and can't be redirected directly,
27355 # and sets the high bit in the cache file unless we assign to the vars.
27356 (
27357   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27358     eval ac_val=\$$ac_var
27359     case $ac_val in #(
27360     *${as_nl}*)
27361       case $ac_var in #(
27362       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27364       esac
27365       case $ac_var in #(
27366       _ | IFS | as_nl) ;; #(
27367       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27368       *) { eval $ac_var=; unset $ac_var;} ;;
27369       esac ;;
27370     esac
27371   done
27372
27373   (set) 2>&1 |
27374     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27375     *${as_nl}ac_space=\ *)
27376       # `set' does not quote correctly, so add quotes: double-quote
27377       # substitution turns \\\\ into \\, and sed turns \\ into \.
27378       sed -n \
27379         "s/'/'\\\\''/g;
27380           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27381       ;; #(
27382     *)
27383       # `set' quotes correctly as required by POSIX, so do not add quotes.
27384       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27385       ;;
27386     esac |
27387     sort
27388 ) |
27389   sed '
27390      /^ac_cv_env_/b end
27391      t clear
27392      :clear
27393      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27394      t end
27395      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27396      :end' >>confcache
27397 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27398   if test -w "$cache_file"; then
27399     test "x$cache_file" != "x/dev/null" &&
27400       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27401 $as_echo "$as_me: updating cache $cache_file" >&6;}
27402     cat confcache >$cache_file
27403   else
27404     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27405 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27406   fi
27407 fi
27408 rm -f confcache
27409
27410 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27411 # Let make expand exec_prefix.
27412 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27413
27414 DEFS=-DHAVE_CONFIG_H
27415
27416 ac_libobjs=
27417 ac_ltlibobjs=
27418 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27419   # 1. Remove the extension, and $U if already installed.
27420   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27421   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27422   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27423   #    will be set to the directory where LIBOBJS objects are built.
27424   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27425   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27426 done
27427 LIBOBJS=$ac_libobjs
27428
27429 LTLIBOBJS=$ac_ltlibobjs
27430
27431
27432
27433
27434 : ${CONFIG_STATUS=./config.status}
27435 ac_write_fail=0
27436 ac_clean_files_save=$ac_clean_files
27437 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27439 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27440 as_write_fail=0
27441 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27442 #! $SHELL
27443 # Generated by $as_me.
27444 # Run this file to recreate the current configuration.
27445 # Compiler output produced by configure, useful for debugging
27446 # configure, is in config.log if it exists.
27447
27448 debug=false
27449 ac_cs_recheck=false
27450 ac_cs_silent=false
27451
27452 SHELL=\${CONFIG_SHELL-$SHELL}
27453 export SHELL
27454 _ASEOF
27455 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27456 ## -------------------- ##
27457 ## M4sh Initialization. ##
27458 ## -------------------- ##
27459
27460 # Be more Bourne compatible
27461 DUALCASE=1; export DUALCASE # for MKS sh
27462 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27463   emulate sh
27464   NULLCMD=:
27465   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27466   # is contrary to our usage.  Disable this feature.
27467   alias -g '${1+"$@"}'='"$@"'
27468   setopt NO_GLOB_SUBST
27469 else
27470   case `(set -o) 2>/dev/null` in #(
27471   *posix*) :
27472     set -o posix ;; #(
27473   *) :
27474      ;;
27475 esac
27476 fi
27477
27478
27479 as_nl='
27480 '
27481 export as_nl
27482 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27483 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27485 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27486 # Prefer a ksh shell builtin over an external printf program on Solaris,
27487 # but without wasting forks for bash or zsh.
27488 if test -z "$BASH_VERSION$ZSH_VERSION" \
27489     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27490   as_echo='print -r --'
27491   as_echo_n='print -rn --'
27492 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27493   as_echo='printf %s\n'
27494   as_echo_n='printf %s'
27495 else
27496   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27497     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27498     as_echo_n='/usr/ucb/echo -n'
27499   else
27500     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27501     as_echo_n_body='eval
27502       arg=$1;
27503       case $arg in #(
27504       *"$as_nl"*)
27505         expr "X$arg" : "X\\(.*\\)$as_nl";
27506         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27507       esac;
27508       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27509     '
27510     export as_echo_n_body
27511     as_echo_n='sh -c $as_echo_n_body as_echo'
27512   fi
27513   export as_echo_body
27514   as_echo='sh -c $as_echo_body as_echo'
27515 fi
27516
27517 # The user is always right.
27518 if test "${PATH_SEPARATOR+set}" != set; then
27519   PATH_SEPARATOR=:
27520   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27521     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27522       PATH_SEPARATOR=';'
27523   }
27524 fi
27525
27526
27527 # IFS
27528 # We need space, tab and new line, in precisely that order.  Quoting is
27529 # there to prevent editors from complaining about space-tab.
27530 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27531 # splitting by setting IFS to empty value.)
27532 IFS=" ""        $as_nl"
27533
27534 # Find who we are.  Look in the path if we contain no directory separator.
27535 case $0 in #((
27536   *[\\/]* ) as_myself=$0 ;;
27537   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27538 for as_dir in $PATH
27539 do
27540   IFS=$as_save_IFS
27541   test -z "$as_dir" && as_dir=.
27542     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27543   done
27544 IFS=$as_save_IFS
27545
27546      ;;
27547 esac
27548 # We did not find ourselves, most probably we were run as `sh COMMAND'
27549 # in which case we are not to be found in the path.
27550 if test "x$as_myself" = x; then
27551   as_myself=$0
27552 fi
27553 if test ! -f "$as_myself"; then
27554   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27555   exit 1
27556 fi
27557
27558 # Unset variables that we do not need and which cause bugs (e.g. in
27559 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27560 # suppresses any "Segmentation fault" message there.  '((' could
27561 # trigger a bug in pdksh 5.2.14.
27562 for as_var in BASH_ENV ENV MAIL MAILPATH
27563 do eval test x\${$as_var+set} = xset \
27564   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27565 done
27566 PS1='$ '
27567 PS2='> '
27568 PS4='+ '
27569
27570 # NLS nuisances.
27571 LC_ALL=C
27572 export LC_ALL
27573 LANGUAGE=C
27574 export LANGUAGE
27575
27576 # CDPATH.
27577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27578
27579
27580 # as_fn_error ERROR [LINENO LOG_FD]
27581 # ---------------------------------
27582 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27583 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27584 # script with status $?, using 1 if that was 0.
27585 as_fn_error ()
27586 {
27587   as_status=$?; test $as_status -eq 0 && as_status=1
27588   if test "$3"; then
27589     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27590     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27591   fi
27592   $as_echo "$as_me: error: $1" >&2
27593   as_fn_exit $as_status
27594 } # as_fn_error
27595
27596
27597 # as_fn_set_status STATUS
27598 # -----------------------
27599 # Set $? to STATUS, without forking.
27600 as_fn_set_status ()
27601 {
27602   return $1
27603 } # as_fn_set_status
27604
27605 # as_fn_exit STATUS
27606 # -----------------
27607 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27608 as_fn_exit ()
27609 {
27610   set +e
27611   as_fn_set_status $1
27612   exit $1
27613 } # as_fn_exit
27614
27615 # as_fn_unset VAR
27616 # ---------------
27617 # Portably unset VAR.
27618 as_fn_unset ()
27619 {
27620   { eval $1=; unset $1;}
27621 }
27622 as_unset=as_fn_unset
27623 # as_fn_append VAR VALUE
27624 # ----------------------
27625 # Append the text in VALUE to the end of the definition contained in VAR. Take
27626 # advantage of any shell optimizations that allow amortized linear growth over
27627 # repeated appends, instead of the typical quadratic growth present in naive
27628 # implementations.
27629 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27630   eval 'as_fn_append ()
27631   {
27632     eval $1+=\$2
27633   }'
27634 else
27635   as_fn_append ()
27636   {
27637     eval $1=\$$1\$2
27638   }
27639 fi # as_fn_append
27640
27641 # as_fn_arith ARG...
27642 # ------------------
27643 # Perform arithmetic evaluation on the ARGs, and store the result in the
27644 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27645 # must be portable across $(()) and expr.
27646 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27647   eval 'as_fn_arith ()
27648   {
27649     as_val=$(( $* ))
27650   }'
27651 else
27652   as_fn_arith ()
27653   {
27654     as_val=`expr "$@" || test $? -eq 1`
27655   }
27656 fi # as_fn_arith
27657
27658
27659 if expr a : '\(a\)' >/dev/null 2>&1 &&
27660    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27661   as_expr=expr
27662 else
27663   as_expr=false
27664 fi
27665
27666 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27667   as_basename=basename
27668 else
27669   as_basename=false
27670 fi
27671
27672 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27673   as_dirname=dirname
27674 else
27675   as_dirname=false
27676 fi
27677
27678 as_me=`$as_basename -- "$0" ||
27679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27680          X"$0" : 'X\(//\)$' \| \
27681          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27682 $as_echo X/"$0" |
27683     sed '/^.*\/\([^/][^/]*\)\/*$/{
27684             s//\1/
27685             q
27686           }
27687           /^X\/\(\/\/\)$/{
27688             s//\1/
27689             q
27690           }
27691           /^X\/\(\/\).*/{
27692             s//\1/
27693             q
27694           }
27695           s/.*/./; q'`
27696
27697 # Avoid depending upon Character Ranges.
27698 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27699 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27700 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27701 as_cr_digits='0123456789'
27702 as_cr_alnum=$as_cr_Letters$as_cr_digits
27703
27704 ECHO_C= ECHO_N= ECHO_T=
27705 case `echo -n x` in #(((((
27706 -n*)
27707   case `echo 'xy\c'` in
27708   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27709   xy)  ECHO_C='\c';;
27710   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27711        ECHO_T=' ';;
27712   esac;;
27713 *)
27714   ECHO_N='-n';;
27715 esac
27716
27717 rm -f conf$$ conf$$.exe conf$$.file
27718 if test -d conf$$.dir; then
27719   rm -f conf$$.dir/conf$$.file
27720 else
27721   rm -f conf$$.dir
27722   mkdir conf$$.dir 2>/dev/null
27723 fi
27724 if (echo >conf$$.file) 2>/dev/null; then
27725   if ln -s conf$$.file conf$$ 2>/dev/null; then
27726     as_ln_s='ln -s'
27727     # ... but there are two gotchas:
27728     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27729     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27730     # In both cases, we have to default to `cp -p'.
27731     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27732       as_ln_s='cp -p'
27733   elif ln conf$$.file conf$$ 2>/dev/null; then
27734     as_ln_s=ln
27735   else
27736     as_ln_s='cp -p'
27737   fi
27738 else
27739   as_ln_s='cp -p'
27740 fi
27741 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27742 rmdir conf$$.dir 2>/dev/null
27743
27744
27745 # as_fn_mkdir_p
27746 # -------------
27747 # Create "$as_dir" as a directory, including parents if necessary.
27748 as_fn_mkdir_p ()
27749 {
27750
27751   case $as_dir in #(
27752   -*) as_dir=./$as_dir;;
27753   esac
27754   test -d "$as_dir" || eval $as_mkdir_p || {
27755     as_dirs=
27756     while :; do
27757       case $as_dir in #(
27758       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27759       *) as_qdir=$as_dir;;
27760       esac
27761       as_dirs="'$as_qdir' $as_dirs"
27762       as_dir=`$as_dirname -- "$as_dir" ||
27763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27764          X"$as_dir" : 'X\(//\)[^/]' \| \
27765          X"$as_dir" : 'X\(//\)$' \| \
27766          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27767 $as_echo X"$as_dir" |
27768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27769             s//\1/
27770             q
27771           }
27772           /^X\(\/\/\)[^/].*/{
27773             s//\1/
27774             q
27775           }
27776           /^X\(\/\/\)$/{
27777             s//\1/
27778             q
27779           }
27780           /^X\(\/\).*/{
27781             s//\1/
27782             q
27783           }
27784           s/.*/./; q'`
27785       test -d "$as_dir" && break
27786     done
27787     test -z "$as_dirs" || eval "mkdir $as_dirs"
27788   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27789
27790
27791 } # as_fn_mkdir_p
27792 if mkdir -p . 2>/dev/null; then
27793   as_mkdir_p='mkdir -p "$as_dir"'
27794 else
27795   test -d ./-p && rmdir ./-p
27796   as_mkdir_p=false
27797 fi
27798
27799 if test -x / >/dev/null 2>&1; then
27800   as_test_x='test -x'
27801 else
27802   if ls -dL / >/dev/null 2>&1; then
27803     as_ls_L_option=L
27804   else
27805     as_ls_L_option=
27806   fi
27807   as_test_x='
27808     eval sh -c '\''
27809       if test -d "$1"; then
27810         test -d "$1/.";
27811       else
27812         case $1 in #(
27813         -*)set "./$1";;
27814         esac;
27815         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27816         ???[sx]*):;;*)false;;esac;fi
27817     '\'' sh
27818   '
27819 fi
27820 as_executable_p=$as_test_x
27821
27822 # Sed expression to map a string onto a valid CPP name.
27823 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27824
27825 # Sed expression to map a string onto a valid variable name.
27826 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27827
27828
27829 exec 6>&1
27830 ## ----------------------------------- ##
27831 ## Main body of $CONFIG_STATUS script. ##
27832 ## ----------------------------------- ##
27833 _ASEOF
27834 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27835
27836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27837 # Save the log message, to keep $0 and so on meaningful, and to
27838 # report actual input values of CONFIG_FILES etc. instead of their
27839 # values after options handling.
27840 ac_log="
27841 This file was extended by $as_me, which was
27842 generated by GNU Autoconf 2.64.  Invocation command line was
27843
27844   CONFIG_FILES    = $CONFIG_FILES
27845   CONFIG_HEADERS  = $CONFIG_HEADERS
27846   CONFIG_LINKS    = $CONFIG_LINKS
27847   CONFIG_COMMANDS = $CONFIG_COMMANDS
27848   $ $0 $@
27849
27850 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27851 "
27852
27853 _ACEOF
27854
27855 case $ac_config_files in *"
27856 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27857 esac
27858
27859 case $ac_config_headers in *"
27860 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27861 esac
27862
27863
27864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27865 # Files that config.status was made for.
27866 config_files="$ac_config_files"
27867 config_headers="$ac_config_headers"
27868 config_commands="$ac_config_commands"
27869
27870 _ACEOF
27871
27872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27873 ac_cs_usage="\
27874 \`$as_me' instantiates files and other configuration actions
27875 from templates according to the current configuration.  Unless the files
27876 and actions are specified as TAGs, all are instantiated by default.
27877
27878 Usage: $0 [OPTION]... [TAG]...
27879
27880   -h, --help       print this help, then exit
27881   -V, --version    print version number and configuration settings, then exit
27882   -q, --quiet, --silent
27883                    do not print progress messages
27884   -d, --debug      don't remove temporary files
27885       --recheck    update $as_me by reconfiguring in the same conditions
27886       --file=FILE[:TEMPLATE]
27887                    instantiate the configuration file FILE
27888       --header=FILE[:TEMPLATE]
27889                    instantiate the configuration header FILE
27890
27891 Configuration files:
27892 $config_files
27893
27894 Configuration headers:
27895 $config_headers
27896
27897 Configuration commands:
27898 $config_commands
27899
27900 Report bugs to the package provider."
27901
27902 _ACEOF
27903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27904 ac_cs_version="\\
27905 config.status
27906 configured by $0, generated by GNU Autoconf 2.64,
27907   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27908
27909 Copyright (C) 2009 Free Software Foundation, Inc.
27910 This config.status script is free software; the Free Software Foundation
27911 gives unlimited permission to copy, distribute and modify it."
27912
27913 ac_pwd='$ac_pwd'
27914 srcdir='$srcdir'
27915 AWK='$AWK'
27916 test -n "\$AWK" || AWK=awk
27917 _ACEOF
27918
27919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27920 # The default lists apply if the user does not specify any file.
27921 ac_need_defaults=:
27922 while test $# != 0
27923 do
27924   case $1 in
27925   --*=*)
27926     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27927     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27928     ac_shift=:
27929     ;;
27930   *)
27931     ac_option=$1
27932     ac_optarg=$2
27933     ac_shift=shift
27934     ;;
27935   esac
27936
27937   case $ac_option in
27938   # Handling of the options.
27939   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27940     ac_cs_recheck=: ;;
27941   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27942     $as_echo "$ac_cs_version"; exit ;;
27943   --debug | --debu | --deb | --de | --d | -d )
27944     debug=: ;;
27945   --file | --fil | --fi | --f )
27946     $ac_shift
27947     case $ac_optarg in
27948     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27949     esac
27950     as_fn_append CONFIG_FILES " '$ac_optarg'"
27951     ac_need_defaults=false;;
27952   --header | --heade | --head | --hea )
27953     $ac_shift
27954     case $ac_optarg in
27955     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27956     esac
27957     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27958     ac_need_defaults=false;;
27959   --he | --h)
27960     # Conflict between --help and --header
27961     as_fn_error "ambiguous option: \`$1'
27962 Try \`$0 --help' for more information.";;
27963   --help | --hel | -h )
27964     $as_echo "$ac_cs_usage"; exit ;;
27965   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27966   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27967     ac_cs_silent=: ;;
27968
27969   # This is an error.
27970   -*) as_fn_error "unrecognized option: \`$1'
27971 Try \`$0 --help' for more information." ;;
27972
27973   *) as_fn_append ac_config_targets " $1"
27974      ac_need_defaults=false ;;
27975
27976   esac
27977   shift
27978 done
27979
27980 ac_configure_extra_args=
27981
27982 if $ac_cs_silent; then
27983   exec 6>/dev/null
27984   ac_configure_extra_args="$ac_configure_extra_args --silent"
27985 fi
27986
27987 _ACEOF
27988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27989 if \$ac_cs_recheck; then
27990   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27991   shift
27992   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27993   CONFIG_SHELL='$SHELL'
27994   export CONFIG_SHELL
27995   exec "\$@"
27996 fi
27997
27998 _ACEOF
27999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28000 exec 5>>config.log
28001 {
28002   echo
28003   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28004 ## Running $as_me. ##
28005 _ASBOX
28006   $as_echo "$ac_log"
28007 } >&5
28008
28009 _ACEOF
28010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28011 #
28012 # INIT-COMMANDS
28013 #
28014 subdirs='$subdirs'
28015
28016 _ACEOF
28017
28018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28019
28020 # Handling of arguments.
28021 for ac_config_target in $ac_config_targets
28022 do
28023   case $ac_config_target in
28024     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28025     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28026     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28027     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28028     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28029     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28030
28031   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28032   esac
28033 done
28034
28035
28036 # If the user did not use the arguments to specify the items to instantiate,
28037 # then the envvar interface is used.  Set only those that are not.
28038 # We use the long form for the default assignment because of an extremely
28039 # bizarre bug on SunOS 4.1.3.
28040 if $ac_need_defaults; then
28041   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28042   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28043   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28044 fi
28045
28046 # Have a temporary directory for convenience.  Make it in the build tree
28047 # simply because there is no reason against having it here, and in addition,
28048 # creating and moving files from /tmp can sometimes cause problems.
28049 # Hook for its removal unless debugging.
28050 # Note that there is a small window in which the directory will not be cleaned:
28051 # after its creation but before its name has been assigned to `$tmp'.
28052 $debug ||
28053 {
28054   tmp=
28055   trap 'exit_status=$?
28056   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28057 ' 0
28058   trap 'as_fn_exit 1' 1 2 13 15
28059 }
28060 # Create a (secure) tmp directory for tmp files.
28061
28062 {
28063   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28064   test -n "$tmp" && test -d "$tmp"
28065 }  ||
28066 {
28067   tmp=./conf$$-$RANDOM
28068   (umask 077 && mkdir "$tmp")
28069 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28070
28071 # Set up the scripts for CONFIG_FILES section.
28072 # No need to generate them if there are no CONFIG_FILES.
28073 # This happens for instance with `./config.status config.h'.
28074 if test -n "$CONFIG_FILES"; then
28075
28076 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28077   ac_cs_awk_getline=:
28078   ac_cs_awk_pipe_init=
28079   ac_cs_awk_read_file='
28080       while ((getline aline < (F[key])) > 0)
28081         print(aline)
28082       close(F[key])'
28083   ac_cs_awk_pipe_fini=
28084 else
28085   ac_cs_awk_getline=false
28086   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28087   ac_cs_awk_read_file='
28088       print "|#_!!_#|"
28089       print "cat " F[key] " &&"
28090       '$ac_cs_awk_pipe_init
28091   # The final `:' finishes the AND list.
28092   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28093 fi
28094 ac_cr=`echo X | tr X '\015'`
28095 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28096 # But we know of no other shell where ac_cr would be empty at this
28097 # point, so we can use a bashism as a fallback.
28098 if test "x$ac_cr" = x; then
28099   eval ac_cr=\$\'\\r\'
28100 fi
28101 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28102 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28103   ac_cs_awk_cr='\r'
28104 else
28105   ac_cs_awk_cr=$ac_cr
28106 fi
28107
28108 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28109 _ACEOF
28110
28111 # Create commands to substitute file output variables.
28112 {
28113   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28114   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28115   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28116   echo "_ACAWK" &&
28117   echo "_ACEOF"
28118 } >conf$$files.sh &&
28119 . ./conf$$files.sh ||
28120   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28121 rm -f conf$$files.sh
28122
28123 {
28124   echo "cat >conf$$subs.awk <<_ACEOF" &&
28125   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28126   echo "_ACEOF"
28127 } >conf$$subs.sh ||
28128   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28129 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28130 ac_delim='%!_!# '
28131 for ac_last_try in false false false false false :; do
28132   . ./conf$$subs.sh ||
28133     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28134
28135   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28136   if test $ac_delim_n = $ac_delim_num; then
28137     break
28138   elif $ac_last_try; then
28139     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28140   else
28141     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28142   fi
28143 done
28144 rm -f conf$$subs.sh
28145
28146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28147 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28148 _ACEOF
28149 sed -n '
28150 h
28151 s/^/S["/; s/!.*/"]=/
28152 p
28153 g
28154 s/^[^!]*!//
28155 :repl
28156 t repl
28157 s/'"$ac_delim"'$//
28158 t delim
28159 :nl
28160 h
28161 s/\(.\{148\}\).*/\1/
28162 t more1
28163 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28164 p
28165 n
28166 b repl
28167 :more1
28168 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28169 p
28170 g
28171 s/.\{148\}//
28172 t nl
28173 :delim
28174 h
28175 s/\(.\{148\}\).*/\1/
28176 t more2
28177 s/["\\]/\\&/g; s/^/"/; s/$/"/
28178 p
28179 b
28180 :more2
28181 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28182 p
28183 g
28184 s/.\{148\}//
28185 t delim
28186 ' <conf$$subs.awk | sed '
28187 /^[^""]/{
28188   N
28189   s/\n//
28190 }
28191 ' >>$CONFIG_STATUS || ac_write_fail=1
28192 rm -f conf$$subs.awk
28193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28194 _ACAWK
28195 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28196   for (key in S) S_is_set[key] = 1
28197   FS = "\a"
28198   \$ac_cs_awk_pipe_init
28199 }
28200 {
28201   line = $ 0
28202   nfields = split(line, field, "@")
28203   substed = 0
28204   len = length(field[1])
28205   for (i = 2; i < nfields; i++) {
28206     key = field[i]
28207     keylen = length(key)
28208     if (S_is_set[key]) {
28209       value = S[key]
28210       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28211       len += length(value) + length(field[++i])
28212       substed = 1
28213     } else
28214       len += 1 + keylen
28215   }
28216   if (nfields == 3 && !substed) {
28217     key = field[2]
28218     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
28219       \$ac_cs_awk_read_file
28220       next
28221     }
28222   }
28223   print line
28224 }
28225 \$ac_cs_awk_pipe_fini
28226 _ACAWK
28227 _ACEOF
28228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28229 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28230   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28231 else
28232   cat
28233 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28234   || as_fn_error "could not setup config files machinery" "$LINENO" 5
28235 _ACEOF
28236
28237 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28238 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28239 # trailing colons and then remove the whole line if VPATH becomes empty
28240 # (actually we leave an empty line to preserve line numbers).
28241 if test "x$srcdir" = x.; then
28242   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28243 s/:*\$(srcdir):*/:/
28244 s/:*\${srcdir}:*/:/
28245 s/:*@srcdir@:*/:/
28246 s/^\([^=]*=[     ]*\):*/\1/
28247 s/:*$//
28248 s/^[^=]*=[       ]*$//
28249 }'
28250 fi
28251
28252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28253 fi # test -n "$CONFIG_FILES"
28254
28255 # Set up the scripts for CONFIG_HEADERS section.
28256 # No need to generate them if there are no CONFIG_HEADERS.
28257 # This happens for instance with `./config.status Makefile'.
28258 if test -n "$CONFIG_HEADERS"; then
28259 cat >"$tmp/defines.awk" <<\_ACAWK ||
28260 BEGIN {
28261 _ACEOF
28262
28263 # Transform confdefs.h into an awk script `defines.awk', embedded as
28264 # here-document in config.status, that substitutes the proper values into
28265 # config.h.in to produce config.h.
28266
28267 # Create a delimiter string that does not exist in confdefs.h, to ease
28268 # handling of long lines.
28269 ac_delim='%!_!# '
28270 for ac_last_try in false false :; do
28271   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28272   if test -z "$ac_t"; then
28273     break
28274   elif $ac_last_try; then
28275     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28276   else
28277     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28278   fi
28279 done
28280
28281 # For the awk script, D is an array of macro values keyed by name,
28282 # likewise P contains macro parameters if any.  Preserve backslash
28283 # newline sequences.
28284
28285 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28286 sed -n '
28287 s/.\{148\}/&'"$ac_delim"'/g
28288 t rset
28289 :rset
28290 s/^[     ]*#[    ]*define[       ][      ]*/ /
28291 t def
28292 d
28293 :def
28294 s/\\$//
28295 t bsnl
28296 s/["\\]/\\&/g
28297 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28298 D["\1"]=" \3"/p
28299 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28300 d
28301 :bsnl
28302 s/["\\]/\\&/g
28303 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28304 D["\1"]=" \3\\\\\\n"\\/p
28305 t cont
28306 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28307 t cont
28308 d
28309 :cont
28310 n
28311 s/.\{148\}/&'"$ac_delim"'/g
28312 t clear
28313 :clear
28314 s/\\$//
28315 t bsnlc
28316 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28317 d
28318 :bsnlc
28319 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28320 b cont
28321 ' <confdefs.h | sed '
28322 s/'"$ac_delim"'/"\\\
28323 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28324
28325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28326   for (key in D) D_is_set[key] = 1
28327   FS = "\a"
28328 }
28329 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28330   line = \$ 0
28331   split(line, arg, " ")
28332   if (arg[1] == "#") {
28333     defundef = arg[2]
28334     mac1 = arg[3]
28335   } else {
28336     defundef = substr(arg[1], 2)
28337     mac1 = arg[2]
28338   }
28339   split(mac1, mac2, "(") #)
28340   macro = mac2[1]
28341   prefix = substr(line, 1, index(line, defundef) - 1)
28342   if (D_is_set[macro]) {
28343     # Preserve the white space surrounding the "#".
28344     print prefix "define", macro P[macro] D[macro]
28345     next
28346   } else {
28347     # Replace #undef with comments.  This is necessary, for example,
28348     # in the case of _POSIX_SOURCE, which is predefined and required
28349     # on some systems where configure will not decide to define it.
28350     if (defundef == "undef") {
28351       print "/*", prefix defundef, macro, "*/"
28352       next
28353     }
28354   }
28355 }
28356 { print }
28357 _ACAWK
28358 _ACEOF
28359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28360   as_fn_error "could not setup config headers machinery" "$LINENO" 5
28361 fi # test -n "$CONFIG_HEADERS"
28362
28363
28364 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28365 shift
28366 for ac_tag
28367 do
28368   case $ac_tag in
28369   :[FHLC]) ac_mode=$ac_tag; continue;;
28370   esac
28371   case $ac_mode$ac_tag in
28372   :[FHL]*:*);;
28373   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28374   :[FH]-) ac_tag=-:-;;
28375   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28376   esac
28377   ac_save_IFS=$IFS
28378   IFS=:
28379   set x $ac_tag
28380   IFS=$ac_save_IFS
28381   shift
28382   ac_file=$1
28383   shift
28384
28385   case $ac_mode in
28386   :L) ac_source=$1;;
28387   :[FH])
28388     ac_file_inputs=
28389     for ac_f
28390     do
28391       case $ac_f in
28392       -) ac_f="$tmp/stdin";;
28393       *) # Look for the file first in the build tree, then in the source tree
28394          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28395          # because $ac_f cannot contain `:'.
28396          test -f "$ac_f" ||
28397            case $ac_f in
28398            [\\/$]*) false;;
28399            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28400            esac ||
28401            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28402       esac
28403       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28404       as_fn_append ac_file_inputs " '$ac_f'"
28405     done
28406
28407     # Let's still pretend it is `configure' which instantiates (i.e., don't
28408     # use $as_me), people would be surprised to read:
28409     #    /* config.h.  Generated by config.status.  */
28410     configure_input='Generated from '`
28411           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28412         `' by configure.'
28413     if test x"$ac_file" != x-; then
28414       configure_input="$ac_file.  $configure_input"
28415       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28416 $as_echo "$as_me: creating $ac_file" >&6;}
28417     fi
28418     # Neutralize special characters interpreted by sed in replacement strings.
28419     case $configure_input in #(
28420     *\&* | *\|* | *\\* )
28421        ac_sed_conf_input=`$as_echo "$configure_input" |
28422        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28423     *) ac_sed_conf_input=$configure_input;;
28424     esac
28425
28426     case $ac_tag in
28427     *:-:* | *:-) cat >"$tmp/stdin" \
28428       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28429     esac
28430     ;;
28431   esac
28432
28433   ac_dir=`$as_dirname -- "$ac_file" ||
28434 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28435          X"$ac_file" : 'X\(//\)[^/]' \| \
28436          X"$ac_file" : 'X\(//\)$' \| \
28437          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28438 $as_echo X"$ac_file" |
28439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28440             s//\1/
28441             q
28442           }
28443           /^X\(\/\/\)[^/].*/{
28444             s//\1/
28445             q
28446           }
28447           /^X\(\/\/\)$/{
28448             s//\1/
28449             q
28450           }
28451           /^X\(\/\).*/{
28452             s//\1/
28453             q
28454           }
28455           s/.*/./; q'`
28456   as_dir="$ac_dir"; as_fn_mkdir_p
28457   ac_builddir=.
28458
28459 case "$ac_dir" in
28460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28461 *)
28462   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28463   # A ".." for each directory in $ac_dir_suffix.
28464   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28465   case $ac_top_builddir_sub in
28466   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28467   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28468   esac ;;
28469 esac
28470 ac_abs_top_builddir=$ac_pwd
28471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28472 # for backward compatibility:
28473 ac_top_builddir=$ac_top_build_prefix
28474
28475 case $srcdir in
28476   .)  # We are building in place.
28477     ac_srcdir=.
28478     ac_top_srcdir=$ac_top_builddir_sub
28479     ac_abs_top_srcdir=$ac_pwd ;;
28480   [\\/]* | ?:[\\/]* )  # Absolute name.
28481     ac_srcdir=$srcdir$ac_dir_suffix;
28482     ac_top_srcdir=$srcdir
28483     ac_abs_top_srcdir=$srcdir ;;
28484   *) # Relative name.
28485     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28486     ac_top_srcdir=$ac_top_build_prefix$srcdir
28487     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28488 esac
28489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28490
28491
28492   case $ac_mode in
28493   :F)
28494   #
28495   # CONFIG_FILE
28496   #
28497
28498 _ACEOF
28499
28500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28501 # If the template does not know about datarootdir, expand it.
28502 # FIXME: This hack should be removed a few years after 2.60.
28503 ac_datarootdir_hack=; ac_datarootdir_seen=
28504 ac_sed_dataroot='
28505 /datarootdir/ {
28506   p
28507   q
28508 }
28509 /@datadir@/p
28510 /@docdir@/p
28511 /@infodir@/p
28512 /@localedir@/p
28513 /@mandir@/p'
28514 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28515 *datarootdir*) ac_datarootdir_seen=yes;;
28516 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28517   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28518 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28519 _ACEOF
28520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28521   ac_datarootdir_hack='
28522   s&@datadir@&$datadir&g
28523   s&@docdir@&$docdir&g
28524   s&@infodir@&$infodir&g
28525   s&@localedir@&$localedir&g
28526   s&@mandir@&$mandir&g
28527   s&\\\${datarootdir}&$datarootdir&g' ;;
28528 esac
28529 _ACEOF
28530
28531 # Neutralize VPATH when `$srcdir' = `.'.
28532 # Shell code in configure.ac might set extrasub.
28533 # FIXME: do we really want to maintain this feature?
28534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28535 ac_sed_extra="$ac_vpsub
28536 $extrasub
28537 _ACEOF
28538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28539 :t
28540 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28541 s|@configure_input@|$ac_sed_conf_input|;t t
28542 s&@top_builddir@&$ac_top_builddir_sub&;t t
28543 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28544 s&@srcdir@&$ac_srcdir&;t t
28545 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28546 s&@top_srcdir@&$ac_top_srcdir&;t t
28547 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28548 s&@builddir@&$ac_builddir&;t t
28549 s&@abs_builddir@&$ac_abs_builddir&;t t
28550 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28551 $ac_datarootdir_hack
28552 "
28553 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28554 if $ac_cs_awk_getline; then
28555   $AWK -f "$tmp/subs.awk"
28556 else
28557   $AWK -f "$tmp/subs.awk" | $SHELL
28558 fi >$tmp/out \
28559   || as_fn_error "could not create $ac_file" "$LINENO" 5
28560
28561 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28562   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28563   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28564   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28565 which seems to be undefined.  Please make sure it is defined." >&5
28566 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28567 which seems to be undefined.  Please make sure it is defined." >&2;}
28568
28569   rm -f "$tmp/stdin"
28570   case $ac_file in
28571   -) cat "$tmp/out" && rm -f "$tmp/out";;
28572   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28573   esac \
28574   || as_fn_error "could not create $ac_file" "$LINENO" 5
28575  ;;
28576   :H)
28577   #
28578   # CONFIG_HEADER
28579   #
28580   if test x"$ac_file" != x-; then
28581     {
28582       $as_echo "/* $configure_input  */" \
28583       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28584     } >"$tmp/config.h" \
28585       || as_fn_error "could not create $ac_file" "$LINENO" 5
28586     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28587       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28588 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28589     else
28590       rm -f "$ac_file"
28591       mv "$tmp/config.h" "$ac_file" \
28592         || as_fn_error "could not create $ac_file" "$LINENO" 5
28593     fi
28594   else
28595     $as_echo "/* $configure_input  */" \
28596       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28597       || as_fn_error "could not create -" "$LINENO" 5
28598   fi
28599  ;;
28600
28601   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28602 $as_echo "$as_me: executing $ac_file commands" >&6;}
28603  ;;
28604   esac
28605
28606
28607   case $ac_file$ac_mode in
28608     "as":F) chmod +x as ;;
28609     "collect-ld":F) chmod +x collect-ld ;;
28610     "nm":F) chmod +x nm ;;
28611     "default":C)
28612 case ${CONFIG_HEADERS} in
28613   *auto-host.h:config.in*)
28614   echo > cstamp-h ;;
28615 esac
28616 # Make sure all the subdirs exist.
28617 for d in $subdirs doc build common c-family
28618 do
28619     test -d $d || mkdir $d
28620 done
28621  ;;
28622
28623   esac
28624 done # for ac_tag
28625
28626
28627 as_fn_exit 0
28628 _ACEOF
28629 ac_clean_files=$ac_clean_files_save
28630
28631 test $ac_write_fail = 0 ||
28632   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28633
28634
28635 # configure is writing to config.log, and then calls config.status.
28636 # config.status does its own redirection, appending to config.log.
28637 # Unfortunately, on DOS this fails, as config.log is still kept open
28638 # by configure, so config.status won't be able to write to it; its
28639 # output is simply discarded.  So we exec the FD to /dev/null,
28640 # effectively closing config.log, so it can be properly (re)opened and
28641 # appended to by config.status.  When coming back to configure, we
28642 # need to make the FD available again.
28643 if test "$no_create" != yes; then
28644   ac_cs_success=:
28645   ac_config_status_args=
28646   test "$silent" = yes &&
28647     ac_config_status_args="$ac_config_status_args --quiet"
28648   exec 5>/dev/null
28649   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28650   exec 5>>config.log
28651   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28652   # would make configure fail if this is the last instruction.
28653   $ac_cs_success || as_fn_exit $?
28654 fi
28655 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28656   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28657 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28658 fi
28659
28660