Update to 4.8.2.
[platform/upstream/gcc48.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 ISLINC
608 ISLLIBS
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_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
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 libgcc_visibility
678 gcc_cv_readelf
679 gcc_cv_objdump
680 ORIGINAL_NM_FOR_TARGET
681 gcc_cv_nm
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
684 gcc_cv_ld
685 ORIGINAL_AS_FOR_TARGET
686 gcc_cv_as
687 enable_fast_install
688 objdir
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 STRIP
695 OBJDUMP
696 ac_ct_DUMPBIN
697 DUMPBIN
698 LD
699 FGREP
700 SED
701 LIBTOOL
702 collect2
703 STMP_FIXINC
704 BUILD_LDFLAGS
705 BUILD_CXXFLAGS
706 BUILD_CFLAGS
707 CXX_FOR_BUILD
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
711 ALL
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 NATIVE_SYSTEM_HEADER_DIR
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
734 EXTRA_GCC_LIBS
735 GNAT_LIBEXC
736 COLLECT2_LIBS
737 CXXCPP
738 AR
739 NM
740 BISON
741 FLEX
742 GENERATED_MANPAGES
743 BUILD_INFO
744 MAKEINFO
745 have_mktemp_command
746 make_compare_target
747 INSTALL_DATA
748 INSTALL_PROGRAM
749 INSTALL
750 ranlib_flags
751 RANLIB
752 LN
753 LN_S
754 AWK
755 SET_MAKE
756 REPORT_BUGS_TEXI
757 REPORT_BUGS_TO
758 PKGVERSION
759 CONFIGURE_SPECS
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
762 TARGET_SYSTEM_ROOT
763 SYSROOT_CFLAGS_FOR_TARGET
764 enable_shared
765 enable_fixed_point
766 enable_decimal_float
767 with_float
768 with_cpu
769 enable_multiarch
770 enable_multilib
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREECHECKING
776 TREEBROWSER
777 nocommon_flag
778 noexception_flags
779 warn_cxxflags
780 warn_cflags
781 c_strict_warn
782 strict_warn
783 c_loose_warn
784 loose_warn
785 EGREP
786 GREP
787 CPP
788 PICFLAG_FOR_TARGET
789 OUTPUT_OPTION
790 NO_MINUS_C_MINUS_O
791 GNATMAKE
792 GNATBIND
793 ac_ct_CXX
794 CXXFLAGS
795 CXX
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
802 CC
803 GENINSRC
804 target_subdir
805 host_subdir
806 build_subdir
807 build_libsubdir
808 target_noncanonical
809 target_os
810 target_vendor
811 target_cpu
812 target
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL'
859 ac_subst_files='option_includes
860 language_hooks'
861 ac_user_opts='
862 enable_option_checking
863 with_build_libsubdir
864 with_local_prefix
865 with_gxx_include_dir
866 with_cpp_install_dir
867 enable_generated_files_in_srcdir
868 with_gnu_ld
869 with_ld
870 with_demangler_in_ld
871 with_gnu_as
872 with_as
873 enable_largefile
874 enable_werror_always
875 enable_checking
876 enable_coverage
877 enable_gather_detailed_mem_stats
878 with_stabs
879 enable_multilib
880 enable_multiarch
881 enable___cxa_atexit
882 enable_decimal_float
883 enable_fixed_point
884 enable_threads
885 enable_tls
886 enable_objc_gc
887 with_dwarf2
888 enable_shared
889 with_native_system_header_dir
890 with_build_sysroot
891 with_sysroot
892 with_specs
893 with_pkgversion
894 with_bugurl
895 enable_languages
896 with_multilib_list
897 enable_rpath
898 with_libiconv_prefix
899 enable_sjlj_exceptions
900 enable_secureplt
901 enable_leading_mingw64_underscores
902 enable_cld
903 enable_frame_pointer
904 enable_win32_registry
905 enable_static
906 with_pic
907 enable_fast_install
908 enable_libtool_lock
909 with_plugin_ld
910 enable_gnu_indirect_function
911 enable_initfini_array
912 enable_comdat
913 enable_gnu_unique_object
914 enable_linker_build_id
915 with_long_double_128
916 with_gc
917 with_system_zlib
918 enable_maintainer_mode
919 enable_version_specific_runtime_libs
920 enable_plugin
921 enable_libquadmath_support
922 with_linker_hash_style
923 '
924       ac_precious_vars='build_alias
925 host_alias
926 target_alias
927 CC
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
932 CXX
933 CXXFLAGS
934 CCC
935 CPP
936 CXXCPP
937 GMPLIBS
938 GMPINC
939 ISLLIBS
940 ISLINC
941 CLOOGLIBS
942 CLOOGINC'
943
944
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
966
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
992
993 ac_prev=
994 ac_dashdash=
995 for ac_option
996 do
997   # If the previous option needs an argument, assign it.
998   if test -n "$ac_prev"; then
999     eval $ac_prev=\$ac_option
1000     ac_prev=
1001     continue
1002   fi
1003
1004   case $ac_option in
1005   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006   *)    ac_optarg=yes ;;
1007   esac
1008
1009   # Accept the important Cygnus configure options, so we can diagnose typos.
1010
1011   case $ac_dashdash$ac_option in
1012   --)
1013     ac_dashdash=yes ;;
1014
1015   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016     ac_prev=bindir ;;
1017   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018     bindir=$ac_optarg ;;
1019
1020   -build | --build | --buil | --bui | --bu)
1021     ac_prev=build_alias ;;
1022   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023     build_alias=$ac_optarg ;;
1024
1025   -cache-file | --cache-file | --cache-fil | --cache-fi \
1026   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027     ac_prev=cache_file ;;
1028   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030     cache_file=$ac_optarg ;;
1031
1032   --config-cache | -C)
1033     cache_file=config.cache ;;
1034
1035   -datadir | --datadir | --datadi | --datad)
1036     ac_prev=datadir ;;
1037   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038     datadir=$ac_optarg ;;
1039
1040   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041   | --dataroo | --dataro | --datar)
1042     ac_prev=datarootdir ;;
1043   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045     datarootdir=$ac_optarg ;;
1046
1047   -disable-* | --disable-*)
1048     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051       as_fn_error "invalid feature name: $ac_useropt"
1052     ac_useropt_orig=$ac_useropt
1053     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054     case $ac_user_opts in
1055       *"
1056 "enable_$ac_useropt"
1057 "*) ;;
1058       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059          ac_unrecognized_sep=', ';;
1060     esac
1061     eval enable_$ac_useropt=no ;;
1062
1063   -docdir | --docdir | --docdi | --doc | --do)
1064     ac_prev=docdir ;;
1065   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066     docdir=$ac_optarg ;;
1067
1068   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069     ac_prev=dvidir ;;
1070   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071     dvidir=$ac_optarg ;;
1072
1073   -enable-* | --enable-*)
1074     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077       as_fn_error "invalid feature name: $ac_useropt"
1078     ac_useropt_orig=$ac_useropt
1079     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080     case $ac_user_opts in
1081       *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085          ac_unrecognized_sep=', ';;
1086     esac
1087     eval enable_$ac_useropt=\$ac_optarg ;;
1088
1089   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091   | --exec | --exe | --ex)
1092     ac_prev=exec_prefix ;;
1093   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095   | --exec=* | --exe=* | --ex=*)
1096     exec_prefix=$ac_optarg ;;
1097
1098   -gas | --gas | --ga | --g)
1099     # Obsolete; use --with-gas.
1100     with_gas=yes ;;
1101
1102   -help | --help | --hel | --he | -h)
1103     ac_init_help=long ;;
1104   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105     ac_init_help=recursive ;;
1106   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107     ac_init_help=short ;;
1108
1109   -host | --host | --hos | --ho)
1110     ac_prev=host_alias ;;
1111   -host=* | --host=* | --hos=* | --ho=*)
1112     host_alias=$ac_optarg ;;
1113
1114   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115     ac_prev=htmldir ;;
1116   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117   | --ht=*)
1118     htmldir=$ac_optarg ;;
1119
1120   -includedir | --includedir | --includedi | --included | --include \
1121   | --includ | --inclu | --incl | --inc)
1122     ac_prev=includedir ;;
1123   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124   | --includ=* | --inclu=* | --incl=* | --inc=*)
1125     includedir=$ac_optarg ;;
1126
1127   -infodir | --infodir | --infodi | --infod | --info | --inf)
1128     ac_prev=infodir ;;
1129   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130     infodir=$ac_optarg ;;
1131
1132   -libdir | --libdir | --libdi | --libd)
1133     ac_prev=libdir ;;
1134   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135     libdir=$ac_optarg ;;
1136
1137   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138   | --libexe | --libex | --libe)
1139     ac_prev=libexecdir ;;
1140   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141   | --libexe=* | --libex=* | --libe=*)
1142     libexecdir=$ac_optarg ;;
1143
1144   -localedir | --localedir | --localedi | --localed | --locale)
1145     ac_prev=localedir ;;
1146   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147     localedir=$ac_optarg ;;
1148
1149   -localstatedir | --localstatedir | --localstatedi | --localstated \
1150   | --localstate | --localstat | --localsta | --localst | --locals)
1151     ac_prev=localstatedir ;;
1152   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154     localstatedir=$ac_optarg ;;
1155
1156   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157     ac_prev=mandir ;;
1158   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159     mandir=$ac_optarg ;;
1160
1161   -nfp | --nfp | --nf)
1162     # Obsolete; use --without-fp.
1163     with_fp=no ;;
1164
1165   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166   | --no-cr | --no-c | -n)
1167     no_create=yes ;;
1168
1169   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171     no_recursion=yes ;;
1172
1173   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175   | --oldin | --oldi | --old | --ol | --o)
1176     ac_prev=oldincludedir ;;
1177   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180     oldincludedir=$ac_optarg ;;
1181
1182   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183     ac_prev=prefix ;;
1184   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185     prefix=$ac_optarg ;;
1186
1187   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188   | --program-pre | --program-pr | --program-p)
1189     ac_prev=program_prefix ;;
1190   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192     program_prefix=$ac_optarg ;;
1193
1194   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195   | --program-suf | --program-su | --program-s)
1196     ac_prev=program_suffix ;;
1197   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199     program_suffix=$ac_optarg ;;
1200
1201   -program-transform-name | --program-transform-name \
1202   | --program-transform-nam | --program-transform-na \
1203   | --program-transform-n | --program-transform- \
1204   | --program-transform | --program-transfor \
1205   | --program-transfo | --program-transf \
1206   | --program-trans | --program-tran \
1207   | --progr-tra | --program-tr | --program-t)
1208     ac_prev=program_transform_name ;;
1209   -program-transform-name=* | --program-transform-name=* \
1210   | --program-transform-nam=* | --program-transform-na=* \
1211   | --program-transform-n=* | --program-transform-=* \
1212   | --program-transform=* | --program-transfor=* \
1213   | --program-transfo=* | --program-transf=* \
1214   | --program-trans=* | --program-tran=* \
1215   | --progr-tra=* | --program-tr=* | --program-t=*)
1216     program_transform_name=$ac_optarg ;;
1217
1218   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219     ac_prev=pdfdir ;;
1220   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221     pdfdir=$ac_optarg ;;
1222
1223   -psdir | --psdir | --psdi | --psd | --ps)
1224     ac_prev=psdir ;;
1225   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226     psdir=$ac_optarg ;;
1227
1228   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229   | -silent | --silent | --silen | --sile | --sil)
1230     silent=yes ;;
1231
1232   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233     ac_prev=sbindir ;;
1234   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235   | --sbi=* | --sb=*)
1236     sbindir=$ac_optarg ;;
1237
1238   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240   | --sharedst | --shareds | --shared | --share | --shar \
1241   | --sha | --sh)
1242     ac_prev=sharedstatedir ;;
1243   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246   | --sha=* | --sh=*)
1247     sharedstatedir=$ac_optarg ;;
1248
1249   -site | --site | --sit)
1250     ac_prev=site ;;
1251   -site=* | --site=* | --sit=*)
1252     site=$ac_optarg ;;
1253
1254   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255     ac_prev=srcdir ;;
1256   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257     srcdir=$ac_optarg ;;
1258
1259   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260   | --syscon | --sysco | --sysc | --sys | --sy)
1261     ac_prev=sysconfdir ;;
1262   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264     sysconfdir=$ac_optarg ;;
1265
1266   -target | --target | --targe | --targ | --tar | --ta | --t)
1267     ac_prev=target_alias ;;
1268   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269     target_alias=$ac_optarg ;;
1270
1271   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272     verbose=yes ;;
1273
1274   -version | --version | --versio | --versi | --vers | -V)
1275     ac_init_version=: ;;
1276
1277   -with-* | --with-*)
1278     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281       as_fn_error "invalid package name: $ac_useropt"
1282     ac_useropt_orig=$ac_useropt
1283     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284     case $ac_user_opts in
1285       *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289          ac_unrecognized_sep=', ';;
1290     esac
1291     eval with_$ac_useropt=\$ac_optarg ;;
1292
1293   -without-* | --without-*)
1294     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297       as_fn_error "invalid package name: $ac_useropt"
1298     ac_useropt_orig=$ac_useropt
1299     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300     case $ac_user_opts in
1301       *"
1302 "with_$ac_useropt"
1303 "*) ;;
1304       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305          ac_unrecognized_sep=', ';;
1306     esac
1307     eval with_$ac_useropt=no ;;
1308
1309   --x)
1310     # Obsolete; use --with-x.
1311     with_x=yes ;;
1312
1313   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314   | --x-incl | --x-inc | --x-in | --x-i)
1315     ac_prev=x_includes ;;
1316   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318     x_includes=$ac_optarg ;;
1319
1320   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322     ac_prev=x_libraries ;;
1323   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325     x_libraries=$ac_optarg ;;
1326
1327   -*) as_fn_error "unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information."
1329     ;;
1330
1331   *=*)
1332     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333     # Reject names that are not valid shell variable names.
1334     case $ac_envvar in #(
1335       '' | [0-9]* | *[!_$as_cr_alnum]* )
1336       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1337     esac
1338     eval $ac_envvar=\$ac_optarg
1339     export $ac_envvar ;;
1340
1341   *)
1342     # FIXME: should be removed in autoconf 3.0.
1343     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347     ;;
1348
1349   esac
1350 done
1351
1352 if test -n "$ac_prev"; then
1353   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354   as_fn_error "missing argument to $ac_option"
1355 fi
1356
1357 if test -n "$ac_unrecognized_opts"; then
1358   case $enable_option_checking in
1359     no) ;;
1360     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1361     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362   esac
1363 fi
1364
1365 # Check all directory arguments for consistency.
1366 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367                 datadir sysconfdir sharedstatedir localstatedir includedir \
1368                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369                 libdir localedir mandir
1370 do
1371   eval ac_val=\$$ac_var
1372   # Remove trailing slashes.
1373   case $ac_val in
1374     */ )
1375       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376       eval $ac_var=\$ac_val;;
1377   esac
1378   # Be sure to have absolute directory names.
1379   case $ac_val in
1380     [\\/$]* | ?:[\\/]* )  continue;;
1381     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382   esac
1383   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1384 done
1385
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1389 build=$build_alias
1390 host=$host_alias
1391 target=$target_alias
1392
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395   if test "x$build_alias" = x; then
1396     cross_compiling=maybe
1397     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398     If a cross compiler is detected then cross compile mode will be used." >&2
1399   elif test "x$build_alias" != "x$host_alias"; then
1400     cross_compiling=yes
1401   fi
1402 fi
1403
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407 test "$silent" = yes && exec 6>/dev/null
1408
1409
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413   as_fn_error "working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415   as_fn_error "pwd does not report name of working directory"
1416
1417
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420   ac_srcdir_defaulted=yes
1421   # Try the directory containing this script, then the parent directory.
1422   ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424          X"$as_myself" : 'X\(//\)[^/]' \| \
1425          X"$as_myself" : 'X\(//\)$' \| \
1426          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\/\)[^/].*/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\/\)$/{
1437             s//\1/
1438             q
1439           }
1440           /^X\(\/\).*/{
1441             s//\1/
1442             q
1443           }
1444           s/.*/./; q'`
1445   srcdir=$ac_confdir
1446   if test ! -r "$srcdir/$ac_unique_file"; then
1447     srcdir=..
1448   fi
1449 else
1450   ac_srcdir_defaulted=no
1451 fi
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1455 fi
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1459         pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462   srcdir=.
1463 fi
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472   eval ac_env_${ac_var}_value=\$${ac_var}
1473   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1476
1477 #
1478 # Report the --help message.
1479 #
1480 if test "$ac_init_help" = "long"; then
1481   # Omit some internal or obsolete options to make the list less imposing.
1482   # This message is too long to be a string in the A/UX 3.1 sh.
1483   cat <<_ACEOF
1484 \`configure' configures this package to adapt to many kinds of systems.
1485
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1487
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE.  See below for descriptions of some of the useful variables.
1490
1491 Defaults for the options are specified in brackets.
1492
1493 Configuration:
1494   -h, --help              display this help and exit
1495       --help=short        display options specific to this package
1496       --help=recursive    display the short help of all the included packages
1497   -V, --version           display version information and exit
1498   -q, --quiet, --silent   do not print \`checking...' messages
1499       --cache-file=FILE   cache test results in FILE [disabled]
1500   -C, --config-cache      alias for \`--cache-file=config.cache'
1501   -n, --no-create         do not create output files
1502       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1503
1504 Installation directories:
1505   --prefix=PREFIX         install architecture-independent files in PREFIX
1506                           [$ac_default_prefix]
1507   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1508                           [PREFIX]
1509
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1514
1515 For better control, use the options below.
1516
1517 Fine tuning of the installation directories:
1518   --bindir=DIR            user executables [EPREFIX/bin]
1519   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1520   --libexecdir=DIR        program executables [EPREFIX/libexec]
1521   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1522   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1523   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1524   --libdir=DIR            object code libraries [EPREFIX/lib]
1525   --includedir=DIR        C header files [PREFIX/include]
1526   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1527   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1528   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1529   --infodir=DIR           info documentation [DATAROOTDIR/info]
1530   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1531   --mandir=DIR            man documentation [DATAROOTDIR/man]
1532   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1533   --htmldir=DIR           html documentation [DOCDIR]
1534   --dvidir=DIR            dvi documentation [DOCDIR]
1535   --pdfdir=DIR            pdf documentation [DOCDIR]
1536   --psdir=DIR             ps documentation [DOCDIR]
1537 _ACEOF
1538
1539   cat <<\_ACEOF
1540
1541 Program names:
1542   --program-prefix=PREFIX            prepend PREFIX to installed program names
1543   --program-suffix=SUFFIX            append SUFFIX to installed program names
1544   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1545
1546 System types:
1547   --build=BUILD     configure for building on BUILD [guessed]
1548   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1549   --target=TARGET   configure for building compilers for TARGET [HOST]
1550 _ACEOF
1551 fi
1552
1553 if test -n "$ac_init_help"; then
1554
1555   cat <<\_ACEOF
1556
1557 Optional Features:
1558   --disable-option-checking  ignore unrecognized --enable/--with options
1559   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1560   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1561   --enable-generated-files-in-srcdir
1562                           put copies of generated files in source dir intended
1563                           for creating source tarballs for users without
1564                           texinfo bison or flex
1565   --disable-largefile     omit support for large files
1566   --enable-werror-always  enable -Werror despite compiler version
1567   --enable-checking[=LIST]
1568                           enable expensive run-time checks. With LIST, enable
1569                           only specific categories of checks. Categories are:
1570                           yes,no,all,none,release. Flags are:
1571                           assert,df,fold,gc,gcac,gimple,misc,
1572                           rtlflag,rtl,runtime,tree,valgrind,types
1573   --enable-coverage[=LEVEL]
1574                           enable compiler's code coverage collection. Use to
1575                           measure compiler performance and locate unused parts
1576                           of the compiler. With LEVEL, specify optimization.
1577                           Values are opt, noopt, default is noopt
1578   --enable-gather-detailed-mem-stats
1579                           enable detailed memory allocation stats gathering
1580   --enable-multilib       enable library support for multiple ABIs
1581   --enable-multiarch      enable support for multiarch paths
1582   --enable-__cxa_atexit   enable __cxa_atexit for C++
1583   --enable-decimal-float={no,yes,bid,dpd}
1584                         enable decimal float extension to C.  Selecting 'bid'
1585                         or 'dpd' choses which decimal floating point format
1586                         to use
1587   --enable-fixed-point    enable fixed-point arithmetic extension to C
1588   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1589                           package
1590   --enable-tls            enable or disable generation of tls code overriding
1591                           the assembler check for tls support
1592   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1593                           GNU Objective-C runtime
1594   --disable-shared        don't provide a shared libgcc
1595   --enable-languages=LIST specify which front-ends to build
1596   --disable-rpath         do not hardcode runtime library paths
1597   --enable-sjlj-exceptions
1598                           arrange to use setjmp/longjmp exception handling
1599   --enable-secureplt      enable -msecure-plt by default for PowerPC
1600   --enable-leading-mingw64-underscores
1601                           enable leading underscores on 64 bit mingw targets
1602   --enable-cld            enable -mcld by default for 32bit x86
1603   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1604                           x86
1605   --disable-win32-registry
1606                           disable lookup of installation paths in the Registry
1607                           on Windows hosts
1608   --enable-win32-registry enable registry lookup (default)
1609   --enable-win32-registry=KEY
1610                           use KEY instead of GCC version as the last portion
1611                           of the registry key
1612   --enable-shared[=PKGS]  build shared libraries [default=yes]
1613   --enable-static[=PKGS]  build static libraries [default=yes]
1614   --enable-fast-install[=PKGS]
1615                           optimize for fast installation [default=yes]
1616   --disable-libtool-lock  avoid locking (might break parallel builds)
1617   --enable-gnu-indirect-function
1618                           enable the use of the @gnu_indirect_function to
1619                           glibc systems
1620   --enable-initfini-array       use .init_array/.fini_array sections
1621   --enable-comdat         enable COMDAT group support
1622   --enable-gnu-unique-object
1623                           enable the use of the @gnu_unique_object ELF
1624                           extension on glibc systems
1625   --enable-linker-build-id
1626                           compiler will always pass --build-id to linker
1627   --enable-maintainer-mode
1628                           enable make rules and dependencies not useful (and
1629                           sometimes confusing) to the casual installer
1630   --enable-version-specific-runtime-libs
1631                           specify that runtime libraries should be installed
1632                           in a compiler-specific directory
1633   --enable-plugin         enable plugin support
1634   --disable-libquadmath-support
1635                           disable libquadmath support for Fortran
1636
1637 Optional Packages:
1638   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1639   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1640   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1641   --with-local-prefix=DIR specifies directory to put local include
1642   --with-gxx-include-dir=DIR
1643                           specifies directory to put g++ header files
1644   --with-cpp-install-dir=DIR
1645                           install the user visible C preprocessor in DIR
1646                           (relative to PREFIX) as well as PREFIX/bin
1647   --with-gnu-ld           arrange to work with GNU ld
1648   --with-ld               arrange to use the specified ld (full pathname)
1649   --with-demangler-in-ld  try to use demangler in GNU ld
1650   --with-gnu-as           arrange to work with GNU as
1651   --with-as               arrange to use the specified as (full pathname)
1652   --with-stabs            arrange to use stabs instead of host debug format
1653   --with-dwarf2           force the default debug format to be DWARF 2
1654   --with-native-system-header-dir=dir
1655                           use dir as the directory to look for standard
1656                           system header files in.  Defaults to /usr/include.
1657   --with-build-sysroot=sysroot
1658                           use sysroot as the system root during the build
1659   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1660   --with-specs=SPECS      add SPECS to driver command-line processing
1661   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1662   --with-bugurl=URL       Direct users to URL to report a bug
1663   --with-multilib-list    select multilibs (SH and x86-64 only)
1664   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1665   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1666   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1667   --with-pic              try to use only PIC/non-PIC objects [default=use
1668                           both]
1669   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1670   --with-plugin-ld=[ARG]  specify the plugin linker
1671   --with-long-double-128  use 128-bit long double by default
1672   --with-gc={page,zone}   this option is not supported anymore. It used to
1673                           choose the garbage collection mechanism to use with
1674                           the compiler
1675   --with-system-zlib      use installed libz
1676   --with-linker-hash-style={sysv,gnu,both}
1677                           specify the linker hash style
1678
1679 Some influential environment variables:
1680   CC          C compiler command
1681   CFLAGS      C compiler flags
1682   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1683               nonstandard directory <lib dir>
1684   LIBS        libraries to pass to the linker, e.g. -l<library>
1685   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1686               you have headers in a nonstandard directory <include dir>
1687   CXX         C++ compiler command
1688   CXXFLAGS    C++ compiler flags
1689   CPP         C preprocessor
1690   CXXCPP      C++ preprocessor
1691   GMPLIBS     How to link GMP
1692   GMPINC      How to find GMP include files
1693   ISLLIBS     How to link ISL
1694   ISLINC      How to find ISL include files
1695   CLOOGLIBS   How to link CLOOG
1696   CLOOGINC    How to find CLOOG include files
1697
1698 Use these variables to override the choices made by `configure' or to help
1699 it to find libraries and programs with nonstandard names/locations.
1700
1701 Report bugs to the package provider.
1702 _ACEOF
1703 ac_status=$?
1704 fi
1705
1706 if test "$ac_init_help" = "recursive"; then
1707   # If there are subdirs, report their specific --help.
1708   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1709     test -d "$ac_dir" ||
1710       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711       continue
1712     ac_builddir=.
1713
1714 case "$ac_dir" in
1715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 *)
1717   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1718   # A ".." for each directory in $ac_dir_suffix.
1719   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1720   case $ac_top_builddir_sub in
1721   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1723   esac ;;
1724 esac
1725 ac_abs_top_builddir=$ac_pwd
1726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1727 # for backward compatibility:
1728 ac_top_builddir=$ac_top_build_prefix
1729
1730 case $srcdir in
1731   .)  # We are building in place.
1732     ac_srcdir=.
1733     ac_top_srcdir=$ac_top_builddir_sub
1734     ac_abs_top_srcdir=$ac_pwd ;;
1735   [\\/]* | ?:[\\/]* )  # Absolute name.
1736     ac_srcdir=$srcdir$ac_dir_suffix;
1737     ac_top_srcdir=$srcdir
1738     ac_abs_top_srcdir=$srcdir ;;
1739   *) # Relative name.
1740     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741     ac_top_srcdir=$ac_top_build_prefix$srcdir
1742     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1743 esac
1744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1745
1746     cd "$ac_dir" || { ac_status=$?; continue; }
1747     # Check for guested configure.
1748     if test -f "$ac_srcdir/configure.gnu"; then
1749       echo &&
1750       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751     elif test -f "$ac_srcdir/configure"; then
1752       echo &&
1753       $SHELL "$ac_srcdir/configure" --help=recursive
1754     else
1755       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1756     fi || ac_status=$?
1757     cd "$ac_pwd" || { ac_status=$?; break; }
1758   done
1759 fi
1760
1761 test -n "$ac_init_help" && exit $ac_status
1762 if $ac_init_version; then
1763   cat <<\_ACEOF
1764 configure
1765 generated by GNU Autoconf 2.64
1766
1767 Copyright (C) 2009 Free Software Foundation, Inc.
1768 This configure script is free software; the Free Software Foundation
1769 gives unlimited permission to copy, distribute and modify it.
1770 _ACEOF
1771   exit
1772 fi
1773
1774 ## ------------------------ ##
1775 ## Autoconf initialization. ##
1776 ## ------------------------ ##
1777
1778 # ac_fn_c_try_compile LINENO
1779 # --------------------------
1780 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_compile ()
1782 {
1783   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784   rm -f conftest.$ac_objext
1785   if { { ac_try="$ac_compile"
1786 case "(($ac_try" in
1787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788   *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792   (eval "$ac_compile") 2>conftest.err
1793   ac_status=$?
1794   if test -s conftest.err; then
1795     grep -v '^ *+' conftest.err >conftest.er1
1796     cat conftest.er1 >&5
1797     mv -f conftest.er1 conftest.err
1798   fi
1799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800   test $ac_status = 0; } && {
1801          test -z "$ac_c_werror_flag" ||
1802          test ! -s conftest.err
1803        } && test -s conftest.$ac_objext; then :
1804   ac_retval=0
1805 else
1806   $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809         ac_retval=1
1810 fi
1811   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812   return $ac_retval
1813
1814 } # ac_fn_c_try_compile
1815
1816 # ac_fn_cxx_try_compile LINENO
1817 # ----------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_cxx_try_compile ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   rm -f conftest.$ac_objext
1823   if { { ac_try="$ac_compile"
1824 case "(($ac_try" in
1825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826   *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830   (eval "$ac_compile") 2>conftest.err
1831   ac_status=$?
1832   if test -s conftest.err; then
1833     grep -v '^ *+' conftest.err >conftest.er1
1834     cat conftest.er1 >&5
1835     mv -f conftest.er1 conftest.err
1836   fi
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; } && {
1839          test -z "$ac_cxx_werror_flag" ||
1840          test ! -s conftest.err
1841        } && test -s conftest.$ac_objext; then :
1842   ac_retval=0
1843 else
1844   $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847         ac_retval=1
1848 fi
1849   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850   return $ac_retval
1851
1852 } # ac_fn_cxx_try_compile
1853
1854 # ac_fn_c_try_cpp LINENO
1855 # ----------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_cpp ()
1858 {
1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860   if { { ac_try="$ac_cpp conftest.$ac_ext"
1861 case "(($ac_try" in
1862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863   *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1868   ac_status=$?
1869   if test -s conftest.err; then
1870     grep -v '^ *+' conftest.err >conftest.er1
1871     cat conftest.er1 >&5
1872     mv -f conftest.er1 conftest.err
1873   fi
1874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875   test $ac_status = 0; } >/dev/null && {
1876          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1877          test ! -s conftest.err
1878        }; then :
1879   ac_retval=0
1880 else
1881   $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884     ac_retval=1
1885 fi
1886   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887   return $ac_retval
1888
1889 } # ac_fn_c_try_cpp
1890
1891 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1894 # the include files in INCLUDES and setting the cache variable VAR
1895 # accordingly.
1896 ac_fn_c_check_header_mongrel ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903   $as_echo_n "(cached) " >&6
1904 fi
1905 eval ac_res=\$$3
1906                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 else
1909   # Is the header compilable?
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1911 $as_echo_n "checking $2 usability... " >&6; }
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h.  */
1914 $4
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918   ac_header_compiler=yes
1919 else
1920   ac_header_compiler=no
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1924 $as_echo "$ac_header_compiler" >&6; }
1925
1926 # Is the header present?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1928 $as_echo_n "checking $2 presence... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h.  */
1931 #include <$2>
1932 _ACEOF
1933 if ac_fn_c_try_cpp "$LINENO"; then :
1934   ac_header_preproc=yes
1935 else
1936   ac_header_preproc=no
1937 fi
1938 rm -f conftest.err conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1940 $as_echo "$ac_header_preproc" >&6; }
1941
1942 # So?  What about this header?
1943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1944   yes:no: )
1945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1946 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949     ;;
1950   no:yes:* )
1951     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1952 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1954 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1956 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1958 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1959     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961     ;;
1962 esac
1963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1966   $as_echo_n "(cached) " >&6
1967 else
1968   eval "$3=\$ac_header_compiler"
1969 fi
1970 eval ac_res=\$$3
1971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 fi
1974   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975
1976 } # ac_fn_c_check_header_mongrel
1977
1978 # ac_fn_c_try_run LINENO
1979 # ----------------------
1980 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1981 # that executables *can* be run.
1982 ac_fn_c_try_run ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   if { { ac_try="$ac_link"
1986 case "(($ac_try" in
1987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988   *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992   (eval "$ac_link") 2>&5
1993   ac_status=$?
1994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1996   { { case "(($ac_try" in
1997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998   *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002   (eval "$ac_try") 2>&5
2003   ac_status=$?
2004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005   test $ac_status = 0; }; }; then :
2006   ac_retval=0
2007 else
2008   $as_echo "$as_me: program exited with status $ac_status" >&5
2009        $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2011
2012        ac_retval=$ac_status
2013 fi
2014   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016   return $ac_retval
2017
2018 } # ac_fn_c_try_run
2019
2020 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2021 # -------------------------------------------------------
2022 # Tests whether HEADER exists and can be compiled using the include files in
2023 # INCLUDES, setting the cache variable VAR accordingly.
2024 ac_fn_c_check_header_compile ()
2025 {
2026   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030   $as_echo_n "(cached) " >&6
2031 else
2032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h.  */
2034 $4
2035 #include <$2>
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038   eval "$3=yes"
2039 else
2040   eval "$3=no"
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 fi
2044 eval ac_res=\$$3
2045                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048
2049 } # ac_fn_c_check_header_compile
2050
2051 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2052 # --------------------------------------------
2053 # Tries to find the compile-time value of EXPR in a program that includes
2054 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2055 # computed
2056 ac_fn_c_compute_int ()
2057 {
2058   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059   if test "$cross_compiling" = yes; then
2060     # Depending upon the size, compute the lo and hi bounds.
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 $4
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !(($2) >= 0)];
2068 test_array [0] = 0
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075   ac_lo=0 ac_mid=0
2076   while :; do
2077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h.  */
2079 $4
2080 int
2081 main ()
2082 {
2083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084 test_array [0] = 0
2085
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091   ac_hi=$ac_mid; break
2092 else
2093   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2094                         if test $ac_lo -le $ac_mid; then
2095                           ac_lo= ac_hi=
2096                           break
2097                         fi
2098                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101   done
2102 else
2103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h.  */
2105 $4
2106 int
2107 main ()
2108 {
2109 static int test_array [1 - 2 * !(($2) < 0)];
2110 test_array [0] = 0
2111
2112   ;
2113   return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117   ac_hi=-1 ac_mid=-1
2118   while :; do
2119     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h.  */
2121 $4
2122 int
2123 main ()
2124 {
2125 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2126 test_array [0] = 0
2127
2128   ;
2129   return 0;
2130 }
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133   ac_lo=$ac_mid; break
2134 else
2135   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2136                         if test $ac_mid -le $ac_hi; then
2137                           ac_lo= ac_hi=
2138                           break
2139                         fi
2140                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143   done
2144 else
2145   ac_lo= ac_hi=
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 # Binary search between lo and hi bounds.
2151 while test "x$ac_lo" != "x$ac_hi"; do
2152   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h.  */
2155 $4
2156 int
2157 main ()
2158 {
2159 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160 test_array [0] = 0
2161
2162   ;
2163   return 0;
2164 }
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167   ac_hi=$ac_mid
2168 else
2169   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 done
2173 case $ac_lo in #((
2174 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2175 '') ac_retval=1 ;;
2176 esac
2177   else
2178     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h.  */
2180 $4
2181 static long int longval () { return $2; }
2182 static unsigned long int ulongval () { return $2; }
2183 #include <stdio.h>
2184 #include <stdlib.h>
2185 int
2186 main ()
2187 {
2188
2189   FILE *f = fopen ("conftest.val", "w");
2190   if (! f)
2191     return 1;
2192   if (($2) < 0)
2193     {
2194       long int i = longval ();
2195       if (i != ($2))
2196         return 1;
2197       fprintf (f, "%ld", i);
2198     }
2199   else
2200     {
2201       unsigned long int i = ulongval ();
2202       if (i != ($2))
2203         return 1;
2204       fprintf (f, "%lu", i);
2205     }
2206   /* Do not output a trailing newline, as this causes \r\n confusion
2207      on some platforms.  */
2208   return ferror (f) || fclose (f) != 0;
2209
2210   ;
2211   return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_run "$LINENO"; then :
2215   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2216 else
2217   ac_retval=1
2218 fi
2219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2220   conftest.$ac_objext conftest.beam conftest.$ac_ext
2221 rm -f conftest.val
2222
2223   fi
2224   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2225   return $ac_retval
2226
2227 } # ac_fn_c_compute_int
2228
2229 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2230 # -------------------------------------------
2231 # Tests whether TYPE exists after having included INCLUDES, setting cache
2232 # variable VAR accordingly.
2233 ac_fn_c_check_type ()
2234 {
2235   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2239   $as_echo_n "(cached) " >&6
2240 else
2241   eval "$3=no"
2242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h.  */
2244 $4
2245 int
2246 main ()
2247 {
2248 if (sizeof ($2))
2249          return 0;
2250   ;
2251   return 0;
2252 }
2253 _ACEOF
2254 if ac_fn_c_try_compile "$LINENO"; then :
2255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h.  */
2257 $4
2258 int
2259 main ()
2260 {
2261 if (sizeof (($2)))
2262             return 0;
2263   ;
2264   return 0;
2265 }
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268
2269 else
2270   eval "$3=yes"
2271 fi
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 fi
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 fi
2276 eval ac_res=\$$3
2277                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280
2281 } # ac_fn_c_check_type
2282
2283 # ac_fn_c_find_intX_t LINENO BITS VAR
2284 # -----------------------------------
2285 # Finds a signed integer type with width BITS, setting cache variable VAR
2286 # accordingly.
2287 ac_fn_c_find_intX_t ()
2288 {
2289   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2291 $as_echo_n "checking for int$2_t... " >&6; }
2292 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2293   $as_echo_n "(cached) " >&6
2294 else
2295   eval "$3=no"
2296      for ac_type in int$2_t 'int' 'long int' \
2297          'long long int' 'short int' 'signed char'; do
2298        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h.  */
2300 $ac_includes_default
2301 int
2302 main ()
2303 {
2304 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2305 test_array [0] = 0
2306
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 if ac_fn_c_try_compile "$LINENO"; then :
2312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h.  */
2314 $ac_includes_default
2315 int
2316 main ()
2317 {
2318 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2319                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2320 test_array [0] = 0
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327
2328 else
2329   case $ac_type in #(
2330   int$2_t) :
2331     eval "$3=yes" ;; #(
2332   *) :
2333     eval "$3=\$ac_type" ;;
2334 esac
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 fi
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339        eval as_val=\$$3
2340    if test "x$as_val" = x""no; then :
2341
2342 else
2343   break
2344 fi
2345      done
2346 fi
2347 eval ac_res=\$$3
2348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2351
2352 } # ac_fn_c_find_intX_t
2353
2354 # ac_fn_c_try_link LINENO
2355 # -----------------------
2356 # Try to link conftest.$ac_ext, and return whether this succeeded.
2357 ac_fn_c_try_link ()
2358 {
2359   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360   rm -f conftest.$ac_objext conftest$ac_exeext
2361   if { { ac_try="$ac_link"
2362 case "(($ac_try" in
2363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364   *) ac_try_echo=$ac_try;;
2365 esac
2366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367 $as_echo "$ac_try_echo"; } >&5
2368   (eval "$ac_link") 2>conftest.err
2369   ac_status=$?
2370   if test -s conftest.err; then
2371     grep -v '^ *+' conftest.err >conftest.er1
2372     cat conftest.er1 >&5
2373     mv -f conftest.er1 conftest.err
2374   fi
2375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376   test $ac_status = 0; } && {
2377          test -z "$ac_c_werror_flag" ||
2378          test ! -s conftest.err
2379        } && test -s conftest$ac_exeext && {
2380          test "$cross_compiling" = yes ||
2381          $as_test_x conftest$ac_exeext
2382        }; then :
2383   ac_retval=0
2384 else
2385   $as_echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2387
2388         ac_retval=1
2389 fi
2390   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2391   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2392   # interfere with the next link command; also delete a directory that is
2393   # left behind by Apple's compiler.  We do this before executing the actions.
2394   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2395   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2396   return $ac_retval
2397
2398 } # ac_fn_c_try_link
2399
2400 # ac_fn_c_find_uintX_t LINENO BITS VAR
2401 # ------------------------------------
2402 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2403 # accordingly.
2404 ac_fn_c_find_uintX_t ()
2405 {
2406   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2408 $as_echo_n "checking for uint$2_t... " >&6; }
2409 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2410   $as_echo_n "(cached) " >&6
2411 else
2412   eval "$3=no"
2413      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2414          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2415        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h.  */
2417 $ac_includes_default
2418 int
2419 main ()
2420 {
2421 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2422 test_array [0] = 0
2423
2424   ;
2425   return 0;
2426 }
2427 _ACEOF
2428 if ac_fn_c_try_compile "$LINENO"; then :
2429   case $ac_type in #(
2430   uint$2_t) :
2431     eval "$3=yes" ;; #(
2432   *) :
2433     eval "$3=\$ac_type" ;;
2434 esac
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437        eval as_val=\$$3
2438    if test "x$as_val" = x""no; then :
2439
2440 else
2441   break
2442 fi
2443      done
2444 fi
2445 eval ac_res=\$$3
2446                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447 $as_echo "$ac_res" >&6; }
2448   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449
2450 } # ac_fn_c_find_uintX_t
2451
2452 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2453 # ----------------------------------------------
2454 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2455 ac_fn_c_check_header_preproc ()
2456 {
2457   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2459 $as_echo_n "checking for $2... " >&6; }
2460 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2461   $as_echo_n "(cached) " >&6
2462 else
2463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h.  */
2465 #include <$2>
2466 _ACEOF
2467 if ac_fn_c_try_cpp "$LINENO"; then :
2468   eval "$3=yes"
2469 else
2470   eval "$3=no"
2471 fi
2472 rm -f conftest.err conftest.$ac_ext
2473 fi
2474 eval ac_res=\$$3
2475                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 $as_echo "$ac_res" >&6; }
2477   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478
2479 } # ac_fn_c_check_header_preproc
2480
2481 # ac_fn_cxx_try_cpp LINENO
2482 # ------------------------
2483 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2484 ac_fn_cxx_try_cpp ()
2485 {
2486   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2487   if { { ac_try="$ac_cpp conftest.$ac_ext"
2488 case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493 $as_echo "$ac_try_echo"; } >&5
2494   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2495   ac_status=$?
2496   if test -s conftest.err; then
2497     grep -v '^ *+' conftest.err >conftest.er1
2498     cat conftest.er1 >&5
2499     mv -f conftest.er1 conftest.err
2500   fi
2501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2502   test $ac_status = 0; } >/dev/null && {
2503          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2504          test ! -s conftest.err
2505        }; then :
2506   ac_retval=0
2507 else
2508   $as_echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511     ac_retval=1
2512 fi
2513   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514   return $ac_retval
2515
2516 } # ac_fn_cxx_try_cpp
2517
2518 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2519 # ------------------------------------------------
2520 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2521 ac_fn_cxx_check_header_preproc ()
2522 {
2523   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525 $as_echo_n "checking for $2... " >&6; }
2526 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2527   $as_echo_n "(cached) " >&6
2528 else
2529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h.  */
2531 #include <$2>
2532 _ACEOF
2533 if ac_fn_cxx_try_cpp "$LINENO"; then :
2534   eval "$3=yes"
2535 else
2536   eval "$3=no"
2537 fi
2538 rm -f conftest.err conftest.$ac_ext
2539 fi
2540 eval ac_res=\$$3
2541                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2544
2545 } # ac_fn_cxx_check_header_preproc
2546
2547 # ac_fn_c_check_func LINENO FUNC VAR
2548 # ----------------------------------
2549 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2550 ac_fn_c_check_func ()
2551 {
2552   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2556   $as_echo_n "(cached) " >&6
2557 else
2558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h.  */
2560 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2562 #define $2 innocuous_$2
2563
2564 /* System header to define __stub macros and hopefully few prototypes,
2565     which can conflict with char $2 (); below.
2566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2567     <limits.h> exists even on freestanding compilers.  */
2568
2569 #ifdef __STDC__
2570 # include <limits.h>
2571 #else
2572 # include <assert.h>
2573 #endif
2574
2575 #undef $2
2576
2577 /* Override any GCC internal prototype to avoid an error.
2578    Use char because int might match the return type of a GCC
2579    builtin and then its argument prototype would still apply.  */
2580 #ifdef __cplusplus
2581 extern "C"
2582 #endif
2583 char $2 ();
2584 /* The GNU C library defines this for functions which it implements
2585     to always fail with ENOSYS.  Some functions are actually named
2586     something starting with __ and the normal name is an alias.  */
2587 #if defined __stub_$2 || defined __stub___$2
2588 choke me
2589 #endif
2590
2591 int
2592 main ()
2593 {
2594 return $2 ();
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 if ac_fn_c_try_link "$LINENO"; then :
2600   eval "$3=yes"
2601 else
2602   eval "$3=no"
2603 fi
2604 rm -f core conftest.err conftest.$ac_objext \
2605     conftest$ac_exeext conftest.$ac_ext
2606 fi
2607 eval ac_res=\$$3
2608                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609 $as_echo "$ac_res" >&6; }
2610   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2611
2612 } # ac_fn_c_check_func
2613
2614 # ac_fn_cxx_try_link LINENO
2615 # -------------------------
2616 # Try to link conftest.$ac_ext, and return whether this succeeded.
2617 ac_fn_cxx_try_link ()
2618 {
2619   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620   rm -f conftest.$ac_objext conftest$ac_exeext
2621   if { { ac_try="$ac_link"
2622 case "(($ac_try" in
2623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624   *) ac_try_echo=$ac_try;;
2625 esac
2626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627 $as_echo "$ac_try_echo"; } >&5
2628   (eval "$ac_link") 2>conftest.err
2629   ac_status=$?
2630   if test -s conftest.err; then
2631     grep -v '^ *+' conftest.err >conftest.er1
2632     cat conftest.er1 >&5
2633     mv -f conftest.er1 conftest.err
2634   fi
2635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636   test $ac_status = 0; } && {
2637          test -z "$ac_cxx_werror_flag" ||
2638          test ! -s conftest.err
2639        } && test -s conftest$ac_exeext && {
2640          test "$cross_compiling" = yes ||
2641          $as_test_x conftest$ac_exeext
2642        }; then :
2643   ac_retval=0
2644 else
2645   $as_echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648         ac_retval=1
2649 fi
2650   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2651   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2652   # interfere with the next link command; also delete a directory that is
2653   # left behind by Apple's compiler.  We do this before executing the actions.
2654   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2656   return $ac_retval
2657
2658 } # ac_fn_cxx_try_link
2659 cat >config.log <<_ACEOF
2660 This file contains any messages produced by compilers while
2661 running configure, to aid debugging if configure makes a mistake.
2662
2663 It was created by $as_me, which was
2664 generated by GNU Autoconf 2.64.  Invocation command line was
2665
2666   $ $0 $@
2667
2668 _ACEOF
2669 exec 5>>config.log
2670 {
2671 cat <<_ASUNAME
2672 ## --------- ##
2673 ## Platform. ##
2674 ## --------- ##
2675
2676 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2677 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2678 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2679 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2680 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2681
2682 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2683 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2684
2685 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2686 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2687 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2688 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2689 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2690 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2691 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2692
2693 _ASUNAME
2694
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698   IFS=$as_save_IFS
2699   test -z "$as_dir" && as_dir=.
2700     $as_echo "PATH: $as_dir"
2701   done
2702 IFS=$as_save_IFS
2703
2704 } >&5
2705
2706 cat >&5 <<_ACEOF
2707
2708
2709 ## ----------- ##
2710 ## Core tests. ##
2711 ## ----------- ##
2712
2713 _ACEOF
2714
2715
2716 # Keep a trace of the command line.
2717 # Strip out --no-create and --no-recursion so they do not pile up.
2718 # Strip out --silent because we don't want to record it for future runs.
2719 # Also quote any args containing shell meta-characters.
2720 # Make two passes to allow for proper duplicate-argument suppression.
2721 ac_configure_args=
2722 ac_configure_args0=
2723 ac_configure_args1=
2724 ac_must_keep_next=false
2725 for ac_pass in 1 2
2726 do
2727   for ac_arg
2728   do
2729     case $ac_arg in
2730     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2731     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2732     | -silent | --silent | --silen | --sile | --sil)
2733       continue ;;
2734     *\'*)
2735       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2736     esac
2737     case $ac_pass in
2738     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2739     2)
2740       as_fn_append ac_configure_args1 " '$ac_arg'"
2741       if test $ac_must_keep_next = true; then
2742         ac_must_keep_next=false # Got value, back to normal.
2743       else
2744         case $ac_arg in
2745           *=* | --config-cache | -C | -disable-* | --disable-* \
2746           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2747           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2748           | -with-* | --with-* | -without-* | --without-* | --x)
2749             case "$ac_configure_args0 " in
2750               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2751             esac
2752             ;;
2753           -* ) ac_must_keep_next=true ;;
2754         esac
2755       fi
2756       as_fn_append ac_configure_args " '$ac_arg'"
2757       ;;
2758     esac
2759   done
2760 done
2761 { ac_configure_args0=; unset ac_configure_args0;}
2762 { ac_configure_args1=; unset ac_configure_args1;}
2763
2764 # When interrupted or exit'd, cleanup temporary files, and complete
2765 # config.log.  We remove comments because anyway the quotes in there
2766 # would cause problems or look ugly.
2767 # WARNING: Use '\'' to represent an apostrophe within the trap.
2768 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2769 trap 'exit_status=$?
2770   # Save into config.log some information that might help in debugging.
2771   {
2772     echo
2773
2774     cat <<\_ASBOX
2775 ## ---------------- ##
2776 ## Cache variables. ##
2777 ## ---------------- ##
2778 _ASBOX
2779     echo
2780     # The following way of writing the cache mishandles newlines in values,
2781 (
2782   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2783     eval ac_val=\$$ac_var
2784     case $ac_val in #(
2785     *${as_nl}*)
2786       case $ac_var in #(
2787       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2788 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2789       esac
2790       case $ac_var in #(
2791       _ | IFS | as_nl) ;; #(
2792       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2793       *) { eval $ac_var=; unset $ac_var;} ;;
2794       esac ;;
2795     esac
2796   done
2797   (set) 2>&1 |
2798     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2799     *${as_nl}ac_space=\ *)
2800       sed -n \
2801         "s/'\''/'\''\\\\'\'''\''/g;
2802           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2803       ;; #(
2804     *)
2805       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2806       ;;
2807     esac |
2808     sort
2809 )
2810     echo
2811
2812     cat <<\_ASBOX
2813 ## ----------------- ##
2814 ## Output variables. ##
2815 ## ----------------- ##
2816 _ASBOX
2817     echo
2818     for ac_var in $ac_subst_vars
2819     do
2820       eval ac_val=\$$ac_var
2821       case $ac_val in
2822       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2823       esac
2824       $as_echo "$ac_var='\''$ac_val'\''"
2825     done | sort
2826     echo
2827
2828     if test -n "$ac_subst_files"; then
2829       cat <<\_ASBOX
2830 ## ------------------- ##
2831 ## File substitutions. ##
2832 ## ------------------- ##
2833 _ASBOX
2834       echo
2835       for ac_var in $ac_subst_files
2836       do
2837         eval ac_val=\$$ac_var
2838         case $ac_val in
2839         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2840         esac
2841         $as_echo "$ac_var='\''$ac_val'\''"
2842       done | sort
2843       echo
2844     fi
2845
2846     if test -s confdefs.h; then
2847       cat <<\_ASBOX
2848 ## ----------- ##
2849 ## confdefs.h. ##
2850 ## ----------- ##
2851 _ASBOX
2852       echo
2853       cat confdefs.h
2854       echo
2855     fi
2856     test "$ac_signal" != 0 &&
2857       $as_echo "$as_me: caught signal $ac_signal"
2858     $as_echo "$as_me: exit $exit_status"
2859   } >&5
2860   rm -f core *.core core.conftest.* &&
2861     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2862     exit $exit_status
2863 ' 0
2864 for ac_signal in 1 2 13 15; do
2865   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2866 done
2867 ac_signal=0
2868
2869 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2870 rm -f -r conftest* confdefs.h
2871
2872 $as_echo "/* confdefs.h */" > confdefs.h
2873
2874 # Predefined preprocessor variables.
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_NAME "$PACKAGE_NAME"
2878 _ACEOF
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2882 _ACEOF
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2886 _ACEOF
2887
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_STRING "$PACKAGE_STRING"
2890 _ACEOF
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2894 _ACEOF
2895
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_URL "$PACKAGE_URL"
2898 _ACEOF
2899
2900
2901 # Let the site file select an alternate cache file if it wants to.
2902 # Prefer an explicitly selected file to automatically selected ones.
2903 ac_site_file1=NONE
2904 ac_site_file2=NONE
2905 if test -n "$CONFIG_SITE"; then
2906   ac_site_file1=$CONFIG_SITE
2907 elif test "x$prefix" != xNONE; then
2908   ac_site_file1=$prefix/share/config.site
2909   ac_site_file2=$prefix/etc/config.site
2910 else
2911   ac_site_file1=$ac_default_prefix/share/config.site
2912   ac_site_file2=$ac_default_prefix/etc/config.site
2913 fi
2914 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2915 do
2916   test "x$ac_site_file" = xNONE && continue
2917   if test -r "$ac_site_file"; then
2918     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2920     sed 's/^/| /' "$ac_site_file" >&5
2921     . "$ac_site_file"
2922   fi
2923 done
2924
2925 if test -r "$cache_file"; then
2926   # Some versions of bash will fail to source /dev/null (special
2927   # files actually), so we avoid doing that.
2928   if test -f "$cache_file"; then
2929     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2930 $as_echo "$as_me: loading cache $cache_file" >&6;}
2931     case $cache_file in
2932       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2933       *)                      . "./$cache_file";;
2934     esac
2935   fi
2936 else
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2938 $as_echo "$as_me: creating cache $cache_file" >&6;}
2939   >$cache_file
2940 fi
2941
2942 # Check that the precious variables saved in the cache have kept the same
2943 # value.
2944 ac_cache_corrupted=false
2945 for ac_var in $ac_precious_vars; do
2946   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2947   eval ac_new_set=\$ac_env_${ac_var}_set
2948   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2949   eval ac_new_val=\$ac_env_${ac_var}_value
2950   case $ac_old_set,$ac_new_set in
2951     set,)
2952       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2953 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2954       ac_cache_corrupted=: ;;
2955     ,set)
2956       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2957 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2958       ac_cache_corrupted=: ;;
2959     ,);;
2960     *)
2961       if test "x$ac_old_val" != "x$ac_new_val"; then
2962         # differences in whitespace do not lead to failure.
2963         ac_old_val_w=`echo x $ac_old_val`
2964         ac_new_val_w=`echo x $ac_new_val`
2965         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2966           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2967 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2968           ac_cache_corrupted=:
2969         else
2970           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2971 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2972           eval $ac_var=\$ac_old_val
2973         fi
2974         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2975 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2976         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2977 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2978       fi;;
2979   esac
2980   # Pass precious variables to config.status.
2981   if test "$ac_new_set" = set; then
2982     case $ac_new_val in
2983     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2984     *) ac_arg=$ac_var=$ac_new_val ;;
2985     esac
2986     case " $ac_configure_args " in
2987       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2988       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2989     esac
2990   fi
2991 done
2992 if $ac_cache_corrupted; then
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2996 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2997   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2998 fi
2999 ## -------------------- ##
3000 ## Main body of script. ##
3001 ## -------------------- ##
3002
3003 ac_ext=c
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008
3009
3010
3011
3012
3013
3014 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3015
3016
3017 gcc_version=`cat $srcdir/BASE-VER`
3018
3019 # Determine the host, build, and target systems
3020 ac_aux_dir=
3021 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3022   for ac_t in install-sh install.sh shtool; do
3023     if test -f "$ac_dir/$ac_t"; then
3024       ac_aux_dir=$ac_dir
3025       ac_install_sh="$ac_aux_dir/$ac_t -c"
3026       break 2
3027     fi
3028   done
3029 done
3030 if test -z "$ac_aux_dir"; then
3031   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3032 fi
3033
3034 # These three variables are undocumented and unsupported,
3035 # and are intended to be withdrawn in a future Autoconf release.
3036 # They can cause serious problems if a builder's source tree is in a directory
3037 # whose full name contains unusual characters.
3038 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3039 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3040 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3041
3042
3043 # Make sure we can run config.sub.
3044 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3045   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3046
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3048 $as_echo_n "checking build system type... " >&6; }
3049 if test "${ac_cv_build+set}" = set; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   ac_build_alias=$build_alias
3053 test "x$ac_build_alias" = x &&
3054   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3055 test "x$ac_build_alias" = x &&
3056   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3057 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3058   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3059
3060 fi
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3062 $as_echo "$ac_cv_build" >&6; }
3063 case $ac_cv_build in
3064 *-*-*) ;;
3065 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3066 esac
3067 build=$ac_cv_build
3068 ac_save_IFS=$IFS; IFS='-'
3069 set x $ac_cv_build
3070 shift
3071 build_cpu=$1
3072 build_vendor=$2
3073 shift; shift
3074 # Remember, the first character of IFS is used to create $*,
3075 # except with old shells:
3076 build_os=$*
3077 IFS=$ac_save_IFS
3078 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3079
3080
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3082 $as_echo_n "checking host system type... " >&6; }
3083 if test "${ac_cv_host+set}" = set; then :
3084   $as_echo_n "(cached) " >&6
3085 else
3086   if test "x$host_alias" = x; then
3087   ac_cv_host=$ac_cv_build
3088 else
3089   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3090     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3091 fi
3092
3093 fi
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3095 $as_echo "$ac_cv_host" >&6; }
3096 case $ac_cv_host in
3097 *-*-*) ;;
3098 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3099 esac
3100 host=$ac_cv_host
3101 ac_save_IFS=$IFS; IFS='-'
3102 set x $ac_cv_host
3103 shift
3104 host_cpu=$1
3105 host_vendor=$2
3106 shift; shift
3107 # Remember, the first character of IFS is used to create $*,
3108 # except with old shells:
3109 host_os=$*
3110 IFS=$ac_save_IFS
3111 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3112
3113
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3115 $as_echo_n "checking target system type... " >&6; }
3116 if test "${ac_cv_target+set}" = set; then :
3117   $as_echo_n "(cached) " >&6
3118 else
3119   if test "x$target_alias" = x; then
3120   ac_cv_target=$ac_cv_host
3121 else
3122   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3123     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3124 fi
3125
3126 fi
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3128 $as_echo "$ac_cv_target" >&6; }
3129 case $ac_cv_target in
3130 *-*-*) ;;
3131 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3132 esac
3133 target=$ac_cv_target
3134 ac_save_IFS=$IFS; IFS='-'
3135 set x $ac_cv_target
3136 shift
3137 target_cpu=$1
3138 target_vendor=$2
3139 shift; shift
3140 # Remember, the first character of IFS is used to create $*,
3141 # except with old shells:
3142 target_os=$*
3143 IFS=$ac_save_IFS
3144 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3145
3146
3147 # The aliases save the names the user supplied, while $host etc.
3148 # will get canonicalized.
3149 test -n "$target_alias" &&
3150   test "$program_prefix$program_suffix$program_transform_name" = \
3151     NONENONEs,x,x, &&
3152   program_prefix=${target_alias}-
3153
3154 # Determine the noncanonical target name, for directory use.
3155  case ${build_alias} in
3156   "") build_noncanonical=${build} ;;
3157   *) build_noncanonical=${build_alias} ;;
3158 esac
3159
3160  case ${host_alias} in
3161   "") host_noncanonical=${build_noncanonical} ;;
3162   *) host_noncanonical=${host_alias} ;;
3163 esac
3164
3165  case ${target_alias} in
3166   "") target_noncanonical=${host_noncanonical} ;;
3167   *) target_noncanonical=${target_alias} ;;
3168 esac
3169
3170
3171
3172
3173 # Determine the target- and build-specific subdirectories
3174
3175 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3176 # have matching libraries, they should use host libraries: Makefile.tpl
3177 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3178 # However, they still use the build modules, because the corresponding
3179 # host modules (e.g. bison) are only built for the host when bootstrap
3180 # finishes. So:
3181 # - build_subdir is where we find build modules, and never changes.
3182 # - build_libsubdir is where we find build libraries, and can be overridden.
3183
3184 # Prefix 'build-' so this never conflicts with target_subdir.
3185 build_subdir="build-${build_noncanonical}"
3186
3187 # Check whether --with-build-libsubdir was given.
3188 if test "${with_build_libsubdir+set}" = set; then :
3189   withval=$with_build_libsubdir; build_libsubdir="$withval"
3190 else
3191   build_libsubdir="$build_subdir"
3192 fi
3193
3194 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3195 if ( test $srcdir = . && test -d gcc ) \
3196    || test -d $srcdir/../host-${host_noncanonical}; then
3197   host_subdir="host-${host_noncanonical}"
3198 else
3199   host_subdir=.
3200 fi
3201 # No prefix.
3202 target_subdir=${target_noncanonical}
3203
3204
3205 # Set program_transform_name
3206 test "$program_prefix" != NONE &&
3207   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3208 # Use a double $ so make ignores it.
3209 test "$program_suffix" != NONE &&
3210   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3211 # Double any \ or $.
3212 # By default was `s,x,x', remove it if useless.
3213 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3214 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3215
3216
3217 # Check for bogus environment variables.
3218 # Test if LIBRARY_PATH contains the notation for the current directory
3219 # since this would lead to problems installing/building glibc.
3220 # LIBRARY_PATH contains the current directory if one of the following
3221 # is true:
3222 # - one of the terminals (":" and ";") is the first or last sign
3223 # - two terminals occur directly after each other
3224 # - the path contains an element with a dot in it
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3226 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3227 case ${LIBRARY_PATH} in
3228   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3229     library_path_setting="contains current directory"
3230     ;;
3231   *)
3232     library_path_setting="ok"
3233     ;;
3234 esac
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3236 $as_echo "$library_path_setting" >&6; }
3237 if test "$library_path_setting" != "ok"; then
3238 as_fn_error "
3239 *** LIBRARY_PATH shouldn't contain the current directory when
3240 *** building gcc. Please change the environment variable
3241 *** and run configure again." "$LINENO" 5
3242 fi
3243
3244 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3245 # since this would lead to problems installing/building glibc.
3246 # GCC_EXEC_PREFIX contains the current directory if one of the following
3247 # is true:
3248 # - one of the terminals (":" and ";") is the first or last sign
3249 # - two terminals occur directly after each other
3250 # - the path contains an element with a dot in it
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3252 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3253 case ${GCC_EXEC_PREFIX} in
3254   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3255     gcc_exec_prefix_setting="contains current directory"
3256     ;;
3257   *)
3258     gcc_exec_prefix_setting="ok"
3259     ;;
3260 esac
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3262 $as_echo "$gcc_exec_prefix_setting" >&6; }
3263 if test "$gcc_exec_prefix_setting" != "ok"; then
3264 as_fn_error "
3265 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3266 *** building gcc. Please change the environment variable
3267 *** and run configure again." "$LINENO" 5
3268 fi
3269
3270 # -----------
3271 # Directories
3272 # -----------
3273
3274 # Specify the local prefix
3275 local_prefix=
3276
3277 # Check whether --with-local-prefix was given.
3278 if test "${with_local_prefix+set}" = set; then :
3279   withval=$with_local_prefix; case "${withval}" in
3280 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3281 no)     ;;
3282 *)      local_prefix=$with_local_prefix ;;
3283 esac
3284 fi
3285
3286
3287 # Default local prefix if it is empty
3288 if test x$local_prefix = x; then
3289         local_prefix=/usr/local
3290 fi
3291
3292 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3293 # passed in by the toplevel make and thus we'd get different behavior
3294 # depending on where we built the sources.
3295 gcc_gxx_include_dir=
3296 # Specify the g++ header file directory
3297
3298 # Check whether --with-gxx-include-dir was given.
3299 if test "${with_gxx_include_dir+set}" = set; then :
3300   withval=$with_gxx_include_dir; case "${withval}" in
3301 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3302 no)     ;;
3303 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3304 esac
3305 fi
3306
3307
3308 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3309 if test x${gcc_gxx_include_dir} = x; then
3310   if test x${enable_version_specific_runtime_libs} = xyes; then
3311     gcc_gxx_include_dir='${libsubdir}/include/c++'
3312   else
3313     libstdcxx_incdir='include/c++/$(version)'
3314     if test x$host != x$target; then
3315        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3316     fi
3317     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3318   fi
3319 fi
3320
3321 gcc_gxx_include_dir_add_sysroot=0
3322 if test "${with_sysroot+set}" = set; then
3323   gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3324   if test "${gcc_gxx_without_sysroot}"; then
3325     gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3326     gcc_gxx_include_dir_add_sysroot=1
3327   fi
3328 fi
3329
3330
3331 # Check whether --with-cpp_install_dir was given.
3332 if test "${with_cpp_install_dir+set}" = set; then :
3333   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3334   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3335 elif test x$withval != xno; then
3336   cpp_install_dir=$withval
3337 fi
3338 fi
3339
3340
3341 # We would like to our source tree to be readonly.  However when releases or
3342 # pre-releases are generated, the flex/bison generated files as well as the
3343 # various formats of manuals need to be included along with the rest of the
3344 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3345 # just that.
3346
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3348 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3349     # Check whether --enable-generated-files-in-srcdir was given.
3350 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3351   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3352 else
3353   generated_files_in_srcdir=no
3354 fi
3355
3356
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3358 $as_echo "$generated_files_in_srcdir" >&6; }
3359
3360 if test "$generated_files_in_srcdir" = "yes"; then
3361   GENINSRC=''
3362 else
3363   GENINSRC='#'
3364 fi
3365
3366
3367 # -------------------
3368 # Find default linker
3369 # -------------------
3370
3371 # With GNU ld
3372
3373 # Check whether --with-gnu-ld was given.
3374 if test "${with_gnu_ld+set}" = set; then :
3375   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3376 else
3377   gnu_ld_flag=no
3378 fi
3379
3380
3381 # With pre-defined ld
3382
3383 # Check whether --with-ld was given.
3384 if test "${with_ld+set}" = set; then :
3385   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3386 fi
3387
3388 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3389   if test ! -x "$DEFAULT_LINKER"; then
3390     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3391   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3392     gnu_ld_flag=yes
3393   fi
3394
3395 cat >>confdefs.h <<_ACEOF
3396 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3397 _ACEOF
3398
3399 fi
3400
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3402 $as_echo_n "checking whether a default linker was specified... " >&6; }
3403 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3404   if test x"$gnu_ld_flag" = x"no"; then
3405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3406 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3407   else
3408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3409 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3410   fi
3411 else
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415
3416 # With demangler in GNU ld
3417
3418 # Check whether --with-demangler-in-ld was given.
3419 if test "${with_demangler_in_ld+set}" = set; then :
3420   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3421 else
3422   demangler_in_ld=yes
3423 fi
3424
3425
3426 # ----------------------
3427 # Find default assembler
3428 # ----------------------
3429
3430 # With GNU as
3431
3432 # Check whether --with-gnu-as was given.
3433 if test "${with_gnu_as+set}" = set; then :
3434   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3435 else
3436   gas_flag=no
3437 fi
3438
3439
3440
3441 # Check whether --with-as was given.
3442 if test "${with_as+set}" = set; then :
3443   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3444 fi
3445
3446 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3447   if test ! -x "$DEFAULT_ASSEMBLER"; then
3448     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3449   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3450     gas_flag=yes
3451   fi
3452
3453 cat >>confdefs.h <<_ACEOF
3454 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3455 _ACEOF
3456
3457 fi
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 -e "s/-Ofast[        ]//" -e "s/-O[gs][      ]//" -e "s/-O[0-9]*[    ]//" `
4873      CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[    ]//" -e "s/-O[gs][      ]//" -e "s/-O[0-9]*[    ]//" ` ;;
4874 esac
4875
4876
4877
4878 # Determine PICFLAG for target gnatlib.
4879
4880
4881
4882
4883 case "${target}" in
4884     # PIC is the default on some targets or must not be used.
4885     *-*-darwin*)
4886         # PIC is the default on this platform
4887         # Common symbols not allowed in MH_DYLIB files
4888         PICFLAG_FOR_TARGET=-fno-common
4889         ;;
4890     alpha*-dec-osf5*)
4891         # PIC is the default.
4892         ;;
4893     hppa*64*-*-hpux*)
4894         # PIC is the default for 64-bit PA HP-UX.
4895         ;;
4896     i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4897         ;;
4898     i[34567]86-*-interix[3-9]*)
4899         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4900         # Instead, we relocate shared libraries at runtime.
4901         ;;
4902     i[34567]86-*-nto-qnx*)
4903         # QNX uses GNU C++, but need to define -shared option too, otherwise
4904         # it will coredump.
4905         PICFLAG_FOR_TARGET='-fPIC -shared'
4906         ;;
4907     i[34567]86-pc-msdosdjgpp*)
4908         # DJGPP does not support shared libraries at all.
4909         ;;
4910     ia64*-*-hpux*)
4911         # On IA64 HP-UX, PIC is the default but the pic flag
4912         # sets the default TLS model and affects inlining.
4913         PICFLAG_FOR_TARGET=-fPIC
4914         ;;
4915     mips-sgi-irix6*)
4916         # PIC is the default.
4917         ;;
4918     rs6000-ibm-aix* | powerpc-ibm-aix*)
4919         # All AIX code is PIC.
4920         ;;
4921
4922     # Some targets support both -fPIC and -fpic, but prefer the latter.
4923     # FIXME: Why?
4924     i[34567]86-*-* | x86_64-*-*)
4925         PICFLAG_FOR_TARGET=-fpic
4926         ;;
4927     m68k-*-*)
4928         PICFLAG_FOR_TARGET=-fpic
4929         ;;
4930     # FIXME: Override -fPIC default in libgcc only?
4931     sh-*-linux* | sh[2346lbe]*-*-linux*)
4932         PICFLAG_FOR_TARGET=-fpic
4933         ;;
4934     # FIXME: Simplify to sh*-*-netbsd*?
4935     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4936       sh64-*-netbsd* | sh64l*-*-netbsd*)
4937         PICFLAG_FOR_TARGET=-fpic
4938         ;;
4939     # Default to -fPIC unless specified otherwise.
4940     *)
4941         PICFLAG_FOR_TARGET=-fPIC
4942         ;;
4943 esac
4944
4945 # If the user explicitly uses -fpic/-fPIC, keep that.
4946 case "${CFLAGS_FOR_TARGET}" in
4947     *-fpic*)
4948         PICFLAG_FOR_TARGET=-fpic
4949         ;;
4950     *-fPIC*)
4951         PICFLAG_FOR_TARGET=-fPIC
4952         ;;
4953 esac
4954
4955
4956
4957 # -------------------------
4958 # Check C compiler features
4959 # -------------------------
4960
4961
4962 ac_ext=c
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4968 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4969 # On Suns, sometimes $CPP names a directory.
4970 if test -n "$CPP" && test -d "$CPP"; then
4971   CPP=
4972 fi
4973 if test -z "$CPP"; then
4974   if test "${ac_cv_prog_CPP+set}" = set; then :
4975   $as_echo_n "(cached) " >&6
4976 else
4977       # Double quotes because CPP needs to be expanded
4978     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4979     do
4980       ac_preproc_ok=false
4981 for ac_c_preproc_warn_flag in '' yes
4982 do
4983   # Use a header file that comes with gcc, so configuring glibc
4984   # with a fresh cross-compiler works.
4985   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986   # <limits.h> exists even on freestanding compilers.
4987   # On the NeXT, cc -E runs the code through the compiler's parser,
4988   # not just through cpp. "Syntax error" is here to catch this case.
4989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h.  */
4991 #ifdef __STDC__
4992 # include <limits.h>
4993 #else
4994 # include <assert.h>
4995 #endif
4996                      Syntax error
4997 _ACEOF
4998 if ac_fn_c_try_cpp "$LINENO"; then :
4999
5000 else
5001   # Broken: fails on valid input.
5002 continue
5003 fi
5004 rm -f conftest.err conftest.$ac_ext
5005
5006   # OK, works on sane cases.  Now check whether nonexistent headers
5007   # can be detected and how.
5008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h.  */
5010 #include <ac_nonexistent.h>
5011 _ACEOF
5012 if ac_fn_c_try_cpp "$LINENO"; then :
5013   # Broken: success on invalid input.
5014 continue
5015 else
5016   # Passes both tests.
5017 ac_preproc_ok=:
5018 break
5019 fi
5020 rm -f conftest.err conftest.$ac_ext
5021
5022 done
5023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024 rm -f conftest.err conftest.$ac_ext
5025 if $ac_preproc_ok; then :
5026   break
5027 fi
5028
5029     done
5030     ac_cv_prog_CPP=$CPP
5031
5032 fi
5033   CPP=$ac_cv_prog_CPP
5034 else
5035   ac_cv_prog_CPP=$CPP
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5038 $as_echo "$CPP" >&6; }
5039 ac_preproc_ok=false
5040 for ac_c_preproc_warn_flag in '' yes
5041 do
5042   # Use a header file that comes with gcc, so configuring glibc
5043   # with a fresh cross-compiler works.
5044   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045   # <limits.h> exists even on freestanding compilers.
5046   # On the NeXT, cc -E runs the code through the compiler's parser,
5047   # not just through cpp. "Syntax error" is here to catch this case.
5048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h.  */
5050 #ifdef __STDC__
5051 # include <limits.h>
5052 #else
5053 # include <assert.h>
5054 #endif
5055                      Syntax error
5056 _ACEOF
5057 if ac_fn_c_try_cpp "$LINENO"; then :
5058
5059 else
5060   # Broken: fails on valid input.
5061 continue
5062 fi
5063 rm -f conftest.err conftest.$ac_ext
5064
5065   # OK, works on sane cases.  Now check whether nonexistent headers
5066   # can be detected and how.
5067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h.  */
5069 #include <ac_nonexistent.h>
5070 _ACEOF
5071 if ac_fn_c_try_cpp "$LINENO"; then :
5072   # Broken: success on invalid input.
5073 continue
5074 else
5075   # Passes both tests.
5076 ac_preproc_ok=:
5077 break
5078 fi
5079 rm -f conftest.err conftest.$ac_ext
5080
5081 done
5082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5083 rm -f conftest.err conftest.$ac_ext
5084 if $ac_preproc_ok; then :
5085
5086 else
5087   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5090 See \`config.log' for more details." "$LINENO" 5; }
5091 fi
5092
5093 ac_ext=c
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5102 if test "${ac_cv_path_GREP+set}" = set; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   if test -z "$GREP"; then
5106   ac_path_GREP_found=false
5107   # Loop through the user's path and test for each of PROGNAME-LIST
5108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113     for ac_prog in grep ggrep; do
5114     for ac_exec_ext in '' $ac_executable_extensions; do
5115       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5116       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5117 # Check for GNU ac_path_GREP and select it if it is found.
5118   # Check for GNU $ac_path_GREP
5119 case `"$ac_path_GREP" --version 2>&1` in
5120 *GNU*)
5121   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5122 *)
5123   ac_count=0
5124   $as_echo_n 0123456789 >"conftest.in"
5125   while :
5126   do
5127     cat "conftest.in" "conftest.in" >"conftest.tmp"
5128     mv "conftest.tmp" "conftest.in"
5129     cp "conftest.in" "conftest.nl"
5130     $as_echo 'GREP' >> "conftest.nl"
5131     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133     as_fn_arith $ac_count + 1 && ac_count=$as_val
5134     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5135       # Best one so far, save it but keep looking for a better one
5136       ac_cv_path_GREP="$ac_path_GREP"
5137       ac_path_GREP_max=$ac_count
5138     fi
5139     # 10*(2^10) chars as input seems more than enough
5140     test $ac_count -gt 10 && break
5141   done
5142   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5143 esac
5144
5145       $ac_path_GREP_found && break 3
5146     done
5147   done
5148   done
5149 IFS=$as_save_IFS
5150   if test -z "$ac_cv_path_GREP"; then
5151     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152   fi
5153 else
5154   ac_cv_path_GREP=$GREP
5155 fi
5156
5157 fi
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5159 $as_echo "$ac_cv_path_GREP" >&6; }
5160  GREP="$ac_cv_path_GREP"
5161
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5164 $as_echo_n "checking for egrep... " >&6; }
5165 if test "${ac_cv_path_EGREP+set}" = set; then :
5166   $as_echo_n "(cached) " >&6
5167 else
5168   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5169    then ac_cv_path_EGREP="$GREP -E"
5170    else
5171      if test -z "$EGREP"; then
5172   ac_path_EGREP_found=false
5173   # Loop through the user's path and test for each of PROGNAME-LIST
5174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179     for ac_prog in egrep; do
5180     for ac_exec_ext in '' $ac_executable_extensions; do
5181       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5182       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5183 # Check for GNU ac_path_EGREP and select it if it is found.
5184   # Check for GNU $ac_path_EGREP
5185 case `"$ac_path_EGREP" --version 2>&1` in
5186 *GNU*)
5187   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5188 *)
5189   ac_count=0
5190   $as_echo_n 0123456789 >"conftest.in"
5191   while :
5192   do
5193     cat "conftest.in" "conftest.in" >"conftest.tmp"
5194     mv "conftest.tmp" "conftest.in"
5195     cp "conftest.in" "conftest.nl"
5196     $as_echo 'EGREP' >> "conftest.nl"
5197     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199     as_fn_arith $ac_count + 1 && ac_count=$as_val
5200     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5201       # Best one so far, save it but keep looking for a better one
5202       ac_cv_path_EGREP="$ac_path_EGREP"
5203       ac_path_EGREP_max=$ac_count
5204     fi
5205     # 10*(2^10) chars as input seems more than enough
5206     test $ac_count -gt 10 && break
5207   done
5208   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209 esac
5210
5211       $ac_path_EGREP_found && break 3
5212     done
5213   done
5214   done
5215 IFS=$as_save_IFS
5216   if test -z "$ac_cv_path_EGREP"; then
5217     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5218   fi
5219 else
5220   ac_cv_path_EGREP=$EGREP
5221 fi
5222
5223    fi
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5226 $as_echo "$ac_cv_path_EGREP" >&6; }
5227  EGREP="$ac_cv_path_EGREP"
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5231 $as_echo_n "checking for ANSI C header files... " >&6; }
5232 if test "${ac_cv_header_stdc+set}" = set; then :
5233   $as_echo_n "(cached) " >&6
5234 else
5235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h.  */
5237 #include <stdlib.h>
5238 #include <stdarg.h>
5239 #include <string.h>
5240 #include <float.h>
5241
5242 int
5243 main ()
5244 {
5245
5246   ;
5247   return 0;
5248 }
5249 _ACEOF
5250 if ac_fn_c_try_compile "$LINENO"; then :
5251   ac_cv_header_stdc=yes
5252 else
5253   ac_cv_header_stdc=no
5254 fi
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256
5257 if test $ac_cv_header_stdc = yes; then
5258   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h.  */
5261 #include <string.h>
5262
5263 _ACEOF
5264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5265   $EGREP "memchr" >/dev/null 2>&1; then :
5266
5267 else
5268   ac_cv_header_stdc=no
5269 fi
5270 rm -f conftest*
5271
5272 fi
5273
5274 if test $ac_cv_header_stdc = yes; then
5275   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h.  */
5278 #include <stdlib.h>
5279
5280 _ACEOF
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282   $EGREP "free" >/dev/null 2>&1; then :
5283
5284 else
5285   ac_cv_header_stdc=no
5286 fi
5287 rm -f conftest*
5288
5289 fi
5290
5291 if test $ac_cv_header_stdc = yes; then
5292   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5293   if test "$cross_compiling" = yes; then :
5294   :
5295 else
5296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h.  */
5298 #include <ctype.h>
5299 #include <stdlib.h>
5300 #if ((' ' & 0x0FF) == 0x020)
5301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5303 #else
5304 # define ISLOWER(c) \
5305                    (('a' <= (c) && (c) <= 'i') \
5306                      || ('j' <= (c) && (c) <= 'r') \
5307                      || ('s' <= (c) && (c) <= 'z'))
5308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5309 #endif
5310
5311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5312 int
5313 main ()
5314 {
5315   int i;
5316   for (i = 0; i < 256; i++)
5317     if (XOR (islower (i), ISLOWER (i))
5318         || toupper (i) != TOUPPER (i))
5319       return 2;
5320   return 0;
5321 }
5322 _ACEOF
5323 if ac_fn_c_try_run "$LINENO"; then :
5324
5325 else
5326   ac_cv_header_stdc=no
5327 fi
5328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5329   conftest.$ac_objext conftest.beam conftest.$ac_ext
5330 fi
5331
5332 fi
5333 fi
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5335 $as_echo "$ac_cv_header_stdc" >&6; }
5336 if test $ac_cv_header_stdc = yes; then
5337
5338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5339
5340 fi
5341
5342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5344                   inttypes.h stdint.h unistd.h
5345 do :
5346   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5347 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5348 "
5349 eval as_val=\$$as_ac_Header
5350    if test "x$as_val" = x""yes; then :
5351   cat >>confdefs.h <<_ACEOF
5352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5353 _ACEOF
5354
5355 fi
5356
5357 done
5358
5359
5360
5361   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5362 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5363   MINIX=yes
5364 else
5365   MINIX=
5366 fi
5367
5368
5369   if test "$MINIX" = yes; then
5370
5371 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5372
5373
5374 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5375
5376
5377 $as_echo "#define _MINIX 1" >>confdefs.h
5378
5379   fi
5380
5381
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5383 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5384 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5385   $as_echo_n "(cached) " >&6
5386 else
5387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h.  */
5389
5390 #         define __EXTENSIONS__ 1
5391           $ac_includes_default
5392 int
5393 main ()
5394 {
5395
5396   ;
5397   return 0;
5398 }
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401   ac_cv_safe_to_define___extensions__=yes
5402 else
5403   ac_cv_safe_to_define___extensions__=no
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5408 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5409   test $ac_cv_safe_to_define___extensions__ = yes &&
5410     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5411
5412   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5413
5414   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5415
5416   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5417
5418   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5419
5420
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5428 # On Suns, sometimes $CPP names a directory.
5429 if test -n "$CPP" && test -d "$CPP"; then
5430   CPP=
5431 fi
5432 if test -z "$CPP"; then
5433   if test "${ac_cv_prog_CPP+set}" = set; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436       # Double quotes because CPP needs to be expanded
5437     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5438     do
5439       ac_preproc_ok=false
5440 for ac_c_preproc_warn_flag in '' yes
5441 do
5442   # Use a header file that comes with gcc, so configuring glibc
5443   # with a fresh cross-compiler works.
5444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445   # <limits.h> exists even on freestanding compilers.
5446   # On the NeXT, cc -E runs the code through the compiler's parser,
5447   # not just through cpp. "Syntax error" is here to catch this case.
5448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h.  */
5450 #ifdef __STDC__
5451 # include <limits.h>
5452 #else
5453 # include <assert.h>
5454 #endif
5455                      Syntax error
5456 _ACEOF
5457 if ac_fn_c_try_cpp "$LINENO"; then :
5458
5459 else
5460   # Broken: fails on valid input.
5461 continue
5462 fi
5463 rm -f conftest.err conftest.$ac_ext
5464
5465   # OK, works on sane cases.  Now check whether nonexistent headers
5466   # can be detected and how.
5467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h.  */
5469 #include <ac_nonexistent.h>
5470 _ACEOF
5471 if ac_fn_c_try_cpp "$LINENO"; then :
5472   # Broken: success on invalid input.
5473 continue
5474 else
5475   # Passes both tests.
5476 ac_preproc_ok=:
5477 break
5478 fi
5479 rm -f conftest.err conftest.$ac_ext
5480
5481 done
5482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5483 rm -f conftest.err conftest.$ac_ext
5484 if $ac_preproc_ok; then :
5485   break
5486 fi
5487
5488     done
5489     ac_cv_prog_CPP=$CPP
5490
5491 fi
5492   CPP=$ac_cv_prog_CPP
5493 else
5494   ac_cv_prog_CPP=$CPP
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5497 $as_echo "$CPP" >&6; }
5498 ac_preproc_ok=false
5499 for ac_c_preproc_warn_flag in '' yes
5500 do
5501   # Use a header file that comes with gcc, so configuring glibc
5502   # with a fresh cross-compiler works.
5503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5504   # <limits.h> exists even on freestanding compilers.
5505   # On the NeXT, cc -E runs the code through the compiler's parser,
5506   # not just through cpp. "Syntax error" is here to catch this case.
5507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h.  */
5509 #ifdef __STDC__
5510 # include <limits.h>
5511 #else
5512 # include <assert.h>
5513 #endif
5514                      Syntax error
5515 _ACEOF
5516 if ac_fn_c_try_cpp "$LINENO"; then :
5517
5518 else
5519   # Broken: fails on valid input.
5520 continue
5521 fi
5522 rm -f conftest.err conftest.$ac_ext
5523
5524   # OK, works on sane cases.  Now check whether nonexistent headers
5525   # can be detected and how.
5526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h.  */
5528 #include <ac_nonexistent.h>
5529 _ACEOF
5530 if ac_fn_c_try_cpp "$LINENO"; then :
5531   # Broken: success on invalid input.
5532 continue
5533 else
5534   # Passes both tests.
5535 ac_preproc_ok=:
5536 break
5537 fi
5538 rm -f conftest.err conftest.$ac_ext
5539
5540 done
5541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5542 rm -f conftest.err conftest.$ac_ext
5543 if $ac_preproc_ok; then :
5544
5545 else
5546   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5548 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5549 See \`config.log' for more details." "$LINENO" 5; }
5550 fi
5551
5552 ac_ext=c
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5559 $as_echo_n "checking for inline... " >&6; }
5560 if test "${ac_cv_c_inline+set}" = set; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563   ac_cv_c_inline=no
5564 for ac_kw in inline __inline__ __inline; do
5565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h.  */
5567 #ifndef __cplusplus
5568 typedef int foo_t;
5569 static $ac_kw foo_t static_foo () {return 0; }
5570 $ac_kw foo_t foo () {return 0; }
5571 #endif
5572
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575   ac_cv_c_inline=$ac_kw
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578   test "$ac_cv_c_inline" != no && break
5579 done
5580
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5583 $as_echo "$ac_cv_c_inline" >&6; }
5584
5585 case $ac_cv_c_inline in
5586   inline | yes) ;;
5587   *)
5588     case $ac_cv_c_inline in
5589       no) ac_val=;;
5590       *) ac_val=$ac_cv_c_inline;;
5591     esac
5592     cat >>confdefs.h <<_ACEOF
5593 #ifndef __cplusplus
5594 #define inline $ac_val
5595 #endif
5596 _ACEOF
5597     ;;
5598 esac
5599
5600
5601 # Check whether --enable-largefile was given.
5602 if test "${enable_largefile+set}" = set; then :
5603   enableval=$enable_largefile;
5604 fi
5605
5606 if test "$enable_largefile" != no; then
5607
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5609 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5610 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5611   $as_echo_n "(cached) " >&6
5612 else
5613   ac_cv_sys_largefile_CC=no
5614      if test "$GCC" != yes; then
5615        ac_save_CC=$CC
5616        while :; do
5617          # IRIX 6.2 and later do not support large files by default,
5618          # so use the C compiler's -n32 option if that helps.
5619          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h.  */
5621 #include <sys/types.h>
5622  /* Check that off_t can represent 2**63 - 1 correctly.
5623     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5624     since some C++ compilers masquerading as C compilers
5625     incorrectly reject 9223372036854775807.  */
5626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5627   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5628                        && LARGE_OFF_T % 2147483647 == 1)
5629                       ? 1 : -1];
5630 int
5631 main ()
5632 {
5633
5634   ;
5635   return 0;
5636 }
5637 _ACEOF
5638          if ac_fn_c_try_compile "$LINENO"; then :
5639   break
5640 fi
5641 rm -f core conftest.err conftest.$ac_objext
5642          CC="$CC -n32"
5643          if ac_fn_c_try_compile "$LINENO"; then :
5644   ac_cv_sys_largefile_CC=' -n32'; break
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext
5647          break
5648        done
5649        CC=$ac_save_CC
5650        rm -f conftest.$ac_ext
5651     fi
5652 fi
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5654 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5655   if test "$ac_cv_sys_largefile_CC" != no; then
5656     CC=$CC$ac_cv_sys_largefile_CC
5657   fi
5658
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5660 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5661 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5662   $as_echo_n "(cached) " >&6
5663 else
5664   while :; do
5665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h.  */
5667 #include <sys/types.h>
5668  /* Check that off_t can represent 2**63 - 1 correctly.
5669     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5670     since some C++ compilers masquerading as C compilers
5671     incorrectly reject 9223372036854775807.  */
5672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5673   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5674                        && LARGE_OFF_T % 2147483647 == 1)
5675                       ? 1 : -1];
5676 int
5677 main ()
5678 {
5679
5680   ;
5681   return 0;
5682 }
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685   ac_cv_sys_file_offset_bits=no; break
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h.  */
5690 #define _FILE_OFFSET_BITS 64
5691 #include <sys/types.h>
5692  /* Check that off_t can represent 2**63 - 1 correctly.
5693     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5694     since some C++ compilers masquerading as C compilers
5695     incorrectly reject 9223372036854775807.  */
5696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5697   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5698                        && LARGE_OFF_T % 2147483647 == 1)
5699                       ? 1 : -1];
5700 int
5701 main ()
5702 {
5703
5704   ;
5705   return 0;
5706 }
5707 _ACEOF
5708 if ac_fn_c_try_compile "$LINENO"; then :
5709   ac_cv_sys_file_offset_bits=64; break
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712   ac_cv_sys_file_offset_bits=unknown
5713   break
5714 done
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5717 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5718 case $ac_cv_sys_file_offset_bits in #(
5719   no | unknown) ;;
5720   *)
5721 cat >>confdefs.h <<_ACEOF
5722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5723 _ACEOF
5724 ;;
5725 esac
5726 rm -rf conftest*
5727   if test $ac_cv_sys_file_offset_bits = unknown; then
5728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5729 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5730 if test "${ac_cv_sys_large_files+set}" = set; then :
5731   $as_echo_n "(cached) " >&6
5732 else
5733   while :; do
5734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h.  */
5736 #include <sys/types.h>
5737  /* Check that off_t can represent 2**63 - 1 correctly.
5738     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5739     since some C++ compilers masquerading as C compilers
5740     incorrectly reject 9223372036854775807.  */
5741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5742   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5743                        && LARGE_OFF_T % 2147483647 == 1)
5744                       ? 1 : -1];
5745 int
5746 main ()
5747 {
5748
5749   ;
5750   return 0;
5751 }
5752 _ACEOF
5753 if ac_fn_c_try_compile "$LINENO"; then :
5754   ac_cv_sys_large_files=no; break
5755 fi
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h.  */
5759 #define _LARGE_FILES 1
5760 #include <sys/types.h>
5761  /* Check that off_t can represent 2**63 - 1 correctly.
5762     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763     since some C++ compilers masquerading as C compilers
5764     incorrectly reject 9223372036854775807.  */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767                        && LARGE_OFF_T % 2147483647 == 1)
5768                       ? 1 : -1];
5769 int
5770 main ()
5771 {
5772
5773   ;
5774   return 0;
5775 }
5776 _ACEOF
5777 if ac_fn_c_try_compile "$LINENO"; then :
5778   ac_cv_sys_large_files=1; break
5779 fi
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781   ac_cv_sys_large_files=unknown
5782   break
5783 done
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5786 $as_echo "$ac_cv_sys_large_files" >&6; }
5787 case $ac_cv_sys_large_files in #(
5788   no | unknown) ;;
5789   *)
5790 cat >>confdefs.h <<_ACEOF
5791 #define _LARGE_FILES $ac_cv_sys_large_files
5792 _ACEOF
5793 ;;
5794 esac
5795 rm -rf conftest*
5796   fi
5797 fi
5798
5799
5800 # sizeof(char) is 1 by definition.
5801 # The cast to long int works around a bug in the HP C Compiler
5802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5804 # This bug is HP SR number 8606223364.
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5806 $as_echo_n "checking size of void *... " >&6; }
5807 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5808   $as_echo_n "(cached) " >&6
5809 else
5810   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5811
5812 else
5813   if test "$ac_cv_type_void_p" = yes; then
5814      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5816 { as_fn_set_status 77
5817 as_fn_error "cannot compute sizeof (void *)
5818 See \`config.log' for more details." "$LINENO" 5; }; }
5819    else
5820      ac_cv_sizeof_void_p=0
5821    fi
5822 fi
5823
5824 fi
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5826 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5827
5828
5829
5830 cat >>confdefs.h <<_ACEOF
5831 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5832 _ACEOF
5833
5834
5835 # The cast to long int works around a bug in the HP C Compiler
5836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5838 # This bug is HP SR number 8606223364.
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5840 $as_echo_n "checking size of short... " >&6; }
5841 if test "${ac_cv_sizeof_short+set}" = set; then :
5842   $as_echo_n "(cached) " >&6
5843 else
5844   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5845
5846 else
5847   if test "$ac_cv_type_short" = yes; then
5848      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5850 { as_fn_set_status 77
5851 as_fn_error "cannot compute sizeof (short)
5852 See \`config.log' for more details." "$LINENO" 5; }; }
5853    else
5854      ac_cv_sizeof_short=0
5855    fi
5856 fi
5857
5858 fi
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5860 $as_echo "$ac_cv_sizeof_short" >&6; }
5861
5862
5863
5864 cat >>confdefs.h <<_ACEOF
5865 #define SIZEOF_SHORT $ac_cv_sizeof_short
5866 _ACEOF
5867
5868
5869 # The cast to long int works around a bug in the HP C Compiler
5870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872 # This bug is HP SR number 8606223364.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5874 $as_echo_n "checking size of int... " >&6; }
5875 if test "${ac_cv_sizeof_int+set}" = set; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5879
5880 else
5881   if test "$ac_cv_type_int" = yes; then
5882      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 { as_fn_set_status 77
5885 as_fn_error "cannot compute sizeof (int)
5886 See \`config.log' for more details." "$LINENO" 5; }; }
5887    else
5888      ac_cv_sizeof_int=0
5889    fi
5890 fi
5891
5892 fi
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5894 $as_echo "$ac_cv_sizeof_int" >&6; }
5895
5896
5897
5898 cat >>confdefs.h <<_ACEOF
5899 #define SIZEOF_INT $ac_cv_sizeof_int
5900 _ACEOF
5901
5902
5903 # The cast to long int works around a bug in the HP C Compiler
5904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5906 # This bug is HP SR number 8606223364.
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5908 $as_echo_n "checking size of long... " >&6; }
5909 if test "${ac_cv_sizeof_long+set}" = set; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5913
5914 else
5915   if test "$ac_cv_type_long" = yes; then
5916      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5918 { as_fn_set_status 77
5919 as_fn_error "cannot compute sizeof (long)
5920 See \`config.log' for more details." "$LINENO" 5; }; }
5921    else
5922      ac_cv_sizeof_long=0
5923    fi
5924 fi
5925
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5928 $as_echo "$ac_cv_sizeof_long" >&6; }
5929
5930
5931
5932 cat >>confdefs.h <<_ACEOF
5933 #define SIZEOF_LONG $ac_cv_sizeof_long
5934 _ACEOF
5935
5936
5937 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5938 if test "x$ac_cv_type_long_long" = x""yes; then :
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define HAVE_LONG_LONG 1
5942 _ACEOF
5943
5944 # The cast to long int works around a bug in the HP C Compiler
5945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5947 # This bug is HP SR number 8606223364.
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5949 $as_echo_n "checking size of long long... " >&6; }
5950 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5951   $as_echo_n "(cached) " >&6
5952 else
5953   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5954
5955 else
5956   if test "$ac_cv_type_long_long" = yes; then
5957      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5959 { as_fn_set_status 77
5960 as_fn_error "cannot compute sizeof (long long)
5961 See \`config.log' for more details." "$LINENO" 5; }; }
5962    else
5963      ac_cv_sizeof_long_long=0
5964    fi
5965 fi
5966
5967 fi
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5969 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5970
5971
5972
5973 cat >>confdefs.h <<_ACEOF
5974 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5975 _ACEOF
5976
5977
5978 fi
5979
5980 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5981 if test "x$ac_cv_type___int64" = x""yes; then :
5982
5983 cat >>confdefs.h <<_ACEOF
5984 #define HAVE___INT64 1
5985 _ACEOF
5986
5987 # The cast to long int works around a bug in the HP C Compiler
5988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5990 # This bug is HP SR number 8606223364.
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5992 $as_echo_n "checking size of __int64... " >&6; }
5993 if test "${ac_cv_sizeof___int64+set}" = set; then :
5994   $as_echo_n "(cached) " >&6
5995 else
5996   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5997
5998 else
5999   if test "$ac_cv_type___int64" = yes; then
6000      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6002 { as_fn_set_status 77
6003 as_fn_error "cannot compute sizeof (__int64)
6004 See \`config.log' for more details." "$LINENO" 5; }; }
6005    else
6006      ac_cv_sizeof___int64=0
6007    fi
6008 fi
6009
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6012 $as_echo "$ac_cv_sizeof___int64" >&6; }
6013
6014
6015
6016 cat >>confdefs.h <<_ACEOF
6017 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6018 _ACEOF
6019
6020
6021 fi
6022
6023 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6024 case $ac_cv_c_int8_t in #(
6025   no|yes) ;; #(
6026   *)
6027
6028 cat >>confdefs.h <<_ACEOF
6029 #define int8_t $ac_cv_c_int8_t
6030 _ACEOF
6031 ;;
6032 esac
6033
6034 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6035 case $ac_cv_c_int16_t in #(
6036   no|yes) ;; #(
6037   *)
6038
6039 cat >>confdefs.h <<_ACEOF
6040 #define int16_t $ac_cv_c_int16_t
6041 _ACEOF
6042 ;;
6043 esac
6044
6045 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6046 case $ac_cv_c_int32_t in #(
6047   no|yes) ;; #(
6048   *)
6049
6050 cat >>confdefs.h <<_ACEOF
6051 #define int32_t $ac_cv_c_int32_t
6052 _ACEOF
6053 ;;
6054 esac
6055
6056 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6057 case $ac_cv_c_int64_t in #(
6058   no|yes) ;; #(
6059   *)
6060
6061 cat >>confdefs.h <<_ACEOF
6062 #define int64_t $ac_cv_c_int64_t
6063 _ACEOF
6064 ;;
6065 esac
6066
6067
6068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6069 $as_echo_n "checking for long long int... " >&6; }
6070 if test "${ac_cv_type_long_long_int+set}" = set; then :
6071   $as_echo_n "(cached) " >&6
6072 else
6073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h.  */
6075
6076   /* For now, do not test the preprocessor; as of 2007 there are too many
6077          implementations with broken preprocessors.  Perhaps this can
6078          be revisited in 2012.  In the meantime, code should not expect
6079          #if to work with literals wider than 32 bits.  */
6080       /* Test literals.  */
6081       long long int ll = 9223372036854775807ll;
6082       long long int nll = -9223372036854775807LL;
6083       unsigned long long int ull = 18446744073709551615ULL;
6084       /* Test constant expressions.   */
6085       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6086                      ? 1 : -1)];
6087       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6088                      ? 1 : -1)];
6089       int i = 63;
6090 int
6091 main ()
6092 {
6093 /* Test availability of runtime routines for shift and division.  */
6094       long long int llmax = 9223372036854775807ll;
6095       unsigned long long int ullmax = 18446744073709551615ull;
6096       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6097               | (llmax / ll) | (llmax % ll)
6098               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6099               | (ullmax / ull) | (ullmax % ull));
6100   ;
6101   return 0;
6102 }
6103
6104 _ACEOF
6105 if ac_fn_c_try_link "$LINENO"; then :
6106                         if test "$cross_compiling" = yes; then :
6107   ac_cv_type_long_long_int=yes
6108 else
6109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h.  */
6111 #include <limits.h>
6112                #ifndef LLONG_MAX
6113                # define HALF \
6114                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6115                # define LLONG_MAX (HALF - 1 + HALF)
6116                #endif
6117 int
6118 main ()
6119 {
6120 long long int n = 1;
6121                int i;
6122                for (i = 0; ; i++)
6123                  {
6124                    long long int m = n << i;
6125                    if (m >> i != n)
6126                      return 1;
6127                    if (LLONG_MAX / 2 < m)
6128                      break;
6129                  }
6130                return 0;
6131   ;
6132   return 0;
6133 }
6134 _ACEOF
6135 if ac_fn_c_try_run "$LINENO"; then :
6136   ac_cv_type_long_long_int=yes
6137 else
6138   ac_cv_type_long_long_int=no
6139 fi
6140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6141   conftest.$ac_objext conftest.beam conftest.$ac_ext
6142 fi
6143
6144 else
6145   ac_cv_type_long_long_int=no
6146 fi
6147 rm -f core conftest.err conftest.$ac_objext \
6148     conftest$ac_exeext conftest.$ac_ext
6149 fi
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6151 $as_echo "$ac_cv_type_long_long_int" >&6; }
6152   if test $ac_cv_type_long_long_int = yes; then
6153
6154 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6155
6156   fi
6157
6158
6159
6160   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6161 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6162
6163 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6164
6165 else
6166   test $ac_cv_type_long_long_int = yes \
6167        && ac_type='long long int' \
6168        || ac_type='long int'
6169
6170 cat >>confdefs.h <<_ACEOF
6171 #define intmax_t $ac_type
6172 _ACEOF
6173
6174 fi
6175
6176
6177
6178   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6179 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6180
6181 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6182
6183 else
6184   for ac_type in 'int' 'long int' 'long long int'; do
6185        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h.  */
6187 $ac_includes_default
6188 int
6189 main ()
6190 {
6191 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6192 test_array [0] = 0
6193
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 if ac_fn_c_try_compile "$LINENO"; then :
6199
6200 cat >>confdefs.h <<_ACEOF
6201 #define intptr_t $ac_type
6202 _ACEOF
6203
6204           ac_type=
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207        test -z "$ac_type" && break
6208      done
6209 fi
6210
6211
6212 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6213 case $ac_cv_c_uint8_t in #(
6214   no|yes) ;; #(
6215   *)
6216
6217 $as_echo "#define _UINT8_T 1" >>confdefs.h
6218
6219
6220 cat >>confdefs.h <<_ACEOF
6221 #define uint8_t $ac_cv_c_uint8_t
6222 _ACEOF
6223 ;;
6224   esac
6225
6226 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6227 case $ac_cv_c_uint16_t in #(
6228   no|yes) ;; #(
6229   *)
6230
6231
6232 cat >>confdefs.h <<_ACEOF
6233 #define uint16_t $ac_cv_c_uint16_t
6234 _ACEOF
6235 ;;
6236   esac
6237
6238 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6239 case $ac_cv_c_uint32_t in #(
6240   no|yes) ;; #(
6241   *)
6242
6243 $as_echo "#define _UINT32_T 1" >>confdefs.h
6244
6245
6246 cat >>confdefs.h <<_ACEOF
6247 #define uint32_t $ac_cv_c_uint32_t
6248 _ACEOF
6249 ;;
6250   esac
6251
6252 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6253 case $ac_cv_c_uint64_t in #(
6254   no|yes) ;; #(
6255   *)
6256
6257 $as_echo "#define _UINT64_T 1" >>confdefs.h
6258
6259
6260 cat >>confdefs.h <<_ACEOF
6261 #define uint64_t $ac_cv_c_uint64_t
6262 _ACEOF
6263 ;;
6264   esac
6265
6266
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6268 $as_echo_n "checking for unsigned long long int... " >&6; }
6269 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6270   $as_echo_n "(cached) " >&6
6271 else
6272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h.  */
6274
6275   /* For now, do not test the preprocessor; as of 2007 there are too many
6276          implementations with broken preprocessors.  Perhaps this can
6277          be revisited in 2012.  In the meantime, code should not expect
6278          #if to work with literals wider than 32 bits.  */
6279       /* Test literals.  */
6280       long long int ll = 9223372036854775807ll;
6281       long long int nll = -9223372036854775807LL;
6282       unsigned long long int ull = 18446744073709551615ULL;
6283       /* Test constant expressions.   */
6284       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6285                      ? 1 : -1)];
6286       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6287                      ? 1 : -1)];
6288       int i = 63;
6289 int
6290 main ()
6291 {
6292 /* Test availability of runtime routines for shift and division.  */
6293       long long int llmax = 9223372036854775807ll;
6294       unsigned long long int ullmax = 18446744073709551615ull;
6295       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6296               | (llmax / ll) | (llmax % ll)
6297               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6298               | (ullmax / ull) | (ullmax % ull));
6299   ;
6300   return 0;
6301 }
6302
6303 _ACEOF
6304 if ac_fn_c_try_link "$LINENO"; then :
6305   ac_cv_type_unsigned_long_long_int=yes
6306 else
6307   ac_cv_type_unsigned_long_long_int=no
6308 fi
6309 rm -f core conftest.err conftest.$ac_objext \
6310     conftest$ac_exeext conftest.$ac_ext
6311 fi
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6313 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6314   if test $ac_cv_type_unsigned_long_long_int = yes; then
6315
6316 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6317
6318   fi
6319
6320
6321
6322   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6323 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6324
6325 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6326
6327 else
6328   test $ac_cv_type_unsigned_long_long_int = yes \
6329        && ac_type='unsigned long long int' \
6330        || ac_type='unsigned long int'
6331
6332 cat >>confdefs.h <<_ACEOF
6333 #define uintmax_t $ac_type
6334 _ACEOF
6335
6336 fi
6337
6338
6339
6340   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6341 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6342
6343 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6344
6345 else
6346   for ac_type in 'unsigned int' 'unsigned long int' \
6347         'unsigned long long int'; do
6348        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h.  */
6350 $ac_includes_default
6351 int
6352 main ()
6353 {
6354 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6355 test_array [0] = 0
6356
6357   ;
6358   return 0;
6359 }
6360 _ACEOF
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362
6363 cat >>confdefs.h <<_ACEOF
6364 #define uintptr_t $ac_type
6365 _ACEOF
6366
6367           ac_type=
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370        test -z "$ac_type" && break
6371      done
6372 fi
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388 # ---------------------
6389 # Warnings and checking
6390 # ---------------------
6391
6392 # Check $CC warning features (if it's GCC).
6393 # We want to use -pedantic, but we don't want warnings about
6394 # * 'long long'
6395 # * variadic macros
6396 # * overlong strings
6397 # * C++11 narrowing conversions in { }
6398 # So, we only use -pedantic if we can disable those warnings.
6399
6400 loose_warn=
6401 save_CFLAGS="$CFLAGS"
6402 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6403   # Do the check with the no- prefix removed since gcc silently
6404   # accepts any -Wno-* option on purpose
6405   case $real_option in
6406     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6407     *) option=$real_option ;;
6408   esac
6409   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6410
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6412 $as_echo_n "checking whether $CC supports $option... " >&6; }
6413 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6414   $as_echo_n "(cached) " >&6
6415 else
6416   CFLAGS="$option"
6417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h.  */
6419
6420 int
6421 main ()
6422 {
6423
6424   ;
6425   return 0;
6426 }
6427 _ACEOF
6428 if ac_fn_c_try_compile "$LINENO"; then :
6429   eval "$as_acx_Woption=yes"
6430 else
6431   eval "$as_acx_Woption=no"
6432 fi
6433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434
6435 fi
6436 eval ac_res=\$$as_acx_Woption
6437                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6438 $as_echo "$ac_res" >&6; }
6439   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6440   loose_warn="$loose_warn${loose_warn:+ }$real_option"
6441 fi
6442   done
6443 CFLAGS="$save_CFLAGS"
6444
6445 c_loose_warn=
6446 save_CFLAGS="$CFLAGS"
6447 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6448   # Do the check with the no- prefix removed since gcc silently
6449   # accepts any -Wno-* option on purpose
6450   case $real_option in
6451     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6452     *) option=$real_option ;;
6453   esac
6454   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6455
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6457 $as_echo_n "checking whether $CC supports $option... " >&6; }
6458 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   CFLAGS="$option"
6462     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h.  */
6464
6465 int
6466 main ()
6467 {
6468
6469   ;
6470   return 0;
6471 }
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474   eval "$as_acx_Woption=yes"
6475 else
6476   eval "$as_acx_Woption=no"
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479
6480 fi
6481 eval ac_res=\$$as_acx_Woption
6482                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6483 $as_echo "$ac_res" >&6; }
6484   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6485   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6486 fi
6487   done
6488 CFLAGS="$save_CFLAGS"
6489
6490 strict_warn=
6491 save_CFLAGS="$CFLAGS"
6492 for real_option in -Wmissing-format-attribute; do
6493   # Do the check with the no- prefix removed since gcc silently
6494   # accepts any -Wno-* option on purpose
6495   case $real_option in
6496     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6497     *) option=$real_option ;;
6498   esac
6499   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6500
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6502 $as_echo_n "checking whether $CC supports $option... " >&6; }
6503 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   CFLAGS="$option"
6507     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h.  */
6509
6510 int
6511 main ()
6512 {
6513
6514   ;
6515   return 0;
6516 }
6517 _ACEOF
6518 if ac_fn_c_try_compile "$LINENO"; then :
6519   eval "$as_acx_Woption=yes"
6520 else
6521   eval "$as_acx_Woption=no"
6522 fi
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524
6525 fi
6526 eval ac_res=\$$as_acx_Woption
6527                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6528 $as_echo "$ac_res" >&6; }
6529   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6530   strict_warn="$strict_warn${strict_warn:+ }$real_option"
6531 fi
6532   done
6533 CFLAGS="$save_CFLAGS"
6534
6535 c_strict_warn=
6536 save_CFLAGS="$CFLAGS"
6537 for real_option in -Wold-style-definition -Wc++-compat; do
6538   # Do the check with the no- prefix removed since gcc silently
6539   # accepts any -Wno-* option on purpose
6540   case $real_option in
6541     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6542     *) option=$real_option ;;
6543   esac
6544   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6545
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6547 $as_echo_n "checking whether $CC supports $option... " >&6; }
6548 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   CFLAGS="$option"
6552     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h.  */
6554
6555 int
6556 main ()
6557 {
6558
6559   ;
6560   return 0;
6561 }
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564   eval "$as_acx_Woption=yes"
6565 else
6566   eval "$as_acx_Woption=no"
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569
6570 fi
6571 eval ac_res=\$$as_acx_Woption
6572                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6573 $as_echo "$ac_res" >&6; }
6574   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6575   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6576 fi
6577   done
6578 CFLAGS="$save_CFLAGS"
6579
6580 # Do the check with the no- prefix removed from the warning options
6581 # since gcc silently accepts any -Wno-* option on purpose
6582 if test "$GCC" = yes; then :
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6584 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6585 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6586   $as_echo_n "(cached) " >&6
6587 else
6588   save_CFLAGS="$CFLAGS"
6589 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h.  */
6592
6593 int
6594 main ()
6595 {
6596
6597   ;
6598   return 0;
6599 }
6600 _ACEOF
6601 if ac_fn_c_try_compile "$LINENO"; then :
6602   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6603 else
6604   acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 CFLAGS="$save_CFLAGS"
6608 fi
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6610 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6611 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6612   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6613 fi
6614
6615 fi
6616
6617 # Check whether --enable-werror-always was given.
6618 if test "${enable_werror_always+set}" = set; then :
6619   enableval=$enable_werror_always;
6620 else
6621   enable_werror_always=no
6622 fi
6623
6624 if test $enable_werror_always = yes; then :
6625   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6626 fi
6627
6628
6629
6630 # The above macros do nothing if the compiler is not GCC.  However, the
6631 # Makefile has more goo to add other flags, so these variables are used
6632 # to enable warnings only for GCC.
6633 warn_cflags=
6634 warn_cxxflags=
6635 if test "x$GCC" = "xyes"; then
6636   warn_cflags='$(GCC_WARN_CFLAGS)'
6637   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6638 fi
6639
6640
6641
6642 # Disable exceptions and RTTI if building with g++
6643 noexception_flags=
6644 save_CFLAGS="$CFLAGS"
6645 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6646   # Do the check with the no- prefix removed since gcc silently
6647   # accepts any -Wno-* option on purpose
6648   case $real_option in
6649     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6650     *) option=$real_option ;;
6651   esac
6652   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6653
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6655 $as_echo_n "checking whether $CC supports $option... " >&6; }
6656 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6657   $as_echo_n "(cached) " >&6
6658 else
6659   CFLAGS="$option"
6660     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h.  */
6662
6663 int
6664 main ()
6665 {
6666
6667   ;
6668   return 0;
6669 }
6670 _ACEOF
6671 if ac_fn_c_try_compile "$LINENO"; then :
6672   eval "$as_acx_Woption=yes"
6673 else
6674   eval "$as_acx_Woption=no"
6675 fi
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677
6678 fi
6679 eval ac_res=\$$as_acx_Woption
6680                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6683   noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6684 fi
6685   done
6686 CFLAGS="$save_CFLAGS"
6687
6688
6689 # Enable expensive internal checks
6690 is_release=
6691 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6692   is_release=yes
6693 fi
6694
6695 # Check whether --enable-checking was given.
6696 if test "${enable_checking+set}" = set; then :
6697   enableval=$enable_checking; ac_checking_flags="${enableval}"
6698 else
6699
6700 # Determine the default checks.
6701 if test x$is_release = x ; then
6702   ac_checking_flags=yes
6703 else
6704   ac_checking_flags=release
6705 fi
6706 fi
6707
6708 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6709 for check in release $ac_checking_flags
6710 do
6711         case $check in
6712         # these set all the flags to specific states
6713         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6714                         ac_fold_checking= ; ac_gc_checking=1 ;
6715                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6716                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6717                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6718                         ac_types_checking=1 ;;
6719         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6720                         ac_fold_checking= ; ac_gc_checking= ;
6721                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6722                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6723                         ac_tree_checking= ; ac_valgrind_checking= ;
6724                         ac_types_checking= ;;
6725         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6726                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6727                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6728                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6729                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6730                         ac_types_checking=1 ;;
6731         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6732                         ac_fold_checking= ; ac_gc_checking= ;
6733                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6734                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6735                         ac_tree_checking= ; ac_valgrind_checking= ;
6736                         ac_types_checking= ;;
6737         # these enable particular checks
6738         assert)         ac_assert_checking=1 ;;
6739         df)             ac_df_checking=1 ;;
6740         fold)           ac_fold_checking=1 ;;
6741         gc)             ac_gc_checking=1 ;;
6742         gcac)           ac_gc_always_collect=1 ;;
6743         gimple)         ac_gimple_checking=1 ;;
6744         misc)           ac_checking=1 ;;
6745         rtl)            ac_rtl_checking=1 ;;
6746         rtlflag)        ac_rtlflag_checking=1 ;;
6747         runtime)        ac_runtime_checking=1 ;;
6748         tree)           ac_tree_checking=1 ;;
6749         types)          ac_types_checking=1 ;;
6750         valgrind)       ac_valgrind_checking=1 ;;
6751         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6752         esac
6753 done
6754 IFS="$ac_save_IFS"
6755
6756 nocommon_flag=""
6757 if test x$ac_checking != x ; then
6758
6759 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6760
6761   nocommon_flag=-fno-common
6762 fi
6763
6764 if test x$ac_df_checking != x ; then
6765
6766 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6767
6768 fi
6769 if test x$ac_assert_checking != x ; then
6770
6771 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6772
6773 fi
6774 if test x$ac_gimple_checking != x ; then
6775
6776 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6777
6778 fi
6779
6780 if test x$ac_runtime_checking != x ; then
6781
6782 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6783
6784 fi
6785 if test x$ac_tree_checking != x ; then
6786
6787 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6788
6789   TREEBROWSER=tree-browser.o
6790   TREECHECKING=yes
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
6799 if test x$ac_rtl_checking != x ; then
6800
6801 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6802
6803 fi
6804 if test x$ac_rtlflag_checking != x ; then
6805
6806 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6807
6808 fi
6809 if test x$ac_gc_checking != x ; then
6810
6811 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6812
6813 fi
6814 if test x$ac_gc_always_collect != x ; then
6815
6816 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6817
6818 fi
6819 if test x$ac_fold_checking != x ; then
6820
6821 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6822
6823 fi
6824 valgrind_path_defines=
6825 valgrind_command=
6826
6827 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6828 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6829   have_valgrind_h=yes
6830 else
6831   have_valgrind_h=no
6832 fi
6833
6834
6835
6836 if test x$ac_valgrind_checking != x ; then
6837   # It is certainly possible that there's valgrind but no valgrind.h.
6838   # GCC relies on making annotations so we must have both.
6839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6840 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h.  */
6843 #include <valgrind/memcheck.h>
6844 #ifndef VALGRIND_DISCARD
6845 #error VALGRIND_DISCARD not defined
6846 #endif
6847 _ACEOF
6848 if ac_fn_c_try_cpp "$LINENO"; then :
6849   gcc_cv_header_valgrind_memcheck_h=yes
6850 else
6851   gcc_cv_header_valgrind_memcheck_h=no
6852 fi
6853 rm -f conftest.err conftest.$ac_ext
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6855 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6857 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h.  */
6860 #include <memcheck.h>
6861 #ifndef VALGRIND_DISCARD
6862 #error VALGRIND_DISCARD not defined
6863 #endif
6864 _ACEOF
6865 if ac_fn_c_try_cpp "$LINENO"; then :
6866   gcc_cv_header_memcheck_h=yes
6867 else
6868   gcc_cv_header_memcheck_h=no
6869 fi
6870 rm -f conftest.err conftest.$ac_ext
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6872 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6873
6874 # Prepare PATH_SEPARATOR.
6875 # The user is always right.
6876 if test "${PATH_SEPARATOR+set}" != set; then
6877   echo "#! /bin/sh" >conf$$.sh
6878   echo  "exit 0"   >>conf$$.sh
6879   chmod +x conf$$.sh
6880   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6881     PATH_SEPARATOR=';'
6882   else
6883     PATH_SEPARATOR=:
6884   fi
6885   rm -f conf$$.sh
6886 fi
6887
6888 # Find out how to test for executable files. Don't use a zero-byte file,
6889 # as systems may use methods other than mode bits to determine executability.
6890 cat >conf$$.file <<_ASEOF
6891 #! /bin/sh
6892 exit 0
6893 _ASEOF
6894 chmod +x conf$$.file
6895 if test -x conf$$.file >/dev/null 2>&1; then
6896   ac_executable_p="test -x"
6897 else
6898   ac_executable_p="test -f"
6899 fi
6900 rm -f conf$$.file
6901
6902 # Extract the first word of "valgrind", so it can be a program name with args.
6903 set dummy valgrind; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   case "$valgrind_path" in
6910   [\\/]* | ?:[\\/]*)
6911     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6912     ;;
6913   *)
6914     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6915     for ac_dir in $PATH; do
6916       IFS="$ac_save_IFS"
6917       test -z "$ac_dir" && ac_dir=.
6918       for ac_exec_ext in '' $ac_executable_extensions; do
6919         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6920           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6921             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6922             break 2
6923           fi
6924         fi
6925       done
6926     done
6927     IFS="$ac_save_IFS"
6928     ;;
6929 esac
6930 fi
6931 valgrind_path="$ac_cv_path_valgrind_path"
6932 if test -n "$valgrind_path"; then
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6934 $as_echo "$valgrind_path" >&6; }
6935 else
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940   if test "x$valgrind_path" = "x" \
6941     || (test $have_valgrind_h = no \
6942         && test $gcc_cv_header_memcheck_h = no \
6943         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6944         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6945   fi
6946   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6947   valgrind_command="$valgrind_path -q"
6948
6949 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6950
6951   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6952
6953 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6954
6955   fi
6956   if test $gcc_cv_header_memcheck_h = yes; then
6957
6958 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6959
6960   fi
6961 fi
6962
6963
6964
6965 # Enable code coverage collection
6966 # Check whether --enable-coverage was given.
6967 if test "${enable_coverage+set}" = set; then :
6968   enableval=$enable_coverage; case "${enableval}" in
6969   yes|noopt)
6970     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6971     ;;
6972   opt)
6973     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6974     ;;
6975   no)
6976     # a.k.a. --disable-coverage
6977     coverage_flags=""
6978     ;;
6979   *)
6980     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6981     ;;
6982 esac
6983 else
6984   coverage_flags=""
6985 fi
6986
6987
6988
6989 # Check whether --enable-gather-detailed-mem-stats was given.
6990 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6991   enableval=$enable_gather_detailed_mem_stats;
6992 else
6993   enable_gather_detailed_mem_stats=no
6994 fi
6995
6996 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6997
6998 cat >>confdefs.h <<_ACEOF
6999 #define GATHER_STATISTICS $gather_stats
7000 _ACEOF
7001
7002
7003 # -------------------------------
7004 # Miscenalleous configure options
7005 # -------------------------------
7006
7007 # With stabs
7008
7009 # Check whether --with-stabs was given.
7010 if test "${with_stabs+set}" = set; then :
7011   withval=$with_stabs; stabs="$with_stabs"
7012 else
7013   stabs=no
7014 fi
7015
7016
7017 # Determine whether or not multilibs are enabled.
7018 # Check whether --enable-multilib was given.
7019 if test "${enable_multilib+set}" = set; then :
7020   enableval=$enable_multilib;
7021 else
7022   enable_multilib=yes
7023 fi
7024
7025
7026
7027 # Determine whether or not multiarch is enabled.
7028 # Check whether --enable-multiarch was given.
7029 if test "${enable_multiarch+set}" = set; then :
7030   enableval=$enable_multiarch; case "${enableval}" in
7031 yes|no|auto) enable_multiarch=$enableval;;
7032 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7033 esac
7034 else
7035   enable_multiarch=auto
7036 fi
7037
7038 if test x${enable_multiarch} = xauto; then
7039   if test x${with_native_system_header_dir} != x; then
7040     ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7041     enable_multiarch=no
7042   fi
7043   if test x$host != x$target && test "x$with_sysroot" = x; then
7044     ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7045     enable_multiarch=no
7046   fi
7047 fi
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7049 $as_echo_n "checking for multiarch configuration... " >&6; }
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7052 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7053
7054 # needed for setting the multiarch name for soft-float/hard-float ABIs
7055
7056
7057
7058 # Enable __cxa_atexit for C++.
7059 # Check whether --enable-__cxa_atexit was given.
7060 if test "${enable___cxa_atexit+set}" = set; then :
7061   enableval=$enable___cxa_atexit;
7062 fi
7063
7064
7065 # Enable C extension for decimal float if target supports it.
7066
7067 # Check whether --enable-decimal-float was given.
7068 if test "${enable_decimal_float+set}" = set; then :
7069   enableval=$enable_decimal_float;
7070   case $enable_decimal_float in
7071     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7072     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7073 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7074   esac
7075
7076 else
7077
7078   case $target in
7079     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7080     i?86*-*-gnu* | \
7081     i?86*-*-mingw* | x86_64*-*-mingw* | \
7082     i?86*-*-cygwin*)
7083       enable_decimal_float=yes
7084       ;;
7085     *)
7086       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7087 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7088       enable_decimal_float=no
7089       ;;
7090   esac
7091
7092 fi
7093
7094
7095 # x86's use BID format instead of DPD
7096 case x$enable_decimal_float in
7097   xyes)
7098     case $target in
7099       i?86*-*-* | x86_64*-*-*)
7100         enable_decimal_float=bid
7101         ;;
7102       *)
7103         enable_decimal_float=dpd
7104         ;;
7105     esac
7106     default_decimal_float=$enable_decimal_float
7107     ;;
7108   xno)
7109     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7110     # dependency on libdecnumber.
7111     default_decimal_float=dpd
7112     ;;
7113 esac
7114
7115
7116
7117
7118 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7119
7120 cat >>confdefs.h <<_ACEOF
7121 #define ENABLE_DECIMAL_FLOAT $dfp
7122 _ACEOF
7123
7124
7125 # Use default_decimal_float for dependency.
7126 enable_decimal_float=$default_decimal_float
7127
7128 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7129
7130 cat >>confdefs.h <<_ACEOF
7131 #define ENABLE_DECIMAL_BID_FORMAT $bid
7132 _ACEOF
7133
7134
7135 # Enable C extension for fixed-point arithmetic.
7136 # Check whether --enable-fixed-point was given.
7137 if test "${enable_fixed_point+set}" = set; then :
7138   enableval=$enable_fixed_point;
7139 else
7140
7141   case $target in
7142     arm*)
7143       enable_fixed_point=yes
7144       ;;
7145
7146     mips*-*-*)
7147       enable_fixed_point=yes
7148       ;;
7149     *)
7150       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7151 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7152       enable_fixed_point=no
7153       ;;
7154   esac
7155
7156 fi
7157
7158
7159
7160 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7161
7162 cat >>confdefs.h <<_ACEOF
7163 #define ENABLE_FIXED_POINT $fixedpoint
7164 _ACEOF
7165
7166
7167 # Enable threads
7168 # Pass with no value to take the default
7169 # Pass with a value to specify a thread package
7170 # Check whether --enable-threads was given.
7171 if test "${enable_threads+set}" = set; then :
7172   enableval=$enable_threads;
7173 else
7174   enable_threads=''
7175 fi
7176
7177
7178 # Check whether --enable-tls was given.
7179 if test "${enable_tls+set}" = set; then :
7180   enableval=$enable_tls;
7181   case $enable_tls in
7182     yes | no) ;;
7183     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7184 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7185   esac
7186
7187 else
7188   enable_tls=''
7189 fi
7190
7191
7192 # Check whether --enable-objc-gc was given.
7193 if test "${enable_objc_gc+set}" = set; then :
7194   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7195         objc_boehm_gc=''
7196 else
7197         objc_boehm_gc=1
7198 fi
7199 else
7200   objc_boehm_gc=''
7201 fi
7202
7203
7204
7205 # Check whether --with-dwarf2 was given.
7206 if test "${with_dwarf2+set}" = set; then :
7207   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7208 else
7209   dwarf2=no
7210 fi
7211
7212
7213 # Check whether --enable-shared was given.
7214 if test "${enable_shared+set}" = set; then :
7215   enableval=$enable_shared;
7216   case $enable_shared in
7217   yes | no) ;;
7218   *)
7219     enable_shared=no
7220     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7221     for pkg in $enableval; do
7222       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7223         enable_shared=yes
7224       fi
7225     done
7226     IFS="$ac_save_ifs"
7227     ;;
7228   esac
7229
7230 else
7231   enable_shared=yes
7232 fi
7233
7234
7235
7236
7237 # Check whether --with-native-system-header-dir was given.
7238 if test "${with_native_system_header_dir+set}" = set; then :
7239   withval=$with_native_system_header_dir;
7240  case ${with_native_system_header_dir} in
7241  yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7242  /* | [A-Za-z]:[\\/]*) ;;
7243  *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7244  esac
7245  configured_native_system_header_dir="${withval}"
7246
7247 else
7248   configured_native_system_header_dir=
7249 fi
7250
7251
7252
7253 # Check whether --with-build-sysroot was given.
7254 if test "${with_build_sysroot+set}" = set; then :
7255   withval=$with_build_sysroot; if test x"$withval" != x ; then
7256      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7257    fi
7258 else
7259   SYSROOT_CFLAGS_FOR_TARGET=
7260 fi
7261
7262
7263
7264 if test "x$prefix" = xNONE; then
7265  test_prefix=/usr/local
7266 else
7267  test_prefix=$prefix
7268 fi
7269 if test "x$exec_prefix" = xNONE; then
7270  test_exec_prefix=$test_prefix
7271 else
7272  test_exec_prefix=$exec_prefix
7273 fi
7274
7275
7276 # Check whether --with-sysroot was given.
7277 if test "${with_sysroot+set}" = set; then :
7278   withval=$with_sysroot;
7279  case ${with_sysroot} in
7280  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7281  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7282  esac
7283
7284  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7285  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7286
7287  case ${TARGET_SYSTEM_ROOT} in
7288  "${test_prefix}"|"${test_prefix}/"*|\
7289  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7290  '${prefix}'|'${prefix}/'*|\
7291  '${exec_prefix}'|'${exec_prefix}/'*)
7292    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7293    TARGET_SYSTEM_ROOT_DEFINE="$t"
7294    ;;
7295  esac
7296
7297 else
7298
7299  TARGET_SYSTEM_ROOT=
7300  TARGET_SYSTEM_ROOT_DEFINE=
7301  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7302
7303 fi
7304
7305
7306
7307
7308
7309
7310 # Check whether --with-specs was given.
7311 if test "${with_specs+set}" = set; then :
7312   withval=$with_specs; CONFIGURE_SPECS=$withval
7313 else
7314   CONFIGURE_SPECS=
7315
7316 fi
7317
7318
7319
7320
7321
7322 # Check whether --with-pkgversion was given.
7323 if test "${with_pkgversion+set}" = set; then :
7324   withval=$with_pkgversion; case "$withval" in
7325       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7326       no)  PKGVERSION= ;;
7327       *)   PKGVERSION="($withval) " ;;
7328      esac
7329 else
7330   PKGVERSION="(GCC) "
7331
7332 fi
7333
7334
7335
7336
7337
7338 # Check whether --with-bugurl was given.
7339 if test "${with_bugurl+set}" = set; then :
7340   withval=$with_bugurl; case "$withval" in
7341       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7342       no)  BUGURL=
7343            ;;
7344       *)   BUGURL="$withval"
7345            ;;
7346      esac
7347 else
7348   BUGURL="http://gcc.gnu.org/bugs.html"
7349
7350 fi
7351
7352   case ${BUGURL} in
7353   "")
7354     REPORT_BUGS_TO=
7355     REPORT_BUGS_TEXI=
7356     ;;
7357   *)
7358     REPORT_BUGS_TO="<$BUGURL>"
7359     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7360     ;;
7361   esac;
7362
7363
7364
7365
7366 # Sanity check enable_languages in case someone does not run the toplevel
7367 # configure # script.
7368 # Check whether --enable-languages was given.
7369 if test "${enable_languages+set}" = set; then :
7370   enableval=$enable_languages; case ,${enable_languages}, in
7371        ,,|,yes,)
7372                 # go safe -- we cannot be much sure without the toplevel
7373                 # configure's
7374                 # analysis of which target libs are present and usable
7375                 enable_languages=c
7376                 ;;
7377          *,all,*)
7378                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7379                 ;;
7380         *,c,*)
7381                 ;;
7382         *)
7383                 enable_languages=c,${enable_languages}
7384                 ;;
7385 esac
7386 else
7387   enable_languages=c
7388 fi
7389
7390
7391
7392 # Check whether --with-multilib-list was given.
7393 if test "${with_multilib_list+set}" = set; then :
7394   withval=$with_multilib_list; :
7395 else
7396   with_multilib_list=default
7397 fi
7398
7399
7400 # -------------------------
7401 # Checks for other programs
7402 # -------------------------
7403
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7405 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7406 set x ${MAKE-make}
7407 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7408 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7409   $as_echo_n "(cached) " >&6
7410 else
7411   cat >conftest.make <<\_ACEOF
7412 SHELL = /bin/sh
7413 all:
7414         @echo '@@@%%%=$(MAKE)=@@@%%%'
7415 _ACEOF
7416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7417 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7418   *@@@%%%=?*=@@@%%%*)
7419     eval ac_cv_prog_make_${ac_make}_set=yes;;
7420   *)
7421     eval ac_cv_prog_make_${ac_make}_set=no;;
7422 esac
7423 rm -f conftest.make
7424 fi
7425 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7427 $as_echo "yes" >&6; }
7428   SET_MAKE=
7429 else
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7432   SET_MAKE="MAKE=${MAKE-make}"
7433 fi
7434
7435
7436 # Find some useful tools
7437 for ac_prog in gawk mawk nawk awk
7438 do
7439   # Extract the first word of "$ac_prog", so it can be a program name with args.
7440 set dummy $ac_prog; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if test "${ac_cv_prog_AWK+set}" = set; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   if test -n "$AWK"; then
7447   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454     for ac_exec_ext in '' $ac_executable_extensions; do
7455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456     ac_cv_prog_AWK="$ac_prog"
7457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461   done
7462 IFS=$as_save_IFS
7463
7464 fi
7465 fi
7466 AWK=$ac_cv_prog_AWK
7467 if test -n "$AWK"; then
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7469 $as_echo "$AWK" >&6; }
7470 else
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474
7475
7476   test -n "$AWK" && break
7477 done
7478
7479 # We need awk to create options.c and options.h.
7480 # Bail out if it's missing.
7481 case ${AWK} in
7482   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7483 esac
7484
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7486 $as_echo_n "checking whether ln -s works... " >&6; }
7487 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7488   $as_echo_n "(cached) " >&6
7489 else
7490   rm -f conftestdata_t
7491 echo >conftestdata_f
7492 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7493 then
7494   gcc_cv_prog_LN_S="ln -s"
7495 else
7496   if ln conftestdata_f conftestdata_t 2>/dev/null
7497   then
7498     gcc_cv_prog_LN_S=ln
7499   else
7500     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7501     then
7502       gcc_cv_prog_LN_S="cp -p"
7503     else
7504       gcc_cv_prog_LN_S=cp
7505     fi
7506   fi
7507 fi
7508 rm -f conftestdata_f conftestdata_t
7509
7510 fi
7511 LN_S="$gcc_cv_prog_LN_S"
7512 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7514 $as_echo "yes" >&6; }
7515 else
7516   if test "$gcc_cv_prog_LN_S" = "ln"; then
7517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7518 $as_echo "no, using ln" >&6; }
7519   else
7520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7521 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7522   fi
7523 fi
7524
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7526 $as_echo_n "checking whether ln works... " >&6; }
7527 if test "${acx_cv_prog_LN+set}" = set; then :
7528   $as_echo_n "(cached) " >&6
7529 else
7530   rm -f conftestdata_t
7531 echo >conftestdata_f
7532 if ln conftestdata_f conftestdata_t 2>/dev/null
7533 then
7534   acx_cv_prog_LN=ln
7535 else
7536   acx_cv_prog_LN=no
7537 fi
7538 rm -f conftestdata_f conftestdata_t
7539
7540 fi
7541 if test $acx_cv_prog_LN = no; then
7542   LN="$LN_S"
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7544 $as_echo "no, using $LN" >&6; }
7545 else
7546   LN="$acx_cv_prog_LN"
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7548 $as_echo "yes" >&6; }
7549 fi
7550
7551 if test -n "$ac_tool_prefix"; then
7552   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7553 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7557   $as_echo_n "(cached) " >&6
7558 else
7559   if test -n "$RANLIB"; then
7560   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565   IFS=$as_save_IFS
7566   test -z "$as_dir" && as_dir=.
7567     for ac_exec_ext in '' $ac_executable_extensions; do
7568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571     break 2
7572   fi
7573 done
7574   done
7575 IFS=$as_save_IFS
7576
7577 fi
7578 fi
7579 RANLIB=$ac_cv_prog_RANLIB
7580 if test -n "$RANLIB"; then
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7582 $as_echo "$RANLIB" >&6; }
7583 else
7584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7586 fi
7587
7588
7589 fi
7590 if test -z "$ac_cv_prog_RANLIB"; then
7591   ac_ct_RANLIB=$RANLIB
7592   # Extract the first word of "ranlib", so it can be a program name with args.
7593 set dummy ranlib; ac_word=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7597   $as_echo_n "(cached) " >&6
7598 else
7599   if test -n "$ac_ct_RANLIB"; then
7600   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7601 else
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7604 do
7605   IFS=$as_save_IFS
7606   test -z "$as_dir" && as_dir=.
7607     for ac_exec_ext in '' $ac_executable_extensions; do
7608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7609     ac_cv_prog_ac_ct_RANLIB="ranlib"
7610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611     break 2
7612   fi
7613 done
7614   done
7615 IFS=$as_save_IFS
7616
7617 fi
7618 fi
7619 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7620 if test -n "$ac_ct_RANLIB"; then
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7622 $as_echo "$ac_ct_RANLIB" >&6; }
7623 else
7624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7626 fi
7627
7628   if test "x$ac_ct_RANLIB" = x; then
7629     RANLIB=":"
7630   else
7631     case $cross_compiling:$ac_tool_warned in
7632 yes:)
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7635 ac_tool_warned=yes ;;
7636 esac
7637     RANLIB=$ac_ct_RANLIB
7638   fi
7639 else
7640   RANLIB="$ac_cv_prog_RANLIB"
7641 fi
7642
7643 ranlib_flags=""
7644
7645
7646 # Find a good install program.  We prefer a C program (faster),
7647 # so one script is as good as another.  But avoid the broken or
7648 # incompatible versions:
7649 # SysV /etc/install, /usr/sbin/install
7650 # SunOS /usr/etc/install
7651 # IRIX /sbin/install
7652 # AIX /bin/install
7653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7655 # ./install, which can be erroneously created by make from ./install.sh.
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7657 $as_echo_n "checking for a BSD compatible install... " >&6; }
7658 if test -z "$INSTALL"; then
7659 if test "${ac_cv_path_install+set}" = set; then :
7660   $as_echo_n "(cached) " >&6
7661 else
7662     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7663   for ac_dir in $PATH; do
7664     # Account for people who put trailing slashes in PATH elements.
7665     case "$ac_dir/" in
7666     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7667     *)
7668       # OSF1 and SCO ODT 3.0 have their own names for install.
7669       for ac_prog in ginstall scoinst install; do
7670         if test -f $ac_dir/$ac_prog; then
7671           if test $ac_prog = install &&
7672             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7673             # AIX install.  It has an incompatible calling convention.
7674             # OSF/1 installbsd also uses dspmsg, but is usable.
7675             :
7676           else
7677             ac_cv_path_install="$ac_dir/$ac_prog -c"
7678             break 2
7679           fi
7680         fi
7681       done
7682       ;;
7683     esac
7684   done
7685   IFS="$ac_save_IFS"
7686
7687 fi
7688   if test "${ac_cv_path_install+set}" = set; then
7689     INSTALL="$ac_cv_path_install"
7690   else
7691     # As a last resort, use the slow shell script.  We don't cache a
7692     # path for INSTALL within a source directory, because that will
7693     # break other packages using the cache if that directory is
7694     # removed, or if the path is relative.
7695     INSTALL="$ac_install_sh"
7696   fi
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7699 $as_echo "$INSTALL" >&6; }
7700
7701 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7702 # It thinks the first close brace ends the variable substitution.
7703 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7704
7705 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7706
7707
7708 # See if cmp has --ignore-initial.
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7710 $as_echo_n "checking for cmp's capabilities... " >&6; }
7711 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7712   $as_echo_n "(cached) " >&6
7713 else
7714    echo abfoo >t1
7715   echo cdfoo >t2
7716   gcc_cv_prog_cmp_skip=slowcompare
7717   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7718     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7719       :
7720     else
7721       gcc_cv_prog_cmp_skip=gnucompare
7722     fi
7723   fi
7724   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7725     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7726       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7727         :
7728       else
7729         gcc_cv_prog_cmp_skip=fastcompare
7730       fi
7731     fi
7732   fi
7733   rm t1 t2
7734
7735 fi
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7737 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7738 make_compare_target=$gcc_cv_prog_cmp_skip
7739
7740
7741
7742 # See if we have the mktemp command.
7743 # Extract the first word of "mktemp", so it can be a program name with args.
7744 set dummy mktemp; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7748   $as_echo_n "(cached) " >&6
7749 else
7750   if test -n "$have_mktemp_command"; then
7751   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756   IFS=$as_save_IFS
7757   test -z "$as_dir" && as_dir=.
7758     for ac_exec_ext in '' $ac_executable_extensions; do
7759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760     ac_cv_prog_have_mktemp_command="yes"
7761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762     break 2
7763   fi
7764 done
7765   done
7766 IFS=$as_save_IFS
7767
7768   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7769 fi
7770 fi
7771 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7772 if test -n "$have_mktemp_command"; then
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7774 $as_echo "$have_mktemp_command" >&6; }
7775 else
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780
7781
7782 # See if makeinfo has been installed and is modern enough
7783 # that we can use it.
7784
7785   # Extract the first word of "makeinfo", so it can be a program name with args.
7786 set dummy makeinfo; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7790   $as_echo_n "(cached) " >&6
7791 else
7792   if test -n "$MAKEINFO"; then
7793   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798   IFS=$as_save_IFS
7799   test -z "$as_dir" && as_dir=.
7800     for ac_exec_ext in '' $ac_executable_extensions; do
7801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802     ac_cv_prog_MAKEINFO="makeinfo"
7803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804     break 2
7805   fi
7806 done
7807   done
7808 IFS=$as_save_IFS
7809
7810 fi
7811 fi
7812 MAKEINFO=$ac_cv_prog_MAKEINFO
7813 if test -n "$MAKEINFO"; then
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7815 $as_echo "$MAKEINFO" >&6; }
7816 else
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 fi
7820
7821
7822   if test -n "$MAKEINFO"; then
7823     # Found it, now check the version.
7824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7825 $as_echo_n "checking for modern makeinfo... " >&6; }
7826 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7827   $as_echo_n "(cached) " >&6
7828 else
7829   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7830                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7831
7832                     case $ac_prog_version in
7833                       '')  gcc_cv_prog_makeinfo_modern=no;;
7834                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7835                       *)   gcc_cv_prog_makeinfo_modern=no;;
7836                     esac
7837
7838 fi
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7840 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7841   else
7842     gcc_cv_prog_makeinfo_modern=no
7843   fi
7844   if test $gcc_cv_prog_makeinfo_modern = no; then
7845     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7846   fi
7847
7848 if test $gcc_cv_prog_makeinfo_modern = no; then
7849   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7850 *** Makeinfo is missing or too old.
7851 *** Info documentation will not be built." >&5
7852 $as_echo "$as_me: WARNING:
7853 *** Makeinfo is missing or too old.
7854 *** Info documentation will not be built." >&2;}
7855   BUILD_INFO=
7856 else
7857   BUILD_INFO=info
7858 fi
7859
7860
7861 # Is pod2man recent enough to regenerate manpages?
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7863 $as_echo_n "checking for recent Pod::Man... " >&6; }
7864 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7866 $as_echo "yes" >&6; }
7867   GENERATED_MANPAGES=generated-manpages
7868 else
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871   GENERATED_MANPAGES=
7872 fi
7873
7874
7875 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7876
7877 # How about lex?
7878 for ac_prog in flex
7879 do
7880   # Extract the first word of "$ac_prog", so it can be a program name with args.
7881 set dummy $ac_prog; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if test "${ac_cv_prog_FLEX+set}" = set; then :
7885   $as_echo_n "(cached) " >&6
7886 else
7887   if test -n "$FLEX"; then
7888   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7889 else
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7892 do
7893   IFS=$as_save_IFS
7894   test -z "$as_dir" && as_dir=.
7895     for ac_exec_ext in '' $ac_executable_extensions; do
7896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7897     ac_cv_prog_FLEX="$ac_prog"
7898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899     break 2
7900   fi
7901 done
7902   done
7903 IFS=$as_save_IFS
7904
7905 fi
7906 fi
7907 FLEX=$ac_cv_prog_FLEX
7908 if test -n "$FLEX"; then
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7910 $as_echo "$FLEX" >&6; }
7911 else
7912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914 fi
7915
7916
7917   test -n "$FLEX" && break
7918 done
7919 test -n "$FLEX" || FLEX="$MISSING flex"
7920
7921
7922 # Bison?
7923 for ac_prog in bison
7924 do
7925   # Extract the first word of "$ac_prog", so it can be a program name with args.
7926 set dummy $ac_prog; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if test "${ac_cv_prog_BISON+set}" = set; then :
7930   $as_echo_n "(cached) " >&6
7931 else
7932   if test -n "$BISON"; then
7933   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938   IFS=$as_save_IFS
7939   test -z "$as_dir" && as_dir=.
7940     for ac_exec_ext in '' $ac_executable_extensions; do
7941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942     ac_cv_prog_BISON="$ac_prog"
7943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944     break 2
7945   fi
7946 done
7947   done
7948 IFS=$as_save_IFS
7949
7950 fi
7951 fi
7952 BISON=$ac_cv_prog_BISON
7953 if test -n "$BISON"; then
7954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7955 $as_echo "$BISON" >&6; }
7956 else
7957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7959 fi
7960
7961
7962   test -n "$BISON" && break
7963 done
7964 test -n "$BISON" || BISON="$MISSING bison"
7965
7966
7967 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7968 # check for build == host before using them.
7969
7970 # NM
7971 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7972   && test -d ../binutils ; then
7973   NM='${objdir}/../binutils/nm-new'
7974 else
7975   # Extract the first word of "nm", so it can be a program name with args.
7976 set dummy nm; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if test "${ac_cv_prog_NM+set}" = set; then :
7980   $as_echo_n "(cached) " >&6
7981 else
7982   if test -n "$NM"; then
7983   ac_cv_prog_NM="$NM" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7987 do
7988   IFS=$as_save_IFS
7989   test -z "$as_dir" && as_dir=.
7990     for ac_exec_ext in '' $ac_executable_extensions; do
7991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7992     ac_cv_prog_NM="nm"
7993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994     break 2
7995   fi
7996 done
7997   done
7998 IFS=$as_save_IFS
7999
8000   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8001 fi
8002 fi
8003 NM=$ac_cv_prog_NM
8004 if test -n "$NM"; then
8005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8006 $as_echo "$NM" >&6; }
8007 else
8008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8010 fi
8011
8012
8013 fi
8014
8015 # AR
8016 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8017   && test -d ../binutils ; then
8018   AR='${objdir}/../binutils/ar'
8019 else
8020   # Extract the first word of "ar", so it can be a program name with args.
8021 set dummy ar; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if test "${ac_cv_prog_AR+set}" = set; then :
8025   $as_echo_n "(cached) " >&6
8026 else
8027   if test -n "$AR"; then
8028   ac_cv_prog_AR="$AR" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033   IFS=$as_save_IFS
8034   test -z "$as_dir" && as_dir=.
8035     for ac_exec_ext in '' $ac_executable_extensions; do
8036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037     ac_cv_prog_AR="ar"
8038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039     break 2
8040   fi
8041 done
8042   done
8043 IFS=$as_save_IFS
8044
8045   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8046 fi
8047 fi
8048 AR=$ac_cv_prog_AR
8049 if test -n "$AR"; then
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8051 $as_echo "$AR" >&6; }
8052 else
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057
8058 fi
8059
8060
8061 # --------------------
8062 # Checks for C headers
8063 # --------------------
8064
8065 # Need to reject headers which give warnings, so that the -Werror bootstrap
8066 # works later. *sigh*  This needs to come before all header checks.
8067
8068 ac_c_preproc_warn_flag=yes
8069
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8071 $as_echo_n "checking for ANSI C header files... " >&6; }
8072 if test "${ac_cv_header_stdc+set}" = set; then :
8073   $as_echo_n "(cached) " >&6
8074 else
8075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h.  */
8077 #include <stdlib.h>
8078 #include <stdarg.h>
8079 #include <string.h>
8080 #include <float.h>
8081
8082 int
8083 main ()
8084 {
8085
8086   ;
8087   return 0;
8088 }
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091   ac_cv_header_stdc=yes
8092 else
8093   ac_cv_header_stdc=no
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096
8097 if test $ac_cv_header_stdc = yes; then
8098   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h.  */
8101 #include <string.h>
8102
8103 _ACEOF
8104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8105   $EGREP "memchr" >/dev/null 2>&1; then :
8106
8107 else
8108   ac_cv_header_stdc=no
8109 fi
8110 rm -f conftest*
8111
8112 fi
8113
8114 if test $ac_cv_header_stdc = yes; then
8115   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h.  */
8118 #include <stdlib.h>
8119
8120 _ACEOF
8121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8122   $EGREP "free" >/dev/null 2>&1; then :
8123
8124 else
8125   ac_cv_header_stdc=no
8126 fi
8127 rm -f conftest*
8128
8129 fi
8130
8131 if test $ac_cv_header_stdc = yes; then
8132   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8133   if test "$cross_compiling" = yes; then :
8134   :
8135 else
8136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h.  */
8138 #include <ctype.h>
8139 #include <stdlib.h>
8140 #if ((' ' & 0x0FF) == 0x020)
8141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8143 #else
8144 # define ISLOWER(c) \
8145                    (('a' <= (c) && (c) <= 'i') \
8146                      || ('j' <= (c) && (c) <= 'r') \
8147                      || ('s' <= (c) && (c) <= 'z'))
8148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8149 #endif
8150
8151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8152 int
8153 main ()
8154 {
8155   int i;
8156   for (i = 0; i < 256; i++)
8157     if (XOR (islower (i), ISLOWER (i))
8158         || toupper (i) != TOUPPER (i))
8159       return 2;
8160   return 0;
8161 }
8162 _ACEOF
8163 if ac_fn_c_try_run "$LINENO"; then :
8164
8165 else
8166   ac_cv_header_stdc=no
8167 fi
8168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8169   conftest.$ac_objext conftest.beam conftest.$ac_ext
8170 fi
8171
8172 fi
8173 fi
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8175 $as_echo "$ac_cv_header_stdc" >&6; }
8176 if test $ac_cv_header_stdc = yes; then
8177
8178 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8179
8180 fi
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8183 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8184 if test "${ac_cv_header_time+set}" = set; then :
8185   $as_echo_n "(cached) " >&6
8186 else
8187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h.  */
8189 #include <sys/types.h>
8190 #include <sys/time.h>
8191 #include <time.h>
8192
8193 int
8194 main ()
8195 {
8196 if ((struct tm *) 0)
8197 return 0;
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"; then :
8203   ac_cv_header_time=yes
8204 else
8205   ac_cv_header_time=no
8206 fi
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8210 $as_echo "$ac_cv_header_time" >&6; }
8211 if test $ac_cv_header_time = yes; then
8212
8213 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8214
8215 fi
8216
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8218 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8219 if test "${gcc_cv_header_string+set}" = set; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h.  */
8224 #include <string.h>
8225 #include <strings.h>
8226 int
8227 main ()
8228 {
8229
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 if ac_fn_c_try_compile "$LINENO"; then :
8235   gcc_cv_header_string=yes
8236 else
8237   gcc_cv_header_string=no
8238 fi
8239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8242 $as_echo "$gcc_cv_header_string" >&6; }
8243 if test $gcc_cv_header_string = yes; then
8244
8245 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8246
8247 fi
8248
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8250 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8251 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8252   $as_echo_n "(cached) " >&6
8253 else
8254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h.  */
8256 #include <sys/types.h>
8257 #include <sys/wait.h>
8258 #ifndef WEXITSTATUS
8259 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8260 #endif
8261 #ifndef WIFEXITED
8262 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8263 #endif
8264
8265 int
8266 main ()
8267 {
8268   int s;
8269   wait (&s);
8270   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8271   ;
8272   return 0;
8273 }
8274 _ACEOF
8275 if ac_fn_c_try_compile "$LINENO"; then :
8276   ac_cv_header_sys_wait_h=yes
8277 else
8278   ac_cv_header_sys_wait_h=no
8279 fi
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281 fi
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8283 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8284 if test $ac_cv_header_sys_wait_h = yes; then
8285
8286 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8287
8288 fi
8289
8290 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8291                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8292                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8293                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8294 do :
8295   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8296 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8297 eval as_val=\$$as_ac_Header
8298    if test "x$as_val" = x""yes; then :
8299   cat >>confdefs.h <<_ACEOF
8300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8301 _ACEOF
8302
8303 fi
8304 done
8305
8306
8307 # Check for thread headers.
8308 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8309 if test "x$ac_cv_header_thread_h" = x""yes; then :
8310   have_thread_h=yes
8311 else
8312   have_thread_h=
8313 fi
8314
8315 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8316 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8317   have_pthread_h=yes
8318 else
8319   have_pthread_h=
8320 fi
8321
8322
8323 # These tests can't be done till we know if we have limits.h.
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8325 $as_echo_n "checking for CHAR_BIT... " >&6; }
8326 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h.  */
8331 #ifdef HAVE_LIMITS_H
8332 #include <limits.h>
8333 #endif
8334 #ifdef CHAR_BIT
8335 found
8336 #endif
8337 _ACEOF
8338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8339   $EGREP "found" >/dev/null 2>&1; then :
8340   gcc_cv_decl_char_bit=yes
8341 else
8342   gcc_cv_decl_char_bit=no
8343 fi
8344 rm -f conftest*
8345
8346
8347 fi
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8349 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8350 if test $gcc_cv_decl_char_bit = no; then
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8352 $as_echo_n "checking number of bits in a byte... " >&6; }
8353 if test "${gcc_cv_c_nbby+set}" = set; then :
8354   $as_echo_n "(cached) " >&6
8355 else
8356   i=8
8357  gcc_cv_c_nbby=
8358  while test $i -lt 65; do
8359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h.  */
8361
8362 int
8363 main ()
8364 {
8365 switch(0) {
8366   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8367   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8368   ; }
8369   ;
8370   return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374   gcc_cv_c_nbby=$i; break
8375 fi
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377    i=`expr $i + 1`
8378  done
8379  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8380
8381 fi
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8383 $as_echo "$gcc_cv_c_nbby" >&6; }
8384 if test $gcc_cv_c_nbby = failed; then
8385   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8386 else
8387
8388 cat >>confdefs.h <<_ACEOF
8389 #define CHAR_BIT $gcc_cv_c_nbby
8390 _ACEOF
8391
8392 fi
8393 fi
8394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8395 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8396 if test "${ac_cv_c_bigendian+set}" = set; then :
8397   $as_echo_n "(cached) " >&6
8398 else
8399   ac_cv_c_bigendian=unknown
8400     # See if we're dealing with a universal compiler.
8401     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h.  */
8403 #ifndef __APPLE_CC__
8404                not a universal capable compiler
8405              #endif
8406              typedef int dummy;
8407
8408 _ACEOF
8409 if ac_fn_c_try_compile "$LINENO"; then :
8410
8411         # Check for potential -arch flags.  It is not universal unless
8412         # there are at least two -arch flags with different values.
8413         ac_arch=
8414         ac_prev=
8415         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8416          if test -n "$ac_prev"; then
8417            case $ac_word in
8418              i?86 | x86_64 | ppc | ppc64)
8419                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8420                  ac_arch=$ac_word
8421                else
8422                  ac_cv_c_bigendian=universal
8423                  break
8424                fi
8425                ;;
8426            esac
8427            ac_prev=
8428          elif test "x$ac_word" = "x-arch"; then
8429            ac_prev=arch
8430          fi
8431        done
8432 fi
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434     if test $ac_cv_c_bigendian = unknown; then
8435       # See if sys/param.h defines the BYTE_ORDER macro.
8436       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h.  */
8438 #include <sys/types.h>
8439              #include <sys/param.h>
8440
8441 int
8442 main ()
8443 {
8444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8445                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8446                      && LITTLE_ENDIAN)
8447               bogus endian macros
8448              #endif
8449
8450   ;
8451   return 0;
8452 }
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"; then :
8455   # It does; now see whether it defined to BIG_ENDIAN or not.
8456          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h.  */
8458 #include <sys/types.h>
8459                 #include <sys/param.h>
8460
8461 int
8462 main ()
8463 {
8464 #if BYTE_ORDER != BIG_ENDIAN
8465                  not big endian
8466                 #endif
8467
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473   ac_cv_c_bigendian=yes
8474 else
8475   ac_cv_c_bigendian=no
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 fi
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480     fi
8481     if test $ac_cv_c_bigendian = unknown; then
8482       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8483       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h.  */
8485 #include <limits.h>
8486
8487 int
8488 main ()
8489 {
8490 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8491               bogus endian macros
8492              #endif
8493
8494   ;
8495   return 0;
8496 }
8497 _ACEOF
8498 if ac_fn_c_try_compile "$LINENO"; then :
8499   # It does; now see whether it defined to _BIG_ENDIAN or not.
8500          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h.  */
8502 #include <limits.h>
8503
8504 int
8505 main ()
8506 {
8507 #ifndef _BIG_ENDIAN
8508                  not big endian
8509                 #endif
8510
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 if ac_fn_c_try_compile "$LINENO"; then :
8516   ac_cv_c_bigendian=yes
8517 else
8518   ac_cv_c_bigendian=no
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523     fi
8524     if test $ac_cv_c_bigendian = unknown; then
8525       # Compile a test program.
8526       if test "$cross_compiling" = yes; then :
8527   # Try to guess by grepping values from an object file.
8528          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h.  */
8530 short int ascii_mm[] =
8531                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8532                 short int ascii_ii[] =
8533                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8534                 int use_ascii (int i) {
8535                   return ascii_mm[i] + ascii_ii[i];
8536                 }
8537                 short int ebcdic_ii[] =
8538                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8539                 short int ebcdic_mm[] =
8540                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8541                 int use_ebcdic (int i) {
8542                   return ebcdic_mm[i] + ebcdic_ii[i];
8543                 }
8544                 extern int foo;
8545
8546 int
8547 main ()
8548 {
8549 return use_ascii (foo) == use_ebcdic (foo);
8550   ;
8551   return 0;
8552 }
8553 _ACEOF
8554 if ac_fn_c_try_compile "$LINENO"; then :
8555   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8556               ac_cv_c_bigendian=yes
8557             fi
8558             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8559               if test "$ac_cv_c_bigendian" = unknown; then
8560                 ac_cv_c_bigendian=no
8561               else
8562                 # finding both strings is unlikely to happen, but who knows?
8563                 ac_cv_c_bigendian=unknown
8564               fi
8565             fi
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 else
8569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h.  */
8571 $ac_includes_default
8572 int
8573 main ()
8574 {
8575
8576              /* Are we little or big endian?  From Harbison&Steele.  */
8577              union
8578              {
8579                long int l;
8580                char c[sizeof (long int)];
8581              } u;
8582              u.l = 1;
8583              return u.c[sizeof (long int) - 1] == 1;
8584
8585   ;
8586   return 0;
8587 }
8588 _ACEOF
8589 if ac_fn_c_try_run "$LINENO"; then :
8590   ac_cv_c_bigendian=no
8591 else
8592   ac_cv_c_bigendian=yes
8593 fi
8594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8595   conftest.$ac_objext conftest.beam conftest.$ac_ext
8596 fi
8597
8598     fi
8599 fi
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8601 $as_echo "$ac_cv_c_bigendian" >&6; }
8602  case $ac_cv_c_bigendian in #(
8603    yes)
8604      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8605 ;; #(
8606    no)
8607       ;; #(
8608    universal)
8609
8610 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8611
8612      ;; #(
8613    *)
8614      as_fn_error "unknown endianness
8615  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8616  esac
8617
8618
8619 # ----------------------
8620 # Checks for C++ headers
8621 # ----------------------
8622
8623 ac_ext=cpp
8624 ac_cpp='$CXXCPP $CPPFLAGS'
8625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8629 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8630 if test -z "$CXXCPP"; then
8631   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8632   $as_echo_n "(cached) " >&6
8633 else
8634       # Double quotes because CXXCPP needs to be expanded
8635     for CXXCPP in "$CXX -E" "/lib/cpp"
8636     do
8637       ac_preproc_ok=false
8638 for ac_cxx_preproc_warn_flag in '' yes
8639 do
8640   # Use a header file that comes with gcc, so configuring glibc
8641   # with a fresh cross-compiler works.
8642   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8643   # <limits.h> exists even on freestanding compilers.
8644   # On the NeXT, cc -E runs the code through the compiler's parser,
8645   # not just through cpp. "Syntax error" is here to catch this case.
8646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h.  */
8648 #ifdef __STDC__
8649 # include <limits.h>
8650 #else
8651 # include <assert.h>
8652 #endif
8653                      Syntax error
8654 _ACEOF
8655 if ac_fn_cxx_try_cpp "$LINENO"; then :
8656
8657 else
8658   # Broken: fails on valid input.
8659 continue
8660 fi
8661 rm -f conftest.err conftest.$ac_ext
8662
8663   # OK, works on sane cases.  Now check whether nonexistent headers
8664   # can be detected and how.
8665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h.  */
8667 #include <ac_nonexistent.h>
8668 _ACEOF
8669 if ac_fn_cxx_try_cpp "$LINENO"; then :
8670   # Broken: success on invalid input.
8671 continue
8672 else
8673   # Passes both tests.
8674 ac_preproc_ok=:
8675 break
8676 fi
8677 rm -f conftest.err conftest.$ac_ext
8678
8679 done
8680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8681 rm -f conftest.err conftest.$ac_ext
8682 if $ac_preproc_ok; then :
8683   break
8684 fi
8685
8686     done
8687     ac_cv_prog_CXXCPP=$CXXCPP
8688
8689 fi
8690   CXXCPP=$ac_cv_prog_CXXCPP
8691 else
8692   ac_cv_prog_CXXCPP=$CXXCPP
8693 fi
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8695 $as_echo "$CXXCPP" >&6; }
8696 ac_preproc_ok=false
8697 for ac_cxx_preproc_warn_flag in '' yes
8698 do
8699   # Use a header file that comes with gcc, so configuring glibc
8700   # with a fresh cross-compiler works.
8701   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8702   # <limits.h> exists even on freestanding compilers.
8703   # On the NeXT, cc -E runs the code through the compiler's parser,
8704   # not just through cpp. "Syntax error" is here to catch this case.
8705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h.  */
8707 #ifdef __STDC__
8708 # include <limits.h>
8709 #else
8710 # include <assert.h>
8711 #endif
8712                      Syntax error
8713 _ACEOF
8714 if ac_fn_cxx_try_cpp "$LINENO"; then :
8715
8716 else
8717   # Broken: fails on valid input.
8718 continue
8719 fi
8720 rm -f conftest.err conftest.$ac_ext
8721
8722   # OK, works on sane cases.  Now check whether nonexistent headers
8723   # can be detected and how.
8724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h.  */
8726 #include <ac_nonexistent.h>
8727 _ACEOF
8728 if ac_fn_cxx_try_cpp "$LINENO"; then :
8729   # Broken: success on invalid input.
8730 continue
8731 else
8732   # Passes both tests.
8733 ac_preproc_ok=:
8734 break
8735 fi
8736 rm -f conftest.err conftest.$ac_ext
8737
8738 done
8739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8740 rm -f conftest.err conftest.$ac_ext
8741 if $ac_preproc_ok; then :
8742
8743 else
8744   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8747 See \`config.log' for more details." >&5
8748 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8749 See \`config.log' for more details." >&2;}; }
8750 fi
8751
8752 ac_ext=c
8753 ac_cpp='$CPP $CPPFLAGS'
8754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8757
8758
8759 ac_ext=cpp
8760 ac_cpp='$CXXCPP $CPPFLAGS'
8761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8764
8765
8766
8767
8768 for ac_header in unordered_map
8769 do :
8770   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8771 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8772   cat >>confdefs.h <<_ACEOF
8773 #define HAVE_UNORDERED_MAP 1
8774 _ACEOF
8775
8776 fi
8777 done
8778
8779 for ac_header in tr1/unordered_map
8780 do :
8781   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8782 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8783   cat >>confdefs.h <<_ACEOF
8784 #define HAVE_TR1_UNORDERED_MAP 1
8785 _ACEOF
8786
8787 fi
8788 done
8789
8790 for ac_header in ext/hash_map
8791 do :
8792   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8793 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8794   cat >>confdefs.h <<_ACEOF
8795 #define HAVE_EXT_HASH_MAP 1
8796 _ACEOF
8797
8798 fi
8799 done
8800
8801
8802 ac_ext=c
8803 ac_cpp='$CPP $CPPFLAGS'
8804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8807
8808
8809 # --------
8810 # UNSORTED
8811 # --------
8812
8813
8814 # These libraries may be used by collect2.
8815 # We may need a special search path to get them linked.
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8817 $as_echo_n "checking for collect2 libraries... " >&6; }
8818 if test "${gcc_cv_collect2_libs+set}" = set; then :
8819   $as_echo_n "(cached) " >&6
8820 else
8821   save_LIBS="$LIBS"
8822 for libs in '' -lld -lmld \
8823                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8824                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8825 do
8826         LIBS="$libs"
8827         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h.  */
8829
8830 /* Override any GCC internal prototype to avoid an error.
8831    Use char because int might match the return type of a GCC
8832    builtin and then its argument prototype would still apply.  */
8833 #ifdef __cplusplus
8834 extern "C"
8835 #endif
8836 char ldopen ();
8837 int
8838 main ()
8839 {
8840 return ldopen ();
8841   ;
8842   return 0;
8843 }
8844 _ACEOF
8845 if ac_fn_c_try_link "$LINENO"; then :
8846   gcc_cv_collect2_libs="$libs"; break
8847 fi
8848 rm -f core conftest.err conftest.$ac_objext \
8849     conftest$ac_exeext conftest.$ac_ext
8850 done
8851 LIBS="$save_LIBS"
8852 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8853 fi
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8855 $as_echo "$gcc_cv_collect2_libs" >&6; }
8856 case $gcc_cv_collect2_libs in
8857         "none required")        ;;
8858         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8859 esac
8860
8861
8862 # When building Ada code on Alpha, we need exc_resume which is usually in
8863 # -lexc.  So test for it.
8864 save_LIBS="$LIBS"
8865 LIBS=
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8867 $as_echo_n "checking for library containing exc_resume... " >&6; }
8868 if test "${ac_cv_search_exc_resume+set}" = set; then :
8869   $as_echo_n "(cached) " >&6
8870 else
8871   ac_func_search_save_LIBS=$LIBS
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h.  */
8874
8875 /* Override any GCC internal prototype to avoid an error.
8876    Use char because int might match the return type of a GCC
8877    builtin and then its argument prototype would still apply.  */
8878 #ifdef __cplusplus
8879 extern "C"
8880 #endif
8881 char exc_resume ();
8882 int
8883 main ()
8884 {
8885 return exc_resume ();
8886   ;
8887   return 0;
8888 }
8889 _ACEOF
8890 for ac_lib in '' exc; do
8891   if test -z "$ac_lib"; then
8892     ac_res="none required"
8893   else
8894     ac_res=-l$ac_lib
8895     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8896   fi
8897   if ac_fn_c_try_link "$LINENO"; then :
8898   ac_cv_search_exc_resume=$ac_res
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext \
8901     conftest$ac_exeext
8902   if test "${ac_cv_search_exc_resume+set}" = set; then :
8903   break
8904 fi
8905 done
8906 if test "${ac_cv_search_exc_resume+set}" = set; then :
8907
8908 else
8909   ac_cv_search_exc_resume=no
8910 fi
8911 rm conftest.$ac_ext
8912 LIBS=$ac_func_search_save_LIBS
8913 fi
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8915 $as_echo "$ac_cv_search_exc_resume" >&6; }
8916 ac_res=$ac_cv_search_exc_resume
8917 if test "$ac_res" != no; then :
8918   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8919
8920 fi
8921
8922 GNAT_LIBEXC="$LIBS"
8923 LIBS="$save_LIBS"
8924
8925
8926 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8927 save_LIBS="$LIBS"
8928 LIBS=
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8930 $as_echo_n "checking for library containing kstat_open... " >&6; }
8931 if test "${ac_cv_search_kstat_open+set}" = set; then :
8932   $as_echo_n "(cached) " >&6
8933 else
8934   ac_func_search_save_LIBS=$LIBS
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h.  */
8937
8938 /* Override any GCC internal prototype to avoid an error.
8939    Use char because int might match the return type of a GCC
8940    builtin and then its argument prototype would still apply.  */
8941 #ifdef __cplusplus
8942 extern "C"
8943 #endif
8944 char kstat_open ();
8945 int
8946 main ()
8947 {
8948 return kstat_open ();
8949   ;
8950   return 0;
8951 }
8952 _ACEOF
8953 for ac_lib in '' kstat; do
8954   if test -z "$ac_lib"; then
8955     ac_res="none required"
8956   else
8957     ac_res=-l$ac_lib
8958     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8959   fi
8960   if ac_fn_c_try_link "$LINENO"; then :
8961   ac_cv_search_kstat_open=$ac_res
8962 fi
8963 rm -f core conftest.err conftest.$ac_objext \
8964     conftest$ac_exeext
8965   if test "${ac_cv_search_kstat_open+set}" = set; then :
8966   break
8967 fi
8968 done
8969 if test "${ac_cv_search_kstat_open+set}" = set; then :
8970
8971 else
8972   ac_cv_search_kstat_open=no
8973 fi
8974 rm conftest.$ac_ext
8975 LIBS=$ac_func_search_save_LIBS
8976 fi
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8978 $as_echo "$ac_cv_search_kstat_open" >&6; }
8979 ac_res=$ac_cv_search_kstat_open
8980 if test "$ac_res" != no; then :
8981   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8982
8983 fi
8984
8985 EXTRA_GCC_LIBS="$LIBS"
8986 LIBS="$save_LIBS"
8987
8988
8989 # Some systems put ldexp and frexp in libm instead of libc; assume
8990 # they're both in the same place.  jcf-dump needs them.
8991 save_LIBS="$LIBS"
8992 LIBS=
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8994 $as_echo_n "checking for library containing ldexp... " >&6; }
8995 if test "${ac_cv_search_ldexp+set}" = set; then :
8996   $as_echo_n "(cached) " >&6
8997 else
8998   ac_func_search_save_LIBS=$LIBS
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h.  */
9001
9002 /* Override any GCC internal prototype to avoid an error.
9003    Use char because int might match the return type of a GCC
9004    builtin and then its argument prototype would still apply.  */
9005 #ifdef __cplusplus
9006 extern "C"
9007 #endif
9008 char ldexp ();
9009 int
9010 main ()
9011 {
9012 return ldexp ();
9013   ;
9014   return 0;
9015 }
9016 _ACEOF
9017 for ac_lib in '' m; do
9018   if test -z "$ac_lib"; then
9019     ac_res="none required"
9020   else
9021     ac_res=-l$ac_lib
9022     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9023   fi
9024   if ac_fn_c_try_link "$LINENO"; then :
9025   ac_cv_search_ldexp=$ac_res
9026 fi
9027 rm -f core conftest.err conftest.$ac_objext \
9028     conftest$ac_exeext
9029   if test "${ac_cv_search_ldexp+set}" = set; then :
9030   break
9031 fi
9032 done
9033 if test "${ac_cv_search_ldexp+set}" = set; then :
9034
9035 else
9036   ac_cv_search_ldexp=no
9037 fi
9038 rm conftest.$ac_ext
9039 LIBS=$ac_func_search_save_LIBS
9040 fi
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9042 $as_echo "$ac_cv_search_ldexp" >&6; }
9043 ac_res=$ac_cv_search_ldexp
9044 if test "$ac_res" != no; then :
9045   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9046
9047 fi
9048
9049 LDEXP_LIB="$LIBS"
9050 LIBS="$save_LIBS"
9051
9052
9053 # Use <inttypes.h> only if it exists,
9054 # doesn't clash with <sys/types.h>, and declares intmax_t.
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9056 $as_echo_n "checking for inttypes.h... " >&6; }
9057 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9058   $as_echo_n "(cached) " >&6
9059 else
9060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h.  */
9062 #include <sys/types.h>
9063 #include <inttypes.h>
9064 int
9065 main ()
9066 {
9067 intmax_t i = -1;
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 if ac_fn_c_try_compile "$LINENO"; then :
9073   gcc_cv_header_inttypes_h=yes
9074 else
9075   gcc_cv_header_inttypes_h=no
9076 fi
9077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9078 fi
9079
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9081 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9082 if test $gcc_cv_header_inttypes_h = yes; then
9083
9084 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9085
9086 fi
9087
9088
9089
9090 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9091         sysconf strsignal getrusage nl_langinfo \
9092         gettimeofday mbstowcs wcswidth mmap setlocale \
9093         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
9094 do :
9095   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9097 eval as_val=\$$as_ac_var
9098    if test "x$as_val" = x""yes; then :
9099   cat >>confdefs.h <<_ACEOF
9100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9101 _ACEOF
9102
9103 fi
9104 done
9105
9106
9107 if test x$ac_cv_func_mbstowcs = xyes; then
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9109 $as_echo_n "checking whether mbstowcs works... " >&6; }
9110 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9111   $as_echo_n "(cached) " >&6
9112 else
9113       if test "$cross_compiling" = yes; then :
9114   gcc_cv_func_mbstowcs_works=yes
9115 else
9116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h.  */
9118 #include <stdlib.h>
9119 int main()
9120 {
9121   mbstowcs(0, "", 0);
9122   return 0;
9123 }
9124 _ACEOF
9125 if ac_fn_c_try_run "$LINENO"; then :
9126   gcc_cv_func_mbstowcs_works=yes
9127 else
9128   gcc_cv_func_mbstowcs_works=no
9129 fi
9130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9131   conftest.$ac_objext conftest.beam conftest.$ac_ext
9132 fi
9133
9134 fi
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9136 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9137   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9138
9139 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9140
9141   fi
9142 fi
9143
9144 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9145 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9146
9147 else
9148
9149 cat >>confdefs.h <<_ACEOF
9150 #define ssize_t int
9151 _ACEOF
9152
9153 fi
9154
9155 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9156 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9157
9158 else
9159
9160 cat >>confdefs.h <<_ACEOF
9161 #define caddr_t char *
9162 _ACEOF
9163
9164 fi
9165
9166
9167
9168 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9169 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9170   gcc_header_sys_mman_h=yes
9171 else
9172   gcc_header_sys_mman_h=no
9173 fi
9174
9175 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9176 if test "x$ac_cv_func_mmap" = x""yes; then :
9177   gcc_func_mmap=yes
9178 else
9179   gcc_func_mmap=no
9180 fi
9181
9182 if test "$gcc_header_sys_mman_h" != yes \
9183  || test "$gcc_func_mmap" != yes; then
9184    gcc_cv_func_mmap_file=no
9185    gcc_cv_func_mmap_dev_zero=no
9186    gcc_cv_func_mmap_anon=no
9187 else
9188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9189 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9190 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9191   $as_echo_n "(cached) " >&6
9192 else
9193   # Add a system to this blacklist if
9194    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9195    # memory area containing the same data that you'd get if you applied
9196    # read() to the same fd.  The only system known to have a problem here
9197    # is VMS, where text files have record structure.
9198    case "$host_os" in
9199      *vms* | ultrix*)
9200         gcc_cv_func_mmap_file=no ;;
9201      *)
9202         gcc_cv_func_mmap_file=yes;;
9203    esac
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9206 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9207    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9208 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9209 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9210   $as_echo_n "(cached) " >&6
9211 else
9212   # Add a system to this blacklist if it has mmap() but /dev/zero
9213    # does not exist, or if mmapping /dev/zero does not give anonymous
9214    # zeroed pages with both the following properties:
9215    # 1. If you map N consecutive pages in with one call, and then
9216    #    unmap any subset of those pages, the pages that were not
9217    #    explicitly unmapped remain accessible.
9218    # 2. If you map two adjacent blocks of memory and then unmap them
9219    #    both at once, they must both go away.
9220    # Systems known to be in this category are Windows (all variants),
9221    # VMS, and Darwin.
9222    case "$host_os" in
9223      *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9224         gcc_cv_func_mmap_dev_zero=no ;;
9225      *)
9226         gcc_cv_func_mmap_dev_zero=yes;;
9227    esac
9228 fi
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9230 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9231
9232    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9234 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9235 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9236   $as_echo_n "(cached) " >&6
9237 else
9238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h.  */
9240 #include <sys/types.h>
9241 #include <sys/mman.h>
9242 #include <unistd.h>
9243
9244 #ifndef MAP_ANONYMOUS
9245 #define MAP_ANONYMOUS MAP_ANON
9246 #endif
9247
9248 int
9249 main ()
9250 {
9251 int n = MAP_ANONYMOUS;
9252   ;
9253   return 0;
9254 }
9255 _ACEOF
9256 if ac_fn_c_try_compile "$LINENO"; then :
9257   gcc_cv_decl_map_anon=yes
9258 else
9259   gcc_cv_decl_map_anon=no
9260 fi
9261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9262 fi
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9264 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9265
9266    if test $gcc_cv_decl_map_anon = no; then
9267      gcc_cv_func_mmap_anon=no
9268    else
9269      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9270 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9271 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9272   $as_echo_n "(cached) " >&6
9273 else
9274   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9275    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9276    # doesn't give anonymous zeroed pages with the same properties listed
9277    # above for use of /dev/zero.
9278    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9279    case "$host_os" in
9280      *vms* | cygwin* | pe | mingw* | sco* | udk* )
9281         gcc_cv_func_mmap_anon=no ;;
9282      *)
9283         gcc_cv_func_mmap_anon=yes;;
9284    esac
9285 fi
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9287 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9288    fi
9289 fi
9290
9291 if test $gcc_cv_func_mmap_file = yes; then
9292
9293 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9294
9295 fi
9296 if test $gcc_cv_func_mmap_dev_zero = yes; then
9297
9298 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9299
9300 fi
9301 if test $gcc_cv_func_mmap_anon = yes; then
9302
9303 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9304
9305 fi
9306
9307
9308 case "${host}" in
9309 *-*-*vms*)
9310   # Under VMS, vfork works very differently than on Unix. The standard test
9311   # won't work, and it isn't easily adaptable. It makes more sense to
9312   # just force it.
9313   ac_cv_func_vfork_works=yes
9314   ;;
9315 esac
9316 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9317 if test "x$ac_cv_type_pid_t" = x""yes; then :
9318
9319 else
9320
9321 cat >>confdefs.h <<_ACEOF
9322 #define pid_t int
9323 _ACEOF
9324
9325 fi
9326
9327 for ac_header in vfork.h
9328 do :
9329   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9330 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9331   cat >>confdefs.h <<_ACEOF
9332 #define HAVE_VFORK_H 1
9333 _ACEOF
9334
9335 fi
9336 done
9337
9338 for ac_func in fork vfork
9339 do :
9340   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9341 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9342 eval as_val=\$$as_ac_var
9343    if test "x$as_val" = x""yes; then :
9344   cat >>confdefs.h <<_ACEOF
9345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9346 _ACEOF
9347
9348 fi
9349 done
9350
9351 if test "x$ac_cv_func_fork" = xyes; then
9352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9353 $as_echo_n "checking for working fork... " >&6; }
9354 if test "${ac_cv_func_fork_works+set}" = set; then :
9355   $as_echo_n "(cached) " >&6
9356 else
9357   if test "$cross_compiling" = yes; then :
9358   ac_cv_func_fork_works=cross
9359 else
9360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h.  */
9362 $ac_includes_default
9363 int
9364 main ()
9365 {
9366
9367           /* By Ruediger Kuhlmann. */
9368           return fork () < 0;
9369
9370   ;
9371   return 0;
9372 }
9373 _ACEOF
9374 if ac_fn_c_try_run "$LINENO"; then :
9375   ac_cv_func_fork_works=yes
9376 else
9377   ac_cv_func_fork_works=no
9378 fi
9379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9380   conftest.$ac_objext conftest.beam conftest.$ac_ext
9381 fi
9382
9383 fi
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9385 $as_echo "$ac_cv_func_fork_works" >&6; }
9386
9387 else
9388   ac_cv_func_fork_works=$ac_cv_func_fork
9389 fi
9390 if test "x$ac_cv_func_fork_works" = xcross; then
9391   case $host in
9392     *-*-amigaos* | *-*-msdosdjgpp*)
9393       # Override, as these systems have only a dummy fork() stub
9394       ac_cv_func_fork_works=no
9395       ;;
9396     *)
9397       ac_cv_func_fork_works=yes
9398       ;;
9399   esac
9400   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9401 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9402 fi
9403 ac_cv_func_vfork_works=$ac_cv_func_vfork
9404 if test "x$ac_cv_func_vfork" = xyes; then
9405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9406 $as_echo_n "checking for working vfork... " >&6; }
9407 if test "${ac_cv_func_vfork_works+set}" = set; then :
9408   $as_echo_n "(cached) " >&6
9409 else
9410   if test "$cross_compiling" = yes; then :
9411   ac_cv_func_vfork_works=cross
9412 else
9413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h.  */
9415 /* Thanks to Paul Eggert for this test.  */
9416 $ac_includes_default
9417 #include <sys/wait.h>
9418 #ifdef HAVE_VFORK_H
9419 # include <vfork.h>
9420 #endif
9421 /* On some sparc systems, changes by the child to local and incoming
9422    argument registers are propagated back to the parent.  The compiler
9423    is told about this with #include <vfork.h>, but some compilers
9424    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9425    static variable whose address is put into a register that is
9426    clobbered by the vfork.  */
9427 static void
9428 #ifdef __cplusplus
9429 sparc_address_test (int arg)
9430 # else
9431 sparc_address_test (arg) int arg;
9432 #endif
9433 {
9434   static pid_t child;
9435   if (!child) {
9436     child = vfork ();
9437     if (child < 0) {
9438       perror ("vfork");
9439       _exit(2);
9440     }
9441     if (!child) {
9442       arg = getpid();
9443       write(-1, "", 0);
9444       _exit (arg);
9445     }
9446   }
9447 }
9448
9449 int
9450 main ()
9451 {
9452   pid_t parent = getpid ();
9453   pid_t child;
9454
9455   sparc_address_test (0);
9456
9457   child = vfork ();
9458
9459   if (child == 0) {
9460     /* Here is another test for sparc vfork register problems.  This
9461        test uses lots of local variables, at least as many local
9462        variables as main has allocated so far including compiler
9463        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9464        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9465        reuse the register of parent for one of the local variables,
9466        since it will think that parent can't possibly be used any more
9467        in this routine.  Assigning to the local variable will thus
9468        munge parent in the parent process.  */
9469     pid_t
9470       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9471       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9472     /* Convince the compiler that p..p7 are live; otherwise, it might
9473        use the same hardware register for all 8 local variables.  */
9474     if (p != p1 || p != p2 || p != p3 || p != p4
9475         || p != p5 || p != p6 || p != p7)
9476       _exit(1);
9477
9478     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9479        from child file descriptors.  If the child closes a descriptor
9480        before it execs or exits, this munges the parent's descriptor
9481        as well.  Test for this by closing stdout in the child.  */
9482     _exit(close(fileno(stdout)) != 0);
9483   } else {
9484     int status;
9485     struct stat st;
9486
9487     while (wait(&status) != child)
9488       ;
9489     return (
9490          /* Was there some problem with vforking?  */
9491          child < 0
9492
9493          /* Did the child fail?  (This shouldn't happen.)  */
9494          || status
9495
9496          /* Did the vfork/compiler bug occur?  */
9497          || parent != getpid()
9498
9499          /* Did the file descriptor bug occur?  */
9500          || fstat(fileno(stdout), &st) != 0
9501          );
9502   }
9503 }
9504 _ACEOF
9505 if ac_fn_c_try_run "$LINENO"; then :
9506   ac_cv_func_vfork_works=yes
9507 else
9508   ac_cv_func_vfork_works=no
9509 fi
9510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9511   conftest.$ac_objext conftest.beam conftest.$ac_ext
9512 fi
9513
9514 fi
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9516 $as_echo "$ac_cv_func_vfork_works" >&6; }
9517
9518 fi;
9519 if test "x$ac_cv_func_fork_works" = xcross; then
9520   ac_cv_func_vfork_works=$ac_cv_func_vfork
9521   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9522 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9523 fi
9524
9525 if test "x$ac_cv_func_vfork_works" = xyes; then
9526
9527 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9528
9529 else
9530
9531 $as_echo "#define vfork fork" >>confdefs.h
9532
9533 fi
9534 if test "x$ac_cv_func_fork_works" = xyes; then
9535
9536 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9537
9538 fi
9539
9540
9541 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9542 # iconv() prototype.
9543 ac_ext=cpp
9544 ac_cpp='$CXXCPP $CPPFLAGS'
9545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9548
9549
9550       if test "X$prefix" = "XNONE"; then
9551     acl_final_prefix="$ac_default_prefix"
9552   else
9553     acl_final_prefix="$prefix"
9554   fi
9555   if test "X$exec_prefix" = "XNONE"; then
9556     acl_final_exec_prefix='${prefix}'
9557   else
9558     acl_final_exec_prefix="$exec_prefix"
9559   fi
9560   acl_save_prefix="$prefix"
9561   prefix="$acl_final_prefix"
9562   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9563   prefix="$acl_save_prefix"
9564
9565
9566 # Check whether --with-gnu-ld was given.
9567 if test "${with_gnu_ld+set}" = set; then :
9568   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9569 else
9570   with_gnu_ld=no
9571 fi
9572
9573 # Prepare PATH_SEPARATOR.
9574 # The user is always right.
9575 if test "${PATH_SEPARATOR+set}" != set; then
9576   echo "#! /bin/sh" >conf$$.sh
9577   echo  "exit 0"   >>conf$$.sh
9578   chmod +x conf$$.sh
9579   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9580     PATH_SEPARATOR=';'
9581   else
9582     PATH_SEPARATOR=:
9583   fi
9584   rm -f conf$$.sh
9585 fi
9586 ac_prog=ld
9587 if test "$GCC" = yes; then
9588   # Check if gcc -print-prog-name=ld gives a path.
9589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9590 $as_echo_n "checking for ld used by GCC... " >&6; }
9591   case $host in
9592   *-*-mingw*)
9593     # gcc leaves a trailing carriage return which upsets mingw
9594     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9595   *)
9596     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9597   esac
9598   case $ac_prog in
9599     # Accept absolute paths.
9600     [\\/]* | [A-Za-z]:[\\/]*)
9601       re_direlt='/[^/][^/]*/\.\./'
9602       # Canonicalize the path of ld
9603       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9604       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9605         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9606       done
9607       test -z "$LD" && LD="$ac_prog"
9608       ;;
9609   "")
9610     # If it fails, then pretend we aren't using GCC.
9611     ac_prog=ld
9612     ;;
9613   *)
9614     # If it is relative, then search for the first ld in PATH.
9615     with_gnu_ld=unknown
9616     ;;
9617   esac
9618 elif test "$with_gnu_ld" = yes; then
9619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9620 $as_echo_n "checking for GNU ld... " >&6; }
9621 else
9622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9623 $as_echo_n "checking for non-GNU ld... " >&6; }
9624 fi
9625 if test "${acl_cv_path_LD+set}" = set; then :
9626   $as_echo_n "(cached) " >&6
9627 else
9628   if test -z "$LD"; then
9629   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9630   for ac_dir in $PATH; do
9631     test -z "$ac_dir" && ac_dir=.
9632     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9633       acl_cv_path_LD="$ac_dir/$ac_prog"
9634       # Check to see if the program is GNU ld.  I'd rather use --version,
9635       # but apparently some GNU ld's only accept -v.
9636       # Break only if it was the GNU/non-GNU ld that we prefer.
9637       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9638         test "$with_gnu_ld" != no && break
9639       else
9640         test "$with_gnu_ld" != yes && break
9641       fi
9642     fi
9643   done
9644   IFS="$ac_save_ifs"
9645 else
9646   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9647 fi
9648 fi
9649
9650 LD="$acl_cv_path_LD"
9651 if test -n "$LD"; then
9652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9653 $as_echo "$LD" >&6; }
9654 else
9655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9657 fi
9658 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9660 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9661 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9662   $as_echo_n "(cached) " >&6
9663 else
9664   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9665 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9666   acl_cv_prog_gnu_ld=yes
9667 else
9668   acl_cv_prog_gnu_ld=no
9669 fi
9670 fi
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9672 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9673 with_gnu_ld=$acl_cv_prog_gnu_ld
9674
9675
9676
9677                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9678 $as_echo_n "checking for shared library run path origin... " >&6; }
9679 if test "${acl_cv_rpath+set}" = set; then :
9680   $as_echo_n "(cached) " >&6
9681 else
9682
9683     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9684     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9685     . ./conftest.sh
9686     rm -f ./conftest.sh
9687     acl_cv_rpath=done
9688
9689 fi
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9691 $as_echo "$acl_cv_rpath" >&6; }
9692   wl="$acl_cv_wl"
9693   libext="$acl_cv_libext"
9694   shlibext="$acl_cv_shlibext"
9695   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9696   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9697   hardcode_direct="$acl_cv_hardcode_direct"
9698   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9699     # Check whether --enable-rpath was given.
9700 if test "${enable_rpath+set}" = set; then :
9701   enableval=$enable_rpath; :
9702 else
9703   enable_rpath=yes
9704 fi
9705
9706
9707
9708
9709
9710
9711
9712
9713     use_additional=yes
9714
9715   acl_save_prefix="$prefix"
9716   prefix="$acl_final_prefix"
9717   acl_save_exec_prefix="$exec_prefix"
9718   exec_prefix="$acl_final_exec_prefix"
9719
9720     eval additional_includedir=\"$includedir\"
9721     eval additional_libdir=\"$libdir\"
9722
9723   exec_prefix="$acl_save_exec_prefix"
9724   prefix="$acl_save_prefix"
9725
9726
9727 # Check whether --with-libiconv-prefix was given.
9728 if test "${with_libiconv_prefix+set}" = set; then :
9729   withval=$with_libiconv_prefix;
9730     if test "X$withval" = "Xno"; then
9731       use_additional=no
9732     else
9733       if test "X$withval" = "X"; then
9734
9735   acl_save_prefix="$prefix"
9736   prefix="$acl_final_prefix"
9737   acl_save_exec_prefix="$exec_prefix"
9738   exec_prefix="$acl_final_exec_prefix"
9739
9740           eval additional_includedir=\"$includedir\"
9741           eval additional_libdir=\"$libdir\"
9742
9743   exec_prefix="$acl_save_exec_prefix"
9744   prefix="$acl_save_prefix"
9745
9746       else
9747         additional_includedir="$withval/include"
9748         additional_libdir="$withval/lib"
9749       fi
9750     fi
9751
9752 fi
9753
9754       LIBICONV=
9755   LTLIBICONV=
9756   INCICONV=
9757   rpathdirs=
9758   ltrpathdirs=
9759   names_already_handled=
9760   names_next_round='iconv '
9761   while test -n "$names_next_round"; do
9762     names_this_round="$names_next_round"
9763     names_next_round=
9764     for name in $names_this_round; do
9765       already_handled=
9766       for n in $names_already_handled; do
9767         if test "$n" = "$name"; then
9768           already_handled=yes
9769           break
9770         fi
9771       done
9772       if test -z "$already_handled"; then
9773         names_already_handled="$names_already_handled $name"
9774                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9775         eval value=\"\$HAVE_LIB$uppername\"
9776         if test -n "$value"; then
9777           if test "$value" = yes; then
9778             eval value=\"\$LIB$uppername\"
9779             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9780             eval value=\"\$LTLIB$uppername\"
9781             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9782           else
9783                                     :
9784           fi
9785         else
9786                               found_dir=
9787           found_la=
9788           found_so=
9789           found_a=
9790           if test $use_additional = yes; then
9791             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9792               found_dir="$additional_libdir"
9793               found_so="$additional_libdir/lib$name.$shlibext"
9794               if test -f "$additional_libdir/lib$name.la"; then
9795                 found_la="$additional_libdir/lib$name.la"
9796               fi
9797             else
9798               if test -f "$additional_libdir/lib$name.$libext"; then
9799                 found_dir="$additional_libdir"
9800                 found_a="$additional_libdir/lib$name.$libext"
9801                 if test -f "$additional_libdir/lib$name.la"; then
9802                   found_la="$additional_libdir/lib$name.la"
9803                 fi
9804               fi
9805             fi
9806           fi
9807           if test "X$found_dir" = "X"; then
9808             for x in $LDFLAGS $LTLIBICONV; do
9809
9810   acl_save_prefix="$prefix"
9811   prefix="$acl_final_prefix"
9812   acl_save_exec_prefix="$exec_prefix"
9813   exec_prefix="$acl_final_exec_prefix"
9814   eval x=\"$x\"
9815   exec_prefix="$acl_save_exec_prefix"
9816   prefix="$acl_save_prefix"
9817
9818               case "$x" in
9819                 -L*)
9820                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9821                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9822                     found_dir="$dir"
9823                     found_so="$dir/lib$name.$shlibext"
9824                     if test -f "$dir/lib$name.la"; then
9825                       found_la="$dir/lib$name.la"
9826                     fi
9827                   else
9828                     if test -f "$dir/lib$name.$libext"; then
9829                       found_dir="$dir"
9830                       found_a="$dir/lib$name.$libext"
9831                       if test -f "$dir/lib$name.la"; then
9832                         found_la="$dir/lib$name.la"
9833                       fi
9834                     fi
9835                   fi
9836                   ;;
9837               esac
9838               if test "X$found_dir" != "X"; then
9839                 break
9840               fi
9841             done
9842           fi
9843           if test "X$found_dir" != "X"; then
9844                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9845             if test "X$found_so" != "X"; then
9846                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9847                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9848               else
9849                                                                                 haveit=
9850                 for x in $ltrpathdirs; do
9851                   if test "X$x" = "X$found_dir"; then
9852                     haveit=yes
9853                     break
9854                   fi
9855                 done
9856                 if test -z "$haveit"; then
9857                   ltrpathdirs="$ltrpathdirs $found_dir"
9858                 fi
9859                                 if test "$hardcode_direct" = yes; then
9860                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9861                 else
9862                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9863                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9864                                                             haveit=
9865                     for x in $rpathdirs; do
9866                       if test "X$x" = "X$found_dir"; then
9867                         haveit=yes
9868                         break
9869                       fi
9870                     done
9871                     if test -z "$haveit"; then
9872                       rpathdirs="$rpathdirs $found_dir"
9873                     fi
9874                   else
9875                                                                                 haveit=
9876                     for x in $LDFLAGS $LIBICONV; do
9877
9878   acl_save_prefix="$prefix"
9879   prefix="$acl_final_prefix"
9880   acl_save_exec_prefix="$exec_prefix"
9881   exec_prefix="$acl_final_exec_prefix"
9882   eval x=\"$x\"
9883   exec_prefix="$acl_save_exec_prefix"
9884   prefix="$acl_save_prefix"
9885
9886                       if test "X$x" = "X-L$found_dir"; then
9887                         haveit=yes
9888                         break
9889                       fi
9890                     done
9891                     if test -z "$haveit"; then
9892                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9893                     fi
9894                     if test "$hardcode_minus_L" != no; then
9895                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9896                     else
9897                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9898                     fi
9899                   fi
9900                 fi
9901               fi
9902             else
9903               if test "X$found_a" != "X"; then
9904                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9905               else
9906                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9907               fi
9908             fi
9909                         additional_includedir=
9910             case "$found_dir" in
9911               */lib | */lib/)
9912                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9913                 additional_includedir="$basedir/include"
9914                 ;;
9915             esac
9916             if test "X$additional_includedir" != "X"; then
9917                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9918                 haveit=
9919                 if test "X$additional_includedir" = "X/usr/local/include"; then
9920                   if test -n "$GCC"; then
9921                     case $host_os in
9922                       linux*) haveit=yes;;
9923                     esac
9924                   fi
9925                 fi
9926                 if test -z "$haveit"; then
9927                   for x in $CPPFLAGS $INCICONV; do
9928
9929   acl_save_prefix="$prefix"
9930   prefix="$acl_final_prefix"
9931   acl_save_exec_prefix="$exec_prefix"
9932   exec_prefix="$acl_final_exec_prefix"
9933   eval x=\"$x\"
9934   exec_prefix="$acl_save_exec_prefix"
9935   prefix="$acl_save_prefix"
9936
9937                     if test "X$x" = "X-I$additional_includedir"; then
9938                       haveit=yes
9939                       break
9940                     fi
9941                   done
9942                   if test -z "$haveit"; then
9943                     if test -d "$additional_includedir"; then
9944                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9945                     fi
9946                   fi
9947                 fi
9948               fi
9949             fi
9950                         if test -n "$found_la"; then
9951                                                         save_libdir="$libdir"
9952               case "$found_la" in
9953                 */* | *\\*) . "$found_la" ;;
9954                 *) . "./$found_la" ;;
9955               esac
9956               libdir="$save_libdir"
9957                             for dep in $dependency_libs; do
9958                 case "$dep" in
9959                   -L*)
9960                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9961                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9962                       haveit=
9963                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9964                         if test -n "$GCC"; then
9965                           case $host_os in
9966                             linux*) haveit=yes;;
9967                           esac
9968                         fi
9969                       fi
9970                       if test -z "$haveit"; then
9971                         haveit=
9972                         for x in $LDFLAGS $LIBICONV; do
9973
9974   acl_save_prefix="$prefix"
9975   prefix="$acl_final_prefix"
9976   acl_save_exec_prefix="$exec_prefix"
9977   exec_prefix="$acl_final_exec_prefix"
9978   eval x=\"$x\"
9979   exec_prefix="$acl_save_exec_prefix"
9980   prefix="$acl_save_prefix"
9981
9982                           if test "X$x" = "X-L$additional_libdir"; then
9983                             haveit=yes
9984                             break
9985                           fi
9986                         done
9987                         if test -z "$haveit"; then
9988                           if test -d "$additional_libdir"; then
9989                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9990                           fi
9991                         fi
9992                         haveit=
9993                         for x in $LDFLAGS $LTLIBICONV; do
9994
9995   acl_save_prefix="$prefix"
9996   prefix="$acl_final_prefix"
9997   acl_save_exec_prefix="$exec_prefix"
9998   exec_prefix="$acl_final_exec_prefix"
9999   eval x=\"$x\"
10000   exec_prefix="$acl_save_exec_prefix"
10001   prefix="$acl_save_prefix"
10002
10003                           if test "X$x" = "X-L$additional_libdir"; then
10004                             haveit=yes
10005                             break
10006                           fi
10007                         done
10008                         if test -z "$haveit"; then
10009                           if test -d "$additional_libdir"; then
10010                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10011                           fi
10012                         fi
10013                       fi
10014                     fi
10015                     ;;
10016                   -R*)
10017                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10018                     if test "$enable_rpath" != no; then
10019                                                                   haveit=
10020                       for x in $rpathdirs; do
10021                         if test "X$x" = "X$dir"; then
10022                           haveit=yes
10023                           break
10024                         fi
10025                       done
10026                       if test -z "$haveit"; then
10027                         rpathdirs="$rpathdirs $dir"
10028                       fi
10029                                                                   haveit=
10030                       for x in $ltrpathdirs; do
10031                         if test "X$x" = "X$dir"; then
10032                           haveit=yes
10033                           break
10034                         fi
10035                       done
10036                       if test -z "$haveit"; then
10037                         ltrpathdirs="$ltrpathdirs $dir"
10038                       fi
10039                     fi
10040                     ;;
10041                   -l*)
10042                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10043                     ;;
10044                   *.la)
10045                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10046                     ;;
10047                   *)
10048                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10049                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10050                     ;;
10051                 esac
10052               done
10053             fi
10054           else
10055                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10056             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10057           fi
10058         fi
10059       fi
10060     done
10061   done
10062   if test "X$rpathdirs" != "X"; then
10063     if test -n "$hardcode_libdir_separator"; then
10064                         alldirs=
10065       for found_dir in $rpathdirs; do
10066         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10067       done
10068             acl_save_libdir="$libdir"
10069       libdir="$alldirs"
10070       eval flag=\"$hardcode_libdir_flag_spec\"
10071       libdir="$acl_save_libdir"
10072       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10073     else
10074             for found_dir in $rpathdirs; do
10075         acl_save_libdir="$libdir"
10076         libdir="$found_dir"
10077         eval flag=\"$hardcode_libdir_flag_spec\"
10078         libdir="$acl_save_libdir"
10079         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10080       done
10081     fi
10082   fi
10083   if test "X$ltrpathdirs" != "X"; then
10084             for found_dir in $ltrpathdirs; do
10085       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10086     done
10087   fi
10088
10089
10090
10091
10092
10093
10094
10095           am_save_CPPFLAGS="$CPPFLAGS"
10096
10097   for element in $INCICONV; do
10098     haveit=
10099     for x in $CPPFLAGS; do
10100
10101   acl_save_prefix="$prefix"
10102   prefix="$acl_final_prefix"
10103   acl_save_exec_prefix="$exec_prefix"
10104   exec_prefix="$acl_final_exec_prefix"
10105   eval x=\"$x\"
10106   exec_prefix="$acl_save_exec_prefix"
10107   prefix="$acl_save_prefix"
10108
10109       if test "X$x" = "X$element"; then
10110         haveit=yes
10111         break
10112       fi
10113     done
10114     if test -z "$haveit"; then
10115       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10116     fi
10117   done
10118
10119
10120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10121 $as_echo_n "checking for iconv... " >&6; }
10122 if test "${am_cv_func_iconv+set}" = set; then :
10123   $as_echo_n "(cached) " >&6
10124 else
10125
10126     am_cv_func_iconv="no, consider installing GNU libiconv"
10127     am_cv_lib_iconv=no
10128     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h.  */
10130 #include <stdlib.h>
10131 #include <iconv.h>
10132 int
10133 main ()
10134 {
10135 iconv_t cd = iconv_open("","");
10136        iconv(cd,NULL,NULL,NULL,NULL);
10137        iconv_close(cd);
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 if ac_fn_cxx_try_link "$LINENO"; then :
10143   am_cv_func_iconv=yes
10144 fi
10145 rm -f core conftest.err conftest.$ac_objext \
10146     conftest$ac_exeext conftest.$ac_ext
10147     if test "$am_cv_func_iconv" != yes; then
10148       am_save_LIBS="$LIBS"
10149       LIBS="$LIBS $LIBICONV"
10150       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h.  */
10152 #include <stdlib.h>
10153 #include <iconv.h>
10154 int
10155 main ()
10156 {
10157 iconv_t cd = iconv_open("","");
10158          iconv(cd,NULL,NULL,NULL,NULL);
10159          iconv_close(cd);
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 if ac_fn_cxx_try_link "$LINENO"; then :
10165   am_cv_lib_iconv=yes
10166         am_cv_func_iconv=yes
10167 fi
10168 rm -f core conftest.err conftest.$ac_objext \
10169     conftest$ac_exeext conftest.$ac_ext
10170       LIBS="$am_save_LIBS"
10171     fi
10172
10173 fi
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10175 $as_echo "$am_cv_func_iconv" >&6; }
10176   if test "$am_cv_func_iconv" = yes; then
10177
10178 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10179
10180   fi
10181   if test "$am_cv_lib_iconv" = yes; then
10182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10183 $as_echo_n "checking how to link with libiconv... " >&6; }
10184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10185 $as_echo "$LIBICONV" >&6; }
10186   else
10187             CPPFLAGS="$am_save_CPPFLAGS"
10188     LIBICONV=
10189     LTLIBICONV=
10190   fi
10191
10192
10193
10194   if test "$am_cv_func_iconv" = yes; then
10195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10196 $as_echo_n "checking for iconv declaration... " >&6; }
10197     if test "${am_cv_proto_iconv+set}" = set; then :
10198   $as_echo_n "(cached) " >&6
10199 else
10200
10201       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h.  */
10203
10204 #include <stdlib.h>
10205 #include <iconv.h>
10206 extern
10207 #ifdef __cplusplus
10208 "C"
10209 #endif
10210 #if defined(__STDC__) || defined(__cplusplus)
10211 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10212 #else
10213 size_t iconv();
10214 #endif
10215
10216 int
10217 main ()
10218 {
10219
10220   ;
10221   return 0;
10222 }
10223 _ACEOF
10224 if ac_fn_cxx_try_compile "$LINENO"; then :
10225   am_cv_proto_iconv_arg1=""
10226 else
10227   am_cv_proto_iconv_arg1="const"
10228 fi
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230       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);"
10231 fi
10232
10233     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10235          }$am_cv_proto_iconv" >&5
10236 $as_echo "${ac_t:-
10237          }$am_cv_proto_iconv" >&6; }
10238
10239 cat >>confdefs.h <<_ACEOF
10240 #define ICONV_CONST $am_cv_proto_iconv_arg1
10241 _ACEOF
10242
10243   fi
10244
10245 ac_ext=c
10246 ac_cpp='$CPP $CPPFLAGS'
10247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10250
10251
10252 # Until we have in-tree GNU iconv:
10253 LIBICONV_DEP=
10254
10255
10256
10257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10258 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10259 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10260   $as_echo_n "(cached) " >&6
10261 else
10262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h.  */
10264 #include <locale.h>
10265 int
10266 main ()
10267 {
10268 return LC_MESSAGES
10269   ;
10270   return 0;
10271 }
10272 _ACEOF
10273 if ac_fn_c_try_link "$LINENO"; then :
10274   am_cv_val_LC_MESSAGES=yes
10275 else
10276   am_cv_val_LC_MESSAGES=no
10277 fi
10278 rm -f core conftest.err conftest.$ac_objext \
10279     conftest$ac_exeext conftest.$ac_ext
10280 fi
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10282 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10283   if test $am_cv_val_LC_MESSAGES = yes; then
10284
10285 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10286
10287   fi
10288
10289
10290
10291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10292 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10293 if test "${am_cv_langinfo_codeset+set}" = set; then :
10294   $as_echo_n "(cached) " >&6
10295 else
10296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h.  */
10298 #include <langinfo.h>
10299 int
10300 main ()
10301 {
10302 char* cs = nl_langinfo(CODESET);
10303   ;
10304   return 0;
10305 }
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"; then :
10308   am_cv_langinfo_codeset=yes
10309 else
10310   am_cv_langinfo_codeset=no
10311 fi
10312 rm -f core conftest.err conftest.$ac_objext \
10313     conftest$ac_exeext conftest.$ac_ext
10314
10315 fi
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10317 $as_echo "$am_cv_langinfo_codeset" >&6; }
10318   if test $am_cv_langinfo_codeset = yes; then
10319
10320 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10321
10322   fi
10323
10324
10325 # We will need to find libiberty.h and ansidecl.h
10326 saved_CFLAGS="$CFLAGS"
10327 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10328 saved_CXXFLAGS="$CXXFLAGS"
10329 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10330 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10331         strsignal strstr stpcpy strverscmp \
10332         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10333         free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
10334 do
10335   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10337 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10338 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10339   $as_echo_n "(cached) " >&6
10340 else
10341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h.  */
10343 #undef $ac_tr_decl
10344 #define $ac_tr_decl 1
10345
10346 #include "ansidecl.h"
10347 #include "system.h"
10348
10349 int
10350 main ()
10351 {
10352 #ifndef $ac_func
10353 char *(*pfn) = (char *(*)) $ac_func ;
10354 #endif
10355   ;
10356   return 0;
10357 }
10358 _ACEOF
10359 if ac_fn_c_try_compile "$LINENO"; then :
10360   eval "gcc_cv_have_decl_$ac_func=yes"
10361 else
10362   eval "gcc_cv_have_decl_$ac_func=no"
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10365 fi
10366
10367 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10369 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10370 #define $ac_tr_decl 1
10371 _ACEOF
10372
10373 else
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10376 #define $ac_tr_decl 0
10377 _ACEOF
10378
10379 fi
10380
10381 done
10382
10383
10384 for ac_func in getrlimit setrlimit getrusage
10385 do
10386   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10388 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10389 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10390   $as_echo_n "(cached) " >&6
10391 else
10392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h.  */
10394 #undef $ac_tr_decl
10395 #define $ac_tr_decl 1
10396
10397 #include "ansidecl.h"
10398 #include "system.h"
10399 #ifdef HAVE_SYS_RESOURCE_H
10400 #include <sys/resource.h>
10401 #endif
10402
10403
10404 int
10405 main ()
10406 {
10407 #ifndef $ac_func
10408 char *(*pfn) = (char *(*)) $ac_func ;
10409 #endif
10410   ;
10411   return 0;
10412 }
10413 _ACEOF
10414 if ac_fn_c_try_compile "$LINENO"; then :
10415   eval "gcc_cv_have_decl_$ac_func=yes"
10416 else
10417   eval "gcc_cv_have_decl_$ac_func=no"
10418 fi
10419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10420 fi
10421
10422 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10424 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10425 #define $ac_tr_decl 1
10426 _ACEOF
10427
10428 else
10429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10431 #define $ac_tr_decl 0
10432 _ACEOF
10433
10434 fi
10435
10436 done
10437
10438
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h.  */
10441
10442 #include "ansidecl.h"
10443 #include "system.h"
10444 #ifdef HAVE_SYS_RESOURCE_H
10445 #include <sys/resource.h>
10446 #endif
10447
10448 int
10449 main ()
10450 {
10451 rlim_t l = 0;
10452   ;
10453   return 0;
10454 }
10455 _ACEOF
10456 if ac_fn_c_try_compile "$LINENO"; then :
10457
10458 else
10459
10460 $as_echo "#define rlim_t long" >>confdefs.h
10461
10462 fi
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464
10465 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10466 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10467 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10468 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10469 for ac_func in ldgetname
10470 do
10471   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10473 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10474 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10475   $as_echo_n "(cached) " >&6
10476 else
10477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h.  */
10479 #undef $ac_tr_decl
10480 #define $ac_tr_decl 1
10481
10482 #include "ansidecl.h"
10483 #include "system.h"
10484 #ifdef HAVE_LDFCN_H
10485 #undef FREAD
10486 #undef FWRITE
10487 #include <ldfcn.h>
10488 #endif
10489
10490
10491 int
10492 main ()
10493 {
10494 #ifndef $ac_func
10495 char *(*pfn) = (char *(*)) $ac_func ;
10496 #endif
10497   ;
10498   return 0;
10499 }
10500 _ACEOF
10501 if ac_fn_c_try_compile "$LINENO"; then :
10502   eval "gcc_cv_have_decl_$ac_func=yes"
10503 else
10504   eval "gcc_cv_have_decl_$ac_func=no"
10505 fi
10506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507 fi
10508
10509 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10511 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10512 #define $ac_tr_decl 1
10513 _ACEOF
10514
10515 else
10516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10518 #define $ac_tr_decl 0
10519 _ACEOF
10520
10521 fi
10522
10523 done
10524
10525
10526 for ac_func in times
10527 do
10528   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10530 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10531 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10532   $as_echo_n "(cached) " >&6
10533 else
10534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h.  */
10536 #undef $ac_tr_decl
10537 #define $ac_tr_decl 1
10538
10539 #include "ansidecl.h"
10540 #include "system.h"
10541 #ifdef HAVE_SYS_TIMES_H
10542 #include <sys/times.h>
10543 #endif
10544
10545
10546 int
10547 main ()
10548 {
10549 #ifndef $ac_func
10550 char *(*pfn) = (char *(*)) $ac_func ;
10551 #endif
10552   ;
10553   return 0;
10554 }
10555 _ACEOF
10556 if ac_fn_c_try_compile "$LINENO"; then :
10557   eval "gcc_cv_have_decl_$ac_func=yes"
10558 else
10559   eval "gcc_cv_have_decl_$ac_func=no"
10560 fi
10561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10562 fi
10563
10564 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10566 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10567 #define $ac_tr_decl 1
10568 _ACEOF
10569
10570 else
10571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10573 #define $ac_tr_decl 0
10574 _ACEOF
10575
10576 fi
10577
10578 done
10579
10580
10581 for ac_func in sigaltstack
10582 do
10583   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10585 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10586 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10587   $as_echo_n "(cached) " >&6
10588 else
10589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h.  */
10591 #undef $ac_tr_decl
10592 #define $ac_tr_decl 1
10593
10594 #include "ansidecl.h"
10595 #include "system.h"
10596 #include <signal.h>
10597
10598
10599 int
10600 main ()
10601 {
10602 #ifndef $ac_func
10603 char *(*pfn) = (char *(*)) $ac_func ;
10604 #endif
10605   ;
10606   return 0;
10607 }
10608 _ACEOF
10609 if ac_fn_c_try_compile "$LINENO"; then :
10610   eval "gcc_cv_have_decl_$ac_func=yes"
10611 else
10612   eval "gcc_cv_have_decl_$ac_func=no"
10613 fi
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 fi
10616
10617 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10619 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10620 #define $ac_tr_decl 1
10621 _ACEOF
10622
10623 else
10624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10626 #define $ac_tr_decl 0
10627 _ACEOF
10628
10629 fi
10630
10631 done
10632
10633
10634 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10635 # prototype.
10636 ac_ext=cpp
10637 ac_cpp='$CXXCPP $CPPFLAGS'
10638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10641
10642 for ac_func in madvise
10643 do
10644   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10646 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10647 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10648   $as_echo_n "(cached) " >&6
10649 else
10650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h.  */
10652 #undef $ac_tr_decl
10653 #define $ac_tr_decl 1
10654
10655   #include "ansidecl.h"
10656   #include "system.h"
10657
10658
10659 int
10660 main ()
10661 {
10662 #ifndef $ac_func
10663 char *(*pfn) = (char *(*)) $ac_func ;
10664 #endif
10665   ;
10666   return 0;
10667 }
10668 _ACEOF
10669 if ac_fn_cxx_try_compile "$LINENO"; then :
10670   eval "gcc_cv_have_decl_$ac_func=yes"
10671 else
10672   eval "gcc_cv_have_decl_$ac_func=no"
10673 fi
10674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10675 fi
10676
10677 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10679 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10680 #define $ac_tr_decl 1
10681 _ACEOF
10682
10683 else
10684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10686 #define $ac_tr_decl 0
10687 _ACEOF
10688
10689 fi
10690
10691 done
10692
10693 ac_ext=c
10694 ac_cpp='$CPP $CPPFLAGS'
10695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10698
10699
10700 # More time-related stuff.
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10702 $as_echo_n "checking for struct tms... " >&6; }
10703 if test "${ac_cv_struct_tms+set}" = set; then :
10704   $as_echo_n "(cached) " >&6
10705 else
10706
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h.  */
10709
10710 #include "ansidecl.h"
10711 #include "system.h"
10712 #ifdef HAVE_SYS_TIMES_H
10713 #include <sys/times.h>
10714 #endif
10715
10716 int
10717 main ()
10718 {
10719 struct tms tms;
10720   ;
10721   return 0;
10722 }
10723 _ACEOF
10724 if ac_fn_c_try_compile "$LINENO"; then :
10725   ac_cv_struct_tms=yes
10726 else
10727   ac_cv_struct_tms=no
10728 fi
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 fi
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10732 $as_echo "$ac_cv_struct_tms" >&6; }
10733 if test $ac_cv_struct_tms = yes; then
10734
10735 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10736
10737 fi
10738
10739 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10740 # revisit after autoconf 2.50.
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10742 $as_echo_n "checking for clock_t... " >&6; }
10743 if test "${gcc_cv_type_clock_t+set}" = set; then :
10744   $as_echo_n "(cached) " >&6
10745 else
10746
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h.  */
10749
10750 #include "ansidecl.h"
10751 #include "system.h"
10752
10753 int
10754 main ()
10755 {
10756 clock_t x;
10757   ;
10758   return 0;
10759 }
10760 _ACEOF
10761 if ac_fn_c_try_compile "$LINENO"; then :
10762   gcc_cv_type_clock_t=yes
10763 else
10764   gcc_cv_type_clock_t=no
10765 fi
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10767 fi
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10769 $as_echo "$gcc_cv_type_clock_t" >&6; }
10770 if test $gcc_cv_type_clock_t = yes; then
10771
10772 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10773
10774 fi
10775
10776 # Check if F_SETLKW is supported by fcntl.
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10778 $as_echo_n "checking for F_SETLKW... " >&6; }
10779 if test "${ac_cv_f_setlkw+set}" = set; then :
10780   $as_echo_n "(cached) " >&6
10781 else
10782
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h.  */
10785
10786 #include <fcntl.h>
10787 int
10788 main ()
10789 {
10790
10791 struct flock fl;
10792 fl.l_whence = 0;
10793 fl.l_start = 0;
10794 fl.l_len = 0;
10795 fl.l_pid = 0;
10796 return fcntl (1, F_SETLKW, &fl);
10797   ;
10798   return 0;
10799 }
10800 _ACEOF
10801 if ac_fn_c_try_compile "$LINENO"; then :
10802   ac_cv_f_setlkw=yes
10803 else
10804   ac_cv_f_setlkw=no
10805 fi
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 fi
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10809 $as_echo "$ac_cv_f_setlkw" >&6; }
10810 if test $ac_cv_f_setlkw = yes; then
10811
10812 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10813
10814 fi
10815
10816 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10817 CFLAGS="$saved_CFLAGS"
10818 CXXFLAGS="$saved_CXXFLAGS"
10819
10820 # mkdir takes a single argument on some systems.
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10822 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10823 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10824   $as_echo_n "(cached) " >&6
10825 else
10826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h.  */
10828
10829 #include <sys/types.h>
10830 #ifdef HAVE_SYS_STAT_H
10831 # include <sys/stat.h>
10832 #endif
10833 #ifdef HAVE_UNISTD_H
10834 # include <unistd.h>
10835 #endif
10836 #ifdef HAVE_DIRECT_H
10837 # include <direct.h>
10838 #endif
10839 int
10840 main ()
10841 {
10842 mkdir ("foo", 0);
10843   ;
10844   return 0;
10845 }
10846 _ACEOF
10847 if ac_fn_c_try_compile "$LINENO"; then :
10848   gcc_cv_mkdir_takes_one_arg=no
10849 else
10850   gcc_cv_mkdir_takes_one_arg=yes
10851 fi
10852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10853 fi
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10855 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10856 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10857
10858 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10859
10860 fi
10861
10862
10863 # File extensions
10864 manext='.1'
10865 objext='.o'
10866
10867
10868
10869 # With Setjmp/Longjmp based exception handling.
10870 # Check whether --enable-sjlj-exceptions was given.
10871 if test "${enable_sjlj_exceptions+set}" = set; then :
10872   enableval=$enable_sjlj_exceptions; case $target in
10873   *-*-hpux10*)
10874     if test $enableval != yes; then
10875       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10876 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10877       enableval=yes
10878     fi
10879     ;;
10880 esac
10881 force_sjlj_exceptions=yes
10882 else
10883   case $target in
10884   *-*-hpux10*)
10885     force_sjlj_exceptions=yes
10886     enableval=yes
10887     ;;
10888   *)
10889     force_sjlj_exceptions=no
10890     ;;
10891 esac
10892 fi
10893
10894 if test $force_sjlj_exceptions = yes; then
10895   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10896
10897 cat >>confdefs.h <<_ACEOF
10898 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10899 _ACEOF
10900
10901 fi
10902
10903 # --------------------------------------------------------
10904 # Build, host, and target specific configuration fragments
10905 # --------------------------------------------------------
10906
10907 # Collect build-machine-specific information.
10908 . ${srcdir}/config.build
10909
10910 # Collect host-machine-specific information.
10911 . ${srcdir}/config.host
10912
10913 target_gtfiles=
10914
10915 # Collect target-machine-specific information.
10916 . ${srcdir}/config.gcc
10917
10918 extra_objs="${host_extra_objs} ${extra_objs}"
10919 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10920
10921 # Default the target-machine variables that were not explicitly set.
10922 if test x"$tm_file" = x
10923 then tm_file=$cpu_type/$cpu_type.h; fi
10924
10925 if test x"$extra_headers" = x
10926 then extra_headers=; fi
10927
10928 if test x$md_file = x
10929 then md_file=$cpu_type/$cpu_type.md; fi
10930
10931 if test x$out_file = x
10932 then out_file=$cpu_type/$cpu_type.c; fi
10933
10934 if test x"$tmake_file" = x
10935 then tmake_file=$cpu_type/t-$cpu_type
10936 fi
10937
10938 # Support --enable-initfini-array.
10939 if test x$enable_initfini_array != xno; then
10940   tm_file="${tm_file} initfini-array.h"
10941 fi
10942
10943 if test x"$dwarf2" = xyes
10944 then tm_file="$tm_file tm-dwarf2.h"
10945 fi
10946
10947 # Say what files are being used for the output code and MD file.
10948 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10949 echo "Using \`$srcdir/config/$md_file' as machine description file."
10950
10951 # If any of the xm_file variables contain nonexistent files, warn
10952 # about them and drop them.
10953
10954 bx=
10955 for x in $build_xm_file; do
10956   if    test -f $srcdir/config/$x
10957   then      bx="$bx $x"
10958   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10959 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10960   fi
10961 done
10962 build_xm_file="$bx"
10963
10964 hx=
10965 for x in $host_xm_file; do
10966   if    test -f $srcdir/config/$x
10967   then      hx="$hx $x"
10968   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10969 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10970   fi
10971 done
10972 host_xm_file="$hx"
10973
10974 tx=
10975 for x in $xm_file; do
10976   if    test -f $srcdir/config/$x
10977   then      tx="$tx $x"
10978   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10979 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10980   fi
10981 done
10982 xm_file="$tx"
10983
10984 count=a
10985 for f in $tm_file; do
10986         count=${count}x
10987 done
10988 if test $count = ax; then
10989         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10990 else
10991         echo "Using the following target machine macro files:"
10992         for f in $tm_file; do
10993                 echo "  $srcdir/config/$f"
10994         done
10995 fi
10996
10997 if test x$need_64bit_hwint = xyes; then
10998
10999 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11000
11001 fi
11002
11003 if test x$use_long_long_for_widest_fast_int = xyes; then
11004
11005 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11006
11007 fi
11008
11009 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11010
11011 cat >>confdefs.h <<_ACEOF
11012 #define HAVE_GNU_LD $gnu_ld_bool
11013 _ACEOF
11014
11015
11016 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11017
11018 cat >>confdefs.h <<_ACEOF
11019 #define HAVE_GNU_AS $gnu_as_bool
11020 _ACEOF
11021
11022
11023 count=a
11024 for f in $host_xm_file; do
11025         count=${count}x
11026 done
11027 if test $count = a; then
11028         :
11029 elif test $count = ax; then
11030         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11031 else
11032         echo "Using the following host machine macro files:"
11033         for f in $host_xm_file; do
11034                 echo "  $srcdir/config/$f"
11035         done
11036 fi
11037 echo "Using ${out_host_hook_obj} for host machine hooks."
11038
11039 if test "$host_xm_file" != "$build_xm_file"; then
11040         count=a
11041         for f in $build_xm_file; do
11042                 count=${count}x
11043         done
11044         if test $count = a; then
11045                 :
11046         elif test $count = ax; then
11047                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11048         else
11049                 echo "Using the following build machine macro files:"
11050                 for f in $build_xm_file; do
11051                         echo "  $srcdir/config/$f"
11052                 done
11053         fi
11054 fi
11055
11056 if test -n "$configured_native_system_header_dir"; then
11057   native_system_header_dir=$configured_native_system_header_dir
11058 fi
11059 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11060
11061
11062 case ${host} in
11063   powerpc*-*-darwin*)
11064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11065 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11066 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11067   $as_echo_n "(cached) " >&6
11068 else
11069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h.  */
11071
11072 #include <sys/cdefs.h>
11073 #include <sys/signal.h>
11074 #include <ucontext.h>
11075 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11076
11077 _ACEOF
11078 if ac_fn_c_try_compile "$LINENO"; then :
11079   gcc_cv_mcontext_underscores=no
11080 else
11081   gcc_cv_mcontext_underscores=yes
11082 fi
11083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11084 fi
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11086 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11087       if test $gcc_cv_mcontext_underscores = yes; then
11088
11089 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11090
11091       fi
11092     ;;
11093 esac
11094
11095 # ---------
11096 # Threading
11097 # ---------
11098
11099 # Check if a valid thread package
11100 case ${enable_threads} in
11101   "" | no)
11102     # No threads
11103     target_thread_file='single'
11104     ;;
11105   yes)
11106     # default
11107     target_thread_file='single'
11108     ;;
11109   aix | dce | lynx | mipssde | posix | rtems | \
11110   single | tpf | vxworks | win32)
11111     target_thread_file=${enable_threads}
11112     ;;
11113   *)
11114     echo "${enable_threads} is an unknown thread package" 1>&2
11115     exit 1
11116     ;;
11117 esac
11118
11119 if test x${thread_file} = x; then
11120   # No thread file set by target-specific clauses in config.gcc,
11121   # so use file chosen by default logic above
11122   thread_file=${target_thread_file}
11123 fi
11124
11125 # --------
11126 # UNSORTED
11127 # --------
11128
11129 use_cxa_atexit=no
11130 if test x$enable___cxa_atexit = xyes || \
11131    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11132   if test x$host = x$target; then
11133     case $host in
11134       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11135       # keyed to flag_use_cxa_atexit
11136       *-*-mingw32*)
11137         use_cxa_atexit=yes
11138         ;;
11139       powerpc-ibm-aix*)
11140         use_cxa_atexit=yes
11141         ;;
11142       *)
11143         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11144 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11145   use_cxa_atexit=yes
11146 else
11147   echo "__cxa_atexit can't be enabled on this target"
11148 fi
11149
11150         ;;
11151     esac
11152   else
11153     # We can't check for __cxa_atexit when building a cross, so assume
11154     # it is available
11155     use_cxa_atexit=yes
11156   fi
11157   if test x$use_cxa_atexit = xyes; then
11158
11159 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11160
11161   fi
11162 fi
11163
11164 # Look for a file containing extra machine modes.
11165 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11166   extra_modes_file='$(srcdir)'/config/${extra_modes}
11167
11168
11169 cat >>confdefs.h <<_ACEOF
11170 #define EXTRA_MODES_FILE "config/$extra_modes"
11171 _ACEOF
11172
11173 fi
11174
11175 # Convert extra_options into a form suitable for Makefile use.
11176 extra_opt_files=
11177 all_opt_files=
11178 for f in $extra_options; do
11179   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11180   all_opt_files="$all_opt_files $srcdir/config/$f"
11181 done
11182
11183
11184 # auto-host.h is the file containing items generated by autoconf and is
11185 # the first file included by config.h.
11186 # If host=build, it is correct to have bconfig include auto-host.h
11187 # as well.  If host!=build, we are in error and need to do more
11188 # work to find out the build config parameters.
11189 if test x$host = x$build
11190 then
11191         build_auto=auto-host.h
11192 else
11193         # We create a subdir, then run autoconf in the subdir.
11194         # To prevent recursion we set host and build for the new
11195         # invocation of configure to the build for this invocation
11196         # of configure.
11197         tempdir=build.$$
11198         rm -rf $tempdir
11199         mkdir $tempdir
11200         cd $tempdir
11201         case ${srcdir} in
11202         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11203         *) realsrcdir=../${srcdir};;
11204         esac
11205         saved_CFLAGS="${CFLAGS}"
11206         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11207         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11208         ${realsrcdir}/configure \
11209                 --enable-languages=${enable_languages-all} \
11210                 --target=$target_alias --host=$build_alias --build=$build_alias
11211         CFLAGS="${saved_CFLAGS}"
11212
11213         # We just finished tests for the build machine, so rename
11214         # the file auto-build.h in the gcc directory.
11215         mv auto-host.h ../auto-build.h
11216         cd ..
11217         rm -rf $tempdir
11218         build_auto=auto-build.h
11219 fi
11220
11221
11222 tm_file="${tm_file} defaults.h"
11223 tm_p_file="${tm_p_file} tm-preds.h"
11224 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11225 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11226 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11227 # put this back in temporarily.
11228 xm_file="auto-host.h ansidecl.h ${xm_file}"
11229
11230 # --------
11231 # UNSORTED
11232 # --------
11233
11234 # Compile in configure arguments.
11235 if test -f configargs.h ; then
11236         # Being re-configured.
11237         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11238         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11239 else
11240         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11241 fi
11242
11243 # Double all backslashes and backslash all quotes to turn
11244 # gcc_config_arguments into a C string.
11245 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11246 $gcc_config_arguments
11247 EOF
11248 gcc_config_arguments_str=`cat conftest.out`
11249 rm -f conftest.out
11250
11251 cat > configargs.h <<EOF
11252 /* Generated automatically. */
11253 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11254 static const char thread_model[] = "$thread_file";
11255
11256 static const struct {
11257   const char *name, *value;
11258 } configure_default_options[] = $configure_default_options;
11259 EOF
11260
11261 gcc_BASEVER=`cat $srcdir/BASE-VER`
11262 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11263 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11264 if test -f $srcdir/REVISION ; then
11265         gcc_REVISION=`cat $srcdir/REVISION`
11266 else
11267         gcc_REVISION=""
11268 fi
11269 cat > plugin-version.h <<EOF
11270 #include "configargs.h"
11271
11272 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11273 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11274 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11275 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11276
11277 static char basever[] = "$gcc_BASEVER";
11278 static char datestamp[] = "$gcc_DATESTAMP";
11279 static char devphase[] = "$gcc_DEVPHASE";
11280 static char revision[] = "$gcc_REVISION";
11281
11282 /* FIXME plugins: We should make the version information more precise.
11283    One way to do is to add a checksum. */
11284
11285 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11286                                                 devphase, revision,
11287                                                 configuration_arguments};
11288 EOF
11289
11290 # Internationalization
11291 # If we haven't got the data from the intl directory,
11292 # assume NLS is disabled.
11293 USE_NLS=no
11294 LIBINTL=
11295 LIBINTL_DEP=
11296 INCINTL=
11297 XGETTEXT=
11298 GMSGFMT=
11299 POSUB=
11300
11301 if test -f  ../intl/config.intl; then
11302   .  ../intl/config.intl
11303 fi
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11305 $as_echo_n "checking whether NLS is requested... " >&6; }
11306 if test x"$USE_NLS" != xyes; then
11307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11308 $as_echo "no" >&6; }
11309 else
11310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11311 $as_echo "yes" >&6; }
11312
11313 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11314
11315
11316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11317 $as_echo_n "checking for catalogs to be installed... " >&6; }
11318   # Look for .po and .gmo files in the source directory.
11319   CATALOGS=
11320   XLINGUAS=
11321   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11322     # If there aren't any .gmo files the shell will give us the
11323     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11324     # weeded out.
11325     case "$cat" in *\**)
11326       continue;;
11327     esac
11328     # The quadruple backslash is collapsed to a double backslash
11329     # by the backticks, then collapsed again by the double quotes,
11330     # leaving us with one backslash in the sed expression (right
11331     # before the dot that mustn't act as a wildcard).
11332     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11333     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11334     # The user is allowed to set LINGUAS to a list of languages to
11335     # install catalogs for.  If it's empty that means "all of them."
11336     if test "x$LINGUAS" = x; then
11337       CATALOGS="$CATALOGS $cat"
11338       XLINGUAS="$XLINGUAS $lang"
11339     else
11340       case "$LINGUAS" in *$lang*)
11341         CATALOGS="$CATALOGS $cat"
11342         XLINGUAS="$XLINGUAS $lang"
11343         ;;
11344       esac
11345     fi
11346   done
11347   LINGUAS="$XLINGUAS"
11348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11349 $as_echo "$LINGUAS" >&6; }
11350
11351
11352     DATADIRNAME=share
11353
11354   INSTOBJEXT=.mo
11355
11356   GENCAT=gencat
11357
11358   CATOBJEXT=.gmo
11359
11360 fi
11361
11362 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11363 # -liconv on the link line twice.
11364 case "$LIBINTL" in *$LIBICONV*)
11365         LIBICONV= ;;
11366 esac
11367
11368 # Check whether --enable-secureplt was given.
11369 if test "${enable_secureplt+set}" = set; then :
11370   enableval=$enable_secureplt;
11371 fi
11372
11373
11374 # Check whether --enable-leading-mingw64-underscores was given.
11375 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11376   enableval=$enable_leading_mingw64_underscores;
11377 fi
11378
11379 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11380
11381 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11382
11383 fi
11384
11385 # Check whether --enable-cld was given.
11386 if test "${enable_cld+set}" = set; then :
11387   enableval=$enable_cld;
11388 else
11389   enable_cld=no
11390 fi
11391
11392
11393 # Check whether --enable-frame-pointer was given.
11394 if test "${enable_frame_pointer+set}" = set; then :
11395   enableval=$enable_frame_pointer;
11396 else
11397
11398 case $target_os in
11399 linux* | darwin[8912]*)
11400   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11401   # DWARF2.
11402   enable_frame_pointer=no
11403   ;;
11404 *)
11405   enable_frame_pointer=yes
11406   ;;
11407 esac
11408
11409 fi
11410
11411
11412 # Windows32 Registry support for specifying GCC installation paths.
11413 # Check whether --enable-win32-registry was given.
11414 if test "${enable_win32_registry+set}" = set; then :
11415   enableval=$enable_win32_registry;
11416 fi
11417
11418
11419 case $host_os in
11420   win32 | pe | cygwin* | mingw32* | uwin*)
11421     if test "x$enable_win32_registry" != xno; then
11422       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11423 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11424 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11425   $as_echo_n "(cached) " >&6
11426 else
11427   ac_func_search_save_LIBS=$LIBS
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h.  */
11430
11431 /* Override any GCC internal prototype to avoid an error.
11432    Use char because int might match the return type of a GCC
11433    builtin and then its argument prototype would still apply.  */
11434 #ifdef __cplusplus
11435 extern "C"
11436 #endif
11437 char RegOpenKeyExA ();
11438 int
11439 main ()
11440 {
11441 return RegOpenKeyExA ();
11442   ;
11443   return 0;
11444 }
11445 _ACEOF
11446 for ac_lib in '' advapi32; do
11447   if test -z "$ac_lib"; then
11448     ac_res="none required"
11449   else
11450     ac_res=-l$ac_lib
11451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11452   fi
11453   if ac_fn_c_try_link "$LINENO"; then :
11454   ac_cv_search_RegOpenKeyExA=$ac_res
11455 fi
11456 rm -f core conftest.err conftest.$ac_objext \
11457     conftest$ac_exeext
11458   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11459   break
11460 fi
11461 done
11462 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11463
11464 else
11465   ac_cv_search_RegOpenKeyExA=no
11466 fi
11467 rm conftest.$ac_ext
11468 LIBS=$ac_func_search_save_LIBS
11469 fi
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11471 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11472 ac_res=$ac_cv_search_RegOpenKeyExA
11473 if test "$ac_res" != no; then :
11474   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11475
11476 else
11477   enable_win32_registry=no
11478 fi
11479
11480     fi
11481
11482     if test "x$enable_win32_registry" != xno; then
11483
11484 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11485
11486
11487       if test "x$enable_win32_registry" != xyes \
11488          && test "x$enable_win32_registry" != x; then
11489
11490 cat >>confdefs.h <<_ACEOF
11491 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11492 _ACEOF
11493
11494       fi
11495     fi
11496   ;;
11497 esac
11498
11499 # Get an absolute path to the GCC top-level source directory
11500 holddir=`${PWDCMD-pwd}`
11501 cd $srcdir
11502 topdir=`${PWDCMD-pwd}`
11503 cd $holddir
11504
11505 # Conditionalize the makefile for this host machine.
11506 xmake_file=
11507 for f in ${host_xmake_file}
11508 do
11509         if test -f ${srcdir}/config/$f
11510         then
11511                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11512         fi
11513 done
11514
11515 # Conditionalize the makefile for this target machine.
11516 tmake_file_=
11517 for f in ${tmake_file}
11518 do
11519         if test -f ${srcdir}/config/$f
11520         then
11521                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11522         fi
11523 done
11524 tmake_file="${tmake_file_}"
11525
11526 out_object_file=`basename $out_file .c`.o
11527 common_out_object_file=`basename $common_out_file .c`.o
11528
11529 tm_file_list="options.h"
11530 tm_include_list="options.h insn-constants.h"
11531 for f in $tm_file; do
11532   case $f in
11533     ./* )
11534        f=`echo $f | sed 's/^..//'`
11535        tm_file_list="${tm_file_list} $f"
11536        tm_include_list="${tm_include_list} $f"
11537        ;;
11538     defaults.h )
11539        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11540        tm_include_list="${tm_include_list} $f"
11541        ;;
11542     * )
11543        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11544        tm_include_list="${tm_include_list} config/$f"
11545        ;;
11546   esac
11547 done
11548
11549 tm_p_file_list=
11550 tm_p_include_list=
11551 for f in $tm_p_file; do
11552   case $f in
11553     tm-preds.h )
11554        tm_p_file_list="${tm_p_file_list} $f"
11555        tm_p_include_list="${tm_p_include_list} $f"
11556        ;;
11557     * )
11558        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11559        tm_p_include_list="${tm_p_include_list} config/$f"
11560   esac
11561 done
11562
11563 xm_file_list=
11564 xm_include_list=
11565 for f in $xm_file; do
11566   case $f in
11567     ansidecl.h )
11568        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11569        xm_include_list="${xm_include_list} $f"
11570        ;;
11571     auto-host.h )
11572        xm_file_list="${xm_file_list} $f"
11573        xm_include_list="${xm_include_list} $f"
11574        ;;
11575     * )
11576        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11577        xm_include_list="${xm_include_list} config/$f"
11578        ;;
11579   esac
11580 done
11581
11582 host_xm_file_list=
11583 host_xm_include_list=
11584 for f in $host_xm_file; do
11585   case $f in
11586     ansidecl.h )
11587        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11588        host_xm_include_list="${host_xm_include_list} $f"
11589        ;;
11590     auto-host.h )
11591        host_xm_file_list="${host_xm_file_list} $f"
11592        host_xm_include_list="${host_xm_include_list} $f"
11593        ;;
11594     * )
11595        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11596        host_xm_include_list="${host_xm_include_list} config/$f"
11597        ;;
11598   esac
11599 done
11600
11601 build_xm_file_list=
11602 for f in $build_xm_file; do
11603   case $f in
11604     ansidecl.h )
11605        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11606        build_xm_include_list="${build_xm_include_list} $f"
11607        ;;
11608     auto-build.h | auto-host.h )
11609        build_xm_file_list="${build_xm_file_list} $f"
11610        build_xm_include_list="${build_xm_include_list} $f"
11611        ;;
11612     * )
11613        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11614        build_xm_include_list="${build_xm_include_list} config/$f"
11615        ;;
11616   esac
11617 done
11618
11619 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11620 # cross-compiler which does not use the native headers and libraries.
11621 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11622 CROSS=
11623 ALL=all.internal
11624 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11625
11626 if test "x$with_build_sysroot" != x; then
11627   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11628 else
11629   # This value is used, even on a native system, because
11630   # CROSS_SYSTEM_HEADER_DIR is just
11631   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11632   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11633 fi
11634
11635 if test x$host != x$target
11636 then
11637         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11638         ALL=all.cross
11639         SYSTEM_HEADER_DIR=$build_system_header_dir
11640         case "$host","$target" in
11641         # Darwin crosses can use the host system's libraries and headers,
11642         # because of the fat library support.  Of course, it must be the
11643         # same version of Darwin on both sides.  Allow the user to
11644         # just say --target=foo-darwin without a version number to mean
11645         # "the version on this system".
11646             *-*-darwin*,*-*-darwin*)
11647                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11648                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11649                 if test $hostos = $targetos -o $targetos = darwin ; then
11650                     CROSS=
11651                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11652                     with_headers=yes
11653                 fi
11654                 ;;
11655
11656             i?86-*-*,x86_64-*-* \
11657             | powerpc*-*-*,powerpc64*-*-*)
11658                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11659         esac
11660
11661         case $target in
11662                 *-*-mingw*)
11663                         if test "x$with_headers" = x; then
11664                                 with_headers=yes
11665                         fi
11666                         ;;
11667                 *)
11668                         ;;
11669         esac
11670 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11671         SYSTEM_HEADER_DIR=$build_system_header_dir
11672 fi
11673
11674 # If this is a cross-compiler that does not
11675 # have its own set of headers then define
11676 # inhibit_libc
11677
11678 # If this is using newlib, without having the headers available now,
11679 # then define inhibit_libc in LIBGCC2_CFLAGS.
11680 # This prevents libgcc2 from containing any code which requires libc
11681 # support.
11682 : ${inhibit_libc=false}
11683 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11684        test x$with_newlib = xyes ; } &&
11685      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11686        inhibit_libc=true
11687 fi
11688
11689
11690 # When building gcc with a cross-compiler, we need to adjust things so
11691 # that the generator programs are still built with the native compiler.
11692 # Also, we cannot run fixincludes.
11693
11694 # These are the normal (build=host) settings:
11695 CC_FOR_BUILD='$(CC)'
11696 CXX_FOR_BUILD='$(CXX)'
11697 BUILD_CFLAGS='$(ALL_CFLAGS)'
11698 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11699 BUILD_LDFLAGS='$(LDFLAGS)'
11700 STMP_FIXINC=stmp-fixinc
11701
11702 # And these apply if build != host, or we are generating coverage data
11703 if test x$build != x$host || test "x$coverage_flags" != x
11704 then
11705     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11706     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11707 fi
11708
11709 # Expand extra_headers to include complete path.
11710 # This substitutes for lots of t-* files.
11711 extra_headers_list=
11712 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11713 for file in ${extra_headers} ; do
11714   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11715 done
11716
11717 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11718 if test x"$use_gcc_tgmath" = xyes
11719 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11720 fi
11721
11722 # Define collect2 in Makefile.
11723 case $host_can_use_collect2 in
11724   no) collect2= ;;
11725   *) collect2='collect2$(exeext)' ;;
11726 esac
11727
11728
11729 # Add a definition of USE_COLLECT2 if system wants one.
11730 case $use_collect2 in
11731   no) use_collect2= ;;
11732   "") ;;
11733   *)
11734     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11735     xm_defines="${xm_defines} USE_COLLECT2"
11736     case $host_can_use_collect2 in
11737       no)
11738         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11739         ;;
11740     esac
11741     ;;
11742 esac
11743
11744
11745 cat >>confdefs.h <<_ACEOF
11746 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11747 _ACEOF
11748
11749
11750 # ---------------------------
11751 # Assembler & linker features
11752 # ---------------------------
11753
11754 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11755 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11756 # However when ld-new is first executed from the build tree, libtool will
11757 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11758 # to the build tree.  While doing this we need to use the previous-stage
11759 # linker, or we have an infinite loop.  The presence of a shell script as
11760 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11761 # the gcc/collect-ld script.  So we need to know how libtool works, or
11762 # exec-tool will fail.
11763
11764
11765 case `pwd` in
11766   *\ * | *\     *)
11767     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11768 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11769 esac
11770
11771
11772
11773 macro_version='2.2.7a'
11774 macro_revision='1.3134'
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788 ltmain="$ac_aux_dir/ltmain.sh"
11789
11790 # Backslashify metacharacters that are still active within
11791 # double-quoted strings.
11792 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11793
11794 # Same as above, but do not quote variable references.
11795 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11796
11797 # Sed substitution to delay expansion of an escaped shell variable in a
11798 # double_quote_subst'ed string.
11799 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11800
11801 # Sed substitution to delay expansion of an escaped single quote.
11802 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11803
11804 # Sed substitution to avoid accidental globbing in evaled expressions
11805 no_glob_subst='s/\*/\\\*/g'
11806
11807 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11808 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11809 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11810
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11812 $as_echo_n "checking how to print strings... " >&6; }
11813 # Test print first, because it will be a builtin if present.
11814 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11815    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11816   ECHO='print -r --'
11817 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11818   ECHO='printf %s\n'
11819 else
11820   # Use this function as a fallback that always works.
11821   func_fallback_echo ()
11822   {
11823     eval 'cat <<_LTECHO_EOF
11824 $1
11825 _LTECHO_EOF'
11826   }
11827   ECHO='func_fallback_echo'
11828 fi
11829
11830 # func_echo_all arg...
11831 # Invoke $ECHO with all args, space-separated.
11832 func_echo_all ()
11833 {
11834     $ECHO ""
11835 }
11836
11837 case "$ECHO" in
11838   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11839 $as_echo "printf" >&6; } ;;
11840   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11841 $as_echo "print -r" >&6; } ;;
11842   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11843 $as_echo "cat" >&6; } ;;
11844 esac
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11860 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11861 if test "${ac_cv_path_SED+set}" = set; then :
11862   $as_echo_n "(cached) " >&6
11863 else
11864             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11865      for ac_i in 1 2 3 4 5 6 7; do
11866        ac_script="$ac_script$as_nl$ac_script"
11867      done
11868      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11869      { ac_script=; unset ac_script;}
11870      if test -z "$SED"; then
11871   ac_path_SED_found=false
11872   # Loop through the user's path and test for each of PROGNAME-LIST
11873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11875 do
11876   IFS=$as_save_IFS
11877   test -z "$as_dir" && as_dir=.
11878     for ac_prog in sed gsed; do
11879     for ac_exec_ext in '' $ac_executable_extensions; do
11880       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11881       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11882 # Check for GNU ac_path_SED and select it if it is found.
11883   # Check for GNU $ac_path_SED
11884 case `"$ac_path_SED" --version 2>&1` in
11885 *GNU*)
11886   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11887 *)
11888   ac_count=0
11889   $as_echo_n 0123456789 >"conftest.in"
11890   while :
11891   do
11892     cat "conftest.in" "conftest.in" >"conftest.tmp"
11893     mv "conftest.tmp" "conftest.in"
11894     cp "conftest.in" "conftest.nl"
11895     $as_echo '' >> "conftest.nl"
11896     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11897     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11898     as_fn_arith $ac_count + 1 && ac_count=$as_val
11899     if test $ac_count -gt ${ac_path_SED_max-0}; then
11900       # Best one so far, save it but keep looking for a better one
11901       ac_cv_path_SED="$ac_path_SED"
11902       ac_path_SED_max=$ac_count
11903     fi
11904     # 10*(2^10) chars as input seems more than enough
11905     test $ac_count -gt 10 && break
11906   done
11907   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11908 esac
11909
11910       $ac_path_SED_found && break 3
11911     done
11912   done
11913   done
11914 IFS=$as_save_IFS
11915   if test -z "$ac_cv_path_SED"; then
11916     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11917   fi
11918 else
11919   ac_cv_path_SED=$SED
11920 fi
11921
11922 fi
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11924 $as_echo "$ac_cv_path_SED" >&6; }
11925  SED="$ac_cv_path_SED"
11926   rm -f conftest.sed
11927
11928 test -z "$SED" && SED=sed
11929 Xsed="$SED -e 1s/^X//"
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11942 $as_echo_n "checking for fgrep... " >&6; }
11943 if test "${ac_cv_path_FGREP+set}" = set; then :
11944   $as_echo_n "(cached) " >&6
11945 else
11946   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11947    then ac_cv_path_FGREP="$GREP -F"
11948    else
11949      if test -z "$FGREP"; then
11950   ac_path_FGREP_found=false
11951   # Loop through the user's path and test for each of PROGNAME-LIST
11952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11954 do
11955   IFS=$as_save_IFS
11956   test -z "$as_dir" && as_dir=.
11957     for ac_prog in fgrep; do
11958     for ac_exec_ext in '' $ac_executable_extensions; do
11959       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11960       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11961 # Check for GNU ac_path_FGREP and select it if it is found.
11962   # Check for GNU $ac_path_FGREP
11963 case `"$ac_path_FGREP" --version 2>&1` in
11964 *GNU*)
11965   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11966 *)
11967   ac_count=0
11968   $as_echo_n 0123456789 >"conftest.in"
11969   while :
11970   do
11971     cat "conftest.in" "conftest.in" >"conftest.tmp"
11972     mv "conftest.tmp" "conftest.in"
11973     cp "conftest.in" "conftest.nl"
11974     $as_echo 'FGREP' >> "conftest.nl"
11975     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11976     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11977     as_fn_arith $ac_count + 1 && ac_count=$as_val
11978     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11979       # Best one so far, save it but keep looking for a better one
11980       ac_cv_path_FGREP="$ac_path_FGREP"
11981       ac_path_FGREP_max=$ac_count
11982     fi
11983     # 10*(2^10) chars as input seems more than enough
11984     test $ac_count -gt 10 && break
11985   done
11986   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11987 esac
11988
11989       $ac_path_FGREP_found && break 3
11990     done
11991   done
11992   done
11993 IFS=$as_save_IFS
11994   if test -z "$ac_cv_path_FGREP"; then
11995     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11996   fi
11997 else
11998   ac_cv_path_FGREP=$FGREP
11999 fi
12000
12001    fi
12002 fi
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12004 $as_echo "$ac_cv_path_FGREP" >&6; }
12005  FGREP="$ac_cv_path_FGREP"
12006
12007
12008 test -z "$GREP" && GREP=grep
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028 # Check whether --with-gnu-ld was given.
12029 if test "${with_gnu_ld+set}" = set; then :
12030   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12031 else
12032   with_gnu_ld=no
12033 fi
12034
12035 ac_prog=ld
12036 if test "$GCC" = yes; then
12037   # Check if gcc -print-prog-name=ld gives a path.
12038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12039 $as_echo_n "checking for ld used by $CC... " >&6; }
12040   case $host in
12041   *-*-mingw*)
12042     # gcc leaves a trailing carriage return which upsets mingw
12043     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12044   *)
12045     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12046   esac
12047   case $ac_prog in
12048     # Accept absolute paths.
12049     [\\/]* | ?:[\\/]*)
12050       re_direlt='/[^/][^/]*/\.\./'
12051       # Canonicalize the pathname of ld
12052       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12053       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12054         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12055       done
12056       test -z "$LD" && LD="$ac_prog"
12057       ;;
12058   "")
12059     # If it fails, then pretend we aren't using GCC.
12060     ac_prog=ld
12061     ;;
12062   *)
12063     # If it is relative, then search for the first ld in PATH.
12064     with_gnu_ld=unknown
12065     ;;
12066   esac
12067 elif test "$with_gnu_ld" = yes; then
12068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12069 $as_echo_n "checking for GNU ld... " >&6; }
12070 else
12071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12072 $as_echo_n "checking for non-GNU ld... " >&6; }
12073 fi
12074 if test "${lt_cv_path_LD+set}" = set; then :
12075   $as_echo_n "(cached) " >&6
12076 else
12077   if test -z "$LD"; then
12078   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12079   for ac_dir in $PATH; do
12080     IFS="$lt_save_ifs"
12081     test -z "$ac_dir" && ac_dir=.
12082     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12083       lt_cv_path_LD="$ac_dir/$ac_prog"
12084       # Check to see if the program is GNU ld.  I'd rather use --version,
12085       # but apparently some variants of GNU ld only accept -v.
12086       # Break only if it was the GNU/non-GNU ld that we prefer.
12087       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12088       *GNU* | *'with BFD'*)
12089         test "$with_gnu_ld" != no && break
12090         ;;
12091       *)
12092         test "$with_gnu_ld" != yes && break
12093         ;;
12094       esac
12095     fi
12096   done
12097   IFS="$lt_save_ifs"
12098 else
12099   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12100 fi
12101 fi
12102
12103 LD="$lt_cv_path_LD"
12104 if test -n "$LD"; then
12105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12106 $as_echo "$LD" >&6; }
12107 else
12108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109 $as_echo "no" >&6; }
12110 fi
12111 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12113 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12114 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12115   $as_echo_n "(cached) " >&6
12116 else
12117   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12118 case `$LD -v 2>&1 </dev/null` in
12119 *GNU* | *'with BFD'*)
12120   lt_cv_prog_gnu_ld=yes
12121   ;;
12122 *)
12123   lt_cv_prog_gnu_ld=no
12124   ;;
12125 esac
12126 fi
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12128 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12129 with_gnu_ld=$lt_cv_prog_gnu_ld
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12140 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12141 if test "${lt_cv_path_NM+set}" = set; then :
12142   $as_echo_n "(cached) " >&6
12143 else
12144   if test -n "$NM"; then
12145   # Let the user override the test.
12146   lt_cv_path_NM="$NM"
12147 else
12148   lt_nm_to_check="${ac_tool_prefix}nm"
12149   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12150     lt_nm_to_check="$lt_nm_to_check nm"
12151   fi
12152   for lt_tmp_nm in $lt_nm_to_check; do
12153     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12154     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12155       IFS="$lt_save_ifs"
12156       test -z "$ac_dir" && ac_dir=.
12157       tmp_nm="$ac_dir/$lt_tmp_nm"
12158       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12159         # Check to see if the nm accepts a BSD-compat flag.
12160         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12161         #   nm: unknown option "B" ignored
12162         # Tru64's nm complains that /dev/null is an invalid object file
12163         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12164         */dev/null* | *'Invalid file or object type'*)
12165           lt_cv_path_NM="$tmp_nm -B"
12166           break
12167           ;;
12168         *)
12169           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12170           */dev/null*)
12171             lt_cv_path_NM="$tmp_nm -p"
12172             break
12173             ;;
12174           *)
12175             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12176             continue # so that we can try to find one that supports BSD flags
12177             ;;
12178           esac
12179           ;;
12180         esac
12181       fi
12182     done
12183     IFS="$lt_save_ifs"
12184   done
12185   : ${lt_cv_path_NM=no}
12186 fi
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12189 $as_echo "$lt_cv_path_NM" >&6; }
12190 if test "$lt_cv_path_NM" != "no"; then
12191   NM="$lt_cv_path_NM"
12192 else
12193   # Didn't find any BSD compatible name lister, look for dumpbin.
12194   if test -n "$DUMPBIN"; then :
12195     # Let the user override the test.
12196   else
12197     if test -n "$ac_tool_prefix"; then
12198   for ac_prog in dumpbin "link -dump"
12199   do
12200     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12205   $as_echo_n "(cached) " >&6
12206 else
12207   if test -n "$DUMPBIN"; then
12208   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12209 else
12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211 for as_dir in $PATH
12212 do
12213   IFS=$as_save_IFS
12214   test -z "$as_dir" && as_dir=.
12215     for ac_exec_ext in '' $ac_executable_extensions; do
12216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12217     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12219     break 2
12220   fi
12221 done
12222   done
12223 IFS=$as_save_IFS
12224
12225 fi
12226 fi
12227 DUMPBIN=$ac_cv_prog_DUMPBIN
12228 if test -n "$DUMPBIN"; then
12229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12230 $as_echo "$DUMPBIN" >&6; }
12231 else
12232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12234 fi
12235
12236
12237     test -n "$DUMPBIN" && break
12238   done
12239 fi
12240 if test -z "$DUMPBIN"; then
12241   ac_ct_DUMPBIN=$DUMPBIN
12242   for ac_prog in dumpbin "link -dump"
12243 do
12244   # Extract the first word of "$ac_prog", so it can be a program name with args.
12245 set dummy $ac_prog; ac_word=$2
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12247 $as_echo_n "checking for $ac_word... " >&6; }
12248 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12249   $as_echo_n "(cached) " >&6
12250 else
12251   if test -n "$ac_ct_DUMPBIN"; then
12252   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12253 else
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12256 do
12257   IFS=$as_save_IFS
12258   test -z "$as_dir" && as_dir=.
12259     for ac_exec_ext in '' $ac_executable_extensions; do
12260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12261     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263     break 2
12264   fi
12265 done
12266   done
12267 IFS=$as_save_IFS
12268
12269 fi
12270 fi
12271 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12272 if test -n "$ac_ct_DUMPBIN"; then
12273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12274 $as_echo "$ac_ct_DUMPBIN" >&6; }
12275 else
12276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12278 fi
12279
12280
12281   test -n "$ac_ct_DUMPBIN" && break
12282 done
12283
12284   if test "x$ac_ct_DUMPBIN" = x; then
12285     DUMPBIN=":"
12286   else
12287     case $cross_compiling:$ac_tool_warned in
12288 yes:)
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12291 ac_tool_warned=yes ;;
12292 esac
12293     DUMPBIN=$ac_ct_DUMPBIN
12294   fi
12295 fi
12296
12297     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12298     *COFF*)
12299       DUMPBIN="$DUMPBIN -symbols"
12300       ;;
12301     *)
12302       DUMPBIN=:
12303       ;;
12304     esac
12305   fi
12306
12307   if test "$DUMPBIN" != ":"; then
12308     NM="$DUMPBIN"
12309   fi
12310 fi
12311 test -z "$NM" && NM=nm
12312
12313
12314
12315
12316
12317
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12319 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12320 if test "${lt_cv_nm_interface+set}" = set; then :
12321   $as_echo_n "(cached) " >&6
12322 else
12323   lt_cv_nm_interface="BSD nm"
12324   echo "int some_variable = 0;" > conftest.$ac_ext
12325   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12326   (eval "$ac_compile" 2>conftest.err)
12327   cat conftest.err >&5
12328   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12329   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12330   cat conftest.err >&5
12331   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12332   cat conftest.out >&5
12333   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12334     lt_cv_nm_interface="MS dumpbin"
12335   fi
12336   rm -f conftest*
12337 fi
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12339 $as_echo "$lt_cv_nm_interface" >&6; }
12340
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12342 $as_echo_n "checking whether ln -s works... " >&6; }
12343 LN_S=$as_ln_s
12344 if test "$LN_S" = "ln -s"; then
12345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12346 $as_echo "yes" >&6; }
12347 else
12348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12349 $as_echo "no, using $LN_S" >&6; }
12350 fi
12351
12352 # find the maximum length of command line arguments
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12354 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12355 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12356   $as_echo_n "(cached) " >&6
12357 else
12358     i=0
12359   teststring="ABCD"
12360
12361   case $build_os in
12362   msdosdjgpp*)
12363     # On DJGPP, this test can blow up pretty badly due to problems in libc
12364     # (any single argument exceeding 2000 bytes causes a buffer overrun
12365     # during glob expansion).  Even if it were fixed, the result of this
12366     # check would be larger than it should be.
12367     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12368     ;;
12369
12370   gnu*)
12371     # Under GNU Hurd, this test is not required because there is
12372     # no limit to the length of command line arguments.
12373     # Libtool will interpret -1 as no limit whatsoever
12374     lt_cv_sys_max_cmd_len=-1;
12375     ;;
12376
12377   cygwin* | mingw* | cegcc*)
12378     # On Win9x/ME, this test blows up -- it succeeds, but takes
12379     # about 5 minutes as the teststring grows exponentially.
12380     # Worse, since 9x/ME are not pre-emptively multitasking,
12381     # you end up with a "frozen" computer, even though with patience
12382     # the test eventually succeeds (with a max line length of 256k).
12383     # Instead, let's just punt: use the minimum linelength reported by
12384     # all of the supported platforms: 8192 (on NT/2K/XP).
12385     lt_cv_sys_max_cmd_len=8192;
12386     ;;
12387
12388   mint*)
12389     # On MiNT this can take a long time and run out of memory.
12390     lt_cv_sys_max_cmd_len=8192;
12391     ;;
12392
12393   amigaos*)
12394     # On AmigaOS with pdksh, this test takes hours, literally.
12395     # So we just punt and use a minimum line length of 8192.
12396     lt_cv_sys_max_cmd_len=8192;
12397     ;;
12398
12399   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12400     # This has been around since 386BSD, at least.  Likely further.
12401     if test -x /sbin/sysctl; then
12402       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12403     elif test -x /usr/sbin/sysctl; then
12404       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12405     else
12406       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12407     fi
12408     # And add a safety zone
12409     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12410     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12411     ;;
12412
12413   interix*)
12414     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12415     lt_cv_sys_max_cmd_len=196608
12416     ;;
12417
12418   osf*)
12419     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12420     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12421     # nice to cause kernel panics so lets avoid the loop below.
12422     # First set a reasonable default.
12423     lt_cv_sys_max_cmd_len=16384
12424     #
12425     if test -x /sbin/sysconfig; then
12426       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12427         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12428       esac
12429     fi
12430     ;;
12431   sco3.2v5*)
12432     lt_cv_sys_max_cmd_len=102400
12433     ;;
12434   sysv5* | sco5v6* | sysv4.2uw2*)
12435     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12436     if test -n "$kargmax"; then
12437       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12438     else
12439       lt_cv_sys_max_cmd_len=32768
12440     fi
12441     ;;
12442   *)
12443     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12444     if test -n "$lt_cv_sys_max_cmd_len"; then
12445       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12446       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12447     else
12448       # Make teststring a little bigger before we do anything with it.
12449       # a 1K string should be a reasonable start.
12450       for i in 1 2 3 4 5 6 7 8 ; do
12451         teststring=$teststring$teststring
12452       done
12453       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12454       # If test is not a shell built-in, we'll probably end up computing a
12455       # maximum length that is only half of the actual maximum length, but
12456       # we can't tell.
12457       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12458                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12459               test $i != 17 # 1/2 MB should be enough
12460       do
12461         i=`expr $i + 1`
12462         teststring=$teststring$teststring
12463       done
12464       # Only check the string length outside the loop.
12465       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12466       teststring=
12467       # Add a significant safety factor because C++ compilers can tack on
12468       # massive amounts of additional arguments before passing them to the
12469       # linker.  It appears as though 1/2 is a usable value.
12470       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12471     fi
12472     ;;
12473   esac
12474
12475 fi
12476
12477 if test -n $lt_cv_sys_max_cmd_len ; then
12478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12479 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12480 else
12481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12482 $as_echo "none" >&6; }
12483 fi
12484 max_cmd_len=$lt_cv_sys_max_cmd_len
12485
12486
12487
12488
12489
12490
12491 : ${CP="cp -f"}
12492 : ${MV="mv -f"}
12493 : ${RM="rm -f"}
12494
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12496 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12497 # Try some XSI features
12498 xsi_shell=no
12499 ( _lt_dummy="a/b/c"
12500   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12501       = c,a/b,, \
12502     && eval 'test $(( 1 + 1 )) -eq 2 \
12503     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12504   && xsi_shell=yes
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12506 $as_echo "$xsi_shell" >&6; }
12507
12508
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12510 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12511 lt_shell_append=no
12512 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12513     >/dev/null 2>&1 \
12514   && lt_shell_append=yes
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12516 $as_echo "$lt_shell_append" >&6; }
12517
12518
12519 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12520   lt_unset=unset
12521 else
12522   lt_unset=false
12523 fi
12524
12525
12526
12527
12528
12529 # test EBCDIC or ASCII
12530 case `echo X|tr X '\101'` in
12531  A) # ASCII based system
12532     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12533   lt_SP2NL='tr \040 \012'
12534   lt_NL2SP='tr \015\012 \040\040'
12535   ;;
12536  *) # EBCDIC based system
12537   lt_SP2NL='tr \100 \n'
12538   lt_NL2SP='tr \r\n \100\100'
12539   ;;
12540 esac
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12551 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12552 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12553   $as_echo_n "(cached) " >&6
12554 else
12555   lt_cv_ld_reload_flag='-r'
12556 fi
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12558 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12559 reload_flag=$lt_cv_ld_reload_flag
12560 case $reload_flag in
12561 "" | " "*) ;;
12562 *) reload_flag=" $reload_flag" ;;
12563 esac
12564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12565 case $host_os in
12566   darwin*)
12567     if test "$GCC" = yes; then
12568       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12569     else
12570       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12571     fi
12572     ;;
12573 esac
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583 if test -n "$ac_tool_prefix"; then
12584   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12585 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587 $as_echo_n "checking for $ac_word... " >&6; }
12588 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12589   $as_echo_n "(cached) " >&6
12590 else
12591   if test -n "$OBJDUMP"; then
12592   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12593 else
12594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595 for as_dir in $PATH
12596 do
12597   IFS=$as_save_IFS
12598   test -z "$as_dir" && as_dir=.
12599     for ac_exec_ext in '' $ac_executable_extensions; do
12600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12601     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603     break 2
12604   fi
12605 done
12606   done
12607 IFS=$as_save_IFS
12608
12609 fi
12610 fi
12611 OBJDUMP=$ac_cv_prog_OBJDUMP
12612 if test -n "$OBJDUMP"; then
12613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12614 $as_echo "$OBJDUMP" >&6; }
12615 else
12616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12618 fi
12619
12620
12621 fi
12622 if test -z "$ac_cv_prog_OBJDUMP"; then
12623   ac_ct_OBJDUMP=$OBJDUMP
12624   # Extract the first word of "objdump", so it can be a program name with args.
12625 set dummy objdump; ac_word=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627 $as_echo_n "checking for $ac_word... " >&6; }
12628 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12629   $as_echo_n "(cached) " >&6
12630 else
12631   if test -n "$ac_ct_OBJDUMP"; then
12632   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12633 else
12634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 for as_dir in $PATH
12636 do
12637   IFS=$as_save_IFS
12638   test -z "$as_dir" && as_dir=.
12639     for ac_exec_ext in '' $ac_executable_extensions; do
12640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12641     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643     break 2
12644   fi
12645 done
12646   done
12647 IFS=$as_save_IFS
12648
12649 fi
12650 fi
12651 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12652 if test -n "$ac_ct_OBJDUMP"; then
12653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12654 $as_echo "$ac_ct_OBJDUMP" >&6; }
12655 else
12656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657 $as_echo "no" >&6; }
12658 fi
12659
12660   if test "x$ac_ct_OBJDUMP" = x; then
12661     OBJDUMP="false"
12662   else
12663     case $cross_compiling:$ac_tool_warned in
12664 yes:)
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12667 ac_tool_warned=yes ;;
12668 esac
12669     OBJDUMP=$ac_ct_OBJDUMP
12670   fi
12671 else
12672   OBJDUMP="$ac_cv_prog_OBJDUMP"
12673 fi
12674
12675 test -z "$OBJDUMP" && OBJDUMP=objdump
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12686 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12687 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12688   $as_echo_n "(cached) " >&6
12689 else
12690   lt_cv_file_magic_cmd='$MAGIC_CMD'
12691 lt_cv_file_magic_test_file=
12692 lt_cv_deplibs_check_method='unknown'
12693 # Need to set the preceding variable on all platforms that support
12694 # interlibrary dependencies.
12695 # 'none' -- dependencies not supported.
12696 # `unknown' -- same as none, but documents that we really don't know.
12697 # 'pass_all' -- all dependencies passed with no checks.
12698 # 'test_compile' -- check by making test program.
12699 # 'file_magic [[regex]]' -- check by looking for files in library path
12700 # which responds to the $file_magic_cmd with a given extended regex.
12701 # If you have `file' or equivalent on your system and you're not sure
12702 # whether `pass_all' will *always* work, you probably want this one.
12703
12704 case $host_os in
12705 aix[4-9]*)
12706   lt_cv_deplibs_check_method=pass_all
12707   ;;
12708
12709 beos*)
12710   lt_cv_deplibs_check_method=pass_all
12711   ;;
12712
12713 bsdi[45]*)
12714   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12715   lt_cv_file_magic_cmd='/usr/bin/file -L'
12716   lt_cv_file_magic_test_file=/shlib/libc.so
12717   ;;
12718
12719 cygwin*)
12720   # func_win32_libid is a shell function defined in ltmain.sh
12721   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12722   lt_cv_file_magic_cmd='func_win32_libid'
12723   ;;
12724
12725 mingw* | pw32*)
12726   # Base MSYS/MinGW do not provide the 'file' command needed by
12727   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12728   # unless we find 'file', for example because we are cross-compiling.
12729   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12730   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12731     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12732     lt_cv_file_magic_cmd='func_win32_libid'
12733   else
12734     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12735     lt_cv_file_magic_cmd='$OBJDUMP -f'
12736   fi
12737   ;;
12738
12739 cegcc*)
12740   # use the weaker test based on 'objdump'. See mingw*.
12741   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12742   lt_cv_file_magic_cmd='$OBJDUMP -f'
12743   ;;
12744
12745 darwin* | rhapsody*)
12746   lt_cv_deplibs_check_method=pass_all
12747   ;;
12748
12749 freebsd* | dragonfly*)
12750   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12751     case $host_cpu in
12752     i*86 )
12753       # Not sure whether the presence of OpenBSD here was a mistake.
12754       # Let's accept both of them until this is cleared up.
12755       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12756       lt_cv_file_magic_cmd=/usr/bin/file
12757       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12758       ;;
12759     esac
12760   else
12761     lt_cv_deplibs_check_method=pass_all
12762   fi
12763   ;;
12764
12765 gnu*)
12766   lt_cv_deplibs_check_method=pass_all
12767   ;;
12768
12769 haiku*)
12770   lt_cv_deplibs_check_method=pass_all
12771   ;;
12772
12773 hpux10.20* | hpux11*)
12774   lt_cv_file_magic_cmd=/usr/bin/file
12775   case $host_cpu in
12776   ia64*)
12777     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12778     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12779     ;;
12780   hppa*64*)
12781     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]'
12782     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12783     ;;
12784   *)
12785     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12786     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12787     ;;
12788   esac
12789   ;;
12790
12791 interix[3-9]*)
12792   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12793   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12794   ;;
12795
12796 irix5* | irix6* | nonstopux*)
12797   case $LD in
12798   *-32|*"-32 ") libmagic=32-bit;;
12799   *-n32|*"-n32 ") libmagic=N32;;
12800   *-64|*"-64 ") libmagic=64-bit;;
12801   *) libmagic=never-match;;
12802   esac
12803   lt_cv_deplibs_check_method=pass_all
12804   ;;
12805
12806 # This must be Linux ELF.
12807 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12808   lt_cv_deplibs_check_method=pass_all
12809   ;;
12810
12811 netbsd*)
12812   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12813     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12814   else
12815     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12816   fi
12817   ;;
12818
12819 newos6*)
12820   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12821   lt_cv_file_magic_cmd=/usr/bin/file
12822   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12823   ;;
12824
12825 *nto* | *qnx*)
12826   lt_cv_deplibs_check_method=pass_all
12827   ;;
12828
12829 openbsd*)
12830   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12831     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12832   else
12833     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12834   fi
12835   ;;
12836
12837 osf3* | osf4* | osf5*)
12838   lt_cv_deplibs_check_method=pass_all
12839   ;;
12840
12841 rdos*)
12842   lt_cv_deplibs_check_method=pass_all
12843   ;;
12844
12845 solaris*)
12846   lt_cv_deplibs_check_method=pass_all
12847   ;;
12848
12849 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12850   lt_cv_deplibs_check_method=pass_all
12851   ;;
12852
12853 sysv4 | sysv4.3*)
12854   case $host_vendor in
12855   motorola)
12856     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]'
12857     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12858     ;;
12859   ncr)
12860     lt_cv_deplibs_check_method=pass_all
12861     ;;
12862   sequent)
12863     lt_cv_file_magic_cmd='/bin/file'
12864     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12865     ;;
12866   sni)
12867     lt_cv_file_magic_cmd='/bin/file'
12868     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12869     lt_cv_file_magic_test_file=/lib/libc.so
12870     ;;
12871   siemens)
12872     lt_cv_deplibs_check_method=pass_all
12873     ;;
12874   pc)
12875     lt_cv_deplibs_check_method=pass_all
12876     ;;
12877   esac
12878   ;;
12879
12880 tpf*)
12881   lt_cv_deplibs_check_method=pass_all
12882   ;;
12883 esac
12884
12885 fi
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12887 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12888 file_magic_cmd=$lt_cv_file_magic_cmd
12889 deplibs_check_method=$lt_cv_deplibs_check_method
12890 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903 if test -n "$ac_tool_prefix"; then
12904   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12905 set dummy ${ac_tool_prefix}ar; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if test "${ac_cv_prog_AR+set}" = set; then :
12909   $as_echo_n "(cached) " >&6
12910 else
12911   if test -n "$AR"; then
12912   ac_cv_prog_AR="$AR" # Let the user override the test.
12913 else
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12916 do
12917   IFS=$as_save_IFS
12918   test -z "$as_dir" && as_dir=.
12919     for ac_exec_ext in '' $ac_executable_extensions; do
12920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12921     ac_cv_prog_AR="${ac_tool_prefix}ar"
12922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923     break 2
12924   fi
12925 done
12926   done
12927 IFS=$as_save_IFS
12928
12929 fi
12930 fi
12931 AR=$ac_cv_prog_AR
12932 if test -n "$AR"; then
12933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12934 $as_echo "$AR" >&6; }
12935 else
12936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12938 fi
12939
12940
12941 fi
12942 if test -z "$ac_cv_prog_AR"; then
12943   ac_ct_AR=$AR
12944   # Extract the first word of "ar", so it can be a program name with args.
12945 set dummy ar; ac_word=$2
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12947 $as_echo_n "checking for $ac_word... " >&6; }
12948 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12949   $as_echo_n "(cached) " >&6
12950 else
12951   if test -n "$ac_ct_AR"; then
12952   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12953 else
12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH
12956 do
12957   IFS=$as_save_IFS
12958   test -z "$as_dir" && as_dir=.
12959     for ac_exec_ext in '' $ac_executable_extensions; do
12960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12961     ac_cv_prog_ac_ct_AR="ar"
12962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12963     break 2
12964   fi
12965 done
12966   done
12967 IFS=$as_save_IFS
12968
12969 fi
12970 fi
12971 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12972 if test -n "$ac_ct_AR"; then
12973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12974 $as_echo "$ac_ct_AR" >&6; }
12975 else
12976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12977 $as_echo "no" >&6; }
12978 fi
12979
12980   if test "x$ac_ct_AR" = x; then
12981     AR="false"
12982   else
12983     case $cross_compiling:$ac_tool_warned in
12984 yes:)
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12987 ac_tool_warned=yes ;;
12988 esac
12989     AR=$ac_ct_AR
12990   fi
12991 else
12992   AR="$ac_cv_prog_AR"
12993 fi
12994
12995 test -z "$AR" && AR=ar
12996 test -z "$AR_FLAGS" && AR_FLAGS=cru
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008 if test -n "$ac_tool_prefix"; then
13009   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13010 set dummy ${ac_tool_prefix}strip; ac_word=$2
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13012 $as_echo_n "checking for $ac_word... " >&6; }
13013 if test "${ac_cv_prog_STRIP+set}" = set; then :
13014   $as_echo_n "(cached) " >&6
13015 else
13016   if test -n "$STRIP"; then
13017   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13018 else
13019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020 for as_dir in $PATH
13021 do
13022   IFS=$as_save_IFS
13023   test -z "$as_dir" && as_dir=.
13024     for ac_exec_ext in '' $ac_executable_extensions; do
13025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13026     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13028     break 2
13029   fi
13030 done
13031   done
13032 IFS=$as_save_IFS
13033
13034 fi
13035 fi
13036 STRIP=$ac_cv_prog_STRIP
13037 if test -n "$STRIP"; then
13038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13039 $as_echo "$STRIP" >&6; }
13040 else
13041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042 $as_echo "no" >&6; }
13043 fi
13044
13045
13046 fi
13047 if test -z "$ac_cv_prog_STRIP"; then
13048   ac_ct_STRIP=$STRIP
13049   # Extract the first word of "strip", so it can be a program name with args.
13050 set dummy strip; ac_word=$2
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052 $as_echo_n "checking for $ac_word... " >&6; }
13053 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13054   $as_echo_n "(cached) " >&6
13055 else
13056   if test -n "$ac_ct_STRIP"; then
13057   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13058 else
13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13061 do
13062   IFS=$as_save_IFS
13063   test -z "$as_dir" && as_dir=.
13064     for ac_exec_ext in '' $ac_executable_extensions; do
13065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13066     ac_cv_prog_ac_ct_STRIP="strip"
13067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13068     break 2
13069   fi
13070 done
13071   done
13072 IFS=$as_save_IFS
13073
13074 fi
13075 fi
13076 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13077 if test -n "$ac_ct_STRIP"; then
13078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13079 $as_echo "$ac_ct_STRIP" >&6; }
13080 else
13081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13083 fi
13084
13085   if test "x$ac_ct_STRIP" = x; then
13086     STRIP=":"
13087   else
13088     case $cross_compiling:$ac_tool_warned in
13089 yes:)
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13092 ac_tool_warned=yes ;;
13093 esac
13094     STRIP=$ac_ct_STRIP
13095   fi
13096 else
13097   STRIP="$ac_cv_prog_STRIP"
13098 fi
13099
13100 test -z "$STRIP" && STRIP=:
13101
13102
13103
13104
13105
13106
13107 if test -n "$ac_tool_prefix"; then
13108   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13111 $as_echo_n "checking for $ac_word... " >&6; }
13112 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13113   $as_echo_n "(cached) " >&6
13114 else
13115   if test -n "$RANLIB"; then
13116   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13117 else
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13120 do
13121   IFS=$as_save_IFS
13122   test -z "$as_dir" && as_dir=.
13123     for ac_exec_ext in '' $ac_executable_extensions; do
13124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13125     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13127     break 2
13128   fi
13129 done
13130   done
13131 IFS=$as_save_IFS
13132
13133 fi
13134 fi
13135 RANLIB=$ac_cv_prog_RANLIB
13136 if test -n "$RANLIB"; then
13137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13138 $as_echo "$RANLIB" >&6; }
13139 else
13140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13142 fi
13143
13144
13145 fi
13146 if test -z "$ac_cv_prog_RANLIB"; then
13147   ac_ct_RANLIB=$RANLIB
13148   # Extract the first word of "ranlib", so it can be a program name with args.
13149 set dummy ranlib; ac_word=$2
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13151 $as_echo_n "checking for $ac_word... " >&6; }
13152 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13153   $as_echo_n "(cached) " >&6
13154 else
13155   if test -n "$ac_ct_RANLIB"; then
13156   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13157 else
13158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13159 for as_dir in $PATH
13160 do
13161   IFS=$as_save_IFS
13162   test -z "$as_dir" && as_dir=.
13163     for ac_exec_ext in '' $ac_executable_extensions; do
13164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13165     ac_cv_prog_ac_ct_RANLIB="ranlib"
13166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13167     break 2
13168   fi
13169 done
13170   done
13171 IFS=$as_save_IFS
13172
13173 fi
13174 fi
13175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13176 if test -n "$ac_ct_RANLIB"; then
13177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13178 $as_echo "$ac_ct_RANLIB" >&6; }
13179 else
13180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13182 fi
13183
13184   if test "x$ac_ct_RANLIB" = x; then
13185     RANLIB=":"
13186   else
13187     case $cross_compiling:$ac_tool_warned in
13188 yes:)
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13191 ac_tool_warned=yes ;;
13192 esac
13193     RANLIB=$ac_ct_RANLIB
13194   fi
13195 else
13196   RANLIB="$ac_cv_prog_RANLIB"
13197 fi
13198
13199 test -z "$RANLIB" && RANLIB=:
13200
13201
13202
13203
13204
13205
13206 # Determine commands to create old-style static archives.
13207 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13208 old_postinstall_cmds='chmod 644 $oldlib'
13209 old_postuninstall_cmds=
13210
13211 if test -n "$RANLIB"; then
13212   case $host_os in
13213   openbsd*)
13214     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13215     ;;
13216   *)
13217     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13218     ;;
13219   esac
13220   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13221 fi
13222
13223 case $host_os in
13224   darwin*)
13225     lock_old_archive_extraction=yes ;;
13226   *)
13227     lock_old_archive_extraction=no ;;
13228 esac
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268 # If no C compiler was specified, use CC.
13269 LTCC=${LTCC-"$CC"}
13270
13271 # If no C compiler flags were specified, use CFLAGS.
13272 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13273
13274 # Allow CC to be a program name with arguments.
13275 compiler=$CC
13276
13277
13278 # Check for command to grab the raw symbol name followed by C symbol from nm.
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13280 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13281 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13282   $as_echo_n "(cached) " >&6
13283 else
13284
13285 # These are sane defaults that work on at least a few old systems.
13286 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13287
13288 # Character class describing NM global symbol codes.
13289 symcode='[BCDEGRST]'
13290
13291 # Regexp to match symbols that can be accessed directly from C.
13292 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13293
13294 # Define system-specific variables.
13295 case $host_os in
13296 aix*)
13297   symcode='[BCDT]'
13298   ;;
13299 cygwin* | mingw* | pw32* | cegcc*)
13300   symcode='[ABCDGISTW]'
13301   ;;
13302 hpux*)
13303   if test "$host_cpu" = ia64; then
13304     symcode='[ABCDEGRST]'
13305   fi
13306   ;;
13307 irix* | nonstopux*)
13308   symcode='[BCDEGRST]'
13309   ;;
13310 osf*)
13311   symcode='[BCDEGQRST]'
13312   ;;
13313 solaris*)
13314   symcode='[BDRT]'
13315   ;;
13316 sco3.2v5*)
13317   symcode='[DT]'
13318   ;;
13319 sysv4.2uw2*)
13320   symcode='[DT]'
13321   ;;
13322 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13323   symcode='[ABDT]'
13324   ;;
13325 sysv4)
13326   symcode='[DFNSTU]'
13327   ;;
13328 esac
13329
13330 # If we're using GNU nm, then use its standard symbol codes.
13331 case `$NM -V 2>&1` in
13332 *GNU* | *'with BFD'*)
13333   symcode='[ABCDGIRSTW]' ;;
13334 esac
13335
13336 # Transform an extracted symbol line into a proper C declaration.
13337 # Some systems (esp. on ia64) link data and code symbols differently,
13338 # so use this general approach.
13339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13340
13341 # Transform an extracted symbol line into symbol name and symbol address
13342 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13343 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'"
13344
13345 # Handle CRLF in mingw tool chain
13346 opt_cr=
13347 case $build_os in
13348 mingw*)
13349   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13350   ;;
13351 esac
13352
13353 # Try without a prefix underscore, then with it.
13354 for ac_symprfx in "" "_"; do
13355
13356   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13357   symxfrm="\\1 $ac_symprfx\\2 \\2"
13358
13359   # Write the raw and C identifiers.
13360   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13361     # Fake it for dumpbin and say T for any non-static function
13362     # and D for any global variable.
13363     # Also find C++ and __fastcall symbols from MSVC++,
13364     # which start with @ or ?.
13365     lt_cv_sys_global_symbol_pipe="$AWK '"\
13366 "     {last_section=section; section=\$ 3};"\
13367 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13368 "     \$ 0!~/External *\|/{next};"\
13369 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13370 "     {if(hide[section]) next};"\
13371 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13372 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13373 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13374 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13375 "     ' prfx=^$ac_symprfx"
13376   else
13377     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13378   fi
13379
13380   # Check to see that the pipe works correctly.
13381   pipe_works=no
13382
13383   rm -f conftest*
13384   cat > conftest.$ac_ext <<_LT_EOF
13385 #ifdef __cplusplus
13386 extern "C" {
13387 #endif
13388 char nm_test_var;
13389 void nm_test_func(void);
13390 void nm_test_func(void){}
13391 #ifdef __cplusplus
13392 }
13393 #endif
13394 int main(){nm_test_var='a';nm_test_func();return(0);}
13395 _LT_EOF
13396
13397   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13398   (eval $ac_compile) 2>&5
13399   ac_status=$?
13400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13401   test $ac_status = 0; }; then
13402     # Now try to grab the symbols.
13403     nlist=conftest.nm
13404     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13405   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13406   ac_status=$?
13407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13408   test $ac_status = 0; } && test -s "$nlist"; then
13409       # Try sorting and uniquifying the output.
13410       if sort "$nlist" | uniq > "$nlist"T; then
13411         mv -f "$nlist"T "$nlist"
13412       else
13413         rm -f "$nlist"T
13414       fi
13415
13416       # Make sure that we snagged all the symbols we need.
13417       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13418         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13419           cat <<_LT_EOF > conftest.$ac_ext
13420 #ifdef __cplusplus
13421 extern "C" {
13422 #endif
13423
13424 _LT_EOF
13425           # Now generate the symbol file.
13426           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13427
13428           cat <<_LT_EOF >> conftest.$ac_ext
13429
13430 /* The mapping between symbol names and symbols.  */
13431 const struct {
13432   const char *name;
13433   void       *address;
13434 }
13435 lt__PROGRAM__LTX_preloaded_symbols[] =
13436 {
13437   { "@PROGRAM@", (void *) 0 },
13438 _LT_EOF
13439           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13440           cat <<\_LT_EOF >> conftest.$ac_ext
13441   {0, (void *) 0}
13442 };
13443
13444 /* This works around a problem in FreeBSD linker */
13445 #ifdef FREEBSD_WORKAROUND
13446 static const void *lt_preloaded_setup() {
13447   return lt__PROGRAM__LTX_preloaded_symbols;
13448 }
13449 #endif
13450
13451 #ifdef __cplusplus
13452 }
13453 #endif
13454 _LT_EOF
13455           # Now try linking the two files.
13456           mv conftest.$ac_objext conftstm.$ac_objext
13457           lt_save_LIBS="$LIBS"
13458           lt_save_CFLAGS="$CFLAGS"
13459           LIBS="conftstm.$ac_objext"
13460           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13461           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13462   (eval $ac_link) 2>&5
13463   ac_status=$?
13464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13465   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13466             pipe_works=yes
13467           fi
13468           LIBS="$lt_save_LIBS"
13469           CFLAGS="$lt_save_CFLAGS"
13470         else
13471           echo "cannot find nm_test_func in $nlist" >&5
13472         fi
13473       else
13474         echo "cannot find nm_test_var in $nlist" >&5
13475       fi
13476     else
13477       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13478     fi
13479   else
13480     echo "$progname: failed program was:" >&5
13481     cat conftest.$ac_ext >&5
13482   fi
13483   rm -rf conftest* conftst*
13484
13485   # Do not use the global_symbol_pipe unless it works.
13486   if test "$pipe_works" = yes; then
13487     break
13488   else
13489     lt_cv_sys_global_symbol_pipe=
13490   fi
13491 done
13492
13493 fi
13494
13495 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13496   lt_cv_sys_global_symbol_to_cdecl=
13497 fi
13498 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13500 $as_echo "failed" >&6; }
13501 else
13502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13503 $as_echo "ok" >&6; }
13504 fi
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527 # Check whether --enable-libtool-lock was given.
13528 if test "${enable_libtool_lock+set}" = set; then :
13529   enableval=$enable_libtool_lock;
13530 fi
13531
13532 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13533
13534 # Some flags need to be propagated to the compiler or linker for good
13535 # libtool support.
13536 case $host in
13537 ia64-*-hpux*)
13538   # Find out which ABI we are using.
13539   echo 'int i;' > conftest.$ac_ext
13540   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13541   (eval $ac_compile) 2>&5
13542   ac_status=$?
13543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13544   test $ac_status = 0; }; then
13545     case `/usr/bin/file conftest.$ac_objext` in
13546       *ELF-32*)
13547         HPUX_IA64_MODE="32"
13548         ;;
13549       *ELF-64*)
13550         HPUX_IA64_MODE="64"
13551         ;;
13552     esac
13553   fi
13554   rm -rf conftest*
13555   ;;
13556 *-*-irix6*)
13557   # Find out which ABI we are using.
13558   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13559   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13560   (eval $ac_compile) 2>&5
13561   ac_status=$?
13562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13563   test $ac_status = 0; }; then
13564     if test "$lt_cv_prog_gnu_ld" = yes; then
13565       case `/usr/bin/file conftest.$ac_objext` in
13566         *32-bit*)
13567           LD="${LD-ld} -melf32bsmip"
13568           ;;
13569         *N32*)
13570           LD="${LD-ld} -melf32bmipn32"
13571           ;;
13572         *64-bit*)
13573           LD="${LD-ld} -melf64bmip"
13574         ;;
13575       esac
13576     else
13577       case `/usr/bin/file conftest.$ac_objext` in
13578         *32-bit*)
13579           LD="${LD-ld} -32"
13580           ;;
13581         *N32*)
13582           LD="${LD-ld} -n32"
13583           ;;
13584         *64-bit*)
13585           LD="${LD-ld} -64"
13586           ;;
13587       esac
13588     fi
13589   fi
13590   rm -rf conftest*
13591   ;;
13592
13593 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13594 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13595   # Find out which ABI we are using.
13596   echo 'int i;' > conftest.$ac_ext
13597   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13598   (eval $ac_compile) 2>&5
13599   ac_status=$?
13600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13601   test $ac_status = 0; }; then
13602     case `/usr/bin/file conftest.o` in
13603       *32-bit*)
13604         case $host in
13605           x86_64-*kfreebsd*-gnu)
13606             LD="${LD-ld} -m elf_i386_fbsd"
13607             ;;
13608           x86_64-*linux*)
13609             case `/usr/bin/file conftest.o` in
13610               *x86-64*)
13611                 LD="${LD-ld} -m elf32_x86_64"
13612                 ;;
13613               *)
13614                 LD="${LD-ld} -m elf_i386"
13615                 ;;
13616             esac
13617             ;;
13618           ppc64-*linux*|powerpc64-*linux*)
13619             LD="${LD-ld} -m elf32ppclinux"
13620             ;;
13621           s390x-*linux*)
13622             LD="${LD-ld} -m elf_s390"
13623             ;;
13624           sparc64-*linux*)
13625             LD="${LD-ld} -m elf32_sparc"
13626             ;;
13627         esac
13628         ;;
13629       *64-bit*)
13630         case $host in
13631           x86_64-*kfreebsd*-gnu)
13632             LD="${LD-ld} -m elf_x86_64_fbsd"
13633             ;;
13634           x86_64-*linux*)
13635             LD="${LD-ld} -m elf_x86_64"
13636             ;;
13637           ppc*-*linux*|powerpc*-*linux*)
13638             LD="${LD-ld} -m elf64ppc"
13639             ;;
13640           s390*-*linux*|s390*-*tpf*)
13641             LD="${LD-ld} -m elf64_s390"
13642             ;;
13643           sparc*-*linux*)
13644             LD="${LD-ld} -m elf64_sparc"
13645             ;;
13646         esac
13647         ;;
13648     esac
13649   fi
13650   rm -rf conftest*
13651   ;;
13652
13653 *-*-sco3.2v5*)
13654   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13655   SAVE_CFLAGS="$CFLAGS"
13656   CFLAGS="$CFLAGS -belf"
13657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13658 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13659 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13660   $as_echo_n "(cached) " >&6
13661 else
13662   ac_ext=c
13663 ac_cpp='$CPP $CPPFLAGS'
13664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13667
13668      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h.  */
13670
13671 int
13672 main ()
13673 {
13674
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 if ac_fn_c_try_link "$LINENO"; then :
13680   lt_cv_cc_needs_belf=yes
13681 else
13682   lt_cv_cc_needs_belf=no
13683 fi
13684 rm -f core conftest.err conftest.$ac_objext \
13685     conftest$ac_exeext conftest.$ac_ext
13686      ac_ext=c
13687 ac_cpp='$CPP $CPPFLAGS'
13688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13691
13692 fi
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13694 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13695   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13696     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13697     CFLAGS="$SAVE_CFLAGS"
13698   fi
13699   ;;
13700 sparc*-*solaris*)
13701   # Find out which ABI we are using.
13702   echo 'int i;' > conftest.$ac_ext
13703   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13704   (eval $ac_compile) 2>&5
13705   ac_status=$?
13706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13707   test $ac_status = 0; }; then
13708     case `/usr/bin/file conftest.o` in
13709     *64-bit*)
13710       case $lt_cv_prog_gnu_ld in
13711       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13712       *)
13713         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13714           LD="${LD-ld} -64"
13715         fi
13716         ;;
13717       esac
13718       ;;
13719     esac
13720   fi
13721   rm -rf conftest*
13722   ;;
13723 esac
13724
13725 need_locks="$enable_libtool_lock"
13726
13727
13728   case $host_os in
13729     rhapsody* | darwin*)
13730     if test -n "$ac_tool_prefix"; then
13731   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13732 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13734 $as_echo_n "checking for $ac_word... " >&6; }
13735 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13736   $as_echo_n "(cached) " >&6
13737 else
13738   if test -n "$DSYMUTIL"; then
13739   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13740 else
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13743 do
13744   IFS=$as_save_IFS
13745   test -z "$as_dir" && as_dir=.
13746     for ac_exec_ext in '' $ac_executable_extensions; do
13747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13748     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13750     break 2
13751   fi
13752 done
13753   done
13754 IFS=$as_save_IFS
13755
13756 fi
13757 fi
13758 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13759 if test -n "$DSYMUTIL"; then
13760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13761 $as_echo "$DSYMUTIL" >&6; }
13762 else
13763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764 $as_echo "no" >&6; }
13765 fi
13766
13767
13768 fi
13769 if test -z "$ac_cv_prog_DSYMUTIL"; then
13770   ac_ct_DSYMUTIL=$DSYMUTIL
13771   # Extract the first word of "dsymutil", so it can be a program name with args.
13772 set dummy dsymutil; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13774 $as_echo_n "checking for $ac_word... " >&6; }
13775 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13776   $as_echo_n "(cached) " >&6
13777 else
13778   if test -n "$ac_ct_DSYMUTIL"; then
13779   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13780 else
13781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782 for as_dir in $PATH
13783 do
13784   IFS=$as_save_IFS
13785   test -z "$as_dir" && as_dir=.
13786     for ac_exec_ext in '' $ac_executable_extensions; do
13787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13788     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13790     break 2
13791   fi
13792 done
13793   done
13794 IFS=$as_save_IFS
13795
13796 fi
13797 fi
13798 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13799 if test -n "$ac_ct_DSYMUTIL"; then
13800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13801 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13802 else
13803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804 $as_echo "no" >&6; }
13805 fi
13806
13807   if test "x$ac_ct_DSYMUTIL" = x; then
13808     DSYMUTIL=":"
13809   else
13810     case $cross_compiling:$ac_tool_warned in
13811 yes:)
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13814 ac_tool_warned=yes ;;
13815 esac
13816     DSYMUTIL=$ac_ct_DSYMUTIL
13817   fi
13818 else
13819   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13820 fi
13821
13822     if test -n "$ac_tool_prefix"; then
13823   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13824 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13826 $as_echo_n "checking for $ac_word... " >&6; }
13827 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13828   $as_echo_n "(cached) " >&6
13829 else
13830   if test -n "$NMEDIT"; then
13831   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13832 else
13833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834 for as_dir in $PATH
13835 do
13836   IFS=$as_save_IFS
13837   test -z "$as_dir" && as_dir=.
13838     for ac_exec_ext in '' $ac_executable_extensions; do
13839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13840     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13842     break 2
13843   fi
13844 done
13845   done
13846 IFS=$as_save_IFS
13847
13848 fi
13849 fi
13850 NMEDIT=$ac_cv_prog_NMEDIT
13851 if test -n "$NMEDIT"; then
13852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13853 $as_echo "$NMEDIT" >&6; }
13854 else
13855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13856 $as_echo "no" >&6; }
13857 fi
13858
13859
13860 fi
13861 if test -z "$ac_cv_prog_NMEDIT"; then
13862   ac_ct_NMEDIT=$NMEDIT
13863   # Extract the first word of "nmedit", so it can be a program name with args.
13864 set dummy nmedit; ac_word=$2
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13866 $as_echo_n "checking for $ac_word... " >&6; }
13867 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13868   $as_echo_n "(cached) " >&6
13869 else
13870   if test -n "$ac_ct_NMEDIT"; then
13871   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13872 else
13873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13874 for as_dir in $PATH
13875 do
13876   IFS=$as_save_IFS
13877   test -z "$as_dir" && as_dir=.
13878     for ac_exec_ext in '' $ac_executable_extensions; do
13879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13880     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13882     break 2
13883   fi
13884 done
13885   done
13886 IFS=$as_save_IFS
13887
13888 fi
13889 fi
13890 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13891 if test -n "$ac_ct_NMEDIT"; then
13892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13893 $as_echo "$ac_ct_NMEDIT" >&6; }
13894 else
13895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896 $as_echo "no" >&6; }
13897 fi
13898
13899   if test "x$ac_ct_NMEDIT" = x; then
13900     NMEDIT=":"
13901   else
13902     case $cross_compiling:$ac_tool_warned in
13903 yes:)
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13906 ac_tool_warned=yes ;;
13907 esac
13908     NMEDIT=$ac_ct_NMEDIT
13909   fi
13910 else
13911   NMEDIT="$ac_cv_prog_NMEDIT"
13912 fi
13913
13914     if test -n "$ac_tool_prefix"; then
13915   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13916 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13918 $as_echo_n "checking for $ac_word... " >&6; }
13919 if test "${ac_cv_prog_LIPO+set}" = set; then :
13920   $as_echo_n "(cached) " >&6
13921 else
13922   if test -n "$LIPO"; then
13923   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13924 else
13925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $PATH
13927 do
13928   IFS=$as_save_IFS
13929   test -z "$as_dir" && as_dir=.
13930     for ac_exec_ext in '' $ac_executable_extensions; do
13931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13932     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13934     break 2
13935   fi
13936 done
13937   done
13938 IFS=$as_save_IFS
13939
13940 fi
13941 fi
13942 LIPO=$ac_cv_prog_LIPO
13943 if test -n "$LIPO"; then
13944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13945 $as_echo "$LIPO" >&6; }
13946 else
13947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13948 $as_echo "no" >&6; }
13949 fi
13950
13951
13952 fi
13953 if test -z "$ac_cv_prog_LIPO"; then
13954   ac_ct_LIPO=$LIPO
13955   # Extract the first word of "lipo", so it can be a program name with args.
13956 set dummy lipo; ac_word=$2
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13958 $as_echo_n "checking for $ac_word... " >&6; }
13959 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13960   $as_echo_n "(cached) " >&6
13961 else
13962   if test -n "$ac_ct_LIPO"; then
13963   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13964 else
13965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13966 for as_dir in $PATH
13967 do
13968   IFS=$as_save_IFS
13969   test -z "$as_dir" && as_dir=.
13970     for ac_exec_ext in '' $ac_executable_extensions; do
13971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13972     ac_cv_prog_ac_ct_LIPO="lipo"
13973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13974     break 2
13975   fi
13976 done
13977   done
13978 IFS=$as_save_IFS
13979
13980 fi
13981 fi
13982 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13983 if test -n "$ac_ct_LIPO"; then
13984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13985 $as_echo "$ac_ct_LIPO" >&6; }
13986 else
13987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13988 $as_echo "no" >&6; }
13989 fi
13990
13991   if test "x$ac_ct_LIPO" = x; then
13992     LIPO=":"
13993   else
13994     case $cross_compiling:$ac_tool_warned in
13995 yes:)
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13998 ac_tool_warned=yes ;;
13999 esac
14000     LIPO=$ac_ct_LIPO
14001   fi
14002 else
14003   LIPO="$ac_cv_prog_LIPO"
14004 fi
14005
14006     if test -n "$ac_tool_prefix"; then
14007   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14008 set dummy ${ac_tool_prefix}otool; ac_word=$2
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14010 $as_echo_n "checking for $ac_word... " >&6; }
14011 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14012   $as_echo_n "(cached) " >&6
14013 else
14014   if test -n "$OTOOL"; then
14015   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14016 else
14017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018 for as_dir in $PATH
14019 do
14020   IFS=$as_save_IFS
14021   test -z "$as_dir" && as_dir=.
14022     for ac_exec_ext in '' $ac_executable_extensions; do
14023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14024     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14026     break 2
14027   fi
14028 done
14029   done
14030 IFS=$as_save_IFS
14031
14032 fi
14033 fi
14034 OTOOL=$ac_cv_prog_OTOOL
14035 if test -n "$OTOOL"; then
14036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14037 $as_echo "$OTOOL" >&6; }
14038 else
14039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 $as_echo "no" >&6; }
14041 fi
14042
14043
14044 fi
14045 if test -z "$ac_cv_prog_OTOOL"; then
14046   ac_ct_OTOOL=$OTOOL
14047   # Extract the first word of "otool", so it can be a program name with args.
14048 set dummy otool; ac_word=$2
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14050 $as_echo_n "checking for $ac_word... " >&6; }
14051 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14052   $as_echo_n "(cached) " >&6
14053 else
14054   if test -n "$ac_ct_OTOOL"; then
14055   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14056 else
14057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058 for as_dir in $PATH
14059 do
14060   IFS=$as_save_IFS
14061   test -z "$as_dir" && as_dir=.
14062     for ac_exec_ext in '' $ac_executable_extensions; do
14063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14064     ac_cv_prog_ac_ct_OTOOL="otool"
14065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14066     break 2
14067   fi
14068 done
14069   done
14070 IFS=$as_save_IFS
14071
14072 fi
14073 fi
14074 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14075 if test -n "$ac_ct_OTOOL"; then
14076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14077 $as_echo "$ac_ct_OTOOL" >&6; }
14078 else
14079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 $as_echo "no" >&6; }
14081 fi
14082
14083   if test "x$ac_ct_OTOOL" = x; then
14084     OTOOL=":"
14085   else
14086     case $cross_compiling:$ac_tool_warned in
14087 yes:)
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14090 ac_tool_warned=yes ;;
14091 esac
14092     OTOOL=$ac_ct_OTOOL
14093   fi
14094 else
14095   OTOOL="$ac_cv_prog_OTOOL"
14096 fi
14097
14098     if test -n "$ac_tool_prefix"; then
14099   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14100 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14102 $as_echo_n "checking for $ac_word... " >&6; }
14103 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14104   $as_echo_n "(cached) " >&6
14105 else
14106   if test -n "$OTOOL64"; then
14107   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14108 else
14109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110 for as_dir in $PATH
14111 do
14112   IFS=$as_save_IFS
14113   test -z "$as_dir" && as_dir=.
14114     for ac_exec_ext in '' $ac_executable_extensions; do
14115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14116     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14118     break 2
14119   fi
14120 done
14121   done
14122 IFS=$as_save_IFS
14123
14124 fi
14125 fi
14126 OTOOL64=$ac_cv_prog_OTOOL64
14127 if test -n "$OTOOL64"; then
14128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14129 $as_echo "$OTOOL64" >&6; }
14130 else
14131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 $as_echo "no" >&6; }
14133 fi
14134
14135
14136 fi
14137 if test -z "$ac_cv_prog_OTOOL64"; then
14138   ac_ct_OTOOL64=$OTOOL64
14139   # Extract the first word of "otool64", so it can be a program name with args.
14140 set dummy otool64; ac_word=$2
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14142 $as_echo_n "checking for $ac_word... " >&6; }
14143 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14144   $as_echo_n "(cached) " >&6
14145 else
14146   if test -n "$ac_ct_OTOOL64"; then
14147   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14148 else
14149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14151 do
14152   IFS=$as_save_IFS
14153   test -z "$as_dir" && as_dir=.
14154     for ac_exec_ext in '' $ac_executable_extensions; do
14155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14156     ac_cv_prog_ac_ct_OTOOL64="otool64"
14157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14158     break 2
14159   fi
14160 done
14161   done
14162 IFS=$as_save_IFS
14163
14164 fi
14165 fi
14166 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14167 if test -n "$ac_ct_OTOOL64"; then
14168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14169 $as_echo "$ac_ct_OTOOL64" >&6; }
14170 else
14171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172 $as_echo "no" >&6; }
14173 fi
14174
14175   if test "x$ac_ct_OTOOL64" = x; then
14176     OTOOL64=":"
14177   else
14178     case $cross_compiling:$ac_tool_warned in
14179 yes:)
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14182 ac_tool_warned=yes ;;
14183 esac
14184     OTOOL64=$ac_ct_OTOOL64
14185   fi
14186 else
14187   OTOOL64="$ac_cv_prog_OTOOL64"
14188 fi
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14217 $as_echo_n "checking for -single_module linker flag... " >&6; }
14218 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14219   $as_echo_n "(cached) " >&6
14220 else
14221   lt_cv_apple_cc_single_mod=no
14222       if test -z "${LT_MULTI_MODULE}"; then
14223         # By default we will add the -single_module flag. You can override
14224         # by either setting the environment variable LT_MULTI_MODULE
14225         # non-empty at configure time, or by adding -multi_module to the
14226         # link flags.
14227         rm -rf libconftest.dylib*
14228         echo "int foo(void){return 1;}" > conftest.c
14229         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14230 -dynamiclib -Wl,-single_module conftest.c" >&5
14231         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14232           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14233         _lt_result=$?
14234         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14235           lt_cv_apple_cc_single_mod=yes
14236         else
14237           cat conftest.err >&5
14238         fi
14239         rm -rf libconftest.dylib*
14240         rm -f conftest.*
14241       fi
14242 fi
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14244 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14246 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14247 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14248   $as_echo_n "(cached) " >&6
14249 else
14250   lt_cv_ld_exported_symbols_list=no
14251       save_LDFLAGS=$LDFLAGS
14252       echo "_main" > conftest.sym
14253       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14254       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h.  */
14256
14257 int
14258 main ()
14259 {
14260
14261   ;
14262   return 0;
14263 }
14264 _ACEOF
14265 if ac_fn_c_try_link "$LINENO"; then :
14266   lt_cv_ld_exported_symbols_list=yes
14267 else
14268   lt_cv_ld_exported_symbols_list=no
14269 fi
14270 rm -f core conftest.err conftest.$ac_objext \
14271     conftest$ac_exeext conftest.$ac_ext
14272         LDFLAGS="$save_LDFLAGS"
14273
14274 fi
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14276 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14278 $as_echo_n "checking for -force_load linker flag... " >&6; }
14279 if test "${lt_cv_ld_force_load+set}" = set; then :
14280   $as_echo_n "(cached) " >&6
14281 else
14282   lt_cv_ld_force_load=no
14283       cat > conftest.c << _LT_EOF
14284 int forced_loaded() { return 2;}
14285 _LT_EOF
14286       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14287       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14288       echo "$AR cru libconftest.a conftest.o" >&5
14289       $AR cru libconftest.a conftest.o 2>&5
14290       cat > conftest.c << _LT_EOF
14291 int main() { return 0;}
14292 _LT_EOF
14293       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14294       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14295       _lt_result=$?
14296       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14297         lt_cv_ld_force_load=yes
14298       else
14299         cat conftest.err >&5
14300       fi
14301         rm -f conftest.err libconftest.a conftest conftest.c
14302         rm -rf conftest.dSYM
14303
14304 fi
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14306 $as_echo "$lt_cv_ld_force_load" >&6; }
14307     case $host_os in
14308     rhapsody* | darwin1.[012])
14309       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14310     darwin1.*)
14311       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14312     darwin*) # darwin 5.x on
14313       # if running on 10.5 or later, the deployment target defaults
14314       # to the OS version, if on x86, and 10.4, the deployment
14315       # target defaults to 10.4. Don't you love it?
14316       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14317         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14318           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14319         10.[012]*)
14320           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14321         10.*)
14322           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14323       esac
14324     ;;
14325   esac
14326     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14327       _lt_dar_single_mod='$single_module'
14328     fi
14329     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14330       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14331     else
14332       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14333     fi
14334     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14335       _lt_dsymutil='~$DSYMUTIL $lib || :'
14336     else
14337       _lt_dsymutil=
14338     fi
14339     ;;
14340   esac
14341
14342 for ac_header in dlfcn.h
14343 do :
14344   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14345 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14346   cat >>confdefs.h <<_ACEOF
14347 #define HAVE_DLFCN_H 1
14348 _ACEOF
14349
14350 fi
14351 done
14352
14353
14354
14355
14356
14357 # Set options
14358
14359
14360
14361         enable_dlopen=no
14362
14363
14364   enable_win32_dll=no
14365
14366
14367             # Check whether --enable-shared was given.
14368 if test "${enable_shared+set}" = set; then :
14369   enableval=$enable_shared; p=${PACKAGE-default}
14370     case $enableval in
14371     yes) enable_shared=yes ;;
14372     no) enable_shared=no ;;
14373     *)
14374       enable_shared=no
14375       # Look at the argument we got.  We use all the common list separators.
14376       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14377       for pkg in $enableval; do
14378         IFS="$lt_save_ifs"
14379         if test "X$pkg" = "X$p"; then
14380           enable_shared=yes
14381         fi
14382       done
14383       IFS="$lt_save_ifs"
14384       ;;
14385     esac
14386 else
14387   enable_shared=yes
14388 fi
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398   # Check whether --enable-static was given.
14399 if test "${enable_static+set}" = set; then :
14400   enableval=$enable_static; p=${PACKAGE-default}
14401     case $enableval in
14402     yes) enable_static=yes ;;
14403     no) enable_static=no ;;
14404     *)
14405      enable_static=no
14406       # Look at the argument we got.  We use all the common list separators.
14407       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14408       for pkg in $enableval; do
14409         IFS="$lt_save_ifs"
14410         if test "X$pkg" = "X$p"; then
14411           enable_static=yes
14412         fi
14413       done
14414       IFS="$lt_save_ifs"
14415       ;;
14416     esac
14417 else
14418   enable_static=yes
14419 fi
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430 # Check whether --with-pic was given.
14431 if test "${with_pic+set}" = set; then :
14432   withval=$with_pic; pic_mode="$withval"
14433 else
14434   pic_mode=default
14435 fi
14436
14437
14438 test -z "$pic_mode" && pic_mode=default
14439
14440
14441
14442
14443
14444
14445
14446   # Check whether --enable-fast-install was given.
14447 if test "${enable_fast_install+set}" = set; then :
14448   enableval=$enable_fast_install; p=${PACKAGE-default}
14449     case $enableval in
14450     yes) enable_fast_install=yes ;;
14451     no) enable_fast_install=no ;;
14452     *)
14453       enable_fast_install=no
14454       # Look at the argument we got.  We use all the common list separators.
14455       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14456       for pkg in $enableval; do
14457         IFS="$lt_save_ifs"
14458         if test "X$pkg" = "X$p"; then
14459           enable_fast_install=yes
14460         fi
14461       done
14462       IFS="$lt_save_ifs"
14463       ;;
14464     esac
14465 else
14466   enable_fast_install=yes
14467 fi
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479 # This can be used to rebuild libtool when needed
14480 LIBTOOL_DEPS="$ltmain"
14481
14482 # Always use our own libtool.
14483 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510 test -z "$LN_S" && LN_S="ln -s"
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525 if test -n "${ZSH_VERSION+set}" ; then
14526    setopt NO_GLOB_SUBST
14527 fi
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14530 $as_echo_n "checking for objdir... " >&6; }
14531 if test "${lt_cv_objdir+set}" = set; then :
14532   $as_echo_n "(cached) " >&6
14533 else
14534   rm -f .libs 2>/dev/null
14535 mkdir .libs 2>/dev/null
14536 if test -d .libs; then
14537   lt_cv_objdir=.libs
14538 else
14539   # MS-DOS does not allow filenames that begin with a dot.
14540   lt_cv_objdir=_libs
14541 fi
14542 rmdir .libs 2>/dev/null
14543 fi
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14545 $as_echo "$lt_cv_objdir" >&6; }
14546 objdir=$lt_cv_objdir
14547
14548
14549
14550
14551
14552 cat >>confdefs.h <<_ACEOF
14553 #define LT_OBJDIR "$lt_cv_objdir/"
14554 _ACEOF
14555
14556
14557
14558
14559 case $host_os in
14560 aix3*)
14561   # AIX sometimes has problems with the GCC collect2 program.  For some
14562   # reason, if we set the COLLECT_NAMES environment variable, the problems
14563   # vanish in a puff of smoke.
14564   if test "X${COLLECT_NAMES+set}" != Xset; then
14565     COLLECT_NAMES=
14566     export COLLECT_NAMES
14567   fi
14568   ;;
14569 esac
14570
14571 # Global variables:
14572 ofile=libtool
14573 can_build_shared=yes
14574
14575 # All known linkers require a `.a' archive for static linking (except MSVC,
14576 # which needs '.lib').
14577 libext=a
14578
14579 with_gnu_ld="$lt_cv_prog_gnu_ld"
14580
14581 old_CC="$CC"
14582 old_CFLAGS="$CFLAGS"
14583
14584 # Set sane defaults for various variables
14585 test -z "$CC" && CC=cc
14586 test -z "$LTCC" && LTCC=$CC
14587 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14588 test -z "$LD" && LD=ld
14589 test -z "$ac_objext" && ac_objext=o
14590
14591 for cc_temp in $compiler""; do
14592   case $cc_temp in
14593     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14594     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14595     \-*) ;;
14596     *) break;;
14597   esac
14598 done
14599 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14600
14601
14602 # Only perform the check for file, if the check method requires it
14603 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14604 case $deplibs_check_method in
14605 file_magic*)
14606   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14608 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14609 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14610   $as_echo_n "(cached) " >&6
14611 else
14612   case $MAGIC_CMD in
14613 [\\/*] |  ?:[\\/]*)
14614   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14615   ;;
14616 *)
14617   lt_save_MAGIC_CMD="$MAGIC_CMD"
14618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14619   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14620   for ac_dir in $ac_dummy; do
14621     IFS="$lt_save_ifs"
14622     test -z "$ac_dir" && ac_dir=.
14623     if test -f $ac_dir/${ac_tool_prefix}file; then
14624       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14625       if test -n "$file_magic_test_file"; then
14626         case $deplibs_check_method in
14627         "file_magic "*)
14628           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14629           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14630           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14631             $EGREP "$file_magic_regex" > /dev/null; then
14632             :
14633           else
14634             cat <<_LT_EOF 1>&2
14635
14636 *** Warning: the command libtool uses to detect shared libraries,
14637 *** $file_magic_cmd, produces output that libtool cannot recognize.
14638 *** The result is that libtool may fail to recognize shared libraries
14639 *** as such.  This will affect the creation of libtool libraries that
14640 *** depend on shared libraries, but programs linked with such libtool
14641 *** libraries will work regardless of this problem.  Nevertheless, you
14642 *** may want to report the problem to your system manager and/or to
14643 *** bug-libtool@gnu.org
14644
14645 _LT_EOF
14646           fi ;;
14647         esac
14648       fi
14649       break
14650     fi
14651   done
14652   IFS="$lt_save_ifs"
14653   MAGIC_CMD="$lt_save_MAGIC_CMD"
14654   ;;
14655 esac
14656 fi
14657
14658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14659 if test -n "$MAGIC_CMD"; then
14660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14661 $as_echo "$MAGIC_CMD" >&6; }
14662 else
14663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14664 $as_echo "no" >&6; }
14665 fi
14666
14667
14668
14669
14670
14671 if test -z "$lt_cv_path_MAGIC_CMD"; then
14672   if test -n "$ac_tool_prefix"; then
14673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14674 $as_echo_n "checking for file... " >&6; }
14675 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14676   $as_echo_n "(cached) " >&6
14677 else
14678   case $MAGIC_CMD in
14679 [\\/*] |  ?:[\\/]*)
14680   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14681   ;;
14682 *)
14683   lt_save_MAGIC_CMD="$MAGIC_CMD"
14684   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14685   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14686   for ac_dir in $ac_dummy; do
14687     IFS="$lt_save_ifs"
14688     test -z "$ac_dir" && ac_dir=.
14689     if test -f $ac_dir/file; then
14690       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14691       if test -n "$file_magic_test_file"; then
14692         case $deplibs_check_method in
14693         "file_magic "*)
14694           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14695           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14696           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14697             $EGREP "$file_magic_regex" > /dev/null; then
14698             :
14699           else
14700             cat <<_LT_EOF 1>&2
14701
14702 *** Warning: the command libtool uses to detect shared libraries,
14703 *** $file_magic_cmd, produces output that libtool cannot recognize.
14704 *** The result is that libtool may fail to recognize shared libraries
14705 *** as such.  This will affect the creation of libtool libraries that
14706 *** depend on shared libraries, but programs linked with such libtool
14707 *** libraries will work regardless of this problem.  Nevertheless, you
14708 *** may want to report the problem to your system manager and/or to
14709 *** bug-libtool@gnu.org
14710
14711 _LT_EOF
14712           fi ;;
14713         esac
14714       fi
14715       break
14716     fi
14717   done
14718   IFS="$lt_save_ifs"
14719   MAGIC_CMD="$lt_save_MAGIC_CMD"
14720   ;;
14721 esac
14722 fi
14723
14724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14725 if test -n "$MAGIC_CMD"; then
14726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14727 $as_echo "$MAGIC_CMD" >&6; }
14728 else
14729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730 $as_echo "no" >&6; }
14731 fi
14732
14733
14734   else
14735     MAGIC_CMD=:
14736   fi
14737 fi
14738
14739   fi
14740   ;;
14741 esac
14742
14743 # Use C for the default configuration in the libtool script
14744
14745 lt_save_CC="$CC"
14746 ac_ext=c
14747 ac_cpp='$CPP $CPPFLAGS'
14748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14751
14752
14753 # Source file extension for C test sources.
14754 ac_ext=c
14755
14756 # Object file extension for compiled C test sources.
14757 objext=o
14758 objext=$objext
14759
14760 # Code to be used in simple compile tests
14761 lt_simple_compile_test_code="int some_variable = 0;"
14762
14763 # Code to be used in simple link tests
14764 lt_simple_link_test_code='int main(){return(0);}'
14765
14766
14767
14768
14769
14770
14771
14772 # If no C compiler was specified, use CC.
14773 LTCC=${LTCC-"$CC"}
14774
14775 # If no C compiler flags were specified, use CFLAGS.
14776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14777
14778 # Allow CC to be a program name with arguments.
14779 compiler=$CC
14780
14781 # Save the default compiler, since it gets overwritten when the other
14782 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14783 compiler_DEFAULT=$CC
14784
14785 # save warnings/boilerplate of simple test code
14786 ac_outfile=conftest.$ac_objext
14787 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14788 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14789 _lt_compiler_boilerplate=`cat conftest.err`
14790 $RM conftest*
14791
14792 ac_outfile=conftest.$ac_objext
14793 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14794 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14795 _lt_linker_boilerplate=`cat conftest.err`
14796 $RM -r conftest*
14797
14798
14799 ## CAVEAT EMPTOR:
14800 ## There is no encapsulation within the following macros, do not change
14801 ## the running order or otherwise move them around unless you know exactly
14802 ## what you are doing...
14803 if test -n "$compiler"; then
14804
14805 lt_prog_compiler_no_builtin_flag=
14806
14807 if test "$GCC" = yes; then
14808   case $cc_basename in
14809   nvcc*)
14810     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14811   *)
14812     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14813   esac
14814
14815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14816 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14817 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14818   $as_echo_n "(cached) " >&6
14819 else
14820   lt_cv_prog_compiler_rtti_exceptions=no
14821    ac_outfile=conftest.$ac_objext
14822    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14823    lt_compiler_flag="-fno-rtti -fno-exceptions"
14824    # Insert the option either (1) after the last *FLAGS variable, or
14825    # (2) before a word containing "conftest.", or (3) at the end.
14826    # Note that $ac_compile itself does not contain backslashes and begins
14827    # with a dollar sign (not a hyphen), so the echo should work correctly.
14828    # The option is referenced via a variable to avoid confusing sed.
14829    lt_compile=`echo "$ac_compile" | $SED \
14830    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14831    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14832    -e 's:$: $lt_compiler_flag:'`
14833    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14834    (eval "$lt_compile" 2>conftest.err)
14835    ac_status=$?
14836    cat conftest.err >&5
14837    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838    if (exit $ac_status) && test -s "$ac_outfile"; then
14839      # The compiler can only warn and ignore the option if not recognized
14840      # So say no if there are warnings other than the usual output.
14841      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14842      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14843      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14844        lt_cv_prog_compiler_rtti_exceptions=yes
14845      fi
14846    fi
14847    $RM conftest*
14848
14849 fi
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14851 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14852
14853 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14854     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14855 else
14856     :
14857 fi
14858
14859 fi
14860
14861
14862
14863
14864
14865
14866   lt_prog_compiler_wl=
14867 lt_prog_compiler_pic=
14868 lt_prog_compiler_static=
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14871 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14872
14873   if test "$GCC" = yes; then
14874     lt_prog_compiler_wl='-Wl,'
14875     lt_prog_compiler_static='-static'
14876
14877     case $host_os in
14878       aix*)
14879       # All AIX code is PIC.
14880       if test "$host_cpu" = ia64; then
14881         # AIX 5 now supports IA64 processor
14882         lt_prog_compiler_static='-Bstatic'
14883       fi
14884       lt_prog_compiler_pic='-fPIC'
14885       ;;
14886
14887     amigaos*)
14888       case $host_cpu in
14889       powerpc)
14890             # see comment about AmigaOS4 .so support
14891             lt_prog_compiler_pic='-fPIC'
14892         ;;
14893       m68k)
14894             # FIXME: we need at least 68020 code to build shared libraries, but
14895             # adding the `-m68020' flag to GCC prevents building anything better,
14896             # like `-m68040'.
14897             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14898         ;;
14899       esac
14900       ;;
14901
14902     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14903       # PIC is the default for these OSes.
14904       ;;
14905
14906     mingw* | cygwin* | pw32* | os2* | cegcc*)
14907       # This hack is so that the source file can tell whether it is being
14908       # built for inclusion in a dll (and should export symbols for example).
14909       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14910       # (--disable-auto-import) libraries
14911       lt_prog_compiler_pic='-DDLL_EXPORT'
14912       ;;
14913
14914     darwin* | rhapsody*)
14915       # PIC is the default on this platform
14916       # Common symbols not allowed in MH_DYLIB files
14917       lt_prog_compiler_pic='-fno-common'
14918       ;;
14919
14920     haiku*)
14921       # PIC is the default for Haiku.
14922       # The "-static" flag exists, but is broken.
14923       lt_prog_compiler_static=
14924       ;;
14925
14926     hpux*)
14927       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14928       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14929       # sets the default TLS model and affects inlining.
14930       case $host_cpu in
14931       hppa*64*)
14932         # +Z the default
14933         ;;
14934       *)
14935         lt_prog_compiler_pic='-fPIC'
14936         ;;
14937       esac
14938       ;;
14939
14940     interix[3-9]*)
14941       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14942       # Instead, we relocate shared libraries at runtime.
14943       ;;
14944
14945     msdosdjgpp*)
14946       # Just because we use GCC doesn't mean we suddenly get shared libraries
14947       # on systems that don't support them.
14948       lt_prog_compiler_can_build_shared=no
14949       enable_shared=no
14950       ;;
14951
14952     *nto* | *qnx*)
14953       # QNX uses GNU C++, but need to define -shared option too, otherwise
14954       # it will coredump.
14955       lt_prog_compiler_pic='-fPIC -shared'
14956       ;;
14957
14958     sysv4*MP*)
14959       if test -d /usr/nec; then
14960         lt_prog_compiler_pic=-Kconform_pic
14961       fi
14962       ;;
14963
14964     *)
14965       lt_prog_compiler_pic='-fPIC'
14966       ;;
14967     esac
14968
14969     case $cc_basename in
14970     nvcc*) # Cuda Compiler Driver 2.2
14971       lt_prog_compiler_wl='-Xlinker '
14972       lt_prog_compiler_pic='-Xcompiler -fPIC'
14973       ;;
14974     esac
14975   else
14976     # PORTME Check for flag to pass linker flags through the system compiler.
14977     case $host_os in
14978     aix*)
14979       lt_prog_compiler_wl='-Wl,'
14980       if test "$host_cpu" = ia64; then
14981         # AIX 5 now supports IA64 processor
14982         lt_prog_compiler_static='-Bstatic'
14983       else
14984         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14985       fi
14986       ;;
14987
14988     mingw* | cygwin* | pw32* | os2* | cegcc*)
14989       # This hack is so that the source file can tell whether it is being
14990       # built for inclusion in a dll (and should export symbols for example).
14991       lt_prog_compiler_pic='-DDLL_EXPORT'
14992       ;;
14993
14994     hpux9* | hpux10* | hpux11*)
14995       lt_prog_compiler_wl='-Wl,'
14996       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14997       # not for PA HP-UX.
14998       case $host_cpu in
14999       hppa*64*|ia64*)
15000         # +Z the default
15001         ;;
15002       *)
15003         lt_prog_compiler_pic='+Z'
15004         ;;
15005       esac
15006       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15007       lt_prog_compiler_static='${wl}-a ${wl}archive'
15008       ;;
15009
15010     irix5* | irix6* | nonstopux*)
15011       lt_prog_compiler_wl='-Wl,'
15012       # PIC (with -KPIC) is the default.
15013       lt_prog_compiler_static='-non_shared'
15014       ;;
15015
15016     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15017       case $cc_basename in
15018       # old Intel for x86_64 which still supported -KPIC.
15019       ecc*)
15020         lt_prog_compiler_wl='-Wl,'
15021         lt_prog_compiler_pic='-KPIC'
15022         lt_prog_compiler_static='-static'
15023         ;;
15024       # icc used to be incompatible with GCC.
15025       # ICC 10 doesn't accept -KPIC any more.
15026       icc* | ifort*)
15027         lt_prog_compiler_wl='-Wl,'
15028         lt_prog_compiler_pic='-fPIC'
15029         lt_prog_compiler_static='-static'
15030         ;;
15031       # Lahey Fortran 8.1.
15032       lf95*)
15033         lt_prog_compiler_wl='-Wl,'
15034         lt_prog_compiler_pic='--shared'
15035         lt_prog_compiler_static='--static'
15036         ;;
15037       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15038         # Portland Group compilers (*not* the Pentium gcc compiler,
15039         # which looks to be a dead project)
15040         lt_prog_compiler_wl='-Wl,'
15041         lt_prog_compiler_pic='-fpic'
15042         lt_prog_compiler_static='-Bstatic'
15043         ;;
15044       ccc*)
15045         lt_prog_compiler_wl='-Wl,'
15046         # All Alpha code is PIC.
15047         lt_prog_compiler_static='-non_shared'
15048         ;;
15049       xl* | bgxl* | bgf* | mpixl*)
15050         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15051         lt_prog_compiler_wl='-Wl,'
15052         lt_prog_compiler_pic='-qpic'
15053         lt_prog_compiler_static='-qstaticlink'
15054         ;;
15055       *)
15056         case `$CC -V 2>&1 | sed 5q` in
15057         *Sun\ F* | *Sun*Fortran*)
15058           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15059           lt_prog_compiler_pic='-KPIC'
15060           lt_prog_compiler_static='-Bstatic'
15061           lt_prog_compiler_wl=''
15062           ;;
15063         *Sun\ C*)
15064           # Sun C 5.9
15065           lt_prog_compiler_pic='-KPIC'
15066           lt_prog_compiler_static='-Bstatic'
15067           lt_prog_compiler_wl='-Wl,'
15068           ;;
15069         esac
15070         ;;
15071       esac
15072       ;;
15073
15074     newsos6)
15075       lt_prog_compiler_pic='-KPIC'
15076       lt_prog_compiler_static='-Bstatic'
15077       ;;
15078
15079     *nto* | *qnx*)
15080       # QNX uses GNU C++, but need to define -shared option too, otherwise
15081       # it will coredump.
15082       lt_prog_compiler_pic='-fPIC -shared'
15083       ;;
15084
15085     osf3* | osf4* | osf5*)
15086       lt_prog_compiler_wl='-Wl,'
15087       # All OSF/1 code is PIC.
15088       lt_prog_compiler_static='-non_shared'
15089       ;;
15090
15091     rdos*)
15092       lt_prog_compiler_static='-non_shared'
15093       ;;
15094
15095     solaris*)
15096       lt_prog_compiler_pic='-KPIC'
15097       lt_prog_compiler_static='-Bstatic'
15098       case $cc_basename in
15099       f77* | f90* | f95*)
15100         lt_prog_compiler_wl='-Qoption ld ';;
15101       *)
15102         lt_prog_compiler_wl='-Wl,';;
15103       esac
15104       ;;
15105
15106     sunos4*)
15107       lt_prog_compiler_wl='-Qoption ld '
15108       lt_prog_compiler_pic='-PIC'
15109       lt_prog_compiler_static='-Bstatic'
15110       ;;
15111
15112     sysv4 | sysv4.2uw2* | sysv4.3*)
15113       lt_prog_compiler_wl='-Wl,'
15114       lt_prog_compiler_pic='-KPIC'
15115       lt_prog_compiler_static='-Bstatic'
15116       ;;
15117
15118     sysv4*MP*)
15119       if test -d /usr/nec ;then
15120         lt_prog_compiler_pic='-Kconform_pic'
15121         lt_prog_compiler_static='-Bstatic'
15122       fi
15123       ;;
15124
15125     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15126       lt_prog_compiler_wl='-Wl,'
15127       lt_prog_compiler_pic='-KPIC'
15128       lt_prog_compiler_static='-Bstatic'
15129       ;;
15130
15131     unicos*)
15132       lt_prog_compiler_wl='-Wl,'
15133       lt_prog_compiler_can_build_shared=no
15134       ;;
15135
15136     uts4*)
15137       lt_prog_compiler_pic='-pic'
15138       lt_prog_compiler_static='-Bstatic'
15139       ;;
15140
15141     *)
15142       lt_prog_compiler_can_build_shared=no
15143       ;;
15144     esac
15145   fi
15146
15147 case $host_os in
15148   # For platforms which do not support PIC, -DPIC is meaningless:
15149   *djgpp*)
15150     lt_prog_compiler_pic=
15151     ;;
15152   *)
15153     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15154     ;;
15155 esac
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15157 $as_echo "$lt_prog_compiler_pic" >&6; }
15158
15159
15160
15161
15162
15163
15164 #
15165 # Check to make sure the PIC flag actually works.
15166 #
15167 if test -n "$lt_prog_compiler_pic"; then
15168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15169 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15170 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15171   $as_echo_n "(cached) " >&6
15172 else
15173   lt_cv_prog_compiler_pic_works=no
15174    ac_outfile=conftest.$ac_objext
15175    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15176    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15177    # Insert the option either (1) after the last *FLAGS variable, or
15178    # (2) before a word containing "conftest.", or (3) at the end.
15179    # Note that $ac_compile itself does not contain backslashes and begins
15180    # with a dollar sign (not a hyphen), so the echo should work correctly.
15181    # The option is referenced via a variable to avoid confusing sed.
15182    lt_compile=`echo "$ac_compile" | $SED \
15183    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15184    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15185    -e 's:$: $lt_compiler_flag:'`
15186    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15187    (eval "$lt_compile" 2>conftest.err)
15188    ac_status=$?
15189    cat conftest.err >&5
15190    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191    if (exit $ac_status) && test -s "$ac_outfile"; then
15192      # The compiler can only warn and ignore the option if not recognized
15193      # So say no if there are warnings other than the usual output.
15194      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15195      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15196      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15197        lt_cv_prog_compiler_pic_works=yes
15198      fi
15199    fi
15200    $RM conftest*
15201
15202 fi
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15204 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15205
15206 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15207     case $lt_prog_compiler_pic in
15208      "" | " "*) ;;
15209      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15210      esac
15211 else
15212     lt_prog_compiler_pic=
15213      lt_prog_compiler_can_build_shared=no
15214 fi
15215
15216 fi
15217
15218
15219
15220
15221
15222
15223 #
15224 # Check to make sure the static flag actually works.
15225 #
15226 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15228 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15229 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15230   $as_echo_n "(cached) " >&6
15231 else
15232   lt_cv_prog_compiler_static_works=no
15233    save_LDFLAGS="$LDFLAGS"
15234    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15235    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15236    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15237      # The linker can only warn and ignore the option if not recognized
15238      # So say no if there are warnings
15239      if test -s conftest.err; then
15240        # Append any errors to the config.log.
15241        cat conftest.err 1>&5
15242        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15243        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15244        if diff conftest.exp conftest.er2 >/dev/null; then
15245          lt_cv_prog_compiler_static_works=yes
15246        fi
15247      else
15248        lt_cv_prog_compiler_static_works=yes
15249      fi
15250    fi
15251    $RM -r conftest*
15252    LDFLAGS="$save_LDFLAGS"
15253
15254 fi
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15256 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15257
15258 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15259     :
15260 else
15261     lt_prog_compiler_static=
15262 fi
15263
15264
15265
15266
15267
15268
15269
15270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15271 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15272 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15273   $as_echo_n "(cached) " >&6
15274 else
15275   lt_cv_prog_compiler_c_o=no
15276    $RM -r conftest 2>/dev/null
15277    mkdir conftest
15278    cd conftest
15279    mkdir out
15280    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15281
15282    lt_compiler_flag="-o out/conftest2.$ac_objext"
15283    # Insert the option either (1) after the last *FLAGS variable, or
15284    # (2) before a word containing "conftest.", or (3) at the end.
15285    # Note that $ac_compile itself does not contain backslashes and begins
15286    # with a dollar sign (not a hyphen), so the echo should work correctly.
15287    lt_compile=`echo "$ac_compile" | $SED \
15288    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15289    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15290    -e 's:$: $lt_compiler_flag:'`
15291    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15292    (eval "$lt_compile" 2>out/conftest.err)
15293    ac_status=$?
15294    cat out/conftest.err >&5
15295    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15297    then
15298      # The compiler can only warn and ignore the option if not recognized
15299      # So say no if there are warnings
15300      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15301      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15302      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15303        lt_cv_prog_compiler_c_o=yes
15304      fi
15305    fi
15306    chmod u+w . 2>&5
15307    $RM conftest*
15308    # SGI C++ compiler will create directory out/ii_files/ for
15309    # template instantiation
15310    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15311    $RM out/* && rmdir out
15312    cd ..
15313    $RM -r conftest
15314    $RM conftest*
15315
15316 fi
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15318 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15319
15320
15321
15322
15323
15324
15325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15326 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15327 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15328   $as_echo_n "(cached) " >&6
15329 else
15330   lt_cv_prog_compiler_c_o=no
15331    $RM -r conftest 2>/dev/null
15332    mkdir conftest
15333    cd conftest
15334    mkdir out
15335    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15336
15337    lt_compiler_flag="-o out/conftest2.$ac_objext"
15338    # Insert the option either (1) after the last *FLAGS variable, or
15339    # (2) before a word containing "conftest.", or (3) at the end.
15340    # Note that $ac_compile itself does not contain backslashes and begins
15341    # with a dollar sign (not a hyphen), so the echo should work correctly.
15342    lt_compile=`echo "$ac_compile" | $SED \
15343    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15345    -e 's:$: $lt_compiler_flag:'`
15346    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15347    (eval "$lt_compile" 2>out/conftest.err)
15348    ac_status=$?
15349    cat out/conftest.err >&5
15350    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15352    then
15353      # The compiler can only warn and ignore the option if not recognized
15354      # So say no if there are warnings
15355      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15356      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15357      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15358        lt_cv_prog_compiler_c_o=yes
15359      fi
15360    fi
15361    chmod u+w . 2>&5
15362    $RM conftest*
15363    # SGI C++ compiler will create directory out/ii_files/ for
15364    # template instantiation
15365    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15366    $RM out/* && rmdir out
15367    cd ..
15368    $RM -r conftest
15369    $RM conftest*
15370
15371 fi
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15373 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15374
15375
15376
15377
15378 hard_links="nottested"
15379 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15380   # do not overwrite the value of need_locks provided by the user
15381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15382 $as_echo_n "checking if we can lock with hard links... " >&6; }
15383   hard_links=yes
15384   $RM conftest*
15385   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15386   touch conftest.a
15387   ln conftest.a conftest.b 2>&5 || hard_links=no
15388   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15390 $as_echo "$hard_links" >&6; }
15391   if test "$hard_links" = no; then
15392     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15393 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15394     need_locks=warn
15395   fi
15396 else
15397   need_locks=no
15398 fi
15399
15400
15401
15402
15403
15404
15405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15406 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15407
15408   runpath_var=
15409   allow_undefined_flag=
15410   always_export_symbols=no
15411   archive_cmds=
15412   archive_expsym_cmds=
15413   compiler_needs_object=no
15414   enable_shared_with_static_runtimes=no
15415   export_dynamic_flag_spec=
15416   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15417   hardcode_automatic=no
15418   hardcode_direct=no
15419   hardcode_direct_absolute=no
15420   hardcode_libdir_flag_spec=
15421   hardcode_libdir_flag_spec_ld=
15422   hardcode_libdir_separator=
15423   hardcode_minus_L=no
15424   hardcode_shlibpath_var=unsupported
15425   inherit_rpath=no
15426   link_all_deplibs=unknown
15427   module_cmds=
15428   module_expsym_cmds=
15429   old_archive_from_new_cmds=
15430   old_archive_from_expsyms_cmds=
15431   thread_safe_flag_spec=
15432   whole_archive_flag_spec=
15433   # include_expsyms should be a list of space-separated symbols to be *always*
15434   # included in the symbol list
15435   include_expsyms=
15436   # exclude_expsyms can be an extended regexp of symbols to exclude
15437   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15438   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15439   # as well as any symbol that contains `d'.
15440   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15441   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15442   # platforms (ab)use it in PIC code, but their linkers get confused if
15443   # the symbol is explicitly referenced.  Since portable code cannot
15444   # rely on this symbol name, it's probably fine to never include it in
15445   # preloaded symbol tables.
15446   # Exclude shared library initialization/finalization symbols.
15447   extract_expsyms_cmds=
15448
15449   case $host_os in
15450   cygwin* | mingw* | pw32* | cegcc*)
15451     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15452     # When not using gcc, we currently assume that we are using
15453     # Microsoft Visual C++.
15454     if test "$GCC" != yes; then
15455       with_gnu_ld=no
15456     fi
15457     ;;
15458   interix*)
15459     # we just hope/assume this is gcc and not c89 (= MSVC++)
15460     with_gnu_ld=yes
15461     ;;
15462   openbsd*)
15463     with_gnu_ld=no
15464     ;;
15465   esac
15466
15467   ld_shlibs=yes
15468
15469   # On some targets, GNU ld is compatible enough with the native linker
15470   # that we're better off using the native interface for both.
15471   lt_use_gnu_ld_interface=no
15472   if test "$with_gnu_ld" = yes; then
15473     case $host_os in
15474       aix*)
15475         # The AIX port of GNU ld has always aspired to compatibility
15476         # with the native linker.  However, as the warning in the GNU ld
15477         # block says, versions before 2.19.5* couldn't really create working
15478         # shared libraries, regardless of the interface used.
15479         case `$LD -v 2>&1` in
15480           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15481           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15482           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15483           *)
15484             lt_use_gnu_ld_interface=yes
15485             ;;
15486         esac
15487         ;;
15488       *)
15489         lt_use_gnu_ld_interface=yes
15490         ;;
15491     esac
15492   fi
15493
15494   if test "$lt_use_gnu_ld_interface" = yes; then
15495     # If archive_cmds runs LD, not CC, wlarc should be empty
15496     wlarc='${wl}'
15497
15498     # Set some defaults for GNU ld with shared library support. These
15499     # are reset later if shared libraries are not supported. Putting them
15500     # here allows them to be overridden if necessary.
15501     runpath_var=LD_RUN_PATH
15502     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15503     export_dynamic_flag_spec='${wl}--export-dynamic'
15504     # ancient GNU ld didn't support --whole-archive et. al.
15505     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15506       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15507     else
15508       whole_archive_flag_spec=
15509     fi
15510     supports_anon_versioning=no
15511     case `$LD -v 2>&1` in
15512       *GNU\ gold*) supports_anon_versioning=yes ;;
15513       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15514       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15515       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15516       *\ 2.11.*) ;; # other 2.11 versions
15517       *) supports_anon_versioning=yes ;;
15518     esac
15519
15520     # See if GNU ld supports shared libraries.
15521     case $host_os in
15522     aix[3-9]*)
15523       # On AIX/PPC, the GNU linker is very broken
15524       if test "$host_cpu" != ia64; then
15525         ld_shlibs=no
15526         cat <<_LT_EOF 1>&2
15527
15528 *** Warning: the GNU linker, at least up to release 2.19, is reported
15529 *** to be unable to reliably create shared libraries on AIX.
15530 *** Therefore, libtool is disabling shared libraries support.  If you
15531 *** really care for shared libraries, you may want to install binutils
15532 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15533 *** You will then need to restart the configuration process.
15534
15535 _LT_EOF
15536       fi
15537       ;;
15538
15539     amigaos*)
15540       case $host_cpu in
15541       powerpc)
15542             # see comment about AmigaOS4 .so support
15543             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15544             archive_expsym_cmds=''
15545         ;;
15546       m68k)
15547             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)'
15548             hardcode_libdir_flag_spec='-L$libdir'
15549             hardcode_minus_L=yes
15550         ;;
15551       esac
15552       ;;
15553
15554     beos*)
15555       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15556         allow_undefined_flag=unsupported
15557         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15558         # support --undefined.  This deserves some investigation.  FIXME
15559         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15560       else
15561         ld_shlibs=no
15562       fi
15563       ;;
15564
15565     cygwin* | mingw* | pw32* | cegcc*)
15566       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15567       # as there is no search path for DLLs.
15568       hardcode_libdir_flag_spec='-L$libdir'
15569       export_dynamic_flag_spec='${wl}--export-all-symbols'
15570       allow_undefined_flag=unsupported
15571       always_export_symbols=no
15572       enable_shared_with_static_runtimes=yes
15573       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15574
15575       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15576         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15577         # If the export-symbols file already is a .def file (1st line
15578         # is EXPORTS), use it as is; otherwise, prepend...
15579         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15580           cp $export_symbols $output_objdir/$soname.def;
15581         else
15582           echo EXPORTS > $output_objdir/$soname.def;
15583           cat $export_symbols >> $output_objdir/$soname.def;
15584         fi~
15585         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15586       else
15587         ld_shlibs=no
15588       fi
15589       ;;
15590
15591     haiku*)
15592       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15593       link_all_deplibs=yes
15594       ;;
15595
15596     interix[3-9]*)
15597       hardcode_direct=no
15598       hardcode_shlibpath_var=no
15599       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15600       export_dynamic_flag_spec='${wl}-E'
15601       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15602       # Instead, shared libraries are loaded at an image base (0x10000000 by
15603       # default) and relocated if they conflict, which is a slow very memory
15604       # consuming and fragmenting process.  To avoid this, we pick a random,
15605       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15606       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15607       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15608       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'
15609       ;;
15610
15611     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15612       tmp_diet=no
15613       if test "$host_os" = linux-dietlibc; then
15614         case $cc_basename in
15615           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15616         esac
15617       fi
15618       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15619          && test "$tmp_diet" = no
15620       then
15621         tmp_addflag=
15622         tmp_sharedflag='-shared'
15623         case $cc_basename,$host_cpu in
15624         pgcc*)                          # Portland Group C compiler
15625           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'
15626           tmp_addflag=' $pic_flag'
15627           ;;
15628         pgf77* | pgf90* | pgf95* | pgfortran*)
15629                                         # Portland Group f77 and f90 compilers
15630           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'
15631           tmp_addflag=' $pic_flag -Mnomain' ;;
15632         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15633           tmp_addflag=' -i_dynamic' ;;
15634         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15635           tmp_addflag=' -i_dynamic -nofor_main' ;;
15636         ifc* | ifort*)                  # Intel Fortran compiler
15637           tmp_addflag=' -nofor_main' ;;
15638         lf95*)                          # Lahey Fortran 8.1
15639           whole_archive_flag_spec=
15640           tmp_sharedflag='--shared' ;;
15641         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15642           tmp_sharedflag='-qmkshrobj'
15643           tmp_addflag= ;;
15644         nvcc*)  # Cuda Compiler Driver 2.2
15645           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'
15646           compiler_needs_object=yes
15647           ;;
15648         esac
15649         case `$CC -V 2>&1 | sed 5q` in
15650         *Sun\ C*)                       # Sun C 5.9
15651           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'
15652           compiler_needs_object=yes
15653           tmp_sharedflag='-G' ;;
15654         *Sun\ F*)                       # Sun Fortran 8.3
15655           tmp_sharedflag='-G' ;;
15656         esac
15657         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15658
15659         if test "x$supports_anon_versioning" = xyes; then
15660           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15661             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15662             echo "local: *; };" >> $output_objdir/$libname.ver~
15663             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15664         fi
15665
15666         case $cc_basename in
15667         xlf* | bgf* | bgxlf* | mpixlf*)
15668           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15669           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15670           hardcode_libdir_flag_spec=
15671           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15672           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15673           if test "x$supports_anon_versioning" = xyes; then
15674             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15675               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15676               echo "local: *; };" >> $output_objdir/$libname.ver~
15677               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15678           fi
15679           ;;
15680         esac
15681       else
15682         ld_shlibs=no
15683       fi
15684       ;;
15685
15686     netbsd*)
15687       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15688         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15689         wlarc=
15690       else
15691         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15692         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15693       fi
15694       ;;
15695
15696     solaris*)
15697       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15698         ld_shlibs=no
15699         cat <<_LT_EOF 1>&2
15700
15701 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15702 *** create shared libraries on Solaris systems.  Therefore, libtool
15703 *** is disabling shared libraries support.  We urge you to upgrade GNU
15704 *** binutils to release 2.9.1 or newer.  Another option is to modify
15705 *** your PATH or compiler configuration so that the native linker is
15706 *** used, and then restart.
15707
15708 _LT_EOF
15709       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15710         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15711         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15712       else
15713         ld_shlibs=no
15714       fi
15715       ;;
15716
15717     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15718       case `$LD -v 2>&1` in
15719         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15720         ld_shlibs=no
15721         cat <<_LT_EOF 1>&2
15722
15723 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15724 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15725 *** is disabling shared libraries support.  We urge you to upgrade GNU
15726 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15727 *** your PATH or compiler configuration so that the native linker is
15728 *** used, and then restart.
15729
15730 _LT_EOF
15731         ;;
15732         *)
15733           # For security reasons, it is highly recommended that you always
15734           # use absolute paths for naming shared libraries, and exclude the
15735           # DT_RUNPATH tag from executables and libraries.  But doing so
15736           # requires that you compile everything twice, which is a pain.
15737           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15738             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15739             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15740             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15741           else
15742             ld_shlibs=no
15743           fi
15744         ;;
15745       esac
15746       ;;
15747
15748     sunos4*)
15749       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15750       wlarc=
15751       hardcode_direct=yes
15752       hardcode_shlibpath_var=no
15753       ;;
15754
15755     *)
15756       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15757         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15758         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15759       else
15760         ld_shlibs=no
15761       fi
15762       ;;
15763     esac
15764
15765     if test "$ld_shlibs" = no; then
15766       runpath_var=
15767       hardcode_libdir_flag_spec=
15768       export_dynamic_flag_spec=
15769       whole_archive_flag_spec=
15770     fi
15771   else
15772     # PORTME fill in a description of your system's linker (not GNU ld)
15773     case $host_os in
15774     aix3*)
15775       allow_undefined_flag=unsupported
15776       always_export_symbols=yes
15777       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'
15778       # Note: this linker hardcodes the directories in LIBPATH if there
15779       # are no directories specified by -L.
15780       hardcode_minus_L=yes
15781       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15782         # Neither direct hardcoding nor static linking is supported with a
15783         # broken collect2.
15784         hardcode_direct=unsupported
15785       fi
15786       ;;
15787
15788     aix[4-9]*)
15789       if test "$host_cpu" = ia64; then
15790         # On IA64, the linker does run time linking by default, so we don't
15791         # have to do anything special.
15792         aix_use_runtimelinking=no
15793         exp_sym_flag='-Bexport'
15794         no_entry_flag=""
15795       else
15796         # If we're using GNU nm, then we don't want the "-C" option.
15797         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15798         # Also, AIX nm treats weak defined symbols like other global
15799         # defined symbols, whereas GNU nm marks them as "W".
15800         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15801           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'
15802         else
15803           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'
15804         fi
15805         aix_use_runtimelinking=no
15806
15807         # Test if we are trying to use run time linking or normal
15808         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15809         # need to do runtime linking.
15810         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15811           for ld_flag in $LDFLAGS; do
15812           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15813             aix_use_runtimelinking=yes
15814             break
15815           fi
15816           done
15817           ;;
15818         esac
15819
15820         exp_sym_flag='-bexport'
15821         no_entry_flag='-bnoentry'
15822       fi
15823
15824       # When large executables or shared objects are built, AIX ld can
15825       # have problems creating the table of contents.  If linking a library
15826       # or program results in "error TOC overflow" add -mminimal-toc to
15827       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15828       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15829
15830       archive_cmds=''
15831       hardcode_direct=yes
15832       hardcode_direct_absolute=yes
15833       hardcode_libdir_separator=':'
15834       link_all_deplibs=yes
15835       file_list_spec='${wl}-f,'
15836
15837       if test "$GCC" = yes; then
15838         case $host_os in aix4.[012]|aix4.[012].*)
15839         # We only want to do this on AIX 4.2 and lower, the check
15840         # below for broken collect2 doesn't work under 4.3+
15841           collect2name=`${CC} -print-prog-name=collect2`
15842           if test -f "$collect2name" &&
15843            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15844           then
15845           # We have reworked collect2
15846           :
15847           else
15848           # We have old collect2
15849           hardcode_direct=unsupported
15850           # It fails to find uninstalled libraries when the uninstalled
15851           # path is not listed in the libpath.  Setting hardcode_minus_L
15852           # to unsupported forces relinking
15853           hardcode_minus_L=yes
15854           hardcode_libdir_flag_spec='-L$libdir'
15855           hardcode_libdir_separator=
15856           fi
15857           ;;
15858         esac
15859         shared_flag='-shared'
15860         if test "$aix_use_runtimelinking" = yes; then
15861           shared_flag="$shared_flag "'${wl}-G'
15862         fi
15863       else
15864         # not using gcc
15865         if test "$host_cpu" = ia64; then
15866         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15867         # chokes on -Wl,-G. The following line is correct:
15868           shared_flag='-G'
15869         else
15870           if test "$aix_use_runtimelinking" = yes; then
15871             shared_flag='${wl}-G'
15872           else
15873             shared_flag='${wl}-bM:SRE'
15874           fi
15875         fi
15876       fi
15877
15878       export_dynamic_flag_spec='${wl}-bexpall'
15879       # It seems that -bexpall does not export symbols beginning with
15880       # underscore (_), so it is better to generate a list of symbols to export.
15881       always_export_symbols=yes
15882       if test "$aix_use_runtimelinking" = yes; then
15883         # Warning - without using the other runtime loading flags (-brtl),
15884         # -berok will link without error, but may produce a broken library.
15885         allow_undefined_flag='-berok'
15886         # Determine the default libpath from the value encoded in an
15887         # empty executable.
15888         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h.  */
15890
15891 int
15892 main ()
15893 {
15894
15895   ;
15896   return 0;
15897 }
15898 _ACEOF
15899 if ac_fn_c_try_link "$LINENO"; then :
15900
15901 lt_aix_libpath_sed='
15902     /Import File Strings/,/^$/ {
15903         /^0/ {
15904             s/^0  *\(.*\)$/\1/
15905             p
15906         }
15907     }'
15908 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15909 # Check for a 64-bit object if we didn't find anything.
15910 if test -z "$aix_libpath"; then
15911   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15912 fi
15913 fi
15914 rm -f core conftest.err conftest.$ac_objext \
15915     conftest$ac_exeext conftest.$ac_ext
15916 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15917
15918         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15919         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"
15920       else
15921         if test "$host_cpu" = ia64; then
15922           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15923           allow_undefined_flag="-z nodefs"
15924           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"
15925         else
15926          # Determine the default libpath from the value encoded in an
15927          # empty executable.
15928          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h.  */
15930
15931 int
15932 main ()
15933 {
15934
15935   ;
15936   return 0;
15937 }
15938 _ACEOF
15939 if ac_fn_c_try_link "$LINENO"; then :
15940
15941 lt_aix_libpath_sed='
15942     /Import File Strings/,/^$/ {
15943         /^0/ {
15944             s/^0  *\(.*\)$/\1/
15945             p
15946         }
15947     }'
15948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15949 # Check for a 64-bit object if we didn't find anything.
15950 if test -z "$aix_libpath"; then
15951   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15952 fi
15953 fi
15954 rm -f core conftest.err conftest.$ac_objext \
15955     conftest$ac_exeext conftest.$ac_ext
15956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15957
15958          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15959           # Warning - without using the other run time loading flags,
15960           # -berok will link without error, but may produce a broken library.
15961           no_undefined_flag=' ${wl}-bernotok'
15962           allow_undefined_flag=' ${wl}-berok'
15963           if test "$with_gnu_ld" = yes; then
15964             # We only use this code for GNU lds that support --whole-archive.
15965             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15966           else
15967             # Exported symbols can be pulled into shared objects from archives
15968             whole_archive_flag_spec='$convenience'
15969           fi
15970           archive_cmds_need_lc=yes
15971           # This is similar to how AIX traditionally builds its shared libraries.
15972           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'
15973         fi
15974       fi
15975       ;;
15976
15977     amigaos*)
15978       case $host_cpu in
15979       powerpc)
15980             # see comment about AmigaOS4 .so support
15981             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15982             archive_expsym_cmds=''
15983         ;;
15984       m68k)
15985             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)'
15986             hardcode_libdir_flag_spec='-L$libdir'
15987             hardcode_minus_L=yes
15988         ;;
15989       esac
15990       ;;
15991
15992     bsdi[45]*)
15993       export_dynamic_flag_spec=-rdynamic
15994       ;;
15995
15996     cygwin* | mingw* | pw32* | cegcc*)
15997       # When not using gcc, we currently assume that we are using
15998       # Microsoft Visual C++.
15999       # hardcode_libdir_flag_spec is actually meaningless, as there is
16000       # no search path for DLLs.
16001       hardcode_libdir_flag_spec=' '
16002       allow_undefined_flag=unsupported
16003       # Tell ltmain to make .lib files, not .a files.
16004       libext=lib
16005       # Tell ltmain to make .dll files, not .so files.
16006       shrext_cmds=".dll"
16007       # FIXME: Setting linknames here is a bad hack.
16008       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16009       # The linker will automatically build a .lib file if we build a DLL.
16010       old_archive_from_new_cmds='true'
16011       # FIXME: Should let the user specify the lib program.
16012       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16013       fix_srcfile_path='`cygpath -w "$srcfile"`'
16014       enable_shared_with_static_runtimes=yes
16015       ;;
16016
16017     darwin* | rhapsody*)
16018
16019
16020   archive_cmds_need_lc=no
16021   hardcode_direct=no
16022   hardcode_automatic=yes
16023   hardcode_shlibpath_var=unsupported
16024   if test "$lt_cv_ld_force_load" = "yes"; then
16025     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\"`'
16026   else
16027     whole_archive_flag_spec=''
16028   fi
16029   link_all_deplibs=yes
16030   allow_undefined_flag="$_lt_dar_allow_undefined"
16031   case $cc_basename in
16032      ifort*) _lt_dar_can_shared=yes ;;
16033      *) _lt_dar_can_shared=$GCC ;;
16034   esac
16035   if test "$_lt_dar_can_shared" = "yes"; then
16036     output_verbose_link_cmd=func_echo_all
16037     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16038     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16039     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}"
16040     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}"
16041
16042   else
16043   ld_shlibs=no
16044   fi
16045
16046       ;;
16047
16048     dgux*)
16049       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16050       hardcode_libdir_flag_spec='-L$libdir'
16051       hardcode_shlibpath_var=no
16052       ;;
16053
16054     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16055     # support.  Future versions do this automatically, but an explicit c++rt0.o
16056     # does not break anything, and helps significantly (at the cost of a little
16057     # extra space).
16058     freebsd2.2*)
16059       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16060       hardcode_libdir_flag_spec='-R$libdir'
16061       hardcode_direct=yes
16062       hardcode_shlibpath_var=no
16063       ;;
16064
16065     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16066     freebsd2.*)
16067       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16068       hardcode_direct=yes
16069       hardcode_minus_L=yes
16070       hardcode_shlibpath_var=no
16071       ;;
16072
16073     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16074     freebsd* | dragonfly*)
16075       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16076       hardcode_libdir_flag_spec='-R$libdir'
16077       hardcode_direct=yes
16078       hardcode_shlibpath_var=no
16079       ;;
16080
16081     hpux9*)
16082       if test "$GCC" = yes; then
16083         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'
16084       else
16085         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'
16086       fi
16087       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16088       hardcode_libdir_separator=:
16089       hardcode_direct=yes
16090
16091       # hardcode_minus_L: Not really in the search PATH,
16092       # but as the default location of the library.
16093       hardcode_minus_L=yes
16094       export_dynamic_flag_spec='${wl}-E'
16095       ;;
16096
16097     hpux10*)
16098       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16099         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16100       else
16101         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16102       fi
16103       if test "$with_gnu_ld" = no; then
16104         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16105         hardcode_libdir_flag_spec_ld='+b $libdir'
16106         hardcode_libdir_separator=:
16107         hardcode_direct=yes
16108         hardcode_direct_absolute=yes
16109         export_dynamic_flag_spec='${wl}-E'
16110         # hardcode_minus_L: Not really in the search PATH,
16111         # but as the default location of the library.
16112         hardcode_minus_L=yes
16113       fi
16114       ;;
16115
16116     hpux11*)
16117       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16118         case $host_cpu in
16119         hppa*64*)
16120           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16121           ;;
16122         ia64*)
16123           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16124           ;;
16125         *)
16126           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16127           ;;
16128         esac
16129       else
16130         case $host_cpu in
16131         hppa*64*)
16132           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16133           ;;
16134         ia64*)
16135           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16136           ;;
16137         *)
16138
16139           # Older versions of the 11.00 compiler do not understand -b yet
16140           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16141           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16142 $as_echo_n "checking if $CC understands -b... " >&6; }
16143 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16144   $as_echo_n "(cached) " >&6
16145 else
16146   lt_cv_prog_compiler__b=no
16147    save_LDFLAGS="$LDFLAGS"
16148    LDFLAGS="$LDFLAGS -b"
16149    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16150    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16151      # The linker can only warn and ignore the option if not recognized
16152      # So say no if there are warnings
16153      if test -s conftest.err; then
16154        # Append any errors to the config.log.
16155        cat conftest.err 1>&5
16156        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16157        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16158        if diff conftest.exp conftest.er2 >/dev/null; then
16159          lt_cv_prog_compiler__b=yes
16160        fi
16161      else
16162        lt_cv_prog_compiler__b=yes
16163      fi
16164    fi
16165    $RM -r conftest*
16166    LDFLAGS="$save_LDFLAGS"
16167
16168 fi
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16170 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16171
16172 if test x"$lt_cv_prog_compiler__b" = xyes; then
16173     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16174 else
16175     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16176 fi
16177
16178           ;;
16179         esac
16180       fi
16181       if test "$with_gnu_ld" = no; then
16182         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16183         hardcode_libdir_separator=:
16184
16185         case $host_cpu in
16186         hppa*64*|ia64*)
16187           hardcode_direct=no
16188           hardcode_shlibpath_var=no
16189           ;;
16190         *)
16191           hardcode_direct=yes
16192           hardcode_direct_absolute=yes
16193           export_dynamic_flag_spec='${wl}-E'
16194
16195           # hardcode_minus_L: Not really in the search PATH,
16196           # but as the default location of the library.
16197           hardcode_minus_L=yes
16198           ;;
16199         esac
16200       fi
16201       ;;
16202
16203     irix5* | irix6* | nonstopux*)
16204       if test "$GCC" = yes; then
16205         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'
16206         # Try to use the -exported_symbol ld option, if it does not
16207         # work, assume that -exports_file does not work either and
16208         # implicitly export all symbols.
16209         save_LDFLAGS="$LDFLAGS"
16210         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16211         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h.  */
16213 int foo(void) {}
16214 _ACEOF
16215 if ac_fn_c_try_link "$LINENO"; then :
16216   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'
16217
16218 fi
16219 rm -f core conftest.err conftest.$ac_objext \
16220     conftest$ac_exeext conftest.$ac_ext
16221         LDFLAGS="$save_LDFLAGS"
16222       else
16223         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'
16224         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'
16225       fi
16226       archive_cmds_need_lc='no'
16227       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16228       hardcode_libdir_separator=:
16229       inherit_rpath=yes
16230       link_all_deplibs=yes
16231       ;;
16232
16233     netbsd*)
16234       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16235         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16236       else
16237         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16238       fi
16239       hardcode_libdir_flag_spec='-R$libdir'
16240       hardcode_direct=yes
16241       hardcode_shlibpath_var=no
16242       ;;
16243
16244     newsos6)
16245       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16246       hardcode_direct=yes
16247       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16248       hardcode_libdir_separator=:
16249       hardcode_shlibpath_var=no
16250       ;;
16251
16252     *nto* | *qnx*)
16253       ;;
16254
16255     openbsd*)
16256       if test -f /usr/libexec/ld.so; then
16257         hardcode_direct=yes
16258         hardcode_shlibpath_var=no
16259         hardcode_direct_absolute=yes
16260         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16261           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16262           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16263           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16264           export_dynamic_flag_spec='${wl}-E'
16265         else
16266           case $host_os in
16267            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16268              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16269              hardcode_libdir_flag_spec='-R$libdir'
16270              ;;
16271            *)
16272              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16273              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16274              ;;
16275           esac
16276         fi
16277       else
16278         ld_shlibs=no
16279       fi
16280       ;;
16281
16282     os2*)
16283       hardcode_libdir_flag_spec='-L$libdir'
16284       hardcode_minus_L=yes
16285       allow_undefined_flag=unsupported
16286       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'
16287       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16288       ;;
16289
16290     osf3*)
16291       if test "$GCC" = yes; then
16292         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16293         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'
16294       else
16295         allow_undefined_flag=' -expect_unresolved \*'
16296         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'
16297       fi
16298       archive_cmds_need_lc='no'
16299       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16300       hardcode_libdir_separator=:
16301       ;;
16302
16303     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16304       if test "$GCC" = yes; then
16305         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16306         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'
16307         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16308       else
16309         allow_undefined_flag=' -expect_unresolved \*'
16310         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'
16311         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~
16312         $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'
16313
16314         # Both c and cxx compiler support -rpath directly
16315         hardcode_libdir_flag_spec='-rpath $libdir'
16316       fi
16317       archive_cmds_need_lc='no'
16318       hardcode_libdir_separator=:
16319       ;;
16320
16321     solaris*)
16322       no_undefined_flag=' -z defs'
16323       if test "$GCC" = yes; then
16324         wlarc='${wl}'
16325         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16326         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16327           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16328       else
16329         case `$CC -V 2>&1` in
16330         *"Compilers 5.0"*)
16331           wlarc=''
16332           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16333           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16334           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16335           ;;
16336         *)
16337           wlarc='${wl}'
16338           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16339           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16340           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16341           ;;
16342         esac
16343       fi
16344       hardcode_libdir_flag_spec='-R$libdir'
16345       hardcode_shlibpath_var=no
16346       case $host_os in
16347       solaris2.[0-5] | solaris2.[0-5].*) ;;
16348       *)
16349         # The compiler driver will combine and reorder linker options,
16350         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16351         # but is careful enough not to reorder.
16352         # Supported since Solaris 2.6 (maybe 2.5.1?)
16353         if test "$GCC" = yes; then
16354           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16355         else
16356           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16357         fi
16358         ;;
16359       esac
16360       link_all_deplibs=yes
16361       ;;
16362
16363     sunos4*)
16364       if test "x$host_vendor" = xsequent; then
16365         # Use $CC to link under sequent, because it throws in some extra .o
16366         # files that make .init and .fini sections work.
16367         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16368       else
16369         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16370       fi
16371       hardcode_libdir_flag_spec='-L$libdir'
16372       hardcode_direct=yes
16373       hardcode_minus_L=yes
16374       hardcode_shlibpath_var=no
16375       ;;
16376
16377     sysv4)
16378       case $host_vendor in
16379         sni)
16380           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16381           hardcode_direct=yes # is this really true???
16382         ;;
16383         siemens)
16384           ## LD is ld it makes a PLAMLIB
16385           ## CC just makes a GrossModule.
16386           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16387           reload_cmds='$CC -r -o $output$reload_objs'
16388           hardcode_direct=no
16389         ;;
16390         motorola)
16391           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16392           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16393         ;;
16394       esac
16395       runpath_var='LD_RUN_PATH'
16396       hardcode_shlibpath_var=no
16397       ;;
16398
16399     sysv4.3*)
16400       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16401       hardcode_shlibpath_var=no
16402       export_dynamic_flag_spec='-Bexport'
16403       ;;
16404
16405     sysv4*MP*)
16406       if test -d /usr/nec; then
16407         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16408         hardcode_shlibpath_var=no
16409         runpath_var=LD_RUN_PATH
16410         hardcode_runpath_var=yes
16411         ld_shlibs=yes
16412       fi
16413       ;;
16414
16415     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16416       no_undefined_flag='${wl}-z,text'
16417       archive_cmds_need_lc=no
16418       hardcode_shlibpath_var=no
16419       runpath_var='LD_RUN_PATH'
16420
16421       if test "$GCC" = yes; then
16422         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16423         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16424       else
16425         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16426         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16427       fi
16428       ;;
16429
16430     sysv5* | sco3.2v5* | sco5v6*)
16431       # Note: We can NOT use -z defs as we might desire, because we do not
16432       # link with -lc, and that would cause any symbols used from libc to
16433       # always be unresolved, which means just about no library would
16434       # ever link correctly.  If we're not using GNU ld we use -z text
16435       # though, which does catch some bad symbols but isn't as heavy-handed
16436       # as -z defs.
16437       no_undefined_flag='${wl}-z,text'
16438       allow_undefined_flag='${wl}-z,nodefs'
16439       archive_cmds_need_lc=no
16440       hardcode_shlibpath_var=no
16441       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16442       hardcode_libdir_separator=':'
16443       link_all_deplibs=yes
16444       export_dynamic_flag_spec='${wl}-Bexport'
16445       runpath_var='LD_RUN_PATH'
16446
16447       if test "$GCC" = yes; then
16448         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16449         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16450       else
16451         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16452         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16453       fi
16454       ;;
16455
16456     uts4*)
16457       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458       hardcode_libdir_flag_spec='-L$libdir'
16459       hardcode_shlibpath_var=no
16460       ;;
16461
16462     *)
16463       ld_shlibs=no
16464       ;;
16465     esac
16466
16467     if test x$host_vendor = xsni; then
16468       case $host in
16469       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16470         export_dynamic_flag_spec='${wl}-Blargedynsym'
16471         ;;
16472       esac
16473     fi
16474   fi
16475
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16477 $as_echo "$ld_shlibs" >&6; }
16478 test "$ld_shlibs" = no && can_build_shared=no
16479
16480 with_gnu_ld=$with_gnu_ld
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496 #
16497 # Do we need to explicitly link libc?
16498 #
16499 case "x$archive_cmds_need_lc" in
16500 x|xyes)
16501   # Assume -lc should be added
16502   archive_cmds_need_lc=yes
16503
16504   if test "$enable_shared" = yes && test "$GCC" = yes; then
16505     case $archive_cmds in
16506     *'~'*)
16507       # FIXME: we may have to deal with multi-command sequences.
16508       ;;
16509     '$CC '*)
16510       # Test whether the compiler implicitly links with -lc since on some
16511       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16512       # to ld, don't add -lc before -lgcc.
16513       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16514 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16515 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16516   $as_echo_n "(cached) " >&6
16517 else
16518   $RM conftest*
16519         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16520
16521         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16522   (eval $ac_compile) 2>&5
16523   ac_status=$?
16524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16525   test $ac_status = 0; } 2>conftest.err; then
16526           soname=conftest
16527           lib=conftest
16528           libobjs=conftest.$ac_objext
16529           deplibs=
16530           wl=$lt_prog_compiler_wl
16531           pic_flag=$lt_prog_compiler_pic
16532           compiler_flags=-v
16533           linker_flags=-v
16534           verstring=
16535           output_objdir=.
16536           libname=conftest
16537           lt_save_allow_undefined_flag=$allow_undefined_flag
16538           allow_undefined_flag=
16539           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16540   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16541   ac_status=$?
16542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16543   test $ac_status = 0; }
16544           then
16545             lt_cv_archive_cmds_need_lc=no
16546           else
16547             lt_cv_archive_cmds_need_lc=yes
16548           fi
16549           allow_undefined_flag=$lt_save_allow_undefined_flag
16550         else
16551           cat conftest.err 1>&5
16552         fi
16553         $RM conftest*
16554
16555 fi
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16557 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16558       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16559       ;;
16560     esac
16561   fi
16562   ;;
16563 esac
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16722 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16723
16724 if test "$GCC" = yes; then
16725   case $host_os in
16726     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16727     *) lt_awk_arg="/^libraries:/" ;;
16728   esac
16729   case $host_os in
16730     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16731     *) lt_sed_strip_eq="s,=/,/,g" ;;
16732   esac
16733   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16734   case $lt_search_path_spec in
16735   *\;*)
16736     # if the path contains ";" then we assume it to be the separator
16737     # otherwise default to the standard path separator (i.e. ":") - it is
16738     # assumed that no part of a normal pathname contains ";" but that should
16739     # okay in the real world where ";" in dirpaths is itself problematic.
16740     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16741     ;;
16742   *)
16743     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16744     ;;
16745   esac
16746   # Ok, now we have the path, separated by spaces, we can step through it
16747   # and add multilib dir if necessary.
16748   lt_tmp_lt_search_path_spec=
16749   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16750   for lt_sys_path in $lt_search_path_spec; do
16751     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16752       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16753     else
16754       test -d "$lt_sys_path" && \
16755         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16756     fi
16757   done
16758   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16759 BEGIN {RS=" "; FS="/|\n";} {
16760   lt_foo="";
16761   lt_count=0;
16762   for (lt_i = NF; lt_i > 0; lt_i--) {
16763     if ($lt_i != "" && $lt_i != ".") {
16764       if ($lt_i == "..") {
16765         lt_count++;
16766       } else {
16767         if (lt_count == 0) {
16768           lt_foo="/" $lt_i lt_foo;
16769         } else {
16770           lt_count--;
16771         }
16772       }
16773     }
16774   }
16775   if (lt_foo != "") { lt_freq[lt_foo]++; }
16776   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16777 }'`
16778   # AWK program above erroneously prepends '/' to C:/dos/paths
16779   # for these hosts.
16780   case $host_os in
16781     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16782       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16783   esac
16784   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16785 else
16786   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16787 fi
16788 library_names_spec=
16789 libname_spec='lib$name'
16790 soname_spec=
16791 shrext_cmds=".so"
16792 postinstall_cmds=
16793 postuninstall_cmds=
16794 finish_cmds=
16795 finish_eval=
16796 shlibpath_var=
16797 shlibpath_overrides_runpath=unknown
16798 version_type=none
16799 dynamic_linker="$host_os ld.so"
16800 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16801 need_lib_prefix=unknown
16802 hardcode_into_libs=no
16803
16804 # when you set need_version to no, make sure it does not cause -set_version
16805 # flags to be left without arguments
16806 need_version=unknown
16807
16808 case $host_os in
16809 aix3*)
16810   version_type=linux
16811   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16812   shlibpath_var=LIBPATH
16813
16814   # AIX 3 has no versioning support, so we append a major version to the name.
16815   soname_spec='${libname}${release}${shared_ext}$major'
16816   ;;
16817
16818 aix[4-9]*)
16819   version_type=linux
16820   need_lib_prefix=no
16821   need_version=no
16822   hardcode_into_libs=yes
16823   if test "$host_cpu" = ia64; then
16824     # AIX 5 supports IA64
16825     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16826     shlibpath_var=LD_LIBRARY_PATH
16827   else
16828     # With GCC up to 2.95.x, collect2 would create an import file
16829     # for dependence libraries.  The import file would start with
16830     # the line `#! .'.  This would cause the generated library to
16831     # depend on `.', always an invalid library.  This was fixed in
16832     # development snapshots of GCC prior to 3.0.
16833     case $host_os in
16834       aix4 | aix4.[01] | aix4.[01].*)
16835       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16836            echo ' yes '
16837            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16838         :
16839       else
16840         can_build_shared=no
16841       fi
16842       ;;
16843     esac
16844     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16845     # soname into executable. Probably we can add versioning support to
16846     # collect2, so additional links can be useful in future.
16847     if test "$aix_use_runtimelinking" = yes; then
16848       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16849       # instead of lib<name>.a to let people know that these are not
16850       # typical AIX shared libraries.
16851       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852     else
16853       # We preserve .a as extension for shared libraries through AIX4.2
16854       # and later when we are not doing run time linking.
16855       library_names_spec='${libname}${release}.a $libname.a'
16856       soname_spec='${libname}${release}${shared_ext}$major'
16857     fi
16858     shlibpath_var=LIBPATH
16859   fi
16860   ;;
16861
16862 amigaos*)
16863   case $host_cpu in
16864   powerpc)
16865     # Since July 2007 AmigaOS4 officially supports .so libraries.
16866     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868     ;;
16869   m68k)
16870     library_names_spec='$libname.ixlibrary $libname.a'
16871     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16872     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'
16873     ;;
16874   esac
16875   ;;
16876
16877 beos*)
16878   library_names_spec='${libname}${shared_ext}'
16879   dynamic_linker="$host_os ld.so"
16880   shlibpath_var=LIBRARY_PATH
16881   ;;
16882
16883 bsdi[45]*)
16884   version_type=linux
16885   need_version=no
16886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16887   soname_spec='${libname}${release}${shared_ext}$major'
16888   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16889   shlibpath_var=LD_LIBRARY_PATH
16890   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16891   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16892   # the default ld.so.conf also contains /usr/contrib/lib and
16893   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16894   # libtool to hard-code these into programs
16895   ;;
16896
16897 cygwin* | mingw* | pw32* | cegcc*)
16898   version_type=windows
16899   shrext_cmds=".dll"
16900   need_version=no
16901   need_lib_prefix=no
16902
16903   case $GCC,$host_os in
16904   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16905     library_names_spec='$libname.dll.a'
16906     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16907     postinstall_cmds='base_file=`basename \${file}`~
16908       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16909       dldir=$destdir/`dirname \$dlpath`~
16910       test -d \$dldir || mkdir -p \$dldir~
16911       $install_prog $dir/$dlname \$dldir/$dlname~
16912       chmod a+x \$dldir/$dlname~
16913       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16914         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16915       fi'
16916     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16917       dlpath=$dir/\$dldll~
16918        $RM \$dlpath'
16919     shlibpath_overrides_runpath=yes
16920
16921     case $host_os in
16922     cygwin*)
16923       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16924       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16925
16926       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16927       ;;
16928     mingw* | cegcc*)
16929       # MinGW DLLs use traditional 'lib' prefix
16930       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16931       ;;
16932     pw32*)
16933       # pw32 DLLs use 'pw' prefix rather than 'lib'
16934       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16935       ;;
16936     esac
16937     ;;
16938
16939   *)
16940     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16941     ;;
16942   esac
16943   dynamic_linker='Win32 ld.exe'
16944   # FIXME: first we should search . and the directory the executable is in
16945   shlibpath_var=PATH
16946   ;;
16947
16948 darwin* | rhapsody*)
16949   dynamic_linker="$host_os dyld"
16950   version_type=darwin
16951   need_lib_prefix=no
16952   need_version=no
16953   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16954   soname_spec='${libname}${release}${major}$shared_ext'
16955   shlibpath_overrides_runpath=yes
16956   shlibpath_var=DYLD_LIBRARY_PATH
16957   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16958
16959   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16960   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16961   ;;
16962
16963 dgux*)
16964   version_type=linux
16965   need_lib_prefix=no
16966   need_version=no
16967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16968   soname_spec='${libname}${release}${shared_ext}$major'
16969   shlibpath_var=LD_LIBRARY_PATH
16970   ;;
16971
16972 freebsd* | dragonfly*)
16973   # DragonFly does not have aout.  When/if they implement a new
16974   # versioning mechanism, adjust this.
16975   if test -x /usr/bin/objformat; then
16976     objformat=`/usr/bin/objformat`
16977   else
16978     case $host_os in
16979     freebsd[23].*) objformat=aout ;;
16980     *) objformat=elf ;;
16981     esac
16982   fi
16983   version_type=freebsd-$objformat
16984   case $version_type in
16985     freebsd-elf*)
16986       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16987       need_version=no
16988       need_lib_prefix=no
16989       ;;
16990     freebsd-*)
16991       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16992       need_version=yes
16993       ;;
16994   esac
16995   shlibpath_var=LD_LIBRARY_PATH
16996   case $host_os in
16997   freebsd2.*)
16998     shlibpath_overrides_runpath=yes
16999     ;;
17000   freebsd3.[01]* | freebsdelf3.[01]*)
17001     shlibpath_overrides_runpath=yes
17002     hardcode_into_libs=yes
17003     ;;
17004   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17005   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17006     shlibpath_overrides_runpath=no
17007     hardcode_into_libs=yes
17008     ;;
17009   *) # from 4.6 on, and DragonFly
17010     shlibpath_overrides_runpath=yes
17011     hardcode_into_libs=yes
17012     ;;
17013   esac
17014   ;;
17015
17016 gnu*)
17017   version_type=linux
17018   need_lib_prefix=no
17019   need_version=no
17020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17021   soname_spec='${libname}${release}${shared_ext}$major'
17022   shlibpath_var=LD_LIBRARY_PATH
17023   hardcode_into_libs=yes
17024   ;;
17025
17026 haiku*)
17027   version_type=linux
17028   need_lib_prefix=no
17029   need_version=no
17030   dynamic_linker="$host_os runtime_loader"
17031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17032   soname_spec='${libname}${release}${shared_ext}$major'
17033   shlibpath_var=LIBRARY_PATH
17034   shlibpath_overrides_runpath=yes
17035   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17036   hardcode_into_libs=yes
17037   ;;
17038
17039 hpux9* | hpux10* | hpux11*)
17040   # Give a soname corresponding to the major version so that dld.sl refuses to
17041   # link against other versions.
17042   version_type=sunos
17043   need_lib_prefix=no
17044   need_version=no
17045   case $host_cpu in
17046   ia64*)
17047     shrext_cmds='.so'
17048     hardcode_into_libs=yes
17049     dynamic_linker="$host_os dld.so"
17050     shlibpath_var=LD_LIBRARY_PATH
17051     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17053     soname_spec='${libname}${release}${shared_ext}$major'
17054     if test "X$HPUX_IA64_MODE" = X32; then
17055       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17056     else
17057       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17058     fi
17059     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17060     ;;
17061   hppa*64*)
17062     shrext_cmds='.sl'
17063     hardcode_into_libs=yes
17064     dynamic_linker="$host_os dld.sl"
17065     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17066     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17067     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17068     soname_spec='${libname}${release}${shared_ext}$major'
17069     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17070     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17071     ;;
17072   *)
17073     shrext_cmds='.sl'
17074     dynamic_linker="$host_os dld.sl"
17075     shlibpath_var=SHLIB_PATH
17076     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17078     soname_spec='${libname}${release}${shared_ext}$major'
17079     ;;
17080   esac
17081   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17082   postinstall_cmds='chmod 555 $lib'
17083   # or fails outright, so override atomically:
17084   install_override_mode=555
17085   ;;
17086
17087 interix[3-9]*)
17088   version_type=linux
17089   need_lib_prefix=no
17090   need_version=no
17091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17092   soname_spec='${libname}${release}${shared_ext}$major'
17093   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17094   shlibpath_var=LD_LIBRARY_PATH
17095   shlibpath_overrides_runpath=no
17096   hardcode_into_libs=yes
17097   ;;
17098
17099 irix5* | irix6* | nonstopux*)
17100   case $host_os in
17101     nonstopux*) version_type=nonstopux ;;
17102     *)
17103         if test "$lt_cv_prog_gnu_ld" = yes; then
17104                 version_type=linux
17105         else
17106                 version_type=irix
17107         fi ;;
17108   esac
17109   need_lib_prefix=no
17110   need_version=no
17111   soname_spec='${libname}${release}${shared_ext}$major'
17112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17113   case $host_os in
17114   irix5* | nonstopux*)
17115     libsuff= shlibsuff=
17116     ;;
17117   *)
17118     case $LD in # libtool.m4 will add one of these switches to LD
17119     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17120       libsuff= shlibsuff= libmagic=32-bit;;
17121     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17122       libsuff=32 shlibsuff=N32 libmagic=N32;;
17123     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17124       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17125     *) libsuff= shlibsuff= libmagic=never-match;;
17126     esac
17127     ;;
17128   esac
17129   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17130   shlibpath_overrides_runpath=no
17131   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17132   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17133   hardcode_into_libs=yes
17134   ;;
17135
17136 # No shared lib support for Linux oldld, aout, or coff.
17137 linux*oldld* | linux*aout* | linux*coff*)
17138   dynamic_linker=no
17139   ;;
17140
17141 # This must be Linux ELF.
17142 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17143   version_type=linux
17144   need_lib_prefix=no
17145   need_version=no
17146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17147   soname_spec='${libname}${release}${shared_ext}$major'
17148   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17149   shlibpath_var=LD_LIBRARY_PATH
17150   shlibpath_overrides_runpath=no
17151
17152   # Some binutils ld are patched to set DT_RUNPATH
17153   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17154   $as_echo_n "(cached) " >&6
17155 else
17156   lt_cv_shlibpath_overrides_runpath=no
17157     save_LDFLAGS=$LDFLAGS
17158     save_libdir=$libdir
17159     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17160          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17161     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h.  */
17163
17164 int
17165 main ()
17166 {
17167
17168   ;
17169   return 0;
17170 }
17171 _ACEOF
17172 if ac_fn_c_try_link "$LINENO"; then :
17173   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17174   lt_cv_shlibpath_overrides_runpath=yes
17175 fi
17176 fi
17177 rm -f core conftest.err conftest.$ac_objext \
17178     conftest$ac_exeext conftest.$ac_ext
17179     LDFLAGS=$save_LDFLAGS
17180     libdir=$save_libdir
17181
17182 fi
17183
17184   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17185
17186   # This implies no fast_install, which is unacceptable.
17187   # Some rework will be needed to allow for fast_install
17188   # before this can be enabled.
17189   hardcode_into_libs=yes
17190
17191   # Append ld.so.conf contents to the search path
17192   if test -f /etc/ld.so.conf; then
17193     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' ' '`
17194     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17195   fi
17196
17197   # We used to test for /lib/ld.so.1 and disable shared libraries on
17198   # powerpc, because MkLinux only supported shared libraries with the
17199   # GNU dynamic linker.  Since this was broken with cross compilers,
17200   # most powerpc-linux boxes support dynamic linking these days and
17201   # people can always --disable-shared, the test was removed, and we
17202   # assume the GNU/Linux dynamic linker is in use.
17203   dynamic_linker='GNU/Linux ld.so'
17204   ;;
17205
17206 netbsd*)
17207   version_type=sunos
17208   need_lib_prefix=no
17209   need_version=no
17210   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17212     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17213     dynamic_linker='NetBSD (a.out) ld.so'
17214   else
17215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17216     soname_spec='${libname}${release}${shared_ext}$major'
17217     dynamic_linker='NetBSD ld.elf_so'
17218   fi
17219   shlibpath_var=LD_LIBRARY_PATH
17220   shlibpath_overrides_runpath=yes
17221   hardcode_into_libs=yes
17222   ;;
17223
17224 newsos6)
17225   version_type=linux
17226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227   shlibpath_var=LD_LIBRARY_PATH
17228   shlibpath_overrides_runpath=yes
17229   ;;
17230
17231 *nto* | *qnx*)
17232   version_type=qnx
17233   need_lib_prefix=no
17234   need_version=no
17235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236   soname_spec='${libname}${release}${shared_ext}$major'
17237   shlibpath_var=LD_LIBRARY_PATH
17238   shlibpath_overrides_runpath=no
17239   hardcode_into_libs=yes
17240   dynamic_linker='ldqnx.so'
17241   ;;
17242
17243 openbsd*)
17244   version_type=sunos
17245   sys_lib_dlsearch_path_spec="/usr/lib"
17246   need_lib_prefix=no
17247   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17248   case $host_os in
17249     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17250     *)                          need_version=no  ;;
17251   esac
17252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17253   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17254   shlibpath_var=LD_LIBRARY_PATH
17255   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17256     case $host_os in
17257       openbsd2.[89] | openbsd2.[89].*)
17258         shlibpath_overrides_runpath=no
17259         ;;
17260       *)
17261         shlibpath_overrides_runpath=yes
17262         ;;
17263       esac
17264   else
17265     shlibpath_overrides_runpath=yes
17266   fi
17267   ;;
17268
17269 os2*)
17270   libname_spec='$name'
17271   shrext_cmds=".dll"
17272   need_lib_prefix=no
17273   library_names_spec='$libname${shared_ext} $libname.a'
17274   dynamic_linker='OS/2 ld.exe'
17275   shlibpath_var=LIBPATH
17276   ;;
17277
17278 osf3* | osf4* | osf5*)
17279   version_type=osf
17280   need_lib_prefix=no
17281   need_version=no
17282   soname_spec='${libname}${release}${shared_ext}$major'
17283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284   shlibpath_var=LD_LIBRARY_PATH
17285   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17286   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17287   ;;
17288
17289 rdos*)
17290   dynamic_linker=no
17291   ;;
17292
17293 solaris*)
17294   version_type=linux
17295   need_lib_prefix=no
17296   need_version=no
17297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298   soname_spec='${libname}${release}${shared_ext}$major'
17299   shlibpath_var=LD_LIBRARY_PATH
17300   shlibpath_overrides_runpath=yes
17301   hardcode_into_libs=yes
17302   # ldd complains unless libraries are executable
17303   postinstall_cmds='chmod +x $lib'
17304   ;;
17305
17306 sunos4*)
17307   version_type=sunos
17308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17309   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17310   shlibpath_var=LD_LIBRARY_PATH
17311   shlibpath_overrides_runpath=yes
17312   if test "$with_gnu_ld" = yes; then
17313     need_lib_prefix=no
17314   fi
17315   need_version=yes
17316   ;;
17317
17318 sysv4 | sysv4.3*)
17319   version_type=linux
17320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321   soname_spec='${libname}${release}${shared_ext}$major'
17322   shlibpath_var=LD_LIBRARY_PATH
17323   case $host_vendor in
17324     sni)
17325       shlibpath_overrides_runpath=no
17326       need_lib_prefix=no
17327       runpath_var=LD_RUN_PATH
17328       ;;
17329     siemens)
17330       need_lib_prefix=no
17331       ;;
17332     motorola)
17333       need_lib_prefix=no
17334       need_version=no
17335       shlibpath_overrides_runpath=no
17336       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17337       ;;
17338   esac
17339   ;;
17340
17341 sysv4*MP*)
17342   if test -d /usr/nec ;then
17343     version_type=linux
17344     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17345     soname_spec='$libname${shared_ext}.$major'
17346     shlibpath_var=LD_LIBRARY_PATH
17347   fi
17348   ;;
17349
17350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17351   version_type=freebsd-elf
17352   need_lib_prefix=no
17353   need_version=no
17354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17355   soname_spec='${libname}${release}${shared_ext}$major'
17356   shlibpath_var=LD_LIBRARY_PATH
17357   shlibpath_overrides_runpath=yes
17358   hardcode_into_libs=yes
17359   if test "$with_gnu_ld" = yes; then
17360     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17361   else
17362     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17363     case $host_os in
17364       sco3.2v5*)
17365         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17366         ;;
17367     esac
17368   fi
17369   sys_lib_dlsearch_path_spec='/usr/lib'
17370   ;;
17371
17372 tpf*)
17373   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17374   version_type=linux
17375   need_lib_prefix=no
17376   need_version=no
17377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378   shlibpath_var=LD_LIBRARY_PATH
17379   shlibpath_overrides_runpath=no
17380   hardcode_into_libs=yes
17381   ;;
17382
17383 uts4*)
17384   version_type=linux
17385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386   soname_spec='${libname}${release}${shared_ext}$major'
17387   shlibpath_var=LD_LIBRARY_PATH
17388   ;;
17389
17390 *)
17391   dynamic_linker=no
17392   ;;
17393 esac
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17395 $as_echo "$dynamic_linker" >&6; }
17396 test "$dynamic_linker" = no && can_build_shared=no
17397
17398 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17399 if test "$GCC" = yes; then
17400   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17401 fi
17402
17403 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17404   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17405 fi
17406 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17407   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17408 fi
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17502 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17503 hardcode_action=
17504 if test -n "$hardcode_libdir_flag_spec" ||
17505    test -n "$runpath_var" ||
17506    test "X$hardcode_automatic" = "Xyes" ; then
17507
17508   # We can hardcode non-existent directories.
17509   if test "$hardcode_direct" != no &&
17510      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17511      # have to relink, otherwise we might link with an installed library
17512      # when we should be linking with a yet-to-be-installed one
17513      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17514      test "$hardcode_minus_L" != no; then
17515     # Linking always hardcodes the temporary library directory.
17516     hardcode_action=relink
17517   else
17518     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17519     hardcode_action=immediate
17520   fi
17521 else
17522   # We cannot hardcode anything, or else we can only hardcode existing
17523   # directories.
17524   hardcode_action=unsupported
17525 fi
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17527 $as_echo "$hardcode_action" >&6; }
17528
17529 if test "$hardcode_action" = relink ||
17530    test "$inherit_rpath" = yes; then
17531   # Fast installation is not supported
17532   enable_fast_install=no
17533 elif test "$shlibpath_overrides_runpath" = yes ||
17534      test "$enable_shared" = no; then
17535   # Fast installation is not necessary
17536   enable_fast_install=needless
17537 fi
17538
17539
17540
17541
17542
17543
17544   if test "x$enable_dlopen" != xyes; then
17545   enable_dlopen=unknown
17546   enable_dlopen_self=unknown
17547   enable_dlopen_self_static=unknown
17548 else
17549   lt_cv_dlopen=no
17550   lt_cv_dlopen_libs=
17551
17552   case $host_os in
17553   beos*)
17554     lt_cv_dlopen="load_add_on"
17555     lt_cv_dlopen_libs=
17556     lt_cv_dlopen_self=yes
17557     ;;
17558
17559   mingw* | pw32* | cegcc*)
17560     lt_cv_dlopen="LoadLibrary"
17561     lt_cv_dlopen_libs=
17562     ;;
17563
17564   cygwin*)
17565     lt_cv_dlopen="dlopen"
17566     lt_cv_dlopen_libs=
17567     ;;
17568
17569   darwin*)
17570   # if libdl is installed we need to link against it
17571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17572 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17573 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17574   $as_echo_n "(cached) " >&6
17575 else
17576   ac_check_lib_save_LIBS=$LIBS
17577 LIBS="-ldl  $LIBS"
17578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h.  */
17580
17581 /* Override any GCC internal prototype to avoid an error.
17582    Use char because int might match the return type of a GCC
17583    builtin and then its argument prototype would still apply.  */
17584 #ifdef __cplusplus
17585 extern "C"
17586 #endif
17587 char dlopen ();
17588 int
17589 main ()
17590 {
17591 return dlopen ();
17592   ;
17593   return 0;
17594 }
17595 _ACEOF
17596 if ac_fn_c_try_link "$LINENO"; then :
17597   ac_cv_lib_dl_dlopen=yes
17598 else
17599   ac_cv_lib_dl_dlopen=no
17600 fi
17601 rm -f core conftest.err conftest.$ac_objext \
17602     conftest$ac_exeext conftest.$ac_ext
17603 LIBS=$ac_check_lib_save_LIBS
17604 fi
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17606 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17607 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17608   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17609 else
17610
17611     lt_cv_dlopen="dyld"
17612     lt_cv_dlopen_libs=
17613     lt_cv_dlopen_self=yes
17614
17615 fi
17616
17617     ;;
17618
17619   *)
17620     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17621 if test "x$ac_cv_func_shl_load" = x""yes; then :
17622   lt_cv_dlopen="shl_load"
17623 else
17624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17625 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17626 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17627   $as_echo_n "(cached) " >&6
17628 else
17629   ac_check_lib_save_LIBS=$LIBS
17630 LIBS="-ldld  $LIBS"
17631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h.  */
17633
17634 /* Override any GCC internal prototype to avoid an error.
17635    Use char because int might match the return type of a GCC
17636    builtin and then its argument prototype would still apply.  */
17637 #ifdef __cplusplus
17638 extern "C"
17639 #endif
17640 char shl_load ();
17641 int
17642 main ()
17643 {
17644 return shl_load ();
17645   ;
17646   return 0;
17647 }
17648 _ACEOF
17649 if ac_fn_c_try_link "$LINENO"; then :
17650   ac_cv_lib_dld_shl_load=yes
17651 else
17652   ac_cv_lib_dld_shl_load=no
17653 fi
17654 rm -f core conftest.err conftest.$ac_objext \
17655     conftest$ac_exeext conftest.$ac_ext
17656 LIBS=$ac_check_lib_save_LIBS
17657 fi
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17659 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17660 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17661   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17662 else
17663   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17664 if test "x$ac_cv_func_dlopen" = x""yes; then :
17665   lt_cv_dlopen="dlopen"
17666 else
17667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17668 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17669 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17670   $as_echo_n "(cached) " >&6
17671 else
17672   ac_check_lib_save_LIBS=$LIBS
17673 LIBS="-ldl  $LIBS"
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h.  */
17676
17677 /* Override any GCC internal prototype to avoid an error.
17678    Use char because int might match the return type of a GCC
17679    builtin and then its argument prototype would still apply.  */
17680 #ifdef __cplusplus
17681 extern "C"
17682 #endif
17683 char dlopen ();
17684 int
17685 main ()
17686 {
17687 return dlopen ();
17688   ;
17689   return 0;
17690 }
17691 _ACEOF
17692 if ac_fn_c_try_link "$LINENO"; then :
17693   ac_cv_lib_dl_dlopen=yes
17694 else
17695   ac_cv_lib_dl_dlopen=no
17696 fi
17697 rm -f core conftest.err conftest.$ac_objext \
17698     conftest$ac_exeext conftest.$ac_ext
17699 LIBS=$ac_check_lib_save_LIBS
17700 fi
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17702 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17703 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17704   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17705 else
17706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17707 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17708 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17709   $as_echo_n "(cached) " >&6
17710 else
17711   ac_check_lib_save_LIBS=$LIBS
17712 LIBS="-lsvld  $LIBS"
17713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17714 /* end confdefs.h.  */
17715
17716 /* Override any GCC internal prototype to avoid an error.
17717    Use char because int might match the return type of a GCC
17718    builtin and then its argument prototype would still apply.  */
17719 #ifdef __cplusplus
17720 extern "C"
17721 #endif
17722 char dlopen ();
17723 int
17724 main ()
17725 {
17726 return dlopen ();
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 if ac_fn_c_try_link "$LINENO"; then :
17732   ac_cv_lib_svld_dlopen=yes
17733 else
17734   ac_cv_lib_svld_dlopen=no
17735 fi
17736 rm -f core conftest.err conftest.$ac_objext \
17737     conftest$ac_exeext conftest.$ac_ext
17738 LIBS=$ac_check_lib_save_LIBS
17739 fi
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17741 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17742 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17743   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17744 else
17745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17746 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17747 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17748   $as_echo_n "(cached) " >&6
17749 else
17750   ac_check_lib_save_LIBS=$LIBS
17751 LIBS="-ldld  $LIBS"
17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753 /* end confdefs.h.  */
17754
17755 /* Override any GCC internal prototype to avoid an error.
17756    Use char because int might match the return type of a GCC
17757    builtin and then its argument prototype would still apply.  */
17758 #ifdef __cplusplus
17759 extern "C"
17760 #endif
17761 char dld_link ();
17762 int
17763 main ()
17764 {
17765 return dld_link ();
17766   ;
17767   return 0;
17768 }
17769 _ACEOF
17770 if ac_fn_c_try_link "$LINENO"; then :
17771   ac_cv_lib_dld_dld_link=yes
17772 else
17773   ac_cv_lib_dld_dld_link=no
17774 fi
17775 rm -f core conftest.err conftest.$ac_objext \
17776     conftest$ac_exeext conftest.$ac_ext
17777 LIBS=$ac_check_lib_save_LIBS
17778 fi
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17780 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17781 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17782   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17783 fi
17784
17785
17786 fi
17787
17788
17789 fi
17790
17791
17792 fi
17793
17794
17795 fi
17796
17797
17798 fi
17799
17800     ;;
17801   esac
17802
17803   if test "x$lt_cv_dlopen" != xno; then
17804     enable_dlopen=yes
17805   else
17806     enable_dlopen=no
17807   fi
17808
17809   case $lt_cv_dlopen in
17810   dlopen)
17811     save_CPPFLAGS="$CPPFLAGS"
17812     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17813
17814     save_LDFLAGS="$LDFLAGS"
17815     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17816
17817     save_LIBS="$LIBS"
17818     LIBS="$lt_cv_dlopen_libs $LIBS"
17819
17820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17821 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17822 if test "${lt_cv_dlopen_self+set}" = set; then :
17823   $as_echo_n "(cached) " >&6
17824 else
17825           if test "$cross_compiling" = yes; then :
17826   lt_cv_dlopen_self=cross
17827 else
17828   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17829   lt_status=$lt_dlunknown
17830   cat > conftest.$ac_ext <<_LT_EOF
17831 #line 17831 "configure"
17832 #include "confdefs.h"
17833
17834 #if HAVE_DLFCN_H
17835 #include <dlfcn.h>
17836 #endif
17837
17838 #include <stdio.h>
17839
17840 #ifdef RTLD_GLOBAL
17841 #  define LT_DLGLOBAL           RTLD_GLOBAL
17842 #else
17843 #  ifdef DL_GLOBAL
17844 #    define LT_DLGLOBAL         DL_GLOBAL
17845 #  else
17846 #    define LT_DLGLOBAL         0
17847 #  endif
17848 #endif
17849
17850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17851    find out it does not work in some platform. */
17852 #ifndef LT_DLLAZY_OR_NOW
17853 #  ifdef RTLD_LAZY
17854 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17855 #  else
17856 #    ifdef DL_LAZY
17857 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17858 #    else
17859 #      ifdef RTLD_NOW
17860 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17861 #      else
17862 #        ifdef DL_NOW
17863 #          define LT_DLLAZY_OR_NOW      DL_NOW
17864 #        else
17865 #          define LT_DLLAZY_OR_NOW      0
17866 #        endif
17867 #      endif
17868 #    endif
17869 #  endif
17870 #endif
17871
17872 /* When -fvisbility=hidden is used, assume the code has been annotated
17873    correspondingly for the symbols needed.  */
17874 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17875 void fnord () __attribute__((visibility("default")));
17876 #endif
17877
17878 void fnord () { int i=42; }
17879 int main ()
17880 {
17881   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17882   int status = $lt_dlunknown;
17883
17884   if (self)
17885     {
17886       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17887       else
17888         {
17889           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17890           else puts (dlerror ());
17891         }
17892       /* dlclose (self); */
17893     }
17894   else
17895     puts (dlerror ());
17896
17897   return status;
17898 }
17899 _LT_EOF
17900   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17901   (eval $ac_link) 2>&5
17902   ac_status=$?
17903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17904   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17905     (./conftest; exit; ) >&5 2>/dev/null
17906     lt_status=$?
17907     case x$lt_status in
17908       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17909       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17910       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17911     esac
17912   else :
17913     # compilation failed
17914     lt_cv_dlopen_self=no
17915   fi
17916 fi
17917 rm -fr conftest*
17918
17919
17920 fi
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17922 $as_echo "$lt_cv_dlopen_self" >&6; }
17923
17924     if test "x$lt_cv_dlopen_self" = xyes; then
17925       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17926       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17927 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17928 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17929   $as_echo_n "(cached) " >&6
17930 else
17931           if test "$cross_compiling" = yes; then :
17932   lt_cv_dlopen_self_static=cross
17933 else
17934   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17935   lt_status=$lt_dlunknown
17936   cat > conftest.$ac_ext <<_LT_EOF
17937 #line 17937 "configure"
17938 #include "confdefs.h"
17939
17940 #if HAVE_DLFCN_H
17941 #include <dlfcn.h>
17942 #endif
17943
17944 #include <stdio.h>
17945
17946 #ifdef RTLD_GLOBAL
17947 #  define LT_DLGLOBAL           RTLD_GLOBAL
17948 #else
17949 #  ifdef DL_GLOBAL
17950 #    define LT_DLGLOBAL         DL_GLOBAL
17951 #  else
17952 #    define LT_DLGLOBAL         0
17953 #  endif
17954 #endif
17955
17956 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17957    find out it does not work in some platform. */
17958 #ifndef LT_DLLAZY_OR_NOW
17959 #  ifdef RTLD_LAZY
17960 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17961 #  else
17962 #    ifdef DL_LAZY
17963 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17964 #    else
17965 #      ifdef RTLD_NOW
17966 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17967 #      else
17968 #        ifdef DL_NOW
17969 #          define LT_DLLAZY_OR_NOW      DL_NOW
17970 #        else
17971 #          define LT_DLLAZY_OR_NOW      0
17972 #        endif
17973 #      endif
17974 #    endif
17975 #  endif
17976 #endif
17977
17978 /* When -fvisbility=hidden is used, assume the code has been annotated
17979    correspondingly for the symbols needed.  */
17980 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17981 void fnord () __attribute__((visibility("default")));
17982 #endif
17983
17984 void fnord () { int i=42; }
17985 int main ()
17986 {
17987   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17988   int status = $lt_dlunknown;
17989
17990   if (self)
17991     {
17992       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17993       else
17994         {
17995           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17996           else puts (dlerror ());
17997         }
17998       /* dlclose (self); */
17999     }
18000   else
18001     puts (dlerror ());
18002
18003   return status;
18004 }
18005 _LT_EOF
18006   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18007   (eval $ac_link) 2>&5
18008   ac_status=$?
18009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18010   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18011     (./conftest; exit; ) >&5 2>/dev/null
18012     lt_status=$?
18013     case x$lt_status in
18014       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18015       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18016       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18017     esac
18018   else :
18019     # compilation failed
18020     lt_cv_dlopen_self_static=no
18021   fi
18022 fi
18023 rm -fr conftest*
18024
18025
18026 fi
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18028 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18029     fi
18030
18031     CPPFLAGS="$save_CPPFLAGS"
18032     LDFLAGS="$save_LDFLAGS"
18033     LIBS="$save_LIBS"
18034     ;;
18035   esac
18036
18037   case $lt_cv_dlopen_self in
18038   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18039   *) enable_dlopen_self=unknown ;;
18040   esac
18041
18042   case $lt_cv_dlopen_self_static in
18043   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18044   *) enable_dlopen_self_static=unknown ;;
18045   esac
18046 fi
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064 striplib=
18065 old_striplib=
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18067 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18068 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18069   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18070   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18072 $as_echo "yes" >&6; }
18073 else
18074 # FIXME - insert some real tests, host_os isn't really good enough
18075   case $host_os in
18076   darwin*)
18077     if test -n "$STRIP" ; then
18078       striplib="$STRIP -x"
18079       old_striplib="$STRIP -S"
18080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18081 $as_echo "yes" >&6; }
18082     else
18083       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18084 $as_echo "no" >&6; }
18085     fi
18086     ;;
18087   *)
18088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18089 $as_echo "no" >&6; }
18090     ;;
18091   esac
18092 fi
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105   # Report which library types will actually be built
18106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18107 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18109 $as_echo "$can_build_shared" >&6; }
18110
18111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18112 $as_echo_n "checking whether to build shared libraries... " >&6; }
18113   test "$can_build_shared" = "no" && enable_shared=no
18114
18115   # On AIX, shared libraries and static libraries use the same namespace, and
18116   # are all built from PIC.
18117   case $host_os in
18118   aix3*)
18119     test "$enable_shared" = yes && enable_static=no
18120     if test -n "$RANLIB"; then
18121       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18122       postinstall_cmds='$RANLIB $lib'
18123     fi
18124     ;;
18125
18126   aix[4-9]*)
18127     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18128       test "$enable_shared" = yes && enable_static=no
18129     fi
18130     ;;
18131   esac
18132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18133 $as_echo "$enable_shared" >&6; }
18134
18135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18136 $as_echo_n "checking whether to build static libraries... " >&6; }
18137   # Make sure either enable_shared or enable_static is yes.
18138   test "$enable_shared" = yes || enable_static=yes
18139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18140 $as_echo "$enable_static" >&6; }
18141
18142
18143
18144
18145 fi
18146 ac_ext=c
18147 ac_cpp='$CPP $CPPFLAGS'
18148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18151
18152 CC="$lt_save_CC"
18153
18154       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18155     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18156     (test "X$CXX" != "Xg++"))) ; then
18157   ac_ext=cpp
18158 ac_cpp='$CXXCPP $CPPFLAGS'
18159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18163 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18164 if test -z "$CXXCPP"; then
18165   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18166   $as_echo_n "(cached) " >&6
18167 else
18168       # Double quotes because CXXCPP needs to be expanded
18169     for CXXCPP in "$CXX -E" "/lib/cpp"
18170     do
18171       ac_preproc_ok=false
18172 for ac_cxx_preproc_warn_flag in '' yes
18173 do
18174   # Use a header file that comes with gcc, so configuring glibc
18175   # with a fresh cross-compiler works.
18176   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18177   # <limits.h> exists even on freestanding compilers.
18178   # On the NeXT, cc -E runs the code through the compiler's parser,
18179   # not just through cpp. "Syntax error" is here to catch this case.
18180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h.  */
18182 #ifdef __STDC__
18183 # include <limits.h>
18184 #else
18185 # include <assert.h>
18186 #endif
18187                      Syntax error
18188 _ACEOF
18189 if ac_fn_cxx_try_cpp "$LINENO"; then :
18190
18191 else
18192   # Broken: fails on valid input.
18193 continue
18194 fi
18195 rm -f conftest.err conftest.$ac_ext
18196
18197   # OK, works on sane cases.  Now check whether nonexistent headers
18198   # can be detected and how.
18199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h.  */
18201 #include <ac_nonexistent.h>
18202 _ACEOF
18203 if ac_fn_cxx_try_cpp "$LINENO"; then :
18204   # Broken: success on invalid input.
18205 continue
18206 else
18207   # Passes both tests.
18208 ac_preproc_ok=:
18209 break
18210 fi
18211 rm -f conftest.err conftest.$ac_ext
18212
18213 done
18214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18215 rm -f conftest.err conftest.$ac_ext
18216 if $ac_preproc_ok; then :
18217   break
18218 fi
18219
18220     done
18221     ac_cv_prog_CXXCPP=$CXXCPP
18222
18223 fi
18224   CXXCPP=$ac_cv_prog_CXXCPP
18225 else
18226   ac_cv_prog_CXXCPP=$CXXCPP
18227 fi
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18229 $as_echo "$CXXCPP" >&6; }
18230 ac_preproc_ok=false
18231 for ac_cxx_preproc_warn_flag in '' yes
18232 do
18233   # Use a header file that comes with gcc, so configuring glibc
18234   # with a fresh cross-compiler works.
18235   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18236   # <limits.h> exists even on freestanding compilers.
18237   # On the NeXT, cc -E runs the code through the compiler's parser,
18238   # not just through cpp. "Syntax error" is here to catch this case.
18239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h.  */
18241 #ifdef __STDC__
18242 # include <limits.h>
18243 #else
18244 # include <assert.h>
18245 #endif
18246                      Syntax error
18247 _ACEOF
18248 if ac_fn_cxx_try_cpp "$LINENO"; then :
18249
18250 else
18251   # Broken: fails on valid input.
18252 continue
18253 fi
18254 rm -f conftest.err conftest.$ac_ext
18255
18256   # OK, works on sane cases.  Now check whether nonexistent headers
18257   # can be detected and how.
18258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h.  */
18260 #include <ac_nonexistent.h>
18261 _ACEOF
18262 if ac_fn_cxx_try_cpp "$LINENO"; then :
18263   # Broken: success on invalid input.
18264 continue
18265 else
18266   # Passes both tests.
18267 ac_preproc_ok=:
18268 break
18269 fi
18270 rm -f conftest.err conftest.$ac_ext
18271
18272 done
18273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18274 rm -f conftest.err conftest.$ac_ext
18275 if $ac_preproc_ok; then :
18276
18277 else
18278   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18280 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18281 See \`config.log' for more details." "$LINENO" 5; }
18282 fi
18283
18284 ac_ext=c
18285 ac_cpp='$CPP $CPPFLAGS'
18286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18289
18290 else
18291   _lt_caught_CXX_error=yes
18292 fi
18293
18294 ac_ext=cpp
18295 ac_cpp='$CXXCPP $CPPFLAGS'
18296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18299
18300 archive_cmds_need_lc_CXX=no
18301 allow_undefined_flag_CXX=
18302 always_export_symbols_CXX=no
18303 archive_expsym_cmds_CXX=
18304 compiler_needs_object_CXX=no
18305 export_dynamic_flag_spec_CXX=
18306 hardcode_direct_CXX=no
18307 hardcode_direct_absolute_CXX=no
18308 hardcode_libdir_flag_spec_CXX=
18309 hardcode_libdir_flag_spec_ld_CXX=
18310 hardcode_libdir_separator_CXX=
18311 hardcode_minus_L_CXX=no
18312 hardcode_shlibpath_var_CXX=unsupported
18313 hardcode_automatic_CXX=no
18314 inherit_rpath_CXX=no
18315 module_cmds_CXX=
18316 module_expsym_cmds_CXX=
18317 link_all_deplibs_CXX=unknown
18318 old_archive_cmds_CXX=$old_archive_cmds
18319 reload_flag_CXX=$reload_flag
18320 reload_cmds_CXX=$reload_cmds
18321 no_undefined_flag_CXX=
18322 whole_archive_flag_spec_CXX=
18323 enable_shared_with_static_runtimes_CXX=no
18324
18325 # Source file extension for C++ test sources.
18326 ac_ext=cpp
18327
18328 # Object file extension for compiled C++ test sources.
18329 objext=o
18330 objext_CXX=$objext
18331
18332 # No sense in running all these tests if we already determined that
18333 # the CXX compiler isn't working.  Some variables (like enable_shared)
18334 # are currently assumed to apply to all compilers on this platform,
18335 # and will be corrupted by setting them based on a non-working compiler.
18336 if test "$_lt_caught_CXX_error" != yes; then
18337   # Code to be used in simple compile tests
18338   lt_simple_compile_test_code="int some_variable = 0;"
18339
18340   # Code to be used in simple link tests
18341   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18342
18343   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18344
18345
18346
18347
18348
18349
18350 # If no C compiler was specified, use CC.
18351 LTCC=${LTCC-"$CC"}
18352
18353 # If no C compiler flags were specified, use CFLAGS.
18354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18355
18356 # Allow CC to be a program name with arguments.
18357 compiler=$CC
18358
18359
18360   # save warnings/boilerplate of simple test code
18361   ac_outfile=conftest.$ac_objext
18362 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18364 _lt_compiler_boilerplate=`cat conftest.err`
18365 $RM conftest*
18366
18367   ac_outfile=conftest.$ac_objext
18368 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18370 _lt_linker_boilerplate=`cat conftest.err`
18371 $RM -r conftest*
18372
18373
18374   # Allow CC to be a program name with arguments.
18375   lt_save_CC=$CC
18376   lt_save_LD=$LD
18377   lt_save_GCC=$GCC
18378   GCC=$GXX
18379   lt_save_with_gnu_ld=$with_gnu_ld
18380   lt_save_path_LD=$lt_cv_path_LD
18381   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18382     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18383   else
18384     $as_unset lt_cv_prog_gnu_ld
18385   fi
18386   if test -n "${lt_cv_path_LDCXX+set}"; then
18387     lt_cv_path_LD=$lt_cv_path_LDCXX
18388   else
18389     $as_unset lt_cv_path_LD
18390   fi
18391   test -z "${LDCXX+set}" || LD=$LDCXX
18392   CC=${CXX-"c++"}
18393   compiler=$CC
18394   compiler_CXX=$CC
18395   for cc_temp in $compiler""; do
18396   case $cc_temp in
18397     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18398     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18399     \-*) ;;
18400     *) break;;
18401   esac
18402 done
18403 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18404
18405
18406   if test -n "$compiler"; then
18407     # We don't want -fno-exception when compiling C++ code, so set the
18408     # no_builtin_flag separately
18409     if test "$GXX" = yes; then
18410       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18411     else
18412       lt_prog_compiler_no_builtin_flag_CXX=
18413     fi
18414
18415     if test "$GXX" = yes; then
18416       # Set up default GNU C++ configuration
18417
18418
18419
18420 # Check whether --with-gnu-ld was given.
18421 if test "${with_gnu_ld+set}" = set; then :
18422   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18423 else
18424   with_gnu_ld=no
18425 fi
18426
18427 ac_prog=ld
18428 if test "$GCC" = yes; then
18429   # Check if gcc -print-prog-name=ld gives a path.
18430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18431 $as_echo_n "checking for ld used by $CC... " >&6; }
18432   case $host in
18433   *-*-mingw*)
18434     # gcc leaves a trailing carriage return which upsets mingw
18435     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18436   *)
18437     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18438   esac
18439   case $ac_prog in
18440     # Accept absolute paths.
18441     [\\/]* | ?:[\\/]*)
18442       re_direlt='/[^/][^/]*/\.\./'
18443       # Canonicalize the pathname of ld
18444       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18445       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18446         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18447       done
18448       test -z "$LD" && LD="$ac_prog"
18449       ;;
18450   "")
18451     # If it fails, then pretend we aren't using GCC.
18452     ac_prog=ld
18453     ;;
18454   *)
18455     # If it is relative, then search for the first ld in PATH.
18456     with_gnu_ld=unknown
18457     ;;
18458   esac
18459 elif test "$with_gnu_ld" = yes; then
18460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18461 $as_echo_n "checking for GNU ld... " >&6; }
18462 else
18463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18464 $as_echo_n "checking for non-GNU ld... " >&6; }
18465 fi
18466 if test "${lt_cv_path_LD+set}" = set; then :
18467   $as_echo_n "(cached) " >&6
18468 else
18469   if test -z "$LD"; then
18470   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18471   for ac_dir in $PATH; do
18472     IFS="$lt_save_ifs"
18473     test -z "$ac_dir" && ac_dir=.
18474     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18475       lt_cv_path_LD="$ac_dir/$ac_prog"
18476       # Check to see if the program is GNU ld.  I'd rather use --version,
18477       # but apparently some variants of GNU ld only accept -v.
18478       # Break only if it was the GNU/non-GNU ld that we prefer.
18479       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18480       *GNU* | *'with BFD'*)
18481         test "$with_gnu_ld" != no && break
18482         ;;
18483       *)
18484         test "$with_gnu_ld" != yes && break
18485         ;;
18486       esac
18487     fi
18488   done
18489   IFS="$lt_save_ifs"
18490 else
18491   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18492 fi
18493 fi
18494
18495 LD="$lt_cv_path_LD"
18496 if test -n "$LD"; then
18497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18498 $as_echo "$LD" >&6; }
18499 else
18500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18501 $as_echo "no" >&6; }
18502 fi
18503 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18505 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18506 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18507   $as_echo_n "(cached) " >&6
18508 else
18509   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18510 case `$LD -v 2>&1 </dev/null` in
18511 *GNU* | *'with BFD'*)
18512   lt_cv_prog_gnu_ld=yes
18513   ;;
18514 *)
18515   lt_cv_prog_gnu_ld=no
18516   ;;
18517 esac
18518 fi
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18520 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18521 with_gnu_ld=$lt_cv_prog_gnu_ld
18522
18523
18524
18525
18526
18527
18528
18529       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18530       # archiving commands below assume that GNU ld is being used.
18531       if test "$with_gnu_ld" = yes; then
18532         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18533         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'
18534
18535         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18536         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18537
18538         # If archive_cmds runs LD, not CC, wlarc should be empty
18539         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18540         #     investigate it a little bit more. (MM)
18541         wlarc='${wl}'
18542
18543         # ancient GNU ld didn't support --whole-archive et. al.
18544         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18545           $GREP 'no-whole-archive' > /dev/null; then
18546           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18547         else
18548           whole_archive_flag_spec_CXX=
18549         fi
18550       else
18551         with_gnu_ld=no
18552         wlarc=
18553
18554         # A generic and very simple default shared library creation
18555         # command for GNU C++ for the case where it uses the native
18556         # linker, instead of GNU ld.  If possible, this setting should
18557         # overridden to take advantage of the native linker features on
18558         # the platform it is being used on.
18559         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18560       fi
18561
18562       # Commands to make compiler produce verbose output that lists
18563       # what "hidden" libraries, object files and flags are used when
18564       # linking a shared library.
18565       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18566
18567     else
18568       GXX=no
18569       with_gnu_ld=no
18570       wlarc=
18571     fi
18572
18573     # PORTME: fill in a description of your system's C++ link characteristics
18574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18575 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18576     ld_shlibs_CXX=yes
18577     case $host_os in
18578       aix3*)
18579         # FIXME: insert proper C++ library support
18580         ld_shlibs_CXX=no
18581         ;;
18582       aix[4-9]*)
18583         if test "$host_cpu" = ia64; then
18584           # On IA64, the linker does run time linking by default, so we don't
18585           # have to do anything special.
18586           aix_use_runtimelinking=no
18587           exp_sym_flag='-Bexport'
18588           no_entry_flag=""
18589         else
18590           aix_use_runtimelinking=no
18591
18592           # Test if we are trying to use run time linking or normal
18593           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18594           # need to do runtime linking.
18595           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18596             for ld_flag in $LDFLAGS; do
18597               case $ld_flag in
18598               *-brtl*)
18599                 aix_use_runtimelinking=yes
18600                 break
18601                 ;;
18602               esac
18603             done
18604             ;;
18605           esac
18606
18607           exp_sym_flag='-bexport'
18608           no_entry_flag='-bnoentry'
18609         fi
18610
18611         # When large executables or shared objects are built, AIX ld can
18612         # have problems creating the table of contents.  If linking a library
18613         # or program results in "error TOC overflow" add -mminimal-toc to
18614         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18615         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18616
18617         archive_cmds_CXX=''
18618         hardcode_direct_CXX=yes
18619         hardcode_direct_absolute_CXX=yes
18620         hardcode_libdir_separator_CXX=':'
18621         link_all_deplibs_CXX=yes
18622         file_list_spec_CXX='${wl}-f,'
18623
18624         if test "$GXX" = yes; then
18625           case $host_os in aix4.[012]|aix4.[012].*)
18626           # We only want to do this on AIX 4.2 and lower, the check
18627           # below for broken collect2 doesn't work under 4.3+
18628           collect2name=`${CC} -print-prog-name=collect2`
18629           if test -f "$collect2name" &&
18630              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18631           then
18632             # We have reworked collect2
18633             :
18634           else
18635             # We have old collect2
18636             hardcode_direct_CXX=unsupported
18637             # It fails to find uninstalled libraries when the uninstalled
18638             # path is not listed in the libpath.  Setting hardcode_minus_L
18639             # to unsupported forces relinking
18640             hardcode_minus_L_CXX=yes
18641             hardcode_libdir_flag_spec_CXX='-L$libdir'
18642             hardcode_libdir_separator_CXX=
18643           fi
18644           esac
18645           shared_flag='-shared'
18646           if test "$aix_use_runtimelinking" = yes; then
18647             shared_flag="$shared_flag "'${wl}-G'
18648           fi
18649         else
18650           # not using gcc
18651           if test "$host_cpu" = ia64; then
18652           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18653           # chokes on -Wl,-G. The following line is correct:
18654           shared_flag='-G'
18655           else
18656             if test "$aix_use_runtimelinking" = yes; then
18657               shared_flag='${wl}-G'
18658             else
18659               shared_flag='${wl}-bM:SRE'
18660             fi
18661           fi
18662         fi
18663
18664         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18665         # It seems that -bexpall does not export symbols beginning with
18666         # underscore (_), so it is better to generate a list of symbols to
18667         # export.
18668         always_export_symbols_CXX=yes
18669         if test "$aix_use_runtimelinking" = yes; then
18670           # Warning - without using the other runtime loading flags (-brtl),
18671           # -berok will link without error, but may produce a broken library.
18672           allow_undefined_flag_CXX='-berok'
18673           # Determine the default libpath from the value encoded in an empty
18674           # executable.
18675           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18676 /* end confdefs.h.  */
18677
18678 int
18679 main ()
18680 {
18681
18682   ;
18683   return 0;
18684 }
18685 _ACEOF
18686 if ac_fn_cxx_try_link "$LINENO"; then :
18687
18688 lt_aix_libpath_sed='
18689     /Import File Strings/,/^$/ {
18690         /^0/ {
18691             s/^0  *\(.*\)$/\1/
18692             p
18693         }
18694     }'
18695 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18696 # Check for a 64-bit object if we didn't find anything.
18697 if test -z "$aix_libpath"; then
18698   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18699 fi
18700 fi
18701 rm -f core conftest.err conftest.$ac_objext \
18702     conftest$ac_exeext conftest.$ac_ext
18703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18704
18705           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18706
18707           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"
18708         else
18709           if test "$host_cpu" = ia64; then
18710             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18711             allow_undefined_flag_CXX="-z nodefs"
18712             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"
18713           else
18714             # Determine the default libpath from the value encoded in an
18715             # empty executable.
18716             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717 /* end confdefs.h.  */
18718
18719 int
18720 main ()
18721 {
18722
18723   ;
18724   return 0;
18725 }
18726 _ACEOF
18727 if ac_fn_cxx_try_link "$LINENO"; then :
18728
18729 lt_aix_libpath_sed='
18730     /Import File Strings/,/^$/ {
18731         /^0/ {
18732             s/^0  *\(.*\)$/\1/
18733             p
18734         }
18735     }'
18736 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18737 # Check for a 64-bit object if we didn't find anything.
18738 if test -z "$aix_libpath"; then
18739   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18740 fi
18741 fi
18742 rm -f core conftest.err conftest.$ac_objext \
18743     conftest$ac_exeext conftest.$ac_ext
18744 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18745
18746             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18747             # Warning - without using the other run time loading flags,
18748             # -berok will link without error, but may produce a broken library.
18749             no_undefined_flag_CXX=' ${wl}-bernotok'
18750             allow_undefined_flag_CXX=' ${wl}-berok'
18751             if test "$with_gnu_ld" = yes; then
18752               # We only use this code for GNU lds that support --whole-archive.
18753               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18754             else
18755               # Exported symbols can be pulled into shared objects from archives
18756               whole_archive_flag_spec_CXX='$convenience'
18757             fi
18758             archive_cmds_need_lc_CXX=yes
18759             # This is similar to how AIX traditionally builds its shared
18760             # libraries.
18761             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'
18762           fi
18763         fi
18764         ;;
18765
18766       beos*)
18767         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18768           allow_undefined_flag_CXX=unsupported
18769           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18770           # support --undefined.  This deserves some investigation.  FIXME
18771           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18772         else
18773           ld_shlibs_CXX=no
18774         fi
18775         ;;
18776
18777       chorus*)
18778         case $cc_basename in
18779           *)
18780           # FIXME: insert proper C++ library support
18781           ld_shlibs_CXX=no
18782           ;;
18783         esac
18784         ;;
18785
18786       cygwin* | mingw* | pw32* | cegcc*)
18787         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18788         # as there is no search path for DLLs.
18789         hardcode_libdir_flag_spec_CXX='-L$libdir'
18790         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18791         allow_undefined_flag_CXX=unsupported
18792         always_export_symbols_CXX=no
18793         enable_shared_with_static_runtimes_CXX=yes
18794
18795         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18796           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'
18797           # If the export-symbols file already is a .def file (1st line
18798           # is EXPORTS), use it as is; otherwise, prepend...
18799           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18800             cp $export_symbols $output_objdir/$soname.def;
18801           else
18802             echo EXPORTS > $output_objdir/$soname.def;
18803             cat $export_symbols >> $output_objdir/$soname.def;
18804           fi~
18805           $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'
18806         else
18807           ld_shlibs_CXX=no
18808         fi
18809         ;;
18810       darwin* | rhapsody*)
18811
18812
18813   archive_cmds_need_lc_CXX=no
18814   hardcode_direct_CXX=no
18815   hardcode_automatic_CXX=yes
18816   hardcode_shlibpath_var_CXX=unsupported
18817   if test "$lt_cv_ld_force_load" = "yes"; then
18818     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\"`'
18819   else
18820     whole_archive_flag_spec_CXX=''
18821   fi
18822   link_all_deplibs_CXX=yes
18823   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18824   case $cc_basename in
18825      ifort*) _lt_dar_can_shared=yes ;;
18826      *) _lt_dar_can_shared=$GCC ;;
18827   esac
18828   if test "$_lt_dar_can_shared" = "yes"; then
18829     output_verbose_link_cmd=func_echo_all
18830     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}"
18831     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18832     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}"
18833     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}"
18834        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18835       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}"
18836       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}"
18837     fi
18838
18839   else
18840   ld_shlibs_CXX=no
18841   fi
18842
18843         ;;
18844
18845       dgux*)
18846         case $cc_basename in
18847           ec++*)
18848             # FIXME: insert proper C++ library support
18849             ld_shlibs_CXX=no
18850             ;;
18851           ghcx*)
18852             # Green Hills C++ Compiler
18853             # FIXME: insert proper C++ library support
18854             ld_shlibs_CXX=no
18855             ;;
18856           *)
18857             # FIXME: insert proper C++ library support
18858             ld_shlibs_CXX=no
18859             ;;
18860         esac
18861         ;;
18862
18863       freebsd2.*)
18864         # C++ shared libraries reported to be fairly broken before
18865         # switch to ELF
18866         ld_shlibs_CXX=no
18867         ;;
18868
18869       freebsd-elf*)
18870         archive_cmds_need_lc_CXX=no
18871         ;;
18872
18873       freebsd* | dragonfly*)
18874         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18875         # conventions
18876         ld_shlibs_CXX=yes
18877         ;;
18878
18879       gnu*)
18880         ;;
18881
18882       haiku*)
18883         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18884         link_all_deplibs_CXX=yes
18885         ;;
18886
18887       hpux9*)
18888         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18889         hardcode_libdir_separator_CXX=:
18890         export_dynamic_flag_spec_CXX='${wl}-E'
18891         hardcode_direct_CXX=yes
18892         hardcode_minus_L_CXX=yes # Not in the search PATH,
18893                                              # but as the default
18894                                              # location of the library.
18895
18896         case $cc_basename in
18897           CC*)
18898             # FIXME: insert proper C++ library support
18899             ld_shlibs_CXX=no
18900             ;;
18901           aCC*)
18902             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'
18903             # Commands to make compiler produce verbose output that lists
18904             # what "hidden" libraries, object files and flags are used when
18905             # linking a shared library.
18906             #
18907             # There doesn't appear to be a way to prevent this compiler from
18908             # explicitly linking system object files so we need to strip them
18909             # from the output so that they don't get included in the library
18910             # dependencies.
18911             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"'
18912             ;;
18913           *)
18914             if test "$GXX" = yes; then
18915               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'
18916             else
18917               # FIXME: insert proper C++ library support
18918               ld_shlibs_CXX=no
18919             fi
18920             ;;
18921         esac
18922         ;;
18923
18924       hpux10*|hpux11*)
18925         if test $with_gnu_ld = no; then
18926           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18927           hardcode_libdir_separator_CXX=:
18928
18929           case $host_cpu in
18930             hppa*64*|ia64*)
18931               ;;
18932             *)
18933               export_dynamic_flag_spec_CXX='${wl}-E'
18934               ;;
18935           esac
18936         fi
18937         case $host_cpu in
18938           hppa*64*|ia64*)
18939             hardcode_direct_CXX=no
18940             hardcode_shlibpath_var_CXX=no
18941             ;;
18942           *)
18943             hardcode_direct_CXX=yes
18944             hardcode_direct_absolute_CXX=yes
18945             hardcode_minus_L_CXX=yes # Not in the search PATH,
18946                                                  # but as the default
18947                                                  # location of the library.
18948             ;;
18949         esac
18950
18951         case $cc_basename in
18952           CC*)
18953             # FIXME: insert proper C++ library support
18954             ld_shlibs_CXX=no
18955             ;;
18956           aCC*)
18957             case $host_cpu in
18958               hppa*64*)
18959                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18960                 ;;
18961               ia64*)
18962                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18963                 ;;
18964               *)
18965                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18966                 ;;
18967             esac
18968             # Commands to make compiler produce verbose output that lists
18969             # what "hidden" libraries, object files and flags are used when
18970             # linking a shared library.
18971             #
18972             # There doesn't appear to be a way to prevent this compiler from
18973             # explicitly linking system object files so we need to strip them
18974             # from the output so that they don't get included in the library
18975             # dependencies.
18976             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"'
18977             ;;
18978           *)
18979             if test "$GXX" = yes; then
18980               if test $with_gnu_ld = no; then
18981                 case $host_cpu in
18982                   hppa*64*)
18983                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18984                     ;;
18985                   ia64*)
18986                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18987                     ;;
18988                   *)
18989                     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'
18990                     ;;
18991                 esac
18992               fi
18993             else
18994               # FIXME: insert proper C++ library support
18995               ld_shlibs_CXX=no
18996             fi
18997             ;;
18998         esac
18999         ;;
19000
19001       interix[3-9]*)
19002         hardcode_direct_CXX=no
19003         hardcode_shlibpath_var_CXX=no
19004         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19005         export_dynamic_flag_spec_CXX='${wl}-E'
19006         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19007         # Instead, shared libraries are loaded at an image base (0x10000000 by
19008         # default) and relocated if they conflict, which is a slow very memory
19009         # consuming and fragmenting process.  To avoid this, we pick a random,
19010         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19011         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19012         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'
19013         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'
19014         ;;
19015       irix5* | irix6*)
19016         case $cc_basename in
19017           CC*)
19018             # SGI C++
19019             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'
19020
19021             # Archives containing C++ object files must be created using
19022             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19023             # necessary to make sure instantiated templates are included
19024             # in the archive.
19025             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19026             ;;
19027           *)
19028             if test "$GXX" = yes; then
19029               if test "$with_gnu_ld" = no; then
19030                 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'
19031               else
19032                 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'
19033               fi
19034             fi
19035             link_all_deplibs_CXX=yes
19036             ;;
19037         esac
19038         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19039         hardcode_libdir_separator_CXX=:
19040         inherit_rpath_CXX=yes
19041         ;;
19042
19043       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19044         case $cc_basename in
19045           KCC*)
19046             # Kuck and Associates, Inc. (KAI) C++ Compiler
19047
19048             # KCC will only create a shared library if the output file
19049             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19050             # to its proper name (with version) after linking.
19051             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'
19052             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'
19053             # Commands to make compiler produce verbose output that lists
19054             # what "hidden" libraries, object files and flags are used when
19055             # linking a shared library.
19056             #
19057             # There doesn't appear to be a way to prevent this compiler from
19058             # explicitly linking system object files so we need to strip them
19059             # from the output so that they don't get included in the library
19060             # dependencies.
19061             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"'
19062
19063             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19064             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19065
19066             # Archives containing C++ object files must be created using
19067             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19068             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19069             ;;
19070           icpc* | ecpc* )
19071             # Intel C++
19072             with_gnu_ld=yes
19073             # version 8.0 and above of icpc choke on multiply defined symbols
19074             # if we add $predep_objects and $postdep_objects, however 7.1 and
19075             # earlier do not add the objects themselves.
19076             case `$CC -V 2>&1` in
19077               *"Version 7."*)
19078                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19079                 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'
19080                 ;;
19081               *)  # Version 8.0 or newer
19082                 tmp_idyn=
19083                 case $host_cpu in
19084                   ia64*) tmp_idyn=' -i_dynamic';;
19085                 esac
19086                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19087                 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'
19088                 ;;
19089             esac
19090             archive_cmds_need_lc_CXX=no
19091             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19092             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19093             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19094             ;;
19095           pgCC* | pgcpp*)
19096             # Portland Group C++ compiler
19097             case `$CC -V` in
19098             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19099               prelink_cmds_CXX='tpldir=Template.dir~
19100                 rm -rf $tpldir~
19101                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19102                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19103               old_archive_cmds_CXX='tpldir=Template.dir~
19104                 rm -rf $tpldir~
19105                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19106                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19107                 $RANLIB $oldlib'
19108               archive_cmds_CXX='tpldir=Template.dir~
19109                 rm -rf $tpldir~
19110                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19111                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19112               archive_expsym_cmds_CXX='tpldir=Template.dir~
19113                 rm -rf $tpldir~
19114                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19115                 $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'
19116               ;;
19117             *) # Version 6 and above use weak symbols
19118               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19119               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'
19120               ;;
19121             esac
19122
19123             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19124             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19125             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'
19126             ;;
19127           cxx*)
19128             # Compaq C++
19129             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19130             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'
19131
19132             runpath_var=LD_RUN_PATH
19133             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19134             hardcode_libdir_separator_CXX=:
19135
19136             # Commands to make compiler produce verbose output that lists
19137             # what "hidden" libraries, object files and flags are used when
19138             # linking a shared library.
19139             #
19140             # There doesn't appear to be a way to prevent this compiler from
19141             # explicitly linking system object files so we need to strip them
19142             # from the output so that they don't get included in the library
19143             # dependencies.
19144             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'
19145             ;;
19146           xl* | mpixl* | bgxl*)
19147             # IBM XL 8.0 on PPC, with GNU ld
19148             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19149             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19150             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19151             if test "x$supports_anon_versioning" = xyes; then
19152               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19153                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19154                 echo "local: *; };" >> $output_objdir/$libname.ver~
19155                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19156             fi
19157             ;;
19158           *)
19159             case `$CC -V 2>&1 | sed 5q` in
19160             *Sun\ C*)
19161               # Sun C++ 5.9
19162               no_undefined_flag_CXX=' -zdefs'
19163               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19164               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'
19165               hardcode_libdir_flag_spec_CXX='-R$libdir'
19166               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'
19167               compiler_needs_object_CXX=yes
19168
19169               # Not sure whether something based on
19170               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19171               # would be better.
19172               output_verbose_link_cmd='func_echo_all'
19173
19174               # Archives containing C++ object files must be created using
19175               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19176               # necessary to make sure instantiated templates are included
19177               # in the archive.
19178               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19179               ;;
19180             esac
19181             ;;
19182         esac
19183         ;;
19184
19185       lynxos*)
19186         # FIXME: insert proper C++ library support
19187         ld_shlibs_CXX=no
19188         ;;
19189
19190       m88k*)
19191         # FIXME: insert proper C++ library support
19192         ld_shlibs_CXX=no
19193         ;;
19194
19195       mvs*)
19196         case $cc_basename in
19197           cxx*)
19198             # FIXME: insert proper C++ library support
19199             ld_shlibs_CXX=no
19200             ;;
19201           *)
19202             # FIXME: insert proper C++ library support
19203             ld_shlibs_CXX=no
19204             ;;
19205         esac
19206         ;;
19207
19208       netbsd*)
19209         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19210           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19211           wlarc=
19212           hardcode_libdir_flag_spec_CXX='-R$libdir'
19213           hardcode_direct_CXX=yes
19214           hardcode_shlibpath_var_CXX=no
19215         fi
19216         # Workaround some broken pre-1.5 toolchains
19217         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19218         ;;
19219
19220       *nto* | *qnx*)
19221         ld_shlibs_CXX=yes
19222         ;;
19223
19224       openbsd2*)
19225         # C++ shared libraries are fairly broken
19226         ld_shlibs_CXX=no
19227         ;;
19228
19229       openbsd*)
19230         if test -f /usr/libexec/ld.so; then
19231           hardcode_direct_CXX=yes
19232           hardcode_shlibpath_var_CXX=no
19233           hardcode_direct_absolute_CXX=yes
19234           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19235           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19236           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19237             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19238             export_dynamic_flag_spec_CXX='${wl}-E'
19239             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19240           fi
19241           output_verbose_link_cmd=func_echo_all
19242         else
19243           ld_shlibs_CXX=no
19244         fi
19245         ;;
19246
19247       osf3* | osf4* | osf5*)
19248         case $cc_basename in
19249           KCC*)
19250             # Kuck and Associates, Inc. (KAI) C++ Compiler
19251
19252             # KCC will only create a shared library if the output file
19253             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19254             # to its proper name (with version) after linking.
19255             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'
19256
19257             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19258             hardcode_libdir_separator_CXX=:
19259
19260             # Archives containing C++ object files must be created using
19261             # the KAI C++ compiler.
19262             case $host in
19263               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19264               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19265             esac
19266             ;;
19267           RCC*)
19268             # Rational C++ 2.4.1
19269             # FIXME: insert proper C++ library support
19270             ld_shlibs_CXX=no
19271             ;;
19272           cxx*)
19273             case $host in
19274               osf3*)
19275                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19276                 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'
19277                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19278                 ;;
19279               *)
19280                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19281                 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'
19282                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19283                   echo "-hidden">> $lib.exp~
19284                   $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~
19285                   $RM $lib.exp'
19286                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19287                 ;;
19288             esac
19289
19290             hardcode_libdir_separator_CXX=:
19291
19292             # Commands to make compiler produce verbose output that lists
19293             # what "hidden" libraries, object files and flags are used when
19294             # linking a shared library.
19295             #
19296             # There doesn't appear to be a way to prevent this compiler from
19297             # explicitly linking system object files so we need to strip them
19298             # from the output so that they don't get included in the library
19299             # dependencies.
19300             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"'
19301             ;;
19302           *)
19303             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19304               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19305               case $host in
19306                 osf3*)
19307                   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'
19308                   ;;
19309                 *)
19310                   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'
19311                   ;;
19312               esac
19313
19314               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19315               hardcode_libdir_separator_CXX=:
19316
19317               # Commands to make compiler produce verbose output that lists
19318               # what "hidden" libraries, object files and flags are used when
19319               # linking a shared library.
19320               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19321
19322             else
19323               # FIXME: insert proper C++ library support
19324               ld_shlibs_CXX=no
19325             fi
19326             ;;
19327         esac
19328         ;;
19329
19330       psos*)
19331         # FIXME: insert proper C++ library support
19332         ld_shlibs_CXX=no
19333         ;;
19334
19335       sunos4*)
19336         case $cc_basename in
19337           CC*)
19338             # Sun C++ 4.x
19339             # FIXME: insert proper C++ library support
19340             ld_shlibs_CXX=no
19341             ;;
19342           lcc*)
19343             # Lucid
19344             # FIXME: insert proper C++ library support
19345             ld_shlibs_CXX=no
19346             ;;
19347           *)
19348             # FIXME: insert proper C++ library support
19349             ld_shlibs_CXX=no
19350             ;;
19351         esac
19352         ;;
19353
19354       solaris*)
19355         case $cc_basename in
19356           CC*)
19357             # Sun C++ 4.2, 5.x and Centerline C++
19358             archive_cmds_need_lc_CXX=yes
19359             no_undefined_flag_CXX=' -zdefs'
19360             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19361             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19362               $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'
19363
19364             hardcode_libdir_flag_spec_CXX='-R$libdir'
19365             hardcode_shlibpath_var_CXX=no
19366             case $host_os in
19367               solaris2.[0-5] | solaris2.[0-5].*) ;;
19368               *)
19369                 # The compiler driver will combine and reorder linker options,
19370                 # but understands `-z linker_flag'.
19371                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19372                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19373                 ;;
19374             esac
19375             link_all_deplibs_CXX=yes
19376
19377             output_verbose_link_cmd='func_echo_all'
19378
19379             # Archives containing C++ object files must be created using
19380             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19381             # necessary to make sure instantiated templates are included
19382             # in the archive.
19383             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19384             ;;
19385           gcx*)
19386             # Green Hills C++ Compiler
19387             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19388
19389             # The C++ compiler must be used to create the archive.
19390             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19391             ;;
19392           *)
19393             # GNU C++ compiler with Solaris linker
19394             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19395               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19396               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19397                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19398                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19399                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19400
19401                 # Commands to make compiler produce verbose output that lists
19402                 # what "hidden" libraries, object files and flags are used when
19403                 # linking a shared library.
19404                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19405               else
19406                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19407                 # platform.
19408                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19409                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19410                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19411
19412                 # Commands to make compiler produce verbose output that lists
19413                 # what "hidden" libraries, object files and flags are used when
19414                 # linking a shared library.
19415                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19416               fi
19417
19418               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19419               case $host_os in
19420                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19421                 *)
19422                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19423                   ;;
19424               esac
19425             fi
19426             ;;
19427         esac
19428         ;;
19429
19430     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19431       no_undefined_flag_CXX='${wl}-z,text'
19432       archive_cmds_need_lc_CXX=no
19433       hardcode_shlibpath_var_CXX=no
19434       runpath_var='LD_RUN_PATH'
19435
19436       case $cc_basename in
19437         CC*)
19438           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19439           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19440           ;;
19441         *)
19442           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19443           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19444           ;;
19445       esac
19446       ;;
19447
19448       sysv5* | sco3.2v5* | sco5v6*)
19449         # Note: We can NOT use -z defs as we might desire, because we do not
19450         # link with -lc, and that would cause any symbols used from libc to
19451         # always be unresolved, which means just about no library would
19452         # ever link correctly.  If we're not using GNU ld we use -z text
19453         # though, which does catch some bad symbols but isn't as heavy-handed
19454         # as -z defs.
19455         no_undefined_flag_CXX='${wl}-z,text'
19456         allow_undefined_flag_CXX='${wl}-z,nodefs'
19457         archive_cmds_need_lc_CXX=no
19458         hardcode_shlibpath_var_CXX=no
19459         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19460         hardcode_libdir_separator_CXX=':'
19461         link_all_deplibs_CXX=yes
19462         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19463         runpath_var='LD_RUN_PATH'
19464
19465         case $cc_basename in
19466           CC*)
19467             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19468             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19469             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19470               '"$old_archive_cmds_CXX"
19471             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19472               '"$reload_cmds_CXX"
19473             ;;
19474           *)
19475             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19476             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19477             ;;
19478         esac
19479       ;;
19480
19481       tandem*)
19482         case $cc_basename in
19483           NCC*)
19484             # NonStop-UX NCC 3.20
19485             # FIXME: insert proper C++ library support
19486             ld_shlibs_CXX=no
19487             ;;
19488           *)
19489             # FIXME: insert proper C++ library support
19490             ld_shlibs_CXX=no
19491             ;;
19492         esac
19493         ;;
19494
19495       vxworks*)
19496         # FIXME: insert proper C++ library support
19497         ld_shlibs_CXX=no
19498         ;;
19499
19500       *)
19501         # FIXME: insert proper C++ library support
19502         ld_shlibs_CXX=no
19503         ;;
19504     esac
19505
19506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19507 $as_echo "$ld_shlibs_CXX" >&6; }
19508     test "$ld_shlibs_CXX" = no && can_build_shared=no
19509
19510     GCC_CXX="$GXX"
19511     LD_CXX="$LD"
19512
19513     ## CAVEAT EMPTOR:
19514     ## There is no encapsulation within the following macros, do not change
19515     ## the running order or otherwise move them around unless you know exactly
19516     ## what you are doing...
19517     # Dependencies to place before and after the object being linked:
19518 predep_objects_CXX=
19519 postdep_objects_CXX=
19520 predeps_CXX=
19521 postdeps_CXX=
19522 compiler_lib_search_path_CXX=
19523
19524 cat > conftest.$ac_ext <<_LT_EOF
19525 class Foo
19526 {
19527 public:
19528   Foo (void) { a = 0; }
19529 private:
19530   int a;
19531 };
19532 _LT_EOF
19533
19534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19535   (eval $ac_compile) 2>&5
19536   ac_status=$?
19537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19538   test $ac_status = 0; }; then
19539   # Parse the compiler output and extract the necessary
19540   # objects, libraries and library flags.
19541
19542   # Sentinel used to keep track of whether or not we are before
19543   # the conftest object file.
19544   pre_test_object_deps_done=no
19545
19546   for p in `eval "$output_verbose_link_cmd"`; do
19547     case $p in
19548
19549     -L* | -R* | -l*)
19550        # Some compilers place space between "-{L,R}" and the path.
19551        # Remove the space.
19552        if test $p = "-L" ||
19553           test $p = "-R"; then
19554          prev=$p
19555          continue
19556        else
19557          prev=
19558        fi
19559
19560        if test "$pre_test_object_deps_done" = no; then
19561          case $p in
19562          -L* | -R*)
19563            # Internal compiler library paths should come after those
19564            # provided the user.  The postdeps already come after the
19565            # user supplied libs so there is no need to process them.
19566            if test -z "$compiler_lib_search_path_CXX"; then
19567              compiler_lib_search_path_CXX="${prev}${p}"
19568            else
19569              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19570            fi
19571            ;;
19572          # The "-l" case would never come before the object being
19573          # linked, so don't bother handling this case.
19574          esac
19575        else
19576          if test -z "$postdeps_CXX"; then
19577            postdeps_CXX="${prev}${p}"
19578          else
19579            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19580          fi
19581        fi
19582        ;;
19583
19584     *.$objext)
19585        # This assumes that the test object file only shows up
19586        # once in the compiler output.
19587        if test "$p" = "conftest.$objext"; then
19588          pre_test_object_deps_done=yes
19589          continue
19590        fi
19591
19592        if test "$pre_test_object_deps_done" = no; then
19593          if test -z "$predep_objects_CXX"; then
19594            predep_objects_CXX="$p"
19595          else
19596            predep_objects_CXX="$predep_objects_CXX $p"
19597          fi
19598        else
19599          if test -z "$postdep_objects_CXX"; then
19600            postdep_objects_CXX="$p"
19601          else
19602            postdep_objects_CXX="$postdep_objects_CXX $p"
19603          fi
19604        fi
19605        ;;
19606
19607     *) ;; # Ignore the rest.
19608
19609     esac
19610   done
19611
19612   # Clean up.
19613   rm -f a.out a.exe
19614 else
19615   echo "libtool.m4: error: problem compiling CXX test program"
19616 fi
19617
19618 $RM -f confest.$objext
19619
19620 # PORTME: override above test on systems where it is broken
19621 case $host_os in
19622 interix[3-9]*)
19623   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19624   # hack all around it, let's just trust "g++" to DTRT.
19625   predep_objects_CXX=
19626   postdep_objects_CXX=
19627   postdeps_CXX=
19628   ;;
19629
19630 linux*)
19631   case `$CC -V 2>&1 | sed 5q` in
19632   *Sun\ C*)
19633     # Sun C++ 5.9
19634
19635     # The more standards-conforming stlport4 library is
19636     # incompatible with the Cstd library. Avoid specifying
19637     # it if it's in CXXFLAGS. Ignore libCrun as
19638     # -library=stlport4 depends on it.
19639     case " $CXX $CXXFLAGS " in
19640     *" -library=stlport4 "*)
19641       solaris_use_stlport4=yes
19642       ;;
19643     esac
19644
19645     if test "$solaris_use_stlport4" != yes; then
19646       postdeps_CXX='-library=Cstd -library=Crun'
19647     fi
19648     ;;
19649   esac
19650   ;;
19651
19652 solaris*)
19653   case $cc_basename in
19654   CC*)
19655     # The more standards-conforming stlport4 library is
19656     # incompatible with the Cstd library. Avoid specifying
19657     # it if it's in CXXFLAGS. Ignore libCrun as
19658     # -library=stlport4 depends on it.
19659     case " $CXX $CXXFLAGS " in
19660     *" -library=stlport4 "*)
19661       solaris_use_stlport4=yes
19662       ;;
19663     esac
19664
19665     # Adding this requires a known-good setup of shared libraries for
19666     # Sun compiler versions before 5.6, else PIC objects from an old
19667     # archive will be linked into the output, leading to subtle bugs.
19668     if test "$solaris_use_stlport4" != yes; then
19669       postdeps_CXX='-library=Cstd -library=Crun'
19670     fi
19671     ;;
19672   esac
19673   ;;
19674 esac
19675
19676
19677 case " $postdeps_CXX " in
19678 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19679 esac
19680  compiler_lib_search_dirs_CXX=
19681 if test -n "${compiler_lib_search_path_CXX}"; then
19682  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19683 fi
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715     lt_prog_compiler_wl_CXX=
19716 lt_prog_compiler_pic_CXX=
19717 lt_prog_compiler_static_CXX=
19718
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19720 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19721
19722   # C++ specific cases for pic, static, wl, etc.
19723   if test "$GXX" = yes; then
19724     lt_prog_compiler_wl_CXX='-Wl,'
19725     lt_prog_compiler_static_CXX='-static'
19726
19727     case $host_os in
19728     aix*)
19729       # All AIX code is PIC.
19730       if test "$host_cpu" = ia64; then
19731         # AIX 5 now supports IA64 processor
19732         lt_prog_compiler_static_CXX='-Bstatic'
19733       fi
19734       lt_prog_compiler_pic_CXX='-fPIC'
19735       ;;
19736
19737     amigaos*)
19738       case $host_cpu in
19739       powerpc)
19740             # see comment about AmigaOS4 .so support
19741             lt_prog_compiler_pic_CXX='-fPIC'
19742         ;;
19743       m68k)
19744             # FIXME: we need at least 68020 code to build shared libraries, but
19745             # adding the `-m68020' flag to GCC prevents building anything better,
19746             # like `-m68040'.
19747             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19748         ;;
19749       esac
19750       ;;
19751
19752     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19753       # PIC is the default for these OSes.
19754       ;;
19755     mingw* | cygwin* | os2* | pw32* | cegcc*)
19756       # This hack is so that the source file can tell whether it is being
19757       # built for inclusion in a dll (and should export symbols for example).
19758       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19759       # (--disable-auto-import) libraries
19760       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19761       ;;
19762     darwin* | rhapsody*)
19763       # PIC is the default on this platform
19764       # Common symbols not allowed in MH_DYLIB files
19765       lt_prog_compiler_pic_CXX='-fno-common'
19766       ;;
19767     *djgpp*)
19768       # DJGPP does not support shared libraries at all
19769       lt_prog_compiler_pic_CXX=
19770       ;;
19771     haiku*)
19772       # PIC is the default for Haiku.
19773       # The "-static" flag exists, but is broken.
19774       lt_prog_compiler_static_CXX=
19775       ;;
19776     interix[3-9]*)
19777       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19778       # Instead, we relocate shared libraries at runtime.
19779       ;;
19780     sysv4*MP*)
19781       if test -d /usr/nec; then
19782         lt_prog_compiler_pic_CXX=-Kconform_pic
19783       fi
19784       ;;
19785     hpux*)
19786       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19787       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19788       # sets the default TLS model and affects inlining.
19789       case $host_cpu in
19790       hppa*64*)
19791         ;;
19792       *)
19793         lt_prog_compiler_pic_CXX='-fPIC'
19794         ;;
19795       esac
19796       ;;
19797     *qnx* | *nto*)
19798       # QNX uses GNU C++, but need to define -shared option too, otherwise
19799       # it will coredump.
19800       lt_prog_compiler_pic_CXX='-fPIC -shared'
19801       ;;
19802     *)
19803       lt_prog_compiler_pic_CXX='-fPIC'
19804       ;;
19805     esac
19806   else
19807     case $host_os in
19808       aix[4-9]*)
19809         # All AIX code is PIC.
19810         if test "$host_cpu" = ia64; then
19811           # AIX 5 now supports IA64 processor
19812           lt_prog_compiler_static_CXX='-Bstatic'
19813         else
19814           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19815         fi
19816         ;;
19817       chorus*)
19818         case $cc_basename in
19819         cxch68*)
19820           # Green Hills C++ Compiler
19821           # _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"
19822           ;;
19823         esac
19824         ;;
19825       dgux*)
19826         case $cc_basename in
19827           ec++*)
19828             lt_prog_compiler_pic_CXX='-KPIC'
19829             ;;
19830           ghcx*)
19831             # Green Hills C++ Compiler
19832             lt_prog_compiler_pic_CXX='-pic'
19833             ;;
19834           *)
19835             ;;
19836         esac
19837         ;;
19838       freebsd* | dragonfly*)
19839         # FreeBSD uses GNU C++
19840         ;;
19841       hpux9* | hpux10* | hpux11*)
19842         case $cc_basename in
19843           CC*)
19844             lt_prog_compiler_wl_CXX='-Wl,'
19845             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19846             if test "$host_cpu" != ia64; then
19847               lt_prog_compiler_pic_CXX='+Z'
19848             fi
19849             ;;
19850           aCC*)
19851             lt_prog_compiler_wl_CXX='-Wl,'
19852             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19853             case $host_cpu in
19854             hppa*64*|ia64*)
19855               # +Z the default
19856               ;;
19857             *)
19858               lt_prog_compiler_pic_CXX='+Z'
19859               ;;
19860             esac
19861             ;;
19862           *)
19863             ;;
19864         esac
19865         ;;
19866       interix*)
19867         # This is c89, which is MS Visual C++ (no shared libs)
19868         # Anyone wants to do a port?
19869         ;;
19870       irix5* | irix6* | nonstopux*)
19871         case $cc_basename in
19872           CC*)
19873             lt_prog_compiler_wl_CXX='-Wl,'
19874             lt_prog_compiler_static_CXX='-non_shared'
19875             # CC pic flag -KPIC is the default.
19876             ;;
19877           *)
19878             ;;
19879         esac
19880         ;;
19881       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19882         case $cc_basename in
19883           KCC*)
19884             # KAI C++ Compiler
19885             lt_prog_compiler_wl_CXX='--backend -Wl,'
19886             lt_prog_compiler_pic_CXX='-fPIC'
19887             ;;
19888           ecpc* )
19889             # old Intel C++ for x86_64 which still supported -KPIC.
19890             lt_prog_compiler_wl_CXX='-Wl,'
19891             lt_prog_compiler_pic_CXX='-KPIC'
19892             lt_prog_compiler_static_CXX='-static'
19893             ;;
19894           icpc* )
19895             # Intel C++, used to be incompatible with GCC.
19896             # ICC 10 doesn't accept -KPIC any more.
19897             lt_prog_compiler_wl_CXX='-Wl,'
19898             lt_prog_compiler_pic_CXX='-fPIC'
19899             lt_prog_compiler_static_CXX='-static'
19900             ;;
19901           pgCC* | pgcpp*)
19902             # Portland Group C++ compiler
19903             lt_prog_compiler_wl_CXX='-Wl,'
19904             lt_prog_compiler_pic_CXX='-fpic'
19905             lt_prog_compiler_static_CXX='-Bstatic'
19906             ;;
19907           cxx*)
19908             # Compaq C++
19909             # Make sure the PIC flag is empty.  It appears that all Alpha
19910             # Linux and Compaq Tru64 Unix objects are PIC.
19911             lt_prog_compiler_pic_CXX=
19912             lt_prog_compiler_static_CXX='-non_shared'
19913             ;;
19914           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19915             # IBM XL 8.0, 9.0 on PPC and BlueGene
19916             lt_prog_compiler_wl_CXX='-Wl,'
19917             lt_prog_compiler_pic_CXX='-qpic'
19918             lt_prog_compiler_static_CXX='-qstaticlink'
19919             ;;
19920           *)
19921             case `$CC -V 2>&1 | sed 5q` in
19922             *Sun\ C*)
19923               # Sun C++ 5.9
19924               lt_prog_compiler_pic_CXX='-KPIC'
19925               lt_prog_compiler_static_CXX='-Bstatic'
19926               lt_prog_compiler_wl_CXX='-Qoption ld '
19927               ;;
19928             esac
19929             ;;
19930         esac
19931         ;;
19932       lynxos*)
19933         ;;
19934       m88k*)
19935         ;;
19936       mvs*)
19937         case $cc_basename in
19938           cxx*)
19939             lt_prog_compiler_pic_CXX='-W c,exportall'
19940             ;;
19941           *)
19942             ;;
19943         esac
19944         ;;
19945       netbsd*)
19946         ;;
19947       *qnx* | *nto*)
19948         # QNX uses GNU C++, but need to define -shared option too, otherwise
19949         # it will coredump.
19950         lt_prog_compiler_pic_CXX='-fPIC -shared'
19951         ;;
19952       osf3* | osf4* | osf5*)
19953         case $cc_basename in
19954           KCC*)
19955             lt_prog_compiler_wl_CXX='--backend -Wl,'
19956             ;;
19957           RCC*)
19958             # Rational C++ 2.4.1
19959             lt_prog_compiler_pic_CXX='-pic'
19960             ;;
19961           cxx*)
19962             # Digital/Compaq C++
19963             lt_prog_compiler_wl_CXX='-Wl,'
19964             # Make sure the PIC flag is empty.  It appears that all Alpha
19965             # Linux and Compaq Tru64 Unix objects are PIC.
19966             lt_prog_compiler_pic_CXX=
19967             lt_prog_compiler_static_CXX='-non_shared'
19968             ;;
19969           *)
19970             ;;
19971         esac
19972         ;;
19973       psos*)
19974         ;;
19975       solaris*)
19976         case $cc_basename in
19977           CC*)
19978             # Sun C++ 4.2, 5.x and Centerline C++
19979             lt_prog_compiler_pic_CXX='-KPIC'
19980             lt_prog_compiler_static_CXX='-Bstatic'
19981             lt_prog_compiler_wl_CXX='-Qoption ld '
19982             ;;
19983           gcx*)
19984             # Green Hills C++ Compiler
19985             lt_prog_compiler_pic_CXX='-PIC'
19986             ;;
19987           *)
19988             ;;
19989         esac
19990         ;;
19991       sunos4*)
19992         case $cc_basename in
19993           CC*)
19994             # Sun C++ 4.x
19995             lt_prog_compiler_pic_CXX='-pic'
19996             lt_prog_compiler_static_CXX='-Bstatic'
19997             ;;
19998           lcc*)
19999             # Lucid
20000             lt_prog_compiler_pic_CXX='-pic'
20001             ;;
20002           *)
20003             ;;
20004         esac
20005         ;;
20006       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20007         case $cc_basename in
20008           CC*)
20009             lt_prog_compiler_wl_CXX='-Wl,'
20010             lt_prog_compiler_pic_CXX='-KPIC'
20011             lt_prog_compiler_static_CXX='-Bstatic'
20012             ;;
20013         esac
20014         ;;
20015       tandem*)
20016         case $cc_basename in
20017           NCC*)
20018             # NonStop-UX NCC 3.20
20019             lt_prog_compiler_pic_CXX='-KPIC'
20020             ;;
20021           *)
20022             ;;
20023         esac
20024         ;;
20025       vxworks*)
20026         ;;
20027       *)
20028         lt_prog_compiler_can_build_shared_CXX=no
20029         ;;
20030     esac
20031   fi
20032
20033 case $host_os in
20034   # For platforms which do not support PIC, -DPIC is meaningless:
20035   *djgpp*)
20036     lt_prog_compiler_pic_CXX=
20037     ;;
20038   *)
20039     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20040     ;;
20041 esac
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20043 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20044
20045
20046
20047 #
20048 # Check to make sure the PIC flag actually works.
20049 #
20050 if test -n "$lt_prog_compiler_pic_CXX"; then
20051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20052 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20053 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20054   $as_echo_n "(cached) " >&6
20055 else
20056   lt_cv_prog_compiler_pic_works_CXX=no
20057    ac_outfile=conftest.$ac_objext
20058    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20059    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20060    # Insert the option either (1) after the last *FLAGS variable, or
20061    # (2) before a word containing "conftest.", or (3) at the end.
20062    # Note that $ac_compile itself does not contain backslashes and begins
20063    # with a dollar sign (not a hyphen), so the echo should work correctly.
20064    # The option is referenced via a variable to avoid confusing sed.
20065    lt_compile=`echo "$ac_compile" | $SED \
20066    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20067    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20068    -e 's:$: $lt_compiler_flag:'`
20069    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20070    (eval "$lt_compile" 2>conftest.err)
20071    ac_status=$?
20072    cat conftest.err >&5
20073    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074    if (exit $ac_status) && test -s "$ac_outfile"; then
20075      # The compiler can only warn and ignore the option if not recognized
20076      # So say no if there are warnings other than the usual output.
20077      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20078      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20079      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20080        lt_cv_prog_compiler_pic_works_CXX=yes
20081      fi
20082    fi
20083    $RM conftest*
20084
20085 fi
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20087 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20088
20089 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20090     case $lt_prog_compiler_pic_CXX in
20091      "" | " "*) ;;
20092      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20093      esac
20094 else
20095     lt_prog_compiler_pic_CXX=
20096      lt_prog_compiler_can_build_shared_CXX=no
20097 fi
20098
20099 fi
20100
20101
20102
20103 #
20104 # Check to make sure the static flag actually works.
20105 #
20106 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20108 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20109 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20110   $as_echo_n "(cached) " >&6
20111 else
20112   lt_cv_prog_compiler_static_works_CXX=no
20113    save_LDFLAGS="$LDFLAGS"
20114    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20115    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20116    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20117      # The linker can only warn and ignore the option if not recognized
20118      # So say no if there are warnings
20119      if test -s conftest.err; then
20120        # Append any errors to the config.log.
20121        cat conftest.err 1>&5
20122        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20123        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20124        if diff conftest.exp conftest.er2 >/dev/null; then
20125          lt_cv_prog_compiler_static_works_CXX=yes
20126        fi
20127      else
20128        lt_cv_prog_compiler_static_works_CXX=yes
20129      fi
20130    fi
20131    $RM -r conftest*
20132    LDFLAGS="$save_LDFLAGS"
20133
20134 fi
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20136 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20137
20138 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20139     :
20140 else
20141     lt_prog_compiler_static_CXX=
20142 fi
20143
20144
20145
20146
20147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20148 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20149 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20150   $as_echo_n "(cached) " >&6
20151 else
20152   lt_cv_prog_compiler_c_o_CXX=no
20153    $RM -r conftest 2>/dev/null
20154    mkdir conftest
20155    cd conftest
20156    mkdir out
20157    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20158
20159    lt_compiler_flag="-o out/conftest2.$ac_objext"
20160    # Insert the option either (1) after the last *FLAGS variable, or
20161    # (2) before a word containing "conftest.", or (3) at the end.
20162    # Note that $ac_compile itself does not contain backslashes and begins
20163    # with a dollar sign (not a hyphen), so the echo should work correctly.
20164    lt_compile=`echo "$ac_compile" | $SED \
20165    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20166    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20167    -e 's:$: $lt_compiler_flag:'`
20168    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20169    (eval "$lt_compile" 2>out/conftest.err)
20170    ac_status=$?
20171    cat out/conftest.err >&5
20172    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20174    then
20175      # The compiler can only warn and ignore the option if not recognized
20176      # So say no if there are warnings
20177      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20178      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20179      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20180        lt_cv_prog_compiler_c_o_CXX=yes
20181      fi
20182    fi
20183    chmod u+w . 2>&5
20184    $RM conftest*
20185    # SGI C++ compiler will create directory out/ii_files/ for
20186    # template instantiation
20187    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20188    $RM out/* && rmdir out
20189    cd ..
20190    $RM -r conftest
20191    $RM conftest*
20192
20193 fi
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20195 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20196
20197
20198
20199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20200 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20201 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20202   $as_echo_n "(cached) " >&6
20203 else
20204   lt_cv_prog_compiler_c_o_CXX=no
20205    $RM -r conftest 2>/dev/null
20206    mkdir conftest
20207    cd conftest
20208    mkdir out
20209    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20210
20211    lt_compiler_flag="-o out/conftest2.$ac_objext"
20212    # Insert the option either (1) after the last *FLAGS variable, or
20213    # (2) before a word containing "conftest.", or (3) at the end.
20214    # Note that $ac_compile itself does not contain backslashes and begins
20215    # with a dollar sign (not a hyphen), so the echo should work correctly.
20216    lt_compile=`echo "$ac_compile" | $SED \
20217    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20218    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20219    -e 's:$: $lt_compiler_flag:'`
20220    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20221    (eval "$lt_compile" 2>out/conftest.err)
20222    ac_status=$?
20223    cat out/conftest.err >&5
20224    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20226    then
20227      # The compiler can only warn and ignore the option if not recognized
20228      # So say no if there are warnings
20229      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20230      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20231      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20232        lt_cv_prog_compiler_c_o_CXX=yes
20233      fi
20234    fi
20235    chmod u+w . 2>&5
20236    $RM conftest*
20237    # SGI C++ compiler will create directory out/ii_files/ for
20238    # template instantiation
20239    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20240    $RM out/* && rmdir out
20241    cd ..
20242    $RM -r conftest
20243    $RM conftest*
20244
20245 fi
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20247 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20248
20249
20250
20251
20252 hard_links="nottested"
20253 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20254   # do not overwrite the value of need_locks provided by the user
20255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20256 $as_echo_n "checking if we can lock with hard links... " >&6; }
20257   hard_links=yes
20258   $RM conftest*
20259   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20260   touch conftest.a
20261   ln conftest.a conftest.b 2>&5 || hard_links=no
20262   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20264 $as_echo "$hard_links" >&6; }
20265   if test "$hard_links" = no; then
20266     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20267 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20268     need_locks=warn
20269   fi
20270 else
20271   need_locks=no
20272 fi
20273
20274
20275
20276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20277 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20278
20279   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20280   case $host_os in
20281   aix[4-9]*)
20282     # If we're using GNU nm, then we don't want the "-C" option.
20283     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20284     # Also, AIX nm treats weak defined symbols like other global defined
20285     # symbols, whereas GNU nm marks them as "W".
20286     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20287       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'
20288     else
20289       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'
20290     fi
20291     ;;
20292   pw32*)
20293     export_symbols_cmds_CXX="$ltdll_cmds"
20294   ;;
20295   cygwin* | mingw* | cegcc*)
20296     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'
20297   ;;
20298   *)
20299     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20300   ;;
20301   esac
20302   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20303
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20305 $as_echo "$ld_shlibs_CXX" >&6; }
20306 test "$ld_shlibs_CXX" = no && can_build_shared=no
20307
20308 with_gnu_ld_CXX=$with_gnu_ld
20309
20310
20311
20312
20313
20314
20315 #
20316 # Do we need to explicitly link libc?
20317 #
20318 case "x$archive_cmds_need_lc_CXX" in
20319 x|xyes)
20320   # Assume -lc should be added
20321   archive_cmds_need_lc_CXX=yes
20322
20323   if test "$enable_shared" = yes && test "$GCC" = yes; then
20324     case $archive_cmds_CXX in
20325     *'~'*)
20326       # FIXME: we may have to deal with multi-command sequences.
20327       ;;
20328     '$CC '*)
20329       # Test whether the compiler implicitly links with -lc since on some
20330       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20331       # to ld, don't add -lc before -lgcc.
20332       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20333 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20334 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20335   $as_echo_n "(cached) " >&6
20336 else
20337   $RM conftest*
20338         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20339
20340         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20341   (eval $ac_compile) 2>&5
20342   ac_status=$?
20343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20344   test $ac_status = 0; } 2>conftest.err; then
20345           soname=conftest
20346           lib=conftest
20347           libobjs=conftest.$ac_objext
20348           deplibs=
20349           wl=$lt_prog_compiler_wl_CXX
20350           pic_flag=$lt_prog_compiler_pic_CXX
20351           compiler_flags=-v
20352           linker_flags=-v
20353           verstring=
20354           output_objdir=.
20355           libname=conftest
20356           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20357           allow_undefined_flag_CXX=
20358           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20359   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20360   ac_status=$?
20361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20362   test $ac_status = 0; }
20363           then
20364             lt_cv_archive_cmds_need_lc_CXX=no
20365           else
20366             lt_cv_archive_cmds_need_lc_CXX=yes
20367           fi
20368           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20369         else
20370           cat conftest.err 1>&5
20371         fi
20372         $RM conftest*
20373
20374 fi
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20376 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20377       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20378       ;;
20379     esac
20380   fi
20381   ;;
20382 esac
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20448 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20449
20450 library_names_spec=
20451 libname_spec='lib$name'
20452 soname_spec=
20453 shrext_cmds=".so"
20454 postinstall_cmds=
20455 postuninstall_cmds=
20456 finish_cmds=
20457 finish_eval=
20458 shlibpath_var=
20459 shlibpath_overrides_runpath=unknown
20460 version_type=none
20461 dynamic_linker="$host_os ld.so"
20462 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20463 need_lib_prefix=unknown
20464 hardcode_into_libs=no
20465
20466 # when you set need_version to no, make sure it does not cause -set_version
20467 # flags to be left without arguments
20468 need_version=unknown
20469
20470 case $host_os in
20471 aix3*)
20472   version_type=linux
20473   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20474   shlibpath_var=LIBPATH
20475
20476   # AIX 3 has no versioning support, so we append a major version to the name.
20477   soname_spec='${libname}${release}${shared_ext}$major'
20478   ;;
20479
20480 aix[4-9]*)
20481   version_type=linux
20482   need_lib_prefix=no
20483   need_version=no
20484   hardcode_into_libs=yes
20485   if test "$host_cpu" = ia64; then
20486     # AIX 5 supports IA64
20487     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20488     shlibpath_var=LD_LIBRARY_PATH
20489   else
20490     # With GCC up to 2.95.x, collect2 would create an import file
20491     # for dependence libraries.  The import file would start with
20492     # the line `#! .'.  This would cause the generated library to
20493     # depend on `.', always an invalid library.  This was fixed in
20494     # development snapshots of GCC prior to 3.0.
20495     case $host_os in
20496       aix4 | aix4.[01] | aix4.[01].*)
20497       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20498            echo ' yes '
20499            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20500         :
20501       else
20502         can_build_shared=no
20503       fi
20504       ;;
20505     esac
20506     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20507     # soname into executable. Probably we can add versioning support to
20508     # collect2, so additional links can be useful in future.
20509     if test "$aix_use_runtimelinking" = yes; then
20510       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20511       # instead of lib<name>.a to let people know that these are not
20512       # typical AIX shared libraries.
20513       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20514     else
20515       # We preserve .a as extension for shared libraries through AIX4.2
20516       # and later when we are not doing run time linking.
20517       library_names_spec='${libname}${release}.a $libname.a'
20518       soname_spec='${libname}${release}${shared_ext}$major'
20519     fi
20520     shlibpath_var=LIBPATH
20521   fi
20522   ;;
20523
20524 amigaos*)
20525   case $host_cpu in
20526   powerpc)
20527     # Since July 2007 AmigaOS4 officially supports .so libraries.
20528     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20530     ;;
20531   m68k)
20532     library_names_spec='$libname.ixlibrary $libname.a'
20533     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20534     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'
20535     ;;
20536   esac
20537   ;;
20538
20539 beos*)
20540   library_names_spec='${libname}${shared_ext}'
20541   dynamic_linker="$host_os ld.so"
20542   shlibpath_var=LIBRARY_PATH
20543   ;;
20544
20545 bsdi[45]*)
20546   version_type=linux
20547   need_version=no
20548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20549   soname_spec='${libname}${release}${shared_ext}$major'
20550   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20551   shlibpath_var=LD_LIBRARY_PATH
20552   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20553   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20554   # the default ld.so.conf also contains /usr/contrib/lib and
20555   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20556   # libtool to hard-code these into programs
20557   ;;
20558
20559 cygwin* | mingw* | pw32* | cegcc*)
20560   version_type=windows
20561   shrext_cmds=".dll"
20562   need_version=no
20563   need_lib_prefix=no
20564
20565   case $GCC,$host_os in
20566   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20567     library_names_spec='$libname.dll.a'
20568     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20569     postinstall_cmds='base_file=`basename \${file}`~
20570       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20571       dldir=$destdir/`dirname \$dlpath`~
20572       test -d \$dldir || mkdir -p \$dldir~
20573       $install_prog $dir/$dlname \$dldir/$dlname~
20574       chmod a+x \$dldir/$dlname~
20575       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20576         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20577       fi'
20578     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20579       dlpath=$dir/\$dldll~
20580        $RM \$dlpath'
20581     shlibpath_overrides_runpath=yes
20582
20583     case $host_os in
20584     cygwin*)
20585       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20586       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20587
20588       ;;
20589     mingw* | cegcc*)
20590       # MinGW DLLs use traditional 'lib' prefix
20591       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20592       ;;
20593     pw32*)
20594       # pw32 DLLs use 'pw' prefix rather than 'lib'
20595       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20596       ;;
20597     esac
20598     ;;
20599
20600   *)
20601     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20602     ;;
20603   esac
20604   dynamic_linker='Win32 ld.exe'
20605   # FIXME: first we should search . and the directory the executable is in
20606   shlibpath_var=PATH
20607   ;;
20608
20609 darwin* | rhapsody*)
20610   dynamic_linker="$host_os dyld"
20611   version_type=darwin
20612   need_lib_prefix=no
20613   need_version=no
20614   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20615   soname_spec='${libname}${release}${major}$shared_ext'
20616   shlibpath_overrides_runpath=yes
20617   shlibpath_var=DYLD_LIBRARY_PATH
20618   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20619
20620   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20621   ;;
20622
20623 dgux*)
20624   version_type=linux
20625   need_lib_prefix=no
20626   need_version=no
20627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20628   soname_spec='${libname}${release}${shared_ext}$major'
20629   shlibpath_var=LD_LIBRARY_PATH
20630   ;;
20631
20632 freebsd* | dragonfly*)
20633   # DragonFly does not have aout.  When/if they implement a new
20634   # versioning mechanism, adjust this.
20635   if test -x /usr/bin/objformat; then
20636     objformat=`/usr/bin/objformat`
20637   else
20638     case $host_os in
20639     freebsd[23].*) objformat=aout ;;
20640     *) objformat=elf ;;
20641     esac
20642   fi
20643   version_type=freebsd-$objformat
20644   case $version_type in
20645     freebsd-elf*)
20646       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20647       need_version=no
20648       need_lib_prefix=no
20649       ;;
20650     freebsd-*)
20651       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20652       need_version=yes
20653       ;;
20654   esac
20655   shlibpath_var=LD_LIBRARY_PATH
20656   case $host_os in
20657   freebsd2.*)
20658     shlibpath_overrides_runpath=yes
20659     ;;
20660   freebsd3.[01]* | freebsdelf3.[01]*)
20661     shlibpath_overrides_runpath=yes
20662     hardcode_into_libs=yes
20663     ;;
20664   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20665   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20666     shlibpath_overrides_runpath=no
20667     hardcode_into_libs=yes
20668     ;;
20669   *) # from 4.6 on, and DragonFly
20670     shlibpath_overrides_runpath=yes
20671     hardcode_into_libs=yes
20672     ;;
20673   esac
20674   ;;
20675
20676 gnu*)
20677   version_type=linux
20678   need_lib_prefix=no
20679   need_version=no
20680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20681   soname_spec='${libname}${release}${shared_ext}$major'
20682   shlibpath_var=LD_LIBRARY_PATH
20683   hardcode_into_libs=yes
20684   ;;
20685
20686 haiku*)
20687   version_type=linux
20688   need_lib_prefix=no
20689   need_version=no
20690   dynamic_linker="$host_os runtime_loader"
20691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20692   soname_spec='${libname}${release}${shared_ext}$major'
20693   shlibpath_var=LIBRARY_PATH
20694   shlibpath_overrides_runpath=yes
20695   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20696   hardcode_into_libs=yes
20697   ;;
20698
20699 hpux9* | hpux10* | hpux11*)
20700   # Give a soname corresponding to the major version so that dld.sl refuses to
20701   # link against other versions.
20702   version_type=sunos
20703   need_lib_prefix=no
20704   need_version=no
20705   case $host_cpu in
20706   ia64*)
20707     shrext_cmds='.so'
20708     hardcode_into_libs=yes
20709     dynamic_linker="$host_os dld.so"
20710     shlibpath_var=LD_LIBRARY_PATH
20711     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20713     soname_spec='${libname}${release}${shared_ext}$major'
20714     if test "X$HPUX_IA64_MODE" = X32; then
20715       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20716     else
20717       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20718     fi
20719     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20720     ;;
20721   hppa*64*)
20722     shrext_cmds='.sl'
20723     hardcode_into_libs=yes
20724     dynamic_linker="$host_os dld.sl"
20725     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20726     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728     soname_spec='${libname}${release}${shared_ext}$major'
20729     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20730     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20731     ;;
20732   *)
20733     shrext_cmds='.sl'
20734     dynamic_linker="$host_os dld.sl"
20735     shlibpath_var=SHLIB_PATH
20736     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20738     soname_spec='${libname}${release}${shared_ext}$major'
20739     ;;
20740   esac
20741   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20742   postinstall_cmds='chmod 555 $lib'
20743   # or fails outright, so override atomically:
20744   install_override_mode=555
20745   ;;
20746
20747 interix[3-9]*)
20748   version_type=linux
20749   need_lib_prefix=no
20750   need_version=no
20751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20752   soname_spec='${libname}${release}${shared_ext}$major'
20753   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20754   shlibpath_var=LD_LIBRARY_PATH
20755   shlibpath_overrides_runpath=no
20756   hardcode_into_libs=yes
20757   ;;
20758
20759 irix5* | irix6* | nonstopux*)
20760   case $host_os in
20761     nonstopux*) version_type=nonstopux ;;
20762     *)
20763         if test "$lt_cv_prog_gnu_ld" = yes; then
20764                 version_type=linux
20765         else
20766                 version_type=irix
20767         fi ;;
20768   esac
20769   need_lib_prefix=no
20770   need_version=no
20771   soname_spec='${libname}${release}${shared_ext}$major'
20772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20773   case $host_os in
20774   irix5* | nonstopux*)
20775     libsuff= shlibsuff=
20776     ;;
20777   *)
20778     case $LD in # libtool.m4 will add one of these switches to LD
20779     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20780       libsuff= shlibsuff= libmagic=32-bit;;
20781     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20782       libsuff=32 shlibsuff=N32 libmagic=N32;;
20783     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20784       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20785     *) libsuff= shlibsuff= libmagic=never-match;;
20786     esac
20787     ;;
20788   esac
20789   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20790   shlibpath_overrides_runpath=no
20791   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20792   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20793   hardcode_into_libs=yes
20794   ;;
20795
20796 # No shared lib support for Linux oldld, aout, or coff.
20797 linux*oldld* | linux*aout* | linux*coff*)
20798   dynamic_linker=no
20799   ;;
20800
20801 # This must be Linux ELF.
20802 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20803   version_type=linux
20804   need_lib_prefix=no
20805   need_version=no
20806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20807   soname_spec='${libname}${release}${shared_ext}$major'
20808   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20809   shlibpath_var=LD_LIBRARY_PATH
20810   shlibpath_overrides_runpath=no
20811
20812   # Some binutils ld are patched to set DT_RUNPATH
20813   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20814   $as_echo_n "(cached) " >&6
20815 else
20816   lt_cv_shlibpath_overrides_runpath=no
20817     save_LDFLAGS=$LDFLAGS
20818     save_libdir=$libdir
20819     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20820          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20822 /* end confdefs.h.  */
20823
20824 int
20825 main ()
20826 {
20827
20828   ;
20829   return 0;
20830 }
20831 _ACEOF
20832 if ac_fn_cxx_try_link "$LINENO"; then :
20833   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20834   lt_cv_shlibpath_overrides_runpath=yes
20835 fi
20836 fi
20837 rm -f core conftest.err conftest.$ac_objext \
20838     conftest$ac_exeext conftest.$ac_ext
20839     LDFLAGS=$save_LDFLAGS
20840     libdir=$save_libdir
20841
20842 fi
20843
20844   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20845
20846   # This implies no fast_install, which is unacceptable.
20847   # Some rework will be needed to allow for fast_install
20848   # before this can be enabled.
20849   hardcode_into_libs=yes
20850
20851   # Append ld.so.conf contents to the search path
20852   if test -f /etc/ld.so.conf; then
20853     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' ' '`
20854     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20855   fi
20856
20857   # We used to test for /lib/ld.so.1 and disable shared libraries on
20858   # powerpc, because MkLinux only supported shared libraries with the
20859   # GNU dynamic linker.  Since this was broken with cross compilers,
20860   # most powerpc-linux boxes support dynamic linking these days and
20861   # people can always --disable-shared, the test was removed, and we
20862   # assume the GNU/Linux dynamic linker is in use.
20863   dynamic_linker='GNU/Linux ld.so'
20864   ;;
20865
20866 netbsd*)
20867   version_type=sunos
20868   need_lib_prefix=no
20869   need_version=no
20870   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20872     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20873     dynamic_linker='NetBSD (a.out) ld.so'
20874   else
20875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20876     soname_spec='${libname}${release}${shared_ext}$major'
20877     dynamic_linker='NetBSD ld.elf_so'
20878   fi
20879   shlibpath_var=LD_LIBRARY_PATH
20880   shlibpath_overrides_runpath=yes
20881   hardcode_into_libs=yes
20882   ;;
20883
20884 newsos6)
20885   version_type=linux
20886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20887   shlibpath_var=LD_LIBRARY_PATH
20888   shlibpath_overrides_runpath=yes
20889   ;;
20890
20891 *nto* | *qnx*)
20892   version_type=qnx
20893   need_lib_prefix=no
20894   need_version=no
20895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20896   soname_spec='${libname}${release}${shared_ext}$major'
20897   shlibpath_var=LD_LIBRARY_PATH
20898   shlibpath_overrides_runpath=no
20899   hardcode_into_libs=yes
20900   dynamic_linker='ldqnx.so'
20901   ;;
20902
20903 openbsd*)
20904   version_type=sunos
20905   sys_lib_dlsearch_path_spec="/usr/lib"
20906   need_lib_prefix=no
20907   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20908   case $host_os in
20909     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20910     *)                          need_version=no  ;;
20911   esac
20912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20913   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20914   shlibpath_var=LD_LIBRARY_PATH
20915   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20916     case $host_os in
20917       openbsd2.[89] | openbsd2.[89].*)
20918         shlibpath_overrides_runpath=no
20919         ;;
20920       *)
20921         shlibpath_overrides_runpath=yes
20922         ;;
20923       esac
20924   else
20925     shlibpath_overrides_runpath=yes
20926   fi
20927   ;;
20928
20929 os2*)
20930   libname_spec='$name'
20931   shrext_cmds=".dll"
20932   need_lib_prefix=no
20933   library_names_spec='$libname${shared_ext} $libname.a'
20934   dynamic_linker='OS/2 ld.exe'
20935   shlibpath_var=LIBPATH
20936   ;;
20937
20938 osf3* | osf4* | osf5*)
20939   version_type=osf
20940   need_lib_prefix=no
20941   need_version=no
20942   soname_spec='${libname}${release}${shared_ext}$major'
20943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20944   shlibpath_var=LD_LIBRARY_PATH
20945   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20946   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20947   ;;
20948
20949 rdos*)
20950   dynamic_linker=no
20951   ;;
20952
20953 solaris*)
20954   version_type=linux
20955   need_lib_prefix=no
20956   need_version=no
20957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958   soname_spec='${libname}${release}${shared_ext}$major'
20959   shlibpath_var=LD_LIBRARY_PATH
20960   shlibpath_overrides_runpath=yes
20961   hardcode_into_libs=yes
20962   # ldd complains unless libraries are executable
20963   postinstall_cmds='chmod +x $lib'
20964   ;;
20965
20966 sunos4*)
20967   version_type=sunos
20968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20969   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20970   shlibpath_var=LD_LIBRARY_PATH
20971   shlibpath_overrides_runpath=yes
20972   if test "$with_gnu_ld" = yes; then
20973     need_lib_prefix=no
20974   fi
20975   need_version=yes
20976   ;;
20977
20978 sysv4 | sysv4.3*)
20979   version_type=linux
20980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20981   soname_spec='${libname}${release}${shared_ext}$major'
20982   shlibpath_var=LD_LIBRARY_PATH
20983   case $host_vendor in
20984     sni)
20985       shlibpath_overrides_runpath=no
20986       need_lib_prefix=no
20987       runpath_var=LD_RUN_PATH
20988       ;;
20989     siemens)
20990       need_lib_prefix=no
20991       ;;
20992     motorola)
20993       need_lib_prefix=no
20994       need_version=no
20995       shlibpath_overrides_runpath=no
20996       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20997       ;;
20998   esac
20999   ;;
21000
21001 sysv4*MP*)
21002   if test -d /usr/nec ;then
21003     version_type=linux
21004     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21005     soname_spec='$libname${shared_ext}.$major'
21006     shlibpath_var=LD_LIBRARY_PATH
21007   fi
21008   ;;
21009
21010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21011   version_type=freebsd-elf
21012   need_lib_prefix=no
21013   need_version=no
21014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21015   soname_spec='${libname}${release}${shared_ext}$major'
21016   shlibpath_var=LD_LIBRARY_PATH
21017   shlibpath_overrides_runpath=yes
21018   hardcode_into_libs=yes
21019   if test "$with_gnu_ld" = yes; then
21020     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21021   else
21022     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21023     case $host_os in
21024       sco3.2v5*)
21025         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21026         ;;
21027     esac
21028   fi
21029   sys_lib_dlsearch_path_spec='/usr/lib'
21030   ;;
21031
21032 tpf*)
21033   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21034   version_type=linux
21035   need_lib_prefix=no
21036   need_version=no
21037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21038   shlibpath_var=LD_LIBRARY_PATH
21039   shlibpath_overrides_runpath=no
21040   hardcode_into_libs=yes
21041   ;;
21042
21043 uts4*)
21044   version_type=linux
21045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21046   soname_spec='${libname}${release}${shared_ext}$major'
21047   shlibpath_var=LD_LIBRARY_PATH
21048   ;;
21049
21050 *)
21051   dynamic_linker=no
21052   ;;
21053 esac
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21055 $as_echo "$dynamic_linker" >&6; }
21056 test "$dynamic_linker" = no && can_build_shared=no
21057
21058 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21059 if test "$GCC" = yes; then
21060   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21061 fi
21062
21063 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21064   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21065 fi
21066 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21067   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21068 fi
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21109 hardcode_action_CXX=
21110 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21111    test -n "$runpath_var_CXX" ||
21112    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21113
21114   # We can hardcode non-existent directories.
21115   if test "$hardcode_direct_CXX" != no &&
21116      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21117      # have to relink, otherwise we might link with an installed library
21118      # when we should be linking with a yet-to-be-installed one
21119      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21120      test "$hardcode_minus_L_CXX" != no; then
21121     # Linking always hardcodes the temporary library directory.
21122     hardcode_action_CXX=relink
21123   else
21124     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21125     hardcode_action_CXX=immediate
21126   fi
21127 else
21128   # We cannot hardcode anything, or else we can only hardcode existing
21129   # directories.
21130   hardcode_action_CXX=unsupported
21131 fi
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21133 $as_echo "$hardcode_action_CXX" >&6; }
21134
21135 if test "$hardcode_action_CXX" = relink ||
21136    test "$inherit_rpath_CXX" = yes; then
21137   # Fast installation is not supported
21138   enable_fast_install=no
21139 elif test "$shlibpath_overrides_runpath" = yes ||
21140      test "$enable_shared" = no; then
21141   # Fast installation is not necessary
21142   enable_fast_install=needless
21143 fi
21144
21145
21146
21147
21148
21149
21150
21151   fi # test -n "$compiler"
21152
21153   CC=$lt_save_CC
21154   LDCXX=$LD
21155   LD=$lt_save_LD
21156   GCC=$lt_save_GCC
21157   with_gnu_ld=$lt_save_with_gnu_ld
21158   lt_cv_path_LDCXX=$lt_cv_path_LD
21159   lt_cv_path_LD=$lt_save_path_LD
21160   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21161   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21162 fi # test "$_lt_caught_CXX_error" != yes
21163
21164 ac_ext=c
21165 ac_cpp='$CPP $CPPFLAGS'
21166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185 # Only expand once:
21186
21187
21188
21189
21190
21191 # Identify the assembler which will work hand-in-glove with the newly
21192 # built GCC, so that we can examine its features.  This is the assembler
21193 # which will be driven by the driver program.
21194 #
21195 # If build != host, and we aren't building gas in-tree, we identify a
21196 # build->target assembler and hope that it will have the same features
21197 # as the host->target assembler we'll be using.
21198 gcc_cv_gas_major_version=
21199 gcc_cv_gas_minor_version=
21200 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21201
21202 if test "${gcc_cv_as+set}" = set; then :
21203
21204 else
21205
21206 if test -x "$DEFAULT_ASSEMBLER"; then
21207         gcc_cv_as="$DEFAULT_ASSEMBLER"
21208 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21209      && test -f ../gas/Makefile \
21210      && test x$build = x$host; then
21211         gcc_cv_as=../gas/as-new$build_exeext
21212 elif test -x as$build_exeext; then
21213         # Build using assembler in the current directory.
21214         gcc_cv_as=./as$build_exeext
21215 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21216         gcc_cv_as="$AS_FOR_TARGET"
21217 else
21218         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21219 set dummy $AS_FOR_TARGET; ac_word=$2
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21221 $as_echo_n "checking for $ac_word... " >&6; }
21222 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21223   $as_echo_n "(cached) " >&6
21224 else
21225   case $gcc_cv_as in
21226   [\\/]* | ?:[\\/]*)
21227   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21228   ;;
21229   *)
21230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21231 for as_dir in $PATH
21232 do
21233   IFS=$as_save_IFS
21234   test -z "$as_dir" && as_dir=.
21235     for ac_exec_ext in '' $ac_executable_extensions; do
21236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21237     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21239     break 2
21240   fi
21241 done
21242   done
21243 IFS=$as_save_IFS
21244
21245   ;;
21246 esac
21247 fi
21248 gcc_cv_as=$ac_cv_path_gcc_cv_as
21249 if test -n "$gcc_cv_as"; then
21250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21251 $as_echo "$gcc_cv_as" >&6; }
21252 else
21253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21254 $as_echo "no" >&6; }
21255 fi
21256
21257
21258 fi
21259 fi
21260
21261 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21262
21263 case "$ORIGINAL_AS_FOR_TARGET" in
21264   ./as | ./as$build_exeext) ;;
21265   *) ac_config_files="$ac_config_files as:exec-tool.in"
21266  ;;
21267 esac
21268
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21270 $as_echo_n "checking what assembler to use... " >&6; }
21271 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21272   # Single tree build which includes gas.  We want to prefer it
21273   # over whatever linker top-level may have detected, since
21274   # we'll use what we're building after installation anyway.
21275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21276 $as_echo "newly built gas" >&6; }
21277   in_tree_gas=yes
21278   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21279 for f in $gcc_cv_as_bfd_srcdir/configure \
21280          $gcc_cv_as_gas_srcdir/configure \
21281          $gcc_cv_as_gas_srcdir/configure.in \
21282          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21283   gcc_cv_gas_version=`sed -n -e 's/^[   ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21284   if test x$gcc_cv_gas_version != x; then
21285     break
21286   fi
21287 done
21288 case $gcc_cv_gas_version in
21289   VERSION=[0-9]*) ;;
21290   *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21291 esac
21292 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21293 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21294 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21295 case $gcc_cv_gas_patch_version in
21296   "") gcc_cv_gas_patch_version="0" ;;
21297 esac
21298 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21299                             + $gcc_cv_gas_minor_version \) \* 1000 \
21300                             + $gcc_cv_gas_patch_version`
21301
21302   in_tree_gas_is_elf=no
21303   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21304      || (grep 'obj_format = multi' ../gas/Makefile \
21305          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21306   then
21307     in_tree_gas_is_elf=yes
21308   fi
21309 else
21310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21311 $as_echo "$gcc_cv_as" >&6; }
21312   in_tree_gas=no
21313 fi
21314
21315 # Identify the linker which will work hand-in-glove with the newly
21316 # built GCC, so that we can examine its features.  This is the linker
21317 # which will be driven by the driver program.
21318 #
21319 # If build != host, and we aren't building gas in-tree, we identify a
21320 # build->target linker and hope that it will have the same features
21321 # as the host->target linker we'll be using.
21322 gcc_cv_gld_major_version=
21323 gcc_cv_gld_minor_version=
21324 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21325 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21326
21327 if test "${gcc_cv_ld+set}" = set; then :
21328
21329 else
21330
21331 if test -x "$DEFAULT_LINKER"; then
21332         gcc_cv_ld="$DEFAULT_LINKER"
21333 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21334      && test -f ../ld/Makefile \
21335      && test x$build = x$host; then
21336         gcc_cv_ld=../ld/ld-new$build_exeext
21337 elif test -x collect-ld$build_exeext; then
21338         # Build using linker in the current directory.
21339         gcc_cv_ld=./collect-ld$build_exeext
21340 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21341         gcc_cv_ld="$LD_FOR_TARGET"
21342 else
21343         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21344 set dummy $LD_FOR_TARGET; ac_word=$2
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21346 $as_echo_n "checking for $ac_word... " >&6; }
21347 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21348   $as_echo_n "(cached) " >&6
21349 else
21350   case $gcc_cv_ld in
21351   [\\/]* | ?:[\\/]*)
21352   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21353   ;;
21354   *)
21355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21356 for as_dir in $PATH
21357 do
21358   IFS=$as_save_IFS
21359   test -z "$as_dir" && as_dir=.
21360     for ac_exec_ext in '' $ac_executable_extensions; do
21361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21362     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21364     break 2
21365   fi
21366 done
21367   done
21368 IFS=$as_save_IFS
21369
21370   ;;
21371 esac
21372 fi
21373 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21374 if test -n "$gcc_cv_ld"; then
21375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21376 $as_echo "$gcc_cv_ld" >&6; }
21377 else
21378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21379 $as_echo "no" >&6; }
21380 fi
21381
21382
21383 fi
21384 fi
21385
21386 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21387 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21388 # if the PLUGIN_LD is set ld-new, just have it as ld
21389 # as that is the installed named.
21390 if test x$PLUGIN_LD_SUFFIX = xld-new \
21391    || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21392   PLUGIN_LD_SUFFIX=ld
21393 fi
21394
21395 # Check whether --with-plugin-ld was given.
21396 if test "${with_plugin_ld+set}" = set; then :
21397   withval=$with_plugin_ld; if test x"$withval" != x; then
21398    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21399    PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21400  fi
21401 fi
21402
21403
21404
21405 cat >>confdefs.h <<_ACEOF
21406 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21407 _ACEOF
21408
21409
21410 # Check to see if we are using gold instead of ld
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21412 $as_echo_n "checking whether we are using gold... " >&6; }
21413 ld_is_gold=no
21414 if test x$gcc_cv_ld != x; then
21415   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21416      | grep "GNU gold" > /dev/null; then
21417     ld_is_gold=yes
21418   fi
21419 fi
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21421 $as_echo "$ld_is_gold" >&6; }
21422
21423 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21424
21425 case "$ORIGINAL_LD_FOR_TARGET" in
21426   ./collect-ld | ./collect-ld$build_exeext) ;;
21427   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21428  ;;
21429 esac
21430
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21432 $as_echo_n "checking what linker to use... " >&6; }
21433 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21434    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21435         # Single tree build which includes ld.  We want to prefer it
21436         # over whatever linker top-level may have detected, since
21437         # we'll use what we're building after installation anyway.
21438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21439 $as_echo "newly built ld" >&6; }
21440         in_tree_ld=yes
21441         in_tree_ld_is_elf=no
21442         if (grep 'EMUL = .*elf' ../ld/Makefile \
21443             || grep 'EMUL = .*linux' ../ld/Makefile \
21444             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21445           in_tree_ld_is_elf=yes
21446         elif test "$ld_is_gold" = yes; then
21447           in_tree_ld_is_elf=yes
21448         fi
21449         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
21450         do
21451                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21452                 if test x$gcc_cv_gld_version != x; then
21453                         break
21454                 fi
21455         done
21456         case $gcc_cv_gld_version in
21457           VERSION=[0-9]*) ;;
21458           *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21459         esac
21460         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21461         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21462 else
21463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21464 $as_echo "$gcc_cv_ld" >&6; }
21465         in_tree_ld=no
21466 fi
21467
21468 # Figure out what nm we will be using.
21469 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21470 if test "${gcc_cv_nm+set}" = set; then :
21471
21472 else
21473
21474 if test -f $gcc_cv_binutils_srcdir/configure.in \
21475      && test -f ../binutils/Makefile \
21476      && test x$build = x$host; then
21477         gcc_cv_nm=../binutils/nm-new$build_exeext
21478 elif test -x nm$build_exeext; then
21479         gcc_cv_nm=./nm$build_exeext
21480 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21481         gcc_cv_nm="$NM_FOR_TARGET"
21482 else
21483         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21484 set dummy $NM_FOR_TARGET; ac_word=$2
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21486 $as_echo_n "checking for $ac_word... " >&6; }
21487 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21488   $as_echo_n "(cached) " >&6
21489 else
21490   case $gcc_cv_nm in
21491   [\\/]* | ?:[\\/]*)
21492   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21493   ;;
21494   *)
21495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21496 for as_dir in $PATH
21497 do
21498   IFS=$as_save_IFS
21499   test -z "$as_dir" && as_dir=.
21500     for ac_exec_ext in '' $ac_executable_extensions; do
21501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21502     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21504     break 2
21505   fi
21506 done
21507   done
21508 IFS=$as_save_IFS
21509
21510   ;;
21511 esac
21512 fi
21513 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21514 if test -n "$gcc_cv_nm"; then
21515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21516 $as_echo "$gcc_cv_nm" >&6; }
21517 else
21518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21519 $as_echo "no" >&6; }
21520 fi
21521
21522
21523 fi
21524 fi
21525
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21527 $as_echo_n "checking what nm to use... " >&6; }
21528 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21529         # Single tree build which includes binutils.
21530         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21531 $as_echo "newly built nm" >&6; }
21532         in_tree_nm=yes
21533 else
21534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21535 $as_echo "$gcc_cv_nm" >&6; }
21536         in_tree_nm=no
21537 fi
21538
21539 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21540
21541 case "$ORIGINAL_NM_FOR_TARGET" in
21542   ./nm | ./nm$build_exeext) ;;
21543   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21544  ;;
21545 esac
21546
21547
21548 # Figure out what objdump we will be using.
21549 if test "${gcc_cv_objdump+set}" = set; then :
21550
21551 else
21552
21553 if test -f $gcc_cv_binutils_srcdir/configure.in \
21554      && test -f ../binutils/Makefile \
21555      && test x$build = x$host; then
21556         # Single tree build which includes binutils.
21557         gcc_cv_objdump=../binutils/objdump$build_exeext
21558 elif test -x objdump$build_exeext; then
21559         gcc_cv_objdump=./objdump$build_exeext
21560 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21561         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21562 else
21563         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21564 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21566 $as_echo_n "checking for $ac_word... " >&6; }
21567 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21568   $as_echo_n "(cached) " >&6
21569 else
21570   case $gcc_cv_objdump in
21571   [\\/]* | ?:[\\/]*)
21572   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21573   ;;
21574   *)
21575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21576 for as_dir in $PATH
21577 do
21578   IFS=$as_save_IFS
21579   test -z "$as_dir" && as_dir=.
21580     for ac_exec_ext in '' $ac_executable_extensions; do
21581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21582     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21584     break 2
21585   fi
21586 done
21587   done
21588 IFS=$as_save_IFS
21589
21590   ;;
21591 esac
21592 fi
21593 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21594 if test -n "$gcc_cv_objdump"; then
21595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21596 $as_echo "$gcc_cv_objdump" >&6; }
21597 else
21598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21599 $as_echo "no" >&6; }
21600 fi
21601
21602
21603 fi
21604 fi
21605
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21607 $as_echo_n "checking what objdump to use... " >&6; }
21608 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21609         # Single tree build which includes binutils.
21610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21611 $as_echo "newly built objdump" >&6; }
21612 elif test x$gcc_cv_objdump = x; then
21613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21614 $as_echo "not found" >&6; }
21615 else
21616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21617 $as_echo "$gcc_cv_objdump" >&6; }
21618 fi
21619
21620 # Figure out what readelf we will be using.
21621 if test "${gcc_cv_readelf+set}" = set; then :
21622
21623 else
21624
21625 if test -f $gcc_cv_binutils_srcdir/configure.in \
21626      && test -f ../binutils/Makefile \
21627      && test x$build = x$host; then
21628         # Single tree build which includes binutils.
21629         gcc_cv_readelf=../binutils/readelf$build_exeext
21630 elif test -x readelf$build_exeext; then
21631         gcc_cv_readelf=./readelf$build_exeext
21632 else
21633         # Extract the first word of "readelf", so it can be a program name with args.
21634 set dummy readelf; ac_word=$2
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21636 $as_echo_n "checking for $ac_word... " >&6; }
21637 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21638   $as_echo_n "(cached) " >&6
21639 else
21640   case $gcc_cv_readelf in
21641   [\\/]* | ?:[\\/]*)
21642   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21643   ;;
21644   *)
21645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21646 for as_dir in $PATH
21647 do
21648   IFS=$as_save_IFS
21649   test -z "$as_dir" && as_dir=.
21650     for ac_exec_ext in '' $ac_executable_extensions; do
21651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21652     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21654     break 2
21655   fi
21656 done
21657   done
21658 IFS=$as_save_IFS
21659
21660   ;;
21661 esac
21662 fi
21663 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21664 if test -n "$gcc_cv_readelf"; then
21665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21666 $as_echo "$gcc_cv_readelf" >&6; }
21667 else
21668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21669 $as_echo "no" >&6; }
21670 fi
21671
21672
21673 fi
21674 fi
21675
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21677 $as_echo_n "checking what readelf to use... " >&6; }
21678 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21679         # Single tree build which includes binutils.
21680         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21681 $as_echo "newly built readelf" >&6; }
21682 elif test x$gcc_cv_readelf = x; then
21683         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21684 $as_echo "not found" >&6; }
21685 else
21686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21687 $as_echo "$gcc_cv_readelf" >&6; }
21688 fi
21689
21690 # Figure out what assembler alignment features are present.
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21692 $as_echo_n "checking assembler flags... " >&6; }
21693 if test "${gcc_cv_as_flags+set}" = set; then :
21694   $as_echo_n "(cached) " >&6
21695 else
21696    case "$target" in
21697   i[34567]86-*-linux*)
21698         gcc_cv_as_flags="--32"
21699     ;;
21700   powerpc*-*-darwin*)
21701         gcc_cv_as_flags="-arch ppc"
21702     ;;
21703   *)
21704     gcc_cv_as_flags=" "
21705     ;;
21706   esac
21707 fi
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21709 $as_echo "$gcc_cv_as_flags" >&6; }
21710
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21712 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21713 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21714   $as_echo_n "(cached) " >&6
21715 else
21716   gcc_cv_as_balign_and_p2align=no
21717     if test $in_tree_gas = yes; then
21718     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21719   then gcc_cv_as_balign_and_p2align=yes
21720 fi
21721   elif test x$gcc_cv_as != x; then
21722     $as_echo '.balign 4
21723 .p2align 2' > conftest.s
21724     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21725   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21726   (eval $ac_try) 2>&5
21727   ac_status=$?
21728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21729   test $ac_status = 0; }; }
21730     then
21731         gcc_cv_as_balign_and_p2align=yes
21732     else
21733       echo "configure: failed program was" >&5
21734       cat conftest.s >&5
21735     fi
21736     rm -f conftest.o conftest.s
21737   fi
21738 fi
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21740 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21741 if test $gcc_cv_as_balign_and_p2align = yes; then
21742
21743 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21744
21745 fi
21746
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21748 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21749 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21750   $as_echo_n "(cached) " >&6
21751 else
21752   gcc_cv_as_max_skip_p2align=no
21753     if test $in_tree_gas = yes; then
21754     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21755   then gcc_cv_as_max_skip_p2align=yes
21756 fi
21757   elif test x$gcc_cv_as != x; then
21758     $as_echo '.p2align 4,,7' > conftest.s
21759     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21760   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21761   (eval $ac_try) 2>&5
21762   ac_status=$?
21763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21764   test $ac_status = 0; }; }
21765     then
21766         gcc_cv_as_max_skip_p2align=yes
21767     else
21768       echo "configure: failed program was" >&5
21769       cat conftest.s >&5
21770     fi
21771     rm -f conftest.o conftest.s
21772   fi
21773 fi
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21775 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21776 if test $gcc_cv_as_max_skip_p2align = yes; then
21777
21778 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21779
21780 fi
21781
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21783 $as_echo_n "checking assembler for .literal16... " >&6; }
21784 if test "${gcc_cv_as_literal16+set}" = set; then :
21785   $as_echo_n "(cached) " >&6
21786 else
21787   gcc_cv_as_literal16=no
21788     if test $in_tree_gas = yes; then
21789     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21790   then gcc_cv_as_literal16=yes
21791 fi
21792   elif test x$gcc_cv_as != x; then
21793     $as_echo '.literal16' > conftest.s
21794     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21795   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21796   (eval $ac_try) 2>&5
21797   ac_status=$?
21798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21799   test $ac_status = 0; }; }
21800     then
21801         gcc_cv_as_literal16=yes
21802     else
21803       echo "configure: failed program was" >&5
21804       cat conftest.s >&5
21805     fi
21806     rm -f conftest.o conftest.s
21807   fi
21808 fi
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21810 $as_echo "$gcc_cv_as_literal16" >&6; }
21811 if test $gcc_cv_as_literal16 = yes; then
21812
21813 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21814
21815 fi
21816
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21818 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21819 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21820   $as_echo_n "(cached) " >&6
21821 else
21822   gcc_cv_as_subsection_m1=no
21823     if test $in_tree_gas = yes; then
21824     if test $in_tree_gas_is_elf = yes \
21825   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21826   then gcc_cv_as_subsection_m1=yes
21827 fi
21828   elif test x$gcc_cv_as != x; then
21829     $as_echo 'conftest_label1: .word 0
21830 .subsection -1
21831 conftest_label2: .word 0
21832 .previous' > conftest.s
21833     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21834   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21835   (eval $ac_try) 2>&5
21836   ac_status=$?
21837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21838   test $ac_status = 0; }; }
21839     then
21840         if test x$gcc_cv_nm != x; then
21841     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21842     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21843     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21844     then :
21845     else gcc_cv_as_subsection_m1=yes
21846     fi
21847     rm -f conftest.nm1 conftest.nm2
21848   fi
21849     else
21850       echo "configure: failed program was" >&5
21851       cat conftest.s >&5
21852     fi
21853     rm -f conftest.o conftest.s
21854   fi
21855 fi
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21857 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21858 if test $gcc_cv_as_subsection_m1 = yes; then
21859
21860 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21861
21862 fi
21863
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21865 $as_echo_n "checking assembler for .weak... " >&6; }
21866 if test "${gcc_cv_as_weak+set}" = set; then :
21867   $as_echo_n "(cached) " >&6
21868 else
21869   gcc_cv_as_weak=no
21870     if test $in_tree_gas = yes; then
21871     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21872   then gcc_cv_as_weak=yes
21873 fi
21874   elif test x$gcc_cv_as != x; then
21875     $as_echo '  .weak foobar' > conftest.s
21876     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21877   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21878   (eval $ac_try) 2>&5
21879   ac_status=$?
21880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21881   test $ac_status = 0; }; }
21882     then
21883         gcc_cv_as_weak=yes
21884     else
21885       echo "configure: failed program was" >&5
21886       cat conftest.s >&5
21887     fi
21888     rm -f conftest.o conftest.s
21889   fi
21890 fi
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21892 $as_echo "$gcc_cv_as_weak" >&6; }
21893 if test $gcc_cv_as_weak = yes; then
21894
21895 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21896
21897 fi
21898
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21900 $as_echo_n "checking assembler for .weakref... " >&6; }
21901 if test "${gcc_cv_as_weakref+set}" = set; then :
21902   $as_echo_n "(cached) " >&6
21903 else
21904   gcc_cv_as_weakref=no
21905     if test $in_tree_gas = yes; then
21906     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21907   then gcc_cv_as_weakref=yes
21908 fi
21909   elif test x$gcc_cv_as != x; then
21910     $as_echo '  .weakref foobar, barfnot' > conftest.s
21911     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21912   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21913   (eval $ac_try) 2>&5
21914   ac_status=$?
21915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21916   test $ac_status = 0; }; }
21917     then
21918         gcc_cv_as_weakref=yes
21919     else
21920       echo "configure: failed program was" >&5
21921       cat conftest.s >&5
21922     fi
21923     rm -f conftest.o conftest.s
21924   fi
21925 fi
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21927 $as_echo "$gcc_cv_as_weakref" >&6; }
21928 if test $gcc_cv_as_weakref = yes; then
21929
21930 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21931
21932 fi
21933
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21935 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21936 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21937   $as_echo_n "(cached) " >&6
21938 else
21939   gcc_cv_as_nsubspa_comdat=no
21940     if test $in_tree_gas = yes; then
21941     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21942   then gcc_cv_as_nsubspa_comdat=yes
21943 fi
21944   elif test x$gcc_cv_as != x; then
21945     $as_echo '  .SPACE $TEXT$
21946         .NSUBSPA $CODE$,COMDAT' > conftest.s
21947     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21948   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21949   (eval $ac_try) 2>&5
21950   ac_status=$?
21951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21952   test $ac_status = 0; }; }
21953     then
21954         gcc_cv_as_nsubspa_comdat=yes
21955     else
21956       echo "configure: failed program was" >&5
21957       cat conftest.s >&5
21958     fi
21959     rm -f conftest.o conftest.s
21960   fi
21961 fi
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21963 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21964 if test $gcc_cv_as_nsubspa_comdat = yes; then
21965
21966 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21967
21968 fi
21969
21970 # .hidden needs to be supported in both the assembler and the linker,
21971 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21972 # This is irritatingly difficult to feature test for; we have to check the
21973 # date string after the version number.  If we've got an in-tree
21974 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21975 # to be safe.
21976 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21978 $as_echo_n "checking assembler for .hidden... " >&6; }
21979 if test "${gcc_cv_as_hidden+set}" = set; then :
21980   $as_echo_n "(cached) " >&6
21981 else
21982   gcc_cv_as_hidden=no
21983     if test $in_tree_gas = yes; then
21984     if test $in_tree_gas_is_elf = yes \
21985   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21986   then gcc_cv_as_hidden=yes
21987 fi
21988   elif test x$gcc_cv_as != x; then
21989     $as_echo '  .hidden foobar
21990 foobar:' > conftest.s
21991     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21992   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21993   (eval $ac_try) 2>&5
21994   ac_status=$?
21995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21996   test $ac_status = 0; }; }
21997     then
21998
21999 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22000 # STV_HIDDEN, so disable .hidden support if so.
22001 case "${target}" in
22002   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22003     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22004       cat > conftest.s <<EOF
22005 .globl hidden
22006         .hidden hidden
22007 hidden:
22008 .globl default
22009         .set    default,hidden
22010 EOF
22011       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22012         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22013         grep '\.hidden default' > /dev/null; then
22014         gcc_cv_as_hidden=no
22015       else
22016         gcc_cv_as_hidden=yes
22017       fi
22018     else
22019       # Assume bug is present if objdump is missing.
22020       gcc_cv_as_hidden=no
22021     fi
22022     ;;
22023   *)
22024     gcc_cv_as_hidden=yes
22025     ;;
22026 esac
22027     else
22028       echo "configure: failed program was" >&5
22029       cat conftest.s >&5
22030     fi
22031     rm -f conftest.o conftest.s
22032   fi
22033 fi
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22035 $as_echo "$gcc_cv_as_hidden" >&6; }
22036
22037 case "${target}" in
22038   *-*-darwin*)
22039     # Darwin as has some visibility support, though with a different syntax.
22040     gcc_cv_as_hidden=yes
22041     ;;
22042 esac
22043
22044 # gnu_indirect_function type is an extension proposed at
22045 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22046 # selection of function implementation
22047 # Check whether --enable-gnu-indirect-function was given.
22048 if test "${enable_gnu_indirect_function+set}" = set; then :
22049   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22050     yes | no) ;;
22051     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22052 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22053   esac
22054 else
22055   enable_gnu_indirect_function="$default_gnu_indirect_function"
22056 fi
22057
22058 if test x$enable_gnu_indirect_function = xyes; then
22059
22060 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22061
22062 fi
22063
22064 if test $in_tree_ld != yes ; then
22065   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22066   if echo "$ld_ver" | grep GNU > /dev/null; then
22067     if test x"$ld_is_gold" = xyes; then
22068       # GNU gold --version looks like this:
22069       #
22070       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22071       #
22072       # We extract the binutils version which is more familiar and specific
22073       # than the gold version.
22074       ld_vers=`echo $ld_ver | sed -n \
22075           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22076     else
22077       # GNU ld --version looks like this:
22078       #
22079       # GNU ld (GNU Binutils) 2.21.51.20110225
22080       ld_vers=`echo $ld_ver | sed -n \
22081           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22082     fi
22083     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'`
22084     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22085     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22086     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22087   else
22088     case "${target}" in
22089       *-*-solaris2*)
22090         # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22091         # format.
22092         #
22093         # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22094         # /usr/ccs/bin/ld has been configured.
22095         ld_ver=`$gcc_cv_ld -V 2>&1`
22096         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22097           ld_vers=`echo $ld_ver | sed -n \
22098             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22099           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22100           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22101         fi
22102         ;;
22103     esac
22104   fi
22105 fi
22106
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22108 $as_echo_n "checking linker for .hidden support... " >&6; }
22109 if test "${gcc_cv_ld_hidden+set}" = set; then :
22110   $as_echo_n "(cached) " >&6
22111 else
22112   if test $in_tree_ld = yes ; then
22113   gcc_cv_ld_hidden=no
22114   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 \
22115      && test $in_tree_ld_is_elf = yes; then
22116      gcc_cv_ld_hidden=yes
22117   fi
22118 else
22119   gcc_cv_ld_hidden=yes
22120   if test x"$ld_is_gold" = xyes; then
22121     :
22122   elif echo "$ld_ver" | grep GNU > /dev/null; then
22123     case "${target}" in
22124       mmix-knuth-mmixware)
22125         # The linker emits by default mmo, not ELF, so "no" is appropriate.
22126         gcc_cv_ld_hidden=no
22127         ;;
22128     esac
22129     if test 0"$ld_date" -lt 20020404; then
22130       if test -n "$ld_date"; then
22131         # If there was date string, but was earlier than 2002-04-04, fail
22132         gcc_cv_ld_hidden=no
22133       elif test -z "$ld_vers"; then
22134         # If there was no date string nor ld version number, something is wrong
22135         gcc_cv_ld_hidden=no
22136       else
22137         test -z "$ld_vers_patch" && ld_vers_patch=0
22138         if test "$ld_vers_major" -lt 2; then
22139           gcc_cv_ld_hidden=no
22140         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22141           gcc_cv_ld_hidden="no"
22142         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22143           gcc_cv_ld_hidden=no
22144         fi
22145       fi
22146     fi
22147   else
22148     case "${target}" in
22149       *-*-darwin*)
22150         # Darwin ld has some visibility support.
22151         gcc_cv_ld_hidden=yes
22152         ;;
22153       hppa64*-*-hpux* | ia64*-*-hpux*)
22154         gcc_cv_ld_hidden=yes
22155         ;;
22156       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22157         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22158         # .symbolic was only added in Solaris 9 12/02.
22159         gcc_cv_ld_hidden=yes
22160         ;;
22161       *)
22162         gcc_cv_ld_hidden=no
22163         ;;
22164     esac
22165   fi
22166 fi
22167 fi
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22169 $as_echo "$gcc_cv_ld_hidden" >&6; }
22170 libgcc_visibility=no
22171
22172
22173 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22174   libgcc_visibility=yes
22175
22176 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22177
22178 fi
22179
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22181 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22182 gcc_cv_ld_ro_rw_mix=unknown
22183 if test $in_tree_ld = yes ; then
22184   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 \
22185      && test $in_tree_ld_is_elf = yes; then
22186     gcc_cv_ld_ro_rw_mix=read-write
22187   fi
22188 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22189   echo '.section myfoosect, "a"' > conftest1.s
22190   echo '.section myfoosect, "aw"' > conftest2.s
22191   echo '.byte 1' >> conftest2.s
22192   echo '.section myfoosect, "a"' > conftest3.s
22193   echo '.byte 0' >> conftest3.s
22194   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22195      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22196      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22197      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22198         conftest2.o conftest3.o > /dev/null 2>&1; then
22199     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22200                          | sed -e '/myfoosect/!d' -e N`
22201     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22202       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22203         gcc_cv_ld_ro_rw_mix=read-only
22204       else
22205         gcc_cv_ld_ro_rw_mix=read-write
22206       fi
22207     fi
22208   fi
22209   rm -f conftest.* conftest[123].*
22210 fi
22211 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22212
22213 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22214
22215 fi
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22217 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22218
22219 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22220   case "${target}" in
22221     *-*-solaris2*)
22222       #
22223       # Solaris 2 ld -V output looks like this for a regular version:
22224       #
22225       # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22226       #
22227       # but test versions add stuff at the end:
22228       #
22229       # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22230       #
22231       gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22232       if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22233         gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22234           -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22235         gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22236         gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22237       fi
22238       ;;
22239   esac
22240 fi
22241
22242 # Check whether --enable-initfini-array was given.
22243 if test "${enable_initfini_array+set}" = set; then :
22244   enableval=$enable_initfini_array;
22245 else
22246
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22248 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22249 if test "${gcc_cv_initfini_array+set}" = set; then :
22250   $as_echo_n "(cached) " >&6
22251 else
22252     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22253     case "${target}" in
22254       ia64-*)
22255         if test "$cross_compiling" = yes; then :
22256   gcc_cv_initfini_array=no
22257 else
22258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22259 /* end confdefs.h.  */
22260
22261 #ifndef __ELF__
22262 #error Not an ELF OS
22263 #endif
22264 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22265    if it can be used.  */
22266 static int x = -1;
22267 int main (void) { return x; }
22268 int foo (void) { x = 0; }
22269 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22270
22271 _ACEOF
22272 if ac_fn_c_try_run "$LINENO"; then :
22273   gcc_cv_initfini_array=yes
22274 else
22275   gcc_cv_initfini_array=no
22276 fi
22277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22278   conftest.$ac_objext conftest.beam conftest.$ac_ext
22279 fi
22280 ;;
22281       *)
22282         gcc_cv_initfini_array=no
22283         if test $in_tree_ld = yes ; then
22284           if test "$gcc_cv_gld_major_version" -eq 2 \
22285              -a "$gcc_cv_gld_minor_version" -ge 22 \
22286              -o "$gcc_cv_gld_major_version" -gt 2 \
22287              && test $in_tree_ld_is_elf = yes; then
22288             gcc_cv_initfini_array=yes
22289           fi
22290         elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22291           cat > conftest.s <<\EOF
22292 .section .dtors,"a",%progbits
22293 .balign 4
22294 .byte 'A', 'A', 'A', 'A'
22295 .section .ctors,"a",%progbits
22296 .balign 4
22297 .byte 'B', 'B', 'B', 'B'
22298 .section .fini_array.65530,"a",%progbits
22299 .balign 4
22300 .byte 'C', 'C', 'C', 'C'
22301 .section .init_array.65530,"a",%progbits
22302 .balign 4
22303 .byte 'D', 'D', 'D', 'D'
22304 .section .dtors.64528,"a",%progbits
22305 .balign 4
22306 .byte 'E', 'E', 'E', 'E'
22307 .section .ctors.64528,"a",%progbits
22308 .balign 4
22309 .byte 'F', 'F', 'F', 'F'
22310 .section .fini_array.01005,"a",%progbits
22311 .balign 4
22312 .byte 'G', 'G', 'G', 'G'
22313 .section .init_array.01005,"a",%progbits
22314 .balign 4
22315 .byte 'H', 'H', 'H', 'H'
22316 .text
22317 .globl _start
22318 _start:
22319 EOF
22320           if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22321              && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22322              && $gcc_cv_objdump -s -j .init_array conftest \
22323                 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22324              && $gcc_cv_objdump -s -j .fini_array conftest \
22325                 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22326             gcc_cv_initfini_array=yes
22327           fi
22328           rm -f conftest conftest.*
22329         fi
22330         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22331 /* end confdefs.h.  */
22332
22333 #ifndef __ELF__
22334 # error Not an ELF OS
22335 #endif
22336 #include <stdlib.h>
22337 #if defined __GLIBC_PREREQ
22338 # if __GLIBC_PREREQ (2, 4)
22339 # else
22340 #  error GLIBC 2.4 required
22341 # endif
22342 #else
22343 # if defined __sun__ && defined __svr4__
22344    /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8.  */
22345 # else
22346 #  error The C library not known to support .init_array/.fini_array
22347 # endif
22348 #endif
22349
22350 _ACEOF
22351 if ac_fn_c_try_cpp "$LINENO"; then :
22352
22353 else
22354   gcc_cv_initfini_array=no
22355 fi
22356 rm -f conftest.err conftest.$ac_ext;;
22357     esac
22358   else
22359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22360 $as_echo_n "checking cross compile... guessing... " >&6; }
22361     gcc_cv_initfini_array=no
22362   fi
22363 fi
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22365 $as_echo "$gcc_cv_initfini_array" >&6; }
22366   enable_initfini_array=$gcc_cv_initfini_array
22367
22368 fi
22369
22370 if test $enable_initfini_array = yes; then
22371
22372 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22373
22374 fi
22375
22376 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22378 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22379 if test "${gcc_cv_as_leb128+set}" = set; then :
22380   $as_echo_n "(cached) " >&6
22381 else
22382   gcc_cv_as_leb128=no
22383     if test $in_tree_gas = yes; then
22384     if test $in_tree_gas_is_elf = yes \
22385   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22386   then gcc_cv_as_leb128=yes
22387 fi
22388   elif test x$gcc_cv_as != x; then
22389     $as_echo '  .data
22390         .uleb128 L2 - L1
22391 L1:
22392         .uleb128 1280
22393         .sleb128 -1010
22394 L2:' > conftest.s
22395     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22396   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22397   (eval $ac_try) 2>&5
22398   ac_status=$?
22399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22400   test $ac_status = 0; }; }
22401     then
22402         # GAS versions before 2.11 do not support uleb128,
22403   # despite appearing to.
22404   # ??? There exists an elf-specific test that will crash
22405   # the assembler.  Perhaps it's better to figure out whether
22406   # arbitrary sections are supported and try the test.
22407   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22408   if echo "$as_ver" | grep GNU > /dev/null; then
22409     as_vers=`echo $as_ver | sed -n \
22410         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22411     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22412     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22413     if test $as_major -eq 2 && test $as_minor -lt 11
22414     then :
22415     else gcc_cv_as_leb128=yes
22416     fi
22417   fi
22418     else
22419       echo "configure: failed program was" >&5
22420       cat conftest.s >&5
22421     fi
22422     rm -f conftest.o conftest.s
22423   fi
22424 fi
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22426 $as_echo "$gcc_cv_as_leb128" >&6; }
22427 if test $gcc_cv_as_leb128 = yes; then
22428
22429 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22430
22431 fi
22432
22433 # Check if we have assembler support for unwind directives.
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22435 $as_echo_n "checking assembler for cfi directives... " >&6; }
22436 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22437   $as_echo_n "(cached) " >&6
22438 else
22439   gcc_cv_as_cfi_directive=no
22440   if test x$gcc_cv_as != x; then
22441     $as_echo '  .text
22442         .cfi_startproc
22443         .cfi_offset 0, 0
22444         .cfi_same_value 1
22445         .cfi_def_cfa 1, 2
22446         .cfi_escape 1, 2, 3, 4, 5
22447         .cfi_endproc' > conftest.s
22448     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22449   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22450   (eval $ac_try) 2>&5
22451   ac_status=$?
22452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22453   test $ac_status = 0; }; }
22454     then
22455         case "$target" in
22456   *-*-solaris*)
22457     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22458     # read-only and read-write sections, we need to make sure that the
22459     # assembler used emits read-write .eh_frame sections.
22460     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22461       if test "x$gcc_cv_objdump" != x; then
22462         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22463                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22464           gcc_cv_as_cfi_directive=no
22465         else
22466           case "$target" in
22467             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22468               # On Solaris/x86, make sure that GCC and gas agree on using
22469               # read-only .eh_frame sections for 64-bit.
22470               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22471                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22472                         sed -e /.eh_frame/!d -e N | \
22473                         grep READONLY > /dev/null; then
22474                 gcc_cv_as_cfi_directive=yes
22475               else
22476                 gcc_cv_as_cfi_directive=no
22477               fi
22478               ;;
22479             *)
22480               gcc_cv_as_cfi_directive=yes
22481               ;;
22482           esac
22483         fi
22484       else
22485         # no objdump, err on the side of caution
22486         gcc_cv_as_cfi_directive=no
22487       fi
22488     else
22489       gcc_cv_as_cfi_directive=yes
22490     fi
22491     ;;
22492   *-*-*)
22493     gcc_cv_as_cfi_directive=yes
22494     ;;
22495 esac
22496     else
22497       echo "configure: failed program was" >&5
22498       cat conftest.s >&5
22499     fi
22500     rm -f conftest.o conftest.s
22501   fi
22502 fi
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22504 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22505
22506 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22508 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22509 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22510   $as_echo_n "(cached) " >&6
22511 else
22512   gcc_cv_as_cfi_advance_working=no
22513   if test x$gcc_cv_as != x; then
22514     $as_echo '  .text
22515         .cfi_startproc
22516         .cfi_adjust_cfa_offset 64
22517         .skip 75040, 0
22518         .cfi_adjust_cfa_offset 128
22519         .cfi_endproc' > conftest.s
22520     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22521   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22522   (eval $ac_try) 2>&5
22523   ac_status=$?
22524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22525   test $ac_status = 0; }; }
22526     then
22527
22528 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22529     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22530    gcc_cv_as_cfi_advance_working=yes
22531 fi
22532
22533     else
22534       echo "configure: failed program was" >&5
22535       cat conftest.s >&5
22536     fi
22537     rm -f conftest.o conftest.s
22538   fi
22539 fi
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22541 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22542
22543 else
22544   # no objdump, err on the side of caution
22545   gcc_cv_as_cfi_advance_working=no
22546 fi
22547
22548
22549 cat >>confdefs.h <<_ACEOF
22550 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22551        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22552 _ACEOF
22553
22554
22555
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22557 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22558 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22559   $as_echo_n "(cached) " >&6
22560 else
22561   gcc_cv_as_cfi_personality_directive=no
22562   if test x$gcc_cv_as != x; then
22563     $as_echo '  .text
22564         .cfi_startproc
22565         .cfi_personality 0, symbol
22566         .cfi_endproc' > conftest.s
22567     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22568   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22569   (eval $ac_try) 2>&5
22570   ac_status=$?
22571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22572   test $ac_status = 0; }; }
22573     then
22574         gcc_cv_as_cfi_personality_directive=yes
22575     else
22576       echo "configure: failed program was" >&5
22577       cat conftest.s >&5
22578     fi
22579     rm -f conftest.o conftest.s
22580   fi
22581 fi
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22583 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22584
22585
22586 cat >>confdefs.h <<_ACEOF
22587 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22588     then echo 1; else echo 0; fi`
22589 _ACEOF
22590
22591
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22593 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22594 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22595   $as_echo_n "(cached) " >&6
22596 else
22597   gcc_cv_as_cfi_sections_directive=no
22598   if test x$gcc_cv_as != x; then
22599     $as_echo '  .text
22600         .cfi_sections .debug_frame, .eh_frame
22601         .cfi_startproc
22602         .cfi_endproc' > conftest.s
22603     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22604   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22605   (eval $ac_try) 2>&5
22606   ac_status=$?
22607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22608   test $ac_status = 0; }; }
22609     then
22610         case $target_os in
22611   win32 | pe | cygwin* | mingw32* | uwin*)
22612     # Need to check that we generated the correct relocation for the
22613     # .debug_frame section.  This was fixed for binutils 2.21.
22614     gcc_cv_as_cfi_sections_directive=no
22615     if test "x$gcc_cv_objdump" != x; then
22616      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22617         grep secrel > /dev/null; then
22618       gcc_cv_as_cfi_sections_directive=yes
22619      fi
22620     fi
22621     ;;
22622   *)
22623     gcc_cv_as_cfi_sections_directive=yes
22624     ;;
22625 esac
22626     else
22627       echo "configure: failed program was" >&5
22628       cat conftest.s >&5
22629     fi
22630     rm -f conftest.o conftest.s
22631   fi
22632 fi
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22634 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22635
22636
22637
22638 cat >>confdefs.h <<_ACEOF
22639 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22640     then echo 1; else echo 0; fi`
22641 _ACEOF
22642
22643
22644 # GAS versions up to and including 2.11.0 may mis-optimize
22645 # .eh_frame data.
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22647 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22648 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22649   $as_echo_n "(cached) " >&6
22650 else
22651   gcc_cv_as_eh_frame=no
22652     if test $in_tree_gas = yes; then
22653     if test $in_tree_gas_is_elf = yes \
22654   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22655   then gcc_cv_as_eh_frame=yes
22656 fi
22657   elif test x$gcc_cv_as != x; then
22658     $as_echo '  .text
22659 .LFB1:
22660         .4byte  0
22661 .L1:
22662         .4byte  0
22663 .LFE1:
22664         .section        .eh_frame,"aw",@progbits
22665 __FRAME_BEGIN__:
22666         .4byte  .LECIE1-.LSCIE1
22667 .LSCIE1:
22668         .4byte  0x0
22669         .byte   0x1
22670         .ascii "z\0"
22671         .byte   0x1
22672         .byte   0x78
22673         .byte   0x1a
22674         .byte   0x0
22675         .byte   0x4
22676         .4byte  1
22677         .p2align 1
22678 .LECIE1:
22679 .LSFDE1:
22680         .4byte  .LEFDE1-.LASFDE1
22681 .LASFDE1:
22682         .4byte  .LASFDE1-__FRAME_BEGIN__
22683         .4byte  .LFB1
22684         .4byte  .LFE1-.LFB1
22685         .byte   0x4
22686         .4byte  .LFE1-.LFB1
22687         .byte   0x4
22688         .4byte  .L1-.LFB1
22689 .LEFDE1:' > conftest.s
22690     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22691   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22692   (eval $ac_try) 2>&5
22693   ac_status=$?
22694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22695   test $ac_status = 0; }; }
22696     then
22697           cat > conftest.lit <<EOF
22698  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22699  0010 01000000 12000000 18000000 00000000  ................
22700  0020 08000000 04080000 0044               .........D      
22701 EOF
22702 cat > conftest.big <<EOF
22703  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22704  0010 00000001 00000012 00000018 00000000  ................
22705  0020 00000008 04000000 0844               .........D      
22706 EOF
22707   # If the assembler didn't choke, and we can objdump,
22708   # and we got the correct data, then succeed.
22709   # The text in the here-document typically retains its unix-style line
22710   # endings, while the output of objdump will use host line endings.
22711   # Therefore, use diff -b for the comparisons.
22712   if test x$gcc_cv_objdump != x \
22713   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22714      | tail -3 > conftest.got \
22715   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22716     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22717   then
22718     gcc_cv_as_eh_frame=yes
22719   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
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; }; }; then
22725     gcc_cv_as_eh_frame=buggy
22726   else
22727     # Uh oh, what do we do now?
22728     gcc_cv_as_eh_frame=no
22729   fi
22730     else
22731       echo "configure: failed program was" >&5
22732       cat conftest.s >&5
22733     fi
22734     rm -f conftest.o conftest.s
22735   fi
22736 fi
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22738 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22739
22740
22741 if test $gcc_cv_as_eh_frame = buggy; then
22742
22743 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22744
22745 fi
22746
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22748 $as_echo_n "checking assembler for section merging support... " >&6; }
22749 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22750   $as_echo_n "(cached) " >&6
22751 else
22752   gcc_cv_as_shf_merge=no
22753     if test $in_tree_gas = yes; then
22754     if test $in_tree_gas_is_elf = yes \
22755   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22756   then gcc_cv_as_shf_merge=yes
22757 fi
22758   elif test x$gcc_cv_as != x; then
22759     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22760     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22761   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22762   (eval $ac_try) 2>&5
22763   ac_status=$?
22764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22765   test $ac_status = 0; }; }
22766     then
22767         gcc_cv_as_shf_merge=yes
22768     else
22769       echo "configure: failed program was" >&5
22770       cat conftest.s >&5
22771     fi
22772     rm -f conftest.o conftest.s
22773   fi
22774 fi
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22776 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22777
22778 if test $gcc_cv_as_shf_merge = no; then
22779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22780 $as_echo_n "checking assembler for section merging support... " >&6; }
22781 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22782   $as_echo_n "(cached) " >&6
22783 else
22784   gcc_cv_as_shf_merge=no
22785     if test $in_tree_gas = yes; then
22786     if test $in_tree_gas_is_elf = yes \
22787   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22788   then gcc_cv_as_shf_merge=yes
22789 fi
22790   elif test x$gcc_cv_as != x; then
22791     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22792     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22793   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22794   (eval $ac_try) 2>&5
22795   ac_status=$?
22796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22797   test $ac_status = 0; }; }
22798     then
22799         gcc_cv_as_shf_merge=yes
22800     else
22801       echo "configure: failed program was" >&5
22802       cat conftest.s >&5
22803     fi
22804     rm -f conftest.o conftest.s
22805   fi
22806 fi
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22808 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22809
22810 fi
22811
22812 cat >>confdefs.h <<_ACEOF
22813 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22814 _ACEOF
22815
22816
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22818 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22819 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22820   $as_echo_n "(cached) " >&6
22821 else
22822   gcc_cv_as_comdat_group=no
22823     if test $in_tree_gas = yes; then
22824     if test $in_tree_gas_is_elf = yes \
22825   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22826   then gcc_cv_as_comdat_group=yes
22827 fi
22828   elif test x$gcc_cv_as != x; then
22829     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22830     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22831   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22832   (eval $ac_try) 2>&5
22833   ac_status=$?
22834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22835   test $ac_status = 0; }; }
22836     then
22837         gcc_cv_as_comdat_group=yes
22838     else
22839       echo "configure: failed program was" >&5
22840       cat conftest.s >&5
22841     fi
22842     rm -f conftest.o conftest.s
22843   fi
22844 fi
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22846 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22847
22848 if test $gcc_cv_as_comdat_group = yes; then
22849   gcc_cv_as_comdat_group_percent=no
22850   gcc_cv_as_comdat_group_group=no
22851 else
22852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22853 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22854 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22855   $as_echo_n "(cached) " >&6
22856 else
22857   gcc_cv_as_comdat_group_percent=no
22858     if test $in_tree_gas = yes; then
22859     if test $in_tree_gas_is_elf = yes \
22860   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22861   then gcc_cv_as_comdat_group_percent=yes
22862 fi
22863   elif test x$gcc_cv_as != x; then
22864     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22865     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22866   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867   (eval $ac_try) 2>&5
22868   ac_status=$?
22869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870   test $ac_status = 0; }; }
22871     then
22872         gcc_cv_as_comdat_group_percent=yes
22873     else
22874       echo "configure: failed program was" >&5
22875       cat conftest.s >&5
22876     fi
22877     rm -f conftest.o conftest.s
22878   fi
22879 fi
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22881 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22882
22883  if test $gcc_cv_as_comdat_group_percent = yes; then
22884    gcc_cv_as_comdat_group_group=no
22885  else
22886    if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22887      gcc_cv_as_comdat_group_group=no
22888    fi
22889    case "${target}" in
22890      # Sun as uses a completely different syntax.
22891      *-*-solaris2*)
22892        case "${target}" in
22893          sparc*-*-solaris2*)
22894            conftest_s='
22895                .group foo,".text%foo",#comdat
22896                .section ".text%foo", #alloc,#execinstr,#progbits
22897                .globl foo
22898              foo:
22899              '
22900            ;;
22901          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22902            conftest_s='
22903                .group foo,.text%foo,#comdat
22904                .section .text%foo, "ax", @progbits
22905                .globl  foo
22906              foo:
22907              '
22908            ;;
22909        esac
22910        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22911 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22912 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22913   $as_echo_n "(cached) " >&6
22914 else
22915   gcc_cv_as_comdat_group_group=no
22916   if test x$gcc_cv_as != x; then
22917     $as_echo "$conftest_s" > conftest.s
22918     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22919   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22920   (eval $ac_try) 2>&5
22921   ac_status=$?
22922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22923   test $ac_status = 0; }; }
22924     then
22925         gcc_cv_as_comdat_group_group=yes
22926     else
22927       echo "configure: failed program was" >&5
22928       cat conftest.s >&5
22929     fi
22930     rm -f conftest.o conftest.s
22931   fi
22932 fi
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22934 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22935
22936        ;;
22937    esac
22938  fi
22939 fi
22940 if test x"$ld_is_gold" = xyes; then
22941   comdat_group=yes
22942 elif test $in_tree_ld = yes ; then
22943   comdat_group=no
22944   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 \
22945      && test $in_tree_ld_is_elf = yes; then
22946      comdat_group=yes
22947   fi
22948 elif echo "$ld_ver" | grep GNU > /dev/null; then
22949   comdat_group=yes
22950   if test 0"$ld_date" -lt 20050308; then
22951     if test -n "$ld_date"; then
22952       # If there was date string, but was earlier than 2005-03-08, fail
22953       comdat_group=no
22954     elif test "$ld_vers_major" -lt 2; then
22955       comdat_group=no
22956     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22957       comdat_group=no
22958     fi
22959   fi
22960 else
22961   case "${target}" in
22962     *-*-solaris2.1[1-9]*)
22963       comdat_group=no
22964       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22965       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22966       # version 1.688.
22967       #
22968       # If using Sun as for COMDAT group as emitted by GCC, one needs at
22969       # least ld version 1.2267.
22970       if test "$ld_vers_major" -gt 1; then
22971         comdat_group=yes
22972       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22973         comdat_group=yes
22974       elif test "$ld_vers_minor" -ge 2267; then
22975         comdat_group=yes
22976       fi
22977       ;;
22978     *)
22979       # Assume linkers other than GNU ld don't support COMDAT group.
22980       comdat_group=no
22981       ;;
22982   esac
22983 fi
22984 # Allow overriding the automatic COMDAT group tests above.
22985 # Check whether --enable-comdat was given.
22986 if test "${enable_comdat+set}" = set; then :
22987   enableval=$enable_comdat; comdat_group="$enable_comdat"
22988 fi
22989
22990 if test $comdat_group = no; then
22991   gcc_cv_as_comdat_group=no
22992   gcc_cv_as_comdat_group_percent=no
22993   gcc_cv_as_comdat_group_group=no
22994 fi
22995
22996 cat >>confdefs.h <<_ACEOF
22997 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22998     || test $gcc_cv_as_comdat_group_percent = yes \
22999     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23000 _ACEOF
23001
23002
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23004 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23005 if test "${gcc_cv_as_discriminator+set}" = set; then :
23006   $as_echo_n "(cached) " >&6
23007 else
23008   gcc_cv_as_discriminator=no
23009     if test $in_tree_gas = yes; then
23010     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23011   then gcc_cv_as_discriminator=yes
23012 fi
23013   elif test x$gcc_cv_as != x; then
23014     $as_echo '  .text
23015         .file 1 "conf.c"
23016         .loc 1 1 0 discriminator 1' > conftest.s
23017     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23018   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23019   (eval $ac_try) 2>&5
23020   ac_status=$?
23021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23022   test $ac_status = 0; }; }
23023     then
23024         gcc_cv_as_discriminator=yes
23025     else
23026       echo "configure: failed program was" >&5
23027       cat conftest.s >&5
23028     fi
23029     rm -f conftest.o conftest.s
23030   fi
23031 fi
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23033 $as_echo "$gcc_cv_as_discriminator" >&6; }
23034 if test $gcc_cv_as_discriminator = yes; then
23035
23036 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23037
23038 fi
23039
23040 # Thread-local storage - the check is heavily parameterized.
23041 conftest_s=
23042 tls_first_major=
23043 tls_first_minor=
23044 tls_as_opt=
23045 case "$target" in
23046   alpha*-*-*)
23047     conftest_s='
23048         .section ".tdata","awT",@progbits
23049 foo:    .long   25
23050         .text
23051         ldq     $27,__tls_get_addr($29)         !literal!1
23052         lda     $16,foo($29)                    !tlsgd!1
23053         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
23054         ldq     $27,__tls_get_addr($29)         !literal!2
23055         lda     $16,foo($29)                    !tlsldm!2
23056         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
23057         ldq     $1,foo($29)                     !gotdtprel
23058         ldah    $2,foo($29)                     !dtprelhi
23059         lda     $3,foo($2)                      !dtprello
23060         lda     $4,foo($29)                     !dtprel
23061         ldq     $1,foo($29)                     !gottprel
23062         ldah    $2,foo($29)                     !tprelhi
23063         lda     $3,foo($2)                      !tprello
23064         lda     $4,foo($29)                     !tprel'
23065         tls_first_major=2
23066         tls_first_minor=13
23067         tls_as_opt=--fatal-warnings
23068         ;;
23069   cris-*-*|crisv32-*-*)
23070     conftest_s='
23071         .section ".tdata","awT",@progbits
23072 x:      .long   25
23073         .text
23074         move.d x:IE,$r10
23075         nop'
23076         tls_first_major=2
23077         tls_first_minor=20
23078         tls_as_opt=--fatal-warnings
23079         ;;
23080   frv*-*-*)
23081     conftest_s='
23082         .section ".tdata","awT",@progbits
23083 x:      .long   25
23084         .text
23085         call    #gettlsoff(x)'
23086         tls_first_major=2
23087         tls_first_minor=14
23088         ;;
23089   hppa*-*-linux*)
23090     conftest_s='
23091 t1:     .reg    %r20
23092 t2:     .reg    %r21
23093 gp:     .reg    %r19
23094         .section ".tdata","awT",@progbits
23095 foo:    .long   25
23096         .text
23097         .align  4
23098         addil LT%foo-$tls_gdidx$,gp
23099         ldo RT%foo-$tls_gdidx$(%r1),%arg0
23100         b __tls_get_addr
23101         nop
23102         addil LT%foo-$tls_ldidx$,gp
23103         b __tls_get_addr
23104         ldo RT%foo-$tls_ldidx$(%r1),%arg0
23105         addil LR%foo-$tls_dtpoff$,%ret0
23106         ldo RR%foo-$tls_dtpoff$(%r1),%t1
23107         mfctl %cr27,%t1
23108         addil LT%foo-$tls_ieoff$,gp
23109         ldw RT%foo-$tls_ieoff$(%r1),%t2
23110         add %t1,%t2,%t3
23111         mfctl %cr27,%t1
23112         addil LR%foo-$tls_leoff$,%t1
23113         ldo RR%foo-$tls_leoff$(%r1),%t2'
23114         tls_first_major=2
23115         tls_first_minor=15
23116         tls_as_opt=--fatal-warnings
23117         ;;
23118   arm*-*-*)
23119     conftest_s='
23120         .section ".tdata","awT",%progbits
23121 foo:    .long   25
23122         .text
23123 .word foo(gottpoff)
23124 .word foo(tpoff)
23125 .word foo(tlsgd)
23126 .word foo(tlsldm)
23127 .word foo(tlsldo)'
23128         tls_first_major=2
23129         tls_first_minor=17
23130         ;;
23131   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23132     case "$target" in
23133       i[34567]86-*-solaris2.*)
23134         on_solaris=yes
23135         tga_func=___tls_get_addr
23136         ;;
23137       x86_64-*-solaris2.1[0-9]*)
23138         on_solaris=yes
23139         tga_func=__tls_get_addr
23140         ;;
23141       *)
23142         on_solaris=no
23143         ;;
23144     esac
23145     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23146       conftest_s='
23147         .section .tdata,"awt",@progbits'
23148       tls_first_major=0
23149       tls_first_minor=0
23150
23151 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23152
23153     else
23154       conftest_s='
23155         .section ".tdata","awT",@progbits'
23156       tls_first_major=2
23157       tls_first_minor=14
23158       tls_as_opt="--fatal-warnings"
23159     fi
23160     conftest_s="$conftest_s
23161 foo:    .long   25
23162         .text
23163         movl    %gs:0, %eax
23164         leal    foo@tlsgd(,%ebx,1), %eax
23165         leal    foo@tlsldm(%ebx), %eax
23166         leal    foo@dtpoff(%eax), %edx
23167         movl    foo@gottpoff(%ebx), %eax
23168         subl    foo@gottpoff(%ebx), %eax
23169         addl    foo@gotntpoff(%ebx), %eax
23170         movl    foo@indntpoff, %eax
23171         movl    \$foo@tpoff, %eax
23172         subl    \$foo@tpoff, %eax
23173         leal    foo@ntpoff(%ecx), %eax"
23174     ;;
23175   x86_64-*-*)
23176     conftest_s='
23177         .section ".tdata","awT",@progbits
23178 foo:    .long   25
23179         .text
23180         movq    %fs:0, %rax
23181         leaq    foo@TLSGD(%rip), %rdi
23182         leaq    foo@TLSLD(%rip), %rdi
23183         leaq    foo@DTPOFF(%rax), %rdx
23184         movq    foo@GOTTPOFF(%rip), %rax
23185         movq    $foo@TPOFF, %rax'
23186         tls_first_major=2
23187         tls_first_minor=14
23188         tls_as_opt=--fatal-warnings
23189         ;;
23190   ia64-*-*)
23191     conftest_s='
23192         .section ".tdata","awT",@progbits
23193 foo:    data8   25
23194         .text
23195         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23196         addl    r17 = @ltoff(@dtprel(foo#)), gp
23197         addl    r18 = @ltoff(@tprel(foo#)), gp
23198         addl    r19 = @dtprel(foo#), gp
23199         adds    r21 = @dtprel(foo#), r13
23200         movl    r23 = @dtprel(foo#)
23201         addl    r20 = @tprel(foo#), gp
23202         adds    r22 = @tprel(foo#), r13
23203         movl    r24 = @tprel(foo#)'
23204         tls_first_major=2
23205         tls_first_minor=13
23206         tls_as_opt=--fatal-warnings
23207         ;;
23208   microblaze*-*-*)
23209     conftest_s='
23210         .section .tdata,"awT",@progbits
23211 x:
23212         .word 2
23213         .text
23214         addik r5,r20,x@TLSGD
23215         addik r5,r20,x@TLSLDM'
23216         tls_first_major=2
23217         tls_first_minor=20
23218         tls_as_opt='--fatal-warnings'
23219         ;;
23220   mips*-*-*)
23221     conftest_s='
23222         .section .tdata,"awT",@progbits
23223 x:
23224         .word 2
23225         .text
23226         addiu $4, $28, %tlsgd(x)
23227         addiu $4, $28, %tlsldm(x)
23228         lui $4, %dtprel_hi(x)
23229         addiu $4, $4, %dtprel_lo(x)
23230         lw $4, %gottprel(x)($28)
23231         lui $4, %tprel_hi(x)
23232         addiu $4, $4, %tprel_lo(x)'
23233         tls_first_major=2
23234         tls_first_minor=16
23235         tls_as_opt='-32 --fatal-warnings'
23236         ;;
23237   m68k-*-*)
23238     conftest_s='
23239         .section .tdata,"awT",@progbits
23240 x:
23241         .word 2
23242         .text
23243 foo:
23244         move.l x@TLSGD(%a5),%a0
23245         move.l x@TLSLDM(%a5),%a0
23246         move.l x@TLSLDO(%a5),%a0
23247         move.l x@TLSIE(%a5),%a0
23248         move.l x@TLSLE(%a5),%a0'
23249         tls_first_major=2
23250         tls_first_minor=19
23251         tls_as_opt='--fatal-warnings'
23252         ;;
23253   aarch64*-*-*)
23254     conftest_s='
23255         .section ".tdata","awT",%progbits
23256 foo:    .long   25
23257         .text
23258         adrp  x0, :tlsgd:x
23259         add   x0, x0, #:tlsgd_lo12:x
23260         bl    __tls_get_addr
23261         nop'
23262         tls_first_major=2
23263         tls_first_minor=20
23264         tls_as_opt='--fatal-warnings'
23265         ;;
23266   powerpc-ibm-aix*)
23267     conftest_s='
23268         .extern __get_tpointer
23269         .toc
23270 LC..1:
23271         .tc a[TC],a[TL]@le
23272         .csect .text[PR]
23273 .tlstest:
23274         lwz 9,LC..1(2)
23275         bla __get_tpointer
23276         lwzx 3,9,3
23277         .globl a
23278         .csect a[TL],4
23279 a:
23280         .space 4'
23281         tls_first_major=0
23282         tls_first_minor=0
23283         ;;
23284   powerpc64*-*-*)
23285     conftest_s='
23286         .section ".tdata","awT",@progbits
23287         .align 3
23288 ld0:    .space 8
23289 ld1:    .space 8
23290 x1:     .space 8
23291 x2:     .space 8
23292 x3:     .space 8
23293         .text
23294         addi 3,2,ld0@got@tlsgd
23295         bl .__tls_get_addr
23296         nop
23297         addi 3,2,ld1@toc
23298         bl .__tls_get_addr
23299         nop
23300         addi 3,2,x1@got@tlsld
23301         bl .__tls_get_addr
23302         nop
23303         addi 9,3,x1@dtprel
23304         bl .__tls_get_addr
23305         nop
23306         addis 9,3,x2@dtprel@ha
23307         addi 9,9,x2@dtprel@l
23308         bl .__tls_get_addr
23309         nop
23310         ld 9,x3@got@dtprel(2)
23311         add 9,9,3
23312         bl .__tls_get_addr
23313         nop'
23314         tls_first_major=2
23315         tls_first_minor=14
23316         tls_as_opt="-a64 --fatal-warnings"
23317         ;;
23318   powerpc*-*-*)
23319     conftest_s='
23320         .section ".tdata","awT",@progbits
23321         .align 2
23322 ld0:    .space 4
23323 ld1:    .space 4
23324 x1:     .space 4
23325 x2:     .space 4
23326 x3:     .space 4
23327         .text
23328         addi 3,31,ld0@got@tlsgd
23329         bl __tls_get_addr
23330         addi 3,31,x1@got@tlsld
23331         bl __tls_get_addr
23332         addi 9,3,x1@dtprel
23333         addis 9,3,x2@dtprel@ha
23334         addi 9,9,x2@dtprel@l
23335         lwz 9,x3@got@tprel(31)
23336         add 9,9,x@tls
23337         addi 9,2,x1@tprel
23338         addis 9,2,x2@tprel@ha
23339         addi 9,9,x2@tprel@l'
23340         tls_first_major=2
23341         tls_first_minor=14
23342         tls_as_opt="-a32 --fatal-warnings"
23343         ;;
23344   s390-*-*)
23345     conftest_s='
23346         .section ".tdata","awT",@progbits
23347 foo:    .long   25
23348         .text
23349         .long   foo@TLSGD
23350         .long   foo@TLSLDM
23351         .long   foo@DTPOFF
23352         .long   foo@NTPOFF
23353         .long   foo@GOTNTPOFF
23354         .long   foo@INDNTPOFF
23355         l       %r1,foo@GOTNTPOFF(%r12)
23356         l       %r1,0(%r1):tls_load:foo
23357         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23358         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23359         tls_first_major=2
23360         tls_first_minor=14
23361         tls_as_opt="-m31 --fatal-warnings"
23362         ;;
23363   s390x-*-*)
23364     conftest_s='
23365         .section ".tdata","awT",@progbits
23366 foo:    .long   25
23367         .text
23368         .quad   foo@TLSGD
23369         .quad   foo@TLSLDM
23370         .quad   foo@DTPOFF
23371         .quad   foo@NTPOFF
23372         .quad   foo@GOTNTPOFF
23373         lg      %r1,foo@GOTNTPOFF(%r12)
23374         larl    %r1,foo@INDNTPOFF
23375         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23376         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23377         tls_first_major=2
23378         tls_first_minor=14
23379         tls_as_opt="-m64 -Aesame --fatal-warnings"
23380         ;;
23381   sh-*-* | sh[34]-*-*)
23382     conftest_s='
23383         .section ".tdata","awT",@progbits
23384 foo:    .long   25
23385         .text
23386         .long   foo@TLSGD
23387         .long   foo@TLSLDM
23388         .long   foo@DTPOFF
23389         .long   foo@GOTTPOFF
23390         .long   foo@TPOFF'
23391         tls_first_major=2
23392         tls_first_minor=13
23393         tls_as_opt=--fatal-warnings
23394         ;;
23395   sparc*-*-*)
23396     case "$target" in
23397       sparc*-sun-solaris2.*)
23398         on_solaris=yes
23399         tga_func=__tls_get_addr
23400         ;;
23401       *)
23402         on_solaris=no
23403         ;;
23404     esac
23405     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23406       conftest_s='
23407         .section ".tdata",#alloc,#write,#tls'
23408         tls_first_major=0
23409         tls_first_minor=0
23410     else
23411       conftest_s='
23412         .section ".tdata","awT",@progbits'
23413         tls_first_major=2
23414         tls_first_minor=14
23415         tls_as_opt="-32 --fatal-warnings"
23416     fi
23417     conftest_s="$conftest_s
23418 foo:    .long   25
23419         .text
23420         sethi   %tgd_hi22(foo), %o0
23421         add     %o0, %tgd_lo10(foo), %o1
23422         add     %l7, %o1, %o0, %tgd_add(foo)
23423         call    __tls_get_addr, %tgd_call(foo)
23424         sethi   %tldm_hi22(foo), %l1
23425         add     %l1, %tldm_lo10(foo), %l2
23426         add     %l7, %l2, %o0, %tldm_add(foo)
23427         call    __tls_get_addr, %tldm_call(foo)
23428         sethi   %tldo_hix22(foo), %l3
23429         xor     %l3, %tldo_lox10(foo), %l4
23430         add     %o0, %l4, %l5, %tldo_add(foo)
23431         sethi   %tie_hi22(foo), %o3
23432         add     %o3, %tie_lo10(foo), %o3
23433         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23434         add     %g7, %o2, %o4, %tie_add(foo)
23435         sethi   %tle_hix22(foo), %l1
23436         xor     %l1, %tle_lox10(foo), %o5
23437         ld      [%g7 + %o5], %o1"
23438         ;;
23439   tilepro*-*-*)
23440       conftest_s='
23441         .section ".tdata","awT",@progbits
23442 foo:    .long   25
23443         .text
23444         addli   r0, zero, tls_gd(foo)
23445         auli    r0, zero, tls_gd_ha16(foo)
23446         addli   r0, r0, tls_gd_lo16(foo)
23447         jal     __tls_get_addr
23448         addli   r0, zero, tls_ie(foo)
23449         auli    r0, r0, tls_ie_ha16(foo)
23450         addli   r0, r0, tls_ie_lo16(foo)'
23451         tls_first_major=2
23452         tls_first_minor=22
23453         tls_as_opt="--fatal-warnings"
23454         ;;
23455   tilegx*-*-*)
23456       conftest_s='
23457         .section ".tdata","awT",@progbits
23458 foo:    .long   25
23459         .text
23460         shl16insli r0, zero, hw0_last_tls_gd(foo)
23461         shl16insli r0, zero, hw1_last_tls_gd(foo)
23462         shl16insli r0, r0,   hw0_tls_gd(foo)
23463         jal        __tls_get_addr
23464         shl16insli r0, zero, hw1_last_tls_ie(foo)
23465         shl16insli r0, r0,   hw0_tls_ie(foo)'
23466         tls_first_major=2
23467         tls_first_minor=22
23468         tls_as_opt="--fatal-warnings"
23469         ;;
23470   xtensa*-*-*)
23471     conftest_s='
23472         .section ".tdata","awT",@progbits
23473 foo:    .long   25
23474         .text
23475         movi    a8, foo@TLSFUNC
23476         movi    a10, foo@TLSARG
23477         callx8.tls a8, foo@TLSCALL'
23478         tls_first_major=2
23479         tls_first_minor=19
23480         ;;
23481 esac
23482 set_have_as_tls=no
23483 if test "x$enable_tls" = xno ; then
23484   : # TLS explicitly disabled.
23485 elif test "x$enable_tls" = xyes ; then
23486   set_have_as_tls=yes # TLS explicitly enabled.
23487 elif test -z "$tls_first_major"; then
23488   : # If we don't have a check, assume no support.
23489 else
23490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23491 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23492 if test "${gcc_cv_as_tls+set}" = set; then :
23493   $as_echo_n "(cached) " >&6
23494 else
23495   gcc_cv_as_tls=no
23496     if test $in_tree_gas = yes; then
23497     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23498   then gcc_cv_as_tls=yes
23499 fi
23500   elif test x$gcc_cv_as != x; then
23501     $as_echo "$conftest_s" > conftest.s
23502     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23503   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23504   (eval $ac_try) 2>&5
23505   ac_status=$?
23506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23507   test $ac_status = 0; }; }
23508     then
23509         gcc_cv_as_tls=yes
23510     else
23511       echo "configure: failed program was" >&5
23512       cat conftest.s >&5
23513     fi
23514     rm -f conftest.o conftest.s
23515   fi
23516 fi
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23518 $as_echo "$gcc_cv_as_tls" >&6; }
23519 if test $gcc_cv_as_tls = yes; then
23520   set_have_as_tls=yes
23521 fi
23522 fi
23523 case "$target" in
23524   # TLS was introduced in the Solaris 9 FCS release.  Support for GNU-style
23525   # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23526   # Sun style that Sun ld and GCC don't support any longer.
23527   *-*-solaris2.*)
23528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23529 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23530     ld_tls_support=no
23531     # Check ld and ld.so.1 TLS support.
23532     if echo "$ld_ver" | grep GNU > /dev/null; then
23533       # Assume all interesting versions of GNU ld have TLS support.
23534       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23535       ld_tls_support=yes
23536     else
23537       case "$target" in
23538         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23539         i?86-*-solaris2.9)
23540           min_tls_ld_vers_minor=374
23541           ;;
23542         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23543         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23544           min_tls_ld_vers_minor=343
23545           ;;
23546       esac
23547       if test "$ld_vers_major" -gt 1 || \
23548         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23549         ld_tls_support=yes
23550       else
23551         set_have_as_tls=no
23552       fi
23553     fi
23554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23555 $as_echo "$ld_tls_support" >&6; }
23556
23557     save_LIBS="$LIBS"
23558     save_LDFLAGS="$LDFLAGS"
23559     LIBS=
23560     LDFLAGS=
23561
23562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23563 $as_echo_n "checking library containing $tga_func... " >&6; }
23564     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23565     # (32-bit x86) only lived in libthread, so check for that.  Keep
23566     # set_have_as_tls if found, disable if not.
23567     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23569 $as_echo_n "checking for library containing $tga_func... " >&6; }
23570 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23571   $as_echo_n "(cached) " >&6
23572 else
23573   ac_func_search_save_LIBS=$LIBS
23574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23575 /* end confdefs.h.  */
23576
23577 /* Override any GCC internal prototype to avoid an error.
23578    Use char because int might match the return type of a GCC
23579    builtin and then its argument prototype would still apply.  */
23580 #ifdef __cplusplus
23581 extern "C"
23582 #endif
23583 char $tga_func ();
23584 int
23585 main ()
23586 {
23587 return $tga_func ();
23588   ;
23589   return 0;
23590 }
23591 _ACEOF
23592 for ac_lib in '' thread; do
23593   if test -z "$ac_lib"; then
23594     ac_res="none required"
23595   else
23596     ac_res=-l$ac_lib
23597     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23598   fi
23599   if ac_fn_c_try_link "$LINENO"; then :
23600   eval "$as_ac_Search=\$ac_res"
23601 fi
23602 rm -f core conftest.err conftest.$ac_objext \
23603     conftest$ac_exeext
23604   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23605   break
23606 fi
23607 done
23608 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23609
23610 else
23611   eval "$as_ac_Search=no"
23612 fi
23613 rm conftest.$ac_ext
23614 LIBS=$ac_func_search_save_LIBS
23615 fi
23616 eval ac_res=\$$as_ac_Search
23617                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23618 $as_echo "$ac_res" >&6; }
23619 eval ac_res=\$$as_ac_Search
23620 if test "$ac_res" != no; then :
23621   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23622
23623 else
23624   set_have_as_tls=no
23625 fi
23626
23627     # Clear LIBS if we cannot support TLS.
23628     if test $set_have_as_tls = no; then
23629       LIBS=
23630     fi
23631     # Always define LIB_TLS_SPEC, even without TLS support.
23632
23633 cat >>confdefs.h <<_ACEOF
23634 #define LIB_TLS_SPEC "$LIBS"
23635 _ACEOF
23636
23637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23638 $as_echo "$LIBS" >&6; }
23639
23640     LIBS="$save_LIBS"
23641     LDFLAGS="$save_LDFLAGS"
23642     ;;
23643 esac
23644 if test $set_have_as_tls = yes ; then
23645
23646 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23647
23648 fi
23649
23650 # Target-specific assembler checks.
23651
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23653 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23654 gcc_cv_ld_static_dynamic=no
23655 gcc_cv_ld_static_option='-Bstatic'
23656 gcc_cv_ld_dynamic_option='-Bdynamic'
23657 if test $in_tree_ld = yes ; then
23658   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
23659     gcc_cv_ld_static_dynamic=yes
23660   fi
23661 elif test x$gcc_cv_ld != x; then
23662   # Check if linker supports -Bstatic/-Bdynamic option
23663   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23664      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23665       gcc_cv_ld_static_dynamic=yes
23666   else
23667     case "$target" in
23668       # AIX ld uses -b flags
23669       *-*-aix4.[23]* | *-*-aix[5-9]*)
23670         gcc_cv_ld_static_dynamic=yes
23671         gcc_cv_ld_static_option="-bstatic"
23672         gcc_cv_ld_dynamic_option="-bdynamic"
23673         ;;
23674       # HP-UX ld uses -a flags to select between shared and archive.
23675       *-*-hpux*)
23676         if test x"$gnu_ld" = xno; then
23677           gcc_cv_ld_static_dynamic=yes
23678           gcc_cv_ld_static_option="-aarchive_shared"
23679           gcc_cv_ld_dynamic_option="-adefault"
23680         fi
23681         ;;
23682       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23683       *-*-solaris2*)
23684         gcc_cv_ld_static_dynamic=yes
23685         ;;
23686     esac
23687   fi
23688 fi
23689 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23690
23691 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23692
23693
23694 cat >>confdefs.h <<_ACEOF
23695 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23696 _ACEOF
23697
23698
23699 cat >>confdefs.h <<_ACEOF
23700 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23701 _ACEOF
23702
23703 fi
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23705 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23706
23707 if test x"$demangler_in_ld" = xyes; then
23708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23709 $as_echo_n "checking linker --demangle support... " >&6; }
23710   gcc_cv_ld_demangle=no
23711   if test $in_tree_ld = yes; then
23712     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 \
23713       gcc_cv_ld_demangle=yes
23714     fi
23715   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23716     # Check if the GNU linker supports --demangle option
23717     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23718       gcc_cv_ld_demangle=yes
23719     fi
23720   fi
23721   if test x"$gcc_cv_ld_demangle" = xyes; then
23722
23723 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23724
23725   fi
23726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23727 $as_echo "$gcc_cv_ld_demangle" >&6; }
23728 fi
23729
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23731 $as_echo_n "checking linker plugin support... " >&6; }
23732 gcc_cv_lto_plugin=0
23733 if test -f liblto_plugin.la; then
23734   save_ld_ver="$ld_ver"
23735   save_ld_vers_major="$ld_vers_major"
23736   save_ld_vers_minor="$ld_vers_minor"
23737   save_ld_is_gold="$ld_is_gold"
23738
23739   ld_is_gold=no
23740
23741   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23742     ld_ver="GNU ld"
23743     # FIXME: ld_is_gold?
23744     ld_vers_major="$gcc_cv_gld_major_version"
23745     ld_vers_minor="$gcc_cv_gld_minor_version"
23746   else
23747     # Determine plugin linker version.
23748     # FIXME: Partial duplicate from above, generalize.
23749     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23750     if echo "$ld_ver" | grep GNU > /dev/null; then
23751       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23752         ld_is_gold=yes
23753         ld_vers=`echo $ld_ver | sed -n \
23754             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23755       else
23756         ld_vers=`echo $ld_ver | sed -n \
23757             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23758       fi
23759       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23760       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23761     fi
23762   fi
23763
23764   # Determine plugin support.
23765   if echo "$ld_ver" | grep GNU > /dev/null; then
23766     # Require GNU ld or gold 2.21+ for plugin support by default.
23767     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23768       gcc_cv_lto_plugin=2
23769     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23770     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23771       gcc_cv_lto_plugin=1
23772     fi
23773   fi
23774
23775   ld_ver="$save_ld_ver"
23776   ld_vers_major="$save_ld_vers_major"
23777   ld_vers_minor="$save_ld_vers_minor"
23778   ld_is_gold="$save_ld_is_gold"
23779 fi
23780
23781 cat >>confdefs.h <<_ACEOF
23782 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23783 _ACEOF
23784
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23786 $as_echo "$gcc_cv_lto_plugin" >&6; }
23787
23788 case "$target" in
23789   # All TARGET_ABI_OSF targets.
23790   alpha*-*-linux* | alpha*-*-*bsd*)
23791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23792 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23793 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23794   $as_echo_n "(cached) " >&6
23795 else
23796   gcc_cv_as_alpha_explicit_relocs=no
23797     if test $in_tree_gas = yes; then
23798     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23799   then gcc_cv_as_alpha_explicit_relocs=yes
23800 fi
23801   elif test x$gcc_cv_as != x; then
23802     $as_echo '  .set nomacro
23803         .text
23804         extbl   $3, $2, $3      !lituse_bytoff!1
23805         ldq     $2, a($29)      !literal!1
23806         ldq     $4, b($29)      !literal!2
23807         ldq_u   $3, 0($2)       !lituse_base!1
23808         ldq     $27, f($29)     !literal!5
23809         jsr     $26, ($27), f   !lituse_jsr!5
23810         ldah    $29, 0($26)     !gpdisp!3
23811         lda     $0, c($29)      !gprel
23812         ldah    $1, d($29)      !gprelhigh
23813         lda     $1, d($1)       !gprellow
23814         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23815     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23816   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23817   (eval $ac_try) 2>&5
23818   ac_status=$?
23819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23820   test $ac_status = 0; }; }
23821     then
23822         gcc_cv_as_alpha_explicit_relocs=yes
23823     else
23824       echo "configure: failed program was" >&5
23825       cat conftest.s >&5
23826     fi
23827     rm -f conftest.o conftest.s
23828   fi
23829 fi
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23831 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23832 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23833
23834 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23835
23836 fi
23837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23838 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23839 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23840   $as_echo_n "(cached) " >&6
23841 else
23842   gcc_cv_as_alpha_jsrdirect_relocs=no
23843     if test $in_tree_gas = yes; then
23844     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23845   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23846 fi
23847   elif test x$gcc_cv_as != x; then
23848     $as_echo '  .set nomacro
23849         .text
23850         ldq     $27, a($29)     !literal!1
23851         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23852     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23853   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23854   (eval $ac_try) 2>&5
23855   ac_status=$?
23856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23857   test $ac_status = 0; }; }
23858     then
23859         gcc_cv_as_alpha_jsrdirect_relocs=yes
23860     else
23861       echo "configure: failed program was" >&5
23862       cat conftest.s >&5
23863     fi
23864     rm -f conftest.o conftest.s
23865   fi
23866 fi
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23868 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23869 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23870
23871 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23872
23873 fi
23874     ;;
23875
23876   cris-*-*)
23877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23878 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23879 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23880   $as_echo_n "(cached) " >&6
23881 else
23882   gcc_cv_as_cris_no_mul_bug=no
23883     if test $in_tree_gas = yes; then
23884     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23885   then gcc_cv_as_cris_no_mul_bug=yes
23886 fi
23887   elif test x$gcc_cv_as != x; then
23888     $as_echo '.text' > conftest.s
23889     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23890   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23891   (eval $ac_try) 2>&5
23892   ac_status=$?
23893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23894   test $ac_status = 0; }; }
23895     then
23896         gcc_cv_as_cris_no_mul_bug=yes
23897     else
23898       echo "configure: failed program was" >&5
23899       cat conftest.s >&5
23900     fi
23901     rm -f conftest.o conftest.s
23902   fi
23903 fi
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23905 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23906 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23907
23908 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23909
23910 fi
23911     ;;
23912
23913   sparc*-*-*)
23914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23915 $as_echo_n "checking assembler for .register... " >&6; }
23916 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23917   $as_echo_n "(cached) " >&6
23918 else
23919   gcc_cv_as_sparc_register_op=no
23920   if test x$gcc_cv_as != x; then
23921     $as_echo '.register %g2, #scratch' > conftest.s
23922     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23923   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23924   (eval $ac_try) 2>&5
23925   ac_status=$?
23926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23927   test $ac_status = 0; }; }
23928     then
23929         gcc_cv_as_sparc_register_op=yes
23930     else
23931       echo "configure: failed program was" >&5
23932       cat conftest.s >&5
23933     fi
23934     rm -f conftest.o conftest.s
23935   fi
23936 fi
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23938 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23939 if test $gcc_cv_as_sparc_register_op = yes; then
23940
23941 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23942
23943 fi
23944
23945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
23946 $as_echo_n "checking assembler for #nobits... " >&6; }
23947 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
23948   $as_echo_n "(cached) " >&6
23949 else
23950   gcc_cv_as_sparc_nobits=no
23951   if test x$gcc_cv_as != x; then
23952     $as_echo '.section "nobits",#alloc,#write,#nobits
23953        .section "progbits",#alloc,#write,#progbits' > conftest.s
23954     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23955   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23956   (eval $ac_try) 2>&5
23957   ac_status=$?
23958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23959   test $ac_status = 0; }; }
23960     then
23961         gcc_cv_as_sparc_nobits=yes
23962     else
23963       echo "configure: failed program was" >&5
23964       cat conftest.s >&5
23965     fi
23966     rm -f conftest.o conftest.s
23967   fi
23968 fi
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
23970 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
23971
23972
23973 cat >>confdefs.h <<_ACEOF
23974 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
23975 _ACEOF
23976
23977
23978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23979 $as_echo_n "checking assembler for -relax option... " >&6; }
23980 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23981   $as_echo_n "(cached) " >&6
23982 else
23983   gcc_cv_as_sparc_relax=no
23984   if test x$gcc_cv_as != x; then
23985     $as_echo '.text' > conftest.s
23986     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23987   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23988   (eval $ac_try) 2>&5
23989   ac_status=$?
23990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23991   test $ac_status = 0; }; }
23992     then
23993         gcc_cv_as_sparc_relax=yes
23994     else
23995       echo "configure: failed program was" >&5
23996       cat conftest.s >&5
23997     fi
23998     rm -f conftest.o conftest.s
23999   fi
24000 fi
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24002 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24003 if test $gcc_cv_as_sparc_relax = yes; then
24004
24005 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24006
24007 fi
24008
24009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24010 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24011 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24012   $as_echo_n "(cached) " >&6
24013 else
24014   gcc_cv_as_sparc_gotdata_op=no
24015   if test x$gcc_cv_as != x; then
24016     $as_echo '.text
24017 .align 4
24018 foo:
24019         nop
24020 bar:
24021         sethi %gdop_hix22(foo), %g1
24022         xor    %g1, %gdop_lox10(foo), %g1
24023         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24024     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24025   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24026   (eval $ac_try) 2>&5
24027   ac_status=$?
24028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24029   test $ac_status = 0; }; }
24030     then
24031         if test x$gcc_cv_ld != x \
24032        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24033          if test x$gcc_cv_objdump != x; then
24034            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24035               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24036                gcc_cv_as_sparc_gotdata_op=no
24037            else
24038                gcc_cv_as_sparc_gotdata_op=yes
24039            fi
24040          fi
24041        fi
24042        rm -f conftest
24043     else
24044       echo "configure: failed program was" >&5
24045       cat conftest.s >&5
24046     fi
24047     rm -f conftest.o conftest.s
24048   fi
24049 fi
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24051 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24052 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24053
24054 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24055
24056 fi
24057
24058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24059 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24060 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24061   $as_echo_n "(cached) " >&6
24062 else
24063   gcc_cv_as_sparc_ua_pcrel=no
24064   if test x$gcc_cv_as != x; then
24065     $as_echo '.text
24066 foo:
24067         nop
24068 .data
24069 .align 4
24070 .byte 0
24071 .uaword %r_disp32(foo)' > conftest.s
24072     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24073   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24074   (eval $ac_try) 2>&5
24075   ac_status=$?
24076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24077   test $ac_status = 0; }; }
24078     then
24079         if test x$gcc_cv_ld != x \
24080        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24081          gcc_cv_as_sparc_ua_pcrel=yes
24082        fi
24083        rm -f conftest
24084     else
24085       echo "configure: failed program was" >&5
24086       cat conftest.s >&5
24087     fi
24088     rm -f conftest.o conftest.s
24089   fi
24090 fi
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24092 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24093 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24094
24095 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24096
24097
24098       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24099 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24100 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24101   $as_echo_n "(cached) " >&6
24102 else
24103   gcc_cv_as_sparc_ua_pcrel_hidden=no
24104   if test x$gcc_cv_as != x; then
24105     $as_echo '.data
24106 .align 4
24107 .byte 0x31
24108 .uaword %r_disp32(foo)
24109 .byte 0x32, 0x33, 0x34
24110 .global foo
24111 .hidden foo
24112 foo:
24113 .skip 4' > conftest.s
24114     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24115   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24116   (eval $ac_try) 2>&5
24117   ac_status=$?
24118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24119   test $ac_status = 0; }; }
24120     then
24121         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24122          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24123          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24124             | grep ' 31000000 07323334' > /dev/null 2>&1; then
24125             if $gcc_cv_objdump -R conftest 2> /dev/null \
24126                | grep 'DISP32' > /dev/null 2>&1; then
24127                 :
24128             else
24129                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24130             fi
24131          fi
24132          rm -f conftest
24133     else
24134       echo "configure: failed program was" >&5
24135       cat conftest.s >&5
24136     fi
24137     rm -f conftest.o conftest.s
24138   fi
24139 fi
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24141 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24142 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24143
24144 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24145
24146 fi
24147
24148 fi # unaligned pcrel relocs
24149
24150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24151 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24152 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24153   $as_echo_n "(cached) " >&6
24154 else
24155   gcc_cv_as_sparc_offsetable_lo10=no
24156   if test x$gcc_cv_as != x; then
24157     $as_echo '.text
24158         or %g1, %lo(ab) + 12, %g1
24159         or %g1, %lo(ab + 12), %g1' > conftest.s
24160     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24161   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24162   (eval $ac_try) 2>&5
24163   ac_status=$?
24164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24165   test $ac_status = 0; }; }
24166     then
24167         if test x$gcc_cv_objdump != x \
24168        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24169           | grep ' 82106000 82106000' > /dev/null 2>&1; then
24170          gcc_cv_as_sparc_offsetable_lo10=yes
24171        fi
24172     else
24173       echo "configure: failed program was" >&5
24174       cat conftest.s >&5
24175     fi
24176     rm -f conftest.o conftest.s
24177   fi
24178 fi
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24180 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24181 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24182
24183 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24184
24185 fi
24186
24187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24188 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24189 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24190   $as_echo_n "(cached) " >&6
24191 else
24192   gcc_cv_as_sparc_fmaf=no
24193   if test x$gcc_cv_as != x; then
24194     $as_echo '.text
24195        .register %g2, #scratch
24196        .register %g3, #scratch
24197        .align 4
24198        fmaddd %f0, %f2, %f4, %f6
24199        addxccc %g1, %g2, %g3
24200        fsrl32 %f2, %f4, %f8
24201        fnaddd %f10, %f12, %f14' > conftest.s
24202     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24203   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24204   (eval $ac_try) 2>&5
24205   ac_status=$?
24206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24207   test $ac_status = 0; }; }
24208     then
24209         gcc_cv_as_sparc_fmaf=yes
24210     else
24211       echo "configure: failed program was" >&5
24212       cat conftest.s >&5
24213     fi
24214     rm -f conftest.o conftest.s
24215   fi
24216 fi
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24218 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24219 if test $gcc_cv_as_sparc_fmaf = yes; then
24220
24221 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24222
24223 fi
24224
24225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24226 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24227 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24228   $as_echo_n "(cached) " >&6
24229 else
24230   gcc_cv_as_sparc_sparc4=no
24231   if test x$gcc_cv_as != x; then
24232     $as_echo '.text
24233        .register %g2, #scratch
24234        .register %g3, #scratch
24235        .align 4
24236        cxbe %g2, %g3, 1f
24237 1:     cwbneg %g2, %g3, 1f
24238 1:     sha1
24239        md5
24240        aes_kexpand0 %f4, %f6, %f8
24241        des_round %f38, %f40, %f42, %f44
24242        camellia_f %f54, %f56, %f58, %f60
24243        kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24244     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24245   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24246   (eval $ac_try) 2>&5
24247   ac_status=$?
24248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24249   test $ac_status = 0; }; }
24250     then
24251         gcc_cv_as_sparc_sparc4=yes
24252     else
24253       echo "configure: failed program was" >&5
24254       cat conftest.s >&5
24255     fi
24256     rm -f conftest.o conftest.s
24257   fi
24258 fi
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24260 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24261 if test $gcc_cv_as_sparc_sparc4 = yes; then
24262
24263 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24264
24265 fi
24266     ;;
24267
24268   i[34567]86-*-* | x86_64-*-*)
24269     case $target_os in
24270       cygwin*)
24271         # Full C++ conformance when using a shared libstdc++-v3 requires some
24272         # support from the Cygwin DLL, which in more recent versions exports
24273         # wrappers to aid in interposing and redirecting operators new, delete,
24274         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24275         # are configuring for a version of Cygwin that exports the wrappers.
24276         if test x$host = x$target; then
24277           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24278 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24279   gcc_ac_cygwin_dll_wrappers=yes
24280 else
24281   gcc_ac_cygwin_dll_wrappers=no
24282 fi
24283
24284         else
24285           # Can't check presence of libc functions during cross-compile, so
24286           # we just have to assume we're building for an up-to-date target.
24287           gcc_ac_cygwin_dll_wrappers=yes
24288         fi
24289
24290 cat >>confdefs.h <<_ACEOF
24291 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24292 _ACEOF
24293
24294     esac
24295     case $target_os in
24296       cygwin* | pe | mingw32* | interix*)
24297         # Recent binutils allows the three-operand form of ".comm" on PE.  This
24298         # definition is used unconditionally to initialise the default state of
24299         # the target option variable that governs usage of the feature.
24300         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24301 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24302 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24303   $as_echo_n "(cached) " >&6
24304 else
24305   gcc_cv_as_comm_has_align=no
24306     if test $in_tree_gas = yes; then
24307     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24308   then gcc_cv_as_comm_has_align=yes
24309 fi
24310   elif test x$gcc_cv_as != x; then
24311     $as_echo '.comm foo,1,32' > conftest.s
24312     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24313   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24314   (eval $ac_try) 2>&5
24315   ac_status=$?
24316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24317   test $ac_status = 0; }; }
24318     then
24319         gcc_cv_as_comm_has_align=yes
24320     else
24321       echo "configure: failed program was" >&5
24322       cat conftest.s >&5
24323     fi
24324     rm -f conftest.o conftest.s
24325   fi
24326 fi
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24328 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24329
24330
24331 cat >>confdefs.h <<_ACEOF
24332 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24333 _ACEOF
24334
24335         # Used for DWARF 2 in PE
24336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24337 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24338 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24339   $as_echo_n "(cached) " >&6
24340 else
24341   gcc_cv_as_ix86_pe_secrel32=no
24342     if test $in_tree_gas = yes; then
24343     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24344   then gcc_cv_as_ix86_pe_secrel32=yes
24345 fi
24346   elif test x$gcc_cv_as != x; then
24347     $as_echo '.text
24348 foo:    nop
24349 .data
24350         .secrel32 foo' > conftest.s
24351     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24352   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24353   (eval $ac_try) 2>&5
24354   ac_status=$?
24355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24356   test $ac_status = 0; }; }
24357     then
24358         if test x$gcc_cv_ld != x \
24359            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24360              gcc_cv_as_ix86_pe_secrel32=yes
24361            fi
24362            rm -f conftest
24363     else
24364       echo "configure: failed program was" >&5
24365       cat conftest.s >&5
24366     fi
24367     rm -f conftest.o conftest.s
24368   fi
24369 fi
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24371 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24372 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24373
24374 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24375
24376 fi
24377         # Test if the assembler supports the extended form of the .section
24378         # directive that specifies section alignment.  LTO support uses this,
24379         # but normally only after installation, so we warn but don't fail the
24380         # configure if LTO is enabled but the assembler does not support it.
24381         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24382 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24383 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24384   $as_echo_n "(cached) " >&6
24385 else
24386   gcc_cv_as_section_has_align=no
24387     if test $in_tree_gas = yes; then
24388     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24389   then gcc_cv_as_section_has_align=yes
24390 fi
24391   elif test x$gcc_cv_as != x; then
24392     $as_echo '.section lto_test,"dr0"' > conftest.s
24393     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24394   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24395   (eval $ac_try) 2>&5
24396   ac_status=$?
24397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24398   test $ac_status = 0; }; }
24399     then
24400         gcc_cv_as_section_has_align=yes
24401     else
24402       echo "configure: failed program was" >&5
24403       cat conftest.s >&5
24404     fi
24405     rm -f conftest.o conftest.s
24406   fi
24407 fi
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24409 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24410
24411         if test x$gcc_cv_as_section_has_align != xyes; then
24412           case ",$enable_languages," in
24413             *,lto,*)
24414               { $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
24415 $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;}
24416               ;;
24417           esac
24418         fi
24419         # Test if the assembler supports the section flag 'e' for specifying
24420         # an excluded section.
24421         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24422 $as_echo_n "checking assembler for .section with e... " >&6; }
24423 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24424   $as_echo_n "(cached) " >&6
24425 else
24426   gcc_cv_as_section_has_e=no
24427     if test $in_tree_gas = yes; then
24428     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24429   then gcc_cv_as_section_has_e=yes
24430 fi
24431   elif test x$gcc_cv_as != x; then
24432     $as_echo '.section foo1,"e"
24433 .byte 0,0,0,0' > conftest.s
24434     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24435   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24436   (eval $ac_try) 2>&5
24437   ac_status=$?
24438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24439   test $ac_status = 0; }; }
24440     then
24441         gcc_cv_as_section_has_e=yes
24442     else
24443       echo "configure: failed program was" >&5
24444       cat conftest.s >&5
24445     fi
24446     rm -f conftest.o conftest.s
24447   fi
24448 fi
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24450 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24451
24452
24453 cat >>confdefs.h <<_ACEOF
24454 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24455 _ACEOF
24456
24457         ;;
24458     esac
24459
24460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24461 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24462 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24463   $as_echo_n "(cached) " >&6
24464 else
24465   gcc_cv_as_ix86_filds=no
24466   if test x$gcc_cv_as != x; then
24467     $as_echo 'filds mem; fists mem' > conftest.s
24468     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24469   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24470   (eval $ac_try) 2>&5
24471   ac_status=$?
24472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24473   test $ac_status = 0; }; }
24474     then
24475         gcc_cv_as_ix86_filds=yes
24476     else
24477       echo "configure: failed program was" >&5
24478       cat conftest.s >&5
24479     fi
24480     rm -f conftest.o conftest.s
24481   fi
24482 fi
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24484 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24485 if test $gcc_cv_as_ix86_filds = yes; then
24486
24487 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24488
24489 fi
24490
24491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24492 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24493 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24494   $as_echo_n "(cached) " >&6
24495 else
24496   gcc_cv_as_ix86_fildq=no
24497   if test x$gcc_cv_as != x; then
24498     $as_echo 'fildq mem; fistpq mem' > conftest.s
24499     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24500   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24501   (eval $ac_try) 2>&5
24502   ac_status=$?
24503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24504   test $ac_status = 0; }; }
24505     then
24506         gcc_cv_as_ix86_fildq=yes
24507     else
24508       echo "configure: failed program was" >&5
24509       cat conftest.s >&5
24510     fi
24511     rm -f conftest.o conftest.s
24512   fi
24513 fi
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24515 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24516 if test $gcc_cv_as_ix86_fildq = yes; then
24517
24518 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24519
24520 fi
24521
24522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24523 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24524 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24525   $as_echo_n "(cached) " >&6
24526 else
24527   gcc_cv_as_ix86_cmov_sun_syntax=no
24528   if test x$gcc_cv_as != x; then
24529     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24530     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24531   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24532   (eval $ac_try) 2>&5
24533   ac_status=$?
24534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24535   test $ac_status = 0; }; }
24536     then
24537         gcc_cv_as_ix86_cmov_sun_syntax=yes
24538     else
24539       echo "configure: failed program was" >&5
24540       cat conftest.s >&5
24541     fi
24542     rm -f conftest.o conftest.s
24543   fi
24544 fi
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24546 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24547 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24548
24549 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24550
24551 fi
24552
24553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24554 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24555 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24556   $as_echo_n "(cached) " >&6
24557 else
24558   gcc_cv_as_ix86_ffreep=no
24559   if test x$gcc_cv_as != x; then
24560     $as_echo 'ffreep %st(1)' > conftest.s
24561     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24562   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24563   (eval $ac_try) 2>&5
24564   ac_status=$?
24565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24566   test $ac_status = 0; }; }
24567     then
24568         gcc_cv_as_ix86_ffreep=yes
24569     else
24570       echo "configure: failed program was" >&5
24571       cat conftest.s >&5
24572     fi
24573     rm -f conftest.o conftest.s
24574   fi
24575 fi
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24577 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24578 if test $gcc_cv_as_ix86_ffreep = yes; then
24579
24580 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24581
24582 fi
24583
24584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24585 $as_echo_n "checking assembler for .quad directive... " >&6; }
24586 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24587   $as_echo_n "(cached) " >&6
24588 else
24589   gcc_cv_as_ix86_quad=no
24590   if test x$gcc_cv_as != x; then
24591     $as_echo '.quad 0' > conftest.s
24592     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24593   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24594   (eval $ac_try) 2>&5
24595   ac_status=$?
24596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24597   test $ac_status = 0; }; }
24598     then
24599         gcc_cv_as_ix86_quad=yes
24600     else
24601       echo "configure: failed program was" >&5
24602       cat conftest.s >&5
24603     fi
24604     rm -f conftest.o conftest.s
24605   fi
24606 fi
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24608 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24609 if test $gcc_cv_as_ix86_quad = yes; then
24610
24611 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24612
24613 fi
24614
24615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24616 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24617 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24618   $as_echo_n "(cached) " >&6
24619 else
24620   gcc_cv_as_ix86_sahf=no
24621   if test x$gcc_cv_as != x; then
24622     $as_echo '.code64
24623        sahf' > conftest.s
24624     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24625   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24626   (eval $ac_try) 2>&5
24627   ac_status=$?
24628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24629   test $ac_status = 0; }; }
24630     then
24631         gcc_cv_as_ix86_sahf=yes
24632     else
24633       echo "configure: failed program was" >&5
24634       cat conftest.s >&5
24635     fi
24636     rm -f conftest.o conftest.s
24637   fi
24638 fi
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24640 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24641 if test $gcc_cv_as_ix86_sahf = yes; then
24642
24643 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24644
24645 fi
24646
24647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24648 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24649 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24650   $as_echo_n "(cached) " >&6
24651 else
24652   gcc_cv_as_ix86_hle=no
24653   if test x$gcc_cv_as != x; then
24654     $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24655     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24656   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24657   (eval $ac_try) 2>&5
24658   ac_status=$?
24659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24660   test $ac_status = 0; }; }
24661     then
24662         gcc_cv_as_ix86_hle=yes
24663     else
24664       echo "configure: failed program was" >&5
24665       cat conftest.s >&5
24666     fi
24667     rm -f conftest.o conftest.s
24668   fi
24669 fi
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24671 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24672 if test $gcc_cv_as_ix86_hle = yes; then
24673
24674 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24675
24676 fi
24677
24678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24679 $as_echo_n "checking assembler for swap suffix... " >&6; }
24680 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24681   $as_echo_n "(cached) " >&6
24682 else
24683   gcc_cv_as_ix86_swap=no
24684   if test x$gcc_cv_as != x; then
24685     $as_echo 'movl.s %esp, %ebp' > conftest.s
24686     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24687   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24688   (eval $ac_try) 2>&5
24689   ac_status=$?
24690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24691   test $ac_status = 0; }; }
24692     then
24693         gcc_cv_as_ix86_swap=yes
24694     else
24695       echo "configure: failed program was" >&5
24696       cat conftest.s >&5
24697     fi
24698     rm -f conftest.o conftest.s
24699   fi
24700 fi
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24702 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24703 if test $gcc_cv_as_ix86_swap = yes; then
24704
24705 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24706
24707 fi
24708
24709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24710 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24711 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24712   $as_echo_n "(cached) " >&6
24713 else
24714   gcc_cv_as_ix86_diff_sect_delta=no
24715   if test x$gcc_cv_as != x; then
24716     $as_echo '.section .rodata
24717 .L1:
24718         .long .L2-.L1
24719         .long .L3-.L1
24720         .text
24721 .L3:    nop
24722 .L2:    nop' > conftest.s
24723     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24724   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24725   (eval $ac_try) 2>&5
24726   ac_status=$?
24727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24728   test $ac_status = 0; }; }
24729     then
24730         gcc_cv_as_ix86_diff_sect_delta=yes
24731     else
24732       echo "configure: failed program was" >&5
24733       cat conftest.s >&5
24734     fi
24735     rm -f conftest.o conftest.s
24736   fi
24737 fi
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24739 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24740 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24741
24742 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24743
24744 fi
24745
24746     # These two are used unconditionally by i386.[ch]; it is to be defined
24747     # to 1 if the feature is present, 0 otherwise.
24748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24749 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24750 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24751   $as_echo_n "(cached) " >&6
24752 else
24753   gcc_cv_as_ix86_gotoff_in_data=no
24754     if test $in_tree_gas = yes; then
24755     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24756   then gcc_cv_as_ix86_gotoff_in_data=yes
24757 fi
24758   elif test x$gcc_cv_as != x; then
24759     $as_echo '  .text
24760 .L0:
24761         nop
24762         .data
24763         .long .L0@GOTOFF' > conftest.s
24764     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24765   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24766   (eval $ac_try) 2>&5
24767   ac_status=$?
24768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24769   test $ac_status = 0; }; }
24770     then
24771         gcc_cv_as_ix86_gotoff_in_data=yes
24772     else
24773       echo "configure: failed program was" >&5
24774       cat conftest.s >&5
24775     fi
24776     rm -f conftest.o conftest.s
24777   fi
24778 fi
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24780 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24781
24782
24783 cat >>confdefs.h <<_ACEOF
24784 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24785 _ACEOF
24786
24787
24788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24789 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24790 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24791   $as_echo_n "(cached) " >&6
24792 else
24793   gcc_cv_as_ix86_rep_lock_prefix=no
24794   if test x$gcc_cv_as != x; then
24795     $as_echo 'rep movsl
24796          rep ret
24797          rep nop
24798          rep bsf %ecx, %eax
24799          rep bsr %ecx, %eax
24800          lock addl %edi, (%eax,%esi)
24801          lock orl $0, (%esp)' > conftest.s
24802     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24803   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24804   (eval $ac_try) 2>&5
24805   ac_status=$?
24806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24807   test $ac_status = 0; }; }
24808     then
24809         gcc_cv_as_ix86_rep_lock_prefix=yes
24810     else
24811       echo "configure: failed program was" >&5
24812       cat conftest.s >&5
24813     fi
24814     rm -f conftest.o conftest.s
24815   fi
24816 fi
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24818 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24819 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24820
24821 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24822
24823 fi
24824
24825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24826 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24827 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24828   $as_echo_n "(cached) " >&6
24829 else
24830   gcc_cv_as_ix86_tlsgdplt=no
24831   if test x$gcc_cv_as != x; then
24832     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24833     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24834   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24835   (eval $ac_try) 2>&5
24836   ac_status=$?
24837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24838   test $ac_status = 0; }; }
24839     then
24840         if test x$gcc_cv_ld != x \
24841          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24842            gcc_cv_as_ix86_tlsgdplt=yes
24843          fi
24844          rm -f conftest
24845     else
24846       echo "configure: failed program was" >&5
24847       cat conftest.s >&5
24848     fi
24849     rm -f conftest.o conftest.s
24850   fi
24851 fi
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24853 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24854 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24855
24856 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24857
24858 fi
24859
24860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24861 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24862 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24863   $as_echo_n "(cached) " >&6
24864 else
24865   gcc_cv_as_ix86_tlsldmplt=no
24866   if test x$gcc_cv_as != x; then
24867     $as_echo 'tls_ld:
24868          call    tls_ld@tlsldmplt' > conftest.s
24869     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24870   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24871   (eval $ac_try) 2>&5
24872   ac_status=$?
24873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24874   test $ac_status = 0; }; }
24875     then
24876         if test x$gcc_cv_ld != x \
24877          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24878            gcc_cv_as_ix86_tlsldmplt=yes
24879          fi
24880          rm -f conftest
24881     else
24882       echo "configure: failed program was" >&5
24883       cat conftest.s >&5
24884     fi
24885     rm -f conftest.o conftest.s
24886   fi
24887 fi
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24889 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24890 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24891
24892 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24893
24894 fi
24895
24896     ;;
24897
24898   ia64*-*-*)
24899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24900 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24901 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24902   $as_echo_n "(cached) " >&6
24903 else
24904   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24905     if test $in_tree_gas = yes; then
24906     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24907   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24908 fi
24909   elif test x$gcc_cv_as != x; then
24910     $as_echo '  .text
24911         addl r15 = @ltoffx(x#), gp
24912         ;;
24913         ld8.mov r16 = [r15], x#' > conftest.s
24914     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24915   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24916   (eval $ac_try) 2>&5
24917   ac_status=$?
24918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24919   test $ac_status = 0; }; }
24920     then
24921         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24922     else
24923       echo "configure: failed program was" >&5
24924       cat conftest.s >&5
24925     fi
24926     rm -f conftest.o conftest.s
24927   fi
24928 fi
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24930 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24931 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24932
24933 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24934
24935 fi
24936
24937     ;;
24938
24939   powerpc*-*-*)
24940     case $target in
24941       *-*-aix*) conftest_s='    .machine "pwr5"
24942         .csect .text[PR]
24943         mfcr 3,128';;
24944       *-*-darwin*)
24945         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24946 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24947 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24948   $as_echo_n "(cached) " >&6
24949 else
24950   gcc_cv_as_machine_directive=no
24951   if test x$gcc_cv_as != x; then
24952     $as_echo '  .machine ppc7400' > conftest.s
24953     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24954   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24955   (eval $ac_try) 2>&5
24956   ac_status=$?
24957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24958   test $ac_status = 0; }; }
24959     then
24960         gcc_cv_as_machine_directive=yes
24961     else
24962       echo "configure: failed program was" >&5
24963       cat conftest.s >&5
24964     fi
24965     rm -f conftest.o conftest.s
24966   fi
24967 fi
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24969 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24970
24971         if test x$gcc_cv_as_machine_directive != xyes; then
24972           echo "*** This target requires an assembler supporting \".machine\"" >&2
24973           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24974           test x$build = x$target && exit 1
24975         fi
24976         conftest_s='    .text
24977         mfcr r3,128';;
24978       *) conftest_s='   .machine power4
24979         .text
24980         mfcr 3,128';;
24981     esac
24982
24983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24984 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24985 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24986   $as_echo_n "(cached) " >&6
24987 else
24988   gcc_cv_as_powerpc_mfcrf=no
24989     if test $in_tree_gas = yes; then
24990     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24991   then gcc_cv_as_powerpc_mfcrf=yes
24992 fi
24993   elif test x$gcc_cv_as != x; then
24994     $as_echo "$conftest_s" > conftest.s
24995     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24996   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997   (eval $ac_try) 2>&5
24998   ac_status=$?
24999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000   test $ac_status = 0; }; }
25001     then
25002         gcc_cv_as_powerpc_mfcrf=yes
25003     else
25004       echo "configure: failed program was" >&5
25005       cat conftest.s >&5
25006     fi
25007     rm -f conftest.o conftest.s
25008   fi
25009 fi
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25011 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25012 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25013
25014 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25015
25016 fi
25017
25018     case $target in
25019       *-*-aix*) conftest_s='    .machine "pwr5"
25020         .csect .text[PR]
25021         popcntb 3,3';;
25022       *) conftest_s='   .machine power5
25023         .text
25024         popcntb 3,3';;
25025     esac
25026
25027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25028 $as_echo_n "checking assembler for popcntb support... " >&6; }
25029 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25030   $as_echo_n "(cached) " >&6
25031 else
25032   gcc_cv_as_powerpc_popcntb=no
25033     if test $in_tree_gas = yes; then
25034     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25035   then gcc_cv_as_powerpc_popcntb=yes
25036 fi
25037   elif test x$gcc_cv_as != x; then
25038     $as_echo "$conftest_s" > conftest.s
25039     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25040   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25041   (eval $ac_try) 2>&5
25042   ac_status=$?
25043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25044   test $ac_status = 0; }; }
25045     then
25046         gcc_cv_as_powerpc_popcntb=yes
25047     else
25048       echo "configure: failed program was" >&5
25049       cat conftest.s >&5
25050     fi
25051     rm -f conftest.o conftest.s
25052   fi
25053 fi
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25055 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25056 if test $gcc_cv_as_powerpc_popcntb = yes; then
25057
25058 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25059
25060 fi
25061
25062     case $target in
25063       *-*-aix*) conftest_s='    .machine "pwr5x"
25064         .csect .text[PR]
25065         frin 1,1';;
25066       *) conftest_s='   .machine power5
25067         .text
25068         frin 1,1';;
25069     esac
25070
25071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25072 $as_echo_n "checking assembler for fp round support... " >&6; }
25073 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25074   $as_echo_n "(cached) " >&6
25075 else
25076   gcc_cv_as_powerpc_fprnd=no
25077     if test $in_tree_gas = yes; then
25078     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25079   then gcc_cv_as_powerpc_fprnd=yes
25080 fi
25081   elif test x$gcc_cv_as != x; then
25082     $as_echo "$conftest_s" > conftest.s
25083     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25084   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25085   (eval $ac_try) 2>&5
25086   ac_status=$?
25087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25088   test $ac_status = 0; }; }
25089     then
25090         gcc_cv_as_powerpc_fprnd=yes
25091     else
25092       echo "configure: failed program was" >&5
25093       cat conftest.s >&5
25094     fi
25095     rm -f conftest.o conftest.s
25096   fi
25097 fi
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25099 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25100 if test $gcc_cv_as_powerpc_fprnd = yes; then
25101
25102 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25103
25104 fi
25105
25106     case $target in
25107       *-*-aix*) conftest_s='    .machine "pwr6"
25108         .csect .text[PR]
25109         mffgpr 1,3';;
25110       *) conftest_s='   .machine power6
25111         .text
25112         mffgpr 1,3';;
25113     esac
25114
25115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25116 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25117 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25118   $as_echo_n "(cached) " >&6
25119 else
25120   gcc_cv_as_powerpc_mfpgpr=no
25121     if test $in_tree_gas = yes; then
25122     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25123   then gcc_cv_as_powerpc_mfpgpr=yes
25124 fi
25125   elif test x$gcc_cv_as != x; then
25126     $as_echo "$conftest_s" > conftest.s
25127     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25128   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129   (eval $ac_try) 2>&5
25130   ac_status=$?
25131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132   test $ac_status = 0; }; }
25133     then
25134         gcc_cv_as_powerpc_mfpgpr=yes
25135     else
25136       echo "configure: failed program was" >&5
25137       cat conftest.s >&5
25138     fi
25139     rm -f conftest.o conftest.s
25140   fi
25141 fi
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25143 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25144 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25145
25146 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25147
25148 fi
25149
25150     case $target in
25151       *-*-aix*) conftest_s='    .csect .text[PR]
25152 LCF..0:
25153         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25154       *-*-darwin*)
25155         conftest_s='    .text
25156 LCF0:
25157         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25158       *) conftest_s='   .text
25159 .LCF0:
25160         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25161     esac
25162
25163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25164 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25165 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25166   $as_echo_n "(cached) " >&6
25167 else
25168   gcc_cv_as_powerpc_rel16=no
25169     if test $in_tree_gas = yes; then
25170     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25171   then gcc_cv_as_powerpc_rel16=yes
25172 fi
25173   elif test x$gcc_cv_as != x; then
25174     $as_echo "$conftest_s" > conftest.s
25175     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25176   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25177   (eval $ac_try) 2>&5
25178   ac_status=$?
25179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25180   test $ac_status = 0; }; }
25181     then
25182         gcc_cv_as_powerpc_rel16=yes
25183     else
25184       echo "configure: failed program was" >&5
25185       cat conftest.s >&5
25186     fi
25187     rm -f conftest.o conftest.s
25188   fi
25189 fi
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25191 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25192 if test $gcc_cv_as_powerpc_rel16 = yes; then
25193
25194 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25195
25196 fi
25197
25198     case $target in
25199       *-*-aix*) conftest_s='    .machine "pwr6"
25200         .csect .text[PR]
25201         cmpb 3,4,5';;
25202       *) conftest_s='   .machine power6
25203         .text
25204         cmpb 3,4,5';;
25205     esac
25206
25207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25208 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25209 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25210   $as_echo_n "(cached) " >&6
25211 else
25212   gcc_cv_as_powerpc_cmpb=no
25213     if test $in_tree_gas = yes; then
25214     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25215   then gcc_cv_as_powerpc_cmpb=yes
25216 fi
25217   elif test x$gcc_cv_as != x; then
25218     $as_echo "$conftest_s" > conftest.s
25219     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25220   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25221   (eval $ac_try) 2>&5
25222   ac_status=$?
25223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25224   test $ac_status = 0; }; }
25225     then
25226         gcc_cv_as_powerpc_cmpb=yes
25227     else
25228       echo "configure: failed program was" >&5
25229       cat conftest.s >&5
25230     fi
25231     rm -f conftest.o conftest.s
25232   fi
25233 fi
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25235 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25236 if test $gcc_cv_as_powerpc_cmpb = yes; then
25237
25238 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25239
25240 fi
25241
25242     case $target in
25243       *-*-aix*) conftest_s='    .machine "pwr6"
25244         .csect .text[PR]
25245         dadd 1,2,3';;
25246       *) conftest_s='   .machine power6
25247         .text
25248         dadd 1,2,3';;
25249     esac
25250
25251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25252 $as_echo_n "checking assembler for decimal float support... " >&6; }
25253 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25254   $as_echo_n "(cached) " >&6
25255 else
25256   gcc_cv_as_powerpc_dfp=no
25257     if test $in_tree_gas = yes; then
25258     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25259   then gcc_cv_as_powerpc_dfp=yes
25260 fi
25261   elif test x$gcc_cv_as != x; then
25262     $as_echo "$conftest_s" > conftest.s
25263     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25264   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25265   (eval $ac_try) 2>&5
25266   ac_status=$?
25267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25268   test $ac_status = 0; }; }
25269     then
25270         gcc_cv_as_powerpc_dfp=yes
25271     else
25272       echo "configure: failed program was" >&5
25273       cat conftest.s >&5
25274     fi
25275     rm -f conftest.o conftest.s
25276   fi
25277 fi
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25279 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25280 if test $gcc_cv_as_powerpc_dfp = yes; then
25281
25282 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25283
25284 fi
25285
25286     case $target in
25287       *-*-aix*) conftest_s='    .machine "pwr7"
25288         .csect .text[PR]
25289         lxvd2x 1,2,3';;
25290       *) conftest_s='   .machine power7
25291         .text
25292         lxvd2x 1,2,3';;
25293     esac
25294
25295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25296 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25297 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25298   $as_echo_n "(cached) " >&6
25299 else
25300   gcc_cv_as_powerpc_vsx=no
25301     if test $in_tree_gas = yes; then
25302     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25303   then gcc_cv_as_powerpc_vsx=yes
25304 fi
25305   elif test x$gcc_cv_as != x; then
25306     $as_echo "$conftest_s" > conftest.s
25307     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25308   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25309   (eval $ac_try) 2>&5
25310   ac_status=$?
25311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25312   test $ac_status = 0; }; }
25313     then
25314         gcc_cv_as_powerpc_vsx=yes
25315     else
25316       echo "configure: failed program was" >&5
25317       cat conftest.s >&5
25318     fi
25319     rm -f conftest.o conftest.s
25320   fi
25321 fi
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25323 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25324 if test $gcc_cv_as_powerpc_vsx = yes; then
25325
25326 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25327
25328 fi
25329
25330     case $target in
25331       *-*-aix*) conftest_s='    .machine "pwr7"
25332         .csect .text[PR]
25333         popcntd 3,3';;
25334       *) conftest_s='   .machine power7
25335         .text
25336         popcntd 3,3';;
25337     esac
25338
25339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25340 $as_echo_n "checking assembler for popcntd support... " >&6; }
25341 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25342   $as_echo_n "(cached) " >&6
25343 else
25344   gcc_cv_as_powerpc_popcntd=no
25345     if test $in_tree_gas = yes; then
25346     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25347   then gcc_cv_as_powerpc_popcntd=yes
25348 fi
25349   elif test x$gcc_cv_as != x; then
25350     $as_echo "$conftest_s" > conftest.s
25351     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25352   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25353   (eval $ac_try) 2>&5
25354   ac_status=$?
25355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25356   test $ac_status = 0; }; }
25357     then
25358         gcc_cv_as_powerpc_popcntd=yes
25359     else
25360       echo "configure: failed program was" >&5
25361       cat conftest.s >&5
25362     fi
25363     rm -f conftest.o conftest.s
25364   fi
25365 fi
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25367 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25368 if test $gcc_cv_as_powerpc_popcntd = yes; then
25369
25370 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25371
25372 fi
25373
25374     case $target in
25375       *-*-aix*) conftest_s='    .machine "pwr8"
25376         .csect .text[PR]';;
25377       *) conftest_s='   .machine power8
25378         .text';;
25379     esac
25380
25381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25382 $as_echo_n "checking assembler for power8 support... " >&6; }
25383 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25384   $as_echo_n "(cached) " >&6
25385 else
25386   gcc_cv_as_powerpc_power8=no
25387     if test $in_tree_gas = yes; then
25388     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25389   then gcc_cv_as_powerpc_power8=yes
25390 fi
25391   elif test x$gcc_cv_as != x; then
25392     $as_echo "$conftest_s" > conftest.s
25393     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25394   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25395   (eval $ac_try) 2>&5
25396   ac_status=$?
25397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25398   test $ac_status = 0; }; }
25399     then
25400         gcc_cv_as_powerpc_power8=yes
25401     else
25402       echo "configure: failed program was" >&5
25403       cat conftest.s >&5
25404     fi
25405     rm -f conftest.o conftest.s
25406   fi
25407 fi
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25409 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25410 if test $gcc_cv_as_powerpc_power8 = yes; then
25411
25412 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25413
25414 fi
25415
25416     case $target in
25417       *-*-aix*) conftest_s='    .csect .text[PR]
25418         lwsync';;
25419       *) conftest_s='   .text
25420         lwsync';;
25421     esac
25422
25423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25424 $as_echo_n "checking assembler for lwsync support... " >&6; }
25425 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25426   $as_echo_n "(cached) " >&6
25427 else
25428   gcc_cv_as_powerpc_lwsync=no
25429     if test $in_tree_gas = yes; then
25430     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25431   then gcc_cv_as_powerpc_lwsync=yes
25432 fi
25433   elif test x$gcc_cv_as != x; then
25434     $as_echo "$conftest_s" > conftest.s
25435     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25436   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437   (eval $ac_try) 2>&5
25438   ac_status=$?
25439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440   test $ac_status = 0; }; }
25441     then
25442         gcc_cv_as_powerpc_lwsync=yes
25443     else
25444       echo "configure: failed program was" >&5
25445       cat conftest.s >&5
25446     fi
25447     rm -f conftest.o conftest.s
25448   fi
25449 fi
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25451 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25452 if test $gcc_cv_as_powerpc_lwsync = yes; then
25453
25454 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25455
25456 fi
25457
25458     case $target in
25459       *-*-aix*) conftest_s='    .machine "476"
25460         .csect .text[PR]
25461         dci 0';;
25462       *) conftest_s='   .machine "476"
25463         .text
25464         dci 0';;
25465     esac
25466
25467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25468 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25469 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25470   $as_echo_n "(cached) " >&6
25471 else
25472   gcc_cv_as_powerpc_dci=no
25473     if test $in_tree_gas = yes; then
25474     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25475   then gcc_cv_as_powerpc_dci=yes
25476 fi
25477   elif test x$gcc_cv_as != x; then
25478     $as_echo "$conftest_s" > conftest.s
25479     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25480   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481   (eval $ac_try) 2>&5
25482   ac_status=$?
25483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484   test $ac_status = 0; }; }
25485     then
25486         gcc_cv_as_powerpc_dci=yes
25487     else
25488       echo "configure: failed program was" >&5
25489       cat conftest.s >&5
25490     fi
25491     rm -f conftest.o conftest.s
25492   fi
25493 fi
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25495 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25496 if test $gcc_cv_as_powerpc_dci = yes; then
25497
25498 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25499
25500 fi
25501
25502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25503 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25504 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25505   $as_echo_n "(cached) " >&6
25506 else
25507   gcc_cv_as_powerpc_gnu_attribute=no
25508     if test $in_tree_gas = yes; then
25509     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25510   then gcc_cv_as_powerpc_gnu_attribute=yes
25511 fi
25512   elif test x$gcc_cv_as != x; then
25513     $as_echo '.gnu_attribute 4,1' > conftest.s
25514     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25515   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25516   (eval $ac_try) 2>&5
25517   ac_status=$?
25518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25519   test $ac_status = 0; }; }
25520     then
25521         gcc_cv_as_powerpc_gnu_attribute=yes
25522     else
25523       echo "configure: failed program was" >&5
25524       cat conftest.s >&5
25525     fi
25526     rm -f conftest.o conftest.s
25527   fi
25528 fi
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25530 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25531 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25532
25533 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25534
25535 fi
25536
25537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25538 $as_echo_n "checking assembler for tls marker support... " >&6; }
25539 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25540   $as_echo_n "(cached) " >&6
25541 else
25542   gcc_cv_as_powerpc_tls_markers=no
25543     if test $in_tree_gas = yes; then
25544     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25545   then gcc_cv_as_powerpc_tls_markers=yes
25546 fi
25547   elif test x$gcc_cv_as != x; then
25548     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25549     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25550   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25551   (eval $ac_try) 2>&5
25552   ac_status=$?
25553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25554   test $ac_status = 0; }; }
25555     then
25556         gcc_cv_as_powerpc_tls_markers=yes
25557     else
25558       echo "configure: failed program was" >&5
25559       cat conftest.s >&5
25560     fi
25561     rm -f conftest.o conftest.s
25562   fi
25563 fi
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25565 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25566 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25567
25568 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25569
25570 fi
25571
25572     case $target in
25573       *-*-aix*)
25574         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25575 $as_echo_n "checking assembler for .ref support... " >&6; }
25576 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25577   $as_echo_n "(cached) " >&6
25578 else
25579   gcc_cv_as_aix_ref=no
25580     if test $in_tree_gas = yes; then
25581     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25582   then gcc_cv_as_aix_ref=yes
25583 fi
25584   elif test x$gcc_cv_as != x; then
25585     $as_echo '  .csect stuff[rw]
25586              stuff:
25587                 .long 1
25588                 .extern sym
25589                 .ref sym
25590           ' > conftest.s
25591     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25592   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593   (eval $ac_try) 2>&5
25594   ac_status=$?
25595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596   test $ac_status = 0; }; }
25597     then
25598         gcc_cv_as_aix_ref=yes
25599     else
25600       echo "configure: failed program was" >&5
25601       cat conftest.s >&5
25602     fi
25603     rm -f conftest.o conftest.s
25604   fi
25605 fi
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25607 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25608 if test $gcc_cv_as_aix_ref = yes; then
25609
25610 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25611
25612 fi
25613         ;;
25614     esac
25615     ;;
25616
25617   mips*-*-*)
25618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25619 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25620 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25621   $as_echo_n "(cached) " >&6
25622 else
25623   gcc_cv_as_mips_explicit_relocs=no
25624     if test $in_tree_gas = yes; then
25625     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25626   then gcc_cv_as_mips_explicit_relocs=yes
25627 fi
25628   elif test x$gcc_cv_as != x; then
25629     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25630     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25631   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25632   (eval $ac_try) 2>&5
25633   ac_status=$?
25634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25635   test $ac_status = 0; }; }
25636     then
25637         gcc_cv_as_mips_explicit_relocs=yes
25638     else
25639       echo "configure: failed program was" >&5
25640       cat conftest.s >&5
25641     fi
25642     rm -f conftest.o conftest.s
25643   fi
25644 fi
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25646 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25647 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25648   if test x$target_cpu_default = x
25649        then target_cpu_default=MASK_EXPLICIT_RELOCS
25650        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25651        fi
25652 fi
25653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25654 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25655 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25656   $as_echo_n "(cached) " >&6
25657 else
25658   gcc_cv_as_mips_no_shared=no
25659     if test $in_tree_gas = yes; then
25660     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25661   then gcc_cv_as_mips_no_shared=yes
25662 fi
25663   elif test x$gcc_cv_as != x; then
25664     $as_echo 'nop' > conftest.s
25665     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25666   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25667   (eval $ac_try) 2>&5
25668   ac_status=$?
25669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25670   test $ac_status = 0; }; }
25671     then
25672         gcc_cv_as_mips_no_shared=yes
25673     else
25674       echo "configure: failed program was" >&5
25675       cat conftest.s >&5
25676     fi
25677     rm -f conftest.o conftest.s
25678   fi
25679 fi
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25681 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25682 if test $gcc_cv_as_mips_no_shared = yes; then
25683
25684 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25685
25686 fi
25687
25688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25689 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25690 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25691   $as_echo_n "(cached) " >&6
25692 else
25693   gcc_cv_as_mips_gnu_attribute=no
25694     if test $in_tree_gas = yes; then
25695     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25696   then gcc_cv_as_mips_gnu_attribute=yes
25697 fi
25698   elif test x$gcc_cv_as != x; then
25699     $as_echo '.gnu_attribute 4,1' > conftest.s
25700     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25701   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25702   (eval $ac_try) 2>&5
25703   ac_status=$?
25704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25705   test $ac_status = 0; }; }
25706     then
25707         gcc_cv_as_mips_gnu_attribute=yes
25708     else
25709       echo "configure: failed program was" >&5
25710       cat conftest.s >&5
25711     fi
25712     rm -f conftest.o conftest.s
25713   fi
25714 fi
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25716 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25717 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25718
25719 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25720
25721 fi
25722
25723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25724 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25725 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25726   $as_echo_n "(cached) " >&6
25727 else
25728   gcc_cv_as_mips_dtprelword=no
25729     if test $in_tree_gas = yes; then
25730     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25731   then gcc_cv_as_mips_dtprelword=yes
25732 fi
25733   elif test x$gcc_cv_as != x; then
25734     $as_echo '.section .tdata,"awT",@progbits
25735 x:
25736         .word 2
25737         .text
25738         .dtprelword x+0x8000' > conftest.s
25739     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25740   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25741   (eval $ac_try) 2>&5
25742   ac_status=$?
25743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25744   test $ac_status = 0; }; }
25745     then
25746         gcc_cv_as_mips_dtprelword=yes
25747     else
25748       echo "configure: failed program was" >&5
25749       cat conftest.s >&5
25750     fi
25751     rm -f conftest.o conftest.s
25752   fi
25753 fi
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25755 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25756 if test $gcc_cv_as_mips_dtprelword = yes; then
25757
25758 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25759
25760 fi
25761
25762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25763 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25764 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25765   $as_echo_n "(cached) " >&6
25766 else
25767   gcc_cv_as_mips_dspr1_mult=no
25768   if test x$gcc_cv_as != x; then
25769     $as_echo '  .set    mips32r2
25770         .set    nodspr2
25771         .set    dsp
25772         madd    $ac3,$4,$5
25773         maddu   $ac3,$4,$5
25774         msub    $ac3,$4,$5
25775         msubu   $ac3,$4,$5
25776         mult    $ac3,$4,$5
25777         multu   $ac3,$4,$5' > conftest.s
25778     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25779   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25780   (eval $ac_try) 2>&5
25781   ac_status=$?
25782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25783   test $ac_status = 0; }; }
25784     then
25785         gcc_cv_as_mips_dspr1_mult=yes
25786     else
25787       echo "configure: failed program was" >&5
25788       cat conftest.s >&5
25789     fi
25790     rm -f conftest.o conftest.s
25791   fi
25792 fi
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25794 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25795 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25796
25797 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25798
25799 fi
25800
25801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25802 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25803     gcc_cv_as_ld_jalr_reloc=no
25804     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25805       if test $in_tree_ld = yes ; then
25806         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 \
25807            && test $in_tree_ld_is_elf = yes; then
25808           gcc_cv_as_ld_jalr_reloc=yes
25809         fi
25810       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25811         echo '  .ent x' > conftest.s
25812         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25813         echo '  ld $25,%call16(y)($28)' >> conftest.s
25814         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25815         echo '1:        jalr $25' >> conftest.s
25816         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25817         echo '1:        jalr $25' >> conftest.s
25818         echo '  .end x' >> conftest.s
25819         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25820            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25821           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25822              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25823             gcc_cv_as_ld_jalr_reloc=yes
25824           fi
25825         fi
25826         rm -f conftest.*
25827       fi
25828     fi
25829     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25830       if test x$target_cpu_default = x; then
25831         target_cpu_default=MASK_RELAX_PIC_CALLS
25832       else
25833         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25834       fi
25835     fi
25836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25837 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25838
25839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25840 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25841 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25842   $as_echo_n "(cached) " >&6
25843 else
25844   gcc_cv_ld_mips_personality_relaxation=no
25845        if test $in_tree_ld = yes ; then
25846          if test "$gcc_cv_gld_major_version" -eq 2 \
25847                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25848                  -o "$gcc_cv_gld_major_version" -gt 2; then
25849            gcc_cv_ld_mips_personality_relaxation=yes
25850          fi
25851        elif test x$gcc_cv_as != x \
25852                  -a x$gcc_cv_ld != x \
25853                  -a x$gcc_cv_readelf != x ; then
25854          cat > conftest.s <<EOF
25855         .cfi_startproc
25856         .cfi_personality 0x80,indirect_ptr
25857         .ent test
25858 test:
25859         nop
25860         .end test
25861         .cfi_endproc
25862
25863         .section .data,"aw",@progbits
25864 indirect_ptr:
25865         .dc.a personality
25866 EOF
25867          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25868             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25869            if $gcc_cv_readelf -d conftest 2>&1 \
25870               | grep TEXTREL > /dev/null 2>&1; then
25871              :
25872            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25873                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25874              :
25875            else
25876              gcc_cv_ld_mips_personality_relaxation=yes
25877            fi
25878          fi
25879        fi
25880        rm -f conftest.s conftest.o conftest
25881 fi
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25883 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25884     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25885
25886 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25887
25888     fi
25889     ;;
25890 esac
25891
25892 # Mips and HP-UX need the GNU assembler.
25893 # Linux on IA64 might be able to use the Intel assembler.
25894
25895 case "$target" in
25896   mips*-*-* | *-*-hpux* )
25897     if test x$gas_flag = xyes \
25898        || test x"$host" != x"$build" \
25899        || test ! -x "$gcc_cv_as" \
25900        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25901       :
25902     else
25903       echo "*** This configuration requires the GNU assembler" >&2
25904       exit 1
25905     fi
25906     ;;
25907 esac
25908
25909 # ??? Not all targets support dwarf2 debug_line, even within a version
25910 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25911 # info to the output file.  So, as supported targets are added to gas 2.11,
25912 # add some instruction here to (also) show we expect this might work.
25913 # ??? Once 2.11 is released, probably need to add first known working
25914 # version to the per-target configury.
25915 case "$cpu_type" in
25916   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25917   | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25918     insn="nop"
25919     ;;
25920   ia64 | s390)
25921     insn="nop 0"
25922     ;;
25923   mmix)
25924     insn="swym 0"
25925     ;;
25926 esac
25927 if test x"$insn" != x; then
25928  conftest_s="\
25929         .file 1 \"conftest.s\"
25930         .loc 1 3 0
25931         $insn"
25932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25933 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25934 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25935   $as_echo_n "(cached) " >&6
25936 else
25937   gcc_cv_as_dwarf2_debug_line=no
25938     if test $in_tree_gas = yes; then
25939     if test $in_tree_gas_is_elf = yes \
25940   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25941   then gcc_cv_as_dwarf2_debug_line=yes
25942 fi
25943   elif test x$gcc_cv_as != x; then
25944     $as_echo "$conftest_s" > conftest.s
25945     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25946   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25947   (eval $ac_try) 2>&5
25948   ac_status=$?
25949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25950   test $ac_status = 0; }; }
25951     then
25952         if test x$gcc_cv_objdump != x \
25953    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25954       | grep debug_line > /dev/null 2>&1; then
25955      gcc_cv_as_dwarf2_debug_line=yes
25956    fi
25957     else
25958       echo "configure: failed program was" >&5
25959       cat conftest.s >&5
25960     fi
25961     rm -f conftest.o conftest.s
25962   fi
25963 fi
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25965 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25966
25967
25968 # The .debug_line file table must be in the exact order that
25969 # we specified the files, since these indices are also used
25970 # by DW_AT_decl_file.  Approximate this test by testing if
25971 # the assembler bitches if the same index is assigned twice.
25972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25973 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25974 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25975   $as_echo_n "(cached) " >&6
25976 else
25977   gcc_cv_as_dwarf2_file_buggy=no
25978   if test x$gcc_cv_as != x; then
25979     $as_echo '  .file 1 "foo.s"
25980         .file 1 "bar.s"' > conftest.s
25981     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25982   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25983   (eval $ac_try) 2>&5
25984   ac_status=$?
25985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986   test $ac_status = 0; }; }
25987     then
25988         gcc_cv_as_dwarf2_file_buggy=yes
25989     else
25990       echo "configure: failed program was" >&5
25991       cat conftest.s >&5
25992     fi
25993     rm -f conftest.o conftest.s
25994   fi
25995 fi
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25997 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25998
25999
26000  if test $gcc_cv_as_dwarf2_debug_line = yes \
26001  && test $gcc_cv_as_dwarf2_file_buggy = no; then
26002
26003 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26004
26005  fi
26006
26007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26008 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26009 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26010   $as_echo_n "(cached) " >&6
26011 else
26012   gcc_cv_as_gdwarf2_flag=no
26013     if test $in_tree_gas = yes; then
26014     if test $in_tree_gas_is_elf = yes \
26015   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26016   then gcc_cv_as_gdwarf2_flag=yes
26017 fi
26018   elif test x$gcc_cv_as != x; then
26019     $as_echo "$insn" > conftest.s
26020     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26021   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26022   (eval $ac_try) 2>&5
26023   ac_status=$?
26024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26025   test $ac_status = 0; }; }
26026     then
26027         gcc_cv_as_gdwarf2_flag=yes
26028     else
26029       echo "configure: failed program was" >&5
26030       cat conftest.s >&5
26031     fi
26032     rm -f conftest.o conftest.s
26033   fi
26034 fi
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26036 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26037 if test $gcc_cv_as_gdwarf2_flag = yes; then
26038
26039 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26040
26041 fi
26042
26043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26044 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26045 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26046   $as_echo_n "(cached) " >&6
26047 else
26048   gcc_cv_as_gstabs_flag=no
26049     if test $in_tree_gas = yes; then
26050     if test $in_tree_gas_is_elf = yes \
26051   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26052   then gcc_cv_as_gstabs_flag=yes
26053 fi
26054   elif test x$gcc_cv_as != x; then
26055     $as_echo "$insn" > conftest.s
26056     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26057   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26058   (eval $ac_try) 2>&5
26059   ac_status=$?
26060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26061   test $ac_status = 0; }; }
26062     then
26063         # The native Solaris 9/Intel assembler doesn't understand --gstabs
26064    # and warns about it, but still exits successfully.  So check for
26065    # this.
26066    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26067   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26068   (eval $ac_try) 2>&5
26069   ac_status=$?
26070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26071   test $ac_status = 0; }; }
26072    then :
26073    else gcc_cv_as_gstabs_flag=yes
26074    fi
26075     else
26076       echo "configure: failed program was" >&5
26077       cat conftest.s >&5
26078     fi
26079     rm -f conftest.o conftest.s
26080   fi
26081 fi
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26083 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26084 if test $gcc_cv_as_gstabs_flag = yes; then
26085
26086 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26087
26088 fi
26089
26090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26091 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26092 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26093   $as_echo_n "(cached) " >&6
26094 else
26095   gcc_cv_as_debug_prefix_map_flag=no
26096     if test $in_tree_gas = yes; then
26097     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26098   then gcc_cv_as_debug_prefix_map_flag=yes
26099 fi
26100   elif test x$gcc_cv_as != x; then
26101     $as_echo "$insn" > conftest.s
26102     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26103   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26104   (eval $ac_try) 2>&5
26105   ac_status=$?
26106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26107   test $ac_status = 0; }; }
26108     then
26109         gcc_cv_as_debug_prefix_map_flag=yes
26110     else
26111       echo "configure: failed program was" >&5
26112       cat conftest.s >&5
26113     fi
26114     rm -f conftest.o conftest.s
26115   fi
26116 fi
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26118 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26119 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26120
26121 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26122
26123 fi
26124 fi
26125
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26127 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26128 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26129   $as_echo_n "(cached) " >&6
26130 else
26131   gcc_cv_as_lcomm_with_alignment=no
26132   if test x$gcc_cv_as != x; then
26133     $as_echo '.lcomm bar,4,16' > conftest.s
26134     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26135   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26136   (eval $ac_try) 2>&5
26137   ac_status=$?
26138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26139   test $ac_status = 0; }; }
26140     then
26141         gcc_cv_as_lcomm_with_alignment=yes
26142     else
26143       echo "configure: failed program was" >&5
26144       cat conftest.s >&5
26145     fi
26146     rm -f conftest.o conftest.s
26147   fi
26148 fi
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26150 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26151 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26152
26153 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26154
26155 fi
26156
26157 # Check whether --enable-gnu-unique-object was given.
26158 if test "${enable_gnu_unique_object+set}" = set; then :
26159   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26160     yes | no) ;;
26161     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26162 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26163   esac
26164 else
26165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26166 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26167 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26168   $as_echo_n "(cached) " >&6
26169 else
26170   gcc_cv_as_gnu_unique_object=no
26171     if test $in_tree_gas = yes; then
26172     if test $in_tree_gas_is_elf = yes \
26173   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26174   then gcc_cv_as_gnu_unique_object=yes
26175 fi
26176   elif test x$gcc_cv_as != x; then
26177     $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26178     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26179   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26180   (eval $ac_try) 2>&5
26181   ac_status=$?
26182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26183   test $ac_status = 0; }; }
26184     then
26185         gcc_cv_as_gnu_unique_object=yes
26186     else
26187       echo "configure: failed program was" >&5
26188       cat conftest.s >&5
26189     fi
26190     rm -f conftest.o conftest.s
26191   fi
26192 fi
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26194 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26195 if test $gcc_cv_as_gnu_unique_object = yes; then
26196   # We need to unquote above to to use the definition from config.gcc.
26197 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26198    if test x$host = x$build -a x$host = x$target &&
26199        ldd --version 2>/dev/null &&
26200        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26201       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26202       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26203       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26204       if test "$glibcnum" -ge 2011 ; then
26205         enable_gnu_unique_object=yes
26206       fi
26207     fi
26208 fi
26209 fi
26210
26211 if test x$enable_gnu_unique_object = xyes; then
26212
26213 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26214
26215 fi
26216
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26218 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26219 if test "${gcc_cv_as_line_zero+set}" = set; then :
26220   $as_echo_n "(cached) " >&6
26221 else
26222   gcc_cv_as_line_zero=no
26223   if test $in_tree_gas = yes; then
26224     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26225   then gcc_cv_as_line_zero=yes
26226 fi
26227   elif test "x$gcc_cv_as" != x; then
26228     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26229     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26230   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26231   (eval $ac_try) 2>&5
26232   ac_status=$?
26233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26234   test $ac_status = 0; }; } &&
26235        test "x`cat conftest.out`" = x
26236     then
26237       gcc_cv_as_line_zero=yes
26238     else
26239       echo "configure: failed program was" >&5
26240       cat conftest.s >&5
26241       echo "configure: error output was" >&5
26242       cat conftest.out >&5
26243     fi
26244     rm -f conftest.o conftest.s conftest.out
26245   fi
26246 fi
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26248 $as_echo "$gcc_cv_as_line_zero" >&6; }
26249 if test "x$gcc_cv_as_line_zero" = xyes; then
26250
26251 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26252
26253 fi
26254
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26256 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26257 gcc_cv_ld_eh_frame_hdr=no
26258 if test $in_tree_ld = yes ; then
26259   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 \
26260      && test $in_tree_ld_is_elf = yes; then
26261     gcc_cv_ld_eh_frame_hdr=yes
26262   fi
26263 elif test x$gcc_cv_ld != x; then
26264   if echo "$ld_ver" | grep GNU > /dev/null; then
26265     # Check if linker supports --eh-frame-hdr option
26266     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26267       gcc_cv_ld_eh_frame_hdr=yes
26268     fi
26269   else
26270     case "$target" in
26271       *-*-solaris2*)
26272         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26273         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26274           gcc_cv_ld_eh_frame_hdr=yes
26275         fi
26276         ;;
26277     esac
26278   fi
26279 fi
26280
26281 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26282
26283 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26284
26285 fi
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26287 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26288
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26290 $as_echo_n "checking linker position independent executable support... " >&6; }
26291 gcc_cv_ld_pie=no
26292 if test $in_tree_ld = yes ; then
26293   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 \
26294      && test $in_tree_ld_is_elf = yes; then
26295     gcc_cv_ld_pie=yes
26296   fi
26297 elif test x$gcc_cv_ld != x; then
26298         # Check if linker supports -pie option
26299         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26300                 gcc_cv_ld_pie=yes
26301         fi
26302 fi
26303 if test x"$gcc_cv_ld_pie" = xyes; then
26304
26305 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26306
26307 fi
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26309 $as_echo "$gcc_cv_ld_pie" >&6; }
26310
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26312 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26313 gcc_cv_ld_eh_gc_sections=no
26314 if test $in_tree_ld = yes ; then
26315   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 \
26316      && test $in_tree_ld_is_elf = yes; then
26317     gcc_cv_ld_eh_gc_sections=yes
26318   fi
26319 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26320   cat > conftest.s <<EOF
26321         .section        .text
26322 .globl _start
26323         .type _start, @function
26324 _start:
26325         .long foo
26326         .size _start, .-_start
26327         .section        .text.foo,"ax",@progbits
26328         .type foo, @function
26329 foo:
26330         .long 0
26331         .size foo, .-foo
26332         .section        .gcc_except_table.foo,"a",@progbits
26333 .L0:
26334         .long 0
26335         .section        .eh_frame,"a",@progbits
26336         .long .L0
26337 EOF
26338   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26339     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26340          | grep "gc-sections option ignored" > /dev/null; then
26341       gcc_cv_ld_eh_gc_sections=no
26342     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26343          | grep gcc_except_table > /dev/null; then
26344       gcc_cv_ld_eh_gc_sections=yes
26345       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26346       if test x$gcc_cv_as_comdat_group != xyes; then
26347         gcc_cv_ld_eh_gc_sections=no
26348         cat > conftest.s <<EOF
26349         .section        .text
26350 .globl _start
26351         .type _start, @function
26352 _start:
26353         .long foo
26354         .size _start, .-_start
26355         .section        .gnu.linkonce.t.foo,"ax",@progbits
26356         .type foo, @function
26357 foo:
26358         .long 0
26359         .size foo, .-foo
26360         .section        .gcc_except_table.foo,"a",@progbits
26361 .L0:
26362         .long 0
26363         .section        .eh_frame,"a",@progbits
26364         .long .L0
26365 EOF
26366         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26367           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26368                | grep "gc-sections option ignored" > /dev/null; then
26369             gcc_cv_ld_eh_gc_sections=no
26370           elif $gcc_cv_objdump -h conftest 2> /dev/null \
26371                | grep gcc_except_table > /dev/null; then
26372             gcc_cv_ld_eh_gc_sections=yes
26373           fi
26374         fi
26375       fi
26376     fi
26377   fi
26378   rm -f conftest.s conftest.o conftest
26379 fi
26380 case "$target" in
26381   hppa*-*-linux*)
26382     # ??? This apparently exposes a binutils bug with PC-relative relocations.
26383     gcc_cv_ld_eh_gc_sections=no
26384     ;;
26385 esac
26386 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26387
26388 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26389
26390 fi
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26392 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26393
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26395 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26396 gcc_cv_ld_eh_gc_sections_bug=no
26397 if test $in_tree_ld = yes ; then
26398   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 \
26399      && test $in_tree_ld_is_elf = yes; then
26400     gcc_cv_ld_eh_gc_sections_bug=yes
26401   fi
26402 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
26403   gcc_cv_ld_eh_gc_sections_bug=yes
26404   cat > conftest.s <<EOF
26405         .section        .text
26406 .globl _start
26407         .type _start, @function
26408 _start:
26409         .long foo
26410         .size _start, .-_start
26411         .section        .text.startup.foo,"ax",@progbits
26412         .type foo, @function
26413 foo:
26414         .long 0
26415         .size foo, .-foo
26416         .section        .gcc_except_table.foo,"a",@progbits
26417 .L0:
26418         .long 0
26419         .section        .eh_frame,"a",@progbits
26420         .long .L0
26421 EOF
26422   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26423     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26424          | grep "gc-sections option ignored" > /dev/null; then
26425       :
26426     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26427          | grep gcc_except_table > /dev/null; then
26428       gcc_cv_ld_eh_gc_sections_bug=no
26429     fi
26430   fi
26431   rm -f conftest.s conftest.o conftest
26432 fi
26433 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26434
26435 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26436
26437 fi
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26439 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26440
26441 # --------
26442 # UNSORTED
26443 # --------
26444
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26446 $as_echo_n "checking linker --as-needed support... " >&6; }
26447 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26448   $as_echo_n "(cached) " >&6
26449 else
26450   gcc_cv_ld_as_needed=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 16 -o "$gcc_cv_gld_major_version" -gt 2 \
26453      && test $in_tree_ld_is_elf = yes; then
26454     gcc_cv_ld_as_needed=yes
26455   fi
26456 elif test x$gcc_cv_ld != x; then
26457         # Check if linker supports --as-needed and --no-as-needed options
26458         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26459                 gcc_cv_ld_as_needed=yes
26460         fi
26461 fi
26462
26463 fi
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26465 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26466 if test x"$gcc_cv_ld_as_needed" = xyes; then
26467
26468 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26469
26470 fi
26471
26472 case "$target:$tm_file" in
26473   powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26474   case "$target" in
26475      *le-*-linux*)
26476      emul_name="-melf64lppc"
26477       ;;
26478      *-*-linux*)
26479      emul_name="-melf64ppc"
26480       ;;
26481      *-*-freebsd*)
26482      emul_name="-melf64ppc_fbsd"
26483       ;;
26484   esac
26485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26486 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26487 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26488   $as_echo_n "(cached) " >&6
26489 else
26490   gcc_cv_ld_no_dot_syms=no
26491     if test x"$ld_is_gold" = xyes; then
26492       gcc_cv_ld_no_dot_syms=yes
26493     elif test $in_tree_ld = yes ; then
26494       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
26495         gcc_cv_ld_no_dot_syms=yes
26496       fi
26497     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26498       cat > conftest1.s <<EOF
26499         .text
26500         bl .foo
26501 EOF
26502       cat > conftest2.s <<EOF
26503         .section ".opd","aw"
26504         .align 3
26505         .globl foo
26506         .type foo,@function
26507 foo:
26508         .quad .LEfoo,.TOC.@tocbase,0
26509         .text
26510 .LEfoo:
26511         blr
26512         .size foo,.-.LEfoo
26513 EOF
26514       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26515          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26516          && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26517         gcc_cv_ld_no_dot_syms=yes
26518       fi
26519       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26520     fi
26521
26522 fi
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26524 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26525     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26526
26527 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26528
26529     fi
26530
26531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26532 $as_echo_n "checking linker large toc support... " >&6; }
26533 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26534   $as_echo_n "(cached) " >&6
26535 else
26536   gcc_cv_ld_large_toc=no
26537     if test x"$ld_is_gold" = xyes; then
26538       gcc_cv_ld_large_toc=yes
26539     elif test $in_tree_ld = yes ; then
26540       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
26541         gcc_cv_ld_large_toc=yes
26542       fi
26543     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26544       cat > conftest.s <<EOF
26545         .section ".tbss","awT",@nobits
26546         .align 3
26547 ie0:    .space 8
26548         .global _start
26549         .text
26550 _start:
26551         addis 9,13,ie0@got@tprel@ha
26552         ld 9,ie0@got@tprel@l(9)
26553 EOF
26554       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26555          && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26556         gcc_cv_ld_large_toc=yes
26557       fi
26558       rm -f conftest conftest.o conftest.s
26559     fi
26560
26561 fi
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26563 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26564     if test x"$gcc_cv_ld_large_toc" = xyes; then
26565
26566 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26567
26568     fi
26569     ;;
26570 esac
26571
26572 case "$target" in
26573   *-*-aix*)
26574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26575 $as_echo_n "checking linker large toc support... " >&6; }
26576 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26577   $as_echo_n "(cached) " >&6
26578 else
26579   gcc_cv_ld_large_toc=no
26580     if test x$gcc_cv_as != x ; then
26581       cat > conftest.s <<EOF
26582         .toc
26583 LC..1:
26584         .tc a[TC],a[RW]
26585         .extern a[RW]
26586         .csect .text[PR]
26587 .largetoctest:
26588         addis 9,LC..1@u(2)
26589         ld 3,LC..1@l(9)
26590 EOF
26591       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26592         gcc_cv_ld_large_toc=yes
26593       fi
26594       rm -f conftest conftest.o conftest.s
26595     fi
26596
26597 fi
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26599 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26600     if test x"$gcc_cv_ld_large_toc" = xyes; then
26601
26602 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26603
26604     fi
26605     ;;
26606 esac
26607
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26609 $as_echo_n "checking linker --build-id support... " >&6; }
26610 if test "${gcc_cv_ld_buildid+set}" = set; then :
26611   $as_echo_n "(cached) " >&6
26612 else
26613   gcc_cv_ld_buildid=no
26614   if test $in_tree_ld = yes ; then
26615     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26616        "$gcc_cv_gld_minor_version" -ge 18 -o \
26617        "$gcc_cv_gld_major_version" -gt 2 \
26618        && test $in_tree_ld_is_elf = yes; then
26619       gcc_cv_ld_buildid=yes
26620     fi
26621   elif test x$gcc_cv_ld != x; then
26622     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26623       gcc_cv_ld_buildid=yes
26624     fi
26625   fi
26626 fi
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26628 $as_echo "$gcc_cv_ld_buildid" >&6; }
26629 if test x"$gcc_cv_ld_buildid" = xyes; then
26630
26631 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26632
26633 fi
26634
26635 # Check whether --enable-linker-build-id was given.
26636 if test "${enable_linker_build_id+set}" = set; then :
26637   enableval=$enable_linker_build_id;
26638 else
26639   enable_linker_build_id=no
26640 fi
26641
26642
26643 if test x"$enable_linker_build_id" = xyes; then
26644   if test x"$gcc_cv_ld_buildid" = xyes; then
26645
26646 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26647
26648   else
26649     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26650 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26651   fi
26652 fi
26653
26654 # In binutils 2.21, GNU ld gained support for new emulations fully
26655 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26657 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26658 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26659   $as_echo_n "(cached) " >&6
26660 else
26661   gcc_cv_ld_sol2_emulation=no
26662   if test $in_tree_ld = yes ; then
26663     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26664        "$gcc_cv_gld_minor_version" -ge 21 -o \
26665        "$gcc_cv_gld_major_version" -gt 2 \
26666        && test $in_tree_ld_is_elf = yes; then
26667       gcc_cv_ld_sol2_emulation=yes
26668     fi
26669   elif test x$gcc_cv_ld != x; then
26670     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26671        grep _sol2 > /dev/null; then
26672       gcc_cv_ld_sol2_emulation=yes
26673     fi
26674   fi
26675 fi
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26677 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26678 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26679
26680 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26681
26682 fi
26683
26684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26685 $as_echo_n "checking linker --sysroot support... " >&6; }
26686 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26687   $as_echo_n "(cached) " >&6
26688 else
26689   gcc_cv_ld_sysroot=no
26690   if test $in_tree_ld = yes ; then
26691       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
26692         gcc_cv_ld_sysroot=yes
26693       fi
26694   elif test x$gcc_cv_ld != x; then
26695     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26696       gcc_cv_ld_sysroot=yes
26697     fi
26698   fi
26699 fi
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26701 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26702 if test x"$gcc_cv_ld_sysroot" = xyes; then
26703
26704 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26705
26706 fi
26707
26708 if test x$with_sysroot = x && test x$host = x$target \
26709    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26710    && test "$prefix" != "NONE"; then
26711
26712 cat >>confdefs.h <<_ACEOF
26713 #define PREFIX_INCLUDE_DIR "$prefix/include"
26714 _ACEOF
26715
26716 fi
26717
26718 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26719   if test "x$with_headers" != x; then
26720     target_header_dir=$with_headers
26721   elif test "x$with_sysroot" = x; then
26722     target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26723   elif test "x$with_build_sysroot" != "x"; then
26724     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26725   elif test "x$with_sysroot" = xyes; then
26726     target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26727   else
26728     target_header_dir="${with_sysroot}${native_system_header_dir}"
26729   fi
26730 else
26731   target_header_dir=${native_system_header_dir}
26732 fi
26733
26734 # Test for stack protector support in target C library.
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26736 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26737 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26738   $as_echo_n "(cached) " >&6
26739 else
26740   gcc_cv_libc_provides_ssp=no
26741     case "$target" in
26742        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26743       # glibc 2.4 and later provides __stack_chk_fail and
26744       # either __stack_chk_guard, or TLS access to stack guard canary.
26745       if test -f $target_header_dir/features.h \
26746          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26747             $target_header_dir/features.h > /dev/null; then
26748         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26749            $target_header_dir/features.h > /dev/null; then
26750           gcc_cv_libc_provides_ssp=yes
26751         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26752              $target_header_dir/features.h > /dev/null \
26753              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26754              $target_header_dir/features.h > /dev/null; then
26755           gcc_cv_libc_provides_ssp=yes
26756         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26757              $target_header_dir/features.h > /dev/null && \
26758              test -f $target_header_dir/bits/uClibc_config.h && \
26759              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26760              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26761           gcc_cv_libc_provides_ssp=yes
26762         fi
26763       # all versions of Bionic support stack protector
26764       elif test -f $target_header_dir/sys/cdefs.h \
26765         && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
26766            $target_header_dir/sys/cdefs.h > /dev/null; then
26767          gcc_cv_libc_provides_ssp=yes
26768       fi
26769         ;;
26770        *-*-gnu*)
26771          # Avoid complicated tests (see
26772          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26773          # simply assert that glibc does provide this, which is true for all
26774          # realistically usable GNU/Hurd configurations.
26775          gcc_cv_libc_provides_ssp=yes;;
26776        *-*-darwin* | *-*-freebsd*)
26777          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26778 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26779   gcc_cv_libc_provides_ssp=yes
26780 else
26781   echo "no __stack_chk_fail on this target"
26782 fi
26783
26784         ;;
26785   *) gcc_cv_libc_provides_ssp=no ;;
26786     esac
26787 fi
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26789 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26790
26791 if test x$gcc_cv_libc_provides_ssp = xyes; then
26792
26793 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26794
26795 fi
26796
26797 # Test for <sys/sdt.h> on the target.
26798
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26800 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26801 have_sys_sdt_h=no
26802 if test -f $target_header_dir/sys/sdt.h; then
26803   have_sys_sdt_h=yes
26804
26805 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26806
26807 fi
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26809 $as_echo "$have_sys_sdt_h" >&6; }
26810
26811 # Check if TFmode long double should be used by default or not.
26812 # Some glibc targets used DFmode long double, but with glibc 2.4
26813 # and later they can use TFmode.
26814 case "$target" in
26815   powerpc*-*-linux* | \
26816   sparc*-*-linux* | \
26817   s390*-*-linux* | \
26818   alpha*-*-linux*)
26819
26820 # Check whether --with-long-double-128 was given.
26821 if test "${with_long_double_128+set}" = set; then :
26822   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26823 else
26824   gcc_cv_target_ldbl128=no
26825       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26826         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26827       && gcc_cv_target_ldbl128=yes
26828
26829 fi
26830
26831     ;;
26832 esac
26833 if test x$gcc_cv_target_ldbl128 = xyes; then
26834
26835 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26836
26837 fi
26838
26839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26840 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26841 gcc_cv_target_dl_iterate_phdr=unknown
26842 case "$target" in
26843   # Restrict to Solaris 11+.  While most of the Solaris 11 linker changes
26844   # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26845   # libdl there, both complicating its use and breaking compatibility
26846   # between Solaris 10 updates.
26847   *-*-solaris2.1[1-9]*)
26848     # <link.h> needs both a dl_iterate_phdr declaration and support for
26849     # compilation with largefile support.
26850     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26851       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26852       gcc_cv_target_dl_iterate_phdr=yes
26853     else
26854       gcc_cv_target_dl_iterate_phdr=no
26855     fi
26856     ;;
26857 esac
26858
26859 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26860
26861 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26862
26863 fi
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26865 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26866
26867 # We no longer support different GC mechanisms.  Emit an error if
26868 # the user configures with --with-gc.
26869
26870 # Check whether --with-gc was given.
26871 if test "${with_gc+set}" = set; then :
26872   withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
26873 fi
26874
26875
26876 # Libraries to use on the host.  This will normally be set by the top
26877 # level Makefile.  Here we simply capture the value for our Makefile.
26878 if test -z "${HOST_LIBS+set}"; then
26879   HOST_LIBS=
26880 fi
26881
26882
26883 # Use the system's zlib library.
26884 zlibdir=-L../zlib
26885 zlibinc="-I\$(srcdir)/../zlib"
26886
26887 # Check whether --with-system-zlib was given.
26888 if test "${with_system_zlib+set}" = set; then :
26889   withval=$with_system_zlib; zlibdir=
26890 zlibinc=
26891
26892 fi
26893
26894
26895
26896
26897
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26899 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26900     # Check whether --enable-maintainer-mode was given.
26901 if test "${enable_maintainer_mode+set}" = set; then :
26902   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26903 else
26904   maintainer_mode=no
26905 fi
26906
26907
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26909 $as_echo "$maintainer_mode" >&6; }
26910
26911 if test "$maintainer_mode" = "yes"; then
26912   MAINT=''
26913 else
26914   MAINT='#'
26915 fi
26916
26917 # --------------
26918 # Language hooks
26919 # --------------
26920
26921 # Make empty files to contain the specs and options for each language.
26922 # Then add #include lines to for a compiler that has specs and/or options.
26923
26924 subdirs=
26925 lang_opt_files=
26926 lang_specs_files=
26927 lang_tree_files=
26928 # These (without "all_") are set in each config-lang.in.
26929 # `language' must be a single word so is spelled singularly.
26930 all_languages=
26931 all_compilers=
26932 all_outputs='Makefile'
26933 # List of language makefile fragments.
26934 all_lang_makefrags=
26935 # Additional files for gengtype
26936 all_gtfiles="$target_gtfiles"
26937
26938 # These are the languages that are set in --enable-languages,
26939 # and are available in the GCC tree.
26940 all_selected_languages=
26941
26942 # Add the language fragments.
26943 # Languages are added via two mechanisms.  Some information must be
26944 # recorded in makefile variables, these are defined in config-lang.in.
26945 # We accumulate them and plug them into the main Makefile.
26946 # The other mechanism is a set of hooks for each of the main targets
26947 # like `clean', `install', etc.
26948
26949 language_hooks="Make-hooks"
26950
26951 for lang in ${srcdir}/*/config-lang.in
26952 do
26953         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26954
26955         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26956         if test "x$lang_alias" = x
26957         then
26958               echo "$lang doesn't set \$language." 1>&2
26959               exit 1
26960         fi
26961         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26962         subdirs="$subdirs $subdir"
26963
26964         # $gcc_subdir is where the gcc integration files are to be found
26965         # for a language, both for internal compiler purposes (compiler
26966         # sources implementing front-end to GCC tree converters), and for
26967         # build infrastructure purposes (Make-lang.in, etc.)
26968         #
26969         # This will be <subdir> (relative to $srcdir) if a line like
26970         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26971         # is found in <langdir>/config-lang.in, and will remain <langdir>
26972         # otherwise.
26973         #
26974         # Except for the language alias (fetched above), the regular
26975         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26976         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26977         # only this and the language alias.
26978
26979         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26980         if [ "$gcc_subdir" = "" ]; then
26981            gcc_subdir="$subdir"
26982         fi
26983
26984         case ",$enable_languages," in
26985         *,$lang_alias,*)
26986             all_selected_languages="$all_selected_languages $lang_alias"
26987             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26988                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26989             fi
26990             ;;
26991         esac
26992
26993         language=
26994         boot_language=
26995         compilers=
26996         outputs=
26997         gtfiles=
26998         subdir_requires=
26999         . ${srcdir}/$gcc_subdir/config-lang.in
27000         if test "x$language" = x
27001         then
27002                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27003                 exit 1
27004         fi
27005
27006         ok=:
27007         case ",$enable_languages," in
27008                 *,$lang_alias,*) ;;
27009                 *)
27010                         for i in $subdir_requires; do
27011                                 test -f "${srcdir}/$i/config-lang.in" && continue
27012                                 ok=false
27013                                 break
27014                         done
27015                 ;;
27016         esac
27017         $ok || continue
27018
27019         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27020         if test -f $srcdir/$gcc_subdir/lang.opt; then
27021             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27022             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27023         fi
27024         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27025             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27026         fi
27027         all_languages="$all_languages $language"
27028         all_compilers="$all_compilers $compilers"
27029         all_outputs="$all_outputs $outputs"
27030         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27031         case ",$enable_languages," in
27032                 *,lto,*)
27033
27034 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27035
27036                     enable_lto=yes
27037
27038                     ;;
27039                 *) ;;
27040         esac
27041 done
27042
27043 check_languages=
27044 for language in $all_selected_languages
27045 do
27046         check_languages="$check_languages check-$language"
27047 done
27048
27049 # We link each language in with a set of hooks, reached indirectly via
27050 # lang.${target}.  Only do so for selected languages.
27051
27052 rm -f Make-hooks
27053 touch Make-hooks
27054 target_list="all.cross start.encap rest.encap tags \
27055         install-common install-man install-info install-pdf install-html dvi \
27056         pdf html uninstall info man srcextra srcman srcinfo \
27057         mostlyclean clean distclean maintainer-clean install-plugin"
27058
27059 for t in $target_list
27060 do
27061         x=
27062         for lang in $all_selected_languages
27063         do
27064                 x="$x $lang.$t"
27065         done
27066         echo "lang.$t: $x" >> Make-hooks
27067 done
27068
27069 # --------
27070 # Option include files
27071 # --------
27072
27073 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27074 option_includes="option-includes.mk"
27075
27076
27077 # --------
27078 # UNSORTED
27079 # --------
27080
27081 # Create .gdbinit.
27082
27083 echo "dir ." > .gdbinit
27084 echo "dir ${srcdir}" >> .gdbinit
27085 if test x$gdb_needs_out_file_path = xyes
27086 then
27087         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27088 fi
27089 if test "x$subdirs" != x; then
27090         for s in $subdirs
27091         do
27092                 echo "dir ${srcdir}/$s" >> .gdbinit
27093         done
27094 fi
27095 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27096
27097 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27098
27099
27100
27101 # Find a directory in which to install a shared libgcc.
27102
27103 # Check whether --enable-version-specific-runtime-libs was given.
27104 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27105   enableval=$enable_version_specific_runtime_libs;
27106 fi
27107
27108
27109 # Substitute configuration variables
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172 # Echo link setup.
27173 if test x${build} = x${host} ; then
27174   if test x${host} = x${target} ; then
27175     echo "Links are now set up to build a native compiler for ${target}." 1>&2
27176   else
27177     echo "Links are now set up to build a cross-compiler" 1>&2
27178     echo " from ${host} to ${target}." 1>&2
27179   fi
27180 else
27181   if test x${host} = x${target} ; then
27182     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27183     echo " for ${target}." 1>&2
27184   else
27185     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27186     echo " from ${host} to ${target}." 1>&2
27187   fi
27188 fi
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198 if test "x${CLOOGLIBS}" != "x" ; then
27199
27200 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27201
27202 fi
27203
27204 # Check for plugin support
27205 # Check whether --enable-plugin was given.
27206 if test "${enable_plugin+set}" = set; then :
27207   enableval=$enable_plugin; enable_plugin=$enableval
27208 else
27209   enable_plugin=yes; default_plugin=yes
27210 fi
27211
27212
27213 pluginlibs=
27214
27215 case "${host}" in
27216   *-*-darwin*)
27217     if test x$build = x$host; then
27218       export_sym_check="nm${exeext} -g"
27219     elif test x$host = x$target; then
27220       export_sym_check="$gcc_cv_nm -g"
27221     else
27222       export_sym_check=
27223     fi
27224   ;;
27225   *)
27226     if test x$build = x$host; then
27227       export_sym_check="objdump${exeext} -T"
27228     elif test x$host = x$target; then
27229       export_sym_check="$gcc_cv_objdump -T"
27230     else
27231       export_sym_check=
27232     fi
27233   ;;
27234 esac
27235
27236 if test x"$enable_plugin" = x"yes"; then
27237
27238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27239 $as_echo_n "checking for exported symbols... " >&6; }
27240   if test "x$export_sym_check" != x; then
27241     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27242     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27243     if $export_sym_check conftest | grep foobar > /dev/null; then
27244       : # No need to use a flag
27245       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27246 $as_echo "yes" >&6; }
27247     else
27248       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27249 $as_echo "yes" >&6; }
27250       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27251 $as_echo_n "checking for -rdynamic... " >&6; }
27252       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27253       if $export_sym_check conftest | grep foobar > /dev/null; then
27254         plugin_rdynamic=yes
27255         pluginlibs="-rdynamic"
27256       else
27257         plugin_rdynamic=no
27258         enable_plugin=no
27259       fi
27260       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27261 $as_echo "$plugin_rdynamic" >&6; }
27262     fi
27263   else
27264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27265 $as_echo "unable to check" >&6; }
27266   fi
27267
27268   # Check -ldl
27269   saved_LIBS="$LIBS"
27270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27271 $as_echo_n "checking for library containing dlopen... " >&6; }
27272 if test "${ac_cv_search_dlopen+set}" = set; then :
27273   $as_echo_n "(cached) " >&6
27274 else
27275   ac_func_search_save_LIBS=$LIBS
27276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27277 /* end confdefs.h.  */
27278
27279 /* Override any GCC internal prototype to avoid an error.
27280    Use char because int might match the return type of a GCC
27281    builtin and then its argument prototype would still apply.  */
27282 #ifdef __cplusplus
27283 extern "C"
27284 #endif
27285 char dlopen ();
27286 int
27287 main ()
27288 {
27289 return dlopen ();
27290   ;
27291   return 0;
27292 }
27293 _ACEOF
27294 for ac_lib in '' dl; do
27295   if test -z "$ac_lib"; then
27296     ac_res="none required"
27297   else
27298     ac_res=-l$ac_lib
27299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27300   fi
27301   if ac_fn_c_try_link "$LINENO"; then :
27302   ac_cv_search_dlopen=$ac_res
27303 fi
27304 rm -f core conftest.err conftest.$ac_objext \
27305     conftest$ac_exeext
27306   if test "${ac_cv_search_dlopen+set}" = set; then :
27307   break
27308 fi
27309 done
27310 if test "${ac_cv_search_dlopen+set}" = set; then :
27311
27312 else
27313   ac_cv_search_dlopen=no
27314 fi
27315 rm conftest.$ac_ext
27316 LIBS=$ac_func_search_save_LIBS
27317 fi
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27319 $as_echo "$ac_cv_search_dlopen" >&6; }
27320 ac_res=$ac_cv_search_dlopen
27321 if test "$ac_res" != no; then :
27322   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27323
27324 fi
27325
27326   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27327     pluginlibs="$pluginlibs -ldl"
27328   fi
27329   LIBS="$saved_LIBS"
27330
27331   # Check that we can build shared objects with -fPIC -shared
27332   saved_LDFLAGS="$LDFLAGS"
27333   saved_CFLAGS="$CFLAGS"
27334   case "${host}" in
27335     *-*-darwin*)
27336       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27337       CFLAGS="$CFLAGS -fPIC"
27338       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27339     ;;
27340     *)
27341       CFLAGS="$CFLAGS -fPIC"
27342       LDFLAGS="$LDFLAGS -fPIC -shared"
27343     ;;
27344   esac
27345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27346 $as_echo_n "checking for -fPIC -shared... " >&6; }
27347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27348 /* end confdefs.h.  */
27349 extern int X;
27350 int
27351 main ()
27352 {
27353 return X == 0;
27354   ;
27355   return 0;
27356 }
27357 _ACEOF
27358 if ac_fn_c_try_link "$LINENO"; then :
27359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27360 $as_echo "yes" >&6; }; have_pic_shared=yes
27361 else
27362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27363 $as_echo "no" >&6; }; have_pic_shared=no
27364 fi
27365 rm -f core conftest.err conftest.$ac_objext \
27366     conftest$ac_exeext conftest.$ac_ext
27367   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27368     pluginlibs=
27369     enable_plugin=no
27370   fi
27371   LDFLAGS="$saved_LDFLAGS"
27372   CFLAGS="$saved_CFLAGS"
27373
27374   # If plugin support had been requested but not available, fail.
27375   if test x"$enable_plugin" = x"no" ; then
27376     if test x"$default_plugin" != x"yes"; then
27377       as_fn_error "
27378 Building GCC with plugin support requires a host that supports
27379 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27380     fi
27381   fi
27382 fi
27383
27384
27385
27386 if test x"$enable_plugin" = x"yes"; then
27387
27388 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27389
27390 fi
27391
27392
27393 # Check whether --enable-libquadmath-support was given.
27394 if test "${enable_libquadmath_support+set}" = set; then :
27395   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27396 else
27397   ENABLE_LIBQUADMATH_SUPPORT=yes
27398 fi
27399
27400 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27401
27402 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27403
27404 fi
27405
27406
27407 # Specify what hash style to use by default.
27408
27409 # Check whether --with-linker-hash-style was given.
27410 if test "${with_linker_hash_style+set}" = set; then :
27411   withval=$with_linker_hash_style; case x"$withval" in
27412    xsysv)
27413      LINKER_HASH_STYLE=sysv
27414      ;;
27415    xgnu)
27416      LINKER_HASH_STYLE=gnu
27417      ;;
27418    xboth)
27419      LINKER_HASH_STYLE=both
27420      ;;
27421    *)
27422      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27423      ;;
27424  esac
27425 else
27426   LINKER_HASH_STYLE=''
27427 fi
27428
27429 if test x"${LINKER_HASH_STYLE}" != x; then
27430
27431 cat >>confdefs.h <<_ACEOF
27432 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27433 _ACEOF
27434
27435 fi
27436
27437 # Configure the subdirectories
27438 # AC_CONFIG_SUBDIRS($subdirs)
27439
27440 # Create the Makefile
27441 # and configure language subdirectories
27442 ac_config_files="$ac_config_files $all_outputs"
27443
27444
27445 ac_config_commands="$ac_config_commands default"
27446
27447 cat >confcache <<\_ACEOF
27448 # This file is a shell script that caches the results of configure
27449 # tests run on this system so they can be shared between configure
27450 # scripts and configure runs, see configure's option --config-cache.
27451 # It is not useful on other systems.  If it contains results you don't
27452 # want to keep, you may remove or edit it.
27453 #
27454 # config.status only pays attention to the cache file if you give it
27455 # the --recheck option to rerun configure.
27456 #
27457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27459 # following values.
27460
27461 _ACEOF
27462
27463 # The following way of writing the cache mishandles newlines in values,
27464 # but we know of no workaround that is simple, portable, and efficient.
27465 # So, we kill variables containing newlines.
27466 # Ultrix sh set writes to stderr and can't be redirected directly,
27467 # and sets the high bit in the cache file unless we assign to the vars.
27468 (
27469   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27470     eval ac_val=\$$ac_var
27471     case $ac_val in #(
27472     *${as_nl}*)
27473       case $ac_var in #(
27474       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27476       esac
27477       case $ac_var in #(
27478       _ | IFS | as_nl) ;; #(
27479       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27480       *) { eval $ac_var=; unset $ac_var;} ;;
27481       esac ;;
27482     esac
27483   done
27484
27485   (set) 2>&1 |
27486     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27487     *${as_nl}ac_space=\ *)
27488       # `set' does not quote correctly, so add quotes: double-quote
27489       # substitution turns \\\\ into \\, and sed turns \\ into \.
27490       sed -n \
27491         "s/'/'\\\\''/g;
27492           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27493       ;; #(
27494     *)
27495       # `set' quotes correctly as required by POSIX, so do not add quotes.
27496       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27497       ;;
27498     esac |
27499     sort
27500 ) |
27501   sed '
27502      /^ac_cv_env_/b end
27503      t clear
27504      :clear
27505      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27506      t end
27507      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27508      :end' >>confcache
27509 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27510   if test -w "$cache_file"; then
27511     test "x$cache_file" != "x/dev/null" &&
27512       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27513 $as_echo "$as_me: updating cache $cache_file" >&6;}
27514     cat confcache >$cache_file
27515   else
27516     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27517 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27518   fi
27519 fi
27520 rm -f confcache
27521
27522 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27523 # Let make expand exec_prefix.
27524 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27525
27526 DEFS=-DHAVE_CONFIG_H
27527
27528 ac_libobjs=
27529 ac_ltlibobjs=
27530 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27531   # 1. Remove the extension, and $U if already installed.
27532   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27533   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27534   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27535   #    will be set to the directory where LIBOBJS objects are built.
27536   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27537   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27538 done
27539 LIBOBJS=$ac_libobjs
27540
27541 LTLIBOBJS=$ac_ltlibobjs
27542
27543
27544
27545
27546 : ${CONFIG_STATUS=./config.status}
27547 ac_write_fail=0
27548 ac_clean_files_save=$ac_clean_files
27549 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27551 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27552 as_write_fail=0
27553 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27554 #! $SHELL
27555 # Generated by $as_me.
27556 # Run this file to recreate the current configuration.
27557 # Compiler output produced by configure, useful for debugging
27558 # configure, is in config.log if it exists.
27559
27560 debug=false
27561 ac_cs_recheck=false
27562 ac_cs_silent=false
27563
27564 SHELL=\${CONFIG_SHELL-$SHELL}
27565 export SHELL
27566 _ASEOF
27567 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27568 ## -------------------- ##
27569 ## M4sh Initialization. ##
27570 ## -------------------- ##
27571
27572 # Be more Bourne compatible
27573 DUALCASE=1; export DUALCASE # for MKS sh
27574 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27575   emulate sh
27576   NULLCMD=:
27577   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27578   # is contrary to our usage.  Disable this feature.
27579   alias -g '${1+"$@"}'='"$@"'
27580   setopt NO_GLOB_SUBST
27581 else
27582   case `(set -o) 2>/dev/null` in #(
27583   *posix*) :
27584     set -o posix ;; #(
27585   *) :
27586      ;;
27587 esac
27588 fi
27589
27590
27591 as_nl='
27592 '
27593 export as_nl
27594 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27595 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27596 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27597 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27598 # Prefer a ksh shell builtin over an external printf program on Solaris,
27599 # but without wasting forks for bash or zsh.
27600 if test -z "$BASH_VERSION$ZSH_VERSION" \
27601     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27602   as_echo='print -r --'
27603   as_echo_n='print -rn --'
27604 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27605   as_echo='printf %s\n'
27606   as_echo_n='printf %s'
27607 else
27608   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27609     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27610     as_echo_n='/usr/ucb/echo -n'
27611   else
27612     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27613     as_echo_n_body='eval
27614       arg=$1;
27615       case $arg in #(
27616       *"$as_nl"*)
27617         expr "X$arg" : "X\\(.*\\)$as_nl";
27618         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27619       esac;
27620       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27621     '
27622     export as_echo_n_body
27623     as_echo_n='sh -c $as_echo_n_body as_echo'
27624   fi
27625   export as_echo_body
27626   as_echo='sh -c $as_echo_body as_echo'
27627 fi
27628
27629 # The user is always right.
27630 if test "${PATH_SEPARATOR+set}" != set; then
27631   PATH_SEPARATOR=:
27632   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27633     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27634       PATH_SEPARATOR=';'
27635   }
27636 fi
27637
27638
27639 # IFS
27640 # We need space, tab and new line, in precisely that order.  Quoting is
27641 # there to prevent editors from complaining about space-tab.
27642 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27643 # splitting by setting IFS to empty value.)
27644 IFS=" ""        $as_nl"
27645
27646 # Find who we are.  Look in the path if we contain no directory separator.
27647 case $0 in #((
27648   *[\\/]* ) as_myself=$0 ;;
27649   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27650 for as_dir in $PATH
27651 do
27652   IFS=$as_save_IFS
27653   test -z "$as_dir" && as_dir=.
27654     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27655   done
27656 IFS=$as_save_IFS
27657
27658      ;;
27659 esac
27660 # We did not find ourselves, most probably we were run as `sh COMMAND'
27661 # in which case we are not to be found in the path.
27662 if test "x$as_myself" = x; then
27663   as_myself=$0
27664 fi
27665 if test ! -f "$as_myself"; then
27666   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27667   exit 1
27668 fi
27669
27670 # Unset variables that we do not need and which cause bugs (e.g. in
27671 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27672 # suppresses any "Segmentation fault" message there.  '((' could
27673 # trigger a bug in pdksh 5.2.14.
27674 for as_var in BASH_ENV ENV MAIL MAILPATH
27675 do eval test x\${$as_var+set} = xset \
27676   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27677 done
27678 PS1='$ '
27679 PS2='> '
27680 PS4='+ '
27681
27682 # NLS nuisances.
27683 LC_ALL=C
27684 export LC_ALL
27685 LANGUAGE=C
27686 export LANGUAGE
27687
27688 # CDPATH.
27689 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27690
27691
27692 # as_fn_error ERROR [LINENO LOG_FD]
27693 # ---------------------------------
27694 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27695 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27696 # script with status $?, using 1 if that was 0.
27697 as_fn_error ()
27698 {
27699   as_status=$?; test $as_status -eq 0 && as_status=1
27700   if test "$3"; then
27701     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27702     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27703   fi
27704   $as_echo "$as_me: error: $1" >&2
27705   as_fn_exit $as_status
27706 } # as_fn_error
27707
27708
27709 # as_fn_set_status STATUS
27710 # -----------------------
27711 # Set $? to STATUS, without forking.
27712 as_fn_set_status ()
27713 {
27714   return $1
27715 } # as_fn_set_status
27716
27717 # as_fn_exit STATUS
27718 # -----------------
27719 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27720 as_fn_exit ()
27721 {
27722   set +e
27723   as_fn_set_status $1
27724   exit $1
27725 } # as_fn_exit
27726
27727 # as_fn_unset VAR
27728 # ---------------
27729 # Portably unset VAR.
27730 as_fn_unset ()
27731 {
27732   { eval $1=; unset $1;}
27733 }
27734 as_unset=as_fn_unset
27735 # as_fn_append VAR VALUE
27736 # ----------------------
27737 # Append the text in VALUE to the end of the definition contained in VAR. Take
27738 # advantage of any shell optimizations that allow amortized linear growth over
27739 # repeated appends, instead of the typical quadratic growth present in naive
27740 # implementations.
27741 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27742   eval 'as_fn_append ()
27743   {
27744     eval $1+=\$2
27745   }'
27746 else
27747   as_fn_append ()
27748   {
27749     eval $1=\$$1\$2
27750   }
27751 fi # as_fn_append
27752
27753 # as_fn_arith ARG...
27754 # ------------------
27755 # Perform arithmetic evaluation on the ARGs, and store the result in the
27756 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27757 # must be portable across $(()) and expr.
27758 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27759   eval 'as_fn_arith ()
27760   {
27761     as_val=$(( $* ))
27762   }'
27763 else
27764   as_fn_arith ()
27765   {
27766     as_val=`expr "$@" || test $? -eq 1`
27767   }
27768 fi # as_fn_arith
27769
27770
27771 if expr a : '\(a\)' >/dev/null 2>&1 &&
27772    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27773   as_expr=expr
27774 else
27775   as_expr=false
27776 fi
27777
27778 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27779   as_basename=basename
27780 else
27781   as_basename=false
27782 fi
27783
27784 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27785   as_dirname=dirname
27786 else
27787   as_dirname=false
27788 fi
27789
27790 as_me=`$as_basename -- "$0" ||
27791 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27792          X"$0" : 'X\(//\)$' \| \
27793          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27794 $as_echo X/"$0" |
27795     sed '/^.*\/\([^/][^/]*\)\/*$/{
27796             s//\1/
27797             q
27798           }
27799           /^X\/\(\/\/\)$/{
27800             s//\1/
27801             q
27802           }
27803           /^X\/\(\/\).*/{
27804             s//\1/
27805             q
27806           }
27807           s/.*/./; q'`
27808
27809 # Avoid depending upon Character Ranges.
27810 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27811 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27812 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27813 as_cr_digits='0123456789'
27814 as_cr_alnum=$as_cr_Letters$as_cr_digits
27815
27816 ECHO_C= ECHO_N= ECHO_T=
27817 case `echo -n x` in #(((((
27818 -n*)
27819   case `echo 'xy\c'` in
27820   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27821   xy)  ECHO_C='\c';;
27822   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27823        ECHO_T=' ';;
27824   esac;;
27825 *)
27826   ECHO_N='-n';;
27827 esac
27828
27829 rm -f conf$$ conf$$.exe conf$$.file
27830 if test -d conf$$.dir; then
27831   rm -f conf$$.dir/conf$$.file
27832 else
27833   rm -f conf$$.dir
27834   mkdir conf$$.dir 2>/dev/null
27835 fi
27836 if (echo >conf$$.file) 2>/dev/null; then
27837   if ln -s conf$$.file conf$$ 2>/dev/null; then
27838     as_ln_s='ln -s'
27839     # ... but there are two gotchas:
27840     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27841     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27842     # In both cases, we have to default to `cp -p'.
27843     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27844       as_ln_s='cp -p'
27845   elif ln conf$$.file conf$$ 2>/dev/null; then
27846     as_ln_s=ln
27847   else
27848     as_ln_s='cp -p'
27849   fi
27850 else
27851   as_ln_s='cp -p'
27852 fi
27853 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27854 rmdir conf$$.dir 2>/dev/null
27855
27856
27857 # as_fn_mkdir_p
27858 # -------------
27859 # Create "$as_dir" as a directory, including parents if necessary.
27860 as_fn_mkdir_p ()
27861 {
27862
27863   case $as_dir in #(
27864   -*) as_dir=./$as_dir;;
27865   esac
27866   test -d "$as_dir" || eval $as_mkdir_p || {
27867     as_dirs=
27868     while :; do
27869       case $as_dir in #(
27870       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27871       *) as_qdir=$as_dir;;
27872       esac
27873       as_dirs="'$as_qdir' $as_dirs"
27874       as_dir=`$as_dirname -- "$as_dir" ||
27875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27876          X"$as_dir" : 'X\(//\)[^/]' \| \
27877          X"$as_dir" : 'X\(//\)$' \| \
27878          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27879 $as_echo X"$as_dir" |
27880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27881             s//\1/
27882             q
27883           }
27884           /^X\(\/\/\)[^/].*/{
27885             s//\1/
27886             q
27887           }
27888           /^X\(\/\/\)$/{
27889             s//\1/
27890             q
27891           }
27892           /^X\(\/\).*/{
27893             s//\1/
27894             q
27895           }
27896           s/.*/./; q'`
27897       test -d "$as_dir" && break
27898     done
27899     test -z "$as_dirs" || eval "mkdir $as_dirs"
27900   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27901
27902
27903 } # as_fn_mkdir_p
27904 if mkdir -p . 2>/dev/null; then
27905   as_mkdir_p='mkdir -p "$as_dir"'
27906 else
27907   test -d ./-p && rmdir ./-p
27908   as_mkdir_p=false
27909 fi
27910
27911 if test -x / >/dev/null 2>&1; then
27912   as_test_x='test -x'
27913 else
27914   if ls -dL / >/dev/null 2>&1; then
27915     as_ls_L_option=L
27916   else
27917     as_ls_L_option=
27918   fi
27919   as_test_x='
27920     eval sh -c '\''
27921       if test -d "$1"; then
27922         test -d "$1/.";
27923       else
27924         case $1 in #(
27925         -*)set "./$1";;
27926         esac;
27927         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27928         ???[sx]*):;;*)false;;esac;fi
27929     '\'' sh
27930   '
27931 fi
27932 as_executable_p=$as_test_x
27933
27934 # Sed expression to map a string onto a valid CPP name.
27935 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27936
27937 # Sed expression to map a string onto a valid variable name.
27938 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27939
27940
27941 exec 6>&1
27942 ## ----------------------------------- ##
27943 ## Main body of $CONFIG_STATUS script. ##
27944 ## ----------------------------------- ##
27945 _ASEOF
27946 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27947
27948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27949 # Save the log message, to keep $0 and so on meaningful, and to
27950 # report actual input values of CONFIG_FILES etc. instead of their
27951 # values after options handling.
27952 ac_log="
27953 This file was extended by $as_me, which was
27954 generated by GNU Autoconf 2.64.  Invocation command line was
27955
27956   CONFIG_FILES    = $CONFIG_FILES
27957   CONFIG_HEADERS  = $CONFIG_HEADERS
27958   CONFIG_LINKS    = $CONFIG_LINKS
27959   CONFIG_COMMANDS = $CONFIG_COMMANDS
27960   $ $0 $@
27961
27962 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27963 "
27964
27965 _ACEOF
27966
27967 case $ac_config_files in *"
27968 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27969 esac
27970
27971 case $ac_config_headers in *"
27972 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27973 esac
27974
27975
27976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27977 # Files that config.status was made for.
27978 config_files="$ac_config_files"
27979 config_headers="$ac_config_headers"
27980 config_commands="$ac_config_commands"
27981
27982 _ACEOF
27983
27984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27985 ac_cs_usage="\
27986 \`$as_me' instantiates files and other configuration actions
27987 from templates according to the current configuration.  Unless the files
27988 and actions are specified as TAGs, all are instantiated by default.
27989
27990 Usage: $0 [OPTION]... [TAG]...
27991
27992   -h, --help       print this help, then exit
27993   -V, --version    print version number and configuration settings, then exit
27994   -q, --quiet, --silent
27995                    do not print progress messages
27996   -d, --debug      don't remove temporary files
27997       --recheck    update $as_me by reconfiguring in the same conditions
27998       --file=FILE[:TEMPLATE]
27999                    instantiate the configuration file FILE
28000       --header=FILE[:TEMPLATE]
28001                    instantiate the configuration header FILE
28002
28003 Configuration files:
28004 $config_files
28005
28006 Configuration headers:
28007 $config_headers
28008
28009 Configuration commands:
28010 $config_commands
28011
28012 Report bugs to the package provider."
28013
28014 _ACEOF
28015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28016 ac_cs_version="\\
28017 config.status
28018 configured by $0, generated by GNU Autoconf 2.64,
28019   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28020
28021 Copyright (C) 2009 Free Software Foundation, Inc.
28022 This config.status script is free software; the Free Software Foundation
28023 gives unlimited permission to copy, distribute and modify it."
28024
28025 ac_pwd='$ac_pwd'
28026 srcdir='$srcdir'
28027 AWK='$AWK'
28028 test -n "\$AWK" || AWK=awk
28029 _ACEOF
28030
28031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28032 # The default lists apply if the user does not specify any file.
28033 ac_need_defaults=:
28034 while test $# != 0
28035 do
28036   case $1 in
28037   --*=*)
28038     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28039     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28040     ac_shift=:
28041     ;;
28042   *)
28043     ac_option=$1
28044     ac_optarg=$2
28045     ac_shift=shift
28046     ;;
28047   esac
28048
28049   case $ac_option in
28050   # Handling of the options.
28051   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28052     ac_cs_recheck=: ;;
28053   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28054     $as_echo "$ac_cs_version"; exit ;;
28055   --debug | --debu | --deb | --de | --d | -d )
28056     debug=: ;;
28057   --file | --fil | --fi | --f )
28058     $ac_shift
28059     case $ac_optarg in
28060     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28061     esac
28062     as_fn_append CONFIG_FILES " '$ac_optarg'"
28063     ac_need_defaults=false;;
28064   --header | --heade | --head | --hea )
28065     $ac_shift
28066     case $ac_optarg in
28067     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28068     esac
28069     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28070     ac_need_defaults=false;;
28071   --he | --h)
28072     # Conflict between --help and --header
28073     as_fn_error "ambiguous option: \`$1'
28074 Try \`$0 --help' for more information.";;
28075   --help | --hel | -h )
28076     $as_echo "$ac_cs_usage"; exit ;;
28077   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28078   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28079     ac_cs_silent=: ;;
28080
28081   # This is an error.
28082   -*) as_fn_error "unrecognized option: \`$1'
28083 Try \`$0 --help' for more information." ;;
28084
28085   *) as_fn_append ac_config_targets " $1"
28086      ac_need_defaults=false ;;
28087
28088   esac
28089   shift
28090 done
28091
28092 ac_configure_extra_args=
28093
28094 if $ac_cs_silent; then
28095   exec 6>/dev/null
28096   ac_configure_extra_args="$ac_configure_extra_args --silent"
28097 fi
28098
28099 _ACEOF
28100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28101 if \$ac_cs_recheck; then
28102   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28103   shift
28104   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28105   CONFIG_SHELL='$SHELL'
28106   export CONFIG_SHELL
28107   exec "\$@"
28108 fi
28109
28110 _ACEOF
28111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28112 exec 5>>config.log
28113 {
28114   echo
28115   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28116 ## Running $as_me. ##
28117 _ASBOX
28118   $as_echo "$ac_log"
28119 } >&5
28120
28121 _ACEOF
28122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28123 #
28124 # INIT-COMMANDS
28125 #
28126 subdirs='$subdirs'
28127
28128 _ACEOF
28129
28130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28131
28132 # Handling of arguments.
28133 for ac_config_target in $ac_config_targets
28134 do
28135   case $ac_config_target in
28136     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28137     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28138     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28139     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28140     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28141     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28142
28143   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28144   esac
28145 done
28146
28147
28148 # If the user did not use the arguments to specify the items to instantiate,
28149 # then the envvar interface is used.  Set only those that are not.
28150 # We use the long form for the default assignment because of an extremely
28151 # bizarre bug on SunOS 4.1.3.
28152 if $ac_need_defaults; then
28153   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28154   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28155   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28156 fi
28157
28158 # Have a temporary directory for convenience.  Make it in the build tree
28159 # simply because there is no reason against having it here, and in addition,
28160 # creating and moving files from /tmp can sometimes cause problems.
28161 # Hook for its removal unless debugging.
28162 # Note that there is a small window in which the directory will not be cleaned:
28163 # after its creation but before its name has been assigned to `$tmp'.
28164 $debug ||
28165 {
28166   tmp=
28167   trap 'exit_status=$?
28168   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28169 ' 0
28170   trap 'as_fn_exit 1' 1 2 13 15
28171 }
28172 # Create a (secure) tmp directory for tmp files.
28173
28174 {
28175   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28176   test -n "$tmp" && test -d "$tmp"
28177 }  ||
28178 {
28179   tmp=./conf$$-$RANDOM
28180   (umask 077 && mkdir "$tmp")
28181 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28182
28183 # Set up the scripts for CONFIG_FILES section.
28184 # No need to generate them if there are no CONFIG_FILES.
28185 # This happens for instance with `./config.status config.h'.
28186 if test -n "$CONFIG_FILES"; then
28187
28188 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28189   ac_cs_awk_getline=:
28190   ac_cs_awk_pipe_init=
28191   ac_cs_awk_read_file='
28192       while ((getline aline < (F[key])) > 0)
28193         print(aline)
28194       close(F[key])'
28195   ac_cs_awk_pipe_fini=
28196 else
28197   ac_cs_awk_getline=false
28198   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28199   ac_cs_awk_read_file='
28200       print "|#_!!_#|"
28201       print "cat " F[key] " &&"
28202       '$ac_cs_awk_pipe_init
28203   # The final `:' finishes the AND list.
28204   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28205 fi
28206 ac_cr=`echo X | tr X '\015'`
28207 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28208 # But we know of no other shell where ac_cr would be empty at this
28209 # point, so we can use a bashism as a fallback.
28210 if test "x$ac_cr" = x; then
28211   eval ac_cr=\$\'\\r\'
28212 fi
28213 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28214 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28215   ac_cs_awk_cr='\r'
28216 else
28217   ac_cs_awk_cr=$ac_cr
28218 fi
28219
28220 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28221 _ACEOF
28222
28223 # Create commands to substitute file output variables.
28224 {
28225   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28226   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28227   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28228   echo "_ACAWK" &&
28229   echo "_ACEOF"
28230 } >conf$$files.sh &&
28231 . ./conf$$files.sh ||
28232   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28233 rm -f conf$$files.sh
28234
28235 {
28236   echo "cat >conf$$subs.awk <<_ACEOF" &&
28237   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28238   echo "_ACEOF"
28239 } >conf$$subs.sh ||
28240   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28241 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28242 ac_delim='%!_!# '
28243 for ac_last_try in false false false false false :; do
28244   . ./conf$$subs.sh ||
28245     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28246
28247   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28248   if test $ac_delim_n = $ac_delim_num; then
28249     break
28250   elif $ac_last_try; then
28251     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28252   else
28253     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28254   fi
28255 done
28256 rm -f conf$$subs.sh
28257
28258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28259 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28260 _ACEOF
28261 sed -n '
28262 h
28263 s/^/S["/; s/!.*/"]=/
28264 p
28265 g
28266 s/^[^!]*!//
28267 :repl
28268 t repl
28269 s/'"$ac_delim"'$//
28270 t delim
28271 :nl
28272 h
28273 s/\(.\{148\}\).*/\1/
28274 t more1
28275 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28276 p
28277 n
28278 b repl
28279 :more1
28280 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28281 p
28282 g
28283 s/.\{148\}//
28284 t nl
28285 :delim
28286 h
28287 s/\(.\{148\}\).*/\1/
28288 t more2
28289 s/["\\]/\\&/g; s/^/"/; s/$/"/
28290 p
28291 b
28292 :more2
28293 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28294 p
28295 g
28296 s/.\{148\}//
28297 t delim
28298 ' <conf$$subs.awk | sed '
28299 /^[^""]/{
28300   N
28301   s/\n//
28302 }
28303 ' >>$CONFIG_STATUS || ac_write_fail=1
28304 rm -f conf$$subs.awk
28305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28306 _ACAWK
28307 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28308   for (key in S) S_is_set[key] = 1
28309   FS = "\a"
28310   \$ac_cs_awk_pipe_init
28311 }
28312 {
28313   line = $ 0
28314   nfields = split(line, field, "@")
28315   substed = 0
28316   len = length(field[1])
28317   for (i = 2; i < nfields; i++) {
28318     key = field[i]
28319     keylen = length(key)
28320     if (S_is_set[key]) {
28321       value = S[key]
28322       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28323       len += length(value) + length(field[++i])
28324       substed = 1
28325     } else
28326       len += 1 + keylen
28327   }
28328   if (nfields == 3 && !substed) {
28329     key = field[2]
28330     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
28331       \$ac_cs_awk_read_file
28332       next
28333     }
28334   }
28335   print line
28336 }
28337 \$ac_cs_awk_pipe_fini
28338 _ACAWK
28339 _ACEOF
28340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28341 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28342   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28343 else
28344   cat
28345 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28346   || as_fn_error "could not setup config files machinery" "$LINENO" 5
28347 _ACEOF
28348
28349 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28350 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28351 # trailing colons and then remove the whole line if VPATH becomes empty
28352 # (actually we leave an empty line to preserve line numbers).
28353 if test "x$srcdir" = x.; then
28354   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28355 s/:*\$(srcdir):*/:/
28356 s/:*\${srcdir}:*/:/
28357 s/:*@srcdir@:*/:/
28358 s/^\([^=]*=[     ]*\):*/\1/
28359 s/:*$//
28360 s/^[^=]*=[       ]*$//
28361 }'
28362 fi
28363
28364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28365 fi # test -n "$CONFIG_FILES"
28366
28367 # Set up the scripts for CONFIG_HEADERS section.
28368 # No need to generate them if there are no CONFIG_HEADERS.
28369 # This happens for instance with `./config.status Makefile'.
28370 if test -n "$CONFIG_HEADERS"; then
28371 cat >"$tmp/defines.awk" <<\_ACAWK ||
28372 BEGIN {
28373 _ACEOF
28374
28375 # Transform confdefs.h into an awk script `defines.awk', embedded as
28376 # here-document in config.status, that substitutes the proper values into
28377 # config.h.in to produce config.h.
28378
28379 # Create a delimiter string that does not exist in confdefs.h, to ease
28380 # handling of long lines.
28381 ac_delim='%!_!# '
28382 for ac_last_try in false false :; do
28383   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28384   if test -z "$ac_t"; then
28385     break
28386   elif $ac_last_try; then
28387     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28388   else
28389     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28390   fi
28391 done
28392
28393 # For the awk script, D is an array of macro values keyed by name,
28394 # likewise P contains macro parameters if any.  Preserve backslash
28395 # newline sequences.
28396
28397 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28398 sed -n '
28399 s/.\{148\}/&'"$ac_delim"'/g
28400 t rset
28401 :rset
28402 s/^[     ]*#[    ]*define[       ][      ]*/ /
28403 t def
28404 d
28405 :def
28406 s/\\$//
28407 t bsnl
28408 s/["\\]/\\&/g
28409 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28410 D["\1"]=" \3"/p
28411 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28412 d
28413 :bsnl
28414 s/["\\]/\\&/g
28415 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28416 D["\1"]=" \3\\\\\\n"\\/p
28417 t cont
28418 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28419 t cont
28420 d
28421 :cont
28422 n
28423 s/.\{148\}/&'"$ac_delim"'/g
28424 t clear
28425 :clear
28426 s/\\$//
28427 t bsnlc
28428 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28429 d
28430 :bsnlc
28431 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28432 b cont
28433 ' <confdefs.h | sed '
28434 s/'"$ac_delim"'/"\\\
28435 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28436
28437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28438   for (key in D) D_is_set[key] = 1
28439   FS = "\a"
28440 }
28441 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28442   line = \$ 0
28443   split(line, arg, " ")
28444   if (arg[1] == "#") {
28445     defundef = arg[2]
28446     mac1 = arg[3]
28447   } else {
28448     defundef = substr(arg[1], 2)
28449     mac1 = arg[2]
28450   }
28451   split(mac1, mac2, "(") #)
28452   macro = mac2[1]
28453   prefix = substr(line, 1, index(line, defundef) - 1)
28454   if (D_is_set[macro]) {
28455     # Preserve the white space surrounding the "#".
28456     print prefix "define", macro P[macro] D[macro]
28457     next
28458   } else {
28459     # Replace #undef with comments.  This is necessary, for example,
28460     # in the case of _POSIX_SOURCE, which is predefined and required
28461     # on some systems where configure will not decide to define it.
28462     if (defundef == "undef") {
28463       print "/*", prefix defundef, macro, "*/"
28464       next
28465     }
28466   }
28467 }
28468 { print }
28469 _ACAWK
28470 _ACEOF
28471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28472   as_fn_error "could not setup config headers machinery" "$LINENO" 5
28473 fi # test -n "$CONFIG_HEADERS"
28474
28475
28476 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28477 shift
28478 for ac_tag
28479 do
28480   case $ac_tag in
28481   :[FHLC]) ac_mode=$ac_tag; continue;;
28482   esac
28483   case $ac_mode$ac_tag in
28484   :[FHL]*:*);;
28485   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28486   :[FH]-) ac_tag=-:-;;
28487   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28488   esac
28489   ac_save_IFS=$IFS
28490   IFS=:
28491   set x $ac_tag
28492   IFS=$ac_save_IFS
28493   shift
28494   ac_file=$1
28495   shift
28496
28497   case $ac_mode in
28498   :L) ac_source=$1;;
28499   :[FH])
28500     ac_file_inputs=
28501     for ac_f
28502     do
28503       case $ac_f in
28504       -) ac_f="$tmp/stdin";;
28505       *) # Look for the file first in the build tree, then in the source tree
28506          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28507          # because $ac_f cannot contain `:'.
28508          test -f "$ac_f" ||
28509            case $ac_f in
28510            [\\/$]*) false;;
28511            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28512            esac ||
28513            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28514       esac
28515       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28516       as_fn_append ac_file_inputs " '$ac_f'"
28517     done
28518
28519     # Let's still pretend it is `configure' which instantiates (i.e., don't
28520     # use $as_me), people would be surprised to read:
28521     #    /* config.h.  Generated by config.status.  */
28522     configure_input='Generated from '`
28523           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28524         `' by configure.'
28525     if test x"$ac_file" != x-; then
28526       configure_input="$ac_file.  $configure_input"
28527       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28528 $as_echo "$as_me: creating $ac_file" >&6;}
28529     fi
28530     # Neutralize special characters interpreted by sed in replacement strings.
28531     case $configure_input in #(
28532     *\&* | *\|* | *\\* )
28533        ac_sed_conf_input=`$as_echo "$configure_input" |
28534        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28535     *) ac_sed_conf_input=$configure_input;;
28536     esac
28537
28538     case $ac_tag in
28539     *:-:* | *:-) cat >"$tmp/stdin" \
28540       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28541     esac
28542     ;;
28543   esac
28544
28545   ac_dir=`$as_dirname -- "$ac_file" ||
28546 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28547          X"$ac_file" : 'X\(//\)[^/]' \| \
28548          X"$ac_file" : 'X\(//\)$' \| \
28549          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28550 $as_echo X"$ac_file" |
28551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28552             s//\1/
28553             q
28554           }
28555           /^X\(\/\/\)[^/].*/{
28556             s//\1/
28557             q
28558           }
28559           /^X\(\/\/\)$/{
28560             s//\1/
28561             q
28562           }
28563           /^X\(\/\).*/{
28564             s//\1/
28565             q
28566           }
28567           s/.*/./; q'`
28568   as_dir="$ac_dir"; as_fn_mkdir_p
28569   ac_builddir=.
28570
28571 case "$ac_dir" in
28572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28573 *)
28574   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28575   # A ".." for each directory in $ac_dir_suffix.
28576   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28577   case $ac_top_builddir_sub in
28578   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28579   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28580   esac ;;
28581 esac
28582 ac_abs_top_builddir=$ac_pwd
28583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28584 # for backward compatibility:
28585 ac_top_builddir=$ac_top_build_prefix
28586
28587 case $srcdir in
28588   .)  # We are building in place.
28589     ac_srcdir=.
28590     ac_top_srcdir=$ac_top_builddir_sub
28591     ac_abs_top_srcdir=$ac_pwd ;;
28592   [\\/]* | ?:[\\/]* )  # Absolute name.
28593     ac_srcdir=$srcdir$ac_dir_suffix;
28594     ac_top_srcdir=$srcdir
28595     ac_abs_top_srcdir=$srcdir ;;
28596   *) # Relative name.
28597     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28598     ac_top_srcdir=$ac_top_build_prefix$srcdir
28599     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28600 esac
28601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28602
28603
28604   case $ac_mode in
28605   :F)
28606   #
28607   # CONFIG_FILE
28608   #
28609
28610 _ACEOF
28611
28612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28613 # If the template does not know about datarootdir, expand it.
28614 # FIXME: This hack should be removed a few years after 2.60.
28615 ac_datarootdir_hack=; ac_datarootdir_seen=
28616 ac_sed_dataroot='
28617 /datarootdir/ {
28618   p
28619   q
28620 }
28621 /@datadir@/p
28622 /@docdir@/p
28623 /@infodir@/p
28624 /@localedir@/p
28625 /@mandir@/p'
28626 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28627 *datarootdir*) ac_datarootdir_seen=yes;;
28628 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28629   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28630 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28631 _ACEOF
28632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28633   ac_datarootdir_hack='
28634   s&@datadir@&$datadir&g
28635   s&@docdir@&$docdir&g
28636   s&@infodir@&$infodir&g
28637   s&@localedir@&$localedir&g
28638   s&@mandir@&$mandir&g
28639   s&\\\${datarootdir}&$datarootdir&g' ;;
28640 esac
28641 _ACEOF
28642
28643 # Neutralize VPATH when `$srcdir' = `.'.
28644 # Shell code in configure.ac might set extrasub.
28645 # FIXME: do we really want to maintain this feature?
28646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28647 ac_sed_extra="$ac_vpsub
28648 $extrasub
28649 _ACEOF
28650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28651 :t
28652 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28653 s|@configure_input@|$ac_sed_conf_input|;t t
28654 s&@top_builddir@&$ac_top_builddir_sub&;t t
28655 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28656 s&@srcdir@&$ac_srcdir&;t t
28657 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28658 s&@top_srcdir@&$ac_top_srcdir&;t t
28659 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28660 s&@builddir@&$ac_builddir&;t t
28661 s&@abs_builddir@&$ac_abs_builddir&;t t
28662 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28663 $ac_datarootdir_hack
28664 "
28665 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28666 if $ac_cs_awk_getline; then
28667   $AWK -f "$tmp/subs.awk"
28668 else
28669   $AWK -f "$tmp/subs.awk" | $SHELL
28670 fi >$tmp/out \
28671   || as_fn_error "could not create $ac_file" "$LINENO" 5
28672
28673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28674   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28675   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28676   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28677 which seems to be undefined.  Please make sure it is defined." >&5
28678 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28679 which seems to be undefined.  Please make sure it is defined." >&2;}
28680
28681   rm -f "$tmp/stdin"
28682   case $ac_file in
28683   -) cat "$tmp/out" && rm -f "$tmp/out";;
28684   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28685   esac \
28686   || as_fn_error "could not create $ac_file" "$LINENO" 5
28687  ;;
28688   :H)
28689   #
28690   # CONFIG_HEADER
28691   #
28692   if test x"$ac_file" != x-; then
28693     {
28694       $as_echo "/* $configure_input  */" \
28695       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28696     } >"$tmp/config.h" \
28697       || as_fn_error "could not create $ac_file" "$LINENO" 5
28698     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28699       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28700 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28701     else
28702       rm -f "$ac_file"
28703       mv "$tmp/config.h" "$ac_file" \
28704         || as_fn_error "could not create $ac_file" "$LINENO" 5
28705     fi
28706   else
28707     $as_echo "/* $configure_input  */" \
28708       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28709       || as_fn_error "could not create -" "$LINENO" 5
28710   fi
28711  ;;
28712
28713   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28714 $as_echo "$as_me: executing $ac_file commands" >&6;}
28715  ;;
28716   esac
28717
28718
28719   case $ac_file$ac_mode in
28720     "as":F) chmod +x as ;;
28721     "collect-ld":F) chmod +x collect-ld ;;
28722     "nm":F) chmod +x nm ;;
28723     "default":C)
28724 case ${CONFIG_HEADERS} in
28725   *auto-host.h:config.in*)
28726   echo > cstamp-h ;;
28727 esac
28728 # Make sure all the subdirs exist.
28729 for d in $subdirs doc build common c-family
28730 do
28731     test -d $d || mkdir $d
28732 done
28733  ;;
28734
28735   esac
28736 done # for ac_tag
28737
28738
28739 as_fn_exit 0
28740 _ACEOF
28741 ac_clean_files=$ac_clean_files_save
28742
28743 test $ac_write_fail = 0 ||
28744   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28745
28746
28747 # configure is writing to config.log, and then calls config.status.
28748 # config.status does its own redirection, appending to config.log.
28749 # Unfortunately, on DOS this fails, as config.log is still kept open
28750 # by configure, so config.status won't be able to write to it; its
28751 # output is simply discarded.  So we exec the FD to /dev/null,
28752 # effectively closing config.log, so it can be properly (re)opened and
28753 # appended to by config.status.  When coming back to configure, we
28754 # need to make the FD available again.
28755 if test "$no_create" != yes; then
28756   ac_cs_success=:
28757   ac_config_status_args=
28758   test "$silent" = yes &&
28759     ac_config_status_args="$ac_config_status_args --quiet"
28760   exec 5>/dev/null
28761   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28762   exec 5>>config.log
28763   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28764   # would make configure fail if this is the last instruction.
28765   $ac_cs_success || as_fn_exit $?
28766 fi
28767 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28768   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28769 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28770 fi
28771
28772